]> git.cworth.org Git - tar/blob - configure
upstream: Fix extraction of device nodes.
[tar] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for GNU tar 1.24.
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, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='GNU tar'
598 PACKAGE_TARNAME='tar'
599 PACKAGE_VERSION='1.24'
600 PACKAGE_STRING='GNU tar 1.24'
601 PACKAGE_BUGREPORT='bug-tar@gnu.org'
602
603 ac_unique_file="src/tar.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_list=
641 ac_func_list=
642 gl_fnmatch_required=POSIX
643 gl_getopt_required=POSIX
644 gl_getopt_required=POSIX
645 gt_needs=
646 ac_subst_vars='gltests_LTLIBOBJS
647 gltests_LIBOBJS
648 gl_LTLIBOBJS
649 gl_LIBOBJS
650 am__EXEEXT_FALSE
651 am__EXEEXT_TRUE
652 LTLIBOBJS
653 BACKUP_SED_COND
654 BACKUP_SBIN_SCRIPTS
655 BACKUP_LIBEXEC_SCRIPTS
656 AUTOM4TE
657 POSUB
658 INTLLIBS
659 INTL_MACOSX_LIBS
660 XGETTEXT_EXTRA_OPTIONS
661 MSGMERGE
662 XGETTEXT_015
663 XGETTEXT
664 GMSGFMT_015
665 MSGFMT_015
666 GMSGFMT
667 MSGFMT
668 GETTEXT_MACRO_VERSION
669 USE_NLS
670 LTLIBICONV
671 LIBICONV
672 DEFAULT_QUOTING_STYLE
673 DEFAULT_BLOCKING
674 DEFAULT_ARCHIVE
675 DEFAULT_ARCHIVE_FORMAT
676 LIBOBJS
677 DEFAULT_RMT_COMMAND
678 DEFAULT_RMT_DIR
679 PU_RMT_PROG
680 LIB_SETSOCKOPT
681 LIBGNU_LTLIBDEPS
682 LIBGNU_LIBDEPS
683 gltests_WITNESS
684 REPLACE_ISWCNTRL
685 HAVE_WCTYPE_H
686 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
687 NEXT_WCTYPE_H
688 REPLACE_ISWBLANK
689 HAVE_ISWBLANK
690 HAVE_ISWCNTRL
691 HAVE_WINT_T
692 HAVE_WCHAR_H
693 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
694 NEXT_WCHAR_H
695 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
696 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
697 LIBUNISTRING_UNIWIDTH_H
698 LIBUNISTRING_UNITYPES_H
699 HAVE_UNISTD_H
700 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
701 NEXT_UNISTD_H
702 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
703 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
704 TIME_H_DEFINES_STRUCT_TIMESPEC
705 NEXT_AS_FIRST_DIRECTIVE_TIME_H
706 NEXT_TIME_H
707 SYSEXITS_H
708 HAVE_SYSEXITS_H
709 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
710 NEXT_SYSEXITS_H
711 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
712 NEXT_SYS_STAT_H
713 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
714 NEXT_STRINGS_H
715 NEXT_AS_FIRST_DIRECTIVE_STRING_H
716 NEXT_STRING_H
717 HAVE_DECL_STRNCASECMP
718 HAVE_STRCASECMP
719 HAVE_RANDOM_H
720 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
721 NEXT_STDLIB_H
722 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
723 NEXT_STDIO_H
724 ASM_SYMBOL_PREFIX
725 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
726 NEXT_STDDEF_H
727 STDDEF_H
728 HAVE_WCHAR_T
729 REPLACE_NULL
730 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
731 NEXT_STDARG_H
732 STDARG_H
733 REPLACE_TIMEGM
734 REPLACE_NANOSLEEP
735 REPLACE_MKTIME
736 REPLACE_LOCALTIME_R
737 HAVE_TIMEGM
738 HAVE_STRPTIME
739 HAVE_NANOSLEEP
740 HAVE_LOCALTIME_R
741 GNULIB_TIME_R
742 GNULIB_TIMEGM
743 GNULIB_STRPTIME
744 GNULIB_NANOSLEEP
745 GNULIB_MKTIME
746 UNDEFINE_STRTOK_R
747 REPLACE_STRTOK_R
748 REPLACE_STRSIGNAL
749 REPLACE_STRNLEN
750 REPLACE_STRNDUP
751 REPLACE_STRNCAT
752 REPLACE_STRERROR
753 REPLACE_STRCASESTR
754 REPLACE_STRSTR
755 REPLACE_STRDUP
756 REPLACE_STPNCPY
757 REPLACE_MEMMEM
758 REPLACE_MEMCHR
759 HAVE_STRVERSCMP
760 HAVE_DECL_STRSIGNAL
761 HAVE_DECL_STRTOK_R
762 HAVE_STRCASESTR
763 HAVE_STRSEP
764 HAVE_STRPBRK
765 HAVE_DECL_STRNLEN
766 HAVE_DECL_STRNDUP
767 HAVE_DECL_STRDUP
768 HAVE_STRCHRNUL
769 HAVE_STPNCPY
770 HAVE_STPCPY
771 HAVE_RAWMEMCHR
772 HAVE_DECL_MEMRCHR
773 HAVE_MEMPCPY
774 HAVE_DECL_MEMMEM
775 HAVE_MEMCHR
776 HAVE_MBSLEN
777 GNULIB_STRVERSCMP
778 GNULIB_STRSIGNAL
779 GNULIB_STRERROR
780 GNULIB_MBSTOK_R
781 GNULIB_MBSSEP
782 GNULIB_MBSSPN
783 GNULIB_MBSPBRK
784 GNULIB_MBSCSPN
785 GNULIB_MBSCASESTR
786 GNULIB_MBSPCASECMP
787 GNULIB_MBSNCASECMP
788 GNULIB_MBSCASECMP
789 GNULIB_MBSSTR
790 GNULIB_MBSRCHR
791 GNULIB_MBSCHR
792 GNULIB_MBSNLEN
793 GNULIB_MBSLEN
794 GNULIB_STRTOK_R
795 GNULIB_STRCASESTR
796 GNULIB_STRSTR
797 GNULIB_STRSEP
798 GNULIB_STRPBRK
799 GNULIB_STRNLEN
800 GNULIB_STRNDUP
801 GNULIB_STRNCAT
802 GNULIB_STRDUP
803 GNULIB_STRCHRNUL
804 GNULIB_STPNCPY
805 GNULIB_STPCPY
806 GNULIB_RAWMEMCHR
807 GNULIB_MEMRCHR
808 GNULIB_MEMPCPY
809 GNULIB_MEMMEM
810 GNULIB_MEMCHR
811 LOCALE_FR_UTF8
812 LOCALE_ZH_CN
813 LOCALE_JA
814 LOCALCHARSET_TESTS_ENVIRONMENT
815 GLIBC21
816 HAVE_LANGINFO_YESEXPR
817 HAVE_LANGINFO_ERA
818 HAVE_LANGINFO_T_FMT_AMPM
819 HAVE_LANGINFO_CODESET
820 HAVE_LANGINFO_H
821 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
822 NEXT_LANGINFO_H
823 REPLACE_NL_LANGINFO
824 HAVE_NL_LANGINFO
825 GNULIB_NL_LANGINFO
826 UINT64_MAX_EQ_ULONG_MAX
827 UINT32_MAX_LT_UINTMAX_MAX
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
830 PRIPTR_PREFIX
831 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
832 NEXT_INTTYPES_H
833 HAVE_DECL_STRTOUMAX
834 HAVE_DECL_STRTOIMAX
835 HAVE_DECL_IMAXDIV
836 HAVE_DECL_IMAXABS
837 GNULIB_STRTOUMAX
838 GNULIB_STRTOIMAX
839 GNULIB_IMAXDIV
840 GNULIB_IMAXABS
841 PRI_MACROS_BROKEN
842 STDINT_H
843 WINT_T_SUFFIX
844 WCHAR_T_SUFFIX
845 SIG_ATOMIC_T_SUFFIX
846 SIZE_T_SUFFIX
847 PTRDIFF_T_SUFFIX
848 HAVE_SIGNED_WINT_T
849 HAVE_SIGNED_WCHAR_T
850 HAVE_SIGNED_SIG_ATOMIC_T
851 BITSIZEOF_WINT_T
852 BITSIZEOF_WCHAR_T
853 BITSIZEOF_SIG_ATOMIC_T
854 BITSIZEOF_SIZE_T
855 BITSIZEOF_PTRDIFF_T
856 APPLE_UNIVERSAL_BUILD
857 HAVE_SYS_BITYPES_H
858 HAVE_SYS_INTTYPES_H
859 HAVE_STDINT_H
860 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
861 NEXT_STDINT_H
862 HAVE_SYS_TYPES_H
863 HAVE_INTTYPES_H
864 HAVE_UNSIGNED_LONG_LONG_INT
865 HAVE_LONG_LONG_INT
866 HAVE__BOOL
867 STDBOOL_H
868 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
869 NEXT_SYS_TIME_H
870 REPLACE_GETTIMEOFDAY
871 HAVE_SYS_TIME_H
872 HAVE_STRUCT_TIMEVAL
873 HAVE_GETTIMEOFDAY
874 GNULIB_GETTIMEOFDAY
875 LTLIBINTL
876 LIBINTL
877 HAVE_GETOPT_H
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
879 NEXT_GETOPT_H
880 FNMATCH_H
881 FLOAT_H
882 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
883 NEXT_FLOAT_H
884 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
885 NEXT_FCNTL_H
886 REPLACE_VSPRINTF
887 REPLACE_VSNPRINTF
888 REPLACE_VPRINTF
889 REPLACE_VFPRINTF
890 REPLACE_VDPRINTF
891 REPLACE_VASPRINTF
892 REPLACE_TMPFILE
893 REPLACE_STDIO_WRITE_FUNCS
894 REPLACE_SPRINTF
895 REPLACE_SNPRINTF
896 REPLACE_RENAMEAT
897 REPLACE_RENAME
898 REPLACE_REMOVE
899 REPLACE_PRINTF
900 REPLACE_POPEN
901 REPLACE_PERROR
902 REPLACE_OBSTACK_PRINTF
903 REPLACE_GETLINE
904 REPLACE_GETDELIM
905 REPLACE_FTELLO
906 REPLACE_FTELL
907 REPLACE_FSEEKO
908 REPLACE_FSEEK
909 REPLACE_FREOPEN
910 REPLACE_FPURGE
911 REPLACE_FPRINTF
912 REPLACE_FOPEN
913 REPLACE_FFLUSH
914 REPLACE_FCLOSE
915 REPLACE_DPRINTF
916 HAVE_VDPRINTF
917 HAVE_VASPRINTF
918 HAVE_RENAMEAT
919 HAVE_FTELLO
920 HAVE_FSEEKO
921 HAVE_DPRINTF
922 HAVE_DECL_VSNPRINTF
923 HAVE_DECL_SNPRINTF
924 HAVE_DECL_OBSTACK_PRINTF
925 HAVE_DECL_GETLINE
926 HAVE_DECL_GETDELIM
927 HAVE_DECL_FPURGE
928 GNULIB_VSPRINTF_POSIX
929 GNULIB_VSNPRINTF
930 GNULIB_VPRINTF_POSIX
931 GNULIB_VPRINTF
932 GNULIB_VFPRINTF_POSIX
933 GNULIB_VFPRINTF
934 GNULIB_VDPRINTF
935 GNULIB_VASPRINTF
936 GNULIB_TMPFILE
937 GNULIB_STDIO_H_SIGPIPE
938 GNULIB_SPRINTF_POSIX
939 GNULIB_SNPRINTF
940 GNULIB_RENAMEAT
941 GNULIB_RENAME
942 GNULIB_REMOVE
943 GNULIB_PUTS
944 GNULIB_PUTCHAR
945 GNULIB_PUTC
946 GNULIB_PRINTF_POSIX
947 GNULIB_PRINTF
948 GNULIB_POPEN
949 GNULIB_PERROR
950 GNULIB_OBSTACK_PRINTF_POSIX
951 GNULIB_OBSTACK_PRINTF
952 GNULIB_GETLINE
953 GNULIB_GETDELIM
954 GNULIB_FWRITE
955 GNULIB_FTELLO
956 GNULIB_FTELL
957 GNULIB_FSEEKO
958 GNULIB_FSEEK
959 GNULIB_FREOPEN
960 GNULIB_FPUTS
961 GNULIB_FPUTC
962 GNULIB_FPURGE
963 GNULIB_FPRINTF_POSIX
964 GNULIB_FPRINTF
965 GNULIB_FOPEN
966 GNULIB_FFLUSH
967 GNULIB_FCLOSE
968 GNULIB_DPRINTF
969 REPLACE_OPENAT
970 REPLACE_OPEN
971 REPLACE_FCNTL
972 HAVE_OPENAT
973 HAVE_FCNTL
974 GNULIB_OPENAT
975 GNULIB_OPEN
976 GNULIB_FCNTL
977 REPLACE_UTIMENSAT
978 REPLACE_STAT
979 REPLACE_MKNOD
980 REPLACE_MKFIFO
981 REPLACE_MKDIR
982 REPLACE_LSTAT
983 REPLACE_FUTIMENS
984 REPLACE_FSTATAT
985 REPLACE_FSTAT
986 HAVE_UTIMENSAT
987 HAVE_MKNODAT
988 HAVE_MKNOD
989 HAVE_MKFIFOAT
990 HAVE_MKFIFO
991 HAVE_MKDIRAT
992 HAVE_LSTAT
993 HAVE_LCHMOD
994 HAVE_FUTIMENS
995 HAVE_FSTATAT
996 HAVE_FCHMODAT
997 GNULIB_UTIMENSAT
998 GNULIB_STAT
999 GNULIB_MKNODAT
1000 GNULIB_MKNOD
1001 GNULIB_MKFIFOAT
1002 GNULIB_MKFIFO
1003 GNULIB_MKDIRAT
1004 GNULIB_LSTAT
1005 GNULIB_LCHMOD
1006 GNULIB_FUTIMENS
1007 GNULIB_FSTATAT
1008 GNULIB_FCHMODAT
1009 EOVERFLOW_VALUE
1010 EOVERFLOW_HIDDEN
1011 ENOLINK_VALUE
1012 ENOLINK_HIDDEN
1013 EMULTIHOP_VALUE
1014 EMULTIHOP_HIDDEN
1015 ERRNO_H
1016 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1017 NEXT_ERRNO_H
1018 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1019 NEXT_DIRENT_H
1020 PRAGMA_COLUMNS
1021 PRAGMA_SYSTEM_HEADER
1022 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1023 INCLUDE_NEXT
1024 REPLACE_OPENDIR
1025 REPLACE_FDOPENDIR
1026 REPLACE_DIRFD
1027 REPLACE_CLOSEDIR
1028 HAVE_ALPHASORT
1029 HAVE_SCANDIR
1030 HAVE_FDOPENDIR
1031 HAVE_DECL_FDOPENDIR
1032 HAVE_DECL_DIRFD
1033 GNULIB_ALPHASORT
1034 GNULIB_SCANDIR
1035 GNULIB_FDOPENDIR
1036 GNULIB_DIRFD
1037 LIB_CLOCK_GETTIME
1038 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1039 UNISTD_H_HAVE_WINSOCK2_H
1040 REPLACE_WRITE
1041 REPLACE_USLEEP
1042 REPLACE_UNLINKAT
1043 REPLACE_UNLINK
1044 REPLACE_TTYNAME_R
1045 REPLACE_SYMLINK
1046 REPLACE_SLEEP
1047 REPLACE_RMDIR
1048 REPLACE_READLINK
1049 REPLACE_PWRITE
1050 REPLACE_PREAD
1051 REPLACE_LSEEK
1052 REPLACE_LINKAT
1053 REPLACE_LINK
1054 REPLACE_LCHOWN
1055 REPLACE_GETPAGESIZE
1056 REPLACE_GETGROUPS
1057 REPLACE_GETCWD
1058 REPLACE_FCHOWNAT
1059 REPLACE_DUP2
1060 REPLACE_DUP
1061 REPLACE_CLOSE
1062 REPLACE_CHOWN
1063 HAVE_SYS_PARAM_H
1064 HAVE_OS_H
1065 HAVE_DECL_GETUSERSHELL
1066 HAVE_DECL_GETPAGESIZE
1067 HAVE_DECL_GETLOGIN_R
1068 HAVE_DECL_ENVIRON
1069 HAVE_USLEEP
1070 HAVE_UNLINKAT
1071 HAVE_TTYNAME_R
1072 HAVE_SYMLINKAT
1073 HAVE_SYMLINK
1074 HAVE_SLEEP
1075 HAVE_READLINKAT
1076 HAVE_READLINK
1077 HAVE_PWRITE
1078 HAVE_PREAD
1079 HAVE_PIPE2
1080 HAVE_LINKAT
1081 HAVE_LINK
1082 HAVE_LCHOWN
1083 HAVE_GETPAGESIZE
1084 HAVE_GETLOGIN
1085 HAVE_GETHOSTNAME
1086 HAVE_GETGROUPS
1087 HAVE_GETDTABLESIZE
1088 HAVE_GETDOMAINNAME
1089 HAVE_FTRUNCATE
1090 HAVE_FSYNC
1091 HAVE_FCHOWNAT
1092 HAVE_FCHDIR
1093 HAVE_FACCESSAT
1094 HAVE_EUIDACCESS
1095 HAVE_DUP3
1096 HAVE_DUP2
1097 HAVE_CHOWN
1098 GNULIB_WRITE
1099 GNULIB_USLEEP
1100 GNULIB_UNLINKAT
1101 GNULIB_UNLINK
1102 GNULIB_UNISTD_H_SIGPIPE
1103 GNULIB_UNISTD_H_GETOPT
1104 GNULIB_TTYNAME_R
1105 GNULIB_SYMLINKAT
1106 GNULIB_SYMLINK
1107 GNULIB_SLEEP
1108 GNULIB_RMDIR
1109 GNULIB_READLINKAT
1110 GNULIB_READLINK
1111 GNULIB_PWRITE
1112 GNULIB_PREAD
1113 GNULIB_PIPE2
1114 GNULIB_LSEEK
1115 GNULIB_LINKAT
1116 GNULIB_LINK
1117 GNULIB_LCHOWN
1118 GNULIB_GETUSERSHELL
1119 GNULIB_GETPAGESIZE
1120 GNULIB_GETLOGIN_R
1121 GNULIB_GETLOGIN
1122 GNULIB_GETHOSTNAME
1123 GNULIB_GETGROUPS
1124 GNULIB_GETDTABLESIZE
1125 GNULIB_GETDOMAINNAME
1126 GNULIB_GETCWD
1127 GNULIB_FTRUNCATE
1128 GNULIB_FSYNC
1129 GNULIB_FCHOWNAT
1130 GNULIB_FCHDIR
1131 GNULIB_FACCESSAT
1132 GNULIB_EUIDACCESS
1133 GNULIB_ENVIRON
1134 GNULIB_DUP3
1135 GNULIB_DUP2
1136 GNULIB_CLOSE
1137 GNULIB_CHOWN
1138 REPLACE_UNSETENV
1139 REPLACE_STRTOD
1140 REPLACE_SETENV
1141 REPLACE_REALPATH
1142 REPLACE_REALLOC
1143 REPLACE_PUTENV
1144 REPLACE_MKSTEMP
1145 REPLACE_MALLOC
1146 REPLACE_CANONICALIZE_FILE_NAME
1147 REPLACE_CALLOC
1148 HAVE_UNSETENV
1149 HAVE_UNLOCKPT
1150 HAVE_SYS_LOADAVG_H
1151 HAVE_STRUCT_RANDOM_DATA
1152 HAVE_STRTOULL
1153 HAVE_STRTOLL
1154 HAVE_STRTOD
1155 HAVE_SETENV
1156 HAVE_RPMATCH
1157 HAVE_REALPATH
1158 HAVE_RANDOM_R
1159 HAVE_PTSNAME
1160 HAVE_MKSTEMPS
1161 HAVE_MKSTEMP
1162 HAVE_MKOSTEMPS
1163 HAVE_MKOSTEMP
1164 HAVE_MKDTEMP
1165 HAVE_GRANTPT
1166 HAVE_GETSUBOPT
1167 HAVE_DECL_GETLOADAVG
1168 HAVE_CANONICALIZE_FILE_NAME
1169 HAVE_ATOLL
1170 HAVE__EXIT
1171 GNULIB_UNSETENV
1172 GNULIB_UNLOCKPT
1173 GNULIB_SYSTEM_POSIX
1174 GNULIB_STRTOULL
1175 GNULIB_STRTOLL
1176 GNULIB_STRTOD
1177 GNULIB_SETENV
1178 GNULIB_RPMATCH
1179 GNULIB_REALPATH
1180 GNULIB_REALLOC_POSIX
1181 GNULIB_RANDOM_R
1182 GNULIB_PUTENV
1183 GNULIB_PTSNAME
1184 GNULIB_MKSTEMPS
1185 GNULIB_MKSTEMP
1186 GNULIB_MKOSTEMPS
1187 GNULIB_MKOSTEMP
1188 GNULIB_MKDTEMP
1189 GNULIB_MALLOC_POSIX
1190 GNULIB_GRANTPT
1191 GNULIB_GETSUBOPT
1192 GNULIB_GETLOADAVG
1193 GNULIB_CANONICALIZE_FILE_NAME
1194 GNULIB_CALLOC_POSIX
1195 GNULIB_ATOLL
1196 GNULIB__EXIT
1197 LOCALE_FR
1198 REPLACE_WCWIDTH
1199 REPLACE_WCSNRTOMBS
1200 REPLACE_WCSRTOMBS
1201 REPLACE_WCRTOMB
1202 REPLACE_MBSNRTOWCS
1203 REPLACE_MBSRTOWCS
1204 REPLACE_MBRLEN
1205 REPLACE_MBRTOWC
1206 REPLACE_MBSINIT
1207 REPLACE_WCTOB
1208 REPLACE_BTOWC
1209 REPLACE_MBSTATE_T
1210 HAVE_DECL_WCWIDTH
1211 HAVE_DECL_WCTOB
1212 HAVE_WCSNRTOMBS
1213 HAVE_WCSRTOMBS
1214 HAVE_WCRTOMB
1215 HAVE_MBSNRTOWCS
1216 HAVE_MBSRTOWCS
1217 HAVE_MBRLEN
1218 HAVE_MBRTOWC
1219 HAVE_MBSINIT
1220 HAVE_BTOWC
1221 GNULIB_WCWIDTH
1222 GNULIB_WCSNRTOMBS
1223 GNULIB_WCSRTOMBS
1224 GNULIB_WCRTOMB
1225 GNULIB_MBSNRTOWCS
1226 GNULIB_MBSRTOWCS
1227 GNULIB_MBRLEN
1228 GNULIB_MBRTOWC
1229 GNULIB_MBSINIT
1230 GNULIB_WCTOB
1231 GNULIB_BTOWC
1232 GETOPT_H
1233 ALLOCA_H
1234 ALLOCA
1235 GL_COND_LIBTOOL_FALSE
1236 GL_COND_LIBTOOL_TRUE
1237 EGREP
1238 GREP
1239 CPP
1240 host_os
1241 host_vendor
1242 host_cpu
1243 host
1244 build_os
1245 build_vendor
1246 build_cpu
1247 build
1248 YFLAGS
1249 YACC
1250 RANLIB
1251 am__fastdepCC_FALSE
1252 am__fastdepCC_TRUE
1253 CCDEPMODE
1254 AMDEPBACKSLASH
1255 AMDEP_FALSE
1256 AMDEP_TRUE
1257 am__quote
1258 am__include
1259 DEPDIR
1260 OBJEXT
1261 EXEEXT
1262 ac_ct_CC
1263 CPPFLAGS
1264 LDFLAGS
1265 CFLAGS
1266 CC
1267 AM_BACKSLASH
1268 AM_DEFAULT_VERBOSITY
1269 am__untar
1270 am__tar
1271 AMTAR
1272 am__leading_dot
1273 SET_MAKE
1274 AWK
1275 mkdir_p
1276 MKDIR_P
1277 INSTALL_STRIP_PROGRAM
1278 STRIP
1279 install_sh
1280 MAKEINFO
1281 AUTOHEADER
1282 AUTOMAKE
1283 AUTOCONF
1284 ACLOCAL
1285 VERSION
1286 PACKAGE
1287 CYGPATH_W
1288 am__isrc
1289 INSTALL_DATA
1290 INSTALL_SCRIPT
1291 INSTALL_PROGRAM
1292 target_alias
1293 host_alias
1294 build_alias
1295 LIBS
1296 ECHO_T
1297 ECHO_N
1298 ECHO_C
1299 DEFS
1300 mandir
1301 localedir
1302 libdir
1303 psdir
1304 pdfdir
1305 dvidir
1306 htmldir
1307 infodir
1308 docdir
1309 oldincludedir
1310 includedir
1311 localstatedir
1312 sharedstatedir
1313 sysconfdir
1314 datadir
1315 datarootdir
1316 libexecdir
1317 sbindir
1318 bindir
1319 program_transform_name
1320 prefix
1321 exec_prefix
1322 PACKAGE_BUGREPORT
1323 PACKAGE_STRING
1324 PACKAGE_VERSION
1325 PACKAGE_TARNAME
1326 PACKAGE_NAME
1327 PATH_SEPARATOR
1328 SHELL'
1329 ac_subst_files=''
1330 ac_user_opts='
1331 enable_option_checking
1332 enable_silent_rules
1333 enable_dependency_tracking
1334 enable_largefile
1335 with_included_regex
1336 with_packager
1337 with_packager_version
1338 with_packager_bug_reports
1339 with_rmt
1340 with_compress
1341 with_gzip
1342 with_bzip2
1343 with_lzip
1344 with_lzma
1345 with_lzop
1346 with_xz
1347 with_gnu_ld
1348 enable_rpath
1349 with_libiconv_prefix
1350 enable_nls
1351 with_libintl_prefix
1352 enable_backup_scripts
1353 '
1354       ac_precious_vars='build_alias
1355 host_alias
1356 target_alias
1357 CC
1358 CFLAGS
1359 LDFLAGS
1360 LIBS
1361 CPPFLAGS
1362 YACC
1363 YFLAGS
1364 CPP
1365 DEFAULT_RMT_DIR
1366 DEFAULT_ARCHIVE_FORMAT
1367 DEFAULT_ARCHIVE
1368 DEFAULT_BLOCKING
1369 DEFAULT_QUOTING_STYLE'
1370
1371
1372 # Initialize some variables set by options.
1373 ac_init_help=
1374 ac_init_version=false
1375 ac_unrecognized_opts=
1376 ac_unrecognized_sep=
1377 # The variables have the same names as the options, with
1378 # dashes changed to underlines.
1379 cache_file=/dev/null
1380 exec_prefix=NONE
1381 no_create=
1382 no_recursion=
1383 prefix=NONE
1384 program_prefix=NONE
1385 program_suffix=NONE
1386 program_transform_name=s,x,x,
1387 silent=
1388 site=
1389 srcdir=
1390 verbose=
1391 x_includes=NONE
1392 x_libraries=NONE
1393
1394 # Installation directory options.
1395 # These are left unexpanded so users can "make install exec_prefix=/foo"
1396 # and all the variables that are supposed to be based on exec_prefix
1397 # by default will actually change.
1398 # Use braces instead of parens because sh, perl, etc. also accept them.
1399 # (The list follows the same order as the GNU Coding Standards.)
1400 bindir='${exec_prefix}/bin'
1401 sbindir='${exec_prefix}/sbin'
1402 libexecdir='${exec_prefix}/libexec'
1403 datarootdir='${prefix}/share'
1404 datadir='${datarootdir}'
1405 sysconfdir='${prefix}/etc'
1406 sharedstatedir='${prefix}/com'
1407 localstatedir='${prefix}/var'
1408 includedir='${prefix}/include'
1409 oldincludedir='/usr/include'
1410 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1411 infodir='${datarootdir}/info'
1412 htmldir='${docdir}'
1413 dvidir='${docdir}'
1414 pdfdir='${docdir}'
1415 psdir='${docdir}'
1416 libdir='${exec_prefix}/lib'
1417 localedir='${datarootdir}/locale'
1418 mandir='${datarootdir}/man'
1419
1420 ac_prev=
1421 ac_dashdash=
1422 for ac_option
1423 do
1424   # If the previous option needs an argument, assign it.
1425   if test -n "$ac_prev"; then
1426     eval $ac_prev=\$ac_option
1427     ac_prev=
1428     continue
1429   fi
1430
1431   case $ac_option in
1432   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1433   *)    ac_optarg=yes ;;
1434   esac
1435
1436   # Accept the important Cygnus configure options, so we can diagnose typos.
1437
1438   case $ac_dashdash$ac_option in
1439   --)
1440     ac_dashdash=yes ;;
1441
1442   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1443     ac_prev=bindir ;;
1444   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1445     bindir=$ac_optarg ;;
1446
1447   -build | --build | --buil | --bui | --bu)
1448     ac_prev=build_alias ;;
1449   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1450     build_alias=$ac_optarg ;;
1451
1452   -cache-file | --cache-file | --cache-fil | --cache-fi \
1453   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1454     ac_prev=cache_file ;;
1455   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1456   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1457     cache_file=$ac_optarg ;;
1458
1459   --config-cache | -C)
1460     cache_file=config.cache ;;
1461
1462   -datadir | --datadir | --datadi | --datad)
1463     ac_prev=datadir ;;
1464   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1465     datadir=$ac_optarg ;;
1466
1467   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1468   | --dataroo | --dataro | --datar)
1469     ac_prev=datarootdir ;;
1470   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1471   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1472     datarootdir=$ac_optarg ;;
1473
1474   -disable-* | --disable-*)
1475     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1476     # Reject names that are not valid shell variable names.
1477     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1479    { (exit 1); exit 1; }; }
1480     ac_useropt_orig=$ac_useropt
1481     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482     case $ac_user_opts in
1483       *"
1484 "enable_$ac_useropt"
1485 "*) ;;
1486       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487          ac_unrecognized_sep=', ';;
1488     esac
1489     eval enable_$ac_useropt=no ;;
1490
1491   -docdir | --docdir | --docdi | --doc | --do)
1492     ac_prev=docdir ;;
1493   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1494     docdir=$ac_optarg ;;
1495
1496   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1497     ac_prev=dvidir ;;
1498   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1499     dvidir=$ac_optarg ;;
1500
1501   -enable-* | --enable-*)
1502     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503     # Reject names that are not valid shell variable names.
1504     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1506    { (exit 1); exit 1; }; }
1507     ac_useropt_orig=$ac_useropt
1508     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509     case $ac_user_opts in
1510       *"
1511 "enable_$ac_useropt"
1512 "*) ;;
1513       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1514          ac_unrecognized_sep=', ';;
1515     esac
1516     eval enable_$ac_useropt=\$ac_optarg ;;
1517
1518   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1519   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1520   | --exec | --exe | --ex)
1521     ac_prev=exec_prefix ;;
1522   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1523   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1524   | --exec=* | --exe=* | --ex=*)
1525     exec_prefix=$ac_optarg ;;
1526
1527   -gas | --gas | --ga | --g)
1528     # Obsolete; use --with-gas.
1529     with_gas=yes ;;
1530
1531   -help | --help | --hel | --he | -h)
1532     ac_init_help=long ;;
1533   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1534     ac_init_help=recursive ;;
1535   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1536     ac_init_help=short ;;
1537
1538   -host | --host | --hos | --ho)
1539     ac_prev=host_alias ;;
1540   -host=* | --host=* | --hos=* | --ho=*)
1541     host_alias=$ac_optarg ;;
1542
1543   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1544     ac_prev=htmldir ;;
1545   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1546   | --ht=*)
1547     htmldir=$ac_optarg ;;
1548
1549   -includedir | --includedir | --includedi | --included | --include \
1550   | --includ | --inclu | --incl | --inc)
1551     ac_prev=includedir ;;
1552   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1553   | --includ=* | --inclu=* | --incl=* | --inc=*)
1554     includedir=$ac_optarg ;;
1555
1556   -infodir | --infodir | --infodi | --infod | --info | --inf)
1557     ac_prev=infodir ;;
1558   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1559     infodir=$ac_optarg ;;
1560
1561   -libdir | --libdir | --libdi | --libd)
1562     ac_prev=libdir ;;
1563   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1564     libdir=$ac_optarg ;;
1565
1566   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1567   | --libexe | --libex | --libe)
1568     ac_prev=libexecdir ;;
1569   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1570   | --libexe=* | --libex=* | --libe=*)
1571     libexecdir=$ac_optarg ;;
1572
1573   -localedir | --localedir | --localedi | --localed | --locale)
1574     ac_prev=localedir ;;
1575   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1576     localedir=$ac_optarg ;;
1577
1578   -localstatedir | --localstatedir | --localstatedi | --localstated \
1579   | --localstate | --localstat | --localsta | --localst | --locals)
1580     ac_prev=localstatedir ;;
1581   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1582   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1583     localstatedir=$ac_optarg ;;
1584
1585   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1586     ac_prev=mandir ;;
1587   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1588     mandir=$ac_optarg ;;
1589
1590   -nfp | --nfp | --nf)
1591     # Obsolete; use --without-fp.
1592     with_fp=no ;;
1593
1594   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1595   | --no-cr | --no-c | -n)
1596     no_create=yes ;;
1597
1598   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1599   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1600     no_recursion=yes ;;
1601
1602   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1603   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1604   | --oldin | --oldi | --old | --ol | --o)
1605     ac_prev=oldincludedir ;;
1606   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1607   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1608   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1609     oldincludedir=$ac_optarg ;;
1610
1611   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1612     ac_prev=prefix ;;
1613   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1614     prefix=$ac_optarg ;;
1615
1616   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1617   | --program-pre | --program-pr | --program-p)
1618     ac_prev=program_prefix ;;
1619   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1620   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1621     program_prefix=$ac_optarg ;;
1622
1623   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1624   | --program-suf | --program-su | --program-s)
1625     ac_prev=program_suffix ;;
1626   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1627   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1628     program_suffix=$ac_optarg ;;
1629
1630   -program-transform-name | --program-transform-name \
1631   | --program-transform-nam | --program-transform-na \
1632   | --program-transform-n | --program-transform- \
1633   | --program-transform | --program-transfor \
1634   | --program-transfo | --program-transf \
1635   | --program-trans | --program-tran \
1636   | --progr-tra | --program-tr | --program-t)
1637     ac_prev=program_transform_name ;;
1638   -program-transform-name=* | --program-transform-name=* \
1639   | --program-transform-nam=* | --program-transform-na=* \
1640   | --program-transform-n=* | --program-transform-=* \
1641   | --program-transform=* | --program-transfor=* \
1642   | --program-transfo=* | --program-transf=* \
1643   | --program-trans=* | --program-tran=* \
1644   | --progr-tra=* | --program-tr=* | --program-t=*)
1645     program_transform_name=$ac_optarg ;;
1646
1647   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1648     ac_prev=pdfdir ;;
1649   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1650     pdfdir=$ac_optarg ;;
1651
1652   -psdir | --psdir | --psdi | --psd | --ps)
1653     ac_prev=psdir ;;
1654   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1655     psdir=$ac_optarg ;;
1656
1657   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658   | -silent | --silent | --silen | --sile | --sil)
1659     silent=yes ;;
1660
1661   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1662     ac_prev=sbindir ;;
1663   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1664   | --sbi=* | --sb=*)
1665     sbindir=$ac_optarg ;;
1666
1667   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1668   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1669   | --sharedst | --shareds | --shared | --share | --shar \
1670   | --sha | --sh)
1671     ac_prev=sharedstatedir ;;
1672   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1673   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1674   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1675   | --sha=* | --sh=*)
1676     sharedstatedir=$ac_optarg ;;
1677
1678   -site | --site | --sit)
1679     ac_prev=site ;;
1680   -site=* | --site=* | --sit=*)
1681     site=$ac_optarg ;;
1682
1683   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1684     ac_prev=srcdir ;;
1685   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1686     srcdir=$ac_optarg ;;
1687
1688   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1689   | --syscon | --sysco | --sysc | --sys | --sy)
1690     ac_prev=sysconfdir ;;
1691   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1692   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1693     sysconfdir=$ac_optarg ;;
1694
1695   -target | --target | --targe | --targ | --tar | --ta | --t)
1696     ac_prev=target_alias ;;
1697   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1698     target_alias=$ac_optarg ;;
1699
1700   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1701     verbose=yes ;;
1702
1703   -version | --version | --versio | --versi | --vers | -V)
1704     ac_init_version=: ;;
1705
1706   -with-* | --with-*)
1707     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1708     # Reject names that are not valid shell variable names.
1709     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1710       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1711    { (exit 1); exit 1; }; }
1712     ac_useropt_orig=$ac_useropt
1713     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1714     case $ac_user_opts in
1715       *"
1716 "with_$ac_useropt"
1717 "*) ;;
1718       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1719          ac_unrecognized_sep=', ';;
1720     esac
1721     eval with_$ac_useropt=\$ac_optarg ;;
1722
1723   -without-* | --without-*)
1724     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1725     # Reject names that are not valid shell variable names.
1726     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1727       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1728    { (exit 1); exit 1; }; }
1729     ac_useropt_orig=$ac_useropt
1730     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731     case $ac_user_opts in
1732       *"
1733 "with_$ac_useropt"
1734 "*) ;;
1735       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1736          ac_unrecognized_sep=', ';;
1737     esac
1738     eval with_$ac_useropt=no ;;
1739
1740   --x)
1741     # Obsolete; use --with-x.
1742     with_x=yes ;;
1743
1744   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1745   | --x-incl | --x-inc | --x-in | --x-i)
1746     ac_prev=x_includes ;;
1747   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1748   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1749     x_includes=$ac_optarg ;;
1750
1751   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1752   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1753     ac_prev=x_libraries ;;
1754   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1755   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1756     x_libraries=$ac_optarg ;;
1757
1758   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1759 Try \`$0 --help' for more information." >&2
1760    { (exit 1); exit 1; }; }
1761     ;;
1762
1763   *=*)
1764     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1765     # Reject names that are not valid shell variable names.
1766     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1767       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1768    { (exit 1); exit 1; }; }
1769     eval $ac_envvar=\$ac_optarg
1770     export $ac_envvar ;;
1771
1772   *)
1773     # FIXME: should be removed in autoconf 3.0.
1774     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1775     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1776       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1777     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1778     ;;
1779
1780   esac
1781 done
1782
1783 if test -n "$ac_prev"; then
1784   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1785   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1786    { (exit 1); exit 1; }; }
1787 fi
1788
1789 if test -n "$ac_unrecognized_opts"; then
1790   case $enable_option_checking in
1791     no) ;;
1792     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1793    { (exit 1); exit 1; }; } ;;
1794     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1795   esac
1796 fi
1797
1798 # Check all directory arguments for consistency.
1799 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1800                 datadir sysconfdir sharedstatedir localstatedir includedir \
1801                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1802                 libdir localedir mandir
1803 do
1804   eval ac_val=\$$ac_var
1805   # Remove trailing slashes.
1806   case $ac_val in
1807     */ )
1808       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1809       eval $ac_var=\$ac_val;;
1810   esac
1811   # Be sure to have absolute directory names.
1812   case $ac_val in
1813     [\\/$]* | ?:[\\/]* )  continue;;
1814     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1815   esac
1816   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1817    { (exit 1); exit 1; }; }
1818 done
1819
1820 # There might be people who depend on the old broken behavior: `$host'
1821 # used to hold the argument of --host etc.
1822 # FIXME: To remove some day.
1823 build=$build_alias
1824 host=$host_alias
1825 target=$target_alias
1826
1827 # FIXME: To remove some day.
1828 if test "x$host_alias" != x; then
1829   if test "x$build_alias" = x; then
1830     cross_compiling=maybe
1831     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1832     If a cross compiler is detected then cross compile mode will be used." >&2
1833   elif test "x$build_alias" != "x$host_alias"; then
1834     cross_compiling=yes
1835   fi
1836 fi
1837
1838 ac_tool_prefix=
1839 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1840
1841 test "$silent" = yes && exec 6>/dev/null
1842
1843
1844 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1845 ac_ls_di=`ls -di .` &&
1846 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1847   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1848    { (exit 1); exit 1; }; }
1849 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1850   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1851    { (exit 1); exit 1; }; }
1852
1853
1854 # Find the source files, if location was not specified.
1855 if test -z "$srcdir"; then
1856   ac_srcdir_defaulted=yes
1857   # Try the directory containing this script, then the parent directory.
1858   ac_confdir=`$as_dirname -- "$as_myself" ||
1859 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1860          X"$as_myself" : 'X\(//\)[^/]' \| \
1861          X"$as_myself" : 'X\(//\)$' \| \
1862          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1863 $as_echo X"$as_myself" |
1864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1865             s//\1/
1866             q
1867           }
1868           /^X\(\/\/\)[^/].*/{
1869             s//\1/
1870             q
1871           }
1872           /^X\(\/\/\)$/{
1873             s//\1/
1874             q
1875           }
1876           /^X\(\/\).*/{
1877             s//\1/
1878             q
1879           }
1880           s/.*/./; q'`
1881   srcdir=$ac_confdir
1882   if test ! -r "$srcdir/$ac_unique_file"; then
1883     srcdir=..
1884   fi
1885 else
1886   ac_srcdir_defaulted=no
1887 fi
1888 if test ! -r "$srcdir/$ac_unique_file"; then
1889   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1890   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1891    { (exit 1); exit 1; }; }
1892 fi
1893 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1894 ac_abs_confdir=`(
1895         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1896    { (exit 1); exit 1; }; }
1897         pwd)`
1898 # When building in place, set srcdir=.
1899 if test "$ac_abs_confdir" = "$ac_pwd"; then
1900   srcdir=.
1901 fi
1902 # Remove unnecessary trailing slashes from srcdir.
1903 # Double slashes in file names in object file debugging info
1904 # mess up M-x gdb in Emacs.
1905 case $srcdir in
1906 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1907 esac
1908 for ac_var in $ac_precious_vars; do
1909   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1910   eval ac_env_${ac_var}_value=\$${ac_var}
1911   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1912   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1913 done
1914
1915 #
1916 # Report the --help message.
1917 #
1918 if test "$ac_init_help" = "long"; then
1919   # Omit some internal or obsolete options to make the list less imposing.
1920   # This message is too long to be a string in the A/UX 3.1 sh.
1921   cat <<_ACEOF
1922 \`configure' configures GNU tar 1.24 to adapt to many kinds of systems.
1923
1924 Usage: $0 [OPTION]... [VAR=VALUE]...
1925
1926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1927 VAR=VALUE.  See below for descriptions of some of the useful variables.
1928
1929 Defaults for the options are specified in brackets.
1930
1931 Configuration:
1932   -h, --help              display this help and exit
1933       --help=short        display options specific to this package
1934       --help=recursive    display the short help of all the included packages
1935   -V, --version           display version information and exit
1936   -q, --quiet, --silent   do not print \`checking...' messages
1937       --cache-file=FILE   cache test results in FILE [disabled]
1938   -C, --config-cache      alias for \`--cache-file=config.cache'
1939   -n, --no-create         do not create output files
1940       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1941
1942 Installation directories:
1943   --prefix=PREFIX         install architecture-independent files in PREFIX
1944                           [$ac_default_prefix]
1945   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1946                           [PREFIX]
1947
1948 By default, \`make install' will install all the files in
1949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1951 for instance \`--prefix=\$HOME'.
1952
1953 For better control, use the options below.
1954
1955 Fine tuning of the installation directories:
1956   --bindir=DIR            user executables [EPREFIX/bin]
1957   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1958   --libexecdir=DIR        program executables [EPREFIX/libexec]
1959   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1960   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1961   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1962   --libdir=DIR            object code libraries [EPREFIX/lib]
1963   --includedir=DIR        C header files [PREFIX/include]
1964   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1965   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1966   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1967   --infodir=DIR           info documentation [DATAROOTDIR/info]
1968   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1969   --mandir=DIR            man documentation [DATAROOTDIR/man]
1970   --docdir=DIR            documentation root [DATAROOTDIR/doc/tar]
1971   --htmldir=DIR           html documentation [DOCDIR]
1972   --dvidir=DIR            dvi documentation [DOCDIR]
1973   --pdfdir=DIR            pdf documentation [DOCDIR]
1974   --psdir=DIR             ps documentation [DOCDIR]
1975 _ACEOF
1976
1977   cat <<\_ACEOF
1978
1979 Program names:
1980   --program-prefix=PREFIX            prepend PREFIX to installed program names
1981   --program-suffix=SUFFIX            append SUFFIX to installed program names
1982   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1983
1984 System types:
1985   --build=BUILD     configure for building on BUILD [guessed]
1986   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1987 _ACEOF
1988 fi
1989
1990 if test -n "$ac_init_help"; then
1991   case $ac_init_help in
1992      short | recursive ) echo "Configuration of GNU tar 1.24:";;
1993    esac
1994   cat <<\_ACEOF
1995
1996 Optional Features:
1997   --disable-option-checking  ignore unrecognized --enable/--with options
1998   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1999   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2000   --enable-silent-rules          less verbose build output (undo: `make V=1')
2001   --disable-silent-rules         verbose build output (undo: `make V=0')
2002   --disable-dependency-tracking  speeds up one-time build
2003   --enable-dependency-tracking   do not reject slow dependency extractors
2004   --disable-largefile     omit support for large files
2005   --disable-rpath         do not hardcode runtime library paths
2006   --disable-nls           do not use Native Language Support
2007   --enable-backup-scripts Create and install backup and restore scripts
2008
2009 Optional Packages:
2010   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2011   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2012   --without-included-regex
2013                           don't compile regex; this is the default on systems
2014                           with recent-enough versions of the GNU C Library
2015                           (use with caution on other systems).
2016   --with-packager         String identifying the packager of this software
2017   --with-packager-version Packager-specific version information
2018   --with-packager-bug-reports
2019                           Packager info for bug reports (URL/e-mail/...)
2020   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
2021                           included copy of `rmt'.
2022   --with-compress=PROG    use PROG as compress compressor program
2023   --with-gzip=PROG        use PROG as gzip compressor program
2024   --with-bzip2=PROG       use PROG as bzip2 compressor program
2025   --with-lzip=PROG        use PROG as lzip compressor program
2026   --with-lzma=PROG        use PROG as lzma compressor program
2027   --with-lzop=PROG        use PROG as lzop compressor program
2028   --with-xz=PROG          use PROG as xz compressor program
2029   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2030   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2031   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2032   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2033   --without-libintl-prefix     don't search for libintl in includedir and libdir
2034
2035 Some influential environment variables:
2036   CC          C compiler command
2037   CFLAGS      C compiler flags
2038   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2039               nonstandard directory <lib dir>
2040   LIBS        libraries to pass to the linker, e.g. -l<library>
2041   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2042               you have headers in a nonstandard directory <include dir>
2043   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2044               the first program found out of: `bison -y', `byacc', `yacc'.
2045   YFLAGS      The list of arguments that will be passed by default to $YACC.
2046               This script will default YFLAGS to the empty string to avoid a
2047               default value of `-d' given by some make applications.
2048   CPP         C preprocessor
2049   DEFAULT_RMT_DIR
2050               Define full file name of the directory where to install `rmt'.
2051               (default: $(libexecdir))
2052   DEFAULT_ARCHIVE_FORMAT
2053               Set the default archive format. Allowed values are: V7, OLDGNU,
2054               USTAR, POSIX, GNU. Default is GNU
2055   DEFAULT_ARCHIVE
2056               Set the name of the default archive (default: -)
2057   DEFAULT_BLOCKING
2058               Define default blocking factor (default: 20)
2059   DEFAULT_QUOTING_STYLE
2060               Set the default quoting style. Allowed values are: literal,
2061               shell, shell-always, c, escape, locale, clocale . Default is
2062               "escape".
2063
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066
2067 Report bugs to <bug-tar@gnu.org>.
2068 _ACEOF
2069 ac_status=$?
2070 fi
2071
2072 if test "$ac_init_help" = "recursive"; then
2073   # If there are subdirs, report their specific --help.
2074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2075     test -d "$ac_dir" ||
2076       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2077       continue
2078     ac_builddir=.
2079
2080 case "$ac_dir" in
2081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2082 *)
2083   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2084   # A ".." for each directory in $ac_dir_suffix.
2085   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2086   case $ac_top_builddir_sub in
2087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2089   esac ;;
2090 esac
2091 ac_abs_top_builddir=$ac_pwd
2092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2093 # for backward compatibility:
2094 ac_top_builddir=$ac_top_build_prefix
2095
2096 case $srcdir in
2097   .)  # We are building in place.
2098     ac_srcdir=.
2099     ac_top_srcdir=$ac_top_builddir_sub
2100     ac_abs_top_srcdir=$ac_pwd ;;
2101   [\\/]* | ?:[\\/]* )  # Absolute name.
2102     ac_srcdir=$srcdir$ac_dir_suffix;
2103     ac_top_srcdir=$srcdir
2104     ac_abs_top_srcdir=$srcdir ;;
2105   *) # Relative name.
2106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2107     ac_top_srcdir=$ac_top_build_prefix$srcdir
2108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2109 esac
2110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2111
2112     cd "$ac_dir" || { ac_status=$?; continue; }
2113     # Check for guested configure.
2114     if test -f "$ac_srcdir/configure.gnu"; then
2115       echo &&
2116       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2117     elif test -f "$ac_srcdir/configure"; then
2118       echo &&
2119       $SHELL "$ac_srcdir/configure" --help=recursive
2120     else
2121       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2122     fi || ac_status=$?
2123     cd "$ac_pwd" || { ac_status=$?; break; }
2124   done
2125 fi
2126
2127 test -n "$ac_init_help" && exit $ac_status
2128 if $ac_init_version; then
2129   cat <<\_ACEOF
2130 GNU tar configure 1.24
2131 generated by GNU Autoconf 2.63
2132
2133 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2134 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138   exit
2139 fi
2140 cat >config.log <<_ACEOF
2141 This file contains any messages produced by compilers while
2142 running configure, to aid debugging if configure makes a mistake.
2143
2144 It was created by GNU tar $as_me 1.24, which was
2145 generated by GNU Autoconf 2.63.  Invocation command line was
2146
2147   $ $0 $@
2148
2149 _ACEOF
2150 exec 5>>config.log
2151 {
2152 cat <<_ASUNAME
2153 ## --------- ##
2154 ## Platform. ##
2155 ## --------- ##
2156
2157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162
2163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2165
2166 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2167 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2170 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2171 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2172 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2173
2174 _ASUNAME
2175
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   $as_echo "PATH: $as_dir"
2182 done
2183 IFS=$as_save_IFS
2184
2185 } >&5
2186
2187 cat >&5 <<_ACEOF
2188
2189
2190 ## ----------- ##
2191 ## Core tests. ##
2192 ## ----------- ##
2193
2194 _ACEOF
2195
2196
2197 # Keep a trace of the command line.
2198 # Strip out --no-create and --no-recursion so they do not pile up.
2199 # Strip out --silent because we don't want to record it for future runs.
2200 # Also quote any args containing shell meta-characters.
2201 # Make two passes to allow for proper duplicate-argument suppression.
2202 ac_configure_args=
2203 ac_configure_args0=
2204 ac_configure_args1=
2205 ac_must_keep_next=false
2206 for ac_pass in 1 2
2207 do
2208   for ac_arg
2209   do
2210     case $ac_arg in
2211     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2212     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2213     | -silent | --silent | --silen | --sile | --sil)
2214       continue ;;
2215     *\'*)
2216       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2217     esac
2218     case $ac_pass in
2219     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2220     2)
2221       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2222       if test $ac_must_keep_next = true; then
2223         ac_must_keep_next=false # Got value, back to normal.
2224       else
2225         case $ac_arg in
2226           *=* | --config-cache | -C | -disable-* | --disable-* \
2227           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2228           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2229           | -with-* | --with-* | -without-* | --without-* | --x)
2230             case "$ac_configure_args0 " in
2231               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2232             esac
2233             ;;
2234           -* ) ac_must_keep_next=true ;;
2235         esac
2236       fi
2237       ac_configure_args="$ac_configure_args '$ac_arg'"
2238       ;;
2239     esac
2240   done
2241 done
2242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2244
2245 # When interrupted or exit'd, cleanup temporary files, and complete
2246 # config.log.  We remove comments because anyway the quotes in there
2247 # would cause problems or look ugly.
2248 # WARNING: Use '\'' to represent an apostrophe within the trap.
2249 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2250 trap 'exit_status=$?
2251   # Save into config.log some information that might help in debugging.
2252   {
2253     echo
2254
2255     cat <<\_ASBOX
2256 ## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##
2259 _ASBOX
2260     echo
2261     # The following way of writing the cache mishandles newlines in values,
2262 (
2263   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2264     eval ac_val=\$$ac_var
2265     case $ac_val in #(
2266     *${as_nl}*)
2267       case $ac_var in #(
2268       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2270       esac
2271       case $ac_var in #(
2272       _ | IFS | as_nl) ;; #(
2273       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2274       *) $as_unset $ac_var ;;
2275       esac ;;
2276     esac
2277   done
2278   (set) 2>&1 |
2279     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2280     *${as_nl}ac_space=\ *)
2281       sed -n \
2282         "s/'\''/'\''\\\\'\'''\''/g;
2283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2284       ;; #(
2285     *)
2286       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2287       ;;
2288     esac |
2289     sort
2290 )
2291     echo
2292
2293     cat <<\_ASBOX
2294 ## ----------------- ##
2295 ## Output variables. ##
2296 ## ----------------- ##
2297 _ASBOX
2298     echo
2299     for ac_var in $ac_subst_vars
2300     do
2301       eval ac_val=\$$ac_var
2302       case $ac_val in
2303       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304       esac
2305       $as_echo "$ac_var='\''$ac_val'\''"
2306     done | sort
2307     echo
2308
2309     if test -n "$ac_subst_files"; then
2310       cat <<\_ASBOX
2311 ## ------------------- ##
2312 ## File substitutions. ##
2313 ## ------------------- ##
2314 _ASBOX
2315       echo
2316       for ac_var in $ac_subst_files
2317       do
2318         eval ac_val=\$$ac_var
2319         case $ac_val in
2320         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321         esac
2322         $as_echo "$ac_var='\''$ac_val'\''"
2323       done | sort
2324       echo
2325     fi
2326
2327     if test -s confdefs.h; then
2328       cat <<\_ASBOX
2329 ## ----------- ##
2330 ## confdefs.h. ##
2331 ## ----------- ##
2332 _ASBOX
2333       echo
2334       cat confdefs.h
2335       echo
2336     fi
2337     test "$ac_signal" != 0 &&
2338       $as_echo "$as_me: caught signal $ac_signal"
2339     $as_echo "$as_me: exit $exit_status"
2340   } >&5
2341   rm -f core *.core core.conftest.* &&
2342     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2343     exit $exit_status
2344 ' 0
2345 for ac_signal in 1 2 13 15; do
2346   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2347 done
2348 ac_signal=0
2349
2350 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2351 rm -f -r conftest* confdefs.h
2352
2353 # Predefined preprocessor variables.
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_NAME "$PACKAGE_NAME"
2357 _ACEOF
2358
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2363
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2367 _ACEOF
2368
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_STRING "$PACKAGE_STRING"
2372 _ACEOF
2373
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377 _ACEOF
2378
2379
2380 # Let the site file select an alternate cache file if it wants to.
2381 # Prefer an explicitly selected file to automatically selected ones.
2382 ac_site_file1=NONE
2383 ac_site_file2=NONE
2384 if test -n "$CONFIG_SITE"; then
2385   ac_site_file1=$CONFIG_SITE
2386 elif test "x$prefix" != xNONE; then
2387   ac_site_file1=$prefix/share/config.site
2388   ac_site_file2=$prefix/etc/config.site
2389 else
2390   ac_site_file1=$ac_default_prefix/share/config.site
2391   ac_site_file2=$ac_default_prefix/etc/config.site
2392 fi
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394 do
2395   test "x$ac_site_file" = xNONE && continue
2396   if test -r "$ac_site_file"; then
2397     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399     sed 's/^/| /' "$ac_site_file" >&5
2400     . "$ac_site_file"
2401   fi
2402 done
2403
2404 if test -r "$cache_file"; then
2405   # Some versions of bash will fail to source /dev/null (special
2406   # files actually), so we avoid doing that.
2407   if test -f "$cache_file"; then
2408     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2409 $as_echo "$as_me: loading cache $cache_file" >&6;}
2410     case $cache_file in
2411       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2412       *)                      . "./$cache_file";;
2413     esac
2414   fi
2415 else
2416   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2417 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418   >$cache_file
2419 fi
2420
2421 ac_header_list="$ac_header_list fcntl.h"
2422 ac_header_list="$ac_header_list linux/fd.h"
2423 ac_header_list="$ac_header_list memory.h"
2424 ac_header_list="$ac_header_list net/errno.h"
2425 ac_header_list="$ac_header_list sgtty.h"
2426 ac_header_list="$ac_header_list string.h"
2427 ac_header_list="$ac_header_list sys/param.h"
2428 ac_header_list="$ac_header_list sys/device.h"
2429 ac_header_list="$ac_header_list sys/gentape.h"
2430 ac_header_list="$ac_header_list sys/inet.h"
2431 ac_header_list="$ac_header_list sys/io/trioctl.h"
2432 ac_header_list="$ac_header_list sys/mtio.h"
2433 ac_header_list="$ac_header_list sys/time.h"
2434 ac_header_list="$ac_header_list sys/tprintf.h"
2435 ac_header_list="$ac_header_list sys/tape.h"
2436 ac_header_list="$ac_header_list unistd.h"
2437 ac_header_list="$ac_header_list locale.h"
2438 ac_func_list="$ac_func_list flockfile"
2439 ac_func_list="$ac_func_list funlockfile"
2440 ac_header_list="$ac_header_list features.h"
2441 ac_header_list="$ac_header_list linewrap.h"
2442 ac_func_list="$ac_func_list pathconf"
2443 ac_func_list="$ac_func_list btowc"
2444 ac_func_list="$ac_func_list canonicalize_file_name"
2445 ac_func_list="$ac_func_list getcwd"
2446 ac_func_list="$ac_func_list readlink"
2447 ac_func_list="$ac_func_list realpath"
2448 ac_func_list="$ac_func_list chown"
2449 ac_func_list="$ac_func_list fchown"
2450 ac_header_list="$ac_header_list dirent.h"
2451 ac_func_list="$ac_func_list fdopendir"
2452 ac_func_list="$ac_func_list dup2"
2453 ac_header_list="$ac_header_list errno.h"
2454 ac_func_list="$ac_func_list fchdir"
2455 ac_func_list="$ac_func_list fcntl"
2456 ac_func_list="$ac_func_list mempcpy"
2457 ac_header_list="$ac_header_list float.h"
2458 ac_func_list="$ac_func_list isblank"
2459 ac_func_list="$ac_func_list iswctype"
2460 ac_func_list="$ac_func_list mbsrtowcs"
2461 ac_func_list="$ac_func_list wmemchr"
2462 ac_func_list="$ac_func_list wmemcpy"
2463 ac_func_list="$ac_func_list wmempcpy"
2464 ac_header_list="$ac_header_list wctype.h"
2465 gl_fnmatch_required=GNU
2466 ac_header_list="$ac_header_list stdio_ext.h"
2467 ac_func_list="$ac_func_list __fpending"
2468 ac_func_list="$ac_func_list futimens"
2469 ac_func_list="$ac_func_list getdelim"
2470 ac_func_list="$ac_func_list getdtablesize"
2471 gl_getopt_required=GNU
2472 ac_header_list="$ac_header_list getopt.h"
2473 ac_func_list="$ac_func_list gettimeofday"
2474 ac_func_list="$ac_func_list nanotime"
2475 ac_header_list="$ac_header_list stdint.h"
2476 ac_header_list="$ac_header_list wchar.h"
2477 ac_header_list="$ac_header_list inttypes.h"
2478 ac_header_list="$ac_header_list langinfo.h"
2479 ac_func_list="$ac_func_list lchmod"
2480 ac_func_list="$ac_func_list link"
2481 ac_func_list="$ac_func_list linkat"
2482 ac_func_list="$ac_func_list symlink"
2483 ac_func_list="$ac_func_list lstat"
2484 ac_func_list="$ac_func_list mbsinit"
2485 ac_func_list="$ac_func_list mbrtowc"
2486 ac_header_list="$ac_header_list sys/mman.h"
2487 ac_func_list="$ac_func_list mprotect"
2488 ac_func_list="$ac_func_list memchr"
2489 ac_func_list="$ac_func_list mkfifo"
2490 ac_func_list="$ac_func_list mkfifoat"
2491 ac_func_list="$ac_func_list mknodat"
2492 ac_func_list="$ac_func_list mknod"
2493 ac_func_list="$ac_func_list alarm"
2494 ac_func_list="$ac_func_list nl_langinfo"
2495 ac_header_list="$ac_header_list priv.h"
2496 ac_func_list="$ac_func_list readlinkat"
2497 ac_func_list="$ac_func_list wcscoll"
2498 ac_func_list="$ac_func_list renameat"
2499 ac_func_list="$ac_func_list setenv"
2500 ac_func_list="$ac_func_list sleep"
2501 ac_header_list="$ac_header_list stdarg.h"
2502 ac_header_list="$ac_header_list stddef.h"
2503 ac_header_list="$ac_header_list stdio.h"
2504 ac_header_list="$ac_header_list stdlib.h"
2505 ac_func_list="$ac_func_list strdup"
2506 ac_header_list="$ac_header_list sys/socket.h"
2507 ac_header_list="$ac_header_list strings.h"
2508 ac_func_list="$ac_func_list strndup"
2509 ac_func_list="$ac_func_list symlinkat"
2510 ac_header_list="$ac_header_list sys/stat.h"
2511 ac_header_list="$ac_header_list sysexits.h"
2512 ac_header_list="$ac_header_list time.h"
2513 ac_func_list="$ac_func_list localtime_r"
2514 ac_func_list="$ac_func_list pipe"
2515 ac_header_list="$ac_header_list utime.h"
2516 ac_func_list="$ac_func_list futimes"
2517 ac_func_list="$ac_func_list futimesat"
2518 ac_func_list="$ac_func_list utimensat"
2519 ac_func_list="$ac_func_list lutimes"
2520 ac_func_list="$ac_func_list vasnprintf"
2521 ac_func_list="$ac_func_list wcrtomb"
2522 ac_func_list="$ac_func_list iswcntrl"
2523 ac_func_list="$ac_func_list iswblank"
2524 ac_func_list="$ac_func_list wcwidth"
2525 ac_header_list="$ac_header_list netdb.h"
2526 ac_header_list="$ac_header_list sys/wait.h"
2527 ac_header_list="$ac_header_list pwd.h"
2528 ac_header_list="$ac_header_list grp.h"
2529 ac_func_list="$ac_func_list setlocale"
2530 ac_func_list="$ac_func_list fchmod"
2531 ac_func_list="$ac_func_list fsync"
2532 gt_needs="$gt_needs need-formatstring-macros"
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538   eval ac_new_set=\$ac_env_${ac_var}_set
2539   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540   eval ac_new_val=\$ac_env_${ac_var}_value
2541   case $ac_old_set,$ac_new_set in
2542     set,)
2543       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545       ac_cache_corrupted=: ;;
2546     ,set)
2547       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549       ac_cache_corrupted=: ;;
2550     ,);;
2551     *)
2552       if test "x$ac_old_val" != "x$ac_new_val"; then
2553         # differences in whitespace do not lead to failure.
2554         ac_old_val_w=`echo x $ac_old_val`
2555         ac_new_val_w=`echo x $ac_new_val`
2556         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559           ac_cache_corrupted=:
2560         else
2561           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563           eval $ac_var=\$ac_old_val
2564         fi
2565         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2566 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2567         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2569       fi;;
2570   esac
2571   # Pass precious variables to config.status.
2572   if test "$ac_new_set" = set; then
2573     case $ac_new_val in
2574     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575     *) ac_arg=$ac_var=$ac_new_val ;;
2576     esac
2577     case " $ac_configure_args " in
2578       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2579       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2580     esac
2581   fi
2582 done
2583 if $ac_cache_corrupted; then
2584   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2589 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2590    { (exit 1); exit 1; }; }
2591 fi
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
2624
2625 ac_aux_dir=
2626 for ac_dir in build-aux "$srcdir"/build-aux; do
2627   if test -f "$ac_dir/install-sh"; then
2628     ac_aux_dir=$ac_dir
2629     ac_install_sh="$ac_aux_dir/install-sh -c"
2630     break
2631   elif test -f "$ac_dir/install.sh"; then
2632     ac_aux_dir=$ac_dir
2633     ac_install_sh="$ac_aux_dir/install.sh -c"
2634     break
2635   elif test -f "$ac_dir/shtool"; then
2636     ac_aux_dir=$ac_dir
2637     ac_install_sh="$ac_aux_dir/shtool install -c"
2638     break
2639   fi
2640 done
2641 if test -z "$ac_aux_dir"; then
2642   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2643 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2644    { (exit 1); exit 1; }; }
2645 fi
2646
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2652 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2653 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2654
2655
2656 ac_config_headers="$ac_config_headers config.h"
2657
2658
2659 am__api_version='1.11'
2660
2661 # Find a good install program.  We prefer a C program (faster),
2662 # so one script is as good as another.  But avoid the broken or
2663 # incompatible versions:
2664 # SysV /etc/install, /usr/sbin/install
2665 # SunOS /usr/etc/install
2666 # IRIX /sbin/install
2667 # AIX /bin/install
2668 # AmigaOS /C/install, which installs bootblocks on floppy discs
2669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2672 # OS/2's system install, which has a completely different semantic
2673 # ./install, which can be erroneously created by make from ./install.sh.
2674 # Reject install programs that cannot install multiple files.
2675 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2676 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2677 if test -z "$INSTALL"; then
2678 if test "${ac_cv_path_install+set}" = set; then
2679   $as_echo_n "(cached) " >&6
2680 else
2681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   # Account for people who put trailing slashes in PATH elements.
2687 case $as_dir/ in
2688   ./ | .// | /cC/* | \
2689   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2691   /usr/ucb/* ) ;;
2692   *)
2693     # OSF1 and SCO ODT 3.0 have their own names for install.
2694     # Don't use installbsd from OSF since it installs stuff as root
2695     # by default.
2696     for ac_prog in ginstall scoinst install; do
2697       for ac_exec_ext in '' $ac_executable_extensions; do
2698         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2699           if test $ac_prog = install &&
2700             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701             # AIX install.  It has an incompatible calling convention.
2702             :
2703           elif test $ac_prog = install &&
2704             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705             # program-specific install script used by HP pwplus--don't use.
2706             :
2707           else
2708             rm -rf conftest.one conftest.two conftest.dir
2709             echo one > conftest.one
2710             echo two > conftest.two
2711             mkdir conftest.dir
2712             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2713               test -s conftest.one && test -s conftest.two &&
2714               test -s conftest.dir/conftest.one &&
2715               test -s conftest.dir/conftest.two
2716             then
2717               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2718               break 3
2719             fi
2720           fi
2721         fi
2722       done
2723     done
2724     ;;
2725 esac
2726
2727 done
2728 IFS=$as_save_IFS
2729
2730 rm -rf conftest.one conftest.two conftest.dir
2731
2732 fi
2733   if test "${ac_cv_path_install+set}" = set; then
2734     INSTALL=$ac_cv_path_install
2735   else
2736     # As a last resort, use the slow shell script.  Don't cache a
2737     # value for INSTALL within a source directory, because that will
2738     # break other packages using the cache if that directory is
2739     # removed, or if the value is a relative name.
2740     INSTALL=$ac_install_sh
2741   fi
2742 fi
2743 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2744 $as_echo "$INSTALL" >&6; }
2745
2746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747 # It thinks the first close brace ends the variable substitution.
2748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749
2750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751
2752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753
2754 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2755 $as_echo_n "checking whether build environment is sane... " >&6; }
2756 # Just in case
2757 sleep 1
2758 echo timestamp > conftest.file
2759 # Reject unsafe characters in $srcdir or the absolute working directory
2760 # name.  Accept space and tab only in the latter.
2761 am_lf='
2762 '
2763 case `pwd` in
2764   *[\\\"\#\$\&\'\`$am_lf]*)
2765     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2766 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2767    { (exit 1); exit 1; }; };;
2768 esac
2769 case $srcdir in
2770   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2771     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2772 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2773    { (exit 1); exit 1; }; };;
2774 esac
2775
2776 # Do `set' in a subshell so we don't clobber the current shell's
2777 # arguments.  Must try -L first in case configure is actually a
2778 # symlink; some systems play weird games with the mod time of symlinks
2779 # (eg FreeBSD returns the mod time of the symlink's containing
2780 # directory).
2781 if (
2782    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2783    if test "$*" = "X"; then
2784       # -L didn't work.
2785       set X `ls -t "$srcdir/configure" conftest.file`
2786    fi
2787    rm -f conftest.file
2788    if test "$*" != "X $srcdir/configure conftest.file" \
2789       && test "$*" != "X conftest.file $srcdir/configure"; then
2790
2791       # If neither matched, then we have a broken ls.  This can happen
2792       # if, for instance, CONFIG_SHELL is bash and it inherits a
2793       # broken ls alias from the environment.  This has actually
2794       # happened.  Such a system could not be considered "sane".
2795       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2796 alias in your environment" >&5
2797 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2798 alias in your environment" >&2;}
2799    { (exit 1); exit 1; }; }
2800    fi
2801
2802    test "$2" = conftest.file
2803    )
2804 then
2805    # Ok.
2806    :
2807 else
2808    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2809 Check your system clock" >&5
2810 $as_echo "$as_me: error: newly created file is older than distributed files!
2811 Check your system clock" >&2;}
2812    { (exit 1); exit 1; }; }
2813 fi
2814 { $as_echo "$as_me:$LINENO: result: yes" >&5
2815 $as_echo "yes" >&6; }
2816 test "$program_prefix" != NONE &&
2817   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2818 # Use a double $ so make ignores it.
2819 test "$program_suffix" != NONE &&
2820   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2821 # Double any \ or $.
2822 # By default was `s,x,x', remove it if useless.
2823 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2824 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2825
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829 if test x"${MISSING+set}" != xset; then
2830   case $am_aux_dir in
2831   *\ * | *\     *)
2832     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833   *)
2834     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2835   esac
2836 fi
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839   am_missing_run="$MISSING --run "
2840 else
2841   am_missing_run=
2842   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2844 fi
2845
2846 if test x"${install_sh}" != xset; then
2847   case $am_aux_dir in
2848   *\ * | *\     *)
2849     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850   *)
2851     install_sh="\${SHELL} $am_aux_dir/install-sh"
2852   esac
2853 fi
2854
2855 # Installed binaries are usually stripped using `strip' when the user
2856 # run `make install-strip'.  However `strip' might not be the right
2857 # tool to use in cross-compilation environments, therefore Automake
2858 # will honor the `STRIP' environment variable to overrule this program.
2859 if test "$cross_compiling" != no; then
2860   if test -n "$ac_tool_prefix"; then
2861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}strip; ac_word=$2
2863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_STRIP+set}" = set; then
2866   $as_echo_n "(cached) " >&6
2867 else
2868   if test -n "$STRIP"; then
2869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
2875   test -z "$as_dir" && as_dir=.
2876   for ac_exec_ext in '' $ac_executable_extensions; do
2877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880     break 2
2881   fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2891 $as_echo "$STRIP" >&6; }
2892 else
2893   { $as_echo "$as_me:$LINENO: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_STRIP"; then
2900   ac_ct_STRIP=$STRIP
2901   # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906   $as_echo_n "(cached) " >&6
2907 else
2908   if test -n "$ac_ct_STRIP"; then
2909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916   for ac_exec_ext in '' $ac_executable_extensions; do
2917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918     ac_cv_prog_ac_ct_STRIP="strip"
2919     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 $as_echo "$ac_ct_STRIP" >&6; }
2932 else
2933   { $as_echo "$as_me:$LINENO: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937   if test "x$ac_ct_STRIP" = x; then
2938     STRIP=":"
2939   else
2940     case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946     STRIP=$ac_ct_STRIP
2947   fi
2948 else
2949   STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954
2955 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2956 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958   if test "${ac_cv_path_mkdir+set}" = set; then
2959   $as_echo_n "(cached) " >&6
2960 else
2961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966   for ac_prog in mkdir gmkdir; do
2967          for ac_exec_ext in '' $ac_executable_extensions; do
2968            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2969            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2970              'mkdir (GNU coreutils) '* | \
2971              'mkdir (coreutils) '* | \
2972              'mkdir (fileutils) '4.1*)
2973                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2974                break 3;;
2975            esac
2976          done
2977        done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982
2983   if test "${ac_cv_path_mkdir+set}" = set; then
2984     MKDIR_P="$ac_cv_path_mkdir -p"
2985   else
2986     # As a last resort, use the slow shell script.  Don't cache a
2987     # value for MKDIR_P within a source directory, because that will
2988     # break other packages using the cache if that directory is
2989     # removed, or if the value is a relative name.
2990     test -d ./--version && rmdir ./--version
2991     MKDIR_P="$ac_install_sh -d"
2992   fi
2993 fi
2994 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
2996
2997
2998 mkdir_p="$MKDIR_P"
2999 case $mkdir_p in
3000   [\\/$]* | ?:[\\/]*) ;;
3001   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3002 esac
3003
3004 for ac_prog in gawk mawk nawk awk
3005 do
3006   # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$AWK"; then
3014   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   for ac_exec_ext in '' $ac_executable_extensions; do
3022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023     ac_cv_prog_AWK="$ac_prog"
3024     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038   { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043   test -n "$AWK" && break
3044 done
3045
3046 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3051   $as_echo_n "(cached) " >&6
3052 else
3053   cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056         @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060   *@@@%%%=?*=@@@%%%*)
3061     eval ac_cv_prog_make_${ac_make}_set=yes;;
3062   *)
3063     eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3066 fi
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068   { $as_echo "$as_me:$LINENO: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070   SET_MAKE=
3071 else
3072   { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3074   SET_MAKE="MAKE=${MAKE-make}"
3075 fi
3076
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080   am__leading_dot=.
3081 else
3082   am__leading_dot=_
3083 fi
3084 rmdir .tst 2>/dev/null
3085
3086 # Check whether --enable-silent-rules was given.
3087 if test "${enable_silent_rules+set}" = set; then
3088   enableval=$enable_silent_rules;
3089 fi
3090
3091 case $enable_silent_rules in
3092 yes) AM_DEFAULT_VERBOSITY=0;;
3093 no)  AM_DEFAULT_VERBOSITY=1;;
3094 *)   AM_DEFAULT_VERBOSITY=1;;
3095 esac
3096 AM_BACKSLASH='\'
3097
3098 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100   # is not polluted with repeated "-I."
3101   am__isrc=' -I$(srcdir)'
3102   # test to see if srcdir already configured
3103   if test -f $srcdir/config.status; then
3104     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3105 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3106    { (exit 1); exit 1; }; }
3107   fi
3108 fi
3109
3110 # test whether we have cygpath
3111 if test -z "$CYGPATH_W"; then
3112   if (cygpath --version) >/dev/null 2>/dev/null; then
3113     CYGPATH_W='cygpath -w'
3114   else
3115     CYGPATH_W=echo
3116   fi
3117 fi
3118
3119
3120 # Define the identity of the package.
3121  PACKAGE='tar'
3122  VERSION='1.24'
3123
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE "$PACKAGE"
3127 _ACEOF
3128
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define VERSION "$VERSION"
3132 _ACEOF
3133
3134 # Some tools Automake needs.
3135
3136 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3137
3138
3139 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3140
3141
3142 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3143
3144
3145 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3146
3147
3148 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3149
3150 # We need awk for the "check" target.  The system "awk" is bad on
3151 # some platforms.
3152 # Always define AMTAR for backward compatibility.
3153
3154 AMTAR=${AMTAR-"${am_missing_run}tar"}
3155
3156
3157 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3158 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3159 # Loop over all known methods to create a tar archive until one works.
3160 _am_tools='gnutar plaintar pax cpio none'
3161 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3162 # Do not fold the above two line into one, because Tru64 sh and
3163 # Solaris sh will not grok spaces in the rhs of `-'.
3164 for _am_tool in $_am_tools
3165 do
3166   case $_am_tool in
3167   gnutar)
3168     for _am_tar in tar gnutar gtar;
3169     do
3170       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3171    ($_am_tar --version) >&5 2>&5
3172    ac_status=$?
3173    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174    (exit $ac_status); } && break
3175     done
3176     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3177     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3178     am__untar="$_am_tar -xf -"
3179     ;;
3180   plaintar)
3181     # Must skip GNU tar: if it does not support --format= it doesn't create
3182     # ustar tarball either.
3183     (tar --version) >/dev/null 2>&1 && continue
3184     am__tar='tar chf - "$$tardir"'
3185     am__tar_='tar chf - "$tardir"'
3186     am__untar='tar xf -'
3187     ;;
3188   pax)
3189     am__tar='pax -L -x ustar -w "$$tardir"'
3190     am__tar_='pax -L -x ustar -w "$tardir"'
3191     am__untar='pax -r'
3192     ;;
3193   cpio)
3194     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3195     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3196     am__untar='cpio -i -H ustar -d'
3197     ;;
3198   none)
3199     am__tar=false
3200     am__tar_=false
3201     am__untar=false
3202     ;;
3203   esac
3204
3205   # If the value was cached, stop now.  We just wanted to have am__tar
3206   # and am__untar set.
3207   test -n "${am_cv_prog_tar_ustar}" && break
3208
3209   # tar/untar a dummy directory, and stop if the command works
3210   rm -rf conftest.dir
3211   mkdir conftest.dir
3212   echo GrepMe > conftest.dir/file
3213   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3214    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3215    ac_status=$?
3216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217    (exit $ac_status); }
3218   rm -rf conftest.dir
3219   if test -s conftest.tar; then
3220     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3221    ($am__untar <conftest.tar) >&5 2>&5
3222    ac_status=$?
3223    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224    (exit $ac_status); }
3225     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3226   fi
3227 done
3228 rm -rf conftest.dir
3229
3230 if test "${am_cv_prog_tar_ustar+set}" = set; then
3231   $as_echo_n "(cached) " >&6
3232 else
3233   am_cv_prog_tar_ustar=$_am_tool
3234 fi
3235
3236 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3237 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3238
3239
3240
3241
3242
3243
3244 # Enable silent rules by default:
3245 # Check whether --enable-silent-rules was given.
3246 if test "${enable_silent_rules+set}" = set; then
3247   enableval=$enable_silent_rules;
3248 fi
3249
3250 case $enable_silent_rules in
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no)  AM_DEFAULT_VERBOSITY=1;;
3253 *)   AM_DEFAULT_VERBOSITY=0;;
3254 esac
3255 AM_BACKSLASH='\'
3256
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_CC+set}" = set; then
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$CC"; then
3272   ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_exec_ext in '' $ac_executable_extensions; do
3280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296   { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_CC"; then
3303   ac_ct_CC=$CC
3304   # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$ac_ct_CC"; then
3312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319   for ac_exec_ext in '' $ac_executable_extensions; do
3320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     ac_cv_prog_ac_ct_CC="gcc"
3322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336   { $as_echo "$as_me:$LINENO: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340   if test "x$ac_ct_CC" = x; then
3341     CC=""
3342   else
3343     case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349     CC=$ac_ct_CC
3350   fi
3351 else
3352   CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356           if test -n "$ac_tool_prefix"; then
3357     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_prog_CC+set}" = set; then
3362   $as_echo_n "(cached) " >&6
3363 else
3364   if test -n "$CC"; then
3365   ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   for ac_exec_ext in '' $ac_executable_extensions; do
3373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374     ac_cv_prog_CC="${ac_tool_prefix}cc"
3375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389   { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394   fi
3395 fi
3396 if test -z "$CC"; then
3397   # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407   ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416        ac_prog_rejected=yes
3417        continue
3418      fi
3419     ac_cv_prog_CC="cc"
3420     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428   # We found a bogon in the path, so make sure we never use it.
3429   set dummy $ac_cv_prog_CC
3430   shift
3431   if test $# != 0; then
3432     # We chose a different compiler from the bogus one.
3433     # However, it has the same basename, so the bogon will be chosen
3434     # first if we set CC to just the basename; use the full file name.
3435     shift
3436     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437   fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446   { $as_echo "$as_me:$LINENO: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453   if test -n "$ac_tool_prefix"; then
3454   for ac_prog in cl.exe
3455   do
3456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488   { $as_echo "$as_me:$LINENO: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493     test -n "$CC" && break
3494   done
3495 fi
3496 if test -z "$CC"; then
3497   ac_ct_CC=$CC
3498   for ac_prog in cl.exe
3499 do
3500   # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$ac_ct_CC"; then
3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     ac_cv_prog_ac_ct_CC="$ac_prog"
3518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532   { $as_echo "$as_me:$LINENO: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537   test -n "$ac_ct_CC" && break
3538 done
3539
3540   if test "x$ac_ct_CC" = x; then
3541     CC=""
3542   else
3543     case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549     CC=$ac_ct_CC
3550   fi
3551 fi
3552
3553 fi
3554
3555
3556 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details." >&5
3560 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details." >&2;}
3562    { (exit 1); exit 1; }; }; }
3563
3564 # Provide some information about the compiler.
3565 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3566 set X $ac_compile
3567 ac_compiler=$2
3568 { (ac_try="$ac_compiler --version >&5"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575   (eval "$ac_compiler --version >&5") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }
3579 { (ac_try="$ac_compiler -v >&5"
3580 case "(($ac_try" in
3581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582   *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586   (eval "$ac_compiler -v >&5") 2>&5
3587   ac_status=$?
3588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }
3590 { (ac_try="$ac_compiler -V >&5"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597   (eval "$ac_compiler -V >&5") 2>&5
3598   ac_status=$?
3599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }
3601
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 ac_clean_files_save=$ac_clean_files
3618 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3619 # Try to create an executable without -o first, disregard a.out.
3620 # It will help us diagnose broken compilers, and finding out an intuition
3621 # of exeext.
3622 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3623 $as_echo_n "checking for C compiler default output file name... " >&6; }
3624 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3625
3626 # The possible output files:
3627 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3628
3629 ac_rmfiles=
3630 for ac_file in $ac_files
3631 do
3632   case $ac_file in
3633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3635   esac
3636 done
3637 rm -f $ac_rmfiles
3638
3639 if { (ac_try="$ac_link_default"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646   (eval "$ac_link_default") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; then
3650   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3651 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3652 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3653 # so that the user can short-circuit this test for compilers unknown to
3654 # Autoconf.
3655 for ac_file in $ac_files ''
3656 do
3657   test -f "$ac_file" || continue
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3660         ;;
3661     [ab].out )
3662         # We found the default executable, but exeext='' is most
3663         # certainly right.
3664         break;;
3665     *.* )
3666         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3667         then :; else
3668            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669         fi
3670         # We set ac_cv_exeext here because the later test for it is not
3671         # safe: cross compilers may not add the suffix if given an `-o'
3672         # argument, so we may need to know it at that point already.
3673         # Even if this section looks crufty: it has the advantage of
3674         # actually working.
3675         break;;
3676     * )
3677         break;;
3678   esac
3679 done
3680 test "$ac_cv_exeext" = no && ac_cv_exeext=
3681
3682 else
3683   ac_file=''
3684 fi
3685
3686 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 if test -z "$ac_file"; then
3689   $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3695 See \`config.log' for more details." >&5
3696 $as_echo "$as_me: error: C compiler cannot create executables
3697 See \`config.log' for more details." >&2;}
3698    { (exit 77); exit 77; }; }; }
3699 fi
3700
3701 ac_exeext=$ac_cv_exeext
3702
3703 # Check that the compiler produces executables we can run.  If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3706 $as_echo_n "checking whether the C compiler works... " >&6; }
3707 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3708 # If not cross compiling, check that we can run a simple program.
3709 if test "$cross_compiling" != yes; then
3710   if { ac_try='./$ac_file'
3711   { (case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717   (eval "$ac_try") 2>&5
3718   ac_status=$?
3719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; }; then
3721     cross_compiling=no
3722   else
3723     if test "$cross_compiling" = maybe; then
3724         cross_compiling=yes
3725     else
3726         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3729 If you meant to cross compile, use \`--host'.
3730 See \`config.log' for more details." >&5
3731 $as_echo "$as_me: error: cannot run C compiled programs.
3732 If you meant to cross compile, use \`--host'.
3733 See \`config.log' for more details." >&2;}
3734    { (exit 1); exit 1; }; }; }
3735     fi
3736   fi
3737 fi
3738 { $as_echo "$as_me:$LINENO: result: yes" >&5
3739 $as_echo "yes" >&6; }
3740
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 # Check that the compiler produces executables we can run.  If not, either
3744 # the compiler is broken, or we cross compile.
3745 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3746 $as_echo_n "checking whether we are cross compiling... " >&6; }
3747 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3748 $as_echo "$cross_compiling" >&6; }
3749
3750 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3751 $as_echo_n "checking for suffix of executables... " >&6; }
3752 if { (ac_try="$ac_link"
3753 case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759   (eval "$ac_link") 2>&5
3760   ac_status=$?
3761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; then
3763   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3765 # work properly (i.e., refer to `conftest.exe'), while it won't with
3766 # `rm'.
3767 for ac_file in conftest.exe conftest conftest.*; do
3768   test -f "$ac_file" || continue
3769   case $ac_file in
3770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772           break;;
3773     * ) break;;
3774   esac
3775 done
3776 else
3777   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3780 See \`config.log' for more details." >&5
3781 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details." >&2;}
3783    { (exit 1); exit 1; }; }; }
3784 fi
3785
3786 rm -f conftest$ac_cv_exeext
3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3788 $as_echo "$ac_cv_exeext" >&6; }
3789
3790 rm -f conftest.$ac_ext
3791 EXEEXT=$ac_cv_exeext
3792 ac_exeext=$EXEEXT
3793 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3794 $as_echo_n "checking for suffix of object files... " >&6; }
3795 if test "${ac_cv_objext+set}" = set; then
3796   $as_echo_n "(cached) " >&6
3797 else
3798   cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h.  */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h.  */
3804
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.o conftest.obj
3814 if { (ac_try="$ac_compile"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821   (eval "$ac_compile") 2>&5
3822   ac_status=$?
3823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); }; then
3825   for ac_file in conftest.o conftest.obj conftest.*; do
3826   test -f "$ac_file" || continue;
3827   case $ac_file in
3828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3829     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3830        break;;
3831   esac
3832 done
3833 else
3834   $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3840 See \`config.log' for more details." >&5
3841 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details." >&2;}
3843    { (exit 1); exit 1; }; }; }
3844 fi
3845
3846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847 fi
3848 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3849 $as_echo "$ac_cv_objext" >&6; }
3850 OBJEXT=$ac_cv_objext
3851 ac_objext=$OBJEXT
3852 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3853 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3855   $as_echo_n "(cached) " >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867 #ifndef __GNUC__
3868        choke me
3869 #endif
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882 $as_echo "$ac_try_echo") >&5
3883   (eval "$ac_compile") 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } && {
3890          test -z "$ac_c_werror_flag" ||
3891          test ! -s conftest.err
3892        } && test -s conftest.$ac_objext; then
3893   ac_compiler_gnu=yes
3894 else
3895   $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898         ac_compiler_gnu=no
3899 fi
3900
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903
3904 fi
3905 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907 if test $ac_compiler_gnu = yes; then
3908   GCC=yes
3909 else
3910   GCC=
3911 fi
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3916 if test "${ac_cv_prog_cc_g+set}" = set; then
3917   $as_echo_n "(cached) " >&6
3918 else
3919   ac_save_c_werror_flag=$ac_c_werror_flag
3920    ac_c_werror_flag=yes
3921    ac_cv_prog_cc_g=no
3922    CFLAGS="-g"
3923    cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929
3930 int
3931 main ()
3932 {
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945 $as_echo "$ac_try_echo") >&5
3946   (eval "$ac_compile") 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } && {
3953          test -z "$ac_c_werror_flag" ||
3954          test ! -s conftest.err
3955        } && test -s conftest.$ac_objext; then
3956   ac_cv_prog_cc_g=yes
3957 else
3958   $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961         CFLAGS=""
3962       cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968
3969 int
3970 main ()
3971 {
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985   (eval "$ac_compile") 2>conftest.er1
3986   ac_status=$?
3987   grep -v '^ *+' conftest.er1 >conftest.err
3988   rm -f conftest.er1
3989   cat conftest.err >&5
3990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } && {
3992          test -z "$ac_c_werror_flag" ||
3993          test ! -s conftest.err
3994        } && test -s conftest.$ac_objext; then
3995   :
3996 else
3997   $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000         ac_c_werror_flag=$ac_save_c_werror_flag
4001          CFLAGS="-g"
4002          cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025   (eval "$ac_compile") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } && {
4032          test -z "$ac_c_werror_flag" ||
4033          test ! -s conftest.err
4034        } && test -s conftest.$ac_objext; then
4035   ac_cv_prog_cc_g=yes
4036 else
4037   $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040
4041 fi
4042
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050    ac_c_werror_flag=$ac_save_c_werror_flag
4051 fi
4052 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4053 $as_echo "$ac_cv_prog_cc_g" >&6; }
4054 if test "$ac_test_CFLAGS" = set; then
4055   CFLAGS=$ac_save_CFLAGS
4056 elif test $ac_cv_prog_cc_g = yes; then
4057   if test "$GCC" = yes; then
4058     CFLAGS="-g -O2"
4059   else
4060     CFLAGS="-g"
4061   fi
4062 else
4063   if test "$GCC" = yes; then
4064     CFLAGS="-O2"
4065   else
4066     CFLAGS=
4067   fi
4068 fi
4069 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071 if test "${ac_cv_prog_cc_c89+set}" = set; then
4072   $as_echo_n "(cached) " >&6
4073 else
4074   ac_cv_prog_cc_c89=no
4075 ac_save_CC=$CC
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082 #include <stdarg.h>
4083 #include <stdio.h>
4084 #include <sys/types.h>
4085 #include <sys/stat.h>
4086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4087 struct buf { int x; };
4088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4089 static char *e (p, i)
4090      char **p;
4091      int i;
4092 {
4093   return p[i];
4094 }
4095 static char *f (char * (*g) (char **, int), char **p, ...)
4096 {
4097   char *s;
4098   va_list v;
4099   va_start (v,p);
4100   s = g (p, va_arg (v,int));
4101   va_end (v);
4102   return s;
4103 }
4104
4105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4106    function prototypes and stuff, but not '\xHH' hex character constants.
4107    These don't provoke an error unfortunately, instead are silently treated
4108    as 'x'.  The following induces an error, until -std is added to get
4109    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4110    array size at least.  It's necessary to write '\x00'==0 to get something
4111    that's true only with -std.  */
4112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4113
4114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4115    inside strings and character constants.  */
4116 #define FOO(x) 'x'
4117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4118
4119 int test (int i, double x);
4120 struct s1 {int (*f) (int a);};
4121 struct s2 {int (*f) (double a);};
4122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4123 int argc;
4124 char **argv;
4125 int
4126 main ()
4127 {
4128 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4134         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4135 do
4136   CC="$ac_save_CC $ac_arg"
4137   rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4144 $as_echo "$ac_try_echo") >&5
4145   (eval "$ac_compile") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } && {
4152          test -z "$ac_c_werror_flag" ||
4153          test ! -s conftest.err
4154        } && test -s conftest.$ac_objext; then
4155   ac_cv_prog_cc_c89=$ac_arg
4156 else
4157   $as_echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160
4161 fi
4162
4163 rm -f core conftest.err conftest.$ac_objext
4164   test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4168
4169 fi
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c89" in
4172   x)
4173     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175   xno)
4176     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4178   *)
4179     CC="$CC $ac_cv_prog_cc_c89"
4180     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 esac
4183
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 DEPDIR="${am__leading_dot}deps"
4191
4192 ac_config_commands="$ac_config_commands depfiles"
4193
4194
4195 am_make=${MAKE-make}
4196 cat > confinc << 'END'
4197 am__doit:
4198         @echo this is the am__doit target
4199 .PHONY: am__doit
4200 END
4201 # If we don't find an include directive, just comment out the code.
4202 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4203 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4204 am__include="#"
4205 am__quote=
4206 _am_result=none
4207 # First try GNU make style include.
4208 echo "include confinc" > confmf
4209 # Ignore all kinds of additional output from `make'.
4210 case `$am_make -s -f confmf 2> /dev/null` in #(
4211 *the\ am__doit\ target*)
4212   am__include=include
4213   am__quote=
4214   _am_result=GNU
4215   ;;
4216 esac
4217 # Now try BSD make style include.
4218 if test "$am__include" = "#"; then
4219    echo '.include "confinc"' > confmf
4220    case `$am_make -s -f confmf 2> /dev/null` in #(
4221    *the\ am__doit\ target*)
4222      am__include=.include
4223      am__quote="\""
4224      _am_result=BSD
4225      ;;
4226    esac
4227 fi
4228
4229
4230 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4231 $as_echo "$_am_result" >&6; }
4232 rm -f confinc confmf
4233
4234 # Check whether --enable-dependency-tracking was given.
4235 if test "${enable_dependency_tracking+set}" = set; then
4236   enableval=$enable_dependency_tracking;
4237 fi
4238
4239 if test "x$enable_dependency_tracking" != xno; then
4240   am_depcomp="$ac_aux_dir/depcomp"
4241   AMDEPBACKSLASH='\'
4242 fi
4243  if test "x$enable_dependency_tracking" != xno; then
4244   AMDEP_TRUE=
4245   AMDEP_FALSE='#'
4246 else
4247   AMDEP_TRUE='#'
4248   AMDEP_FALSE=
4249 fi
4250
4251
4252
4253 depcc="$CC"   am_compiler_list=
4254
4255 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4256 $as_echo_n "checking dependency style of $depcc... " >&6; }
4257 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4261   # We make a subdir and do the tests there.  Otherwise we can end up
4262   # making bogus files that we don't know about and never remove.  For
4263   # instance it was reported that on HP-UX the gcc test will end up
4264   # making a dummy file named `D' -- because `-MD' means `put the output
4265   # in D'.
4266   mkdir conftest.dir
4267   # Copy depcomp to subdir because otherwise we won't find it if we're
4268   # using a relative directory.
4269   cp "$am_depcomp" conftest.dir
4270   cd conftest.dir
4271   # We will build objects and dependencies in a subdirectory because
4272   # it helps to detect inapplicable dependency modes.  For instance
4273   # both Tru64's cc and ICC support -MD to output dependencies as a
4274   # side effect of compilation, but ICC will put the dependencies in
4275   # the current directory while Tru64 will put them in the object
4276   # directory.
4277   mkdir sub
4278
4279   am_cv_CC_dependencies_compiler_type=none
4280   if test "$am_compiler_list" = ""; then
4281      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282   fi
4283   am__universal=false
4284   case " $depcc " in #(
4285      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4286      esac
4287
4288   for depmode in $am_compiler_list; do
4289     # Setup a source with many dependencies, because some compilers
4290     # like to wrap large dependency lists on column 80 (with \), and
4291     # we should not choose a depcomp mode which is confused by this.
4292     #
4293     # We need to recreate these files for each test, as the compiler may
4294     # overwrite some of them when testing with obscure command lines.
4295     # This happens at least with the AIX C compiler.
4296     : > sub/conftest.c
4297     for i in 1 2 3 4 5 6; do
4298       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4300       # Solaris 8's {/usr,}/bin/sh.
4301       touch sub/conftst$i.h
4302     done
4303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4306     # mode.  It turns out that the SunPro C++ compiler does not properly
4307     # handle `-M -o', and we need to detect this.  Also, some Intel
4308     # versions had trouble with output in subdirs
4309     am__obj=sub/conftest.${OBJEXT-o}
4310     am__minus_obj="-o $am__obj"
4311     case $depmode in
4312     gcc)
4313       # This depmode causes a compiler race in universal mode.
4314       test "$am__universal" = false || continue
4315       ;;
4316     nosideeffect)
4317       # after this tag, mechanisms are not by side-effect, so they'll
4318       # only be used when explicitly requested
4319       if test "x$enable_dependency_tracking" = xyes; then
4320         continue
4321       else
4322         break
4323       fi
4324       ;;
4325     msvisualcpp | msvcmsys)
4326       # This compiler won't grok `-c -o', but also, the minuso test has
4327       # not run yet.  These depmodes are late enough in the game, and
4328       # so weak that their functioning should not be impacted.
4329       am__obj=conftest.${OBJEXT-o}
4330       am__minus_obj=
4331       ;;
4332     none) break ;;
4333     esac
4334     if depmode=$depmode \
4335        source=sub/conftest.c object=$am__obj \
4336        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338          >/dev/null 2>conftest.err &&
4339        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343       # icc doesn't choke on unknown options, it will just issue warnings
4344       # or remarks (even with -Werror).  So we grep stderr for any message
4345       # that says an option was ignored or not supported.
4346       # When given -MP, icc 7.0 and 7.1 complain thusly:
4347       #   icc: Command line warning: ignoring option '-M'; no argument required
4348       # The diagnosis changed in icc 8.0:
4349       #   icc: Command line remark: option '-MP' not supported
4350       if (grep 'ignoring option' conftest.err ||
4351           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352         am_cv_CC_dependencies_compiler_type=$depmode
4353         break
4354       fi
4355     fi
4356   done
4357
4358   cd ..
4359   rm -rf conftest.dir
4360 else
4361   am_cv_CC_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369  if
4370   test "x$enable_dependency_tracking" != xno \
4371   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372   am__fastdepCC_TRUE=
4373   am__fastdepCC_FALSE='#'
4374 else
4375   am__fastdepCC_TRUE='#'
4376   am__fastdepCC_FALSE=
4377 fi
4378
4379
4380
4381 if test -n "$ac_tool_prefix"; then
4382   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then
4387   $as_echo_n "(cached) " >&6
4388 else
4389   if test -n "$RANLIB"; then
4390   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397   for ac_exec_ext in '' $ac_executable_extensions; do
4398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 RANLIB=$ac_cv_prog_RANLIB
4410 if test -n "$RANLIB"; then
4411   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4412 $as_echo "$RANLIB" >&6; }
4413 else
4414   { $as_echo "$as_me:$LINENO: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 fi
4420 if test -z "$ac_cv_prog_RANLIB"; then
4421   ac_ct_RANLIB=$RANLIB
4422   # Extract the first word of "ranlib", so it can be a program name with args.
4423 set dummy ranlib; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4427   $as_echo_n "(cached) " >&6
4428 else
4429   if test -n "$ac_ct_RANLIB"; then
4430   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_ac_ct_RANLIB="ranlib"
4440     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450 if test -n "$ac_ct_RANLIB"; then
4451   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4452 $as_echo "$ac_ct_RANLIB" >&6; }
4453 else
4454   { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458   if test "x$ac_ct_RANLIB" = x; then
4459     RANLIB=":"
4460   else
4461     case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467     RANLIB=$ac_ct_RANLIB
4468   fi
4469 else
4470   RANLIB="$ac_cv_prog_RANLIB"
4471 fi
4472
4473 for ac_prog in 'bison -y' byacc
4474 do
4475   # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_YACC+set}" = set; then
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if test -n "$YACC"; then
4483   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_prog_YACC="$ac_prog"
4493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 fi
4501 fi
4502 YACC=$ac_cv_prog_YACC
4503 if test -n "$YACC"; then
4504   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4505 $as_echo "$YACC" >&6; }
4506 else
4507   { $as_echo "$as_me:$LINENO: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510
4511
4512   test -n "$YACC" && break
4513 done
4514 test -n "$YACC" || YACC="yacc"
4515
4516 if test "x$CC" != xcc; then
4517   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4518 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4519 else
4520   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4521 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4522 fi
4523 set dummy $CC; ac_cc=`$as_echo "$2" |
4524                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4525 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4526   $as_echo_n "(cached) " >&6
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 # Make sure it works both with $CC and with simple cc.
4544 # We do the test twice because some compilers refuse to overwrite an
4545 # existing .o file with -o, though they will create one.
4546 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4547 rm -f conftest2.*
4548 if { (case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554   (eval "$ac_try") 2>&5
4555   ac_status=$?
4556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } &&
4558    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4563 $as_echo "$ac_try_echo") >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); };
4568 then
4569   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4570   if test "x$CC" != xcc; then
4571     # Test first that cc exists at all.
4572     if { ac_try='cc -c conftest.$ac_ext >&5'
4573   { (case "(($ac_try" in
4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575   *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579   (eval "$ac_try") 2>&5
4580   ac_status=$?
4581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4584       rm -f conftest2.*
4585       if { (case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591   (eval "$ac_try") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_try") 2>&5
4602   ac_status=$?
4603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); };
4605       then
4606         # cc works too.
4607         :
4608       else
4609         # cc exists but doesn't like -o.
4610         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4611       fi
4612     fi
4613   fi
4614 else
4615   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4616 fi
4617 rm -f core conftest*
4618
4619 fi
4620 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4621   { $as_echo "$as_me:$LINENO: result: yes" >&5
4622 $as_echo "yes" >&6; }
4623 else
4624   { $as_echo "$as_me:$LINENO: result: no" >&5
4625 $as_echo "no" >&6; }
4626
4627 cat >>confdefs.h <<\_ACEOF
4628 #define NO_MINUS_C_MINUS_O 1
4629 _ACEOF
4630
4631 fi
4632
4633 # FIXME: we rely on the cache variable name because
4634 # there is no other way.
4635 set dummy $CC
4636 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4637 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4638 if test "$am_t" != yes; then
4639    # Losing compiler, so override with the script.
4640    # FIXME: It is wrong to rewrite CC.
4641    # But if we don't then we get into trouble of one sort or another.
4642    # A longer-term fix would be to have automake use am__CC in this case,
4643    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4644    CC="$am_aux_dir/compile $CC"
4645 fi
4646
4647
4648 # Make sure we can run config.sub.
4649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4650   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4651 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4652    { (exit 1); exit 1; }; }
4653
4654 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4655 $as_echo_n "checking build system type... " >&6; }
4656 if test "${ac_cv_build+set}" = set; then
4657   $as_echo_n "(cached) " >&6
4658 else
4659   ac_build_alias=$build_alias
4660 test "x$ac_build_alias" = x &&
4661   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4662 test "x$ac_build_alias" = x &&
4663   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4664 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4665    { (exit 1); exit 1; }; }
4666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4667   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4668 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4669    { (exit 1); exit 1; }; }
4670
4671 fi
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4673 $as_echo "$ac_cv_build" >&6; }
4674 case $ac_cv_build in
4675 *-*-*) ;;
4676 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4677 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4678    { (exit 1); exit 1; }; };;
4679 esac
4680 build=$ac_cv_build
4681 ac_save_IFS=$IFS; IFS='-'
4682 set x $ac_cv_build
4683 shift
4684 build_cpu=$1
4685 build_vendor=$2
4686 shift; shift
4687 # Remember, the first character of IFS is used to create $*,
4688 # except with old shells:
4689 build_os=$*
4690 IFS=$ac_save_IFS
4691 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4692
4693
4694 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4695 $as_echo_n "checking host system type... " >&6; }
4696 if test "${ac_cv_host+set}" = set; then
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if test "x$host_alias" = x; then
4700   ac_cv_host=$ac_cv_build
4701 else
4702   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4703     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4704 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4705    { (exit 1); exit 1; }; }
4706 fi
4707
4708 fi
4709 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4710 $as_echo "$ac_cv_host" >&6; }
4711 case $ac_cv_host in
4712 *-*-*) ;;
4713 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4714 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4715    { (exit 1); exit 1; }; };;
4716 esac
4717 host=$ac_cv_host
4718 ac_save_IFS=$IFS; IFS='-'
4719 set x $ac_cv_host
4720 shift
4721 host_cpu=$1
4722 host_vendor=$2
4723 shift; shift
4724 # Remember, the first character of IFS is used to create $*,
4725 # except with old shells:
4726 host_os=$*
4727 IFS=$ac_save_IFS
4728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4729
4730
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4741   CPP=
4742 fi
4743 if test -z "$CPP"; then
4744   if test "${ac_cv_prog_CPP+set}" = set; then
4745   $as_echo_n "(cached) " >&6
4746 else
4747       # Double quotes because CPP needs to be expanded
4748     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4749     do
4750       ac_preproc_ok=false
4751 for ac_c_preproc_warn_flag in '' yes
4752 do
4753   # Use a header file that comes with gcc, so configuring glibc
4754   # with a fresh cross-compiler works.
4755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756   # <limits.h> exists even on freestanding compilers.
4757   # On the NeXT, cc -E runs the code through the compiler's parser,
4758   # not just through cpp. "Syntax error" is here to catch this case.
4759   cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770                      Syntax error
4771 _ACEOF
4772 if { (ac_try="$ac_cpp conftest.$ac_ext"
4773 case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } >/dev/null && {
4786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787          test ! -s conftest.err
4788        }; then
4789   :
4790 else
4791   $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797
4798 rm -f conftest.err conftest.$ac_ext
4799
4800   # OK, works on sane cases.  Now check whether nonexistent headers
4801   # can be detected and how.
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 #include <ac_nonexistent.h>
4809 _ACEOF
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4811 case "(($ac_try" in
4812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813   *) ac_try_echo=$ac_try;;
4814 esac
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } >/dev/null && {
4824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825          test ! -s conftest.err
4826        }; then
4827   # Broken: success on invalid input.
4828 continue
4829 else
4830   $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833   # Passes both tests.
4834 ac_preproc_ok=:
4835 break
4836 fi
4837
4838 rm -f conftest.err conftest.$ac_ext
4839
4840 done
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then
4844   break
4845 fi
4846
4847     done
4848     ac_cv_prog_CPP=$CPP
4849
4850 fi
4851   CPP=$ac_cv_prog_CPP
4852 else
4853   ac_cv_prog_CPP=$CPP
4854 fi
4855 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4856 $as_echo "$CPP" >&6; }
4857 ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4859 do
4860   # Use a header file that comes with gcc, so configuring glibc
4861   # with a fresh cross-compiler works.
4862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863   # <limits.h> exists even on freestanding compilers.
4864   # On the NeXT, cc -E runs the code through the compiler's parser,
4865   # not just through cpp. "Syntax error" is here to catch this case.
4866   cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 #ifdef __STDC__
4873 # include <limits.h>
4874 #else
4875 # include <assert.h>
4876 #endif
4877                      Syntax error
4878 _ACEOF
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 case "(($ac_try" in
4881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882   *) ac_try_echo=$ac_try;;
4883 esac
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } >/dev/null && {
4893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894          test ! -s conftest.err
4895        }; then
4896   :
4897 else
4898   $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901   # Broken: fails on valid input.
4902 continue
4903 fi
4904
4905 rm -f conftest.err conftest.$ac_ext
4906
4907   # OK, works on sane cases.  Now check whether nonexistent headers
4908   # can be detected and how.
4909   cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915 #include <ac_nonexistent.h>
4916 _ACEOF
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4923 $as_echo "$ac_try_echo") >&5
4924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925   ac_status=$?
4926   grep -v '^ *+' conftest.er1 >conftest.err
4927   rm -f conftest.er1
4928   cat conftest.err >&5
4929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } >/dev/null && {
4931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4932          test ! -s conftest.err
4933        }; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 done
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4951   :
4952 else
4953   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4955 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4956 See \`config.log' for more details." >&5
4957 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details." >&2;}
4959    { (exit 1); exit 1; }; }; }
4960 fi
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967
4968
4969 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 if test "${ac_cv_path_GREP+set}" = set; then
4972   $as_echo_n "(cached) " >&6
4973 else
4974   if test -z "$GREP"; then
4975   ac_path_GREP_found=false
4976   # Loop through the user's path and test for each of PROGNAME-LIST
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_prog in grep ggrep; do
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4986 # Check for GNU ac_path_GREP and select it if it is found.
4987   # Check for GNU $ac_path_GREP
4988 case `"$ac_path_GREP" --version 2>&1` in
4989 *GNU*)
4990   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4991 *)
4992   ac_count=0
4993   $as_echo_n 0123456789 >"conftest.in"
4994   while :
4995   do
4996     cat "conftest.in" "conftest.in" >"conftest.tmp"
4997     mv "conftest.tmp" "conftest.in"
4998     cp "conftest.in" "conftest.nl"
4999     $as_echo 'GREP' >> "conftest.nl"
5000     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002     ac_count=`expr $ac_count + 1`
5003     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004       # Best one so far, save it but keep looking for a better one
5005       ac_cv_path_GREP="$ac_path_GREP"
5006       ac_path_GREP_max=$ac_count
5007     fi
5008     # 10*(2^10) chars as input seems more than enough
5009     test $ac_count -gt 10 && break
5010   done
5011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 esac
5013
5014       $ac_path_GREP_found && break 3
5015     done
5016   done
5017 done
5018 IFS=$as_save_IFS
5019   if test -z "$ac_cv_path_GREP"; then
5020     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5021 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5022    { (exit 1); exit 1; }; }
5023   fi
5024 else
5025   ac_cv_path_GREP=$GREP
5026 fi
5027
5028 fi
5029 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5030 $as_echo "$ac_cv_path_GREP" >&6; }
5031  GREP="$ac_cv_path_GREP"
5032
5033
5034 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5035 $as_echo_n "checking for egrep... " >&6; }
5036 if test "${ac_cv_path_EGREP+set}" = set; then
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5040    then ac_cv_path_EGREP="$GREP -E"
5041    else
5042      if test -z "$EGREP"; then
5043   ac_path_EGREP_found=false
5044   # Loop through the user's path and test for each of PROGNAME-LIST
5045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050   for ac_prog in egrep; do
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5053       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5054 # Check for GNU ac_path_EGREP and select it if it is found.
5055   # Check for GNU $ac_path_EGREP
5056 case `"$ac_path_EGREP" --version 2>&1` in
5057 *GNU*)
5058   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5059 *)
5060   ac_count=0
5061   $as_echo_n 0123456789 >"conftest.in"
5062   while :
5063   do
5064     cat "conftest.in" "conftest.in" >"conftest.tmp"
5065     mv "conftest.tmp" "conftest.in"
5066     cp "conftest.in" "conftest.nl"
5067     $as_echo 'EGREP' >> "conftest.nl"
5068     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5069     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5070     ac_count=`expr $ac_count + 1`
5071     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5072       # Best one so far, save it but keep looking for a better one
5073       ac_cv_path_EGREP="$ac_path_EGREP"
5074       ac_path_EGREP_max=$ac_count
5075     fi
5076     # 10*(2^10) chars as input seems more than enough
5077     test $ac_count -gt 10 && break
5078   done
5079   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5080 esac
5081
5082       $ac_path_EGREP_found && break 3
5083     done
5084   done
5085 done
5086 IFS=$as_save_IFS
5087   if test -z "$ac_cv_path_EGREP"; then
5088     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5089 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5090    { (exit 1); exit 1; }; }
5091   fi
5092 else
5093   ac_cv_path_EGREP=$EGREP
5094 fi
5095
5096    fi
5097 fi
5098 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5099 $as_echo "$ac_cv_path_EGREP" >&6; }
5100  EGREP="$ac_cv_path_EGREP"
5101
5102
5103 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5104 $as_echo_n "checking for ANSI C header files... " >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then
5106   $as_echo_n "(cached) " >&6
5107 else
5108   cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 #include <stdlib.h>
5115 #include <stdarg.h>
5116 #include <string.h>
5117 #include <float.h>
5118
5119 int
5120 main ()
5121 {
5122
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135   (eval "$ac_compile") 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } && {
5142          test -z "$ac_c_werror_flag" ||
5143          test ! -s conftest.err
5144        } && test -s conftest.$ac_objext; then
5145   ac_cv_header_stdc=yes
5146 else
5147   $as_echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150         ac_cv_header_stdc=no
5151 fi
5152
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154
5155 if test $ac_cv_header_stdc = yes; then
5156   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <string.h>
5164
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167   $EGREP "memchr" >/dev/null 2>&1; then
5168   :
5169 else
5170   ac_cv_header_stdc=no
5171 fi
5172 rm -f conftest*
5173
5174 fi
5175
5176 if test $ac_cv_header_stdc = yes; then
5177   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178   cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184 #include <stdlib.h>
5185
5186 _ACEOF
5187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188   $EGREP "free" >/dev/null 2>&1; then
5189   :
5190 else
5191   ac_cv_header_stdc=no
5192 fi
5193 rm -f conftest*
5194
5195 fi
5196
5197 if test $ac_cv_header_stdc = yes; then
5198   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5199   if test "$cross_compiling" = yes; then
5200   :
5201 else
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 #include <ctype.h>
5209 #include <stdlib.h>
5210 #if ((' ' & 0x0FF) == 0x020)
5211 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5212 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5213 #else
5214 # define ISLOWER(c) \
5215                    (('a' <= (c) && (c) <= 'i') \
5216                      || ('j' <= (c) && (c) <= 'r') \
5217                      || ('s' <= (c) && (c) <= 'z'))
5218 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5219 #endif
5220
5221 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5222 int
5223 main ()
5224 {
5225   int i;
5226   for (i = 0; i < 256; i++)
5227     if (XOR (islower (i), ISLOWER (i))
5228         || toupper (i) != TOUPPER (i))
5229       return 2;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest$ac_exeext
5234 if { (ac_try="$ac_link"
5235 case "(($ac_try" in
5236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237   *) ac_try_echo=$ac_try;;
5238 esac
5239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240 $as_echo "$ac_try_echo") >&5
5241   (eval "$ac_link") 2>&5
5242   ac_status=$?
5243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245   { (case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5250 $as_echo "$ac_try_echo") >&5
5251   (eval "$ac_try") 2>&5
5252   ac_status=$?
5253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   :
5256 else
5257   $as_echo "$as_me: program exited with status $ac_status" >&5
5258 $as_echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 ( exit $ac_status )
5262 ac_cv_header_stdc=no
5263 fi
5264 rm -rf conftest.dSYM
5265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5266 fi
5267
5268
5269 fi
5270 fi
5271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5272 $as_echo "$ac_cv_header_stdc" >&6; }
5273 if test $ac_cv_header_stdc = yes; then
5274
5275 cat >>confdefs.h <<\_ACEOF
5276 #define STDC_HEADERS 1
5277 _ACEOF
5278
5279 fi
5280
5281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5292                   inttypes.h stdint.h unistd.h
5293 do
5294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5296 $as_echo_n "checking for $ac_header... " >&6; }
5297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5298   $as_echo_n "(cached) " >&6
5299 else
5300   cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306 $ac_includes_default
5307
5308 #include <$ac_header>
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5317 $as_echo "$ac_try_echo") >&5
5318   (eval "$ac_compile") 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } && {
5325          test -z "$ac_c_werror_flag" ||
5326          test ! -s conftest.err
5327        } && test -s conftest.$ac_objext; then
5328   eval "$as_ac_Header=yes"
5329 else
5330   $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333         eval "$as_ac_Header=no"
5334 fi
5335
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338 ac_res=`eval 'as_val=${'$as_ac_Header'}
5339                  $as_echo "$as_val"'`
5340                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5341 $as_echo "$ac_res" >&6; }
5342 as_val=`eval 'as_val=${'$as_ac_Header'}
5343                  $as_echo "$as_val"'`
5344    if test "x$as_val" = x""yes; then
5345   cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353
5354
5355
5356
5357   if test "${ac_cv_header_minix_config_h+set}" = set; then
5358   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5359 $as_echo_n "checking for minix/config.h... " >&6; }
5360 if test "${ac_cv_header_minix_config_h+set}" = set; then
5361   $as_echo_n "(cached) " >&6
5362 fi
5363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5364 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5365 else
5366   # Is the header compilable?
5367 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5368 $as_echo_n "checking minix/config.h usability... " >&6; }
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 $ac_includes_default
5376 #include <minix/config.h>
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385 $as_echo "$ac_try_echo") >&5
5386   (eval "$ac_compile") 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } && {
5393          test -z "$ac_c_werror_flag" ||
5394          test ! -s conftest.err
5395        } && test -s conftest.$ac_objext; then
5396   ac_header_compiler=yes
5397 else
5398   $as_echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401         ac_header_compiler=no
5402 fi
5403
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5406 $as_echo "$ac_header_compiler" >&6; }
5407
5408 # Is the header present?
5409 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5410 $as_echo_n "checking minix/config.h presence... " >&6; }
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 #include <minix/config.h>
5418 _ACEOF
5419 if { (ac_try="$ac_cpp conftest.$ac_ext"
5420 case "(($ac_try" in
5421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422   *) ac_try_echo=$ac_try;;
5423 esac
5424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5425 $as_echo "$ac_try_echo") >&5
5426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } >/dev/null && {
5433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5434          test ! -s conftest.err
5435        }; then
5436   ac_header_preproc=yes
5437 else
5438   $as_echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441   ac_header_preproc=no
5442 fi
5443
5444 rm -f conftest.err conftest.$ac_ext
5445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5446 $as_echo "$ac_header_preproc" >&6; }
5447
5448 # So?  What about this header?
5449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5450   yes:no: )
5451     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5452 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5453     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5454 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5455     ac_header_preproc=yes
5456     ;;
5457   no:yes:* )
5458     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5459 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5460     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5461 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5462     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5463 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5464     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5465 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5466     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5467 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5468     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5469 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5470     ( cat <<\_ASBOX
5471 ## ------------------------------ ##
5472 ## Report this to bug-tar@gnu.org ##
5473 ## ------------------------------ ##
5474 _ASBOX
5475      ) | sed "s/^/$as_me: WARNING:     /" >&2
5476     ;;
5477 esac
5478 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5479 $as_echo_n "checking for minix/config.h... " >&6; }
5480 if test "${ac_cv_header_minix_config_h+set}" = set; then
5481   $as_echo_n "(cached) " >&6
5482 else
5483   ac_cv_header_minix_config_h=$ac_header_preproc
5484 fi
5485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5486 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5487
5488 fi
5489 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5490   MINIX=yes
5491 else
5492   MINIX=
5493 fi
5494
5495
5496   if test "$MINIX" = yes; then
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define _POSIX_SOURCE 1
5500 _ACEOF
5501
5502
5503 cat >>confdefs.h <<\_ACEOF
5504 #define _POSIX_1_SOURCE 2
5505 _ACEOF
5506
5507
5508 cat >>confdefs.h <<\_ACEOF
5509 #define _MINIX 1
5510 _ACEOF
5511
5512   fi
5513
5514         case "$host_os" in
5515     hpux*)
5516
5517 cat >>confdefs.h <<\_ACEOF
5518 #define _XOPEN_SOURCE 500
5519 _ACEOF
5520
5521       ;;
5522   esac
5523
5524
5525
5526   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5527 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5528 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5529   $as_echo_n "(cached) " >&6
5530 else
5531   cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h.  */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h.  */
5537
5538 #         define __EXTENSIONS__ 1
5539           $ac_includes_default
5540 int
5541 main ()
5542 {
5543
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (ac_try="$ac_compile"
5550 case "(($ac_try" in
5551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552   *) ac_try_echo=$ac_try;;
5553 esac
5554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5555 $as_echo "$ac_try_echo") >&5
5556   (eval "$ac_compile") 2>conftest.er1
5557   ac_status=$?
5558   grep -v '^ *+' conftest.er1 >conftest.err
5559   rm -f conftest.er1
5560   cat conftest.err >&5
5561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); } && {
5563          test -z "$ac_c_werror_flag" ||
5564          test ! -s conftest.err
5565        } && test -s conftest.$ac_objext; then
5566   ac_cv_safe_to_define___extensions__=yes
5567 else
5568   $as_echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571         ac_cv_safe_to_define___extensions__=no
5572 fi
5573
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5578   test $ac_cv_safe_to_define___extensions__ = yes &&
5579     cat >>confdefs.h <<\_ACEOF
5580 #define __EXTENSIONS__ 1
5581 _ACEOF
5582
5583   cat >>confdefs.h <<\_ACEOF
5584 #define _ALL_SOURCE 1
5585 _ACEOF
5586
5587   cat >>confdefs.h <<\_ACEOF
5588 #define _GNU_SOURCE 1
5589 _ACEOF
5590
5591   cat >>confdefs.h <<\_ACEOF
5592 #define _POSIX_PTHREAD_SEMANTICS 1
5593 _ACEOF
5594
5595   cat >>confdefs.h <<\_ACEOF
5596 #define _TANDEM_SOURCE 1
5597 _ACEOF
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5608 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_source+set}" = set; then
5610   $as_echo_n "(cached) " >&6
5611 else
5612   while :; do
5613   cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <sys/types.h> /* for off_t */
5620      #include <stdio.h>
5621 int
5622 main ()
5623 {
5624 int (*fp) (FILE *, off_t, int) = fseeko;
5625      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (ac_try="$ac_link"
5632 case "(($ac_try" in
5633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634   *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5637 $as_echo "$ac_try_echo") >&5
5638   (eval "$ac_link") 2>conftest.er1
5639   ac_status=$?
5640   grep -v '^ *+' conftest.er1 >conftest.err
5641   rm -f conftest.er1
5642   cat conftest.err >&5
5643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } && {
5645          test -z "$ac_c_werror_flag" ||
5646          test ! -s conftest.err
5647        } && test -s conftest$ac_exeext && {
5648          test "$cross_compiling" = yes ||
5649          $as_test_x conftest$ac_exeext
5650        }; then
5651   ac_cv_sys_largefile_source=no; break
5652 else
5653   $as_echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5655
5656
5657 fi
5658
5659 rm -rf conftest.dSYM
5660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5661       conftest$ac_exeext conftest.$ac_ext
5662   cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668 #define _LARGEFILE_SOURCE 1
5669 #include <sys/types.h> /* for off_t */
5670      #include <stdio.h>
5671 int
5672 main ()
5673 {
5674 int (*fp) (FILE *, off_t, int) = fseeko;
5675      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (ac_try="$ac_link"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688   (eval "$ac_link") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } && {
5695          test -z "$ac_c_werror_flag" ||
5696          test ! -s conftest.err
5697        } && test -s conftest$ac_exeext && {
5698          test "$cross_compiling" = yes ||
5699          $as_test_x conftest$ac_exeext
5700        }; then
5701   ac_cv_sys_largefile_source=1; break
5702 else
5703   $as_echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706
5707 fi
5708
5709 rm -rf conftest.dSYM
5710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711       conftest$ac_exeext conftest.$ac_ext
5712   ac_cv_sys_largefile_source=unknown
5713   break
5714 done
5715 fi
5716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5717 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5718 case $ac_cv_sys_largefile_source in #(
5719   no | unknown) ;;
5720   *)
5721 cat >>confdefs.h <<_ACEOF
5722 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5723 _ACEOF
5724 ;;
5725 esac
5726 rm -rf conftest*
5727
5728 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5729 # in glibc 2.1.3, but that breaks too many other things.
5730 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5731 if test $ac_cv_sys_largefile_source != unknown; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_FSEEKO 1
5735 _ACEOF
5736
5737 fi
5738
5739    case $ac_cv_prog_cc_stdc in
5740   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5741   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5742 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5743 if test "${ac_cv_prog_cc_c99+set}" = set; then
5744   $as_echo_n "(cached) " >&6
5745 else
5746   ac_cv_prog_cc_c99=no
5747 ac_save_CC=$CC
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h.  */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h.  */
5754 #include <stdarg.h>
5755 #include <stdbool.h>
5756 #include <stdlib.h>
5757 #include <wchar.h>
5758 #include <stdio.h>
5759
5760 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5761 #define debug(...) fprintf (stderr, __VA_ARGS__)
5762 #define showlist(...) puts (#__VA_ARGS__)
5763 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5764 static void
5765 test_varargs_macros (void)
5766 {
5767   int x = 1234;
5768   int y = 5678;
5769   debug ("Flag");
5770   debug ("X = %d\n", x);
5771   showlist (The first, second, and third items.);
5772   report (x>y, "x is %d but y is %d", x, y);
5773 }
5774
5775 // Check long long types.
5776 #define BIG64 18446744073709551615ull
5777 #define BIG32 4294967295ul
5778 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5779 #if !BIG_OK
5780   your preprocessor is broken;
5781 #endif
5782 #if BIG_OK
5783 #else
5784   your preprocessor is broken;
5785 #endif
5786 static long long int bignum = -9223372036854775807LL;
5787 static unsigned long long int ubignum = BIG64;
5788
5789 struct incomplete_array
5790 {
5791   int datasize;
5792   double data[];
5793 };
5794
5795 struct named_init {
5796   int number;
5797   const wchar_t *name;
5798   double average;
5799 };
5800
5801 typedef const char *ccp;
5802
5803 static inline int
5804 test_restrict (ccp restrict text)
5805 {
5806   // See if C++-style comments work.
5807   // Iterate through items via the restricted pointer.
5808   // Also check for declarations in for loops.
5809   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5810     continue;
5811   return 0;
5812 }
5813
5814 // Check varargs and va_copy.
5815 static void
5816 test_varargs (const char *format, ...)
5817 {
5818   va_list args;
5819   va_start (args, format);
5820   va_list args_copy;
5821   va_copy (args_copy, args);
5822
5823   const char *str;
5824   int number;
5825   float fnumber;
5826
5827   while (*format)
5828     {
5829       switch (*format++)
5830         {
5831         case 's': // string
5832           str = va_arg (args_copy, const char *);
5833           break;
5834         case 'd': // int
5835           number = va_arg (args_copy, int);
5836           break;
5837         case 'f': // float
5838           fnumber = va_arg (args_copy, double);
5839           break;
5840         default:
5841           break;
5842         }
5843     }
5844   va_end (args_copy);
5845   va_end (args);
5846 }
5847
5848 int
5849 main ()
5850 {
5851
5852   // Check bool.
5853   _Bool success = false;
5854
5855   // Check restrict.
5856   if (test_restrict ("String literal") == 0)
5857     success = true;
5858   char *restrict newvar = "Another string";
5859
5860   // Check varargs.
5861   test_varargs ("s, d' f .", "string", 65, 34.234);
5862   test_varargs_macros ();
5863
5864   // Check flexible array members.
5865   struct incomplete_array *ia =
5866     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5867   ia->datasize = 10;
5868   for (int i = 0; i < ia->datasize; ++i)
5869     ia->data[i] = i * 1.234;
5870
5871   // Check named initializers.
5872   struct named_init ni = {
5873     .number = 34,
5874     .name = L"Test wide string",
5875     .average = 543.34343,
5876   };
5877
5878   ni.number = 58;
5879
5880   int dynamic_array[ni.number];
5881   dynamic_array[ni.number - 1] = 543;
5882
5883   // work around unused variable warnings
5884   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5885           || dynamic_array[ni.number - 1] != 543);
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5892 do
5893   CC="$ac_save_CC $ac_arg"
5894   rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && {
5909          test -z "$ac_c_werror_flag" ||
5910          test ! -s conftest.err
5911        } && test -s conftest.$ac_objext; then
5912   ac_cv_prog_cc_c99=$ac_arg
5913 else
5914   $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917
5918 fi
5919
5920 rm -f core conftest.err conftest.$ac_objext
5921   test "x$ac_cv_prog_cc_c99" != "xno" && break
5922 done
5923 rm -f conftest.$ac_ext
5924 CC=$ac_save_CC
5925
5926 fi
5927 # AC_CACHE_VAL
5928 case "x$ac_cv_prog_cc_c99" in
5929   x)
5930     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5931 $as_echo "none needed" >&6; } ;;
5932   xno)
5933     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5934 $as_echo "unsupported" >&6; } ;;
5935   *)
5936     CC="$CC $ac_cv_prog_cc_c99"
5937     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5938 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5939 esac
5940 if test "x$ac_cv_prog_cc_c99" != xno; then
5941   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5942 else
5943   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5945 if test "${ac_cv_prog_cc_c89+set}" = set; then
5946   $as_echo_n "(cached) " >&6
5947 else
5948   ac_cv_prog_cc_c89=no
5949 ac_save_CC=$CC
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956 #include <stdarg.h>
5957 #include <stdio.h>
5958 #include <sys/types.h>
5959 #include <sys/stat.h>
5960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5961 struct buf { int x; };
5962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5963 static char *e (p, i)
5964      char **p;
5965      int i;
5966 {
5967   return p[i];
5968 }
5969 static char *f (char * (*g) (char **, int), char **p, ...)
5970 {
5971   char *s;
5972   va_list v;
5973   va_start (v,p);
5974   s = g (p, va_arg (v,int));
5975   va_end (v);
5976   return s;
5977 }
5978
5979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5980    function prototypes and stuff, but not '\xHH' hex character constants.
5981    These don't provoke an error unfortunately, instead are silently treated
5982    as 'x'.  The following induces an error, until -std is added to get
5983    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5984    array size at least.  It's necessary to write '\x00'==0 to get something
5985    that's true only with -std.  */
5986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5987
5988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5989    inside strings and character constants.  */
5990 #define FOO(x) 'x'
5991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5992
5993 int test (int i, double x);
5994 struct s1 {int (*f) (int a);};
5995 struct s2 {int (*f) (double a);};
5996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5997 int argc;
5998 char **argv;
5999 int
6000 main ()
6001 {
6002 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6008         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6009 do
6010   CC="$ac_save_CC $ac_arg"
6011   rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6018 $as_echo "$ac_try_echo") >&5
6019   (eval "$ac_compile") 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } && {
6026          test -z "$ac_c_werror_flag" ||
6027          test ! -s conftest.err
6028        } && test -s conftest.$ac_objext; then
6029   ac_cv_prog_cc_c89=$ac_arg
6030 else
6031   $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext
6038   test "x$ac_cv_prog_cc_c89" != "xno" && break
6039 done
6040 rm -f conftest.$ac_ext
6041 CC=$ac_save_CC
6042
6043 fi
6044 # AC_CACHE_VAL
6045 case "x$ac_cv_prog_cc_c89" in
6046   x)
6047     { $as_echo "$as_me:$LINENO: result: none needed" >&5
6048 $as_echo "none needed" >&6; } ;;
6049   xno)
6050     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6051 $as_echo "unsupported" >&6; } ;;
6052   *)
6053     CC="$CC $ac_cv_prog_cc_c89"
6054     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6056 esac
6057 if test "x$ac_cv_prog_cc_c89" != xno; then
6058   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6059 else
6060   ac_cv_prog_cc_stdc=no
6061 fi
6062
6063
6064 fi
6065
6066  ;;
6067 esac
6068   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6069 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6070   if test "${ac_cv_prog_cc_stdc+set}" = set; then
6071   $as_echo_n "(cached) " >&6
6072 fi
6073
6074   case $ac_cv_prog_cc_stdc in
6075   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6076 $as_echo "unsupported" >&6; } ;;
6077   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6078 $as_echo "none needed" >&6; } ;;
6079   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6080 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6081 esac
6082
6083
6084
6085
6086
6087   # Code from module alloca:
6088   # Code from module alloca-opt:
6089   # Code from module areadlink:
6090   # Code from module areadlinkat:
6091   # Code from module arg-nonnull:
6092   # Code from module argmatch:
6093   # Code from module argp:
6094   # Code from module argp-version-etc:
6095   # Code from module backupfile:
6096   # Code from module bitrotate:
6097   # Code from module btowc:
6098   # Code from module c++defs:
6099   # Code from module c-ctype:
6100   # Code from module canonicalize-lgpl:
6101   # Code from module chdir-long:
6102   # Code from module chown:
6103   # Code from module clock-time:
6104   # Code from module cloexec:
6105   # Code from module close:
6106   # Code from module close-hook:
6107   # Code from module close-stream:
6108   # Code from module closeout:
6109   # Code from module configmake:
6110   # Code from module d-ino:
6111   # Code from module dirent:
6112   # Code from module dirent-safer:
6113   # Code from module dirfd:
6114   # Code from module dirname:
6115   # Code from module dirname-lgpl:
6116   # Code from module double-slash-root:
6117   # Code from module dup2:
6118   # Code from module environ:
6119   # Code from module errno:
6120   # Code from module error:
6121   # Code from module exclude:
6122   # Code from module exitfail:
6123   # Code from module extensions:
6124
6125   # Code from module fchdir:
6126   # Code from module fclose:
6127   # Code from module fcntl:
6128   # Code from module fcntl-h:
6129   # Code from module fdopendir:
6130   # Code from module fdutimensat:
6131   # Code from module fileblocks:
6132   # Code from module filenamecat-lgpl:
6133   # Code from module float:
6134   # Code from module fnmatch:
6135   # Code from module fnmatch-gnu:
6136   # Code from module fpending:
6137   # Code from module fseeko:
6138
6139   # Code from module full-write:
6140   # Code from module futimens:
6141   # Code from module getcwd:
6142   # Code from module getdelim:
6143   # Code from module getdtablesize:
6144   # Code from module getline:
6145   # Code from module getopt-gnu:
6146   # Code from module getopt-posix:
6147   # Code from module getpagesize:
6148   # Code from module gettext:
6149   # Code from module gettext-h:
6150   # Code from module gettime:
6151   # Code from module gettimeofday:
6152   # Code from module gitlog-to-changelog:
6153   # Code from module hash:
6154   # Code from module havelib:
6155   # Code from module human:
6156   # Code from module include_next:
6157   # Code from module inline:
6158   # Code from module intprops:
6159   # Code from module inttostr:
6160   # Code from module inttypes:
6161   # Code from module langinfo:
6162   # Code from module lchown:
6163   # Code from module link:
6164   # Code from module link-follow:
6165   # Code from module linkat:
6166   # Code from module localcharset:
6167   # Code from module lseek:
6168   # Code from module lstat:
6169   # Code from module malloc-gnu:
6170   # Code from module malloc-posix:
6171   # Code from module malloca:
6172   # Code from module mbchar:
6173   # Code from module mbrtowc:
6174   # Code from module mbscasecmp:
6175   # Code from module mbsinit:
6176   # Code from module mbsrtowcs:
6177   # Code from module mbuiter:
6178   # Code from module memchr:
6179   # Code from module mempcpy:
6180   # Code from module memrchr:
6181   # Code from module mkdir:
6182   # Code from module mkdtemp:
6183   # Code from module mkfifo:
6184   # Code from module mkfifoat:
6185   # Code from module mknod:
6186   # Code from module mktime:
6187   # Code from module modechange:
6188   # Code from module multiarch:
6189   # Code from module nl_langinfo:
6190   # Code from module obstack:
6191   # Code from module open:
6192   # Code from module openat:
6193   # Code from module openat-die:
6194   # Code from module parse-datetime:
6195   # Code from module pathmax:
6196   # Code from module priv-set:
6197   # Code from module progname:
6198   # Code from module quote:
6199   # Code from module quotearg:
6200   # Code from module quotearg-simple:
6201   # Code from module rawmemchr:
6202   # Code from module readlink:
6203   # Code from module readlinkat:
6204   # Code from module realloc-posix:
6205   # Code from module regex:
6206   # Code from module rename:
6207   # Code from module renameat:
6208   # Code from module rmdir:
6209   # Code from module rpmatch:
6210   # Code from module safe-read:
6211   # Code from module safe-write:
6212   # Code from module same-inode:
6213   # Code from module save-cwd:
6214   # Code from module savedir:
6215   # Code from module setenv:
6216   # Code from module size_max:
6217   # Code from module sleep:
6218   # Code from module snprintf:
6219   # Code from module ssize_t:
6220   # Code from module stat:
6221   # Code from module stat-macros:
6222   # Code from module stat-time:
6223   # Code from module stdarg:
6224
6225   # Code from module stdbool:
6226   # Code from module stddef:
6227   # Code from module stdint:
6228   # Code from module stdio:
6229   # Code from module stdlib:
6230   # Code from module stpcpy:
6231   # Code from module strcase:
6232   # Code from module strchrnul:
6233   # Code from module strdup-posix:
6234   # Code from module streq:
6235   # Code from module strerror:
6236   # Code from module string:
6237   # Code from module strings:
6238   # Code from module strndup:
6239   # Code from module strnlen:
6240   # Code from module strnlen1:
6241   # Code from module strtoimax:
6242   # Code from module strtol:
6243   # Code from module strtoll:
6244   # Code from module strtoul:
6245   # Code from module strtoull:
6246   # Code from module strtoumax:
6247   # Code from module symlink:
6248   # Code from module symlinkat:
6249   # Code from module sys_stat:
6250   # Code from module sys_time:
6251   # Code from module sysexits:
6252   # Code from module tempname:
6253   # Code from module time:
6254   # Code from module time_r:
6255   # Code from module timespec:
6256   # Code from module unistd:
6257   # Code from module unistd-safer:
6258   # Code from module unitypes:
6259   # Code from module uniwidth/base:
6260   # Code from module uniwidth/width:
6261   # Code from module unlink:
6262   # Code from module unlinkdir:
6263   # Code from module unlocked-io:
6264   # Code from module unsetenv:
6265   # Code from module utimens:
6266   # Code from module utimensat:
6267   # Code from module vasnprintf:
6268   # Code from module vasprintf:
6269   # Code from module verify:
6270   # Code from module version-etc:
6271   # Code from module version-etc-fsf:
6272   # Code from module vsnprintf:
6273   # Code from module warn-on-use:
6274   # Code from module wchar:
6275   # Code from module wcrtomb:
6276   # Code from module wctype:
6277   # Code from module wcwidth:
6278   # Code from module write:
6279   # Code from module xalloc:
6280   # Code from module xalloc-die:
6281   # Code from module xgetcwd:
6282   # Code from module xsize:
6283   # Code from module xstrndup:
6284   # Code from module xstrtol:
6285   # Code from module xstrtoumax:
6286   # Code from module xvasprintf:
6287
6288
6289 # Check whether --enable-largefile was given.
6290 if test "${enable_largefile+set}" = set; then
6291   enableval=$enable_largefile;
6292 fi
6293
6294 if test "$enable_largefile" != no; then
6295
6296   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6297 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6298 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6299   $as_echo_n "(cached) " >&6
6300 else
6301   ac_cv_sys_largefile_CC=no
6302      if test "$GCC" != yes; then
6303        ac_save_CC=$CC
6304        while :; do
6305          # IRIX 6.2 and later do not support large files by default,
6306          # so use the C compiler's -n32 option if that helps.
6307          cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #include <sys/types.h>
6314  /* Check that off_t can represent 2**63 - 1 correctly.
6315     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6316     since some C++ compilers masquerading as C compilers
6317     incorrectly reject 9223372036854775807.  */
6318 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6319   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6320                        && LARGE_OFF_T % 2147483647 == 1)
6321                       ? 1 : -1];
6322 int
6323 main ()
6324 {
6325
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330          rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6332 case "(($ac_try" in
6333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334   *) ac_try_echo=$ac_try;;
6335 esac
6336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6337 $as_echo "$ac_try_echo") >&5
6338   (eval "$ac_compile") 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } && {
6345          test -z "$ac_c_werror_flag" ||
6346          test ! -s conftest.err
6347        } && test -s conftest.$ac_objext; then
6348   break
6349 else
6350   $as_echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext
6357          CC="$CC -n32"
6358          rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6360 case "(($ac_try" in
6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362   *) ac_try_echo=$ac_try;;
6363 esac
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366   (eval "$ac_compile") 2>conftest.er1
6367   ac_status=$?
6368   grep -v '^ *+' conftest.er1 >conftest.err
6369   rm -f conftest.er1
6370   cat conftest.err >&5
6371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } && {
6373          test -z "$ac_c_werror_flag" ||
6374          test ! -s conftest.err
6375        } && test -s conftest.$ac_objext; then
6376   ac_cv_sys_largefile_CC=' -n32'; break
6377 else
6378   $as_echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381
6382 fi
6383
6384 rm -f core conftest.err conftest.$ac_objext
6385          break
6386        done
6387        CC=$ac_save_CC
6388        rm -f conftest.$ac_ext
6389     fi
6390 fi
6391 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6392 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6393   if test "$ac_cv_sys_largefile_CC" != no; then
6394     CC=$CC$ac_cv_sys_largefile_CC
6395   fi
6396
6397   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6398 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6399 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6400   $as_echo_n "(cached) " >&6
6401 else
6402   while :; do
6403   cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409 #include <sys/types.h>
6410  /* Check that off_t can represent 2**63 - 1 correctly.
6411     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6412     since some C++ compilers masquerading as C compilers
6413     incorrectly reject 9223372036854775807.  */
6414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6415   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6416                        && LARGE_OFF_T % 2147483647 == 1)
6417                       ? 1 : -1];
6418 int
6419 main ()
6420 {
6421
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430   *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434   (eval "$ac_compile") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && {
6441          test -z "$ac_c_werror_flag" ||
6442          test ! -s conftest.err
6443        } && test -s conftest.$ac_objext; then
6444   ac_cv_sys_file_offset_bits=no; break
6445 else
6446   $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 #define _FILE_OFFSET_BITS 64
6460 #include <sys/types.h>
6461  /* Check that off_t can represent 2**63 - 1 correctly.
6462     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6463     since some C++ compilers masquerading as C compilers
6464     incorrectly reject 9223372036854775807.  */
6465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6466   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6467                        && LARGE_OFF_T % 2147483647 == 1)
6468                       ? 1 : -1];
6469 int
6470 main ()
6471 {
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481   *) ac_try_echo=$ac_try;;
6482 esac
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485   (eval "$ac_compile") 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && {
6492          test -z "$ac_c_werror_flag" ||
6493          test ! -s conftest.err
6494        } && test -s conftest.$ac_objext; then
6495   ac_cv_sys_file_offset_bits=64; break
6496 else
6497   $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504   ac_cv_sys_file_offset_bits=unknown
6505   break
6506 done
6507 fi
6508 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6509 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6510 case $ac_cv_sys_file_offset_bits in #(
6511   no | unknown) ;;
6512   *)
6513 cat >>confdefs.h <<_ACEOF
6514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6515 _ACEOF
6516 ;;
6517 esac
6518 rm -rf conftest*
6519   if test $ac_cv_sys_file_offset_bits = unknown; then
6520     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6521 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6522 if test "${ac_cv_sys_large_files+set}" = set; then
6523   $as_echo_n "(cached) " >&6
6524 else
6525   while :; do
6526   cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 #include <sys/types.h>
6533  /* Check that off_t can represent 2**63 - 1 correctly.
6534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535     since some C++ compilers masquerading as C compilers
6536     incorrectly reject 9223372036854775807.  */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539                        && LARGE_OFF_T % 2147483647 == 1)
6540                       ? 1 : -1];
6541 int
6542 main ()
6543 {
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553   *) ac_try_echo=$ac_try;;
6554 esac
6555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6556 $as_echo "$ac_try_echo") >&5
6557   (eval "$ac_compile") 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } && {
6564          test -z "$ac_c_werror_flag" ||
6565          test ! -s conftest.err
6566        } && test -s conftest.$ac_objext; then
6567   ac_cv_sys_large_files=no; break
6568 else
6569   $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576   cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #define _LARGE_FILES 1
6583 #include <sys/types.h>
6584  /* Check that off_t can represent 2**63 - 1 correctly.
6585     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6586     since some C++ compilers masquerading as C compilers
6587     incorrectly reject 9223372036854775807.  */
6588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6589   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6590                        && LARGE_OFF_T % 2147483647 == 1)
6591                       ? 1 : -1];
6592 int
6593 main ()
6594 {
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6607 $as_echo "$ac_try_echo") >&5
6608   (eval "$ac_compile") 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } && {
6615          test -z "$ac_c_werror_flag" ||
6616          test ! -s conftest.err
6617        } && test -s conftest.$ac_objext; then
6618   ac_cv_sys_large_files=1; break
6619 else
6620   $as_echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623
6624 fi
6625
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627   ac_cv_sys_large_files=unknown
6628   break
6629 done
6630 fi
6631 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6632 $as_echo "$ac_cv_sys_large_files" >&6; }
6633 case $ac_cv_sys_large_files in #(
6634   no | unknown) ;;
6635   *)
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGE_FILES $ac_cv_sys_large_files
6638 _ACEOF
6639 ;;
6640 esac
6641 rm -rf conftest*
6642   fi
6643 fi
6644
6645 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6646 $as_echo_n "checking for library containing strerror... " >&6; }
6647 if test "${ac_cv_search_strerror+set}" = set; then
6648   $as_echo_n "(cached) " >&6
6649 else
6650   ac_func_search_save_LIBS=$LIBS
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657
6658 /* Override any GCC internal prototype to avoid an error.
6659    Use char because int might match the return type of a GCC
6660    builtin and then its argument prototype would still apply.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char strerror ();
6665 int
6666 main ()
6667 {
6668 return strerror ();
6669   ;
6670   return 0;
6671 }
6672 _ACEOF
6673 for ac_lib in '' cposix; do
6674   if test -z "$ac_lib"; then
6675     ac_res="none required"
6676   else
6677     ac_res=-l$ac_lib
6678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6679   fi
6680   rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6687 $as_echo "$ac_try_echo") >&5
6688   (eval "$ac_link") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && {
6695          test -z "$ac_c_werror_flag" ||
6696          test ! -s conftest.err
6697        } && test -s conftest$ac_exeext && {
6698          test "$cross_compiling" = yes ||
6699          $as_test_x conftest$ac_exeext
6700        }; then
6701   ac_cv_search_strerror=$ac_res
6702 else
6703   $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706
6707 fi
6708
6709 rm -rf conftest.dSYM
6710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6711       conftest$ac_exeext
6712   if test "${ac_cv_search_strerror+set}" = set; then
6713   break
6714 fi
6715 done
6716 if test "${ac_cv_search_strerror+set}" = set; then
6717   :
6718 else
6719   ac_cv_search_strerror=no
6720 fi
6721 rm conftest.$ac_ext
6722 LIBS=$ac_func_search_save_LIBS
6723 fi
6724 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6725 $as_echo "$ac_cv_search_strerror" >&6; }
6726 ac_res=$ac_cv_search_strerror
6727 if test "$ac_res" != no; then
6728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6729
6730 fi
6731
6732 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6733 $as_echo_n "checking for inline... " >&6; }
6734 if test "${ac_cv_c_inline+set}" = set; then
6735   $as_echo_n "(cached) " >&6
6736 else
6737   ac_cv_c_inline=no
6738 for ac_kw in inline __inline__ __inline; do
6739   cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745 #ifndef __cplusplus
6746 typedef int foo_t;
6747 static $ac_kw foo_t static_foo () {return 0; }
6748 $ac_kw foo_t foo () {return 0; }
6749 #endif
6750
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6754 case "(($ac_try" in
6755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756   *) ac_try_echo=$ac_try;;
6757 esac
6758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759 $as_echo "$ac_try_echo") >&5
6760   (eval "$ac_compile") 2>conftest.er1
6761   ac_status=$?
6762   grep -v '^ *+' conftest.er1 >conftest.err
6763   rm -f conftest.er1
6764   cat conftest.err >&5
6765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } && {
6767          test -z "$ac_c_werror_flag" ||
6768          test ! -s conftest.err
6769        } && test -s conftest.$ac_objext; then
6770   ac_cv_c_inline=$ac_kw
6771 else
6772   $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775
6776 fi
6777
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779   test "$ac_cv_c_inline" != no && break
6780 done
6781
6782 fi
6783 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6784 $as_echo "$ac_cv_c_inline" >&6; }
6785
6786
6787 case $ac_cv_c_inline in
6788   inline | yes) ;;
6789   *)
6790     case $ac_cv_c_inline in
6791       no) ac_val=;;
6792       *) ac_val=$ac_cv_c_inline;;
6793     esac
6794     cat >>confdefs.h <<_ACEOF
6795 #ifndef __cplusplus
6796 #define inline $ac_val
6797 #endif
6798 _ACEOF
6799     ;;
6800 esac
6801
6802
6803
6804
6805
6806
6807 for ac_header in $ac_header_list
6808 do
6809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6811   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 $as_echo_n "checking for $ac_header... " >&6; }
6813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6814   $as_echo_n "(cached) " >&6
6815 fi
6816 ac_res=`eval 'as_val=${'$as_ac_Header'}
6817                  $as_echo "$as_val"'`
6818                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 else
6821   # Is the header compilable?
6822 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6823 $as_echo_n "checking $ac_header usability... " >&6; }
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830 $ac_includes_default
6831 #include <$ac_header>
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841   (eval "$ac_compile") 2>conftest.er1
6842   ac_status=$?
6843   grep -v '^ *+' conftest.er1 >conftest.err
6844   rm -f conftest.er1
6845   cat conftest.err >&5
6846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } && {
6848          test -z "$ac_c_werror_flag" ||
6849          test ! -s conftest.err
6850        } && test -s conftest.$ac_objext; then
6851   ac_header_compiler=yes
6852 else
6853   $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856         ac_header_compiler=no
6857 fi
6858
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 $as_echo "$ac_header_compiler" >&6; }
6862
6863 # Is the header present?
6864 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6865 $as_echo_n "checking $ac_header presence... " >&6; }
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <$ac_header>
6873 _ACEOF
6874 if { (ac_try="$ac_cpp conftest.$ac_ext"
6875 case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } >/dev/null && {
6888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6889          test ! -s conftest.err
6890        }; then
6891   ac_header_preproc=yes
6892 else
6893   $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896   ac_header_preproc=no
6897 fi
6898
6899 rm -f conftest.err conftest.$ac_ext
6900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 $as_echo "$ac_header_preproc" >&6; }
6902
6903 # So?  What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905   yes:no: )
6906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6910     ac_header_preproc=yes
6911     ;;
6912   no:yes:* )
6913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6914 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6916 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6918 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6919     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6920 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6924 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925     ( cat <<\_ASBOX
6926 ## ------------------------------ ##
6927 ## Report this to bug-tar@gnu.org ##
6928 ## ------------------------------ ##
6929 _ASBOX
6930      ) | sed "s/^/$as_me: WARNING:     /" >&2
6931     ;;
6932 esac
6933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6934 $as_echo_n "checking for $ac_header... " >&6; }
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936   $as_echo_n "(cached) " >&6
6937 else
6938   eval "$as_ac_Header=\$ac_header_preproc"
6939 fi
6940 ac_res=`eval 'as_val=${'$as_ac_Header'}
6941                  $as_echo "$as_val"'`
6942                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6943 $as_echo "$ac_res" >&6; }
6944
6945 fi
6946 as_val=`eval 'as_val=${'$as_ac_Header'}
6947                  $as_echo "$as_val"'`
6948    if test "x$as_val" = x""yes; then
6949   cat >>confdefs.h <<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6952
6953 fi
6954
6955 done
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 for ac_header in sys/buf.h
7032 do
7033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7035 $as_echo_n "checking for $ac_header... " >&6; }
7036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7037   $as_echo_n "(cached) " >&6
7038 else
7039   cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045 #if HAVE_SYS_PARAM_H
7046 #include <sys/param.h>
7047 #endif
7048
7049 #include <$ac_header>
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7053 case "(($ac_try" in
7054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055   *) ac_try_echo=$ac_try;;
7056 esac
7057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059   (eval "$ac_compile") 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } && {
7066          test -z "$ac_c_werror_flag" ||
7067          test ! -s conftest.err
7068        } && test -s conftest.$ac_objext; then
7069   eval "$as_ac_Header=yes"
7070 else
7071   $as_echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         eval "$as_ac_Header=no"
7075 fi
7076
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 ac_res=`eval 'as_val=${'$as_ac_Header'}
7080                  $as_echo "$as_val"'`
7081                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7082 $as_echo "$ac_res" >&6; }
7083 as_val=`eval 'as_val=${'$as_ac_Header'}
7084                  $as_echo "$as_val"'`
7085    if test "x$as_val" = x""yes; then
7086   cat >>confdefs.h <<_ACEOF
7087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7088 _ACEOF
7089
7090 fi
7091
7092 done
7093
7094
7095 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7096 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7097 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7098   $as_echo_n "(cached) " >&6
7099 else
7100   cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <sys/types.h>
7107 #include <sys/wait.h>
7108 #ifndef WEXITSTATUS
7109 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7110 #endif
7111 #ifndef WIFEXITED
7112 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7113 #endif
7114
7115 int
7116 main ()
7117 {
7118   int s;
7119   wait (&s);
7120   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7127 case "(($ac_try" in
7128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129   *) ac_try_echo=$ac_try;;
7130 esac
7131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133   (eval "$ac_compile") 2>conftest.er1
7134   ac_status=$?
7135   grep -v '^ *+' conftest.er1 >conftest.err
7136   rm -f conftest.er1
7137   cat conftest.err >&5
7138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); } && {
7140          test -z "$ac_c_werror_flag" ||
7141          test ! -s conftest.err
7142        } && test -s conftest.$ac_objext; then
7143   ac_cv_header_sys_wait_h=yes
7144 else
7145   $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148         ac_cv_header_sys_wait_h=no
7149 fi
7150
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7154 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7155 if test $ac_cv_header_sys_wait_h = yes; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_SYS_WAIT_H 1
7159 _ACEOF
7160
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169 ac_header_dirent=no
7170 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7171   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7172 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7173 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7175   $as_echo_n "(cached) " >&6
7176 else
7177   cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 #include <sys/types.h>
7184 #include <$ac_hdr>
7185
7186 int
7187 main ()
7188 {
7189 if ((DIR *) 0)
7190 return 0;
7191   ;
7192   return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199   *) ac_try_echo=$ac_try;;
7200 esac
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203   (eval "$ac_compile") 2>conftest.er1
7204   ac_status=$?
7205   grep -v '^ *+' conftest.er1 >conftest.err
7206   rm -f conftest.er1
7207   cat conftest.err >&5
7208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); } && {
7210          test -z "$ac_c_werror_flag" ||
7211          test ! -s conftest.err
7212        } && test -s conftest.$ac_objext; then
7213   eval "$as_ac_Header=yes"
7214 else
7215   $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218         eval "$as_ac_Header=no"
7219 fi
7220
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223 ac_res=`eval 'as_val=${'$as_ac_Header'}
7224                  $as_echo "$as_val"'`
7225                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7226 $as_echo "$ac_res" >&6; }
7227 as_val=`eval 'as_val=${'$as_ac_Header'}
7228                  $as_echo "$as_val"'`
7229    if test "x$as_val" = x""yes; then
7230   cat >>confdefs.h <<_ACEOF
7231 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7232 _ACEOF
7233
7234 ac_header_dirent=$ac_hdr; break
7235 fi
7236
7237 done
7238 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7239 if test $ac_header_dirent = dirent.h; then
7240   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7241 $as_echo_n "checking for library containing opendir... " >&6; }
7242 if test "${ac_cv_search_opendir+set}" = set; then
7243   $as_echo_n "(cached) " >&6
7244 else
7245   ac_func_search_save_LIBS=$LIBS
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h.  */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h.  */
7252
7253 /* Override any GCC internal prototype to avoid an error.
7254    Use char because int might match the return type of a GCC
7255    builtin and then its argument prototype would still apply.  */
7256 #ifdef __cplusplus
7257 extern "C"
7258 #endif
7259 char opendir ();
7260 int
7261 main ()
7262 {
7263 return opendir ();
7264   ;
7265   return 0;
7266 }
7267 _ACEOF
7268 for ac_lib in '' dir; do
7269   if test -z "$ac_lib"; then
7270     ac_res="none required"
7271   else
7272     ac_res=-l$ac_lib
7273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7274   fi
7275   rm -f conftest.$ac_objext conftest$ac_exeext
7276 if { (ac_try="$ac_link"
7277 case "(($ac_try" in
7278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279   *) ac_try_echo=$ac_try;;
7280 esac
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283   (eval "$ac_link") 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } && {
7290          test -z "$ac_c_werror_flag" ||
7291          test ! -s conftest.err
7292        } && test -s conftest$ac_exeext && {
7293          test "$cross_compiling" = yes ||
7294          $as_test_x conftest$ac_exeext
7295        }; then
7296   ac_cv_search_opendir=$ac_res
7297 else
7298   $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301
7302 fi
7303
7304 rm -rf conftest.dSYM
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306       conftest$ac_exeext
7307   if test "${ac_cv_search_opendir+set}" = set; then
7308   break
7309 fi
7310 done
7311 if test "${ac_cv_search_opendir+set}" = set; then
7312   :
7313 else
7314   ac_cv_search_opendir=no
7315 fi
7316 rm conftest.$ac_ext
7317 LIBS=$ac_func_search_save_LIBS
7318 fi
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7320 $as_echo "$ac_cv_search_opendir" >&6; }
7321 ac_res=$ac_cv_search_opendir
7322 if test "$ac_res" != no; then
7323   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7324
7325 fi
7326
7327 else
7328   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7329 $as_echo_n "checking for library containing opendir... " >&6; }
7330 if test "${ac_cv_search_opendir+set}" = set; then
7331   $as_echo_n "(cached) " >&6
7332 else
7333   ac_func_search_save_LIBS=$LIBS
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340
7341 /* Override any GCC internal prototype to avoid an error.
7342    Use char because int might match the return type of a GCC
7343    builtin and then its argument prototype would still apply.  */
7344 #ifdef __cplusplus
7345 extern "C"
7346 #endif
7347 char opendir ();
7348 int
7349 main ()
7350 {
7351 return opendir ();
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 for ac_lib in '' x; do
7357   if test -z "$ac_lib"; then
7358     ac_res="none required"
7359   else
7360     ac_res=-l$ac_lib
7361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7362   fi
7363   rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (ac_try="$ac_link"
7365 case "(($ac_try" in
7366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367   *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371   (eval "$ac_link") 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } && {
7378          test -z "$ac_c_werror_flag" ||
7379          test ! -s conftest.err
7380        } && test -s conftest$ac_exeext && {
7381          test "$cross_compiling" = yes ||
7382          $as_test_x conftest$ac_exeext
7383        }; then
7384   ac_cv_search_opendir=$ac_res
7385 else
7386   $as_echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389
7390 fi
7391
7392 rm -rf conftest.dSYM
7393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7394       conftest$ac_exeext
7395   if test "${ac_cv_search_opendir+set}" = set; then
7396   break
7397 fi
7398 done
7399 if test "${ac_cv_search_opendir+set}" = set; then
7400   :
7401 else
7402   ac_cv_search_opendir=no
7403 fi
7404 rm conftest.$ac_ext
7405 LIBS=$ac_func_search_save_LIBS
7406 fi
7407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7408 $as_echo "$ac_cv_search_opendir" >&6; }
7409 ac_res=$ac_cv_search_opendir
7410 if test "$ac_res" != no; then
7411   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7412
7413 fi
7414
7415 fi
7416
7417 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7418 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7419 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7420   $as_echo_n "(cached) " >&6
7421 else
7422   cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428 #include <sys/types.h>
7429 int
7430 main ()
7431 {
7432 return makedev(0, 0);
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (ac_try="$ac_link"
7439 case "(($ac_try" in
7440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441   *) ac_try_echo=$ac_try;;
7442 esac
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445   (eval "$ac_link") 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } && {
7452          test -z "$ac_c_werror_flag" ||
7453          test ! -s conftest.err
7454        } && test -s conftest$ac_exeext && {
7455          test "$cross_compiling" = yes ||
7456          $as_test_x conftest$ac_exeext
7457        }; then
7458   ac_cv_header_sys_types_h_makedev=yes
7459 else
7460   $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463         ac_cv_header_sys_types_h_makedev=no
7464 fi
7465
7466 rm -rf conftest.dSYM
7467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468       conftest$ac_exeext conftest.$ac_ext
7469
7470 fi
7471 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7472 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7473
7474 if test $ac_cv_header_sys_types_h_makedev = no; then
7475 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7476   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7477 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7478 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7479   $as_echo_n "(cached) " >&6
7480 fi
7481 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7482 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7483 else
7484   # Is the header compilable?
7485 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7486 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h.  */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h.  */
7493 $ac_includes_default
7494 #include <sys/mkdev.h>
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500   *) ac_try_echo=$ac_try;;
7501 esac
7502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7503 $as_echo "$ac_try_echo") >&5
7504   (eval "$ac_compile") 2>conftest.er1
7505   ac_status=$?
7506   grep -v '^ *+' conftest.er1 >conftest.err
7507   rm -f conftest.er1
7508   cat conftest.err >&5
7509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); } && {
7511          test -z "$ac_c_werror_flag" ||
7512          test ! -s conftest.err
7513        } && test -s conftest.$ac_objext; then
7514   ac_header_compiler=yes
7515 else
7516   $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519         ac_header_compiler=no
7520 fi
7521
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 $as_echo "$ac_header_compiler" >&6; }
7525
7526 # Is the header present?
7527 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7528 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 #include <sys/mkdev.h>
7536 _ACEOF
7537 if { (ac_try="$ac_cpp conftest.$ac_ext"
7538 case "(($ac_try" in
7539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540   *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } >/dev/null && {
7551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7552          test ! -s conftest.err
7553        }; then
7554   ac_header_preproc=yes
7555 else
7556   $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559   ac_header_preproc=no
7560 fi
7561
7562 rm -f conftest.err conftest.$ac_ext
7563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7564 $as_echo "$ac_header_preproc" >&6; }
7565
7566 # So?  What about this header?
7567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7568   yes:no: )
7569     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7570 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7571     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7572 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7573     ac_header_preproc=yes
7574     ;;
7575   no:yes:* )
7576     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7577 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7578     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
7579 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
7580     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7581 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7582     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
7583 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7584     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7585 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7586     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7587 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7588     ( cat <<\_ASBOX
7589 ## ------------------------------ ##
7590 ## Report this to bug-tar@gnu.org ##
7591 ## ------------------------------ ##
7592 _ASBOX
7593      ) | sed "s/^/$as_me: WARNING:     /" >&2
7594     ;;
7595 esac
7596 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7597 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7598 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7599   $as_echo_n "(cached) " >&6
7600 else
7601   ac_cv_header_sys_mkdev_h=$ac_header_preproc
7602 fi
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7604 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7605
7606 fi
7607 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define MAJOR_IN_MKDEV 1
7611 _ACEOF
7612
7613 fi
7614
7615
7616
7617   if test $ac_cv_header_sys_mkdev_h = no; then
7618     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7619   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7620 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7621 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7622   $as_echo_n "(cached) " >&6
7623 fi
7624 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7625 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7626 else
7627   # Is the header compilable?
7628 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7629 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h.  */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h.  */
7636 $ac_includes_default
7637 #include <sys/sysmacros.h>
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7641 case "(($ac_try" in
7642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643   *) ac_try_echo=$ac_try;;
7644 esac
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647   (eval "$ac_compile") 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } && {
7654          test -z "$ac_c_werror_flag" ||
7655          test ! -s conftest.err
7656        } && test -s conftest.$ac_objext; then
7657   ac_header_compiler=yes
7658 else
7659   $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662         ac_header_compiler=no
7663 fi
7664
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7667 $as_echo "$ac_header_compiler" >&6; }
7668
7669 # Is the header present?
7670 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7671 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 #include <sys/sysmacros.h>
7679 _ACEOF
7680 if { (ac_try="$ac_cpp conftest.$ac_ext"
7681 case "(($ac_try" in
7682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683   *) ac_try_echo=$ac_try;;
7684 esac
7685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7688   ac_status=$?
7689   grep -v '^ *+' conftest.er1 >conftest.err
7690   rm -f conftest.er1
7691   cat conftest.err >&5
7692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } >/dev/null && {
7694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7695          test ! -s conftest.err
7696        }; then
7697   ac_header_preproc=yes
7698 else
7699   $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702   ac_header_preproc=no
7703 fi
7704
7705 rm -f conftest.err conftest.$ac_ext
7706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7707 $as_echo "$ac_header_preproc" >&6; }
7708
7709 # So?  What about this header?
7710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7711   yes:no: )
7712     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7713 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7714     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7715 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7716     ac_header_preproc=yes
7717     ;;
7718   no:yes:* )
7719     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7720 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7721     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7722 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7723     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7724 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7725     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7726 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7727     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7728 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7729     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7730 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7731     ( cat <<\_ASBOX
7732 ## ------------------------------ ##
7733 ## Report this to bug-tar@gnu.org ##
7734 ## ------------------------------ ##
7735 _ASBOX
7736      ) | sed "s/^/$as_me: WARNING:     /" >&2
7737     ;;
7738 esac
7739 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7740 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7741 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7742   $as_echo_n "(cached) " >&6
7743 else
7744   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7745 fi
7746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7747 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7748
7749 fi
7750 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define MAJOR_IN_SYSMACROS 1
7754 _ACEOF
7755
7756 fi
7757
7758
7759   fi
7760 fi
7761
7762 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7763 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7764 if test "${ac_cv_header_stat_broken+set}" = set; then
7765   $as_echo_n "(cached) " >&6
7766 else
7767   cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773 #include <sys/types.h>
7774 #include <sys/stat.h>
7775
7776 #if defined S_ISBLK && defined S_IFDIR
7777 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7778 #endif
7779
7780 #if defined S_ISBLK && defined S_IFCHR
7781 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7782 #endif
7783
7784 #if defined S_ISLNK && defined S_IFREG
7785 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7786 #endif
7787
7788 #if defined S_ISSOCK && defined S_IFREG
7789 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7790 #endif
7791
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801   (eval "$ac_compile") 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } && {
7808          test -z "$ac_c_werror_flag" ||
7809          test ! -s conftest.err
7810        } && test -s conftest.$ac_objext; then
7811   ac_cv_header_stat_broken=no
7812 else
7813   $as_echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816         ac_cv_header_stat_broken=yes
7817 fi
7818
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7822 $as_echo "$ac_cv_header_stat_broken" >&6; }
7823 if test $ac_cv_header_stat_broken = yes; then
7824
7825 cat >>confdefs.h <<\_ACEOF
7826 #define STAT_MACROS_BROKEN 1
7827 _ACEOF
7828
7829 fi
7830
7831 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7832 $as_echo_n "checking for ANSI C header files... " >&6; }
7833 if test "${ac_cv_header_stdc+set}" = set; then
7834   $as_echo_n "(cached) " >&6
7835 else
7836   cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 #include <stdlib.h>
7843 #include <stdarg.h>
7844 #include <string.h>
7845 #include <float.h>
7846
7847 int
7848 main ()
7849 {
7850
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7857 case "(($ac_try" in
7858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859   *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863   (eval "$ac_compile") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest.$ac_objext; then
7873   ac_cv_header_stdc=yes
7874 else
7875   $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878         ac_cv_header_stdc=no
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <string.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "memchr" >/dev/null 2>&1; then
7896   :
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 #include <stdlib.h>
7913
7914 _ACEOF
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916   $EGREP "free" >/dev/null 2>&1; then
7917   :
7918 else
7919   ac_cv_header_stdc=no
7920 fi
7921 rm -f conftest*
7922
7923 fi
7924
7925 if test $ac_cv_header_stdc = yes; then
7926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7927   if test "$cross_compiling" = yes; then
7928   :
7929 else
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 #include <ctype.h>
7937 #include <stdlib.h>
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7941 #else
7942 # define ISLOWER(c) \
7943                    (('a' <= (c) && (c) <= 'i') \
7944                      || ('j' <= (c) && (c) <= 'r') \
7945                      || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7947 #endif
7948
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7950 int
7951 main ()
7952 {
7953   int i;
7954   for (i = 0; i < 256; i++)
7955     if (XOR (islower (i), ISLOWER (i))
7956         || toupper (i) != TOUPPER (i))
7957       return 2;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969   (eval "$ac_link") 2>&5
7970   ac_status=$?
7971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7973   { (case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979   (eval "$ac_try") 2>&5
7980   ac_status=$?
7981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; }; then
7983   :
7984 else
7985   $as_echo "$as_me: program exited with status $ac_status" >&5
7986 $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ( exit $ac_status )
7990 ac_cv_header_stdc=no
7991 fi
7992 rm -rf conftest.dSYM
7993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7994 fi
7995
7996
7997 fi
7998 fi
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8000 $as_echo "$ac_cv_header_stdc" >&6; }
8001 if test $ac_cv_header_stdc = yes; then
8002
8003 cat >>confdefs.h <<\_ACEOF
8004 #define STDC_HEADERS 1
8005 _ACEOF
8006
8007 fi
8008
8009
8010 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
8011 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
8012 if test "${diff_cv_st_fstype_string+set}" = set; then
8013   $as_echo_n "(cached) " >&6
8014 else
8015   cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 #include <sys/types.h>
8022 #include <sys/stat.h>
8023 int
8024 main ()
8025 {
8026 struct stat s; s.st_fstype[0] = 'x';
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest.$ac_objext; then
8049   diff_cv_st_fstype_string=yes
8050 else
8051   $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054         diff_cv_st_fstype_string=no
8055 fi
8056
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059
8060 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
8061 $as_echo "$diff_cv_st_fstype_string" >&6; }
8062 if test $diff_cv_st_fstype_string = yes; then
8063
8064 cat >>confdefs.h <<\_ACEOF
8065 #define HAVE_ST_FSTYPE_STRING 1
8066 _ACEOF
8067
8068 fi
8069
8070 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8071 $as_echo_n "checking return type of signal handlers... " >&6; }
8072 if test "${ac_cv_type_signal+set}" = set; then
8073   $as_echo_n "(cached) " >&6
8074 else
8075   cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081 #include <sys/types.h>
8082 #include <signal.h>
8083
8084 int
8085 main ()
8086 {
8087 return *(signal (0, 0)) (0) == 1;
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8094 case "(($ac_try" in
8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096   *) ac_try_echo=$ac_try;;
8097 esac
8098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8099 $as_echo "$ac_try_echo") >&5
8100   (eval "$ac_compile") 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } && {
8107          test -z "$ac_c_werror_flag" ||
8108          test ! -s conftest.err
8109        } && test -s conftest.$ac_objext; then
8110   ac_cv_type_signal=int
8111 else
8112   $as_echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115         ac_cv_type_signal=void
8116 fi
8117
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 fi
8120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8121 $as_echo "$ac_cv_type_signal" >&6; }
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define RETSIGTYPE $ac_cv_type_signal
8125 _ACEOF
8126
8127
8128 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
8129 $as_echo_n "checking for mode_t... " >&6; }
8130 if test "${ac_cv_type_mode_t+set}" = set; then
8131   $as_echo_n "(cached) " >&6
8132 else
8133   ac_cv_type_mode_t=no
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 $ac_includes_default
8141 int
8142 main ()
8143 {
8144 if (sizeof (mode_t))
8145        return 0;
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154   *) ac_try_echo=$ac_try;;
8155 esac
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158   (eval "$ac_compile") 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } && {
8165          test -z "$ac_c_werror_flag" ||
8166          test ! -s conftest.err
8167        } && test -s conftest.$ac_objext; then
8168   cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 $ac_includes_default
8175 int
8176 main ()
8177 {
8178 if (sizeof ((mode_t)))
8179           return 0;
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   :
8203 else
8204   $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         ac_cv_type_mode_t=yes
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 else
8212   $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8221 $as_echo "$ac_cv_type_mode_t" >&6; }
8222 if test "x$ac_cv_type_mode_t" = x""yes; then
8223   :
8224 else
8225
8226 cat >>confdefs.h <<_ACEOF
8227 #define mode_t int
8228 _ACEOF
8229
8230 fi
8231
8232 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8233 $as_echo_n "checking for pid_t... " >&6; }
8234 if test "${ac_cv_type_pid_t+set}" = set; then
8235   $as_echo_n "(cached) " >&6
8236 else
8237   ac_cv_type_pid_t=no
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244 $ac_includes_default
8245 int
8246 main ()
8247 {
8248 if (sizeof (pid_t))
8249        return 0;
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8261 $as_echo "$ac_try_echo") >&5
8262   (eval "$ac_compile") 2>conftest.er1
8263   ac_status=$?
8264   grep -v '^ *+' conftest.er1 >conftest.err
8265   rm -f conftest.er1
8266   cat conftest.err >&5
8267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } && {
8269          test -z "$ac_c_werror_flag" ||
8270          test ! -s conftest.err
8271        } && test -s conftest.$ac_objext; then
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 $ac_includes_default
8279 int
8280 main ()
8281 {
8282 if (sizeof ((pid_t)))
8283           return 0;
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest.$ac_objext; then
8306   :
8307 else
8308   $as_echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311         ac_cv_type_pid_t=yes
8312 fi
8313
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 else
8316   $as_echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8325 $as_echo "$ac_cv_type_pid_t" >&6; }
8326 if test "x$ac_cv_type_pid_t" = x""yes; then
8327   :
8328 else
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define pid_t int
8332 _ACEOF
8333
8334 fi
8335
8336 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8337 $as_echo_n "checking for off_t... " >&6; }
8338 if test "${ac_cv_type_off_t+set}" = set; then
8339   $as_echo_n "(cached) " >&6
8340 else
8341   ac_cv_type_off_t=no
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348 $ac_includes_default
8349 int
8350 main ()
8351 {
8352 if (sizeof (off_t))
8353        return 0;
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366   (eval "$ac_compile") 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } && {
8373          test -z "$ac_c_werror_flag" ||
8374          test ! -s conftest.err
8375        } && test -s conftest.$ac_objext; then
8376   cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 int
8384 main ()
8385 {
8386 if (sizeof ((off_t)))
8387           return 0;
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399 $as_echo "$ac_try_echo") >&5
8400   (eval "$ac_compile") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } && {
8407          test -z "$ac_c_werror_flag" ||
8408          test ! -s conftest.err
8409        } && test -s conftest.$ac_objext; then
8410   :
8411 else
8412   $as_echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_type_off_t=yes
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 else
8420   $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423
8424 fi
8425
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8429 $as_echo "$ac_cv_type_off_t" >&6; }
8430 if test "x$ac_cv_type_off_t" = x""yes; then
8431   :
8432 else
8433
8434 cat >>confdefs.h <<_ACEOF
8435 #define off_t long int
8436 _ACEOF
8437
8438 fi
8439
8440 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8441 $as_echo_n "checking for size_t... " >&6; }
8442 if test "${ac_cv_type_size_t+set}" = set; then
8443   $as_echo_n "(cached) " >&6
8444 else
8445   ac_cv_type_size_t=no
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 $ac_includes_default
8453 int
8454 main ()
8455 {
8456 if (sizeof (size_t))
8457        return 0;
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469 $as_echo "$ac_try_echo") >&5
8470   (eval "$ac_compile") 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } && {
8477          test -z "$ac_c_werror_flag" ||
8478          test ! -s conftest.err
8479        } && test -s conftest.$ac_objext; then
8480   cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486 $ac_includes_default
8487 int
8488 main ()
8489 {
8490 if (sizeof ((size_t)))
8491           return 0;
8492   ;
8493   return 0;
8494 }
8495 _ACEOF
8496 rm -f conftest.$ac_objext
8497 if { (ac_try="$ac_compile"
8498 case "(($ac_try" in
8499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500   *) ac_try_echo=$ac_try;;
8501 esac
8502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8503 $as_echo "$ac_try_echo") >&5
8504   (eval "$ac_compile") 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } && {
8511          test -z "$ac_c_werror_flag" ||
8512          test ! -s conftest.err
8513        } && test -s conftest.$ac_objext; then
8514   :
8515 else
8516   $as_echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519         ac_cv_type_size_t=yes
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 else
8524   $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527
8528 fi
8529
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 fi
8532 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8533 $as_echo "$ac_cv_type_size_t" >&6; }
8534 if test "x$ac_cv_type_size_t" = x""yes; then
8535   :
8536 else
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define size_t unsigned int
8540 _ACEOF
8541
8542 fi
8543
8544 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8545 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8546 if test "${ac_cv_type_uid_t+set}" = set; then
8547   $as_echo_n "(cached) " >&6
8548 else
8549   cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555 #include <sys/types.h>
8556
8557 _ACEOF
8558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8559   $EGREP "uid_t" >/dev/null 2>&1; then
8560   ac_cv_type_uid_t=yes
8561 else
8562   ac_cv_type_uid_t=no
8563 fi
8564 rm -f conftest*
8565
8566 fi
8567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8568 $as_echo "$ac_cv_type_uid_t" >&6; }
8569 if test $ac_cv_type_uid_t = no; then
8570
8571 cat >>confdefs.h <<\_ACEOF
8572 #define uid_t int
8573 _ACEOF
8574
8575
8576 cat >>confdefs.h <<\_ACEOF
8577 #define gid_t int
8578 _ACEOF
8579
8580 fi
8581
8582 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8583 $as_echo_n "checking for major_t... " >&6; }
8584 if test "${ac_cv_type_major_t+set}" = set; then
8585   $as_echo_n "(cached) " >&6
8586 else
8587   ac_cv_type_major_t=no
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 $ac_includes_default
8595 int
8596 main ()
8597 {
8598 if (sizeof (major_t))
8599        return 0;
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612   (eval "$ac_compile") 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } && {
8619          test -z "$ac_c_werror_flag" ||
8620          test ! -s conftest.err
8621        } && test -s conftest.$ac_objext; then
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 $ac_includes_default
8629 int
8630 main ()
8631 {
8632 if (sizeof ((major_t)))
8633           return 0;
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646   (eval "$ac_compile") 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && {
8653          test -z "$ac_c_werror_flag" ||
8654          test ! -s conftest.err
8655        } && test -s conftest.$ac_objext; then
8656   :
8657 else
8658   $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661         ac_cv_type_major_t=yes
8662 fi
8663
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 else
8666   $as_echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8675 $as_echo "$ac_cv_type_major_t" >&6; }
8676 if test "x$ac_cv_type_major_t" = x""yes; then
8677   :
8678 else
8679
8680 cat >>confdefs.h <<\_ACEOF
8681 #define major_t int
8682 _ACEOF
8683
8684 fi
8685
8686 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8687 $as_echo_n "checking for minor_t... " >&6; }
8688 if test "${ac_cv_type_minor_t+set}" = set; then
8689   $as_echo_n "(cached) " >&6
8690 else
8691   ac_cv_type_minor_t=no
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698 $ac_includes_default
8699 int
8700 main ()
8701 {
8702 if (sizeof (minor_t))
8703        return 0;
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8710 case "(($ac_try" in
8711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712   *) ac_try_echo=$ac_try;;
8713 esac
8714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8715 $as_echo "$ac_try_echo") >&5
8716   (eval "$ac_compile") 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } && {
8723          test -z "$ac_c_werror_flag" ||
8724          test ! -s conftest.err
8725        } && test -s conftest.$ac_objext; then
8726   cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732 $ac_includes_default
8733 int
8734 main ()
8735 {
8736 if (sizeof ((minor_t)))
8737           return 0;
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8744 case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750   (eval "$ac_compile") 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } && {
8757          test -z "$ac_c_werror_flag" ||
8758          test ! -s conftest.err
8759        } && test -s conftest.$ac_objext; then
8760   :
8761 else
8762   $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765         ac_cv_type_minor_t=yes
8766 fi
8767
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 else
8770   $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773
8774 fi
8775
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 fi
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8779 $as_echo "$ac_cv_type_minor_t" >&6; }
8780 if test "x$ac_cv_type_minor_t" = x""yes; then
8781   :
8782 else
8783
8784 cat >>confdefs.h <<\_ACEOF
8785 #define minor_t int
8786 _ACEOF
8787
8788 fi
8789
8790 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8791 $as_echo_n "checking for dev_t... " >&6; }
8792 if test "${ac_cv_type_dev_t+set}" = set; then
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_cv_type_dev_t=no
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 $ac_includes_default
8803 int
8804 main ()
8805 {
8806 if (sizeof (dev_t))
8807        return 0;
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext
8813 if { (ac_try="$ac_compile"
8814 case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8819 $as_echo "$ac_try_echo") >&5
8820   (eval "$ac_compile") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } && {
8827          test -z "$ac_c_werror_flag" ||
8828          test ! -s conftest.err
8829        } && test -s conftest.$ac_objext; then
8830   cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836 $ac_includes_default
8837 int
8838 main ()
8839 {
8840 if (sizeof ((dev_t)))
8841           return 0;
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854   (eval "$ac_compile") 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } && {
8861          test -z "$ac_c_werror_flag" ||
8862          test ! -s conftest.err
8863        } && test -s conftest.$ac_objext; then
8864   :
8865 else
8866   $as_echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869         ac_cv_type_dev_t=yes
8870 fi
8871
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 else
8874   $as_echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877
8878 fi
8879
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8883 $as_echo "$ac_cv_type_dev_t" >&6; }
8884 if test "x$ac_cv_type_dev_t" = x""yes; then
8885   :
8886 else
8887
8888 cat >>confdefs.h <<_ACEOF
8889 #define dev_t unsigned
8890 _ACEOF
8891
8892 fi
8893
8894 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8895 $as_echo_n "checking for ino_t... " >&6; }
8896 if test "${ac_cv_type_ino_t+set}" = set; then
8897   $as_echo_n "(cached) " >&6
8898 else
8899   ac_cv_type_ino_t=no
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h.  */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h.  */
8906 $ac_includes_default
8907 int
8908 main ()
8909 {
8910 if (sizeof (ino_t))
8911        return 0;
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924   (eval "$ac_compile") 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && {
8931          test -z "$ac_c_werror_flag" ||
8932          test ! -s conftest.err
8933        } && test -s conftest.$ac_objext; then
8934   cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 $ac_includes_default
8941 int
8942 main ()
8943 {
8944 if (sizeof ((ino_t)))
8945           return 0;
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8952 case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958   (eval "$ac_compile") 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } && {
8965          test -z "$ac_c_werror_flag" ||
8966          test ! -s conftest.err
8967        } && test -s conftest.$ac_objext; then
8968   :
8969 else
8970   $as_echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973         ac_cv_type_ino_t=yes
8974 fi
8975
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 else
8978   $as_echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981
8982 fi
8983
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8987 $as_echo "$ac_cv_type_ino_t" >&6; }
8988 if test "x$ac_cv_type_ino_t" = x""yes; then
8989   :
8990 else
8991
8992 cat >>confdefs.h <<_ACEOF
8993 #define ino_t unsigned
8994 _ACEOF
8995
8996 fi
8997
8998
8999
9000   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9001 $as_echo_n "checking for ssize_t... " >&6; }
9002 if test "${gt_cv_ssize_t+set}" = set; then
9003   $as_echo_n "(cached) " >&6
9004 else
9005   cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011 #include <sys/types.h>
9012 int
9013 main ()
9014 {
9015 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9016             return !x;
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext
9022 if { (ac_try="$ac_compile"
9023 case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9028 $as_echo "$ac_try_echo") >&5
9029   (eval "$ac_compile") 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } && {
9036          test -z "$ac_c_werror_flag" ||
9037          test ! -s conftest.err
9038        } && test -s conftest.$ac_objext; then
9039   gt_cv_ssize_t=yes
9040 else
9041   $as_echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044         gt_cv_ssize_t=no
9045 fi
9046
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9049 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9050 $as_echo "$gt_cv_ssize_t" >&6; }
9051   if test $gt_cv_ssize_t = no; then
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define ssize_t int
9055 _ACEOF
9056
9057   fi
9058
9059
9060 # gnulib modules
9061
9062
9063
9064
9065
9066
9067           LIBC_FATAL_STDERR_=1
9068   export LIBC_FATAL_STDERR_
9069
9070 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9071 # for constant arguments.  Useless!
9072 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9073 $as_echo_n "checking for working alloca.h... " >&6; }
9074 if test "${ac_cv_working_alloca_h+set}" = set; then
9075   $as_echo_n "(cached) " >&6
9076 else
9077   cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 #include <alloca.h>
9084 int
9085 main ()
9086 {
9087 char *p = (char *) alloca (2 * sizeof (int));
9088                           if (p) return 0;
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9095 case "(($ac_try" in
9096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097   *) ac_try_echo=$ac_try;;
9098 esac
9099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9100 $as_echo "$ac_try_echo") >&5
9101   (eval "$ac_link") 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } && {
9108          test -z "$ac_c_werror_flag" ||
9109          test ! -s conftest.err
9110        } && test -s conftest$ac_exeext && {
9111          test "$cross_compiling" = yes ||
9112          $as_test_x conftest$ac_exeext
9113        }; then
9114   ac_cv_working_alloca_h=yes
9115 else
9116   $as_echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119         ac_cv_working_alloca_h=no
9120 fi
9121
9122 rm -rf conftest.dSYM
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124       conftest$ac_exeext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9127 $as_echo "$ac_cv_working_alloca_h" >&6; }
9128 if test $ac_cv_working_alloca_h = yes; then
9129
9130 cat >>confdefs.h <<\_ACEOF
9131 #define HAVE_ALLOCA_H 1
9132 _ACEOF
9133
9134 fi
9135
9136 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9137 $as_echo_n "checking for alloca... " >&6; }
9138 if test "${ac_cv_func_alloca_works+set}" = set; then
9139   $as_echo_n "(cached) " >&6
9140 else
9141   cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h.  */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h.  */
9147 #ifdef __GNUC__
9148 # define alloca __builtin_alloca
9149 #else
9150 # ifdef _MSC_VER
9151 #  include <malloc.h>
9152 #  define alloca _alloca
9153 # else
9154 #  ifdef HAVE_ALLOCA_H
9155 #   include <alloca.h>
9156 #  else
9157 #   ifdef _AIX
9158  #pragma alloca
9159 #   else
9160 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9161 char *alloca ();
9162 #    endif
9163 #   endif
9164 #  endif
9165 # endif
9166 #endif
9167
9168 int
9169 main ()
9170 {
9171 char *p = (char *) alloca (1);
9172                                     if (p) return 0;
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185   (eval "$ac_link") 2>conftest.er1
9186   ac_status=$?
9187   grep -v '^ *+' conftest.er1 >conftest.err
9188   rm -f conftest.er1
9189   cat conftest.err >&5
9190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } && {
9192          test -z "$ac_c_werror_flag" ||
9193          test ! -s conftest.err
9194        } && test -s conftest$ac_exeext && {
9195          test "$cross_compiling" = yes ||
9196          $as_test_x conftest$ac_exeext
9197        }; then
9198   ac_cv_func_alloca_works=yes
9199 else
9200   $as_echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         ac_cv_func_alloca_works=no
9204 fi
9205
9206 rm -rf conftest.dSYM
9207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9208       conftest$ac_exeext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9211 $as_echo "$ac_cv_func_alloca_works" >&6; }
9212
9213 if test $ac_cv_func_alloca_works = yes; then
9214
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_ALLOCA 1
9217 _ACEOF
9218
9219 else
9220   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9221 # that cause trouble.  Some versions do not even contain alloca or
9222 # contain a buggy version.  If you still want to use their alloca,
9223 # use ar to extract alloca.o from them instead of compiling alloca.c.
9224
9225
9226
9227
9228
9229 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9230
9231 cat >>confdefs.h <<\_ACEOF
9232 #define C_ALLOCA 1
9233 _ACEOF
9234
9235
9236 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9237 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9238 if test "${ac_cv_os_cray+set}" = set; then
9239   $as_echo_n "(cached) " >&6
9240 else
9241   cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 #if defined CRAY && ! defined CRAY2
9248 webecray
9249 #else
9250 wenotbecray
9251 #endif
9252
9253 _ACEOF
9254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9255   $EGREP "webecray" >/dev/null 2>&1; then
9256   ac_cv_os_cray=yes
9257 else
9258   ac_cv_os_cray=no
9259 fi
9260 rm -f conftest*
9261
9262 fi
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9264 $as_echo "$ac_cv_os_cray" >&6; }
9265 if test $ac_cv_os_cray = yes; then
9266   for ac_func in _getb67 GETB67 getb67; do
9267     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 $as_echo_n "checking for $ac_func... " >&6; }
9270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9271   $as_echo_n "(cached) " >&6
9272 else
9273   cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9281 #define $ac_func innocuous_$ac_func
9282
9283 /* System header to define __stub macros and hopefully few prototypes,
9284     which can conflict with char $ac_func (); below.
9285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286     <limits.h> exists even on freestanding compilers.  */
9287
9288 #ifdef __STDC__
9289 # include <limits.h>
9290 #else
9291 # include <assert.h>
9292 #endif
9293
9294 #undef $ac_func
9295
9296 /* Override any GCC internal prototype to avoid an error.
9297    Use char because int might match the return type of a GCC
9298    builtin and then its argument prototype would still apply.  */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 char $ac_func ();
9303 /* The GNU C library defines this for functions which it implements
9304     to always fail with ENOSYS.  Some functions are actually named
9305     something starting with __ and the normal name is an alias.  */
9306 #if defined __stub_$ac_func || defined __stub___$ac_func
9307 choke me
9308 #endif
9309
9310 int
9311 main ()
9312 {
9313 return $ac_func ();
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9320 case "(($ac_try" in
9321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322   *) ac_try_echo=$ac_try;;
9323 esac
9324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9325 $as_echo "$ac_try_echo") >&5
9326   (eval "$ac_link") 2>conftest.er1
9327   ac_status=$?
9328   grep -v '^ *+' conftest.er1 >conftest.err
9329   rm -f conftest.er1
9330   cat conftest.err >&5
9331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); } && {
9333          test -z "$ac_c_werror_flag" ||
9334          test ! -s conftest.err
9335        } && test -s conftest$ac_exeext && {
9336          test "$cross_compiling" = yes ||
9337          $as_test_x conftest$ac_exeext
9338        }; then
9339   eval "$as_ac_var=yes"
9340 else
9341   $as_echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344         eval "$as_ac_var=no"
9345 fi
9346
9347 rm -rf conftest.dSYM
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349       conftest$ac_exeext conftest.$ac_ext
9350 fi
9351 ac_res=`eval 'as_val=${'$as_ac_var'}
9352                  $as_echo "$as_val"'`
9353                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9354 $as_echo "$ac_res" >&6; }
9355 as_val=`eval 'as_val=${'$as_ac_var'}
9356                  $as_echo "$as_val"'`
9357    if test "x$as_val" = x""yes; then
9358
9359 cat >>confdefs.h <<_ACEOF
9360 #define CRAY_STACKSEG_END $ac_func
9361 _ACEOF
9362
9363     break
9364 fi
9365
9366   done
9367 fi
9368
9369 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9370 $as_echo_n "checking stack direction for C alloca... " >&6; }
9371 if test "${ac_cv_c_stack_direction+set}" = set; then
9372   $as_echo_n "(cached) " >&6
9373 else
9374   if test "$cross_compiling" = yes; then
9375   ac_cv_c_stack_direction=0
9376 else
9377   cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 $ac_includes_default
9384 int
9385 find_stack_direction ()
9386 {
9387   static char *addr = 0;
9388   auto char dummy;
9389   if (addr == 0)
9390     {
9391       addr = &dummy;
9392       return find_stack_direction ();
9393     }
9394   else
9395     return (&dummy > addr) ? 1 : -1;
9396 }
9397
9398 int
9399 main ()
9400 {
9401   return find_stack_direction () < 0;
9402 }
9403 _ACEOF
9404 rm -f conftest$ac_exeext
9405 if { (ac_try="$ac_link"
9406 case "(($ac_try" in
9407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408   *) ac_try_echo=$ac_try;;
9409 esac
9410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9411 $as_echo "$ac_try_echo") >&5
9412   (eval "$ac_link") 2>&5
9413   ac_status=$?
9414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416   { (case "(($ac_try" in
9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418   *) ac_try_echo=$ac_try;;
9419 esac
9420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9421 $as_echo "$ac_try_echo") >&5
9422   (eval "$ac_try") 2>&5
9423   ac_status=$?
9424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_cv_c_stack_direction=1
9427 else
9428   $as_echo "$as_me: program exited with status $ac_status" >&5
9429 $as_echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ( exit $ac_status )
9433 ac_cv_c_stack_direction=-1
9434 fi
9435 rm -rf conftest.dSYM
9436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9437 fi
9438
9439
9440 fi
9441 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9442 $as_echo "$ac_cv_c_stack_direction" >&6; }
9443
9444 cat >>confdefs.h <<_ACEOF
9445 #define STACK_DIRECTION $ac_cv_c_stack_direction
9446 _ACEOF
9447
9448
9449 fi
9450
9451 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9452 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9453 if test "${ac_cv_c_restrict+set}" = set; then
9454   $as_echo_n "(cached) " >&6
9455 else
9456   ac_cv_c_restrict=no
9457    # The order here caters to the fact that C++ does not require restrict.
9458    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9459      cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h.  */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h.  */
9465 typedef int * int_ptr;
9466         int foo (int_ptr $ac_kw ip) {
9467         return ip[0];
9468        }
9469 int
9470 main ()
9471 {
9472 int s[1];
9473         int * $ac_kw t = s;
9474         t[0] = 0;
9475         return foo(t)
9476   ;
9477   return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext
9481 if { (ac_try="$ac_compile"
9482 case "(($ac_try" in
9483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484   *) ac_try_echo=$ac_try;;
9485 esac
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488   (eval "$ac_compile") 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && {
9495          test -z "$ac_c_werror_flag" ||
9496          test ! -s conftest.err
9497        } && test -s conftest.$ac_objext; then
9498   ac_cv_c_restrict=$ac_kw
9499 else
9500   $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507      test "$ac_cv_c_restrict" != no && break
9508    done
9509
9510 fi
9511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9512 $as_echo "$ac_cv_c_restrict" >&6; }
9513
9514
9515  case $ac_cv_c_restrict in
9516    restrict) ;;
9517    no) cat >>confdefs.h <<\_ACEOF
9518 #define restrict /**/
9519 _ACEOF
9520  ;;
9521    *)  cat >>confdefs.h <<_ACEOF
9522 #define restrict $ac_cv_c_restrict
9523 _ACEOF
9524  ;;
9525  esac
9526
9527 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9528 $as_echo_n "checking whether getenv is declared... " >&6; }
9529 if test "${ac_cv_have_decl_getenv+set}" = set; then
9530   $as_echo_n "(cached) " >&6
9531 else
9532   cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538 $ac_includes_default
9539 int
9540 main ()
9541 {
9542 #ifndef getenv
9543   (void) getenv;
9544 #endif
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558   (eval "$ac_compile") 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } && {
9565          test -z "$ac_c_werror_flag" ||
9566          test ! -s conftest.err
9567        } && test -s conftest.$ac_objext; then
9568   ac_cv_have_decl_getenv=yes
9569 else
9570   $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573         ac_cv_have_decl_getenv=no
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 fi
9578 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9579 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9580 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9581
9582 cat >>confdefs.h <<_ACEOF
9583 #define HAVE_DECL_GETENV 1
9584 _ACEOF
9585
9586
9587 else
9588   cat >>confdefs.h <<_ACEOF
9589 #define HAVE_DECL_GETENV 0
9590 _ACEOF
9591
9592
9593 fi
9594
9595
9596 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9597 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9598 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9599   $as_echo_n "(cached) " >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 $ac_includes_default
9608 int
9609 main ()
9610 {
9611 #ifndef clearerr_unlocked
9612   (void) clearerr_unlocked;
9613 #endif
9614
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9626 $as_echo "$ac_try_echo") >&5
9627   (eval "$ac_compile") 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && {
9634          test -z "$ac_c_werror_flag" ||
9635          test ! -s conftest.err
9636        } && test -s conftest.$ac_objext; then
9637   ac_cv_have_decl_clearerr_unlocked=yes
9638 else
9639   $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642         ac_cv_have_decl_clearerr_unlocked=no
9643 fi
9644
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 fi
9647 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9648 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9649 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9650
9651 cat >>confdefs.h <<_ACEOF
9652 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9653 _ACEOF
9654
9655
9656 else
9657   cat >>confdefs.h <<_ACEOF
9658 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9659 _ACEOF
9660
9661
9662 fi
9663
9664
9665 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9666 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9667 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9668   $as_echo_n "(cached) " >&6
9669 else
9670   cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676 $ac_includes_default
9677 int
9678 main ()
9679 {
9680 #ifndef feof_unlocked
9681   (void) feof_unlocked;
9682 #endif
9683
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext
9689 if { (ac_try="$ac_compile"
9690 case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9695 $as_echo "$ac_try_echo") >&5
9696   (eval "$ac_compile") 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } && {
9703          test -z "$ac_c_werror_flag" ||
9704          test ! -s conftest.err
9705        } && test -s conftest.$ac_objext; then
9706   ac_cv_have_decl_feof_unlocked=yes
9707 else
9708   $as_echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711         ac_cv_have_decl_feof_unlocked=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9717 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9718 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9719
9720 cat >>confdefs.h <<_ACEOF
9721 #define HAVE_DECL_FEOF_UNLOCKED 1
9722 _ACEOF
9723
9724
9725 else
9726   cat >>confdefs.h <<_ACEOF
9727 #define HAVE_DECL_FEOF_UNLOCKED 0
9728 _ACEOF
9729
9730
9731 fi
9732
9733
9734 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9735 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9736 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9737   $as_echo_n "(cached) " >&6
9738 else
9739   cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745 $ac_includes_default
9746 int
9747 main ()
9748 {
9749 #ifndef ferror_unlocked
9750   (void) ferror_unlocked;
9751 #endif
9752
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765   (eval "$ac_compile") 2>conftest.er1
9766   ac_status=$?
9767   grep -v '^ *+' conftest.er1 >conftest.err
9768   rm -f conftest.er1
9769   cat conftest.err >&5
9770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } && {
9772          test -z "$ac_c_werror_flag" ||
9773          test ! -s conftest.err
9774        } && test -s conftest.$ac_objext; then
9775   ac_cv_have_decl_ferror_unlocked=yes
9776 else
9777   $as_echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780         ac_cv_have_decl_ferror_unlocked=no
9781 fi
9782
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9786 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9787 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9788
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_DECL_FERROR_UNLOCKED 1
9791 _ACEOF
9792
9793
9794 else
9795   cat >>confdefs.h <<_ACEOF
9796 #define HAVE_DECL_FERROR_UNLOCKED 0
9797 _ACEOF
9798
9799
9800 fi
9801
9802
9803 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9804 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9805 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9806   $as_echo_n "(cached) " >&6
9807 else
9808   cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814 $ac_includes_default
9815 int
9816 main ()
9817 {
9818 #ifndef fflush_unlocked
9819   (void) fflush_unlocked;
9820 #endif
9821
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833 $as_echo "$ac_try_echo") >&5
9834   (eval "$ac_compile") 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } && {
9841          test -z "$ac_c_werror_flag" ||
9842          test ! -s conftest.err
9843        } && test -s conftest.$ac_objext; then
9844   ac_cv_have_decl_fflush_unlocked=yes
9845 else
9846   $as_echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849         ac_cv_have_decl_fflush_unlocked=no
9850 fi
9851
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9855 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9856 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9857
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9860 _ACEOF
9861
9862
9863 else
9864   cat >>confdefs.h <<_ACEOF
9865 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9866 _ACEOF
9867
9868
9869 fi
9870
9871
9872 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9873 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9874 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9875   $as_echo_n "(cached) " >&6
9876 else
9877   cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 $ac_includes_default
9884 int
9885 main ()
9886 {
9887 #ifndef fgets_unlocked
9888   (void) fgets_unlocked;
9889 #endif
9890
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9902 $as_echo "$ac_try_echo") >&5
9903   (eval "$ac_compile") 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } && {
9910          test -z "$ac_c_werror_flag" ||
9911          test ! -s conftest.err
9912        } && test -s conftest.$ac_objext; then
9913   ac_cv_have_decl_fgets_unlocked=yes
9914 else
9915   $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_cv_have_decl_fgets_unlocked=no
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 fi
9923 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9924 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9925 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
9926
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_DECL_FGETS_UNLOCKED 1
9929 _ACEOF
9930
9931
9932 else
9933   cat >>confdefs.h <<_ACEOF
9934 #define HAVE_DECL_FGETS_UNLOCKED 0
9935 _ACEOF
9936
9937
9938 fi
9939
9940
9941 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9942 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
9943 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9944   $as_echo_n "(cached) " >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 $ac_includes_default
9953 int
9954 main ()
9955 {
9956 #ifndef fputc_unlocked
9957   (void) fputc_unlocked;
9958 #endif
9959
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (ac_try="$ac_compile"
9966 case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972   (eval "$ac_compile") 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } && {
9979          test -z "$ac_c_werror_flag" ||
9980          test ! -s conftest.err
9981        } && test -s conftest.$ac_objext; then
9982   ac_cv_have_decl_fputc_unlocked=yes
9983 else
9984   $as_echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987         ac_cv_have_decl_fputc_unlocked=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 fi
9992 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9993 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
9994 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
9995
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_DECL_FPUTC_UNLOCKED 1
9998 _ACEOF
9999
10000
10001 else
10002   cat >>confdefs.h <<_ACEOF
10003 #define HAVE_DECL_FPUTC_UNLOCKED 0
10004 _ACEOF
10005
10006
10007 fi
10008
10009
10010 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10011 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10012 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10013   $as_echo_n "(cached) " >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021 $ac_includes_default
10022 int
10023 main ()
10024 {
10025 #ifndef fputs_unlocked
10026   (void) fputs_unlocked;
10027 #endif
10028
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040 $as_echo "$ac_try_echo") >&5
10041   (eval "$ac_compile") 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } && {
10048          test -z "$ac_c_werror_flag" ||
10049          test ! -s conftest.err
10050        } && test -s conftest.$ac_objext; then
10051   ac_cv_have_decl_fputs_unlocked=yes
10052 else
10053   $as_echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         ac_cv_have_decl_fputs_unlocked=no
10057 fi
10058
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 fi
10061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10062 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10063 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
10064
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_DECL_FPUTS_UNLOCKED 1
10067 _ACEOF
10068
10069
10070 else
10071   cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL_FPUTS_UNLOCKED 0
10073 _ACEOF
10074
10075
10076 fi
10077
10078
10079 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
10080 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
10081 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
10082   $as_echo_n "(cached) " >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090 $ac_includes_default
10091 int
10092 main ()
10093 {
10094 #ifndef fread_unlocked
10095   (void) fread_unlocked;
10096 #endif
10097
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110   (eval "$ac_compile") 2>conftest.er1
10111   ac_status=$?
10112   grep -v '^ *+' conftest.er1 >conftest.err
10113   rm -f conftest.er1
10114   cat conftest.err >&5
10115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); } && {
10117          test -z "$ac_c_werror_flag" ||
10118          test ! -s conftest.err
10119        } && test -s conftest.$ac_objext; then
10120   ac_cv_have_decl_fread_unlocked=yes
10121 else
10122   $as_echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125         ac_cv_have_decl_fread_unlocked=no
10126 fi
10127
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 fi
10130 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
10131 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
10132 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
10133
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_DECL_FREAD_UNLOCKED 1
10136 _ACEOF
10137
10138
10139 else
10140   cat >>confdefs.h <<_ACEOF
10141 #define HAVE_DECL_FREAD_UNLOCKED 0
10142 _ACEOF
10143
10144
10145 fi
10146
10147
10148 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
10149 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
10150 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
10151   $as_echo_n "(cached) " >&6
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 $ac_includes_default
10160 int
10161 main ()
10162 {
10163 #ifndef fwrite_unlocked
10164   (void) fwrite_unlocked;
10165 #endif
10166
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10178 $as_echo "$ac_try_echo") >&5
10179   (eval "$ac_compile") 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } && {
10186          test -z "$ac_c_werror_flag" ||
10187          test ! -s conftest.err
10188        } && test -s conftest.$ac_objext; then
10189   ac_cv_have_decl_fwrite_unlocked=yes
10190 else
10191   $as_echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_have_decl_fwrite_unlocked=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
10200 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
10201 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
10202
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_DECL_FWRITE_UNLOCKED 1
10205 _ACEOF
10206
10207
10208 else
10209   cat >>confdefs.h <<_ACEOF
10210 #define HAVE_DECL_FWRITE_UNLOCKED 0
10211 _ACEOF
10212
10213
10214 fi
10215
10216
10217 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10218 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10219 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10220   $as_echo_n "(cached) " >&6
10221 else
10222   cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 $ac_includes_default
10229 int
10230 main ()
10231 {
10232 #ifndef getc_unlocked
10233   (void) getc_unlocked;
10234 #endif
10235
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (ac_try="$ac_compile"
10242 case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247 $as_echo "$ac_try_echo") >&5
10248   (eval "$ac_compile") 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } && {
10255          test -z "$ac_c_werror_flag" ||
10256          test ! -s conftest.err
10257        } && test -s conftest.$ac_objext; then
10258   ac_cv_have_decl_getc_unlocked=yes
10259 else
10260   $as_echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263         ac_cv_have_decl_getc_unlocked=no
10264 fi
10265
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 fi
10268 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10269 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10270 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10271
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_DECL_GETC_UNLOCKED 1
10274 _ACEOF
10275
10276
10277 else
10278   cat >>confdefs.h <<_ACEOF
10279 #define HAVE_DECL_GETC_UNLOCKED 0
10280 _ACEOF
10281
10282
10283 fi
10284
10285
10286 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10287 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10288 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10289   $as_echo_n "(cached) " >&6
10290 else
10291   cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 $ac_includes_default
10298 int
10299 main ()
10300 {
10301 #ifndef getchar_unlocked
10302   (void) getchar_unlocked;
10303 #endif
10304
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10316 $as_echo "$ac_try_echo") >&5
10317   (eval "$ac_compile") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && {
10324          test -z "$ac_c_werror_flag" ||
10325          test ! -s conftest.err
10326        } && test -s conftest.$ac_objext; then
10327   ac_cv_have_decl_getchar_unlocked=yes
10328 else
10329   $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332         ac_cv_have_decl_getchar_unlocked=no
10333 fi
10334
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10338 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10339 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10340
10341 cat >>confdefs.h <<_ACEOF
10342 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10343 _ACEOF
10344
10345
10346 else
10347   cat >>confdefs.h <<_ACEOF
10348 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10349 _ACEOF
10350
10351
10352 fi
10353
10354
10355 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10356 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10357 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10358   $as_echo_n "(cached) " >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 $ac_includes_default
10367 int
10368 main ()
10369 {
10370 #ifndef putc_unlocked
10371   (void) putc_unlocked;
10372 #endif
10373
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10385 $as_echo "$ac_try_echo") >&5
10386   (eval "$ac_compile") 2>conftest.er1
10387   ac_status=$?
10388   grep -v '^ *+' conftest.er1 >conftest.err
10389   rm -f conftest.er1
10390   cat conftest.err >&5
10391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } && {
10393          test -z "$ac_c_werror_flag" ||
10394          test ! -s conftest.err
10395        } && test -s conftest.$ac_objext; then
10396   ac_cv_have_decl_putc_unlocked=yes
10397 else
10398   $as_echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401         ac_cv_have_decl_putc_unlocked=no
10402 fi
10403
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10407 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10408 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10409
10410 cat >>confdefs.h <<_ACEOF
10411 #define HAVE_DECL_PUTC_UNLOCKED 1
10412 _ACEOF
10413
10414
10415 else
10416   cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL_PUTC_UNLOCKED 0
10418 _ACEOF
10419
10420
10421 fi
10422
10423
10424 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10425 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10426 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10427   $as_echo_n "(cached) " >&6
10428 else
10429   cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435 $ac_includes_default
10436 int
10437 main ()
10438 {
10439 #ifndef putchar_unlocked
10440   (void) putchar_unlocked;
10441 #endif
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455   (eval "$ac_compile") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && {
10462          test -z "$ac_c_werror_flag" ||
10463          test ! -s conftest.err
10464        } && test -s conftest.$ac_objext; then
10465   ac_cv_have_decl_putchar_unlocked=yes
10466 else
10467   $as_echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         ac_cv_have_decl_putchar_unlocked=no
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10476 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10477 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10478
10479 cat >>confdefs.h <<_ACEOF
10480 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10481 _ACEOF
10482
10483
10484 else
10485   cat >>confdefs.h <<_ACEOF
10486 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10487 _ACEOF
10488
10489
10490 fi
10491
10492
10493
10494
10495
10496
10497 for ac_func in $ac_func_list
10498 do
10499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10500 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10501 $as_echo_n "checking for $ac_func... " >&6; }
10502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10503   $as_echo_n "(cached) " >&6
10504 else
10505   cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10513 #define $ac_func innocuous_$ac_func
10514
10515 /* System header to define __stub macros and hopefully few prototypes,
10516     which can conflict with char $ac_func (); below.
10517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10518     <limits.h> exists even on freestanding compilers.  */
10519
10520 #ifdef __STDC__
10521 # include <limits.h>
10522 #else
10523 # include <assert.h>
10524 #endif
10525
10526 #undef $ac_func
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529    Use char because int might match the return type of a GCC
10530    builtin and then its argument prototype would still apply.  */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char $ac_func ();
10535 /* The GNU C library defines this for functions which it implements
10536     to always fail with ENOSYS.  Some functions are actually named
10537     something starting with __ and the normal name is an alias.  */
10538 #if defined __stub_$ac_func || defined __stub___$ac_func
10539 choke me
10540 #endif
10541
10542 int
10543 main ()
10544 {
10545 return $ac_func ();
10546   ;
10547   return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10557 $as_echo "$ac_try_echo") >&5
10558   (eval "$ac_link") 2>conftest.er1
10559   ac_status=$?
10560   grep -v '^ *+' conftest.er1 >conftest.err
10561   rm -f conftest.er1
10562   cat conftest.err >&5
10563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } && {
10565          test -z "$ac_c_werror_flag" ||
10566          test ! -s conftest.err
10567        } && test -s conftest$ac_exeext && {
10568          test "$cross_compiling" = yes ||
10569          $as_test_x conftest$ac_exeext
10570        }; then
10571   eval "$as_ac_var=yes"
10572 else
10573   $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576         eval "$as_ac_var=no"
10577 fi
10578
10579 rm -rf conftest.dSYM
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581       conftest$ac_exeext conftest.$ac_ext
10582 fi
10583 ac_res=`eval 'as_val=${'$as_ac_var'}
10584                  $as_echo "$as_val"'`
10585                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10586 $as_echo "$ac_res" >&6; }
10587 as_val=`eval 'as_val=${'$as_ac_var'}
10588                  $as_echo "$as_val"'`
10589    if test "x$as_val" = x""yes; then
10590   cat >>confdefs.h <<_ACEOF
10591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10592 _ACEOF
10593
10594 fi
10595 done
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606   XGETTEXT_EXTRA_OPTIONS=
10607
10608 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10609 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10610 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10611   $as_echo_n "(cached) " >&6
10612 else
10613   if test "$cross_compiling" = yes; then
10614   gl_cv_struct_dirent_d_ino=no
10615 else
10616   cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #include <sys/types.h>
10623              #include <sys/stat.h>
10624              #include <dirent.h>
10625
10626 int
10627 main ()
10628 {
10629 DIR *dp = opendir (".");
10630              struct dirent *e;
10631              struct stat st;
10632              if (! dp)
10633                return 1;
10634              e = readdir (dp);
10635              return ! (e
10636                        && stat (e->d_name, &st) == 0
10637                        && e->d_ino == st.st_ino);
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10649 $as_echo "$ac_try_echo") >&5
10650   (eval "$ac_link") 2>&5
10651   ac_status=$?
10652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10654   { (case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10659 $as_echo "$ac_try_echo") >&5
10660   (eval "$ac_try") 2>&5
10661   ac_status=$?
10662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   gl_cv_struct_dirent_d_ino=yes
10665 else
10666   $as_echo "$as_me: program exited with status $ac_status" >&5
10667 $as_echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ( exit $ac_status )
10671 gl_cv_struct_dirent_d_ino=no
10672 fi
10673 rm -rf conftest.dSYM
10674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10675 fi
10676
10677
10678 fi
10679 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10680 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10681    if test $gl_cv_struct_dirent_d_ino = yes; then
10682
10683 cat >>confdefs.h <<\_ACEOF
10684 #define D_INO_IN_DIRENT 1
10685 _ACEOF
10686
10687    fi
10688
10689
10690
10691     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10692 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10693 if test "${ac_cv_win_or_dos+set}" = set; then
10694   $as_echo_n "(cached) " >&6
10695 else
10696
10697         cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703
10704 int
10705 main ()
10706 {
10707
10708 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10709 neither MSDOS nor Windows
10710 #endif
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (ac_try="$ac_compile"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723   (eval "$ac_compile") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest.$ac_objext; then
10733   ac_cv_win_or_dos=yes
10734 else
10735   $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738         ac_cv_win_or_dos=no
10739 fi
10740
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742
10743 fi
10744 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10745 $as_echo "$ac_cv_win_or_dos" >&6; }
10746
10747     if test x"$ac_cv_win_or_dos" = xyes; then
10748       ac_fs_accepts_drive_letter_prefix=1
10749       ac_fs_backslash_is_file_name_separator=1
10750       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
10751 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10752 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
10753   $as_echo_n "(cached) " >&6
10754 else
10755
10756           cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762
10763 int
10764 main ()
10765 {
10766
10767 #if defined __CYGWIN__
10768 drive letters are always absolute
10769 #endif
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782   (eval "$ac_compile") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest.$ac_objext; then
10792   ac_cv_drive_letter_can_be_relative=yes
10793 else
10794   $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797         ac_cv_drive_letter_can_be_relative=no
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801
10802 fi
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
10804 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10805       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10806         ac_fs_drive_letter_can_be_relative=1
10807       else
10808         ac_fs_drive_letter_can_be_relative=0
10809       fi
10810     else
10811       ac_fs_accepts_drive_letter_prefix=0
10812       ac_fs_backslash_is_file_name_separator=0
10813       ac_fs_drive_letter_can_be_relative=0
10814     fi
10815
10816
10817 cat >>confdefs.h <<_ACEOF
10818 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10819 _ACEOF
10820
10821
10822
10823
10824
10825
10826 cat >>confdefs.h <<_ACEOF
10827 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10828 _ACEOF
10829
10830
10831
10832 cat >>confdefs.h <<_ACEOF
10833 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10834 _ACEOF
10835
10836
10837 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10838 $as_echo_n "checking for long file names... " >&6; }
10839 if test "${ac_cv_sys_long_file_names+set}" = set; then
10840   $as_echo_n "(cached) " >&6
10841 else
10842   ac_cv_sys_long_file_names=yes
10843 # Test for long file names in all the places we know might matter:
10844 #      .                the current directory, where building will happen
10845 #      $prefix/lib      where we will be installing things
10846 #      $exec_prefix/lib likewise
10847 #      $TMPDIR          if set, where it might want to write temporary files
10848 #      /tmp             where it might want to write temporary files
10849 #      /var/tmp         likewise
10850 #      /usr/tmp         likewise
10851 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10852   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10853   # in the usual case where exec_prefix is '${prefix}'.
10854   case $ac_dir in #(
10855     . | /* | ?:[\\/]*) ;; #(
10856     *) continue;;
10857   esac
10858   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10859   ac_xdir=$ac_dir/cf$$
10860   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10861   ac_tf1=$ac_xdir/conftest9012345
10862   ac_tf2=$ac_xdir/conftest9012346
10863   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10864     ac_cv_sys_long_file_names=no
10865   rm -f -r "$ac_xdir" 2>/dev/null
10866   test $ac_cv_sys_long_file_names = no && break
10867 done
10868 fi
10869 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10870 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10871 if test $ac_cv_sys_long_file_names = yes; then
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_LONG_FILE_NAMES 1
10875 _ACEOF
10876
10877 fi
10878
10879
10880
10881
10882   GNULIB_BTOWC=0;
10883   GNULIB_WCTOB=0;
10884   GNULIB_MBSINIT=0;
10885   GNULIB_MBRTOWC=0;
10886   GNULIB_MBRLEN=0;
10887   GNULIB_MBSRTOWCS=0;
10888   GNULIB_MBSNRTOWCS=0;
10889   GNULIB_WCRTOMB=0;
10890   GNULIB_WCSRTOMBS=0;
10891   GNULIB_WCSNRTOMBS=0;
10892   GNULIB_WCWIDTH=0;
10893     HAVE_BTOWC=1;
10894   HAVE_MBSINIT=1;
10895   HAVE_MBRTOWC=1;
10896   HAVE_MBRLEN=1;
10897   HAVE_MBSRTOWCS=1;
10898   HAVE_MBSNRTOWCS=1;
10899   HAVE_WCRTOMB=1;
10900   HAVE_WCSRTOMBS=1;
10901   HAVE_WCSNRTOMBS=1;
10902   HAVE_DECL_WCTOB=1;
10903   HAVE_DECL_WCWIDTH=1;
10904   REPLACE_MBSTATE_T=0;
10905   REPLACE_BTOWC=0;
10906   REPLACE_WCTOB=0;
10907   REPLACE_MBSINIT=0;
10908   REPLACE_MBRTOWC=0;
10909   REPLACE_MBRLEN=0;
10910   REPLACE_MBSRTOWCS=0;
10911   REPLACE_MBSNRTOWCS=0;
10912   REPLACE_WCRTOMB=0;
10913   REPLACE_WCSRTOMBS=0;
10914   REPLACE_WCSNRTOMBS=0;
10915   REPLACE_WCWIDTH=0;
10916
10917
10918             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10919 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10920 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10921   $as_echo_n "(cached) " >&6
10922 else
10923   gl_cv_header_wchar_h_correct_inline=yes
10924      cat >conftest.$ac_ext <<_ACEOF
10925
10926        /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 #define wcstod renamed_wcstod
10932 #include <wchar.h>
10933 extern int zero (void);
10934 int main () { return zero(); }
10935
10936 _ACEOF
10937      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938   (eval $ac_compile) 2>&5
10939   ac_status=$?
10940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; then
10942        mv conftest.$ac_objext conftest1.$ac_objext
10943        cat >conftest.$ac_ext <<_ACEOF
10944
10945          /* confdefs.h.  */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h.  */
10950 #define wcstod renamed_wcstod
10951 #include <wchar.h>
10952 int zero (void) { return 0; }
10953
10954 _ACEOF
10955        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956   (eval $ac_compile) 2>&5
10957   ac_status=$?
10958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; then
10960          mv conftest.$ac_objext conftest2.$ac_objext
10961          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10962            :
10963          else
10964            gl_cv_header_wchar_h_correct_inline=no
10965          fi
10966        fi
10967      fi
10968      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10969
10970 fi
10971 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10972 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10973   if test $gl_cv_header_wchar_h_correct_inline = no; then
10974     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10975 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10976 C99 mode. You have four options:
10977   - Add the flag -fgnu89-inline to CC and reconfigure, or
10978   - Fix your include files, using parts of
10979     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10980   - Use a gcc version older than 4.3, or
10981   - Don't use the flags -std=c99 or -std=gnu99.
10982 Configuration aborted." >&5
10983 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10984 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10985 C99 mode. You have four options:
10986   - Add the flag -fgnu89-inline to CC and reconfigure, or
10987   - Fix your include files, using parts of
10988     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10989   - Use a gcc version older than 4.3, or
10990   - Don't use the flags -std=c99 or -std=gnu99.
10991 Configuration aborted." >&2;}
10992    { (exit 1); exit 1; }; }
10993   fi
10994
10995
10996
10997
10998   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10999 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11000 if test "${am_cv_langinfo_codeset+set}" = set; then
11001   $as_echo_n "(cached) " >&6
11002 else
11003   cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h.  */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h.  */
11009 #include <langinfo.h>
11010 int
11011 main ()
11012 {
11013 char* cs = nl_langinfo(CODESET); return !cs;
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11025 $as_echo "$ac_try_echo") >&5
11026   (eval "$ac_link") 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } && {
11033          test -z "$ac_c_werror_flag" ||
11034          test ! -s conftest.err
11035        } && test -s conftest$ac_exeext && {
11036          test "$cross_compiling" = yes ||
11037          $as_test_x conftest$ac_exeext
11038        }; then
11039   am_cv_langinfo_codeset=yes
11040 else
11041   $as_echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         am_cv_langinfo_codeset=no
11045 fi
11046
11047 rm -rf conftest.dSYM
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049       conftest$ac_exeext conftest.$ac_ext
11050
11051 fi
11052 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11053 $as_echo "$am_cv_langinfo_codeset" >&6; }
11054   if test $am_cv_langinfo_codeset = yes; then
11055
11056 cat >>confdefs.h <<\_ACEOF
11057 #define HAVE_LANGINFO_CODESET 1
11058 _ACEOF
11059
11060   fi
11061
11062
11063
11064
11065   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
11066 $as_echo_n "checking for a traditional french locale... " >&6; }
11067 if test "${gt_cv_locale_fr+set}" = set; then
11068   $as_echo_n "(cached) " >&6
11069 else
11070
11071     cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077
11078 #include <locale.h>
11079 #include <time.h>
11080 #if HAVE_LANGINFO_CODESET
11081 # include <langinfo.h>
11082 #endif
11083 #include <stdlib.h>
11084 #include <string.h>
11085 struct tm t;
11086 char buf[16];
11087 int main () {
11088   /* Check whether the given locale name is recognized by the system.  */
11089   if (setlocale (LC_ALL, "") == NULL) return 1;
11090   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11091      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11092      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11093      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11094      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11095      some unit tests fail.
11096      On MirBSD 10, when an unsupported locale is specified, setlocale()
11097      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
11098 #if HAVE_LANGINFO_CODESET
11099   {
11100     const char *cs = nl_langinfo (CODESET);
11101     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11102         || strcmp (cs, "UTF-8") == 0)
11103       return 1;
11104   }
11105 #endif
11106 #ifdef __CYGWIN__
11107   /* On Cygwin, avoid locale names without encoding suffix, because the
11108      locale_charset() function relies on the encoding suffix.  Note that
11109      LC_ALL is set on the command line.  */
11110   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11111 #endif
11112   /* Check whether in the abbreviation of the second month, the second
11113      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11114      one byte long. This excludes the UTF-8 encoding.  */
11115   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11116   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11117   /* Check whether the decimal separator is a comma.
11118      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11119      are nl_langinfo(RADIXCHAR) are both ".".  */
11120   if (localeconv () ->decimal_point[0] != ',') return 1;
11121   return 0;
11122 }
11123
11124 _ACEOF
11125     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126   (eval $ac_link) 2>&5
11127   ac_status=$?
11128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } && test -s conftest$ac_exeext; then
11130       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11131       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
11132       # configure script would override the LC_ALL setting. Likewise for
11133       # LC_CTYPE, which is also set at the beginning of the configure script.
11134       # Test for the usual locale name.
11135       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11136         gt_cv_locale_fr=fr_FR
11137       else
11138         # Test for the locale name with explicit encoding suffix.
11139         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11140           gt_cv_locale_fr=fr_FR.ISO-8859-1
11141         else
11142           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11143           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11144             gt_cv_locale_fr=fr_FR.ISO8859-1
11145           else
11146             # Test for the HP-UX locale name.
11147             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11148               gt_cv_locale_fr=fr_FR.iso88591
11149             else
11150               # Test for the Solaris 7 locale name.
11151               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11152                 gt_cv_locale_fr=fr
11153               else
11154                 # None found.
11155                 gt_cv_locale_fr=none
11156               fi
11157             fi
11158           fi
11159         fi
11160       fi
11161     fi
11162     rm -fr conftest*
11163
11164 fi
11165 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
11166 $as_echo "$gt_cv_locale_fr" >&6; }
11167   LOCALE_FR=$gt_cv_locale_fr
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11179 $as_echo_n "checking whether // is distinct from /... " >&6; }
11180 if test "${gl_cv_double_slash_root+set}" = set; then
11181   $as_echo_n "(cached) " >&6
11182 else
11183    if test x"$cross_compiling" = xyes ; then
11184         # When cross-compiling, there is no way to tell whether // is special
11185         # short of a list of hosts.  However, the only known hosts to date
11186         # that have a distinct // are Apollo DomainOS (too old to port to),
11187         # Cygwin, and z/OS.  If anyone knows of another system for which // has
11188         # special semantics and is distinct from /, please report it to
11189         # <bug-gnulib@gnu.org>.
11190         case $host in
11191           *-cygwin | i370-ibm-openedition)
11192             gl_cv_double_slash_root=yes ;;
11193           *)
11194             # Be optimistic and assume that / and // are the same when we
11195             # don't know.
11196             gl_cv_double_slash_root='unknown, assuming no' ;;
11197         esac
11198       else
11199         set x `ls -di / // 2>/dev/null`
11200         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11201           gl_cv_double_slash_root=no
11202         else
11203           gl_cv_double_slash_root=yes
11204         fi
11205       fi
11206 fi
11207 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11208 $as_echo "$gl_cv_double_slash_root" >&6; }
11209   if test "$gl_cv_double_slash_root" = yes; then
11210
11211 cat >>confdefs.h <<\_ACEOF
11212 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11213 _ACEOF
11214
11215   fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226   { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
11227 $as_echo_n "checking whether realpath works... " >&6; }
11228 if test "${gl_cv_func_realpath_works+set}" = set; then
11229   $as_echo_n "(cached) " >&6
11230 else
11231
11232     touch conftest.a
11233     if test "$cross_compiling" = yes; then
11234   gl_cv_func_realpath_works="guessing no"
11235 else
11236   cat >conftest.$ac_ext <<_ACEOF
11237
11238       /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243
11244         #include <stdlib.h>
11245
11246 int
11247 main ()
11248 {
11249
11250         char *name1 = realpath ("conftest.a", NULL);
11251         char *name2 = realpath ("conftest.b/../conftest.a", NULL);
11252         char *name3 = realpath ("conftest.a/", NULL);
11253         return !(name1 && *name1 == '/' && !name2 && !name3);
11254
11255   ;
11256   return 0;
11257 }
11258
11259 _ACEOF
11260 rm -f conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267 $as_echo "$ac_try_echo") >&5
11268   (eval "$ac_link") 2>&5
11269   ac_status=$?
11270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11272   { (case "(($ac_try" in
11273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274   *) ac_try_echo=$ac_try;;
11275 esac
11276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11277 $as_echo "$ac_try_echo") >&5
11278   (eval "$ac_try") 2>&5
11279   ac_status=$?
11280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   gl_cv_func_realpath_works=yes
11283 else
11284   $as_echo "$as_me: program exited with status $ac_status" >&5
11285 $as_echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ( exit $ac_status )
11289 gl_cv_func_realpath_works=no
11290 fi
11291 rm -rf conftest.dSYM
11292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11293 fi
11294
11295
11296
11297 fi
11298 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11299 $as_echo "$gl_cv_func_realpath_works" >&6; }
11300   if test "$gl_cv_func_realpath_works" = yes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define FUNC_REALPATH_WORKS 1
11304 _ACEOF
11305
11306   fi
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330   GNULIB__EXIT=0;
11331   GNULIB_ATOLL=0;
11332   GNULIB_CALLOC_POSIX=0;
11333   GNULIB_CANONICALIZE_FILE_NAME=0;
11334   GNULIB_GETLOADAVG=0;
11335   GNULIB_GETSUBOPT=0;
11336   GNULIB_GRANTPT=0;
11337   GNULIB_MALLOC_POSIX=0;
11338   GNULIB_MKDTEMP=0;
11339   GNULIB_MKOSTEMP=0;
11340   GNULIB_MKOSTEMPS=0;
11341   GNULIB_MKSTEMP=0;
11342   GNULIB_MKSTEMPS=0;
11343   GNULIB_PTSNAME=0;
11344   GNULIB_PUTENV=0;
11345   GNULIB_RANDOM_R=0;
11346   GNULIB_REALLOC_POSIX=0;
11347   GNULIB_REALPATH=0;
11348   GNULIB_RPMATCH=0;
11349   GNULIB_SETENV=0;
11350   GNULIB_STRTOD=0;
11351   GNULIB_STRTOLL=0;
11352   GNULIB_STRTOULL=0;
11353   GNULIB_SYSTEM_POSIX=0;
11354   GNULIB_UNLOCKPT=0;
11355   GNULIB_UNSETENV=0;
11356     HAVE__EXIT=1;
11357   HAVE_ATOLL=1;
11358   HAVE_CANONICALIZE_FILE_NAME=1;
11359   HAVE_DECL_GETLOADAVG=1;
11360   HAVE_GETSUBOPT=1;
11361   HAVE_GRANTPT=1;
11362   HAVE_MKDTEMP=1;
11363   HAVE_MKOSTEMP=1;
11364   HAVE_MKOSTEMPS=1;
11365   HAVE_MKSTEMP=1;
11366   HAVE_MKSTEMPS=1;
11367   HAVE_PTSNAME=1;
11368   HAVE_RANDOM_R=1;
11369   HAVE_REALPATH=1;
11370   HAVE_RPMATCH=1;
11371   HAVE_SETENV=1;
11372   HAVE_STRTOD=1;
11373   HAVE_STRTOLL=1;
11374   HAVE_STRTOULL=1;
11375   HAVE_STRUCT_RANDOM_DATA=1;
11376   HAVE_SYS_LOADAVG_H=0;
11377   HAVE_UNLOCKPT=1;
11378   HAVE_UNSETENV=1;
11379   REPLACE_CALLOC=0;
11380   REPLACE_CANONICALIZE_FILE_NAME=0;
11381   REPLACE_MALLOC=0;
11382   REPLACE_MKSTEMP=0;
11383   REPLACE_PUTENV=0;
11384   REPLACE_REALLOC=0;
11385   REPLACE_REALPATH=0;
11386   REPLACE_SETENV=0;
11387   REPLACE_STRTOD=0;
11388   REPLACE_UNSETENV=0;
11389
11390
11391   GNULIB_CHOWN=0;
11392   GNULIB_CLOSE=0;
11393   GNULIB_DUP2=0;
11394   GNULIB_DUP3=0;
11395   GNULIB_ENVIRON=0;
11396   GNULIB_EUIDACCESS=0;
11397   GNULIB_FACCESSAT=0;
11398   GNULIB_FCHDIR=0;
11399   GNULIB_FCHOWNAT=0;
11400   GNULIB_FSYNC=0;
11401   GNULIB_FTRUNCATE=0;
11402   GNULIB_GETCWD=0;
11403   GNULIB_GETDOMAINNAME=0;
11404   GNULIB_GETDTABLESIZE=0;
11405   GNULIB_GETGROUPS=0;
11406   GNULIB_GETHOSTNAME=0;
11407   GNULIB_GETLOGIN=0;
11408   GNULIB_GETLOGIN_R=0;
11409   GNULIB_GETPAGESIZE=0;
11410   GNULIB_GETUSERSHELL=0;
11411   GNULIB_LCHOWN=0;
11412   GNULIB_LINK=0;
11413   GNULIB_LINKAT=0;
11414   GNULIB_LSEEK=0;
11415   GNULIB_PIPE2=0;
11416   GNULIB_PREAD=0;
11417   GNULIB_PWRITE=0;
11418   GNULIB_READLINK=0;
11419   GNULIB_READLINKAT=0;
11420   GNULIB_RMDIR=0;
11421   GNULIB_SLEEP=0;
11422   GNULIB_SYMLINK=0;
11423   GNULIB_SYMLINKAT=0;
11424   GNULIB_TTYNAME_R=0;
11425   GNULIB_UNISTD_H_GETOPT=0;
11426   GNULIB_UNISTD_H_SIGPIPE=0;
11427   GNULIB_UNLINK=0;
11428   GNULIB_UNLINKAT=0;
11429   GNULIB_USLEEP=0;
11430   GNULIB_WRITE=0;
11431     HAVE_CHOWN=1;
11432   HAVE_DUP2=1;
11433   HAVE_DUP3=1;
11434   HAVE_EUIDACCESS=1;
11435   HAVE_FACCESSAT=1;
11436   HAVE_FCHDIR=1;
11437   HAVE_FCHOWNAT=1;
11438   HAVE_FSYNC=1;
11439   HAVE_FTRUNCATE=1;
11440   HAVE_GETDOMAINNAME=1;
11441   HAVE_GETDTABLESIZE=1;
11442   HAVE_GETGROUPS=1;
11443   HAVE_GETHOSTNAME=1;
11444   HAVE_GETLOGIN=1;
11445   HAVE_GETPAGESIZE=1;
11446   HAVE_LCHOWN=1;
11447   HAVE_LINK=1;
11448   HAVE_LINKAT=1;
11449   HAVE_PIPE2=1;
11450   HAVE_PREAD=1;
11451   HAVE_PWRITE=1;
11452   HAVE_READLINK=1;
11453   HAVE_READLINKAT=1;
11454   HAVE_SLEEP=1;
11455   HAVE_SYMLINK=1;
11456   HAVE_SYMLINKAT=1;
11457   HAVE_TTYNAME_R=1;
11458   HAVE_UNLINKAT=1;
11459   HAVE_USLEEP=1;
11460   HAVE_DECL_ENVIRON=1;
11461   HAVE_DECL_GETLOGIN_R=1;
11462   HAVE_DECL_GETPAGESIZE=1;
11463   HAVE_DECL_GETUSERSHELL=1;
11464   HAVE_OS_H=0;
11465   HAVE_SYS_PARAM_H=0;
11466   REPLACE_CHOWN=0;
11467   REPLACE_CLOSE=0;
11468   REPLACE_DUP=0;
11469   REPLACE_DUP2=0;
11470   REPLACE_FCHOWNAT=0;
11471   REPLACE_GETCWD=0;
11472   REPLACE_GETGROUPS=0;
11473   REPLACE_GETPAGESIZE=0;
11474   REPLACE_LCHOWN=0;
11475   REPLACE_LINK=0;
11476   REPLACE_LINKAT=0;
11477   REPLACE_LSEEK=0;
11478   REPLACE_PREAD=0;
11479   REPLACE_PWRITE=0;
11480   REPLACE_READLINK=0;
11481   REPLACE_RMDIR=0;
11482   REPLACE_SLEEP=0;
11483   REPLACE_SYMLINK=0;
11484   REPLACE_TTYNAME_R=0;
11485   REPLACE_UNLINK=0;
11486   REPLACE_UNLINKAT=0;
11487   REPLACE_USLEEP=0;
11488   REPLACE_WRITE=0;
11489   UNISTD_H_HAVE_WINSOCK2_H=0;
11490   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11491
11492
11493
11494 for ac_header in unistd.h
11495 do
11496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501   $as_echo_n "(cached) " >&6
11502 fi
11503 ac_res=`eval 'as_val=${'$as_ac_Header'}
11504                  $as_echo "$as_val"'`
11505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11507 else
11508   # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } && {
11535          test -z "$ac_c_werror_flag" ||
11536          test ! -s conftest.err
11537        } && test -s conftest.$ac_objext; then
11538   ac_header_compiler=yes
11539 else
11540   $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543         ac_header_compiler=no
11544 fi
11545
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11549
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 #include <$ac_header>
11560 _ACEOF
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } >/dev/null && {
11575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576          test ! -s conftest.err
11577        }; then
11578   ac_header_preproc=yes
11579 else
11580   $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583   ac_header_preproc=no
11584 fi
11585
11586 rm -f conftest.err conftest.$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11589
11590 # So?  What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11592   yes:no: )
11593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597     ac_header_preproc=yes
11598     ;;
11599   no:yes:* )
11600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11612     ( cat <<\_ASBOX
11613 ## ------------------------------ ##
11614 ## Report this to bug-tar@gnu.org ##
11615 ## ------------------------------ ##
11616 _ASBOX
11617      ) | sed "s/^/$as_me: WARNING:     /" >&2
11618     ;;
11619 esac
11620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 $as_echo_n "checking for $ac_header... " >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623   $as_echo_n "(cached) " >&6
11624 else
11625   eval "$as_ac_Header=\$ac_header_preproc"
11626 fi
11627 ac_res=`eval 'as_val=${'$as_ac_Header'}
11628                  $as_echo "$as_val"'`
11629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11630 $as_echo "$ac_res" >&6; }
11631
11632 fi
11633 as_val=`eval 'as_val=${'$as_ac_Header'}
11634                  $as_echo "$as_val"'`
11635    if test "x$as_val" = x""yes; then
11636   cat >>confdefs.h <<_ACEOF
11637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 _ACEOF
11639
11640 fi
11641
11642 done
11643
11644 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11645 $as_echo_n "checking for working chown... " >&6; }
11646 if test "${ac_cv_func_chown_works+set}" = set; then
11647   $as_echo_n "(cached) " >&6
11648 else
11649   if test "$cross_compiling" = yes; then
11650   ac_cv_func_chown_works=no
11651 else
11652   cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 $ac_includes_default
11659 #include <fcntl.h>
11660
11661 int
11662 main ()
11663 {
11664   char *f = "conftest.chown";
11665   struct stat before, after;
11666
11667   if (creat (f, 0600) < 0)
11668     return 1;
11669   if (stat (f, &before) < 0)
11670     return 1;
11671   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11672     return 1;
11673   if (stat (f, &after) < 0)
11674     return 1;
11675   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11676
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689   (eval "$ac_link") 2>&5
11690   ac_status=$?
11691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11693   { (case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11698 $as_echo "$ac_try_echo") >&5
11699   (eval "$ac_try") 2>&5
11700   ac_status=$?
11701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   ac_cv_func_chown_works=yes
11704 else
11705   $as_echo "$as_me: program exited with status $ac_status" >&5
11706 $as_echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ( exit $ac_status )
11710 ac_cv_func_chown_works=no
11711 fi
11712 rm -rf conftest.dSYM
11713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11714 fi
11715
11716
11717 rm -f conftest.chown
11718
11719 fi
11720 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11721 $as_echo "$ac_cv_func_chown_works" >&6; }
11722 if test $ac_cv_func_chown_works = yes; then
11723
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_CHOWN 1
11726 _ACEOF
11727
11728 fi
11729
11730
11731   { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11732 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11733 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11734   $as_echo_n "(cached) " >&6
11735 else
11736
11737       if test "$cross_compiling" = yes; then
11738   gl_cv_func_chown_follows_symlink=yes
11739
11740 else
11741   cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h.  */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h.  */
11747
11748 #include <unistd.h>
11749 #include <stdlib.h>
11750 #include <errno.h>
11751
11752         int
11753         main ()
11754         {
11755           char const *dangling_symlink = "conftest.dangle";
11756
11757           unlink (dangling_symlink);
11758           if (symlink ("conftest.no-such", dangling_symlink))
11759             abort ();
11760
11761           /* Exit successfully on a conforming system,
11762              i.e., where chown must fail with ENOENT.  */
11763           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
11764                     && errno == ENOENT));
11765         }
11766
11767 _ACEOF
11768 rm -f conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11775 $as_echo "$ac_try_echo") >&5
11776   (eval "$ac_link") 2>&5
11777   ac_status=$?
11778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11780   { (case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11785 $as_echo "$ac_try_echo") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   gl_cv_func_chown_follows_symlink=yes
11791 else
11792   $as_echo "$as_me: program exited with status $ac_status" >&5
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 ( exit $ac_status )
11797 gl_cv_func_chown_follows_symlink=no
11798 fi
11799 rm -rf conftest.dSYM
11800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11801 fi
11802
11803
11804
11805
11806 fi
11807 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11808 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11809
11810   if test $gl_cv_func_chown_follows_symlink = no; then
11811
11812 cat >>confdefs.h <<\_ACEOF
11813 #define CHOWN_MODIFIES_SYMLINK 1
11814 _ACEOF
11815
11816   fi
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837     if test $ac_cv_func_chown = no; then
11838     HAVE_CHOWN=0
11839
11840
11841
11842
11843
11844
11845
11846
11847   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11848
11849   else
11850         if test $gl_cv_func_chown_follows_symlink = no; then
11851       REPLACE_CHOWN=1
11852
11853
11854
11855
11856
11857
11858
11859
11860   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11861
11862     fi
11863
11864         if test $ac_cv_func_chown_works = no; then
11865
11866 cat >>confdefs.h <<\_ACEOF
11867 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11868 _ACEOF
11869
11870       REPLACE_CHOWN=1
11871
11872
11873
11874
11875
11876
11877
11878
11879   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11880
11881     fi
11882
11883                 { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11884 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11885 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11886   $as_echo_n "(cached) " >&6
11887 else
11888   touch conftest.file && rm -f conftest.link
11889        if test "$cross_compiling" = yes; then
11890   gl_cv_func_chown_slash_works="guessing no"
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898
11899 #include <unistd.h>
11900 #include <stdlib.h>
11901 #include <errno.h>
11902
11903 int
11904 main ()
11905 {
11906     if (symlink ("conftest.file", "conftest.link")) return 1;
11907           if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11908
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917   *) ac_try_echo=$ac_try;;
11918 esac
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921   (eval "$ac_link") 2>&5
11922   ac_status=$?
11923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925   { (case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931   (eval "$ac_try") 2>&5
11932   ac_status=$?
11933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   gl_cv_func_chown_slash_works=yes
11936 else
11937   $as_echo "$as_me: program exited with status $ac_status" >&5
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ( exit $ac_status )
11942 gl_cv_func_chown_slash_works=no
11943 fi
11944 rm -rf conftest.dSYM
11945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11946 fi
11947
11948
11949       rm -f conftest.link conftest.file
11950 fi
11951 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
11952 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
11953     if test "$gl_cv_func_chown_slash_works" != yes; then
11954
11955 cat >>confdefs.h <<\_ACEOF
11956 #define CHOWN_TRAILING_SLASH_BUG 1
11957 _ACEOF
11958
11959       REPLACE_CHOWN=1
11960
11961
11962
11963
11964
11965
11966
11967
11968   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11969
11970     fi
11971
11972         { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
11973 $as_echo_n "checking whether chown always updates ctime... " >&6; }
11974 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
11975   $as_echo_n "(cached) " >&6
11976 else
11977   if test "$cross_compiling" = yes; then
11978   gl_cv_func_chown_ctime_works="guessing no"
11979 else
11980   cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986
11987 #include <unistd.h>
11988 #include <stdlib.h>
11989 #include <errno.h>
11990 #include <fcntl.h>
11991 #include <sys/stat.h>
11992
11993 int
11994 main ()
11995 {
11996     struct stat st1, st2;
11997           if (close (creat ("conftest.file", 0600))) return 1;
11998           if (stat ("conftest.file", &st1)) return 2;
11999           sleep (1);
12000           if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
12001           if (stat ("conftest.file", &st2)) return 4;
12002           if (st2.st_ctime <= st1.st_ctime) return 5;
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016   (eval "$ac_link") 2>&5
12017   ac_status=$?
12018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12020   { (case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12025 $as_echo "$ac_try_echo") >&5
12026   (eval "$ac_try") 2>&5
12027   ac_status=$?
12028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; }; then
12030   gl_cv_func_chown_ctime_works=yes
12031 else
12032   $as_echo "$as_me: program exited with status $ac_status" >&5
12033 $as_echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ( exit $ac_status )
12037 gl_cv_func_chown_ctime_works=no
12038 fi
12039 rm -rf conftest.dSYM
12040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12041 fi
12042
12043
12044       rm -f conftest.file
12045 fi
12046 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
12047 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
12048     if test "$gl_cv_func_chown_ctime_works" != yes; then
12049
12050 cat >>confdefs.h <<\_ACEOF
12051 #define CHOWN_CHANGE_TIME_BUG 1
12052 _ACEOF
12053
12054       REPLACE_CHOWN=1
12055
12056
12057
12058
12059
12060
12061
12062
12063   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12064
12065     fi
12066
12067     if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
12068
12069
12070
12071
12072
12073
12074
12075
12076   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
12077
12078     fi
12079   fi
12080
12081
12082      GNULIB_DIRFD=0;
12083   GNULIB_FDOPENDIR=0;
12084   GNULIB_SCANDIR=0;
12085   GNULIB_ALPHASORT=0;
12086     HAVE_DECL_DIRFD=1;
12087   HAVE_DECL_FDOPENDIR=1;
12088   HAVE_FDOPENDIR=1;
12089   HAVE_SCANDIR=1;
12090   HAVE_ALPHASORT=1;
12091   REPLACE_CLOSEDIR=0;
12092   REPLACE_DIRFD=0;
12093   REPLACE_FDOPENDIR=0;
12094   REPLACE_OPENDIR=0;
12095
12096
12097
12098   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12099 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12100 if test "${gl_cv_have_include_next+set}" = set; then
12101   $as_echo_n "(cached) " >&6
12102 else
12103   rm -rf conftestd1a conftestd1b conftestd2
12104      mkdir conftestd1a conftestd1b conftestd2
12105                                                   cat <<EOF > conftestd1a/conftest.h
12106 #define DEFINED_IN_CONFTESTD1
12107 #include_next <conftest.h>
12108 #ifdef DEFINED_IN_CONFTESTD2
12109 int foo;
12110 #else
12111 #error "include_next doesn't work"
12112 #endif
12113 EOF
12114      cat <<EOF > conftestd1b/conftest.h
12115 #define DEFINED_IN_CONFTESTD1
12116 #include <stdio.h>
12117 #include_next <conftest.h>
12118 #ifdef DEFINED_IN_CONFTESTD2
12119 int foo;
12120 #else
12121 #error "include_next doesn't work"
12122 #endif
12123 EOF
12124      cat <<EOF > conftestd2/conftest.h
12125 #ifndef DEFINED_IN_CONFTESTD1
12126 #error "include_next test doesn't work"
12127 #endif
12128 #define DEFINED_IN_CONFTESTD2
12129 EOF
12130      gl_save_CPPFLAGS="$CPPFLAGS"
12131      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12132      cat >conftest.$ac_ext <<_ACEOF
12133 #include <conftest.h>
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (ac_try="$ac_compile"
12137 case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142 $as_echo "$ac_try_echo") >&5
12143   (eval "$ac_compile") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest.$ac_objext; then
12153   gl_cv_have_include_next=yes
12154 else
12155   $as_echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12159         cat >conftest.$ac_ext <<_ACEOF
12160 #include <conftest.h>
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (ac_try="$ac_compile"
12164 case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169 $as_echo "$ac_try_echo") >&5
12170   (eval "$ac_compile") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } && {
12177          test -z "$ac_c_werror_flag" ||
12178          test ! -s conftest.err
12179        } && test -s conftest.$ac_objext; then
12180   gl_cv_have_include_next=buggy
12181 else
12182   $as_echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         gl_cv_have_include_next=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189
12190 fi
12191
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193      CPPFLAGS="$gl_save_CPPFLAGS"
12194      rm -rf conftestd1a conftestd1b conftestd2
12195
12196 fi
12197 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12198 $as_echo "$gl_cv_have_include_next" >&6; }
12199   PRAGMA_SYSTEM_HEADER=
12200   if test $gl_cv_have_include_next = yes; then
12201     INCLUDE_NEXT=include_next
12202     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12203     if test -n "$GCC"; then
12204       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12205     fi
12206   else
12207     if test $gl_cv_have_include_next = buggy; then
12208       INCLUDE_NEXT=include
12209       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12210     else
12211       INCLUDE_NEXT=include
12212       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12213     fi
12214   fi
12215
12216
12217
12218   { $as_echo "$as_me:$LINENO: checking whether system header files limit the line length" >&5
12219 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12220 if test "${gl_cv_pragma_columns+set}" = set; then
12221   $as_echo_n "(cached) " >&6
12222 else
12223        cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229
12230 #ifdef __TANDEM
12231 choke me
12232 #endif
12233
12234 _ACEOF
12235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12236   $EGREP "choke me" >/dev/null 2>&1; then
12237   gl_cv_pragma_columns=yes
12238 else
12239   gl_cv_pragma_columns=no
12240 fi
12241 rm -f conftest*
12242
12243
12244 fi
12245 { $as_echo "$as_me:$LINENO: result: $gl_cv_pragma_columns" >&5
12246 $as_echo "$gl_cv_pragma_columns" >&6; }
12247   if test $gl_cv_pragma_columns = yes; then
12248     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12249   else
12250     PRAGMA_COLUMNS=
12251   fi
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
12302 $as_echo_n "checking if environ is properly declared... " >&6; }
12303   if test "${gt_cv_var_environ_declaration+set}" = set; then
12304   $as_echo_n "(cached) " >&6
12305 else
12306
12307     cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313 #include <unistd.h>
12314            extern struct { int foo; } environ;
12315 int
12316 main ()
12317 {
12318 environ.foo = 1;
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (ac_try="$ac_compile"
12325 case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330 $as_echo "$ac_try_echo") >&5
12331   (eval "$ac_compile") 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } && {
12338          test -z "$ac_c_werror_flag" ||
12339          test ! -s conftest.err
12340        } && test -s conftest.$ac_objext; then
12341   gt_cv_var_environ_declaration=no
12342 else
12343   $as_echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346         gt_cv_var_environ_declaration=yes
12347 fi
12348
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 fi
12351
12352   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12353 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12354   if test $gt_cv_var_environ_declaration = yes; then
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_ENVIRON_DECL 1
12358 _ACEOF
12359
12360   fi
12361
12362
12363   if test $gt_cv_var_environ_declaration != yes; then
12364     HAVE_DECL_ENVIRON=0
12365   fi
12366
12367
12368
12369
12370
12371   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12372 $as_echo_n "checking for complete errno.h... " >&6; }
12373 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12374   $as_echo_n "(cached) " >&6
12375 else
12376
12377     cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383
12384 #include <errno.h>
12385 #if !defined ENOMSG
12386 booboo
12387 #endif
12388 #if !defined EIDRM
12389 booboo
12390 #endif
12391 #if !defined ENOLINK
12392 booboo
12393 #endif
12394 #if !defined EPROTO
12395 booboo
12396 #endif
12397 #if !defined EMULTIHOP
12398 booboo
12399 #endif
12400 #if !defined EBADMSG
12401 booboo
12402 #endif
12403 #if !defined EOVERFLOW
12404 booboo
12405 #endif
12406 #if !defined ENOTSUP
12407 booboo
12408 #endif
12409 #if !defined ESTALE
12410 booboo
12411 #endif
12412 #if !defined EDQUOT
12413 booboo
12414 #endif
12415 #if !defined ECANCELED
12416 booboo
12417 #endif
12418
12419 _ACEOF
12420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12421   $EGREP "booboo" >/dev/null 2>&1; then
12422   gl_cv_header_errno_h_complete=no
12423 else
12424   gl_cv_header_errno_h_complete=yes
12425 fi
12426 rm -f conftest*
12427
12428
12429 fi
12430 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12431 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12432   if test $gl_cv_header_errno_h_complete = yes; then
12433     ERRNO_H=''
12434   else
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446      if test $gl_cv_have_include_next = yes; then
12447        gl_cv_next_errno_h='<'errno.h'>'
12448      else
12449        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12450 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12451 if test "${gl_cv_next_errno_h+set}" = set; then
12452   $as_echo_n "(cached) " >&6
12453 else
12454
12455           if test $ac_cv_header_errno_h = yes; then
12456             cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 #include <errno.h>
12463
12464 _ACEOF
12465                                                                                                 case "$host_os" in
12466               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12467               *)    gl_absname_cpp="$ac_cpp" ;;
12468             esac
12469                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12470                sed -n '\#/errno.h#{
12471                  s#.*"\(.*/errno.h\)".*#\1#
12472                  s#^/[^/]#//&#
12473                  p
12474                  q
12475                }'`'"'
12476           else
12477             gl_cv_next_errno_h='<'errno.h'>'
12478           fi
12479
12480 fi
12481 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12482 $as_echo "$gl_cv_next_errno_h" >&6; }
12483      fi
12484      NEXT_ERRNO_H=$gl_cv_next_errno_h
12485
12486      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12487        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12488        gl_next_as_first_directive='<'errno.h'>'
12489      else
12490        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12491        gl_next_as_first_directive=$gl_cv_next_errno_h
12492      fi
12493      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12494
12495
12496
12497     ERRNO_H='errno.h'
12498   fi
12499
12500
12501   if test -n "$ERRNO_H"; then
12502     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12503 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12504 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12505   $as_echo_n "(cached) " >&6
12506 else
12507
12508       cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514
12515 #include <errno.h>
12516 #ifdef EMULTIHOP
12517 yes
12518 #endif
12519
12520 _ACEOF
12521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12522   $EGREP "yes" >/dev/null 2>&1; then
12523   gl_cv_header_errno_h_EMULTIHOP=yes
12524 else
12525   gl_cv_header_errno_h_EMULTIHOP=no
12526 fi
12527 rm -f conftest*
12528
12529       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12530         cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h.  */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h.  */
12536
12537 #define _XOPEN_SOURCE_EXTENDED 1
12538 #include <errno.h>
12539 #ifdef EMULTIHOP
12540 yes
12541 #endif
12542
12543 _ACEOF
12544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12545   $EGREP "yes" >/dev/null 2>&1; then
12546   gl_cv_header_errno_h_EMULTIHOP=hidden
12547 fi
12548 rm -f conftest*
12549
12550         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12551                               if test "$cross_compiling" = yes; then
12552   # Depending upon the size, compute the lo and hi bounds.
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559
12560 #define _XOPEN_SOURCE_EXTENDED 1
12561 #include <errno.h>
12562 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12563 #include <stdio.h>
12564 #include <stdlib.h>
12565
12566 int
12567 main ()
12568 {
12569 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12570 test_array [0] = 0
12571
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12583 $as_echo "$ac_try_echo") >&5
12584   (eval "$ac_compile") 2>conftest.er1
12585   ac_status=$?
12586   grep -v '^ *+' conftest.er1 >conftest.err
12587   rm -f conftest.er1
12588   cat conftest.err >&5
12589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } && {
12591          test -z "$ac_c_werror_flag" ||
12592          test ! -s conftest.err
12593        } && test -s conftest.$ac_objext; then
12594   ac_lo=0 ac_mid=0
12595   while :; do
12596     cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 #define _XOPEN_SOURCE_EXTENDED 1
12604 #include <errno.h>
12605 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12606 #include <stdio.h>
12607 #include <stdlib.h>
12608
12609 int
12610 main ()
12611 {
12612 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12613 test_array [0] = 0
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (ac_try="$ac_compile"
12621 case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627   (eval "$ac_compile") 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } && {
12634          test -z "$ac_c_werror_flag" ||
12635          test ! -s conftest.err
12636        } && test -s conftest.$ac_objext; then
12637   ac_hi=$ac_mid; break
12638 else
12639   $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642         ac_lo=`expr $ac_mid + 1`
12643                         if test $ac_lo -le $ac_mid; then
12644                           ac_lo= ac_hi=
12645                           break
12646                         fi
12647                         ac_mid=`expr 2 '*' $ac_mid + 1`
12648 fi
12649
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12651   done
12652 else
12653   $as_echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656         cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662
12663 #define _XOPEN_SOURCE_EXTENDED 1
12664 #include <errno.h>
12665 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12666 #include <stdio.h>
12667 #include <stdlib.h>
12668
12669 int
12670 main ()
12671 {
12672 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12673 test_array [0] = 0
12674
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (ac_try="$ac_compile"
12681 case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 $as_echo "$ac_try_echo") >&5
12687   (eval "$ac_compile") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } && {
12694          test -z "$ac_c_werror_flag" ||
12695          test ! -s conftest.err
12696        } && test -s conftest.$ac_objext; then
12697   ac_hi=-1 ac_mid=-1
12698   while :; do
12699     cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705
12706 #define _XOPEN_SOURCE_EXTENDED 1
12707 #include <errno.h>
12708 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12709 #include <stdio.h>
12710 #include <stdlib.h>
12711
12712 int
12713 main ()
12714 {
12715 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12716 test_array [0] = 0
12717
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12729 $as_echo "$ac_try_echo") >&5
12730   (eval "$ac_compile") 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } && {
12737          test -z "$ac_c_werror_flag" ||
12738          test ! -s conftest.err
12739        } && test -s conftest.$ac_objext; then
12740   ac_lo=$ac_mid; break
12741 else
12742   $as_echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745         ac_hi=`expr '(' $ac_mid ')' - 1`
12746                         if test $ac_mid -le $ac_hi; then
12747                           ac_lo= ac_hi=
12748                           break
12749                         fi
12750                         ac_mid=`expr 2 '*' $ac_mid`
12751 fi
12752
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754   done
12755 else
12756   $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759         ac_lo= ac_hi=
12760 fi
12761
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 # Binary search between lo and hi bounds.
12767 while test "x$ac_lo" != "x$ac_hi"; do
12768   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12769   cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775
12776 #define _XOPEN_SOURCE_EXTENDED 1
12777 #include <errno.h>
12778 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12779 #include <stdio.h>
12780 #include <stdlib.h>
12781
12782 int
12783 main ()
12784 {
12785 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12786 test_array [0] = 0
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800   (eval "$ac_compile") 2>conftest.er1
12801   ac_status=$?
12802   grep -v '^ *+' conftest.er1 >conftest.err
12803   rm -f conftest.er1
12804   cat conftest.err >&5
12805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } && {
12807          test -z "$ac_c_werror_flag" ||
12808          test ! -s conftest.err
12809        } && test -s conftest.$ac_objext; then
12810   ac_hi=$ac_mid
12811 else
12812   $as_echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815         ac_lo=`expr '(' $ac_mid ')' + 1`
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 done
12820 case $ac_lo in
12821 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12822 '')  ;;
12823 esac
12824 else
12825   cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831
12832 #define _XOPEN_SOURCE_EXTENDED 1
12833 #include <errno.h>
12834 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12835 #include <stdio.h>
12836 #include <stdlib.h>
12837
12838 static long int longval () { return EMULTIHOP; }
12839 static unsigned long int ulongval () { return EMULTIHOP; }
12840 #include <stdio.h>
12841 #include <stdlib.h>
12842 int
12843 main ()
12844 {
12845
12846   FILE *f = fopen ("conftest.val", "w");
12847   if (! f)
12848     return 1;
12849   if ((EMULTIHOP) < 0)
12850     {
12851       long int i = longval ();
12852       if (i != (EMULTIHOP))
12853         return 1;
12854       fprintf (f, "%ld", i);
12855     }
12856   else
12857     {
12858       unsigned long int i = ulongval ();
12859       if (i != (EMULTIHOP))
12860         return 1;
12861       fprintf (f, "%lu", i);
12862     }
12863   /* Do not output a trailing newline, as this causes \r\n confusion
12864      on some platforms.  */
12865   return ferror (f) || fclose (f) != 0;
12866
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12878 $as_echo "$ac_try_echo") >&5
12879   (eval "$ac_link") 2>&5
12880   ac_status=$?
12881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12883   { (case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888 $as_echo "$ac_try_echo") >&5
12889   (eval "$ac_try") 2>&5
12890   ac_status=$?
12891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12894 else
12895   $as_echo "$as_me: program exited with status $ac_status" >&5
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 fi
12900 rm -rf conftest.dSYM
12901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 rm -f conftest.val
12904         fi
12905       fi
12906
12907 fi
12908 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12909 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12910     case $gl_cv_header_errno_h_EMULTIHOP in
12911       yes | no)
12912         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12913         ;;
12914       *)
12915         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12916         ;;
12917     esac
12918
12919
12920   fi
12921
12922
12923   if test -n "$ERRNO_H"; then
12924     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12925 $as_echo_n "checking for ENOLINK value... " >&6; }
12926 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12927   $as_echo_n "(cached) " >&6
12928 else
12929
12930       cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936
12937 #include <errno.h>
12938 #ifdef ENOLINK
12939 yes
12940 #endif
12941
12942 _ACEOF
12943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12944   $EGREP "yes" >/dev/null 2>&1; then
12945   gl_cv_header_errno_h_ENOLINK=yes
12946 else
12947   gl_cv_header_errno_h_ENOLINK=no
12948 fi
12949 rm -f conftest*
12950
12951       if test $gl_cv_header_errno_h_ENOLINK = no; then
12952         cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958
12959 #define _XOPEN_SOURCE_EXTENDED 1
12960 #include <errno.h>
12961 #ifdef ENOLINK
12962 yes
12963 #endif
12964
12965 _ACEOF
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967   $EGREP "yes" >/dev/null 2>&1; then
12968   gl_cv_header_errno_h_ENOLINK=hidden
12969 fi
12970 rm -f conftest*
12971
12972         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12973                               if test "$cross_compiling" = yes; then
12974   # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981
12982 #define _XOPEN_SOURCE_EXTENDED 1
12983 #include <errno.h>
12984 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12985 #include <stdio.h>
12986 #include <stdlib.h>
12987
12988 int
12989 main ()
12990 {
12991 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
12992 test_array [0] = 0
12993
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005 $as_echo "$ac_try_echo") >&5
13006   (eval "$ac_compile") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } && {
13013          test -z "$ac_c_werror_flag" ||
13014          test ! -s conftest.err
13015        } && test -s conftest.$ac_objext; then
13016   ac_lo=0 ac_mid=0
13017   while :; do
13018     cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024
13025 #define _XOPEN_SOURCE_EXTENDED 1
13026 #include <errno.h>
13027 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13028 #include <stdio.h>
13029 #include <stdlib.h>
13030
13031 int
13032 main ()
13033 {
13034 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13035 test_array [0] = 0
13036
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049   (eval "$ac_compile") 2>conftest.er1
13050   ac_status=$?
13051   grep -v '^ *+' conftest.er1 >conftest.err
13052   rm -f conftest.er1
13053   cat conftest.err >&5
13054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); } && {
13056          test -z "$ac_c_werror_flag" ||
13057          test ! -s conftest.err
13058        } && test -s conftest.$ac_objext; then
13059   ac_hi=$ac_mid; break
13060 else
13061   $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064         ac_lo=`expr $ac_mid + 1`
13065                         if test $ac_lo -le $ac_mid; then
13066                           ac_lo= ac_hi=
13067                           break
13068                         fi
13069                         ac_mid=`expr 2 '*' $ac_mid + 1`
13070 fi
13071
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073   done
13074 else
13075   $as_echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078         cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084
13085 #define _XOPEN_SOURCE_EXTENDED 1
13086 #include <errno.h>
13087 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13088 #include <stdio.h>
13089 #include <stdlib.h>
13090
13091 int
13092 main ()
13093 {
13094 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13095 test_array [0] = 0
13096
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (ac_try="$ac_compile"
13103 case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109   (eval "$ac_compile") 2>conftest.er1
13110   ac_status=$?
13111   grep -v '^ *+' conftest.er1 >conftest.err
13112   rm -f conftest.er1
13113   cat conftest.err >&5
13114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } && {
13116          test -z "$ac_c_werror_flag" ||
13117          test ! -s conftest.err
13118        } && test -s conftest.$ac_objext; then
13119   ac_hi=-1 ac_mid=-1
13120   while :; do
13121     cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127
13128 #define _XOPEN_SOURCE_EXTENDED 1
13129 #include <errno.h>
13130 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13131 #include <stdio.h>
13132 #include <stdlib.h>
13133
13134 int
13135 main ()
13136 {
13137 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13138 test_array [0] = 0
13139
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 rm -f conftest.$ac_objext
13145 if { (ac_try="$ac_compile"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151 $as_echo "$ac_try_echo") >&5
13152   (eval "$ac_compile") 2>conftest.er1
13153   ac_status=$?
13154   grep -v '^ *+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } && {
13159          test -z "$ac_c_werror_flag" ||
13160          test ! -s conftest.err
13161        } && test -s conftest.$ac_objext; then
13162   ac_lo=$ac_mid; break
13163 else
13164   $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167         ac_hi=`expr '(' $ac_mid ')' - 1`
13168                         if test $ac_mid -le $ac_hi; then
13169                           ac_lo= ac_hi=
13170                           break
13171                         fi
13172                         ac_mid=`expr 2 '*' $ac_mid`
13173 fi
13174
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176   done
13177 else
13178   $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181         ac_lo= ac_hi=
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 # Binary search between lo and hi bounds.
13189 while test "x$ac_lo" != "x$ac_hi"; do
13190   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13191   cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 #define _XOPEN_SOURCE_EXTENDED 1
13199 #include <errno.h>
13200 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13201 #include <stdio.h>
13202 #include <stdlib.h>
13203
13204 int
13205 main ()
13206 {
13207 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13208 test_array [0] = 0
13209
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222   (eval "$ac_compile") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } && {
13229          test -z "$ac_c_werror_flag" ||
13230          test ! -s conftest.err
13231        } && test -s conftest.$ac_objext; then
13232   ac_hi=$ac_mid
13233 else
13234   $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237         ac_lo=`expr '(' $ac_mid ')' + 1`
13238 fi
13239
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13241 done
13242 case $ac_lo in
13243 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13244 '')  ;;
13245 esac
13246 else
13247   cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253
13254 #define _XOPEN_SOURCE_EXTENDED 1
13255 #include <errno.h>
13256 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13257 #include <stdio.h>
13258 #include <stdlib.h>
13259
13260 static long int longval () { return ENOLINK; }
13261 static unsigned long int ulongval () { return ENOLINK; }
13262 #include <stdio.h>
13263 #include <stdlib.h>
13264 int
13265 main ()
13266 {
13267
13268   FILE *f = fopen ("conftest.val", "w");
13269   if (! f)
13270     return 1;
13271   if ((ENOLINK) < 0)
13272     {
13273       long int i = longval ();
13274       if (i != (ENOLINK))
13275         return 1;
13276       fprintf (f, "%ld", i);
13277     }
13278   else
13279     {
13280       unsigned long int i = ulongval ();
13281       if (i != (ENOLINK))
13282         return 1;
13283       fprintf (f, "%lu", i);
13284     }
13285   /* Do not output a trailing newline, as this causes \r\n confusion
13286      on some platforms.  */
13287   return ferror (f) || fclose (f) != 0;
13288
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 rm -f conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301   (eval "$ac_link") 2>&5
13302   ac_status=$?
13303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311   (eval "$ac_try") 2>&5
13312   ac_status=$?
13313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; }; then
13315   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13316 else
13317   $as_echo "$as_me: program exited with status $ac_status" >&5
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 fi
13322 rm -rf conftest.dSYM
13323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13324 fi
13325 rm -f conftest.val
13326         fi
13327       fi
13328
13329 fi
13330 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13331 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13332     case $gl_cv_header_errno_h_ENOLINK in
13333       yes | no)
13334         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13335         ;;
13336       *)
13337         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13338         ;;
13339     esac
13340
13341
13342   fi
13343
13344
13345   if test -n "$ERRNO_H"; then
13346     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13347 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13348 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13349   $as_echo_n "(cached) " >&6
13350 else
13351
13352       cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h.  */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h.  */
13358
13359 #include <errno.h>
13360 #ifdef EOVERFLOW
13361 yes
13362 #endif
13363
13364 _ACEOF
13365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13366   $EGREP "yes" >/dev/null 2>&1; then
13367   gl_cv_header_errno_h_EOVERFLOW=yes
13368 else
13369   gl_cv_header_errno_h_EOVERFLOW=no
13370 fi
13371 rm -f conftest*
13372
13373       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13374         cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380
13381 #define _XOPEN_SOURCE_EXTENDED 1
13382 #include <errno.h>
13383 #ifdef EOVERFLOW
13384 yes
13385 #endif
13386
13387 _ACEOF
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389   $EGREP "yes" >/dev/null 2>&1; then
13390   gl_cv_header_errno_h_EOVERFLOW=hidden
13391 fi
13392 rm -f conftest*
13393
13394         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13395                               if test "$cross_compiling" = yes; then
13396   # Depending upon the size, compute the lo and hi bounds.
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13403
13404 #define _XOPEN_SOURCE_EXTENDED 1
13405 #include <errno.h>
13406 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13407 #include <stdio.h>
13408 #include <stdlib.h>
13409
13410 int
13411 main ()
13412 {
13413 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13414 test_array [0] = 0
13415
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13427 $as_echo "$ac_try_echo") >&5
13428   (eval "$ac_compile") 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } && {
13435          test -z "$ac_c_werror_flag" ||
13436          test ! -s conftest.err
13437        } && test -s conftest.$ac_objext; then
13438   ac_lo=0 ac_mid=0
13439   while :; do
13440     cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446
13447 #define _XOPEN_SOURCE_EXTENDED 1
13448 #include <errno.h>
13449 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13450 #include <stdio.h>
13451 #include <stdlib.h>
13452
13453 int
13454 main ()
13455 {
13456 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13457 test_array [0] = 0
13458
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471   (eval "$ac_compile") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && {
13478          test -z "$ac_c_werror_flag" ||
13479          test ! -s conftest.err
13480        } && test -s conftest.$ac_objext; then
13481   ac_hi=$ac_mid; break
13482 else
13483   $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486         ac_lo=`expr $ac_mid + 1`
13487                         if test $ac_lo -le $ac_mid; then
13488                           ac_lo= ac_hi=
13489                           break
13490                         fi
13491                         ac_mid=`expr 2 '*' $ac_mid + 1`
13492 fi
13493
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495   done
13496 else
13497   $as_echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500         cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 #define _XOPEN_SOURCE_EXTENDED 1
13508 #include <errno.h>
13509 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13510 #include <stdio.h>
13511 #include <stdlib.h>
13512
13513 int
13514 main ()
13515 {
13516 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13517 test_array [0] = 0
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (ac_try="$ac_compile"
13525 case "(($ac_try" in
13526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527   *) ac_try_echo=$ac_try;;
13528 esac
13529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13530 $as_echo "$ac_try_echo") >&5
13531   (eval "$ac_compile") 2>conftest.er1
13532   ac_status=$?
13533   grep -v '^ *+' conftest.er1 >conftest.err
13534   rm -f conftest.er1
13535   cat conftest.err >&5
13536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } && {
13538          test -z "$ac_c_werror_flag" ||
13539          test ! -s conftest.err
13540        } && test -s conftest.$ac_objext; then
13541   ac_hi=-1 ac_mid=-1
13542   while :; do
13543     cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549
13550 #define _XOPEN_SOURCE_EXTENDED 1
13551 #include <errno.h>
13552 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13553 #include <stdio.h>
13554 #include <stdlib.h>
13555
13556 int
13557 main ()
13558 {
13559 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13560 test_array [0] = 0
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574   (eval "$ac_compile") 2>conftest.er1
13575   ac_status=$?
13576   grep -v '^ *+' conftest.er1 >conftest.err
13577   rm -f conftest.er1
13578   cat conftest.err >&5
13579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } && {
13581          test -z "$ac_c_werror_flag" ||
13582          test ! -s conftest.err
13583        } && test -s conftest.$ac_objext; then
13584   ac_lo=$ac_mid; break
13585 else
13586   $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589         ac_hi=`expr '(' $ac_mid ')' - 1`
13590                         if test $ac_mid -le $ac_hi; then
13591                           ac_lo= ac_hi=
13592                           break
13593                         fi
13594                         ac_mid=`expr 2 '*' $ac_mid`
13595 fi
13596
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598   done
13599 else
13600   $as_echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603         ac_lo= ac_hi=
13604 fi
13605
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607 fi
13608
13609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 # Binary search between lo and hi bounds.
13611 while test "x$ac_lo" != "x$ac_hi"; do
13612   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619
13620 #define _XOPEN_SOURCE_EXTENDED 1
13621 #include <errno.h>
13622 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13623 #include <stdio.h>
13624 #include <stdlib.h>
13625
13626 int
13627 main ()
13628 {
13629 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13630 test_array [0] = 0
13631
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (ac_try="$ac_compile"
13638 case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } && {
13651          test -z "$ac_c_werror_flag" ||
13652          test ! -s conftest.err
13653        } && test -s conftest.$ac_objext; then
13654   ac_hi=$ac_mid
13655 else
13656   $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659         ac_lo=`expr '(' $ac_mid ')' + 1`
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 done
13664 case $ac_lo in
13665 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13666 '')  ;;
13667 esac
13668 else
13669   cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675
13676 #define _XOPEN_SOURCE_EXTENDED 1
13677 #include <errno.h>
13678 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13679 #include <stdio.h>
13680 #include <stdlib.h>
13681
13682 static long int longval () { return EOVERFLOW; }
13683 static unsigned long int ulongval () { return EOVERFLOW; }
13684 #include <stdio.h>
13685 #include <stdlib.h>
13686 int
13687 main ()
13688 {
13689
13690   FILE *f = fopen ("conftest.val", "w");
13691   if (! f)
13692     return 1;
13693   if ((EOVERFLOW) < 0)
13694     {
13695       long int i = longval ();
13696       if (i != (EOVERFLOW))
13697         return 1;
13698       fprintf (f, "%ld", i);
13699     }
13700   else
13701     {
13702       unsigned long int i = ulongval ();
13703       if (i != (EOVERFLOW))
13704         return 1;
13705       fprintf (f, "%lu", i);
13706     }
13707   /* Do not output a trailing newline, as this causes \r\n confusion
13708      on some platforms.  */
13709   return ferror (f) || fclose (f) != 0;
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723   (eval "$ac_link") 2>&5
13724   ac_status=$?
13725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727   { (case "(($ac_try" in
13728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729   *) ac_try_echo=$ac_try;;
13730 esac
13731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13732 $as_echo "$ac_try_echo") >&5
13733   (eval "$ac_try") 2>&5
13734   ac_status=$?
13735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; }; then
13737   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13738 else
13739   $as_echo "$as_me: program exited with status $ac_status" >&5
13740 $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 fi
13744 rm -rf conftest.dSYM
13745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746 fi
13747 rm -f conftest.val
13748         fi
13749       fi
13750
13751 fi
13752 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13753 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13754     case $gl_cv_header_errno_h_EOVERFLOW in
13755       yes | no)
13756         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13757         ;;
13758       *)
13759         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13760         ;;
13761     esac
13762
13763
13764   fi
13765
13766
13767 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13768 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13769 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13770   $as_echo_n "(cached) " >&6
13771 else
13772   cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 $ac_includes_default
13779 int
13780 main ()
13781 {
13782 #ifndef strerror_r
13783   (void) strerror_r;
13784 #endif
13785
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798   (eval "$ac_compile") 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && {
13805          test -z "$ac_c_werror_flag" ||
13806          test ! -s conftest.err
13807        } && test -s conftest.$ac_objext; then
13808   ac_cv_have_decl_strerror_r=yes
13809 else
13810   $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813         ac_cv_have_decl_strerror_r=no
13814 fi
13815
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13819 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13820 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13821
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_DECL_STRERROR_R 1
13824 _ACEOF
13825
13826
13827 else
13828   cat >>confdefs.h <<_ACEOF
13829 #define HAVE_DECL_STRERROR_R 0
13830 _ACEOF
13831
13832
13833 fi
13834
13835
13836
13837 for ac_func in strerror_r
13838 do
13839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13841 $as_echo_n "checking for $ac_func... " >&6; }
13842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13843   $as_echo_n "(cached) " >&6
13844 else
13845   cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13853 #define $ac_func innocuous_$ac_func
13854
13855 /* System header to define __stub macros and hopefully few prototypes,
13856     which can conflict with char $ac_func (); below.
13857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13858     <limits.h> exists even on freestanding compilers.  */
13859
13860 #ifdef __STDC__
13861 # include <limits.h>
13862 #else
13863 # include <assert.h>
13864 #endif
13865
13866 #undef $ac_func
13867
13868 /* Override any GCC internal prototype to avoid an error.
13869    Use char because int might match the return type of a GCC
13870    builtin and then its argument prototype would still apply.  */
13871 #ifdef __cplusplus
13872 extern "C"
13873 #endif
13874 char $ac_func ();
13875 /* The GNU C library defines this for functions which it implements
13876     to always fail with ENOSYS.  Some functions are actually named
13877     something starting with __ and the normal name is an alias.  */
13878 #if defined __stub_$ac_func || defined __stub___$ac_func
13879 choke me
13880 #endif
13881
13882 int
13883 main ()
13884 {
13885 return $ac_func ();
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898   (eval "$ac_link") 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } && {
13905          test -z "$ac_c_werror_flag" ||
13906          test ! -s conftest.err
13907        } && test -s conftest$ac_exeext && {
13908          test "$cross_compiling" = yes ||
13909          $as_test_x conftest$ac_exeext
13910        }; then
13911   eval "$as_ac_var=yes"
13912 else
13913   $as_echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916         eval "$as_ac_var=no"
13917 fi
13918
13919 rm -rf conftest.dSYM
13920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13921       conftest$ac_exeext conftest.$ac_ext
13922 fi
13923 ac_res=`eval 'as_val=${'$as_ac_var'}
13924                  $as_echo "$as_val"'`
13925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13926 $as_echo "$ac_res" >&6; }
13927 as_val=`eval 'as_val=${'$as_ac_var'}
13928                  $as_echo "$as_val"'`
13929    if test "x$as_val" = x""yes; then
13930   cat >>confdefs.h <<_ACEOF
13931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13932 _ACEOF
13933
13934 fi
13935 done
13936
13937 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13938 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13939 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13940   $as_echo_n "(cached) " >&6
13941 else
13942
13943     ac_cv_func_strerror_r_char_p=no
13944     if test $ac_cv_have_decl_strerror_r = yes; then
13945       cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951 $ac_includes_default
13952 int
13953 main ()
13954 {
13955
13956           char buf[100];
13957           char x = *strerror_r (0, buf, sizeof buf);
13958           char *p = strerror_r (0, buf, sizeof buf);
13959           return !p || x;
13960
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (ac_try="$ac_compile"
13967 case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13972 $as_echo "$ac_try_echo") >&5
13973   (eval "$ac_compile") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } && {
13980          test -z "$ac_c_werror_flag" ||
13981          test ! -s conftest.err
13982        } && test -s conftest.$ac_objext; then
13983   ac_cv_func_strerror_r_char_p=yes
13984 else
13985   $as_echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992     else
13993       # strerror_r is not declared.  Choose between
13994       # systems that have relatively inaccessible declarations for the
13995       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13996       # former has a strerror_r that returns char*, while the latter
13997       # has a strerror_r that returns `int'.
13998       # This test should segfault on the DEC system.
13999       if test "$cross_compiling" = yes; then
14000   :
14001 else
14002   cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 $ac_includes_default
14009         extern char *strerror_r ();
14010 int
14011 main ()
14012 {
14013 char buf[100];
14014           char x = *strerror_r (0, buf, sizeof buf);
14015           return ! isalpha (x);
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest$ac_exeext
14021 if { (ac_try="$ac_link"
14022 case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14027 $as_echo "$ac_try_echo") >&5
14028   (eval "$ac_link") 2>&5
14029   ac_status=$?
14030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038   (eval "$ac_try") 2>&5
14039   ac_status=$?
14040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042   ac_cv_func_strerror_r_char_p=yes
14043 else
14044   $as_echo "$as_me: program exited with status $ac_status" >&5
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 fi
14049 rm -rf conftest.dSYM
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14051 fi
14052
14053
14054     fi
14055
14056 fi
14057 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14058 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14059 if test $ac_cv_func_strerror_r_char_p = yes; then
14060
14061 cat >>confdefs.h <<\_ACEOF
14062 #define STRERROR_R_CHAR_P 1
14063 _ACEOF
14064
14065 fi
14066
14067
14068      GNULIB_FCHMODAT=0;
14069   GNULIB_FSTATAT=0;
14070   GNULIB_FUTIMENS=0;
14071   GNULIB_LCHMOD=0;
14072   GNULIB_LSTAT=0;
14073   GNULIB_MKDIRAT=0;
14074   GNULIB_MKFIFO=0;
14075   GNULIB_MKFIFOAT=0;
14076   GNULIB_MKNOD=0;
14077   GNULIB_MKNODAT=0;
14078   GNULIB_STAT=0;
14079   GNULIB_UTIMENSAT=0;
14080     HAVE_FCHMODAT=1;
14081   HAVE_FSTATAT=1;
14082   HAVE_FUTIMENS=1;
14083   HAVE_LCHMOD=1;
14084   HAVE_LSTAT=1;
14085   HAVE_MKDIRAT=1;
14086   HAVE_MKFIFO=1;
14087   HAVE_MKFIFOAT=1;
14088   HAVE_MKNOD=1;
14089   HAVE_MKNODAT=1;
14090   HAVE_UTIMENSAT=1;
14091   REPLACE_FSTAT=0;
14092   REPLACE_FSTATAT=0;
14093   REPLACE_FUTIMENS=0;
14094   REPLACE_LSTAT=0;
14095   REPLACE_MKDIR=0;
14096   REPLACE_MKFIFO=0;
14097   REPLACE_MKNOD=0;
14098   REPLACE_STAT=0;
14099   REPLACE_UTIMENSAT=0;
14100
14101
14102
14103
14104   GNULIB_FCNTL=0;
14105   GNULIB_OPEN=0;
14106   GNULIB_OPENAT=0;
14107     HAVE_FCNTL=1;
14108   HAVE_OPENAT=1;
14109   REPLACE_FCNTL=0;
14110   REPLACE_OPEN=0;
14111   REPLACE_OPENAT=0;
14112
14113
14114
14115   { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
14116 $as_echo_n "checking for promoted mode_t type... " >&6; }
14117 if test "${gl_cv_promoted_mode_t+set}" = set; then
14118   $as_echo_n "(cached) " >&6
14119 else
14120
14121                 cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 #include <sys/types.h>
14128 int
14129 main ()
14130 {
14131 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140   *) ac_try_echo=$ac_try;;
14141 esac
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144   (eval "$ac_compile") 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } && {
14151          test -z "$ac_c_werror_flag" ||
14152          test ! -s conftest.err
14153        } && test -s conftest.$ac_objext; then
14154   gl_cv_promoted_mode_t='int'
14155 else
14156   $as_echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159         gl_cv_promoted_mode_t='mode_t'
14160 fi
14161
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163
14164 fi
14165 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
14166 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14167
14168 cat >>confdefs.h <<_ACEOF
14169 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14170 _ACEOF
14171
14172
14173
14174   GNULIB_DPRINTF=0;
14175   GNULIB_FCLOSE=0;
14176   GNULIB_FFLUSH=0;
14177   GNULIB_FOPEN=0;
14178   GNULIB_FPRINTF=0;
14179   GNULIB_FPRINTF_POSIX=0;
14180   GNULIB_FPURGE=0;
14181   GNULIB_FPUTC=0;
14182   GNULIB_FPUTS=0;
14183   GNULIB_FREOPEN=0;
14184   GNULIB_FSEEK=0;
14185   GNULIB_FSEEKO=0;
14186   GNULIB_FTELL=0;
14187   GNULIB_FTELLO=0;
14188   GNULIB_FWRITE=0;
14189   GNULIB_GETDELIM=0;
14190   GNULIB_GETLINE=0;
14191   GNULIB_OBSTACK_PRINTF=0;
14192   GNULIB_OBSTACK_PRINTF_POSIX=0;
14193   GNULIB_PERROR=0;
14194   GNULIB_POPEN=0;
14195   GNULIB_PRINTF=0;
14196   GNULIB_PRINTF_POSIX=0;
14197   GNULIB_PUTC=0;
14198   GNULIB_PUTCHAR=0;
14199   GNULIB_PUTS=0;
14200   GNULIB_REMOVE=0;
14201   GNULIB_RENAME=0;
14202   GNULIB_RENAMEAT=0;
14203   GNULIB_SNPRINTF=0;
14204   GNULIB_SPRINTF_POSIX=0;
14205   GNULIB_STDIO_H_SIGPIPE=0;
14206   GNULIB_TMPFILE=0;
14207   GNULIB_VASPRINTF=0;
14208   GNULIB_VDPRINTF=0;
14209   GNULIB_VFPRINTF=0;
14210   GNULIB_VFPRINTF_POSIX=0;
14211   GNULIB_VPRINTF=0;
14212   GNULIB_VPRINTF_POSIX=0;
14213   GNULIB_VSNPRINTF=0;
14214   GNULIB_VSPRINTF_POSIX=0;
14215     HAVE_DECL_FPURGE=1;
14216   HAVE_DECL_GETDELIM=1;
14217   HAVE_DECL_GETLINE=1;
14218   HAVE_DECL_OBSTACK_PRINTF=1;
14219   HAVE_DECL_SNPRINTF=1;
14220   HAVE_DECL_VSNPRINTF=1;
14221   HAVE_DPRINTF=1;
14222   HAVE_FSEEKO=1;
14223   HAVE_FTELLO=1;
14224   HAVE_RENAMEAT=1;
14225   HAVE_VASPRINTF=1;
14226   HAVE_VDPRINTF=1;
14227   REPLACE_DPRINTF=0;
14228   REPLACE_FCLOSE=0;
14229   REPLACE_FFLUSH=0;
14230   REPLACE_FOPEN=0;
14231   REPLACE_FPRINTF=0;
14232   REPLACE_FPURGE=0;
14233   REPLACE_FREOPEN=0;
14234   REPLACE_FSEEK=0;
14235   REPLACE_FSEEKO=0;
14236   REPLACE_FTELL=0;
14237   REPLACE_FTELLO=0;
14238   REPLACE_GETDELIM=0;
14239   REPLACE_GETLINE=0;
14240   REPLACE_OBSTACK_PRINTF=0;
14241   REPLACE_PERROR=0;
14242   REPLACE_POPEN=0;
14243   REPLACE_PRINTF=0;
14244   REPLACE_REMOVE=0;
14245   REPLACE_RENAME=0;
14246   REPLACE_RENAMEAT=0;
14247   REPLACE_SNPRINTF=0;
14248   REPLACE_SPRINTF=0;
14249   REPLACE_STDIO_WRITE_FUNCS=0;
14250   REPLACE_TMPFILE=0;
14251   REPLACE_VASPRINTF=0;
14252   REPLACE_VDPRINTF=0;
14253   REPLACE_VFPRINTF=0;
14254   REPLACE_VPRINTF=0;
14255   REPLACE_VSNPRINTF=0;
14256   REPLACE_VSPRINTF=0;
14257
14258
14259
14260
14261
14262   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
14263 $as_echo_n "checking for working fcntl.h... " >&6; }
14264 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
14265   $as_echo_n "(cached) " >&6
14266 else
14267   if test "$cross_compiling" = yes; then
14268   gl_cv_header_working_fcntl_h=cross-compiling
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 #include <sys/types.h>
14277            #include <sys/stat.h>
14278            #include <unistd.h>
14279            #include <fcntl.h>
14280            #ifndef O_NOATIME
14281             #define O_NOATIME 0
14282            #endif
14283            #ifndef O_NOFOLLOW
14284             #define O_NOFOLLOW 0
14285            #endif
14286            static int const constants[] =
14287             {
14288               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14289               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14290             };
14291
14292 int
14293 main ()
14294 {
14295
14296             int status = !constants;
14297             {
14298               static char const sym[] = "conftest.sym";
14299               if (symlink (".", sym) != 0
14300                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
14301                 status |= 32;
14302               unlink (sym);
14303             }
14304             {
14305               static char const file[] = "confdefs.h";
14306               int fd = open (file, O_RDONLY | O_NOATIME);
14307               char c;
14308               struct stat st0, st1;
14309               if (fd < 0
14310                   || fstat (fd, &st0) != 0
14311                   || sleep (1) != 0
14312                   || read (fd, &c, 1) != 1
14313                   || close (fd) != 0
14314                   || stat (file, &st1) != 0
14315                   || st0.st_atime != st1.st_atime)
14316                 status |= 64;
14317             }
14318             return status;
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330 $as_echo "$ac_try_echo") >&5
14331   (eval "$ac_link") 2>&5
14332   ac_status=$?
14333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14335   { (case "(($ac_try" in
14336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337   *) ac_try_echo=$ac_try;;
14338 esac
14339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14340 $as_echo "$ac_try_echo") >&5
14341   (eval "$ac_try") 2>&5
14342   ac_status=$?
14343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   gl_cv_header_working_fcntl_h=yes
14346 else
14347   $as_echo "$as_me: program exited with status $ac_status" >&5
14348 $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ( exit $ac_status )
14352 case $? in #(
14353         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14354         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14355         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14356          *) gl_cv_header_working_fcntl_h='no';;
14357         esac
14358 fi
14359 rm -rf conftest.dSYM
14360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14361 fi
14362
14363
14364 fi
14365 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14366 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14367
14368   case $gl_cv_header_working_fcntl_h in #(
14369   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14370   *) ac_val=1;;
14371   esac
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_WORKING_O_NOATIME $ac_val
14375 _ACEOF
14376
14377
14378   case $gl_cv_header_working_fcntl_h in #(
14379   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14380   *) ac_val=1;;
14381   esac
14382
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14385 _ACEOF
14386
14387
14388
14389
14390
14391
14392
14393
14394    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14395 $as_echo_n "checking for mbstate_t... " >&6; }
14396 if test "${ac_cv_type_mbstate_t+set}" = set; then
14397   $as_echo_n "(cached) " >&6
14398 else
14399   cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h.  */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h.  */
14405 $ac_includes_default
14406 #           include <wchar.h>
14407 int
14408 main ()
14409 {
14410 mbstate_t x; return sizeof x;
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (ac_try="$ac_compile"
14417 case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14422 $as_echo "$ac_try_echo") >&5
14423   (eval "$ac_compile") 2>conftest.er1
14424   ac_status=$?
14425   grep -v '^ *+' conftest.er1 >conftest.err
14426   rm -f conftest.er1
14427   cat conftest.err >&5
14428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } && {
14430          test -z "$ac_c_werror_flag" ||
14431          test ! -s conftest.err
14432        } && test -s conftest.$ac_objext; then
14433   ac_cv_type_mbstate_t=yes
14434 else
14435   $as_echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438         ac_cv_type_mbstate_t=no
14439 fi
14440
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 fi
14443 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14444 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14445    if test $ac_cv_type_mbstate_t = yes; then
14446
14447 cat >>confdefs.h <<\_ACEOF
14448 #define HAVE_MBSTATE_T 1
14449 _ACEOF
14450
14451    else
14452
14453 cat >>confdefs.h <<\_ACEOF
14454 #define mbstate_t int
14455 _ACEOF
14456
14457    fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
14483 $as_echo_n "checking for fseeko... " >&6; }
14484 if test "${gl_cv_func_fseeko+set}" = set; then
14485   $as_echo_n "(cached) " >&6
14486 else
14487
14488       cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494 #include <stdio.h>
14495
14496 int
14497 main ()
14498 {
14499 fseeko (stdin, 0, 0);
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (ac_try="$ac_link"
14506 case "(($ac_try" in
14507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508   *) ac_try_echo=$ac_try;;
14509 esac
14510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14511 $as_echo "$ac_try_echo") >&5
14512   (eval "$ac_link") 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } && {
14519          test -z "$ac_c_werror_flag" ||
14520          test ! -s conftest.err
14521        } && test -s conftest$ac_exeext && {
14522          test "$cross_compiling" = yes ||
14523          $as_test_x conftest$ac_exeext
14524        }; then
14525   gl_cv_func_fseeko=yes
14526 else
14527   $as_echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530         gl_cv_func_fseeko=no
14531 fi
14532
14533 rm -rf conftest.dSYM
14534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14535       conftest$ac_exeext conftest.$ac_ext
14536
14537 fi
14538 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
14539 $as_echo "$gl_cv_func_fseeko" >&6; }
14540
14541
14542     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14543 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14544 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14545   $as_echo_n "(cached) " >&6
14546 else
14547   cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h.  */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h.  */
14553 #include <stdio.h>
14554 int
14555 main ()
14556 {
14557 #if defined __SL64 && defined __SCLE /* cygwin */
14558   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14559      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
14560      it is easier to do a version check than building a runtime test.  */
14561 # include <cygwin/version.h>
14562 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14563   choke me
14564 # endif
14565 #endif
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578   (eval "$ac_link") 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } && {
14585          test -z "$ac_c_werror_flag" ||
14586          test ! -s conftest.err
14587        } && test -s conftest$ac_exeext && {
14588          test "$cross_compiling" = yes ||
14589          $as_test_x conftest$ac_exeext
14590        }; then
14591   gl_cv_var_stdin_large_offset=yes
14592 else
14593   $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596         gl_cv_var_stdin_large_offset=no
14597 fi
14598
14599 rm -rf conftest.dSYM
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601       conftest$ac_exeext conftest.$ac_ext
14602 fi
14603 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14604 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14605
14606
14607
14608
14609    { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14610 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14611 if test "${gl_cv_func_getcwd_null+set}" = set; then
14612   $as_echo_n "(cached) " >&6
14613 else
14614   if test "$cross_compiling" = yes; then
14615
14616        case "$host_os" in
14617                                # Guess yes on glibc systems.
14618          *-gnu*)               gl_cv_func_getcwd_null="guessing yes";;
14619                                # Guess yes on Cygwin.
14620          cygwin*)              gl_cv_func_getcwd_null="guessing yes";;
14621                                # Guess yes on mingw.
14622          mingw*)               gl_cv_func_getcwd_null="guessing yes";;
14623                                # If we don't know, assume the worst.
14624          *)                    gl_cv_func_getcwd_null="guessing no";;
14625        esac
14626
14627 else
14628   cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634
14635 #        include <unistd.h>
14636 #        ifndef getcwd
14637          char *getcwd ();
14638 #        endif
14639
14640 int
14641 main ()
14642 {
14643
14644 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14645 /* mingw cwd does not start with '/', but getcwd does allocate.  */
14646 #else
14647            if (chdir ("/") != 0)
14648              return 1;
14649            else
14650              {
14651                char *f = getcwd (NULL, 0);
14652                return ! (f && f[0] == '/' && !f[1]);
14653              }
14654 #endif
14655
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest$ac_exeext
14661 if { (ac_try="$ac_link"
14662 case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14667 $as_echo "$ac_try_echo") >&5
14668   (eval "$ac_link") 2>&5
14669   ac_status=$?
14670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14672   { (case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678   (eval "$ac_try") 2>&5
14679   ac_status=$?
14680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   gl_cv_func_getcwd_null=yes
14683 else
14684   $as_echo "$as_me: program exited with status $ac_status" >&5
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 ( exit $ac_status )
14689 gl_cv_func_getcwd_null=no
14690 fi
14691 rm -rf conftest.dSYM
14692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14693 fi
14694
14695
14696 fi
14697 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14698 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14699
14700 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14701 $as_echo_n "checking whether getcwd is declared... " >&6; }
14702 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14703   $as_echo_n "(cached) " >&6
14704 else
14705   cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 $ac_includes_default
14712 int
14713 main ()
14714 {
14715 #ifndef getcwd
14716   (void) getcwd;
14717 #endif
14718
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731   (eval "$ac_compile") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && {
14738          test -z "$ac_c_werror_flag" ||
14739          test ! -s conftest.err
14740        } && test -s conftest.$ac_objext; then
14741   ac_cv_have_decl_getcwd=yes
14742 else
14743   $as_echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746         ac_cv_have_decl_getcwd=no
14747 fi
14748
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14752 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14753 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14754
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DECL_GETCWD 1
14757 _ACEOF
14758
14759
14760 else
14761   cat >>confdefs.h <<_ACEOF
14762 #define HAVE_DECL_GETCWD 0
14763 _ACEOF
14764
14765
14766 fi
14767
14768
14769 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14770 $as_echo_n "checking whether getdelim is declared... " >&6; }
14771 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14772   $as_echo_n "(cached) " >&6
14773 else
14774   cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780 $ac_includes_default
14781 int
14782 main ()
14783 {
14784 #ifndef getdelim
14785   (void) getdelim;
14786 #endif
14787
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (ac_try="$ac_compile"
14794 case "(($ac_try" in
14795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796   *) ac_try_echo=$ac_try;;
14797 esac
14798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14799 $as_echo "$ac_try_echo") >&5
14800   (eval "$ac_compile") 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } && {
14807          test -z "$ac_c_werror_flag" ||
14808          test ! -s conftest.err
14809        } && test -s conftest.$ac_objext; then
14810   ac_cv_have_decl_getdelim=yes
14811 else
14812   $as_echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815         ac_cv_have_decl_getdelim=no
14816 fi
14817
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 fi
14820 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14821 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14822 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14823
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_DECL_GETDELIM 1
14826 _ACEOF
14827
14828
14829 else
14830   cat >>confdefs.h <<_ACEOF
14831 #define HAVE_DECL_GETDELIM 0
14832 _ACEOF
14833
14834
14835 fi
14836
14837
14838
14839
14840
14841
14842 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14843 $as_echo_n "checking whether getline is declared... " >&6; }
14844 if test "${ac_cv_have_decl_getline+set}" = set; then
14845   $as_echo_n "(cached) " >&6
14846 else
14847   cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 $ac_includes_default
14854 int
14855 main ()
14856 {
14857 #ifndef getline
14858   (void) getline;
14859 #endif
14860
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873   (eval "$ac_compile") 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && {
14880          test -z "$ac_c_werror_flag" ||
14881          test ! -s conftest.err
14882        } && test -s conftest.$ac_objext; then
14883   ac_cv_have_decl_getline=yes
14884 else
14885   $as_echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888         ac_cv_have_decl_getline=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14894 $as_echo "$ac_cv_have_decl_getline" >&6; }
14895 if test "x$ac_cv_have_decl_getline" = x""yes; then
14896
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_DECL_GETLINE 1
14899 _ACEOF
14900
14901
14902 else
14903   cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DECL_GETLINE 0
14905 _ACEOF
14906
14907
14908 fi
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928      if test $gl_cv_have_include_next = yes; then
14929        gl_cv_next_getopt_h='<'getopt.h'>'
14930      else
14931        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
14932 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14933 if test "${gl_cv_next_getopt_h+set}" = set; then
14934   $as_echo_n "(cached) " >&6
14935 else
14936
14937           if test $ac_cv_header_getopt_h = yes; then
14938             cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944 #include <getopt.h>
14945
14946 _ACEOF
14947                                                                                                 case "$host_os" in
14948               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14949               *)    gl_absname_cpp="$ac_cpp" ;;
14950             esac
14951                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14952                sed -n '\#/getopt.h#{
14953                  s#.*"\(.*/getopt.h\)".*#\1#
14954                  s#^/[^/]#//&#
14955                  p
14956                  q
14957                }'`'"'
14958           else
14959             gl_cv_next_getopt_h='<'getopt.h'>'
14960           fi
14961
14962 fi
14963 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
14964 $as_echo "$gl_cv_next_getopt_h" >&6; }
14965      fi
14966      NEXT_GETOPT_H=$gl_cv_next_getopt_h
14967
14968      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14969        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14970        gl_next_as_first_directive='<'getopt.h'>'
14971      else
14972        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14973        gl_next_as_first_directive=$gl_cv_next_getopt_h
14974      fi
14975      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985   if test $ac_cv_header_getopt_h = yes; then
14986     HAVE_GETOPT_H=1
14987   else
14988     HAVE_GETOPT_H=0
14989   fi
14990
14991
14992   gl_replace_getopt=
14993
14994     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14995
14996 for ac_header in getopt.h
14997 do
14998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 $as_echo_n "checking for $ac_header... " >&6; }
15002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15003   $as_echo_n "(cached) " >&6
15004 fi
15005 ac_res=`eval 'as_val=${'$as_ac_Header'}
15006                  $as_echo "$as_val"'`
15007                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15008 $as_echo "$ac_res" >&6; }
15009 else
15010   # Is the header compilable?
15011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15012 $as_echo_n "checking $ac_header usability... " >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h.  */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h.  */
15019 $ac_includes_default
15020 #include <$ac_header>
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (ac_try="$ac_compile"
15024 case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15029 $as_echo "$ac_try_echo") >&5
15030   (eval "$ac_compile") 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } && {
15037          test -z "$ac_c_werror_flag" ||
15038          test ! -s conftest.err
15039        } && test -s conftest.$ac_objext; then
15040   ac_header_compiler=yes
15041 else
15042   $as_echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045         ac_header_compiler=no
15046 fi
15047
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15050 $as_echo "$ac_header_compiler" >&6; }
15051
15052 # Is the header present?
15053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15054 $as_echo_n "checking $ac_header presence... " >&6; }
15055 cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 #include <$ac_header>
15062 _ACEOF
15063 if { (ac_try="$ac_cpp conftest.$ac_ext"
15064 case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069 $as_echo "$ac_try_echo") >&5
15070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15071   ac_status=$?
15072   grep -v '^ *+' conftest.er1 >conftest.err
15073   rm -f conftest.er1
15074   cat conftest.err >&5
15075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } >/dev/null && {
15077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15078          test ! -s conftest.err
15079        }; then
15080   ac_header_preproc=yes
15081 else
15082   $as_echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085   ac_header_preproc=no
15086 fi
15087
15088 rm -f conftest.err conftest.$ac_ext
15089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15090 $as_echo "$ac_header_preproc" >&6; }
15091
15092 # So?  What about this header?
15093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15094   yes:no: )
15095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15099     ac_header_preproc=yes
15100     ;;
15101   no:yes:* )
15102     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15104     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15105 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15106     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15109 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15114     ( cat <<\_ASBOX
15115 ## ------------------------------ ##
15116 ## Report this to bug-tar@gnu.org ##
15117 ## ------------------------------ ##
15118 _ASBOX
15119      ) | sed "s/^/$as_me: WARNING:     /" >&2
15120     ;;
15121 esac
15122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 $as_echo_n "checking for $ac_header... " >&6; }
15124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15125   $as_echo_n "(cached) " >&6
15126 else
15127   eval "$as_ac_Header=\$ac_header_preproc"
15128 fi
15129 ac_res=`eval 'as_val=${'$as_ac_Header'}
15130                  $as_echo "$as_val"'`
15131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15132 $as_echo "$ac_res" >&6; }
15133
15134 fi
15135 as_val=`eval 'as_val=${'$as_ac_Header'}
15136                  $as_echo "$as_val"'`
15137    if test "x$as_val" = x""yes; then
15138   cat >>confdefs.h <<_ACEOF
15139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15140 _ACEOF
15141
15142 else
15143   gl_replace_getopt=yes
15144 fi
15145
15146 done
15147
15148   fi
15149
15150     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15151
15152 for ac_func in getopt_long_only
15153 do
15154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15156 $as_echo_n "checking for $ac_func... " >&6; }
15157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15158   $as_echo_n "(cached) " >&6
15159 else
15160   cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15168 #define $ac_func innocuous_$ac_func
15169
15170 /* System header to define __stub macros and hopefully few prototypes,
15171     which can conflict with char $ac_func (); below.
15172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15173     <limits.h> exists even on freestanding compilers.  */
15174
15175 #ifdef __STDC__
15176 # include <limits.h>
15177 #else
15178 # include <assert.h>
15179 #endif
15180
15181 #undef $ac_func
15182
15183 /* Override any GCC internal prototype to avoid an error.
15184    Use char because int might match the return type of a GCC
15185    builtin and then its argument prototype would still apply.  */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char $ac_func ();
15190 /* The GNU C library defines this for functions which it implements
15191     to always fail with ENOSYS.  Some functions are actually named
15192     something starting with __ and the normal name is an alias.  */
15193 #if defined __stub_$ac_func || defined __stub___$ac_func
15194 choke me
15195 #endif
15196
15197 int
15198 main ()
15199 {
15200 return $ac_func ();
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213   (eval "$ac_link") 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } && {
15220          test -z "$ac_c_werror_flag" ||
15221          test ! -s conftest.err
15222        } && test -s conftest$ac_exeext && {
15223          test "$cross_compiling" = yes ||
15224          $as_test_x conftest$ac_exeext
15225        }; then
15226   eval "$as_ac_var=yes"
15227 else
15228   $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231         eval "$as_ac_var=no"
15232 fi
15233
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236       conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 ac_res=`eval 'as_val=${'$as_ac_var'}
15239                  $as_echo "$as_val"'`
15240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15241 $as_echo "$ac_res" >&6; }
15242 as_val=`eval 'as_val=${'$as_ac_var'}
15243                  $as_echo "$as_val"'`
15244    if test "x$as_val" = x""yes; then
15245   cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15247 _ACEOF
15248
15249 else
15250   gl_replace_getopt=yes
15251 fi
15252 done
15253
15254   fi
15255
15256               if test -z "$gl_replace_getopt"; then
15257     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15258 $as_echo_n "checking whether optreset is declared... " >&6; }
15259 if test "${ac_cv_have_decl_optreset+set}" = set; then
15260   $as_echo_n "(cached) " >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 #include <getopt.h>
15269
15270 int
15271 main ()
15272 {
15273 #ifndef optreset
15274   (void) optreset;
15275 #endif
15276
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285   *) ac_try_echo=$ac_try;;
15286 esac
15287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288 $as_echo "$ac_try_echo") >&5
15289   (eval "$ac_compile") 2>conftest.er1
15290   ac_status=$?
15291   grep -v '^ *+' conftest.er1 >conftest.err
15292   rm -f conftest.er1
15293   cat conftest.err >&5
15294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); } && {
15296          test -z "$ac_c_werror_flag" ||
15297          test ! -s conftest.err
15298        } && test -s conftest.$ac_objext; then
15299   ac_cv_have_decl_optreset=yes
15300 else
15301   $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304         ac_cv_have_decl_optreset=no
15305 fi
15306
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308 fi
15309 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15310 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15311 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15312
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_DECL_OPTRESET 1
15315 _ACEOF
15316
15317
15318 else
15319   cat >>confdefs.h <<_ACEOF
15320 #define HAVE_DECL_OPTRESET 0
15321 _ACEOF
15322
15323 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
15324 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
15325 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
15326   $as_echo_n "(cached) " >&6
15327 else
15328   cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 #include <getopt.h>
15335
15336 int
15337 main ()
15338 {
15339 #ifndef getopt_clip
15340   (void) getopt_clip;
15341 #endif
15342
15343   ;
15344   return 0;
15345 }
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (ac_try="$ac_compile"
15349 case "(($ac_try" in
15350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351   *) ac_try_echo=$ac_try;;
15352 esac
15353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354 $as_echo "$ac_try_echo") >&5
15355   (eval "$ac_compile") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_c_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest.$ac_objext; then
15365   ac_cv_have_decl_getopt_clip=yes
15366 else
15367   $as_echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370         ac_cv_have_decl_getopt_clip=no
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 fi
15375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
15376 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
15377 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_DECL_GETOPT_CLIP 1
15381 _ACEOF
15382
15383
15384 else
15385   cat >>confdefs.h <<_ACEOF
15386 #define HAVE_DECL_GETOPT_CLIP 0
15387 _ACEOF
15388
15389
15390 fi
15391
15392
15393
15394 fi
15395
15396
15397   fi
15398
15399                     if test -z "$gl_replace_getopt"; then
15400     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15401 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15402 if test "${gl_cv_func_getopt_posix+set}" = set; then
15403   $as_echo_n "(cached) " >&6
15404 else
15405
15406                 if test "$cross_compiling" = yes; then
15407   case "$host_os" in
15408              mingw*)         gl_cv_func_getopt_posix="guessing no";;
15409              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15410              *)              gl_cv_func_getopt_posix="guessing yes";;
15411            esac
15412
15413 else
15414   cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h.  */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h.  */
15420
15421 #include <unistd.h>
15422 #include <stdlib.h>
15423 #include <string.h>
15424
15425 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
15426 # define OPTIND_MIN 0
15427 #else
15428 # define OPTIND_MIN 1
15429 #endif
15430
15431 int
15432 main ()
15433 {
15434   {
15435     int argc = 0;
15436     char *argv[10];
15437     int c;
15438
15439     argv[argc++] = "program";
15440     argv[argc++] = "-a";
15441     argv[argc++] = "foo";
15442     argv[argc++] = "bar";
15443     argv[argc] = NULL;
15444     optind = OPTIND_MIN;
15445     opterr = 0;
15446
15447     c = getopt (argc, argv, "ab");
15448     if (!(c == 'a'))
15449       return 1;
15450     c = getopt (argc, argv, "ab");
15451     if (!(c == -1))
15452       return 2;
15453     if (!(optind == 2))
15454       return 3;
15455   }
15456   /* Some internal state exists at this point.  */
15457   {
15458     int argc = 0;
15459     char *argv[10];
15460     int c;
15461
15462     argv[argc++] = "program";
15463     argv[argc++] = "donald";
15464     argv[argc++] = "-p";
15465     argv[argc++] = "billy";
15466     argv[argc++] = "duck";
15467     argv[argc++] = "-a";
15468     argv[argc++] = "bar";
15469     argv[argc] = NULL;
15470     optind = OPTIND_MIN;
15471     opterr = 0;
15472
15473     c = getopt (argc, argv, "+abp:q:");
15474     if (!(c == -1))
15475       return 4;
15476     if (!(strcmp (argv[0], "program") == 0))
15477       return 5;
15478     if (!(strcmp (argv[1], "donald") == 0))
15479       return 6;
15480     if (!(strcmp (argv[2], "-p") == 0))
15481       return 7;
15482     if (!(strcmp (argv[3], "billy") == 0))
15483       return 8;
15484     if (!(strcmp (argv[4], "duck") == 0))
15485       return 9;
15486     if (!(strcmp (argv[5], "-a") == 0))
15487       return 10;
15488     if (!(strcmp (argv[6], "bar") == 0))
15489       return 11;
15490     if (!(optind == 1))
15491       return 12;
15492   }
15493   /* Detect MacOS 10.5, AIX 7.1 bug.  */
15494   {
15495     char *argv[3] = { "program", "-ab", NULL };
15496     optind = OPTIND_MIN;
15497     opterr = 0;
15498     if (getopt (2, argv, "ab:") != 'a')
15499       return 13;
15500     if (getopt (2, argv, "ab:") != '?')
15501       return 14;
15502     if (optopt != 'b')
15503       return 15;
15504     if (optind != 2)
15505       return 16;
15506   }
15507
15508   return 0;
15509 }
15510
15511 _ACEOF
15512 rm -f conftest$ac_exeext
15513 if { (ac_try="$ac_link"
15514 case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520   (eval "$ac_link") 2>&5
15521   ac_status=$?
15522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524   { (case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530   (eval "$ac_try") 2>&5
15531   ac_status=$?
15532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   gl_cv_func_getopt_posix=yes
15535 else
15536   $as_echo "$as_me: program exited with status $ac_status" >&5
15537 $as_echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540 ( exit $ac_status )
15541 gl_cv_func_getopt_posix=no
15542 fi
15543 rm -rf conftest.dSYM
15544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15545 fi
15546
15547
15548
15549 fi
15550 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15551 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15552     case "$gl_cv_func_getopt_posix" in
15553       *no) gl_replace_getopt=yes ;;
15554     esac
15555   fi
15556
15557   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15558     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15559 $as_echo_n "checking for working GNU getopt function... " >&6; }
15560 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15561   $as_echo_n "(cached) " >&6
15562 else
15563   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15564        # optstring is necessary for programs like m4 that have POSIX-mandated
15565        # semantics for supporting options interspersed with files.
15566        # Also, since getopt_long is a GNU extension, we require optind=0.
15567        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
15568        # so take care to revert to the correct (non-)export state.
15569        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
15570        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
15571          xx) gl_had_POSIXLY_CORRECT=exported ;;
15572          x)  gl_had_POSIXLY_CORRECT=yes      ;;
15573          *)  gl_had_POSIXLY_CORRECT=         ;;
15574        esac
15575        POSIXLY_CORRECT=1
15576        export POSIXLY_CORRECT
15577        if test "$cross_compiling" = yes; then
15578            case $host_os:$ac_cv_have_decl_optreset in
15579            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15580            *:yes)               gl_cv_func_getopt_gnu=no;;
15581            *)                   gl_cv_func_getopt_gnu=yes;;
15582          esac
15583
15584 else
15585   cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591 #include <getopt.h>
15592                            #include <stddef.h>
15593                            #include <string.h>
15594
15595 int
15596 main ()
15597 {
15598
15599              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15600                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15601                 OSF/1 5.1, Solaris 10.  */
15602              {
15603                char *myargv[3];
15604                myargv[0] = "conftest";
15605                myargv[1] = "-+";
15606                myargv[2] = 0;
15607                opterr = 0;
15608                if (getopt (2, myargv, "+a") != '?')
15609                  return 1;
15610              }
15611              /* This code succeeds on glibc 2.8, mingw,
15612                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15613                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
15614              {
15615                char *argv[] = { "program", "-p", "foo", "bar", NULL };
15616
15617                optind = 1;
15618                if (getopt (4, argv, "p::") != 'p')
15619                  return 2;
15620                if (optarg != NULL)
15621                  return 3;
15622                if (getopt (4, argv, "p::") != -1)
15623                  return 4;
15624                if (optind != 2)
15625                  return 5;
15626              }
15627              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
15628              {
15629                char *argv[] = { "program", "foo", "-p", NULL };
15630                optind = 0;
15631                if (getopt (3, argv, "-p") != 1)
15632                  return 6;
15633                if (getopt (3, argv, "-p") != 'p')
15634                  return 7;
15635              }
15636              /* This code fails on glibc 2.11.  */
15637              {
15638                char *argv[] = { "program", "-b", "-a", NULL };
15639                optind = opterr = 0;
15640                if (getopt (3, argv, "+:a:b") != 'b')
15641                  return 8;
15642                if (getopt (3, argv, "+:a:b") != ':')
15643                  return 9;
15644              }
15645              return 0;
15646
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest$ac_exeext
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658 $as_echo "$ac_try_echo") >&5
15659   (eval "$ac_link") 2>&5
15660   ac_status=$?
15661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15663   { (case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15668 $as_echo "$ac_try_echo") >&5
15669   (eval "$ac_try") 2>&5
15670   ac_status=$?
15671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }; then
15673   gl_cv_func_getopt_gnu=yes
15674 else
15675   $as_echo "$as_me: program exited with status $ac_status" >&5
15676 $as_echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 ( exit $ac_status )
15680 gl_cv_func_getopt_gnu=no
15681 fi
15682 rm -rf conftest.dSYM
15683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15684 fi
15685
15686
15687        case $gl_had_POSIXLY_CORRECT in
15688          exported) ;;
15689          yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
15690          *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
15691        esac
15692
15693 fi
15694 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15695 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15696     if test "$gl_cv_func_getopt_gnu" = "no"; then
15697       gl_replace_getopt=yes
15698     fi
15699   fi
15700
15701
15702
15703
15704
15705
15706   if test -n "$gl_replace_getopt"; then
15707
15708
15709
15710   GETOPT_H=getopt.h
15711
15712 cat >>confdefs.h <<\_ACEOF
15713 #define __GETOPT_PREFIX rpl_
15714 _ACEOF
15715
15716
15717
15718     GNULIB_UNISTD_H_GETOPT=1
15719
15720
15721
15722
15723
15724
15725
15726
15727   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747 fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759   GNULIB_GETTIMEOFDAY=0;
15760     HAVE_GETTIMEOFDAY=1;
15761   HAVE_STRUCT_TIMEVAL=1;
15762   HAVE_SYS_TIME_H=1;
15763   REPLACE_GETTIMEOFDAY=0;
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785      if test $gl_cv_have_include_next = yes; then
15786        gl_cv_next_sys_time_h='<'sys/time.h'>'
15787      else
15788        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15789 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15790 if test "${gl_cv_next_sys_time_h+set}" = set; then
15791   $as_echo_n "(cached) " >&6
15792 else
15793
15794           if test $ac_cv_header_sys_time_h = yes; then
15795             cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801 #include <sys/time.h>
15802
15803 _ACEOF
15804                                                                                                 case "$host_os" in
15805               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15806               *)    gl_absname_cpp="$ac_cpp" ;;
15807             esac
15808                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15809                sed -n '\#/sys/time.h#{
15810                  s#.*"\(.*/sys/time.h\)".*#\1#
15811                  s#^/[^/]#//&#
15812                  p
15813                  q
15814                }'`'"'
15815           else
15816             gl_cv_next_sys_time_h='<'sys/time.h'>'
15817           fi
15818
15819 fi
15820 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
15821 $as_echo "$gl_cv_next_sys_time_h" >&6; }
15822      fi
15823      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
15824
15825      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15826        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15827        gl_next_as_first_directive='<'sys/time.h'>'
15828      else
15829        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15830        gl_next_as_first_directive=$gl_cv_next_sys_time_h
15831      fi
15832      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
15833
15834
15835
15836
15837   if test $ac_cv_header_sys_time_h != yes; then
15838     HAVE_SYS_TIME_H=0
15839   fi
15840
15841   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
15842 $as_echo_n "checking for struct timeval... " >&6; }
15843 if test "${gl_cv_sys_struct_timeval+set}" = set; then
15844   $as_echo_n "(cached) " >&6
15845 else
15846   cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852 #if HAVE_SYS_TIME_H
15853              #include <sys/time.h>
15854             #endif
15855             #include <time.h>
15856
15857 int
15858 main ()
15859 {
15860 static struct timeval x; x.tv_sec = x.tv_usec;
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872 $as_echo "$ac_try_echo") >&5
15873   (eval "$ac_compile") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } && {
15880          test -z "$ac_c_werror_flag" ||
15881          test ! -s conftest.err
15882        } && test -s conftest.$ac_objext; then
15883   gl_cv_sys_struct_timeval=yes
15884 else
15885   $as_echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888         gl_cv_sys_struct_timeval=no
15889 fi
15890
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 fi
15893 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
15894 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
15895   if test $gl_cv_sys_struct_timeval != yes; then
15896     HAVE_STRUCT_TIMEVAL=0
15897   fi
15898
15899
15900
15901   for gl_func in gettimeofday; do
15902     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15903     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
15904 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15905 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
15906   $as_echo_n "(cached) " >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914
15915 #if HAVE_SYS_TIME_H
15916 # include <sys/time.h>
15917 #endif
15918 #include <time.h>
15919
15920 int
15921 main ()
15922 {
15923 #undef $gl_func
15924   (void) $gl_func;
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937   (eval "$ac_compile") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } && {
15944          test -z "$ac_c_werror_flag" ||
15945          test ! -s conftest.err
15946        } && test -s conftest.$ac_objext; then
15947   eval "$as_gl_Symbol=yes"
15948 else
15949   $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         eval "$as_gl_Symbol=no"
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 fi
15957 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
15958                  $as_echo "$as_val"'`
15959                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15960 $as_echo "$ac_res" >&6; }
15961      as_val=`eval 'as_val=${'$as_gl_Symbol'}
15962                  $as_echo "$as_val"'`
15963    if test "x$as_val" = x""yes; then
15964   cat >>confdefs.h <<_ACEOF
15965 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15966 _ACEOF
15967
15968                      eval ac_cv_have_decl_$gl_func=yes
15969 fi
15970
15971       done
15972
15973
15974
15975
15976
15977 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
15978 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15979 if test "${ac_cv_header_stdbool_h+set}" = set; then
15980   $as_echo_n "(cached) " >&6
15981 else
15982   cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988
15989              #include <stdbool.h>
15990              #ifndef bool
15991               "error: bool is not defined"
15992              #endif
15993              #ifndef false
15994               "error: false is not defined"
15995              #endif
15996              #if false
15997               "error: false is not 0"
15998              #endif
15999              #ifndef true
16000               "error: true is not defined"
16001              #endif
16002              #if true != 1
16003               "error: true is not 1"
16004              #endif
16005              #ifndef __bool_true_false_are_defined
16006               "error: __bool_true_false_are_defined is not defined"
16007              #endif
16008
16009              struct s { _Bool s: 1; _Bool t; } s;
16010
16011              char a[true == 1 ? 1 : -1];
16012              char b[false == 0 ? 1 : -1];
16013              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16014              char d[(bool) 0.5 == true ? 1 : -1];
16015              /* See body of main program for 'e'.  */
16016              char f[(_Bool) 0.0 == false ? 1 : -1];
16017              char g[true];
16018              char h[sizeof (_Bool)];
16019              char i[sizeof s.t];
16020              enum { j = false, k = true, l = false * true, m = true * 256 };
16021              /* The following fails for
16022                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16023              _Bool n[m];
16024              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16025              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16026              /* Catch a bug in an HP-UX C compiler.  See
16027                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16028                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16029               */
16030              _Bool q = true;
16031              _Bool *pq = &q;
16032
16033 int
16034 main ()
16035 {
16036
16037              bool e = &s;
16038              *pq |= q;
16039              *pq |= ! q;
16040              /* Refer to every declared value, to avoid compiler optimizations.  */
16041              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16042                      + !m + !n + !o + !p + !q + !pq);
16043
16044   ;
16045   return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056   (eval "$ac_compile") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } && {
16063          test -z "$ac_c_werror_flag" ||
16064          test ! -s conftest.err
16065        } && test -s conftest.$ac_objext; then
16066   ac_cv_header_stdbool_h=yes
16067 else
16068   $as_echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071         ac_cv_header_stdbool_h=no
16072 fi
16073
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 fi
16076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16077 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16078    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16079 $as_echo_n "checking for _Bool... " >&6; }
16080 if test "${ac_cv_type__Bool+set}" = set; then
16081   $as_echo_n "(cached) " >&6
16082 else
16083   ac_cv_type__Bool=no
16084 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 $ac_includes_default
16091 int
16092 main ()
16093 {
16094 if (sizeof (_Bool))
16095        return 0;
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext
16101 if { (ac_try="$ac_compile"
16102 case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108   (eval "$ac_compile") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } && {
16115          test -z "$ac_c_werror_flag" ||
16116          test ! -s conftest.err
16117        } && test -s conftest.$ac_objext; then
16118   cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 $ac_includes_default
16125 int
16126 main ()
16127 {
16128 if (sizeof ((_Bool)))
16129           return 0;
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138   *) ac_try_echo=$ac_try;;
16139 esac
16140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16141 $as_echo "$ac_try_echo") >&5
16142   (eval "$ac_compile") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && {
16149          test -z "$ac_c_werror_flag" ||
16150          test ! -s conftest.err
16151        } && test -s conftest.$ac_objext; then
16152   :
16153 else
16154   $as_echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16156
16157         ac_cv_type__Bool=yes
16158 fi
16159
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 else
16162   $as_echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165
16166 fi
16167
16168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16171 $as_echo "$ac_cv_type__Bool" >&6; }
16172 if test "x$ac_cv_type__Bool" = x""yes; then
16173
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE__BOOL 1
16176 _ACEOF
16177
16178
16179 fi
16180
16181    if test $ac_cv_header_stdbool_h = yes; then
16182
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_STDBOOL_H 1
16185 _ACEOF
16186
16187    fi
16188
16189
16190
16191   # Define two additional variables used in the Makefile substitution.
16192
16193   if test "$ac_cv_header_stdbool_h" = yes; then
16194     STDBOOL_H=''
16195   else
16196     STDBOOL_H='stdbool.h'
16197   fi
16198
16199
16200   if test "$ac_cv_type__Bool" = yes; then
16201     HAVE__BOOL=1
16202   else
16203     HAVE__BOOL=0
16204   fi
16205
16206
16207
16208   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16209 $as_echo_n "checking for long long int... " >&6; }
16210 if test "${ac_cv_type_long_long_int+set}" = set; then
16211   $as_echo_n "(cached) " >&6
16212 else
16213   cat >conftest.$ac_ext <<_ACEOF
16214
16215   /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220 /* For now, do not test the preprocessor; as of 2007 there are too many
16221          implementations with broken preprocessors.  Perhaps this can
16222          be revisited in 2012.  In the meantime, code should not expect
16223          #if to work with literals wider than 32 bits.  */
16224       /* Test literals.  */
16225       long long int ll = 9223372036854775807ll;
16226       long long int nll = -9223372036854775807LL;
16227       unsigned long long int ull = 18446744073709551615ULL;
16228       /* Test constant expressions.   */
16229       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16230                      ? 1 : -1)];
16231       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16232                      ? 1 : -1)];
16233       int i = 63;
16234 int
16235 main ()
16236 {
16237 /* Test availability of runtime routines for shift and division.  */
16238       long long int llmax = 9223372036854775807ll;
16239       unsigned long long int ullmax = 18446744073709551615ull;
16240       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16241               | (llmax / ll) | (llmax % ll)
16242               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16243               | (ullmax / ull) | (ullmax % ull));
16244   ;
16245   return 0;
16246 }
16247
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257   (eval "$ac_link") 2>conftest.er1
16258   ac_status=$?
16259   grep -v '^ *+' conftest.er1 >conftest.err
16260   rm -f conftest.er1
16261   cat conftest.err >&5
16262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } && {
16264          test -z "$ac_c_werror_flag" ||
16265          test ! -s conftest.err
16266        } && test -s conftest$ac_exeext && {
16267          test "$cross_compiling" = yes ||
16268          $as_test_x conftest$ac_exeext
16269        }; then
16270                           if test "$cross_compiling" = yes; then
16271   ac_cv_type_long_long_int=yes
16272 else
16273   cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 #include <limits.h>
16280                #ifndef LLONG_MAX
16281                # define HALF \
16282                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16283                # define LLONG_MAX (HALF - 1 + HALF)
16284                #endif
16285 int
16286 main ()
16287 {
16288 long long int n = 1;
16289                int i;
16290                for (i = 0; ; i++)
16291                  {
16292                    long long int m = n << i;
16293                    if (m >> i != n)
16294                      return 1;
16295                    if (LLONG_MAX / 2 < m)
16296                      break;
16297                  }
16298                return 0;
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307   *) ac_try_echo=$ac_try;;
16308 esac
16309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16310 $as_echo "$ac_try_echo") >&5
16311   (eval "$ac_link") 2>&5
16312   ac_status=$?
16313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16315   { (case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321   (eval "$ac_try") 2>&5
16322   ac_status=$?
16323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   ac_cv_type_long_long_int=yes
16326 else
16327   $as_echo "$as_me: program exited with status $ac_status" >&5
16328 $as_echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 ( exit $ac_status )
16332 ac_cv_type_long_long_int=no
16333 fi
16334 rm -rf conftest.dSYM
16335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16336 fi
16337
16338
16339 else
16340   $as_echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343         ac_cv_type_long_long_int=no
16344 fi
16345
16346 rm -rf conftest.dSYM
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348       conftest$ac_exeext conftest.$ac_ext
16349 fi
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16351 $as_echo "$ac_cv_type_long_long_int" >&6; }
16352   if test $ac_cv_type_long_long_int = yes; then
16353
16354 cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_LONG_LONG_INT 1
16356 _ACEOF
16357
16358   fi
16359
16360
16361   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16362 $as_echo_n "checking for unsigned long long int... " >&6; }
16363 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16364   $as_echo_n "(cached) " >&6
16365 else
16366   cat >conftest.$ac_ext <<_ACEOF
16367
16368   /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 /* For now, do not test the preprocessor; as of 2007 there are too many
16374          implementations with broken preprocessors.  Perhaps this can
16375          be revisited in 2012.  In the meantime, code should not expect
16376          #if to work with literals wider than 32 bits.  */
16377       /* Test literals.  */
16378       long long int ll = 9223372036854775807ll;
16379       long long int nll = -9223372036854775807LL;
16380       unsigned long long int ull = 18446744073709551615ULL;
16381       /* Test constant expressions.   */
16382       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16383                      ? 1 : -1)];
16384       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16385                      ? 1 : -1)];
16386       int i = 63;
16387 int
16388 main ()
16389 {
16390 /* Test availability of runtime routines for shift and division.  */
16391       long long int llmax = 9223372036854775807ll;
16392       unsigned long long int ullmax = 18446744073709551615ull;
16393       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16394               | (llmax / ll) | (llmax % ll)
16395               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16396               | (ullmax / ull) | (ullmax % ull));
16397   ;
16398   return 0;
16399 }
16400
16401 _ACEOF
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16409 $as_echo "$ac_try_echo") >&5
16410   (eval "$ac_link") 2>conftest.er1
16411   ac_status=$?
16412   grep -v '^ *+' conftest.er1 >conftest.err
16413   rm -f conftest.er1
16414   cat conftest.err >&5
16415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } && {
16417          test -z "$ac_c_werror_flag" ||
16418          test ! -s conftest.err
16419        } && test -s conftest$ac_exeext && {
16420          test "$cross_compiling" = yes ||
16421          $as_test_x conftest$ac_exeext
16422        }; then
16423   ac_cv_type_unsigned_long_long_int=yes
16424 else
16425   $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428         ac_cv_type_unsigned_long_long_int=no
16429 fi
16430
16431 rm -rf conftest.dSYM
16432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433       conftest$ac_exeext conftest.$ac_ext
16434 fi
16435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16436 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16437   if test $ac_cv_type_unsigned_long_long_int = yes; then
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16441 _ACEOF
16442
16443   fi
16444
16445
16446
16447
16448
16449
16450     gl_cv_c_multiarch=no
16451   cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 #ifndef __APPLE_CC__
16458          not a universal capable compiler
16459         #endif
16460         typedef int dummy;
16461
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471   (eval "$ac_compile") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest.$ac_objext; then
16481
16482                arch=
16483      prev=
16484      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16485        if test -n "$prev"; then
16486          case $word in
16487            i?86 | x86_64 | ppc | ppc64)
16488              if test -z "$arch" || test "$arch" = "$word"; then
16489                arch="$word"
16490              else
16491                gl_cv_c_multiarch=yes
16492              fi
16493              ;;
16494          esac
16495          prev=
16496        else
16497          if test "x$word" = "x-arch"; then
16498            prev=arch
16499          fi
16500        fi
16501      done
16502
16503 else
16504   $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511   if test $gl_cv_c_multiarch = yes; then
16512
16513 cat >>confdefs.h <<\_ACEOF
16514 #define AA_APPLE_UNIVERSAL_BUILD 1
16515 _ACEOF
16516
16517     APPLE_UNIVERSAL_BUILD=1
16518   else
16519     APPLE_UNIVERSAL_BUILD=0
16520   fi
16521
16522
16523
16524
16525
16526
16527   if test $ac_cv_type_long_long_int = yes; then
16528     HAVE_LONG_LONG_INT=1
16529   else
16530     HAVE_LONG_LONG_INT=0
16531   fi
16532
16533
16534   if test $ac_cv_type_unsigned_long_long_int = yes; then
16535     HAVE_UNSIGNED_LONG_LONG_INT=1
16536   else
16537     HAVE_UNSIGNED_LONG_LONG_INT=0
16538   fi
16539
16540
16541       if test $ac_cv_header_inttypes_h = yes; then
16542     HAVE_INTTYPES_H=1
16543   else
16544     HAVE_INTTYPES_H=0
16545   fi
16546
16547
16548       if test $ac_cv_header_sys_types_h = yes; then
16549     HAVE_SYS_TYPES_H=1
16550   else
16551     HAVE_SYS_TYPES_H=0
16552   fi
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566      if test $gl_cv_have_include_next = yes; then
16567        gl_cv_next_stdint_h='<'stdint.h'>'
16568      else
16569        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16570 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16571 if test "${gl_cv_next_stdint_h+set}" = set; then
16572   $as_echo_n "(cached) " >&6
16573 else
16574
16575           if test $ac_cv_header_stdint_h = yes; then
16576             cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 #include <stdint.h>
16583
16584 _ACEOF
16585                                                                                                 case "$host_os" in
16586               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16587               *)    gl_absname_cpp="$ac_cpp" ;;
16588             esac
16589                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16590                sed -n '\#/stdint.h#{
16591                  s#.*"\(.*/stdint.h\)".*#\1#
16592                  s#^/[^/]#//&#
16593                  p
16594                  q
16595                }'`'"'
16596           else
16597             gl_cv_next_stdint_h='<'stdint.h'>'
16598           fi
16599
16600 fi
16601 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16602 $as_echo "$gl_cv_next_stdint_h" >&6; }
16603      fi
16604      NEXT_STDINT_H=$gl_cv_next_stdint_h
16605
16606      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16607        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16608        gl_next_as_first_directive='<'stdint.h'>'
16609      else
16610        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16611        gl_next_as_first_directive=$gl_cv_next_stdint_h
16612      fi
16613      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16614
16615
16616
16617   if test $ac_cv_header_stdint_h = yes; then
16618     HAVE_STDINT_H=1
16619   else
16620     HAVE_STDINT_H=0
16621   fi
16622
16623
16624     if test $ac_cv_header_stdint_h = yes; then
16625     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16626 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16627 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16628   $as_echo_n "(cached) " >&6
16629 else
16630   gl_cv_header_working_stdint_h=no
16631        cat >conftest.$ac_ext <<_ACEOF
16632
16633          /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16640 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16641 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16642 #include <stdint.h>
16643 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16644 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16645 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16646 #endif
16647
16648
16649   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16650      included before <wchar.h>.  */
16651   #include <stddef.h>
16652   #include <signal.h>
16653   #if HAVE_WCHAR_H
16654   # include <stdio.h>
16655   # include <time.h>
16656   # include <wchar.h>
16657   #endif
16658
16659
16660 #ifdef INT8_MAX
16661 int8_t a1 = INT8_MAX;
16662 int8_t a1min = INT8_MIN;
16663 #endif
16664 #ifdef INT16_MAX
16665 int16_t a2 = INT16_MAX;
16666 int16_t a2min = INT16_MIN;
16667 #endif
16668 #ifdef INT32_MAX
16669 int32_t a3 = INT32_MAX;
16670 int32_t a3min = INT32_MIN;
16671 #endif
16672 #ifdef INT64_MAX
16673 int64_t a4 = INT64_MAX;
16674 int64_t a4min = INT64_MIN;
16675 #endif
16676 #ifdef UINT8_MAX
16677 uint8_t b1 = UINT8_MAX;
16678 #else
16679 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16680 #endif
16681 #ifdef UINT16_MAX
16682 uint16_t b2 = UINT16_MAX;
16683 #endif
16684 #ifdef UINT32_MAX
16685 uint32_t b3 = UINT32_MAX;
16686 #endif
16687 #ifdef UINT64_MAX
16688 uint64_t b4 = UINT64_MAX;
16689 #endif
16690 int_least8_t c1 = INT8_C (0x7f);
16691 int_least8_t c1max = INT_LEAST8_MAX;
16692 int_least8_t c1min = INT_LEAST8_MIN;
16693 int_least16_t c2 = INT16_C (0x7fff);
16694 int_least16_t c2max = INT_LEAST16_MAX;
16695 int_least16_t c2min = INT_LEAST16_MIN;
16696 int_least32_t c3 = INT32_C (0x7fffffff);
16697 int_least32_t c3max = INT_LEAST32_MAX;
16698 int_least32_t c3min = INT_LEAST32_MIN;
16699 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16700 int_least64_t c4max = INT_LEAST64_MAX;
16701 int_least64_t c4min = INT_LEAST64_MIN;
16702 uint_least8_t d1 = UINT8_C (0xff);
16703 uint_least8_t d1max = UINT_LEAST8_MAX;
16704 uint_least16_t d2 = UINT16_C (0xffff);
16705 uint_least16_t d2max = UINT_LEAST16_MAX;
16706 uint_least32_t d3 = UINT32_C (0xffffffff);
16707 uint_least32_t d3max = UINT_LEAST32_MAX;
16708 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16709 uint_least64_t d4max = UINT_LEAST64_MAX;
16710 int_fast8_t e1 = INT_FAST8_MAX;
16711 int_fast8_t e1min = INT_FAST8_MIN;
16712 int_fast16_t e2 = INT_FAST16_MAX;
16713 int_fast16_t e2min = INT_FAST16_MIN;
16714 int_fast32_t e3 = INT_FAST32_MAX;
16715 int_fast32_t e3min = INT_FAST32_MIN;
16716 int_fast64_t e4 = INT_FAST64_MAX;
16717 int_fast64_t e4min = INT_FAST64_MIN;
16718 uint_fast8_t f1 = UINT_FAST8_MAX;
16719 uint_fast16_t f2 = UINT_FAST16_MAX;
16720 uint_fast32_t f3 = UINT_FAST32_MAX;
16721 uint_fast64_t f4 = UINT_FAST64_MAX;
16722 #ifdef INTPTR_MAX
16723 intptr_t g = INTPTR_MAX;
16724 intptr_t gmin = INTPTR_MIN;
16725 #endif
16726 #ifdef UINTPTR_MAX
16727 uintptr_t h = UINTPTR_MAX;
16728 #endif
16729 intmax_t i = INTMAX_MAX;
16730 uintmax_t j = UINTMAX_MAX;
16731
16732 #include <limits.h> /* for CHAR_BIT */
16733 #define TYPE_MINIMUM(t) \
16734   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16735 #define TYPE_MAXIMUM(t) \
16736   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16737 struct s {
16738   int check_PTRDIFF:
16739       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16740       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16741       ? 1 : -1;
16742   /* Detect bug in FreeBSD 6.0 / ia64.  */
16743   int check_SIG_ATOMIC:
16744       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16745       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16746       ? 1 : -1;
16747   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16748   int check_WCHAR:
16749       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16750       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16751       ? 1 : -1;
16752   /* Detect bug in mingw.  */
16753   int check_WINT:
16754       WINT_MIN == TYPE_MINIMUM (wint_t)
16755       && WINT_MAX == TYPE_MAXIMUM (wint_t)
16756       ? 1 : -1;
16757
16758   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
16759   int check_UINT8_C:
16760         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16761   int check_UINT16_C:
16762         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16763
16764   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
16765 #ifdef UINT8_MAX
16766   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16767 #endif
16768 #ifdef UINT16_MAX
16769   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16770 #endif
16771 #ifdef UINT32_MAX
16772   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16773 #endif
16774 #ifdef UINT64_MAX
16775   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16776 #endif
16777   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16778   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16779   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16780   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16781   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16782   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16783   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16784   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16785   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16786   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16787   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16788 };
16789
16790 int
16791 main ()
16792 {
16793
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16805 $as_echo "$ac_try_echo") >&5
16806   (eval "$ac_compile") 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } && {
16813          test -z "$ac_c_werror_flag" ||
16814          test ! -s conftest.err
16815        } && test -s conftest.$ac_objext; then
16816                                                     if test "$cross_compiling" = yes; then
16817                  gl_cv_header_working_stdint_h=yes
16818
16819 else
16820   cat >conftest.$ac_ext <<_ACEOF
16821
16822             /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16829 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16830 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16831 #include <stdint.h>
16832
16833
16834   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16835      included before <wchar.h>.  */
16836   #include <stddef.h>
16837   #include <signal.h>
16838   #if HAVE_WCHAR_H
16839   # include <stdio.h>
16840   # include <time.h>
16841   # include <wchar.h>
16842   #endif
16843
16844
16845 #include <stdio.h>
16846 #include <string.h>
16847 #define MVAL(macro) MVAL1(macro)
16848 #define MVAL1(expression) #expression
16849 static const char *macro_values[] =
16850   {
16851 #ifdef INT8_MAX
16852     MVAL (INT8_MAX),
16853 #endif
16854 #ifdef INT16_MAX
16855     MVAL (INT16_MAX),
16856 #endif
16857 #ifdef INT32_MAX
16858     MVAL (INT32_MAX),
16859 #endif
16860 #ifdef INT64_MAX
16861     MVAL (INT64_MAX),
16862 #endif
16863 #ifdef UINT8_MAX
16864     MVAL (UINT8_MAX),
16865 #endif
16866 #ifdef UINT16_MAX
16867     MVAL (UINT16_MAX),
16868 #endif
16869 #ifdef UINT32_MAX
16870     MVAL (UINT32_MAX),
16871 #endif
16872 #ifdef UINT64_MAX
16873     MVAL (UINT64_MAX),
16874 #endif
16875     NULL
16876   };
16877
16878 int
16879 main ()
16880 {
16881
16882   const char **mv;
16883   for (mv = macro_values; *mv != NULL; mv++)
16884     {
16885       const char *value = *mv;
16886       /* Test whether it looks like a cast expression.  */
16887       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16888           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16889           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16890           || strncmp (value, "((int)"/*)*/, 6) == 0
16891           || strncmp (value, "((signed short)"/*)*/, 15) == 0
16892           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16893         return 1;
16894     }
16895   return 0;
16896
16897   ;
16898   return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest$ac_exeext
16902 if { (ac_try="$ac_link"
16903 case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16908 $as_echo "$ac_try_echo") >&5
16909   (eval "$ac_link") 2>&5
16910   ac_status=$?
16911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16918 $as_echo "$ac_try_echo") >&5
16919   (eval "$ac_try") 2>&5
16920   ac_status=$?
16921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   gl_cv_header_working_stdint_h=yes
16924 else
16925   $as_echo "$as_me: program exited with status $ac_status" >&5
16926 $as_echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 fi
16930 rm -rf conftest.dSYM
16931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16932 fi
16933
16934
16935
16936 else
16937   $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940
16941 fi
16942
16943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944
16945 fi
16946 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16947 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16948   fi
16949   if test "$gl_cv_header_working_stdint_h" = yes; then
16950     STDINT_H=
16951   else
16952
16953
16954 for ac_header in sys/inttypes.h sys/bitypes.h
16955 do
16956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16958   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 $as_echo_n "checking for $ac_header... " >&6; }
16960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961   $as_echo_n "(cached) " >&6
16962 fi
16963 ac_res=`eval 'as_val=${'$as_ac_Header'}
16964                  $as_echo "$as_val"'`
16965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16966 $as_echo "$ac_res" >&6; }
16967 else
16968   # Is the header compilable?
16969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 $as_echo_n "checking $ac_header usability... " >&6; }
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 $ac_includes_default
16978 #include <$ac_header>
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988   (eval "$ac_compile") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } && {
16995          test -z "$ac_c_werror_flag" ||
16996          test ! -s conftest.err
16997        } && test -s conftest.$ac_objext; then
16998   ac_header_compiler=yes
16999 else
17000   $as_echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003         ac_header_compiler=no
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008 $as_echo "$ac_header_compiler" >&6; }
17009
17010 # Is the header present?
17011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17012 $as_echo_n "checking $ac_header presence... " >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h.  */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h.  */
17019 #include <$ac_header>
17020 _ACEOF
17021 if { (ac_try="$ac_cpp conftest.$ac_ext"
17022 case "(($ac_try" in
17023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024   *) ac_try_echo=$ac_try;;
17025 esac
17026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17027 $as_echo "$ac_try_echo") >&5
17028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } >/dev/null && {
17035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17036          test ! -s conftest.err
17037        }; then
17038   ac_header_preproc=yes
17039 else
17040   $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043   ac_header_preproc=no
17044 fi
17045
17046 rm -f conftest.err conftest.$ac_ext
17047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17048 $as_echo "$ac_header_preproc" >&6; }
17049
17050 # So?  What about this header?
17051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17052   yes:no: )
17053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17057     ac_header_preproc=yes
17058     ;;
17059   no:yes:* )
17060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17063 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17067 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17072     ( cat <<\_ASBOX
17073 ## ------------------------------ ##
17074 ## Report this to bug-tar@gnu.org ##
17075 ## ------------------------------ ##
17076 _ASBOX
17077      ) | sed "s/^/$as_me: WARNING:     /" >&2
17078     ;;
17079 esac
17080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 $as_echo_n "checking for $ac_header... " >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17083   $as_echo_n "(cached) " >&6
17084 else
17085   eval "$as_ac_Header=\$ac_header_preproc"
17086 fi
17087 ac_res=`eval 'as_val=${'$as_ac_Header'}
17088                  $as_echo "$as_val"'`
17089                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17090 $as_echo "$ac_res" >&6; }
17091
17092 fi
17093 as_val=`eval 'as_val=${'$as_ac_Header'}
17094                  $as_echo "$as_val"'`
17095    if test "x$as_val" = x""yes; then
17096   cat >>confdefs.h <<_ACEOF
17097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17098 _ACEOF
17099
17100 fi
17101
17102 done
17103
17104     if test $ac_cv_header_sys_inttypes_h = yes; then
17105       HAVE_SYS_INTTYPES_H=1
17106     else
17107       HAVE_SYS_INTTYPES_H=0
17108     fi
17109
17110     if test $ac_cv_header_sys_bitypes_h = yes; then
17111       HAVE_SYS_BITYPES_H=1
17112     else
17113       HAVE_SYS_BITYPES_H=0
17114     fi
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126   if test $APPLE_UNIVERSAL_BUILD = 0; then
17127
17128
17129
17130
17131   for gltype in ptrdiff_t size_t ; do
17132     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17133 $as_echo_n "checking for bit size of $gltype... " >&6; }
17134 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17135   $as_echo_n "(cached) " >&6
17136 else
17137   if test "$cross_compiling" = yes; then
17138   # Depending upon the size, compute the lo and hi bounds.
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145
17146   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17147      included before <wchar.h>.  */
17148   #include <stddef.h>
17149   #include <signal.h>
17150   #if HAVE_WCHAR_H
17151   # include <stdio.h>
17152   # include <time.h>
17153   # include <wchar.h>
17154   #endif
17155
17156 #include <limits.h>
17157 int
17158 main ()
17159 {
17160 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17161 test_array [0] = 0
17162
17163   ;
17164   return 0;
17165 }
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171   *) ac_try_echo=$ac_try;;
17172 esac
17173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175   (eval "$ac_compile") 2>conftest.er1
17176   ac_status=$?
17177   grep -v '^ *+' conftest.er1 >conftest.err
17178   rm -f conftest.er1
17179   cat conftest.err >&5
17180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } && {
17182          test -z "$ac_c_werror_flag" ||
17183          test ! -s conftest.err
17184        } && test -s conftest.$ac_objext; then
17185   ac_lo=0 ac_mid=0
17186   while :; do
17187     cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193
17194   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17195      included before <wchar.h>.  */
17196   #include <stddef.h>
17197   #include <signal.h>
17198   #if HAVE_WCHAR_H
17199   # include <stdio.h>
17200   # include <time.h>
17201   # include <wchar.h>
17202   #endif
17203
17204 #include <limits.h>
17205 int
17206 main ()
17207 {
17208 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17209 test_array [0] = 0
17210
17211   ;
17212   return 0;
17213 }
17214 _ACEOF
17215 rm -f conftest.$ac_objext
17216 if { (ac_try="$ac_compile"
17217 case "(($ac_try" in
17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219   *) ac_try_echo=$ac_try;;
17220 esac
17221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17222 $as_echo "$ac_try_echo") >&5
17223   (eval "$ac_compile") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } && {
17230          test -z "$ac_c_werror_flag" ||
17231          test ! -s conftest.err
17232        } && test -s conftest.$ac_objext; then
17233   ac_hi=$ac_mid; break
17234 else
17235   $as_echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238         ac_lo=`expr $ac_mid + 1`
17239                         if test $ac_lo -le $ac_mid; then
17240                           ac_lo= ac_hi=
17241                           break
17242                         fi
17243                         ac_mid=`expr 2 '*' $ac_mid + 1`
17244 fi
17245
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247   done
17248 else
17249   $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17260      included before <wchar.h>.  */
17261   #include <stddef.h>
17262   #include <signal.h>
17263   #if HAVE_WCHAR_H
17264   # include <stdio.h>
17265   # include <time.h>
17266   # include <wchar.h>
17267   #endif
17268
17269 #include <limits.h>
17270 int
17271 main ()
17272 {
17273 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17274 test_array [0] = 0
17275
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17287 $as_echo "$ac_try_echo") >&5
17288   (eval "$ac_compile") 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } && {
17295          test -z "$ac_c_werror_flag" ||
17296          test ! -s conftest.err
17297        } && test -s conftest.$ac_objext; then
17298   ac_hi=-1 ac_mid=-1
17299   while :; do
17300     cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17308      included before <wchar.h>.  */
17309   #include <stddef.h>
17310   #include <signal.h>
17311   #if HAVE_WCHAR_H
17312   # include <stdio.h>
17313   # include <time.h>
17314   # include <wchar.h>
17315   #endif
17316
17317 #include <limits.h>
17318 int
17319 main ()
17320 {
17321 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17322 test_array [0] = 0
17323
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (ac_try="$ac_compile"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17335 $as_echo "$ac_try_echo") >&5
17336   (eval "$ac_compile") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest.$ac_objext; then
17346   ac_lo=$ac_mid; break
17347 else
17348   $as_echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351         ac_hi=`expr '(' $ac_mid ')' - 1`
17352                         if test $ac_mid -le $ac_hi; then
17353                           ac_lo= ac_hi=
17354                           break
17355                         fi
17356                         ac_mid=`expr 2 '*' $ac_mid`
17357 fi
17358
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360   done
17361 else
17362   $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365         ac_lo= ac_hi=
17366 fi
17367
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 fi
17370
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372 # Binary search between lo and hi bounds.
17373 while test "x$ac_lo" != "x$ac_hi"; do
17374   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381
17382   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17383      included before <wchar.h>.  */
17384   #include <stddef.h>
17385   #include <signal.h>
17386   #if HAVE_WCHAR_H
17387   # include <stdio.h>
17388   # include <time.h>
17389   # include <wchar.h>
17390   #endif
17391
17392 #include <limits.h>
17393 int
17394 main ()
17395 {
17396 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17397 test_array [0] = 0
17398
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext
17404 if { (ac_try="$ac_compile"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17410 $as_echo "$ac_try_echo") >&5
17411   (eval "$ac_compile") 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } && {
17418          test -z "$ac_c_werror_flag" ||
17419          test ! -s conftest.err
17420        } && test -s conftest.$ac_objext; then
17421   ac_hi=$ac_mid
17422 else
17423   $as_echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426         ac_lo=`expr '(' $ac_mid ')' + 1`
17427 fi
17428
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 done
17431 case $ac_lo in
17432 ?*) result=$ac_lo;;
17433 '') result=unknown ;;
17434 esac
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442
17443   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17444      included before <wchar.h>.  */
17445   #include <stddef.h>
17446   #include <signal.h>
17447   #if HAVE_WCHAR_H
17448   # include <stdio.h>
17449   # include <time.h>
17450   # include <wchar.h>
17451   #endif
17452
17453 #include <limits.h>
17454 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17455 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17456 #include <stdio.h>
17457 #include <stdlib.h>
17458 int
17459 main ()
17460 {
17461
17462   FILE *f = fopen ("conftest.val", "w");
17463   if (! f)
17464     return 1;
17465   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17466     {
17467       long int i = longval ();
17468       if (i != (sizeof ($gltype) * CHAR_BIT))
17469         return 1;
17470       fprintf (f, "%ld", i);
17471     }
17472   else
17473     {
17474       unsigned long int i = ulongval ();
17475       if (i != (sizeof ($gltype) * CHAR_BIT))
17476         return 1;
17477       fprintf (f, "%lu", i);
17478     }
17479   /* Do not output a trailing newline, as this causes \r\n confusion
17480      on some platforms.  */
17481   return ferror (f) || fclose (f) != 0;
17482
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17494 $as_echo "$ac_try_echo") >&5
17495   (eval "$ac_link") 2>&5
17496   ac_status=$?
17497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17499   { (case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505   (eval "$ac_try") 2>&5
17506   ac_status=$?
17507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   result=`cat conftest.val`
17510 else
17511   $as_echo "$as_me: program exited with status $ac_status" >&5
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ( exit $ac_status )
17516 result=unknown
17517 fi
17518 rm -rf conftest.dSYM
17519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17520 fi
17521 rm -f conftest.val
17522        eval gl_cv_bitsizeof_${gltype}=\$result
17523
17524 fi
17525 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17526                  $as_echo "$as_val"'`
17527                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17528 $as_echo "$ac_res" >&6; }
17529     eval result=\$gl_cv_bitsizeof_${gltype}
17530     if test $result = unknown; then
17531                                                 result=0
17532     fi
17533     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17534     cat >>confdefs.h <<_ACEOF
17535 #define BITSIZEOF_${GLTYPE} $result
17536 _ACEOF
17537
17538     eval BITSIZEOF_${GLTYPE}=\$result
17539   done
17540
17541
17542   fi
17543
17544
17545
17546
17547
17548   for gltype in sig_atomic_t wchar_t wint_t ; do
17549     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17550 $as_echo_n "checking for bit size of $gltype... " >&6; }
17551 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17552   $as_echo_n "(cached) " >&6
17553 else
17554   if test "$cross_compiling" = yes; then
17555   # Depending upon the size, compute the lo and hi bounds.
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562
17563   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17564      included before <wchar.h>.  */
17565   #include <stddef.h>
17566   #include <signal.h>
17567   #if HAVE_WCHAR_H
17568   # include <stdio.h>
17569   # include <time.h>
17570   # include <wchar.h>
17571   #endif
17572
17573 #include <limits.h>
17574 int
17575 main ()
17576 {
17577 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17578 test_array [0] = 0
17579
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17591 $as_echo "$ac_try_echo") >&5
17592   (eval "$ac_compile") 2>conftest.er1
17593   ac_status=$?
17594   grep -v '^ *+' conftest.er1 >conftest.err
17595   rm -f conftest.er1
17596   cat conftest.err >&5
17597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } && {
17599          test -z "$ac_c_werror_flag" ||
17600          test ! -s conftest.err
17601        } && test -s conftest.$ac_objext; then
17602   ac_lo=0 ac_mid=0
17603   while :; do
17604     cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610
17611   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17612      included before <wchar.h>.  */
17613   #include <stddef.h>
17614   #include <signal.h>
17615   #if HAVE_WCHAR_H
17616   # include <stdio.h>
17617   # include <time.h>
17618   # include <wchar.h>
17619   #endif
17620
17621 #include <limits.h>
17622 int
17623 main ()
17624 {
17625 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17626 test_array [0] = 0
17627
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640   (eval "$ac_compile") 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } && {
17647          test -z "$ac_c_werror_flag" ||
17648          test ! -s conftest.err
17649        } && test -s conftest.$ac_objext; then
17650   ac_hi=$ac_mid; break
17651 else
17652   $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655         ac_lo=`expr $ac_mid + 1`
17656                         if test $ac_lo -le $ac_mid; then
17657                           ac_lo= ac_hi=
17658                           break
17659                         fi
17660                         ac_mid=`expr 2 '*' $ac_mid + 1`
17661 fi
17662
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664   done
17665 else
17666   $as_echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669         cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675
17676   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17677      included before <wchar.h>.  */
17678   #include <stddef.h>
17679   #include <signal.h>
17680   #if HAVE_WCHAR_H
17681   # include <stdio.h>
17682   # include <time.h>
17683   # include <wchar.h>
17684   #endif
17685
17686 #include <limits.h>
17687 int
17688 main ()
17689 {
17690 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17691 test_array [0] = 0
17692
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17704 $as_echo "$ac_try_echo") >&5
17705   (eval "$ac_compile") 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } && {
17712          test -z "$ac_c_werror_flag" ||
17713          test ! -s conftest.err
17714        } && test -s conftest.$ac_objext; then
17715   ac_hi=-1 ac_mid=-1
17716   while :; do
17717     cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723
17724   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17725      included before <wchar.h>.  */
17726   #include <stddef.h>
17727   #include <signal.h>
17728   #if HAVE_WCHAR_H
17729   # include <stdio.h>
17730   # include <time.h>
17731   # include <wchar.h>
17732   #endif
17733
17734 #include <limits.h>
17735 int
17736 main ()
17737 {
17738 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17739 test_array [0] = 0
17740
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752 $as_echo "$ac_try_echo") >&5
17753   (eval "$ac_compile") 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } && {
17760          test -z "$ac_c_werror_flag" ||
17761          test ! -s conftest.err
17762        } && test -s conftest.$ac_objext; then
17763   ac_lo=$ac_mid; break
17764 else
17765   $as_echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768         ac_hi=`expr '(' $ac_mid ')' - 1`
17769                         if test $ac_mid -le $ac_hi; then
17770                           ac_lo= ac_hi=
17771                           break
17772                         fi
17773                         ac_mid=`expr 2 '*' $ac_mid`
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777   done
17778 else
17779   $as_echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782         ac_lo= ac_hi=
17783 fi
17784
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 fi
17787
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 # Binary search between lo and hi bounds.
17790 while test "x$ac_lo" != "x$ac_hi"; do
17791   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17792   cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17800      included before <wchar.h>.  */
17801   #include <stddef.h>
17802   #include <signal.h>
17803   #if HAVE_WCHAR_H
17804   # include <stdio.h>
17805   # include <time.h>
17806   # include <wchar.h>
17807   #endif
17808
17809 #include <limits.h>
17810 int
17811 main ()
17812 {
17813 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17814 test_array [0] = 0
17815
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17827 $as_echo "$ac_try_echo") >&5
17828   (eval "$ac_compile") 2>conftest.er1
17829   ac_status=$?
17830   grep -v '^ *+' conftest.er1 >conftest.err
17831   rm -f conftest.er1
17832   cat conftest.err >&5
17833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } && {
17835          test -z "$ac_c_werror_flag" ||
17836          test ! -s conftest.err
17837        } && test -s conftest.$ac_objext; then
17838   ac_hi=$ac_mid
17839 else
17840   $as_echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843         ac_lo=`expr '(' $ac_mid ')' + 1`
17844 fi
17845
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847 done
17848 case $ac_lo in
17849 ?*) result=$ac_lo;;
17850 '') result=unknown ;;
17851 esac
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859
17860   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17861      included before <wchar.h>.  */
17862   #include <stddef.h>
17863   #include <signal.h>
17864   #if HAVE_WCHAR_H
17865   # include <stdio.h>
17866   # include <time.h>
17867   # include <wchar.h>
17868   #endif
17869
17870 #include <limits.h>
17871 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17872 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17873 #include <stdio.h>
17874 #include <stdlib.h>
17875 int
17876 main ()
17877 {
17878
17879   FILE *f = fopen ("conftest.val", "w");
17880   if (! f)
17881     return 1;
17882   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17883     {
17884       long int i = longval ();
17885       if (i != (sizeof ($gltype) * CHAR_BIT))
17886         return 1;
17887       fprintf (f, "%ld", i);
17888     }
17889   else
17890     {
17891       unsigned long int i = ulongval ();
17892       if (i != (sizeof ($gltype) * CHAR_BIT))
17893         return 1;
17894       fprintf (f, "%lu", i);
17895     }
17896   /* Do not output a trailing newline, as this causes \r\n confusion
17897      on some platforms.  */
17898   return ferror (f) || fclose (f) != 0;
17899
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest$ac_exeext
17905 if { (ac_try="$ac_link"
17906 case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17911 $as_echo "$ac_try_echo") >&5
17912   (eval "$ac_link") 2>&5
17913   ac_status=$?
17914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   result=`cat conftest.val`
17927 else
17928   $as_echo "$as_me: program exited with status $ac_status" >&5
17929 $as_echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ( exit $ac_status )
17933 result=unknown
17934 fi
17935 rm -rf conftest.dSYM
17936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 rm -f conftest.val
17939        eval gl_cv_bitsizeof_${gltype}=\$result
17940
17941 fi
17942 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17943                  $as_echo "$as_val"'`
17944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17945 $as_echo "$ac_res" >&6; }
17946     eval result=\$gl_cv_bitsizeof_${gltype}
17947     if test $result = unknown; then
17948                                                 result=0
17949     fi
17950     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17951     cat >>confdefs.h <<_ACEOF
17952 #define BITSIZEOF_${GLTYPE} $result
17953 _ACEOF
17954
17955     eval BITSIZEOF_${GLTYPE}=\$result
17956   done
17957
17958
17959
17960
17961
17962
17963
17964   for gltype in sig_atomic_t wchar_t wint_t ; do
17965     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17966 $as_echo_n "checking whether $gltype is signed... " >&6; }
17967 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17968   $as_echo_n "(cached) " >&6
17969 else
17970   cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976
17977   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17978      included before <wchar.h>.  */
17979   #include <stddef.h>
17980   #include <signal.h>
17981   #if HAVE_WCHAR_H
17982   # include <stdio.h>
17983   # include <time.h>
17984   # include <wchar.h>
17985   #endif
17986
17987             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17988 int
17989 main ()
17990 {
17991
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } && {
18011          test -z "$ac_c_werror_flag" ||
18012          test ! -s conftest.err
18013        } && test -s conftest.$ac_objext; then
18014   result=yes
18015 else
18016   $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         result=no
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023        eval gl_cv_type_${gltype}_signed=\$result
18024
18025 fi
18026 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
18027                  $as_echo "$as_val"'`
18028                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18029 $as_echo "$ac_res" >&6; }
18030     eval result=\$gl_cv_type_${gltype}_signed
18031     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18032     if test "$result" = yes; then
18033       cat >>confdefs.h <<_ACEOF
18034 #define HAVE_SIGNED_${GLTYPE} 1
18035 _ACEOF
18036
18037       eval HAVE_SIGNED_${GLTYPE}=1
18038     else
18039       eval HAVE_SIGNED_${GLTYPE}=0
18040     fi
18041   done
18042
18043
18044   gl_cv_type_ptrdiff_t_signed=yes
18045   gl_cv_type_size_t_signed=no
18046   if test $APPLE_UNIVERSAL_BUILD = 0; then
18047
18048
18049
18050
18051   for gltype in ptrdiff_t size_t ; do
18052     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18053 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18054 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18055   $as_echo_n "(cached) " >&6
18056 else
18057   eval gl_cv_type_${gltype}_suffix=no
18058        eval result=\$gl_cv_type_${gltype}_signed
18059        if test "$result" = yes; then
18060          glsufu=
18061        else
18062          glsufu=u
18063        fi
18064        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18065          case $glsuf in
18066            '')  gltype1='int';;
18067            l)   gltype1='long int';;
18068            ll)  gltype1='long long int';;
18069            i64) gltype1='__int64';;
18070            u)   gltype1='unsigned int';;
18071            ul)  gltype1='unsigned long int';;
18072            ull) gltype1='unsigned long long int';;
18073            ui64)gltype1='unsigned __int64';;
18074          esac
18075          cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081
18082   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18083      included before <wchar.h>.  */
18084   #include <stddef.h>
18085   #include <signal.h>
18086   #if HAVE_WCHAR_H
18087   # include <stdio.h>
18088   # include <time.h>
18089   # include <wchar.h>
18090   #endif
18091
18092               extern $gltype foo;
18093               extern $gltype1 foo;
18094 int
18095 main ()
18096 {
18097
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext
18103 if { (ac_try="$ac_compile"
18104 case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18109 $as_echo "$ac_try_echo") >&5
18110   (eval "$ac_compile") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } && {
18117          test -z "$ac_c_werror_flag" ||
18118          test ! -s conftest.err
18119        } && test -s conftest.$ac_objext; then
18120   eval gl_cv_type_${gltype}_suffix=\$glsuf
18121 else
18122   $as_echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129          eval result=\$gl_cv_type_${gltype}_suffix
18130          test "$result" != no && break
18131        done
18132 fi
18133 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18134                  $as_echo "$as_val"'`
18135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18136 $as_echo "$ac_res" >&6; }
18137     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18138     eval result=\$gl_cv_type_${gltype}_suffix
18139     test "$result" = no && result=
18140     eval ${GLTYPE}_SUFFIX=\$result
18141     cat >>confdefs.h <<_ACEOF
18142 #define ${GLTYPE}_SUFFIX $result
18143 _ACEOF
18144
18145   done
18146
18147
18148   fi
18149
18150
18151
18152
18153
18154   for gltype in sig_atomic_t wchar_t wint_t ; do
18155     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18156 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18157 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18158   $as_echo_n "(cached) " >&6
18159 else
18160   eval gl_cv_type_${gltype}_suffix=no
18161        eval result=\$gl_cv_type_${gltype}_signed
18162        if test "$result" = yes; then
18163          glsufu=
18164        else
18165          glsufu=u
18166        fi
18167        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18168          case $glsuf in
18169            '')  gltype1='int';;
18170            l)   gltype1='long int';;
18171            ll)  gltype1='long long int';;
18172            i64) gltype1='__int64';;
18173            u)   gltype1='unsigned int';;
18174            ul)  gltype1='unsigned long int';;
18175            ull) gltype1='unsigned long long int';;
18176            ui64)gltype1='unsigned __int64';;
18177          esac
18178          cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184
18185   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18186      included before <wchar.h>.  */
18187   #include <stddef.h>
18188   #include <signal.h>
18189   #if HAVE_WCHAR_H
18190   # include <stdio.h>
18191   # include <time.h>
18192   # include <wchar.h>
18193   #endif
18194
18195               extern $gltype foo;
18196               extern $gltype1 foo;
18197 int
18198 main ()
18199 {
18200
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213   (eval "$ac_compile") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && {
18220          test -z "$ac_c_werror_flag" ||
18221          test ! -s conftest.err
18222        } && test -s conftest.$ac_objext; then
18223   eval gl_cv_type_${gltype}_suffix=\$glsuf
18224 else
18225   $as_echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232          eval result=\$gl_cv_type_${gltype}_suffix
18233          test "$result" != no && break
18234        done
18235 fi
18236 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18237                  $as_echo "$as_val"'`
18238                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18241     eval result=\$gl_cv_type_${gltype}_suffix
18242     test "$result" = no && result=
18243     eval ${GLTYPE}_SUFFIX=\$result
18244     cat >>confdefs.h <<_ACEOF
18245 #define ${GLTYPE}_SUFFIX $result
18246 _ACEOF
18247
18248   done
18249
18250
18251
18252     STDINT_H=stdint.h
18253   fi
18254
18255
18256
18257
18258 for ac_header in inttypes.h
18259 do
18260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18263 $as_echo_n "checking for $ac_header... " >&6; }
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265   $as_echo_n "(cached) " >&6
18266 fi
18267 ac_res=`eval 'as_val=${'$as_ac_Header'}
18268                  $as_echo "$as_val"'`
18269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18271 else
18272   # Is the header compilable?
18273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274 $as_echo_n "checking $ac_header usability... " >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h.  */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h.  */
18281 $ac_includes_default
18282 #include <$ac_header>
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292   (eval "$ac_compile") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } && {
18299          test -z "$ac_c_werror_flag" ||
18300          test ! -s conftest.err
18301        } && test -s conftest.$ac_objext; then
18302   ac_header_compiler=yes
18303 else
18304   $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18306
18307         ac_header_compiler=no
18308 fi
18309
18310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18312 $as_echo "$ac_header_compiler" >&6; }
18313
18314 # Is the header present?
18315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18316 $as_echo_n "checking $ac_header presence... " >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323 #include <$ac_header>
18324 _ACEOF
18325 if { (ac_try="$ac_cpp conftest.$ac_ext"
18326 case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18331 $as_echo "$ac_try_echo") >&5
18332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18333   ac_status=$?
18334   grep -v '^ *+' conftest.er1 >conftest.err
18335   rm -f conftest.er1
18336   cat conftest.err >&5
18337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } >/dev/null && {
18339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340          test ! -s conftest.err
18341        }; then
18342   ac_header_preproc=yes
18343 else
18344   $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347   ac_header_preproc=no
18348 fi
18349
18350 rm -f conftest.err conftest.$ac_ext
18351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18352 $as_echo "$ac_header_preproc" >&6; }
18353
18354 # So?  What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18356   yes:no: )
18357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18361     ac_header_preproc=yes
18362     ;;
18363   no:yes:* )
18364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18367 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18371 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18376     ( cat <<\_ASBOX
18377 ## ------------------------------ ##
18378 ## Report this to bug-tar@gnu.org ##
18379 ## ------------------------------ ##
18380 _ASBOX
18381      ) | sed "s/^/$as_me: WARNING:     /" >&2
18382     ;;
18383 esac
18384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18385 $as_echo_n "checking for $ac_header... " >&6; }
18386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18387   $as_echo_n "(cached) " >&6
18388 else
18389   eval "$as_ac_Header=\$ac_header_preproc"
18390 fi
18391 ac_res=`eval 'as_val=${'$as_ac_Header'}
18392                  $as_echo "$as_val"'`
18393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18394 $as_echo "$ac_res" >&6; }
18395
18396 fi
18397 as_val=`eval 'as_val=${'$as_ac_Header'}
18398                  $as_echo "$as_val"'`
18399    if test "x$as_val" = x""yes; then
18400   cat >>confdefs.h <<_ACEOF
18401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18402 _ACEOF
18403
18404 fi
18405
18406 done
18407
18408   if test $ac_cv_header_inttypes_h = yes; then
18409     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18410 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18411 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18412   $as_echo_n "(cached) " >&6
18413 else
18414
18415         cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421
18422 #include <inttypes.h>
18423 #ifdef PRId32
18424 char *p = PRId32;
18425 #endif
18426
18427 int
18428 main ()
18429 {
18430
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443   (eval "$ac_compile") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } && {
18450          test -z "$ac_c_werror_flag" ||
18451          test ! -s conftest.err
18452        } && test -s conftest.$ac_objext; then
18453   gt_cv_inttypes_pri_broken=no
18454 else
18455   $as_echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458         gt_cv_inttypes_pri_broken=yes
18459 fi
18460
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462
18463 fi
18464 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18465 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18466   fi
18467   if test "$gt_cv_inttypes_pri_broken" = yes; then
18468
18469 cat >>confdefs.h <<_ACEOF
18470 #define PRI_MACROS_BROKEN 1
18471 _ACEOF
18472
18473     PRI_MACROS_BROKEN=1
18474   else
18475     PRI_MACROS_BROKEN=0
18476   fi
18477
18478
18479
18480
18481 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18482 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18483 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18484   $as_echo_n "(cached) " >&6
18485 else
18486   cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492 $ac_includes_default
18493 int
18494 main ()
18495 {
18496 #ifndef imaxabs
18497   (void) imaxabs;
18498 #endif
18499
18500   ;
18501   return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext
18505 if { (ac_try="$ac_compile"
18506 case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18511 $as_echo "$ac_try_echo") >&5
18512   (eval "$ac_compile") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && {
18519          test -z "$ac_c_werror_flag" ||
18520          test ! -s conftest.err
18521        } && test -s conftest.$ac_objext; then
18522   ac_cv_have_decl_imaxabs=yes
18523 else
18524   $as_echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527         ac_cv_have_decl_imaxabs=no
18528 fi
18529
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 fi
18532 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18533 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18534 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18535
18536 cat >>confdefs.h <<_ACEOF
18537 #define HAVE_DECL_IMAXABS 1
18538 _ACEOF
18539
18540
18541 else
18542   cat >>confdefs.h <<_ACEOF
18543 #define HAVE_DECL_IMAXABS 0
18544 _ACEOF
18545
18546
18547 fi
18548
18549
18550 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18551 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18552 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18553   $as_echo_n "(cached) " >&6
18554 else
18555   cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561 $ac_includes_default
18562 int
18563 main ()
18564 {
18565 #ifndef imaxdiv
18566   (void) imaxdiv;
18567 #endif
18568
18569   ;
18570   return 0;
18571 }
18572 _ACEOF
18573 rm -f conftest.$ac_objext
18574 if { (ac_try="$ac_compile"
18575 case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18580 $as_echo "$ac_try_echo") >&5
18581   (eval "$ac_compile") 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } && {
18588          test -z "$ac_c_werror_flag" ||
18589          test ! -s conftest.err
18590        } && test -s conftest.$ac_objext; then
18591   ac_cv_have_decl_imaxdiv=yes
18592 else
18593   $as_echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596         ac_cv_have_decl_imaxdiv=no
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 fi
18601 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18602 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18603 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18604
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_DECL_IMAXDIV 1
18607 _ACEOF
18608
18609
18610 else
18611   cat >>confdefs.h <<_ACEOF
18612 #define HAVE_DECL_IMAXDIV 0
18613 _ACEOF
18614
18615
18616 fi
18617
18618
18619 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18620 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18621 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18622   $as_echo_n "(cached) " >&6
18623 else
18624   cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630 $ac_includes_default
18631 int
18632 main ()
18633 {
18634 #ifndef strtoimax
18635   (void) strtoimax;
18636 #endif
18637
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646   *) ac_try_echo=$ac_try;;
18647 esac
18648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650   (eval "$ac_compile") 2>conftest.er1
18651   ac_status=$?
18652   grep -v '^ *+' conftest.er1 >conftest.err
18653   rm -f conftest.er1
18654   cat conftest.err >&5
18655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); } && {
18657          test -z "$ac_c_werror_flag" ||
18658          test ! -s conftest.err
18659        } && test -s conftest.$ac_objext; then
18660   ac_cv_have_decl_strtoimax=yes
18661 else
18662   $as_echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18664
18665         ac_cv_have_decl_strtoimax=no
18666 fi
18667
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 fi
18670 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18671 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18672 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18673
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_DECL_STRTOIMAX 1
18676 _ACEOF
18677
18678
18679 else
18680   cat >>confdefs.h <<_ACEOF
18681 #define HAVE_DECL_STRTOIMAX 0
18682 _ACEOF
18683
18684
18685 fi
18686
18687
18688 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18689 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18690 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18691   $as_echo_n "(cached) " >&6
18692 else
18693   cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 $ac_includes_default
18700 int
18701 main ()
18702 {
18703 #ifndef strtoumax
18704   (void) strtoumax;
18705 #endif
18706
18707   ;
18708   return 0;
18709 }
18710 _ACEOF
18711 rm -f conftest.$ac_objext
18712 if { (ac_try="$ac_compile"
18713 case "(($ac_try" in
18714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715   *) ac_try_echo=$ac_try;;
18716 esac
18717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18718 $as_echo "$ac_try_echo") >&5
18719   (eval "$ac_compile") 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } && {
18726          test -z "$ac_c_werror_flag" ||
18727          test ! -s conftest.err
18728        } && test -s conftest.$ac_objext; then
18729   ac_cv_have_decl_strtoumax=yes
18730 else
18731   $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         ac_cv_have_decl_strtoumax=no
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738 fi
18739 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18740 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18741 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18742
18743 cat >>confdefs.h <<_ACEOF
18744 #define HAVE_DECL_STRTOUMAX 1
18745 _ACEOF
18746
18747
18748 else
18749   cat >>confdefs.h <<_ACEOF
18750 #define HAVE_DECL_STRTOUMAX 0
18751 _ACEOF
18752
18753
18754 fi
18755
18756
18757
18758   GNULIB_IMAXABS=0;
18759   GNULIB_IMAXDIV=0;
18760   GNULIB_STRTOIMAX=0;
18761   GNULIB_STRTOUMAX=0;
18762     HAVE_DECL_IMAXABS=1;
18763   HAVE_DECL_IMAXDIV=1;
18764   HAVE_DECL_STRTOIMAX=1;
18765   HAVE_DECL_STRTOUMAX=1;
18766
18767
18768   GNULIB_NL_LANGINFO=0;
18769     HAVE_NL_LANGINFO=1;
18770   REPLACE_NL_LANGINFO=0;
18771
18772
18773
18774
18775
18776
18777
18778
18779   { $as_echo "$as_me:$LINENO: checking whether lstat correctly handles trailing slash" >&5
18780 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18781 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
18782   $as_echo_n "(cached) " >&6
18783 else
18784   rm -f conftest.sym conftest.file
18785      echo >conftest.file
18786      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18787        if test "$cross_compiling" = yes; then
18788   # When cross-compiling, be pessimistic so we will end up using the
18789           # replacement version of lstat that checks for trailing slashes and
18790           # calls lstat a second time when necessary.
18791           ac_cv_func_lstat_dereferences_slashed_symlink=no
18792
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800 $ac_includes_default
18801 int
18802 main ()
18803 {
18804 struct stat sbuf;
18805               /* Linux will dereference the symlink and fail, as required by
18806                  POSIX.  That is better in the sense that it means we will not
18807                  have to compile and use the lstat wrapper.  */
18808               return lstat ("conftest.sym/", &sbuf) == 0;
18809
18810   ;
18811   return 0;
18812 }
18813 _ACEOF
18814 rm -f conftest$ac_exeext
18815 if { (ac_try="$ac_link"
18816 case "(($ac_try" in
18817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818   *) ac_try_echo=$ac_try;;
18819 esac
18820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18821 $as_echo "$ac_try_echo") >&5
18822   (eval "$ac_link") 2>&5
18823   ac_status=$?
18824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18826   { (case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831 $as_echo "$ac_try_echo") >&5
18832   (eval "$ac_try") 2>&5
18833   ac_status=$?
18834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; }; then
18836   ac_cv_func_lstat_dereferences_slashed_symlink=yes
18837 else
18838   $as_echo "$as_me: program exited with status $ac_status" >&5
18839 $as_echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ( exit $ac_status )
18843 ac_cv_func_lstat_dereferences_slashed_symlink=no
18844 fi
18845 rm -rf conftest.dSYM
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18847 fi
18848
18849
18850      else
18851        # If the 'ln -s' command failed, then we probably don't even
18852        # have an lstat function.
18853        ac_cv_func_lstat_dereferences_slashed_symlink=no
18854      fi
18855      rm -f conftest.sym conftest.file
18856
18857 fi
18858 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18859 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18860   test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18861
18862 cat >>confdefs.h <<_ACEOF
18863 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18864 _ACEOF
18865
18866   if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
18867
18868
18869
18870
18871
18872
18873
18874
18875   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18876
18877   fi
18878
18879
18880
18881
18882
18883     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
18884 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
18885 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
18886   $as_echo_n "(cached) " >&6
18887 else
18888   touch conftest.file
18889      # Assume that if we have lstat, we can also check symlinks.
18890      if test $ac_cv_func_lstat = yes; then
18891        ln -s conftest.file conftest.lnk
18892      fi
18893      if test "$cross_compiling" = yes; then
18894   gl_cv_func_unlink_honors_slashes="guessing no"
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 #include <unistd.h>
18903            #include <errno.h>
18904
18905 int
18906 main ()
18907 {
18908 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
18909 #if HAVE_LSTAT
18910       if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
18911 #endif
18912
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921   *) ac_try_echo=$ac_try;;
18922 esac
18923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18924 $as_echo "$ac_try_echo") >&5
18925   (eval "$ac_link") 2>&5
18926   ac_status=$?
18927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18929   { (case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18934 $as_echo "$ac_try_echo") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   gl_cv_func_unlink_honors_slashes=yes
18940 else
18941   $as_echo "$as_me: program exited with status $ac_status" >&5
18942 $as_echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 ( exit $ac_status )
18946 gl_cv_func_unlink_honors_slashes=no
18947 fi
18948 rm -rf conftest.dSYM
18949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18950 fi
18951
18952
18953      rm -f conftest.file conftest.lnk
18954 fi
18955 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
18956 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
18957       { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails is it should" >&5
18958 $as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
18959 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
18960   $as_echo_n "(cached) " >&6
18961 else
18962   case "$host_os" in
18963        darwin*)
18964                                                       if {
18965               # Use the mktemp program if available. If not available, hide the error
18966               # message.
18967               tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
18968               test -n "$tmp" && test -d "$tmp"
18969             } ||
18970             {
18971               # Use a simple mkdir command. It is guaranteed to fail if the directory
18972               # already exists.  $RANDOM is bash specific and expands to empty in shells
18973               # other than bash, ksh and zsh.  Its use does not increase security;
18974               # rather, it minimizes the probability of failure in a very cluttered /tmp
18975               # directory.
18976               tmp=/tmp/gt$$-$RANDOM
18977               (umask 077 && mkdir "$tmp")
18978             }; then
18979            mkdir "$tmp/subdir"
18980            GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
18981            export GL_SUBDIR_FOR_UNLINK
18982            if test "$cross_compiling" = yes; then
18983   gl_cv_func_unlink_parent_fails="guessing no"
18984 else
18985   cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991
18992                 #include <stdlib.h>
18993                 #include <unistd.h>
18994                 int main ()
18995                 {
18996                   if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
18997                     return 1;
18998                   return unlink ("..") == 0;
18999                 }
19000
19001 _ACEOF
19002 rm -f conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19009 $as_echo "$ac_try_echo") >&5
19010   (eval "$ac_link") 2>&5
19011   ac_status=$?
19012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19014   { (case "(($ac_try" in
19015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016   *) ac_try_echo=$ac_try;;
19017 esac
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020   (eval "$ac_try") 2>&5
19021   ac_status=$?
19022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   gl_cv_func_unlink_parent_fails=yes
19025 else
19026   $as_echo "$as_me: program exited with status $ac_status" >&5
19027 $as_echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19029
19030 ( exit $ac_status )
19031 gl_cv_func_unlink_parent_fails=no
19032 fi
19033 rm -rf conftest.dSYM
19034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19035 fi
19036
19037
19038            unset GL_SUBDIR_FOR_UNLINK
19039            rm -rf "$tmp"
19040          else
19041            gl_cv_func_unlink_parent_fails="guessing no"
19042          fi
19043          ;;
19044        *)
19045          gl_cv_func_unlink_parent_fails="guessing yes"
19046          ;;
19047      esac
19048
19049 fi
19050 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
19051 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
19052   case "$gl_cv_func_unlink_parent_fails" in
19053     *no)
19054
19055 cat >>confdefs.h <<\_ACEOF
19056 #define UNLINK_PARENT_BUG 1
19057 _ACEOF
19058
19059       ;;
19060   esac
19061   if test "$gl_cv_func_unlink_honors_slashes" != yes \
19062      || { case "$gl_cv_func_unlink_parent_fails" in
19063             *yes) false;;
19064             *no) true;;
19065           esac
19066         }; then
19067     REPLACE_UNLINK=1
19068
19069
19070
19071
19072
19073
19074
19075
19076   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
19077
19078   fi
19079
19080
19081
19082   GNULIB_OPENAT=1
19083
19084
19085   GNULIB_FCHMODAT=1
19086   GNULIB_FSTATAT=1
19087   GNULIB_MKDIRAT=1
19088
19089
19090   GNULIB_FCHOWNAT=1
19091   GNULIB_UNLINKAT=1
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151 for ac_func in fchmodat fstatat mkdirat openat unlinkat
19152 do
19153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19155 $as_echo_n "checking for $ac_func... " >&6; }
19156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19157   $as_echo_n "(cached) " >&6
19158 else
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19167 #define $ac_func innocuous_$ac_func
19168
19169 /* System header to define __stub macros and hopefully few prototypes,
19170     which can conflict with char $ac_func (); below.
19171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172     <limits.h> exists even on freestanding compilers.  */
19173
19174 #ifdef __STDC__
19175 # include <limits.h>
19176 #else
19177 # include <assert.h>
19178 #endif
19179
19180 #undef $ac_func
19181
19182 /* Override any GCC internal prototype to avoid an error.
19183    Use char because int might match the return type of a GCC
19184    builtin and then its argument prototype would still apply.  */
19185 #ifdef __cplusplus
19186 extern "C"
19187 #endif
19188 char $ac_func ();
19189 /* The GNU C library defines this for functions which it implements
19190     to always fail with ENOSYS.  Some functions are actually named
19191     something starting with __ and the normal name is an alias.  */
19192 #if defined __stub_$ac_func || defined __stub___$ac_func
19193 choke me
19194 #endif
19195
19196 int
19197 main ()
19198 {
19199 return $ac_func ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212   (eval "$ac_link") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } && {
19219          test -z "$ac_c_werror_flag" ||
19220          test ! -s conftest.err
19221        } && test -s conftest$ac_exeext && {
19222          test "$cross_compiling" = yes ||
19223          $as_test_x conftest$ac_exeext
19224        }; then
19225   eval "$as_ac_var=yes"
19226 else
19227   $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         eval "$as_ac_var=no"
19231 fi
19232
19233 rm -rf conftest.dSYM
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235       conftest$ac_exeext conftest.$ac_ext
19236 fi
19237 ac_res=`eval 'as_val=${'$as_ac_var'}
19238                  $as_echo "$as_val"'`
19239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19240 $as_echo "$ac_res" >&6; }
19241 as_val=`eval 'as_val=${'$as_ac_var'}
19242                  $as_echo "$as_val"'`
19243    if test "x$as_val" = x""yes; then
19244   cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19246 _ACEOF
19247
19248 else
19249
19250     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19251
19252 fi
19253 done
19254
19255
19256
19257
19258   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
19259   yes+yes)
19260     # GNU/Hurd has unlinkat, but it has the same bug as unlink.
19261     if test $REPLACE_UNLINK = 1; then
19262
19263
19264
19265
19266
19267
19268
19269
19270   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
19271
19272       REPLACE_UNLINKAT=1
19273     fi ;;
19274   yes+*)
19275     # Solaris 9 has *at functions, but uniformly mishandles trailing
19276     # slash in all of them.
19277
19278
19279
19280
19281
19282
19283
19284
19285   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
19286
19287     REPLACE_OPENAT=1
19288
19289
19290
19291
19292
19293
19294
19295
19296   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
19297
19298     REPLACE_FSTATAT=1
19299
19300
19301
19302
19303
19304
19305
19306
19307   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
19308
19309     REPLACE_UNLINKAT=1
19310     ;;
19311   *)
19312     HAVE_OPENAT=0
19313     HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
19314     HAVE_FSTATAT=0 # No known system with fstatat but not openat
19315
19316
19317
19318   :
19319 ;;
19320   esac
19321   if test $ac_cv_func_fchmodat != yes; then
19322     HAVE_FCHMODAT=0
19323   fi
19324   if test $ac_cv_func_mkdirat != yes; then
19325     HAVE_MKDIRAT=0
19326   fi
19327
19328
19329   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
19330 $as_echo_n "checking for fchownat... " >&6; }
19331 if test "${ac_cv_func_fchownat+set}" = set; then
19332   $as_echo_n "(cached) " >&6
19333 else
19334   cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
19341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19342 #define fchownat innocuous_fchownat
19343
19344 /* System header to define __stub macros and hopefully few prototypes,
19345     which can conflict with char fchownat (); below.
19346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19347     <limits.h> exists even on freestanding compilers.  */
19348
19349 #ifdef __STDC__
19350 # include <limits.h>
19351 #else
19352 # include <assert.h>
19353 #endif
19354
19355 #undef fchownat
19356
19357 /* Override any GCC internal prototype to avoid an error.
19358    Use char because int might match the return type of a GCC
19359    builtin and then its argument prototype would still apply.  */
19360 #ifdef __cplusplus
19361 extern "C"
19362 #endif
19363 char fchownat ();
19364 /* The GNU C library defines this for functions which it implements
19365     to always fail with ENOSYS.  Some functions are actually named
19366     something starting with __ and the normal name is an alias.  */
19367 #if defined __stub_fchownat || defined __stub___fchownat
19368 choke me
19369 #endif
19370
19371 int
19372 main ()
19373 {
19374 return fchownat ();
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386 $as_echo "$ac_try_echo") >&5
19387   (eval "$ac_link") 2>conftest.er1
19388   ac_status=$?
19389   grep -v '^ *+' conftest.er1 >conftest.err
19390   rm -f conftest.er1
19391   cat conftest.err >&5
19392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } && {
19394          test -z "$ac_c_werror_flag" ||
19395          test ! -s conftest.err
19396        } && test -s conftest$ac_exeext && {
19397          test "$cross_compiling" = yes ||
19398          $as_test_x conftest$ac_exeext
19399        }; then
19400   ac_cv_func_fchownat=yes
19401 else
19402   $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19404
19405         ac_cv_func_fchownat=no
19406 fi
19407
19408 rm -rf conftest.dSYM
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410       conftest$ac_exeext conftest.$ac_ext
19411 fi
19412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
19413 $as_echo "$ac_cv_func_fchownat" >&6; }
19414 if test "x$ac_cv_func_fchownat" = x""yes; then
19415
19416   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
19417 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
19418 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
19419   $as_echo_n "(cached) " >&6
19420 else
19421
19422      gl_dangle=conftest.dangle
19423      # Remove any remnants of a previous test.
19424      rm -f $gl_dangle
19425      # Arrange for deletion of the temporary file this test creates.
19426      ac_clean_files="$ac_clean_files $gl_dangle"
19427      ln -s conftest.no-such $gl_dangle
19428      if test "$cross_compiling" = yes; then
19429   gl_cv_func_fchownat_nofollow_works=no
19430 else
19431   cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437
19438 #include <fcntl.h>
19439 #include <unistd.h>
19440 #include <stdlib.h>
19441 #include <errno.h>
19442 #include <sys/types.h>
19443 int
19444 main ()
19445 {
19446   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
19447                     AT_SYMLINK_NOFOLLOW) != 0
19448           && errno == ENOENT);
19449 }
19450
19451 _ACEOF
19452 rm -f conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19459 $as_echo "$ac_try_echo") >&5
19460   (eval "$ac_link") 2>&5
19461   ac_status=$?
19462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469 $as_echo "$ac_try_echo") >&5
19470   (eval "$ac_try") 2>&5
19471   ac_status=$?
19472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; }; then
19474   gl_cv_func_fchownat_nofollow_works=yes
19475 else
19476   $as_echo "$as_me: program exited with status $ac_status" >&5
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480 ( exit $ac_status )
19481 gl_cv_func_fchownat_nofollow_works=no
19482 fi
19483 rm -rf conftest.dSYM
19484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19485 fi
19486
19487
19488
19489 fi
19490 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
19491 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
19492   if test $gl_cv_func_fchownat_nofollow_works = no; then
19493   REPLACE_FCHOWNAT=1
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define FCHOWNAT_NOFOLLOW_BUG 1
19497 _ACEOF
19498
19499
19500 fi
19501
19502
19503      if test $REPLACE_CHOWN = 1; then
19504        REPLACE_FCHOWNAT=1
19505      fi
19506 else
19507   HAVE_FCHOWNAT=0
19508 fi
19509
19510   if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
19511
19512
19513
19514
19515
19516
19517
19518
19519   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
19520
19521   fi
19522
19523
19524
19525
19526
19527
19528
19529     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
19530 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19531 if test "${ac_cv_gnu_library_2_1+set}" = set; then
19532   $as_echo_n "(cached) " >&6
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540
19541 #include <features.h>
19542 #ifdef __GNU_LIBRARY__
19543  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19544   Lucky GNU user
19545  #endif
19546 #endif
19547
19548 _ACEOF
19549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19550   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19551   ac_cv_gnu_library_2_1=yes
19552 else
19553   ac_cv_gnu_library_2_1=no
19554 fi
19555 rm -f conftest*
19556
19557
19558
19559 fi
19560 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
19561 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19562
19563     GLIBC21="$ac_cv_gnu_library_2_1"
19564
19565
19566
19567
19568
19569   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19570 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19571 if test "${gl_cv_func_malloc_posix+set}" = set; then
19572   $as_echo_n "(cached) " >&6
19573 else
19574
19575                         cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581
19582 int
19583 main ()
19584 {
19585 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19586              choke me
19587              #endif
19588
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19600 $as_echo "$ac_try_echo") >&5
19601   (eval "$ac_compile") 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } && {
19608          test -z "$ac_c_werror_flag" ||
19609          test ! -s conftest.err
19610        } && test -s conftest.$ac_objext; then
19611   gl_cv_func_malloc_posix=yes
19612 else
19613   $as_echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616         gl_cv_func_malloc_posix=no
19617 fi
19618
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19620
19621 fi
19622 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
19623 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19624
19625
19626
19627 for ac_header in stdlib.h
19628 do
19629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19631   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 $as_echo_n "checking for $ac_header... " >&6; }
19633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634   $as_echo_n "(cached) " >&6
19635 fi
19636 ac_res=`eval 'as_val=${'$as_ac_Header'}
19637                  $as_echo "$as_val"'`
19638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19639 $as_echo "$ac_res" >&6; }
19640 else
19641   # Is the header compilable?
19642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19643 $as_echo_n "checking $ac_header usability... " >&6; }
19644 cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 $ac_includes_default
19651 #include <$ac_header>
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661   (eval "$ac_compile") 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } && {
19668          test -z "$ac_c_werror_flag" ||
19669          test ! -s conftest.err
19670        } && test -s conftest.$ac_objext; then
19671   ac_header_compiler=yes
19672 else
19673   $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676         ac_header_compiler=no
19677 fi
19678
19679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19681 $as_echo "$ac_header_compiler" >&6; }
19682
19683 # Is the header present?
19684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19685 $as_echo_n "checking $ac_header presence... " >&6; }
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 #include <$ac_header>
19693 _ACEOF
19694 if { (ac_try="$ac_cpp conftest.$ac_ext"
19695 case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } >/dev/null && {
19708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19709          test ! -s conftest.err
19710        }; then
19711   ac_header_preproc=yes
19712 else
19713   $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716   ac_header_preproc=no
19717 fi
19718
19719 rm -f conftest.err conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721 $as_echo "$ac_header_preproc" >&6; }
19722
19723 # So?  What about this header?
19724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19725   yes:no: )
19726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19730     ac_header_preproc=yes
19731     ;;
19732   no:yes:* )
19733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19736 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19740 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745     ( cat <<\_ASBOX
19746 ## ------------------------------ ##
19747 ## Report this to bug-tar@gnu.org ##
19748 ## ------------------------------ ##
19749 _ASBOX
19750      ) | sed "s/^/$as_me: WARNING:     /" >&2
19751     ;;
19752 esac
19753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 $as_echo_n "checking for $ac_header... " >&6; }
19755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19756   $as_echo_n "(cached) " >&6
19757 else
19758   eval "$as_ac_Header=\$ac_header_preproc"
19759 fi
19760 ac_res=`eval 'as_val=${'$as_ac_Header'}
19761                  $as_echo "$as_val"'`
19762                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19763 $as_echo "$ac_res" >&6; }
19764
19765 fi
19766 as_val=`eval 'as_val=${'$as_ac_Header'}
19767                  $as_echo "$as_val"'`
19768    if test "x$as_val" = x""yes; then
19769   cat >>confdefs.h <<_ACEOF
19770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19771 _ACEOF
19772
19773 fi
19774
19775 done
19776
19777 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19778 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19779 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19780   $as_echo_n "(cached) " >&6
19781 else
19782   if test "$cross_compiling" = yes; then
19783   ac_cv_func_malloc_0_nonnull=no
19784 else
19785   cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h.  */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h.  */
19791 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19792 # include <stdlib.h>
19793 #else
19794 char *malloc ();
19795 #endif
19796
19797 int
19798 main ()
19799 {
19800 return ! malloc (0);
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 rm -f conftest$ac_exeext
19806 if { (ac_try="$ac_link"
19807 case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19812 $as_echo "$ac_try_echo") >&5
19813   (eval "$ac_link") 2>&5
19814   ac_status=$?
19815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817   { (case "(($ac_try" in
19818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819   *) ac_try_echo=$ac_try;;
19820 esac
19821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19822 $as_echo "$ac_try_echo") >&5
19823   (eval "$ac_try") 2>&5
19824   ac_status=$?
19825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   ac_cv_func_malloc_0_nonnull=yes
19828 else
19829   $as_echo "$as_me: program exited with status $ac_status" >&5
19830 $as_echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ( exit $ac_status )
19834 ac_cv_func_malloc_0_nonnull=no
19835 fi
19836 rm -rf conftest.dSYM
19837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19838 fi
19839
19840
19841 fi
19842 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19843 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19844 if test $ac_cv_func_malloc_0_nonnull = yes; then
19845   gl_cv_func_malloc_0_nonnull=1
19846 else
19847   gl_cv_func_malloc_0_nonnull=0
19848 fi
19849
19850
19851
19852 cat >>confdefs.h <<_ACEOF
19853 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19854 _ACEOF
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
19865 $as_echo_n "checking for a traditional japanese locale... " >&6; }
19866 if test "${gt_cv_locale_ja+set}" = set; then
19867   $as_echo_n "(cached) " >&6
19868 else
19869
19870     cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876
19877 #include <locale.h>
19878 #include <time.h>
19879 #if HAVE_LANGINFO_CODESET
19880 # include <langinfo.h>
19881 #endif
19882 #include <stdlib.h>
19883 #include <string.h>
19884 struct tm t;
19885 char buf[16];
19886 int main ()
19887 {
19888   const char *p;
19889   /* Check whether the given locale name is recognized by the system.  */
19890   if (setlocale (LC_ALL, "") == NULL) return 1;
19891   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19892      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19893      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19894      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19895      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19896      some unit tests fail.
19897      On MirBSD 10, when an unsupported locale is specified, setlocale()
19898      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
19899 #if HAVE_LANGINFO_CODESET
19900   {
19901     const char *cs = nl_langinfo (CODESET);
19902     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
19903         || strcmp (cs, "UTF-8") == 0)
19904       return 1;
19905   }
19906 #endif
19907 #ifdef __CYGWIN__
19908   /* On Cygwin, avoid locale names without encoding suffix, because the
19909      locale_charset() function relies on the encoding suffix.  Note that
19910      LC_ALL is set on the command line.  */
19911   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19912 #endif
19913   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
19914      on Cygwin 1.5.x.  */
19915   if (MB_CUR_MAX == 1)
19916     return 1;
19917   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19918      This excludes the UTF-8 encoding (except on MirBSD).  */
19919   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19920   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19921   for (p = buf; *p != '\0'; p++)
19922     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19923       return 1;
19924   return 0;
19925 }
19926
19927 _ACEOF
19928     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929   (eval $ac_link) 2>&5
19930   ac_status=$?
19931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } && test -s conftest$ac_exeext; then
19933       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19934       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19935       # configure script would override the LC_ALL setting. Likewise for
19936       # LC_CTYPE, which is also set at the beginning of the configure script.
19937       # Test for the AIX locale name.
19938       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19939         gt_cv_locale_ja=ja_JP
19940       else
19941         # Test for the locale name with explicit encoding suffix.
19942         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19943           gt_cv_locale_ja=ja_JP.EUC-JP
19944         else
19945           # Test for the HP-UX, OSF/1, NetBSD locale name.
19946           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19947             gt_cv_locale_ja=ja_JP.eucJP
19948           else
19949             # Test for the IRIX, FreeBSD locale name.
19950             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19951               gt_cv_locale_ja=ja_JP.EUC
19952             else
19953               # Test for the Solaris 7 locale name.
19954               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19955                 gt_cv_locale_ja=ja
19956               else
19957                 # Special test for NetBSD 1.6.
19958                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
19959                   gt_cv_locale_ja=ja_JP.eucJP
19960                 else
19961                   # None found.
19962                   gt_cv_locale_ja=none
19963                 fi
19964               fi
19965             fi
19966           fi
19967         fi
19968       fi
19969     fi
19970     rm -fr conftest*
19971
19972 fi
19973 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
19974 $as_echo "$gt_cv_locale_ja" >&6; }
19975   LOCALE_JA=$gt_cv_locale_ja
19976
19977
19978
19979
19980
19981   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
19982 $as_echo_n "checking for a transitional chinese locale... " >&6; }
19983 if test "${gt_cv_locale_zh_CN+set}" = set; then
19984   $as_echo_n "(cached) " >&6
19985 else
19986
19987     cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993
19994 #include <locale.h>
19995 #include <stdlib.h>
19996 #include <time.h>
19997 #if HAVE_LANGINFO_CODESET
19998 # include <langinfo.h>
19999 #endif
20000 #include <stdlib.h>
20001 #include <string.h>
20002 struct tm t;
20003 char buf[16];
20004 int main ()
20005 {
20006   const char *p;
20007   /* Check whether the given locale name is recognized by the system.  */
20008   if (setlocale (LC_ALL, "") == NULL) return 1;
20009   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20010      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20011      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20012      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20013      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20014      some unit tests fail.
20015      On MirBSD 10, when an unsupported locale is specified, setlocale()
20016      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
20017 #if HAVE_LANGINFO_CODESET
20018   {
20019     const char *cs = nl_langinfo (CODESET);
20020     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20021         || strcmp (cs, "UTF-8") == 0)
20022       return 1;
20023   }
20024 #endif
20025 #ifdef __CYGWIN__
20026   /* On Cygwin, avoid locale names without encoding suffix, because the
20027      locale_charset() function relies on the encoding suffix.  Note that
20028      LC_ALL is set on the command line.  */
20029   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20030 #endif
20031   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20032      This excludes the UTF-8 encoding (except on MirBSD).  */
20033   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20034   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20035   for (p = buf; *p != '\0'; p++)
20036     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20037       return 1;
20038   /* Check whether a typical GB18030 multibyte sequence is recognized as a
20039      single wide character.  This excludes the GB2312 and GBK encodings.  */
20040   if (mblen ("\203\062\332\066", 5) != 4)
20041     return 1;
20042   return 0;
20043 }
20044
20045 _ACEOF
20046     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20047   (eval $ac_link) 2>&5
20048   ac_status=$?
20049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); } && test -s conftest$ac_exeext; then
20051       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20052       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20053       # configure script would override the LC_ALL setting. Likewise for
20054       # LC_CTYPE, which is also set at the beginning of the configure script.
20055       # Test for the locale name without encoding suffix.
20056       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20057         gt_cv_locale_zh_CN=zh_CN
20058       else
20059         # Test for the locale name with explicit encoding suffix.
20060         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20061           gt_cv_locale_zh_CN=zh_CN.GB18030
20062         else
20063           # None found.
20064           gt_cv_locale_zh_CN=none
20065         fi
20066       fi
20067     else
20068       # If there was a link error, due to mblen(), the system is so old that
20069       # it certainly doesn't have a chinese locale.
20070       gt_cv_locale_zh_CN=none
20071     fi
20072     rm -fr conftest*
20073
20074 fi
20075 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
20076 $as_echo "$gt_cv_locale_zh_CN" >&6; }
20077   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
20078
20079
20080
20081
20082   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
20083 $as_echo_n "checking for a french Unicode locale... " >&6; }
20084 if test "${gt_cv_locale_fr_utf8+set}" = set; then
20085   $as_echo_n "(cached) " >&6
20086 else
20087
20088     cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094
20095 #include <locale.h>
20096 #include <time.h>
20097 #if HAVE_LANGINFO_CODESET
20098 # include <langinfo.h>
20099 #endif
20100 #include <stdlib.h>
20101 #include <string.h>
20102 struct tm t;
20103 char buf[16];
20104 int main () {
20105   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
20106      imitates locale dependent behaviour by looking at the environment
20107      variables, and all locales use the UTF-8 encoding.  */
20108 #if !(defined __BEOS__ || defined __HAIKU__)
20109   /* Check whether the given locale name is recognized by the system.  */
20110   if (setlocale (LC_ALL, "") == NULL) return 1;
20111   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20112      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20113      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20114      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20115      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20116      some unit tests fail.  */
20117 # if HAVE_LANGINFO_CODESET
20118   {
20119     const char *cs = nl_langinfo (CODESET);
20120     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
20121       return 1;
20122   }
20123 # endif
20124 # ifdef __CYGWIN__
20125   /* On Cygwin, avoid locale names without encoding suffix, because the
20126      locale_charset() function relies on the encoding suffix.  Note that
20127      LC_ALL is set on the command line.  */
20128   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20129 # endif
20130   /* Check whether in the abbreviation of the second month, the second
20131      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
20132      two bytes long, with UTF-8 encoding.  */
20133   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20134   if (strftime (buf, sizeof (buf), "%b", &t) < 4
20135       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
20136     return 1;
20137 #endif
20138   /* Check whether the decimal separator is a comma.
20139      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
20140      are nl_langinfo(RADIXCHAR) are both ".".  */
20141   if (localeconv () ->decimal_point[0] != ',') return 1;
20142   return 0;
20143 }
20144
20145 _ACEOF
20146     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147   (eval $ac_link) 2>&5
20148   ac_status=$?
20149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } && test -s conftest$ac_exeext; then
20151       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20152       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20153       # configure script would override the LC_ALL setting. Likewise for
20154       # LC_CTYPE, which is also set at the beginning of the configure script.
20155       # Test for the usual locale name.
20156       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20157         gt_cv_locale_fr_utf8=fr_FR
20158       else
20159         # Test for the locale name with explicit encoding suffix.
20160         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20161           gt_cv_locale_fr_utf8=fr_FR.UTF-8
20162         else
20163           # Test for the Solaris 7 locale name.
20164           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20165             gt_cv_locale_fr_utf8=fr.UTF-8
20166           else
20167             # None found.
20168             gt_cv_locale_fr_utf8=none
20169           fi
20170         fi
20171       fi
20172     fi
20173     rm -fr conftest*
20174
20175 fi
20176 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
20177 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
20178   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
20179
20180
20181
20182   GNULIB_MEMCHR=0;
20183   GNULIB_MEMMEM=0;
20184   GNULIB_MEMPCPY=0;
20185   GNULIB_MEMRCHR=0;
20186   GNULIB_RAWMEMCHR=0;
20187   GNULIB_STPCPY=0;
20188   GNULIB_STPNCPY=0;
20189   GNULIB_STRCHRNUL=0;
20190   GNULIB_STRDUP=0;
20191   GNULIB_STRNCAT=0;
20192   GNULIB_STRNDUP=0;
20193   GNULIB_STRNLEN=0;
20194   GNULIB_STRPBRK=0;
20195   GNULIB_STRSEP=0;
20196   GNULIB_STRSTR=0;
20197   GNULIB_STRCASESTR=0;
20198   GNULIB_STRTOK_R=0;
20199   GNULIB_MBSLEN=0;
20200   GNULIB_MBSNLEN=0;
20201   GNULIB_MBSCHR=0;
20202   GNULIB_MBSRCHR=0;
20203   GNULIB_MBSSTR=0;
20204   GNULIB_MBSCASECMP=0;
20205   GNULIB_MBSNCASECMP=0;
20206   GNULIB_MBSPCASECMP=0;
20207   GNULIB_MBSCASESTR=0;
20208   GNULIB_MBSCSPN=0;
20209   GNULIB_MBSPBRK=0;
20210   GNULIB_MBSSPN=0;
20211   GNULIB_MBSSEP=0;
20212   GNULIB_MBSTOK_R=0;
20213   GNULIB_STRERROR=0;
20214   GNULIB_STRSIGNAL=0;
20215   GNULIB_STRVERSCMP=0;
20216   HAVE_MBSLEN=0;
20217     HAVE_MEMCHR=1;
20218   HAVE_DECL_MEMMEM=1;
20219   HAVE_MEMPCPY=1;
20220   HAVE_DECL_MEMRCHR=1;
20221   HAVE_RAWMEMCHR=1;
20222   HAVE_STPCPY=1;
20223   HAVE_STPNCPY=1;
20224   HAVE_STRCHRNUL=1;
20225   HAVE_DECL_STRDUP=1;
20226   HAVE_DECL_STRNDUP=1;
20227   HAVE_DECL_STRNLEN=1;
20228   HAVE_STRPBRK=1;
20229   HAVE_STRSEP=1;
20230   HAVE_STRCASESTR=1;
20231   HAVE_DECL_STRTOK_R=1;
20232   HAVE_DECL_STRSIGNAL=1;
20233   HAVE_STRVERSCMP=1;
20234   REPLACE_MEMCHR=0;
20235   REPLACE_MEMMEM=0;
20236   REPLACE_STPNCPY=0;
20237   REPLACE_STRDUP=0;
20238   REPLACE_STRSTR=0;
20239   REPLACE_STRCASESTR=0;
20240   REPLACE_STRERROR=0;
20241   REPLACE_STRNCAT=0;
20242   REPLACE_STRNDUP=0;
20243   REPLACE_STRNLEN=0;
20244   REPLACE_STRSIGNAL=0;
20245   REPLACE_STRTOK_R=0;
20246   UNDEFINE_STRTOK_R=0;
20247
20248
20249   { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
20250 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
20251 if test "${ac_cv_func_mbrtowc+set}" = set; then
20252   $as_echo_n "(cached) " >&6
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <wchar.h>
20261 int
20262 main ()
20263 {
20264 wchar_t wc;
20265               char const s[] = "";
20266               size_t n = 1;
20267               mbstate_t state;
20268               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20280 $as_echo "$ac_try_echo") >&5
20281   (eval "$ac_link") 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } && {
20288          test -z "$ac_c_werror_flag" ||
20289          test ! -s conftest.err
20290        } && test -s conftest$ac_exeext && {
20291          test "$cross_compiling" = yes ||
20292          $as_test_x conftest$ac_exeext
20293        }; then
20294   ac_cv_func_mbrtowc=yes
20295 else
20296   $as_echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         ac_cv_func_mbrtowc=no
20300 fi
20301
20302 rm -rf conftest.dSYM
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304       conftest$ac_exeext conftest.$ac_ext
20305 fi
20306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
20307 $as_echo "$ac_cv_func_mbrtowc" >&6; }
20308   if test $ac_cv_func_mbrtowc = yes; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_MBRTOWC 1
20312 _ACEOF
20313
20314   fi
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20330   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20331   # irrelevant for anonymous mappings.
20332   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
20333 $as_echo_n "checking for mmap... " >&6; }
20334 if test "${ac_cv_func_mmap+set}" = set; then
20335   $as_echo_n "(cached) " >&6
20336 else
20337   cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20345 #define mmap innocuous_mmap
20346
20347 /* System header to define __stub macros and hopefully few prototypes,
20348     which can conflict with char mmap (); below.
20349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350     <limits.h> exists even on freestanding compilers.  */
20351
20352 #ifdef __STDC__
20353 # include <limits.h>
20354 #else
20355 # include <assert.h>
20356 #endif
20357
20358 #undef mmap
20359
20360 /* Override any GCC internal prototype to avoid an error.
20361    Use char because int might match the return type of a GCC
20362    builtin and then its argument prototype would still apply.  */
20363 #ifdef __cplusplus
20364 extern "C"
20365 #endif
20366 char mmap ();
20367 /* The GNU C library defines this for functions which it implements
20368     to always fail with ENOSYS.  Some functions are actually named
20369     something starting with __ and the normal name is an alias.  */
20370 #if defined __stub_mmap || defined __stub___mmap
20371 choke me
20372 #endif
20373
20374 int
20375 main ()
20376 {
20377 return mmap ();
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20389 $as_echo "$ac_try_echo") >&5
20390   (eval "$ac_link") 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } && {
20397          test -z "$ac_c_werror_flag" ||
20398          test ! -s conftest.err
20399        } && test -s conftest$ac_exeext && {
20400          test "$cross_compiling" = yes ||
20401          $as_test_x conftest$ac_exeext
20402        }; then
20403   ac_cv_func_mmap=yes
20404 else
20405   $as_echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408         ac_cv_func_mmap=no
20409 fi
20410
20411 rm -rf conftest.dSYM
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413       conftest$ac_exeext conftest.$ac_ext
20414 fi
20415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20416 $as_echo "$ac_cv_func_mmap" >&6; }
20417 if test "x$ac_cv_func_mmap" = x""yes; then
20418   gl_have_mmap=yes
20419 else
20420   gl_have_mmap=no
20421 fi
20422
20423
20424   # Try to allow MAP_ANONYMOUS.
20425   gl_have_mmap_anonymous=no
20426   if test $gl_have_mmap = yes; then
20427     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
20428 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
20429     cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435
20436 #include <sys/mman.h>
20437 #ifdef MAP_ANONYMOUS
20438     I cant identify this map.
20439 #endif
20440
20441 _ACEOF
20442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20443   $EGREP "I cant identify this map." >/dev/null 2>&1; then
20444   gl_have_mmap_anonymous=yes
20445 fi
20446 rm -f conftest*
20447
20448     if test $gl_have_mmap_anonymous != yes; then
20449       cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455
20456 #include <sys/mman.h>
20457 #ifdef MAP_ANON
20458     I cant identify this map.
20459 #endif
20460
20461 _ACEOF
20462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463   $EGREP "I cant identify this map." >/dev/null 2>&1; then
20464
20465 cat >>confdefs.h <<\_ACEOF
20466 #define MAP_ANONYMOUS MAP_ANON
20467 _ACEOF
20468
20469          gl_have_mmap_anonymous=yes
20470 fi
20471 rm -f conftest*
20472
20473     fi
20474     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
20475 $as_echo "$gl_have_mmap_anonymous" >&6; }
20476     if test $gl_have_mmap_anonymous = yes; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_MAP_ANONYMOUS 1
20480 _ACEOF
20481
20482     fi
20483   fi
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505   if test $ac_cv_func_memchr = yes; then
20506     # Detect platform-specific bugs in some versions of glibc:
20507     # memchr should not dereference anything with length 0
20508     #   http://bugzilla.redhat.com/499689
20509     # memchr should not dereference overestimated length after a match
20510     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20511     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
20512     # Assume that memchr works on platforms that lack mprotect.
20513     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
20514 $as_echo_n "checking whether memchr works... " >&6; }
20515 if test "${gl_cv_func_memchr_works+set}" = set; then
20516   $as_echo_n "(cached) " >&6
20517 else
20518   if test "$cross_compiling" = yes; then
20519          gl_cv_func_memchr_works="guessing no"
20520 else
20521   cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527
20528 #include <string.h>
20529 #if HAVE_SYS_MMAN_H
20530 # include <fcntl.h>
20531 # include <unistd.h>
20532 # include <sys/types.h>
20533 # include <sys/mman.h>
20534 # ifndef MAP_FILE
20535 #  define MAP_FILE 0
20536 # endif
20537 #endif
20538
20539 int
20540 main ()
20541 {
20542
20543   char *fence = NULL;
20544 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20545 # if HAVE_MAP_ANONYMOUS
20546   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20547   const int fd = -1;
20548 # else /* !HAVE_MAP_ANONYMOUS */
20549   const int flags = MAP_FILE | MAP_PRIVATE;
20550   int fd = open ("/dev/zero", O_RDONLY, 0666);
20551   if (fd >= 0)
20552 # endif
20553     {
20554       int pagesize = getpagesize ();
20555       char *two_pages =
20556         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20557                        flags, fd, 0);
20558       if (two_pages != (char *)(-1)
20559           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20560         fence = two_pages + pagesize;
20561     }
20562 #endif
20563   if (fence)
20564     {
20565       if (memchr (fence, 0, 0))
20566         return 1;
20567       strcpy (fence - 9, "12345678");
20568       if (memchr (fence - 9, 0, 79) != fence - 1)
20569         return 2;
20570       if (memchr (fence - 1, 0, 3) != fence - 1)
20571         return 3;
20572     }
20573   return 0;
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20586 $as_echo "$ac_try_echo") >&5
20587   (eval "$ac_link") 2>&5
20588   ac_status=$?
20589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20591   { (case "(($ac_try" in
20592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593   *) ac_try_echo=$ac_try;;
20594 esac
20595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20596 $as_echo "$ac_try_echo") >&5
20597   (eval "$ac_try") 2>&5
20598   ac_status=$?
20599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; }; then
20601   gl_cv_func_memchr_works=yes
20602 else
20603   $as_echo "$as_me: program exited with status $ac_status" >&5
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 ( exit $ac_status )
20608 gl_cv_func_memchr_works=no
20609 fi
20610 rm -rf conftest.dSYM
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20612 fi
20613
20614
20615 fi
20616 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
20617 $as_echo "$gl_cv_func_memchr_works" >&6; }
20618     if test "$gl_cv_func_memchr_works" != yes; then
20619       REPLACE_MEMCHR=1
20620     fi
20621   else
20622     HAVE_MEMCHR=0
20623   fi
20624   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20625
20626
20627
20628
20629
20630
20631
20632
20633   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20634
20635
20636
20637 for ac_header in bp-sym.h
20638 do
20639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20642 $as_echo_n "checking for $ac_header... " >&6; }
20643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20644   $as_echo_n "(cached) " >&6
20645 fi
20646 ac_res=`eval 'as_val=${'$as_ac_Header'}
20647                  $as_echo "$as_val"'`
20648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20649 $as_echo "$ac_res" >&6; }
20650 else
20651   # Is the header compilable?
20652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20653 $as_echo_n "checking $ac_header usability... " >&6; }
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 $ac_includes_default
20661 #include <$ac_header>
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20670 $as_echo "$ac_try_echo") >&5
20671   (eval "$ac_compile") 2>conftest.er1
20672   ac_status=$?
20673   grep -v '^ *+' conftest.er1 >conftest.err
20674   rm -f conftest.er1
20675   cat conftest.err >&5
20676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } && {
20678          test -z "$ac_c_werror_flag" ||
20679          test ! -s conftest.err
20680        } && test -s conftest.$ac_objext; then
20681   ac_header_compiler=yes
20682 else
20683   $as_echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686         ac_header_compiler=no
20687 fi
20688
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20691 $as_echo "$ac_header_compiler" >&6; }
20692
20693 # Is the header present?
20694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20695 $as_echo_n "checking $ac_header presence... " >&6; }
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 #include <$ac_header>
20703 _ACEOF
20704 if { (ac_try="$ac_cpp conftest.$ac_ext"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } >/dev/null && {
20718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        }; then
20721   ac_header_preproc=yes
20722 else
20723   $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726   ac_header_preproc=no
20727 fi
20728
20729 rm -f conftest.err conftest.$ac_ext
20730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 $as_echo "$ac_header_preproc" >&6; }
20732
20733 # So?  What about this header?
20734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20735   yes:no: )
20736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20740     ac_header_preproc=yes
20741     ;;
20742   no:yes:* )
20743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20746 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20750 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20755     ( cat <<\_ASBOX
20756 ## ------------------------------ ##
20757 ## Report this to bug-tar@gnu.org ##
20758 ## ------------------------------ ##
20759 _ASBOX
20760      ) | sed "s/^/$as_me: WARNING:     /" >&2
20761     ;;
20762 esac
20763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20764 $as_echo_n "checking for $ac_header... " >&6; }
20765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20766   $as_echo_n "(cached) " >&6
20767 else
20768   eval "$as_ac_Header=\$ac_header_preproc"
20769 fi
20770 ac_res=`eval 'as_val=${'$as_ac_Header'}
20771                  $as_echo "$as_val"'`
20772                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20773 $as_echo "$ac_res" >&6; }
20774
20775 fi
20776 as_val=`eval 'as_val=${'$as_ac_Header'}
20777                  $as_echo "$as_val"'`
20778    if test "x$as_val" = x""yes; then
20779   cat >>confdefs.h <<_ACEOF
20780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20781 _ACEOF
20782
20783 fi
20784
20785 done
20786
20787
20788   fi
20789
20790 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
20791 $as_echo_n "checking whether memrchr is declared... " >&6; }
20792 if test "${ac_cv_have_decl_memrchr+set}" = set; then
20793   $as_echo_n "(cached) " >&6
20794 else
20795   cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 $ac_includes_default
20802 int
20803 main ()
20804 {
20805 #ifndef memrchr
20806   (void) memrchr;
20807 #endif
20808
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820 $as_echo "$ac_try_echo") >&5
20821   (eval "$ac_compile") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && {
20828          test -z "$ac_c_werror_flag" ||
20829          test ! -s conftest.err
20830        } && test -s conftest.$ac_objext; then
20831   ac_cv_have_decl_memrchr=yes
20832 else
20833   $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836         ac_cv_have_decl_memrchr=no
20837 fi
20838
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 fi
20841 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20842 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
20843 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
20844
20845 cat >>confdefs.h <<_ACEOF
20846 #define HAVE_DECL_MEMRCHR 1
20847 _ACEOF
20848
20849
20850 else
20851   cat >>confdefs.h <<_ACEOF
20852 #define HAVE_DECL_MEMRCHR 0
20853 _ACEOF
20854
20855
20856 fi
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868   GNULIB_MKTIME=0;
20869   GNULIB_NANOSLEEP=0;
20870   GNULIB_STRPTIME=0;
20871   GNULIB_TIMEGM=0;
20872   GNULIB_TIME_R=0;
20873     HAVE_LOCALTIME_R=1;
20874   HAVE_NANOSLEEP=1;
20875   HAVE_STRPTIME=1;
20876   HAVE_TIMEGM=1;
20877         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20878   REPLACE_MKTIME=GNULIB_PORTCHECK;
20879   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20880   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20881
20882
20883
20884
20885
20886
20887   # parse-datetime.y works with bison only.
20888   : ${YACC='bison -y'}
20889
20890
20891   { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
20892 $as_echo_n "checking for compound literals... " >&6; }
20893 if test "${gl_cv_compound_literals+set}" = set; then
20894   $as_echo_n "(cached) " >&6
20895 else
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 struct s { int i, j; };
20903 int
20904 main ()
20905 {
20906 struct s t = (struct s) { 3, 4 };
20907         if (t.i != 0) return 0;
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20919 $as_echo "$ac_try_echo") >&5
20920   (eval "$ac_compile") 2>conftest.er1
20921   ac_status=$?
20922   grep -v '^ *+' conftest.er1 >conftest.err
20923   rm -f conftest.er1
20924   cat conftest.err >&5
20925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); } && {
20927          test -z "$ac_c_werror_flag" ||
20928          test ! -s conftest.err
20929        } && test -s conftest.$ac_objext; then
20930   gl_cv_compound_literals=yes
20931 else
20932   $as_echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         gl_cv_compound_literals=no
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20939 fi
20940 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
20941 $as_echo "$gl_cv_compound_literals" >&6; }
20942   if test $gl_cv_compound_literals = yes; then
20943
20944 cat >>confdefs.h <<\_ACEOF
20945 #define HAVE_COMPOUND_LITERALS 1
20946 _ACEOF
20947
20948   fi
20949
20950 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20952 if test "${ac_cv_struct_tm+set}" = set; then
20953   $as_echo_n "(cached) " >&6
20954 else
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 #include <sys/types.h>
20962 #include <time.h>
20963
20964 int
20965 main ()
20966 {
20967 struct tm tm;
20968                                      int *p = &tm.tm_sec;
20969                                      return !p;
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (ac_try="$ac_compile"
20976 case "(($ac_try" in
20977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978   *) ac_try_echo=$ac_try;;
20979 esac
20980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20981 $as_echo "$ac_try_echo") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && {
20989          test -z "$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        } && test -s conftest.$ac_objext; then
20992   ac_cv_struct_tm=time.h
20993 else
20994   $as_echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997         ac_cv_struct_tm=sys/time.h
20998 fi
20999
21000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 fi
21002 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21003 $as_echo "$ac_cv_struct_tm" >&6; }
21004 if test $ac_cv_struct_tm = sys/time.h; then
21005
21006 cat >>confdefs.h <<\_ACEOF
21007 #define TM_IN_SYS_TIME 1
21008 _ACEOF
21009
21010 fi
21011
21012
21013  { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21014 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
21015 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21016   $as_echo_n "(cached) " >&6
21017 else
21018   cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024 #include <time.h>
21025
21026 int
21027 main ()
21028 {
21029 static struct tm ac_aggr;
21030 if (ac_aggr.tm_gmtoff)
21031 return 0;
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21043 $as_echo "$ac_try_echo") >&5
21044   (eval "$ac_compile") 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } && {
21051          test -z "$ac_c_werror_flag" ||
21052          test ! -s conftest.err
21053        } && test -s conftest.$ac_objext; then
21054   ac_cv_member_struct_tm_tm_gmtoff=yes
21055 else
21056   $as_echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059         cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 #include <time.h>
21066
21067 int
21068 main ()
21069 {
21070 static struct tm ac_aggr;
21071 if (sizeof ac_aggr.tm_gmtoff)
21072 return 0;
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (ac_try="$ac_compile"
21079 case "(($ac_try" in
21080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081   *) ac_try_echo=$ac_try;;
21082 esac
21083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21084 $as_echo "$ac_try_echo") >&5
21085   (eval "$ac_compile") 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } && {
21092          test -z "$ac_c_werror_flag" ||
21093          test ! -s conftest.err
21094        } && test -s conftest.$ac_objext; then
21095   ac_cv_member_struct_tm_tm_gmtoff=yes
21096 else
21097   $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100         ac_cv_member_struct_tm_tm_gmtoff=no
21101 fi
21102
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 fi
21105
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 fi
21108 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21109 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21110 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
21111
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_TM_GMTOFF 1
21114 _ACEOF
21115
21116 fi
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137   if test $ac_cv_func_setenv = no; then
21138     HAVE_SETENV=0
21139   else
21140     { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
21141 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21142 if test "${gl_cv_func_setenv_works+set}" = set; then
21143   $as_echo_n "(cached) " >&6
21144 else
21145   if test "$cross_compiling" = yes; then
21146   gl_cv_func_setenv_works="guessing no"
21147 else
21148   cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154
21155        #include <stdlib.h>
21156        #include <errno.h>
21157        #include <string.h>
21158
21159 int
21160 main ()
21161 {
21162
21163        if (setenv ("", "", 0) != -1) return 1;
21164        if (errno != EINVAL) return 2;
21165        if (setenv ("a", "=", 1) != 0) return 3;
21166        if (strcmp (getenv ("a"), "=") != 0) return 4;
21167
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21179 $as_echo "$ac_try_echo") >&5
21180   (eval "$ac_link") 2>&5
21181   ac_status=$?
21182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21184   { (case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21189 $as_echo "$ac_try_echo") >&5
21190   (eval "$ac_try") 2>&5
21191   ac_status=$?
21192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; }; then
21194   gl_cv_func_setenv_works=yes
21195 else
21196   $as_echo "$as_me: program exited with status $ac_status" >&5
21197 $as_echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200 ( exit $ac_status )
21201 gl_cv_func_setenv_works=no
21202 fi
21203 rm -rf conftest.dSYM
21204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21205 fi
21206
21207
21208 fi
21209 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
21210 $as_echo "$gl_cv_func_setenv_works" >&6; }
21211     if test "$gl_cv_func_setenv_works" != yes; then
21212       REPLACE_SETENV=1
21213
21214
21215
21216
21217
21218
21219
21220
21221   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21222
21223     fi
21224   fi
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235 for ac_header in search.h
21236 do
21237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21240 $as_echo_n "checking for $ac_header... " >&6; }
21241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21242   $as_echo_n "(cached) " >&6
21243 fi
21244 ac_res=`eval 'as_val=${'$as_ac_Header'}
21245                  $as_echo "$as_val"'`
21246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21247 $as_echo "$ac_res" >&6; }
21248 else
21249   # Is the header compilable?
21250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21251 $as_echo_n "checking $ac_header usability... " >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258 $ac_includes_default
21259 #include <$ac_header>
21260 _ACEOF
21261 rm -f conftest.$ac_objext
21262 if { (ac_try="$ac_compile"
21263 case "(($ac_try" in
21264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265   *) ac_try_echo=$ac_try;;
21266 esac
21267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21268 $as_echo "$ac_try_echo") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_header_compiler=yes
21280 else
21281   $as_echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284         ac_header_compiler=no
21285 fi
21286
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21289 $as_echo "$ac_header_compiler" >&6; }
21290
21291 # Is the header present?
21292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21293 $as_echo_n "checking $ac_header presence... " >&6; }
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h.  */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h.  */
21300 #include <$ac_header>
21301 _ACEOF
21302 if { (ac_try="$ac_cpp conftest.$ac_ext"
21303 case "(($ac_try" in
21304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305   *) ac_try_echo=$ac_try;;
21306 esac
21307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21308 $as_echo "$ac_try_echo") >&5
21309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21310   ac_status=$?
21311   grep -v '^ *+' conftest.er1 >conftest.err
21312   rm -f conftest.er1
21313   cat conftest.err >&5
21314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } >/dev/null && {
21316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317          test ! -s conftest.err
21318        }; then
21319   ac_header_preproc=yes
21320 else
21321   $as_echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324   ac_header_preproc=no
21325 fi
21326
21327 rm -f conftest.err conftest.$ac_ext
21328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 $as_echo "$ac_header_preproc" >&6; }
21330
21331 # So?  What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21333   yes:no: )
21334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21338     ac_header_preproc=yes
21339     ;;
21340   no:yes:* )
21341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21344 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21348 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21353     ( cat <<\_ASBOX
21354 ## ------------------------------ ##
21355 ## Report this to bug-tar@gnu.org ##
21356 ## ------------------------------ ##
21357 _ASBOX
21358      ) | sed "s/^/$as_me: WARNING:     /" >&2
21359     ;;
21360 esac
21361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 $as_echo_n "checking for $ac_header... " >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364   $as_echo_n "(cached) " >&6
21365 else
21366   eval "$as_ac_Header=\$ac_header_preproc"
21367 fi
21368 ac_res=`eval 'as_val=${'$as_ac_Header'}
21369                  $as_echo "$as_val"'`
21370                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21371 $as_echo "$ac_res" >&6; }
21372
21373 fi
21374 as_val=`eval 'as_val=${'$as_ac_Header'}
21375                  $as_echo "$as_val"'`
21376    if test "x$as_val" = x""yes; then
21377   cat >>confdefs.h <<_ACEOF
21378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379 _ACEOF
21380
21381 fi
21382
21383 done
21384
21385
21386 for ac_func in tsearch
21387 do
21388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21390 $as_echo_n "checking for $ac_func... " >&6; }
21391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21392   $as_echo_n "(cached) " >&6
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21402 #define $ac_func innocuous_$ac_func
21403
21404 /* System header to define __stub macros and hopefully few prototypes,
21405     which can conflict with char $ac_func (); below.
21406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21407     <limits.h> exists even on freestanding compilers.  */
21408
21409 #ifdef __STDC__
21410 # include <limits.h>
21411 #else
21412 # include <assert.h>
21413 #endif
21414
21415 #undef $ac_func
21416
21417 /* Override any GCC internal prototype to avoid an error.
21418    Use char because int might match the return type of a GCC
21419    builtin and then its argument prototype would still apply.  */
21420 #ifdef __cplusplus
21421 extern "C"
21422 #endif
21423 char $ac_func ();
21424 /* The GNU C library defines this for functions which it implements
21425     to always fail with ENOSYS.  Some functions are actually named
21426     something starting with __ and the normal name is an alias.  */
21427 #if defined __stub_$ac_func || defined __stub___$ac_func
21428 choke me
21429 #endif
21430
21431 int
21432 main ()
21433 {
21434 return $ac_func ();
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21446 $as_echo "$ac_try_echo") >&5
21447   (eval "$ac_link") 2>conftest.er1
21448   ac_status=$?
21449   grep -v '^ *+' conftest.er1 >conftest.err
21450   rm -f conftest.er1
21451   cat conftest.err >&5
21452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); } && {
21454          test -z "$ac_c_werror_flag" ||
21455          test ! -s conftest.err
21456        } && test -s conftest$ac_exeext && {
21457          test "$cross_compiling" = yes ||
21458          $as_test_x conftest$ac_exeext
21459        }; then
21460   eval "$as_ac_var=yes"
21461 else
21462   $as_echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465         eval "$as_ac_var=no"
21466 fi
21467
21468 rm -rf conftest.dSYM
21469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21470       conftest$ac_exeext conftest.$ac_ext
21471 fi
21472 ac_res=`eval 'as_val=${'$as_ac_var'}
21473                  $as_echo "$as_val"'`
21474                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21475 $as_echo "$ac_res" >&6; }
21476 as_val=`eval 'as_val=${'$as_ac_var'}
21477                  $as_echo "$as_val"'`
21478    if test "x$as_val" = x""yes; then
21479   cat >>confdefs.h <<_ACEOF
21480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484 done
21485
21486
21487
21488
21489
21490 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21491 $as_echo_n "checking whether snprintf is declared... " >&6; }
21492 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21493   $as_echo_n "(cached) " >&6
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 $ac_includes_default
21502 int
21503 main ()
21504 {
21505 #ifndef snprintf
21506   (void) snprintf;
21507 #endif
21508
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext
21514 if { (ac_try="$ac_compile"
21515 case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520 $as_echo "$ac_try_echo") >&5
21521   (eval "$ac_compile") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && {
21528          test -z "$ac_c_werror_flag" ||
21529          test ! -s conftest.err
21530        } && test -s conftest.$ac_objext; then
21531   ac_cv_have_decl_snprintf=yes
21532 else
21533   $as_echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_cv_have_decl_snprintf=no
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 fi
21541 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21542 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21543 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21544
21545 cat >>confdefs.h <<_ACEOF
21546 #define HAVE_DECL_SNPRINTF 1
21547 _ACEOF
21548
21549
21550 else
21551   cat >>confdefs.h <<_ACEOF
21552 #define HAVE_DECL_SNPRINTF 0
21553 _ACEOF
21554
21555
21556 fi
21557
21558
21559
21560
21561
21562     REPLACE_NULL=0;
21563   HAVE_WCHAR_T=1;
21564   STDDEF_H='';
21565
21566
21567   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
21568 $as_echo_n "checking for wchar_t... " >&6; }
21569 if test "${gt_cv_c_wchar_t+set}" = set; then
21570   $as_echo_n "(cached) " >&6
21571 else
21572   cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578 #include <stddef.h>
21579             wchar_t foo = (wchar_t)'\0';
21580 int
21581 main ()
21582 {
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21595 $as_echo "$ac_try_echo") >&5
21596   (eval "$ac_compile") 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && {
21603          test -z "$ac_c_werror_flag" ||
21604          test ! -s conftest.err
21605        } && test -s conftest.$ac_objext; then
21606   gt_cv_c_wchar_t=yes
21607 else
21608   $as_echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611         gt_cv_c_wchar_t=no
21612 fi
21613
21614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 fi
21616 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21617 $as_echo "$gt_cv_c_wchar_t" >&6; }
21618   if test $gt_cv_c_wchar_t = yes; then
21619
21620 cat >>confdefs.h <<\_ACEOF
21621 #define HAVE_WCHAR_T 1
21622 _ACEOF
21623
21624   fi
21625
21626
21627
21628
21629         { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
21630 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
21631 if test "${gl_cv_prog_as_underscore+set}" = set; then
21632   $as_echo_n "(cached) " >&6
21633 else
21634   cat > conftest.c <<EOF
21635 #ifdef __cplusplus
21636 extern "C" int foo (void);
21637 #endif
21638 int foo(void) { return 0; }
21639 EOF
21640      # Look for the assembly language name in the .s file.
21641      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; } >/dev/null 2>&1
21647      if grep _foo conftest.s >/dev/null ; then
21648        gl_cv_prog_as_underscore=yes
21649      else
21650        gl_cv_prog_as_underscore=no
21651      fi
21652      rm -f conftest*
21653
21654 fi
21655 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
21656 $as_echo "$gl_cv_prog_as_underscore" >&6; }
21657   if test $gl_cv_prog_as_underscore = yes; then
21658     USER_LABEL_PREFIX=_
21659   else
21660     USER_LABEL_PREFIX=
21661   fi
21662
21663 cat >>confdefs.h <<_ACEOF
21664 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
21665 _ACEOF
21666
21667   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
21668
21669
21670
21671
21672
21673
21674
21675     HAVE_STRCASECMP=1;
21676   HAVE_DECL_STRNCASECMP=1;
21677
21678
21679
21680 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
21681 $as_echo_n "checking whether strdup is declared... " >&6; }
21682 if test "${ac_cv_have_decl_strdup+set}" = set; then
21683   $as_echo_n "(cached) " >&6
21684 else
21685   cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691 $ac_includes_default
21692 int
21693 main ()
21694 {
21695 #ifndef strdup
21696   (void) strdup;
21697 #endif
21698
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21710 $as_echo "$ac_try_echo") >&5
21711   (eval "$ac_compile") 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } && {
21718          test -z "$ac_c_werror_flag" ||
21719          test ! -s conftest.err
21720        } && test -s conftest.$ac_objext; then
21721   ac_cv_have_decl_strdup=yes
21722 else
21723   $as_echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726         ac_cv_have_decl_strdup=no
21727 fi
21728
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 fi
21731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
21732 $as_echo "$ac_cv_have_decl_strdup" >&6; }
21733 if test "x$ac_cv_have_decl_strdup" = x""yes; then
21734
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_DECL_STRDUP 1
21737 _ACEOF
21738
21739
21740 else
21741   cat >>confdefs.h <<_ACEOF
21742 #define HAVE_DECL_STRDUP 0
21743 _ACEOF
21744
21745
21746 fi
21747
21748
21749
21750
21751
21752
21753
21754   if test -z "$ERRNO_H"; then
21755     { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
21756 $as_echo_n "checking for working strerror function... " >&6; }
21757 if test "${gl_cv_func_working_strerror+set}" = set; then
21758   $as_echo_n "(cached) " >&6
21759 else
21760   if test "$cross_compiling" = yes; then
21761            cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 #include <string.h>
21768
21769 int
21770 main ()
21771 {
21772 return !*strerror (-2);
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785   (eval "$ac_compile") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } && {
21792          test -z "$ac_c_werror_flag" ||
21793          test ! -s conftest.err
21794        } && test -s conftest.$ac_objext; then
21795   gl_cv_func_working_strerror=yes
21796 else
21797   $as_echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         gl_cv_func_working_strerror=no
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804
21805 else
21806   cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h.  */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h.  */
21812 #include <string.h>
21813
21814 int
21815 main ()
21816 {
21817 return !*strerror (-2);
21818   ;
21819   return 0;
21820 }
21821 _ACEOF
21822 rm -f conftest$ac_exeext
21823 if { (ac_try="$ac_link"
21824 case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21829 $as_echo "$ac_try_echo") >&5
21830   (eval "$ac_link") 2>&5
21831   ac_status=$?
21832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834   { (case "(($ac_try" in
21835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836   *) ac_try_echo=$ac_try;;
21837 esac
21838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840   (eval "$ac_try") 2>&5
21841   ac_status=$?
21842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; }; then
21844   gl_cv_func_working_strerror=yes
21845 else
21846   $as_echo "$as_me: program exited with status $ac_status" >&5
21847 $as_echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ( exit $ac_status )
21851 gl_cv_func_working_strerror=no
21852 fi
21853 rm -rf conftest.dSYM
21854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21855 fi
21856
21857
21858
21859 fi
21860 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
21861 $as_echo "$gl_cv_func_working_strerror" >&6; }
21862     if test $gl_cv_func_working_strerror = no; then
21863                   REPLACE_STRERROR=1
21864     fi
21865   else
21866             REPLACE_STRERROR=1
21867   fi
21868   if test $REPLACE_STRERROR = 1; then
21869
21870   { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
21871 $as_echo_n "checking whether strerror is declared... " >&6; }
21872 if test "${ac_cv_have_decl_strerror+set}" = set; then
21873   $as_echo_n "(cached) " >&6
21874 else
21875   cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 $ac_includes_default
21882 int
21883 main ()
21884 {
21885 #ifndef strerror
21886   (void) strerror;
21887 #endif
21888
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21900 $as_echo "$ac_try_echo") >&5
21901   (eval "$ac_compile") 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } && {
21908          test -z "$ac_c_werror_flag" ||
21909          test ! -s conftest.err
21910        } && test -s conftest.$ac_objext; then
21911   ac_cv_have_decl_strerror=yes
21912 else
21913   $as_echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916         ac_cv_have_decl_strerror=no
21917 fi
21918
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920 fi
21921 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
21922 $as_echo "$ac_cv_have_decl_strerror" >&6; }
21923 if test "x$ac_cv_have_decl_strerror" = x""yes; then
21924
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_DECL_STRERROR 1
21927 _ACEOF
21928
21929
21930 else
21931   cat >>confdefs.h <<_ACEOF
21932 #define HAVE_DECL_STRERROR 0
21933 _ACEOF
21934
21935
21936 fi
21937
21938
21939
21940
21941
21942
21943
21944
21945   if test $ac_cv_header_sys_socket_h != yes; then
21946
21947 for ac_header in winsock2.h
21948 do
21949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21951   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21952 $as_echo_n "checking for $ac_header... " >&6; }
21953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21954   $as_echo_n "(cached) " >&6
21955 fi
21956 ac_res=`eval 'as_val=${'$as_ac_Header'}
21957                  $as_echo "$as_val"'`
21958                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21959 $as_echo "$ac_res" >&6; }
21960 else
21961   # Is the header compilable?
21962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21963 $as_echo_n "checking $ac_header usability... " >&6; }
21964 cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970 $ac_includes_default
21971 #include <$ac_header>
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21980 $as_echo "$ac_try_echo") >&5
21981   (eval "$ac_compile") 2>conftest.er1
21982   ac_status=$?
21983   grep -v '^ *+' conftest.er1 >conftest.err
21984   rm -f conftest.er1
21985   cat conftest.err >&5
21986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); } && {
21988          test -z "$ac_c_werror_flag" ||
21989          test ! -s conftest.err
21990        } && test -s conftest.$ac_objext; then
21991   ac_header_compiler=yes
21992 else
21993   $as_echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996         ac_header_compiler=no
21997 fi
21998
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 $as_echo "$ac_header_compiler" >&6; }
22002
22003 # Is the header present?
22004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 $as_echo_n "checking $ac_header presence... " >&6; }
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <$ac_header>
22013 _ACEOF
22014 if { (ac_try="$ac_cpp conftest.$ac_ext"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22020 $as_echo "$ac_try_echo") >&5
22021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } >/dev/null && {
22028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        }; then
22031   ac_header_preproc=yes
22032 else
22033   $as_echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036   ac_header_preproc=no
22037 fi
22038
22039 rm -f conftest.err conftest.$ac_ext
22040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 $as_echo "$ac_header_preproc" >&6; }
22042
22043 # So?  What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22045   yes:no: )
22046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050     ac_header_preproc=yes
22051     ;;
22052   no:yes:* )
22053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22056 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22060 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22065     ( cat <<\_ASBOX
22066 ## ------------------------------ ##
22067 ## Report this to bug-tar@gnu.org ##
22068 ## ------------------------------ ##
22069 _ASBOX
22070      ) | sed "s/^/$as_me: WARNING:     /" >&2
22071     ;;
22072 esac
22073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 $as_echo_n "checking for $ac_header... " >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076   $as_echo_n "(cached) " >&6
22077 else
22078   eval "$as_ac_Header=\$ac_header_preproc"
22079 fi
22080 ac_res=`eval 'as_val=${'$as_ac_Header'}
22081                  $as_echo "$as_val"'`
22082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22083 $as_echo "$ac_res" >&6; }
22084
22085 fi
22086 as_val=`eval 'as_val=${'$as_ac_Header'}
22087                  $as_echo "$as_val"'`
22088    if test "x$as_val" = x""yes; then
22089   cat >>confdefs.h <<_ACEOF
22090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22091 _ACEOF
22092
22093 fi
22094
22095 done
22096
22097   fi
22098
22099   fi
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115      if test $gl_cv_have_include_next = yes; then
22116        gl_cv_next_string_h='<'string.h'>'
22117      else
22118        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
22119 $as_echo_n "checking absolute name of <string.h>... " >&6; }
22120 if test "${gl_cv_next_string_h+set}" = set; then
22121   $as_echo_n "(cached) " >&6
22122 else
22123
22124           if test $ac_cv_header_string_h = yes; then
22125             cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 #include <string.h>
22132
22133 _ACEOF
22134                                                                                                 case "$host_os" in
22135               aix*) gl_absname_cpp="$ac_cpp -C" ;;
22136               *)    gl_absname_cpp="$ac_cpp" ;;
22137             esac
22138                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22139                sed -n '\#/string.h#{
22140                  s#.*"\(.*/string.h\)".*#\1#
22141                  s#^/[^/]#//&#
22142                  p
22143                  q
22144                }'`'"'
22145           else
22146             gl_cv_next_string_h='<'string.h'>'
22147           fi
22148
22149 fi
22150 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
22151 $as_echo "$gl_cv_next_string_h" >&6; }
22152      fi
22153      NEXT_STRING_H=$gl_cv_next_string_h
22154
22155      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22156        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22157        gl_next_as_first_directive='<'string.h'>'
22158      else
22159        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22160        gl_next_as_first_directive=$gl_cv_next_string_h
22161      fi
22162      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
22186     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22187     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
22188 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22189 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
22190   $as_echo_n "(cached) " >&6
22191 else
22192   cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 #include <string.h>
22199
22200 int
22201 main ()
22202 {
22203 #undef $gl_func
22204   (void) $gl_func;
22205   ;
22206   return 0;
22207 }
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213   *) ac_try_echo=$ac_try;;
22214 esac
22215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22216 $as_echo "$ac_try_echo") >&5
22217   (eval "$ac_compile") 2>conftest.er1
22218   ac_status=$?
22219   grep -v '^ *+' conftest.er1 >conftest.err
22220   rm -f conftest.er1
22221   cat conftest.err >&5
22222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } && {
22224          test -z "$ac_c_werror_flag" ||
22225          test ! -s conftest.err
22226        } && test -s conftest.$ac_objext; then
22227   eval "$as_gl_Symbol=yes"
22228 else
22229   $as_echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22231
22232         eval "$as_gl_Symbol=no"
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 fi
22237 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
22238                  $as_echo "$as_val"'`
22239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22240 $as_echo "$ac_res" >&6; }
22241      as_val=`eval 'as_val=${'$as_gl_Symbol'}
22242                  $as_echo "$as_val"'`
22243    if test "x$as_val" = x""yes; then
22244   cat >>confdefs.h <<_ACEOF
22245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22246 _ACEOF
22247
22248                      eval ac_cv_have_decl_$gl_func=yes
22249 fi
22250
22251       done
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269      if test $gl_cv_have_include_next = yes; then
22270        gl_cv_next_strings_h='<'strings.h'>'
22271      else
22272        { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
22273 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
22274 if test "${gl_cv_next_strings_h+set}" = set; then
22275   $as_echo_n "(cached) " >&6
22276 else
22277
22278           if test $ac_cv_header_strings_h = yes; then
22279             cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h.  */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h.  */
22285 #include <strings.h>
22286
22287 _ACEOF
22288                                                                                                 case "$host_os" in
22289               aix*) gl_absname_cpp="$ac_cpp -C" ;;
22290               *)    gl_absname_cpp="$ac_cpp" ;;
22291             esac
22292                                                 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22293                sed -n '\#/strings.h#{
22294                  s#.*"\(.*/strings.h\)".*#\1#
22295                  s#^/[^/]#//&#
22296                  p
22297                  q
22298                }'`'"'
22299           else
22300             gl_cv_next_strings_h='<'strings.h'>'
22301           fi
22302
22303 fi
22304 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
22305 $as_echo "$gl_cv_next_strings_h" >&6; }
22306      fi
22307      NEXT_STRINGS_H=$gl_cv_next_strings_h
22308
22309      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22310        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22311        gl_next_as_first_directive='<'strings.h'>'
22312      else
22313        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22314        gl_next_as_first_directive=$gl_cv_next_strings_h
22315      fi
22316      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
22317
22318
22319
22320
22321
22322
22323
22324   for gl_func in strcasecmp strncasecmp; do
22325     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22326     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
22327 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22328 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
22329   $as_echo_n "(cached) " >&6
22330 else
22331   cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include <strings.h>
22338
22339 int
22340 main ()
22341 {
22342 #undef $gl_func
22343   (void) $gl_func;
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22355 $as_echo "$ac_try_echo") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   eval "$as_gl_Symbol=yes"
22367 else
22368   $as_echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         eval "$as_gl_Symbol=no"
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
22377                  $as_echo "$as_val"'`
22378                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22379 $as_echo "$ac_res" >&6; }
22380      as_val=`eval 'as_val=${'$as_gl_Symbol'}
22381                  $as_echo "$as_val"'`
22382    if test "x$as_val" = x""yes; then
22383   cat >>confdefs.h <<_ACEOF
22384 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22385 _ACEOF
22386
22387                      eval ac_cv_have_decl_$gl_func=yes
22388 fi
22389
22390       done
22391
22392
22393 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
22394 $as_echo_n "checking whether strndup is declared... " >&6; }
22395 if test "${ac_cv_have_decl_strndup+set}" = set; then
22396   $as_echo_n "(cached) " >&6
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 $ac_includes_default
22405 int
22406 main ()
22407 {
22408 #ifndef strndup
22409   (void) strndup;
22410 #endif
22411
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22423 $as_echo "$ac_try_echo") >&5
22424   (eval "$ac_compile") 2>conftest.er1
22425   ac_status=$?
22426   grep -v '^ *+' conftest.er1 >conftest.err
22427   rm -f conftest.er1
22428   cat conftest.err >&5
22429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); } && {
22431          test -z "$ac_c_werror_flag" ||
22432          test ! -s conftest.err
22433        } && test -s conftest.$ac_objext; then
22434   ac_cv_have_decl_strndup=yes
22435 else
22436   $as_echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439         ac_cv_have_decl_strndup=no
22440 fi
22441
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
22445 $as_echo "$ac_cv_have_decl_strndup" >&6; }
22446 if test "x$ac_cv_have_decl_strndup" = x""yes; then
22447
22448 cat >>confdefs.h <<_ACEOF
22449 #define HAVE_DECL_STRNDUP 1
22450 _ACEOF
22451
22452
22453 else
22454   cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL_STRNDUP 0
22456 _ACEOF
22457
22458
22459 fi
22460
22461
22462
22463
22464 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
22465 $as_echo_n "checking whether strnlen is declared... " >&6; }
22466 if test "${ac_cv_have_decl_strnlen+set}" = set; then
22467   $as_echo_n "(cached) " >&6
22468 else
22469   cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 $ac_includes_default
22476 int
22477 main ()
22478 {
22479 #ifndef strnlen
22480   (void) strnlen;
22481 #endif
22482
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22494 $as_echo "$ac_try_echo") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } && {
22502          test -z "$ac_c_werror_flag" ||
22503          test ! -s conftest.err
22504        } && test -s conftest.$ac_objext; then
22505   ac_cv_have_decl_strnlen=yes
22506 else
22507   $as_echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510         ac_cv_have_decl_strnlen=no
22511 fi
22512
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 fi
22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
22516 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
22517 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
22518
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_DECL_STRNLEN 1
22521 _ACEOF
22522
22523
22524 else
22525   cat >>confdefs.h <<_ACEOF
22526 #define HAVE_DECL_STRNLEN 0
22527 _ACEOF
22528
22529
22530 fi
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
22549 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22550 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
22551   $as_echo_n "(cached) " >&6
22552 else
22553   cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559 #include <time.h>
22560
22561 int
22562 main ()
22563 {
22564 static struct timespec x; x.tv_sec = x.tv_nsec;
22565   ;
22566   return 0;
22567 }
22568 _ACEOF
22569 rm -f conftest.$ac_objext
22570 if { (ac_try="$ac_compile"
22571 case "(($ac_try" in
22572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573   *) ac_try_echo=$ac_try;;
22574 esac
22575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22576 $as_echo "$ac_try_echo") >&5
22577   (eval "$ac_compile") 2>conftest.er1
22578   ac_status=$?
22579   grep -v '^ *+' conftest.er1 >conftest.err
22580   rm -f conftest.er1
22581   cat conftest.err >&5
22582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); } && {
22584          test -z "$ac_c_werror_flag" ||
22585          test ! -s conftest.err
22586        } && test -s conftest.$ac_objext; then
22587   gl_cv_sys_struct_timespec_in_time_h=yes
22588 else
22589   $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22591
22592         gl_cv_sys_struct_timespec_in_time_h=no
22593 fi
22594
22595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596 fi
22597 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22598 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22599
22600   TIME_H_DEFINES_STRUCT_TIMESPEC=0
22601   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22602   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22603   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22604     TIME_H_DEFINES_STRUCT_TIMESPEC=1
22605   else
22606     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
22607 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22608 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
22609   $as_echo_n "(cached) " >&6
22610 else
22611   cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h.  */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h.  */
22617 #include <sys/time.h>
22618
22619 int
22620 main ()
22621 {
22622 static struct timespec x; x.tv_sec = x.tv_nsec;
22623   ;
22624   return 0;
22625 }
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631   *) ac_try_echo=$ac_try;;
22632 esac
22633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22634 $as_echo "$ac_try_echo") >&5
22635   (eval "$ac_compile") 2>conftest.er1
22636   ac_status=$?
22637   grep -v '^ *+' conftest.er1 >conftest.err
22638   rm -f conftest.er1
22639   cat conftest.err >&5
22640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } && {
22642          test -z "$ac_c_werror_flag" ||
22643          test ! -s conftest.err
22644        } && test -s conftest.$ac_objext; then
22645   gl_cv_sys_struct_timespec_in_sys_time_h=yes
22646 else
22647   $as_echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650         gl_cv_sys_struct_timespec_in_sys_time_h=no
22651 fi
22652
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 fi
22655 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22656 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22657     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22658       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22659     else
22660       { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
22661 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22662 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
22663   $as_echo_n "(cached) " >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 #include <pthread.h>
22672
22673 int
22674 main ()
22675 {
22676 static struct timespec x; x.tv_sec = x.tv_nsec;
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22688 $as_echo "$ac_try_echo") >&5
22689   (eval "$ac_compile") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } && {
22696          test -z "$ac_c_werror_flag" ||
22697          test ! -s conftest.err
22698        } && test -s conftest.$ac_objext; then
22699   gl_cv_sys_struct_timespec_in_pthread_h=yes
22700 else
22701   $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704         gl_cv_sys_struct_timespec_in_pthread_h=no
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22710 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22711       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22712         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22713       fi
22714     fi
22715   fi
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734      if test $gl_cv_have_include_next = yes; then
22735        gl_cv_next_time_h='<'time.h'>'
22736      else
22737        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
22738 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22739 if test "${gl_cv_next_time_h+set}" = set; then
22740   $as_echo_n "(cached) " >&6
22741 else
22742
22743           if test $ac_cv_header_time_h = yes; then
22744             cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h.  */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h.  */
22750 #include <time.h>
22751
22752 _ACEOF
22753                                                                                                 case "$host_os" in
22754               aix*) gl_absname_cpp="$ac_cpp -C" ;;
22755               *)    gl_absname_cpp="$ac_cpp" ;;
22756             esac
22757                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22758                sed -n '\#/time.h#{
22759                  s#.*"\(.*/time.h\)".*#\1#
22760                  s#^/[^/]#//&#
22761                  p
22762                  q
22763                }'`'"'
22764           else
22765             gl_cv_next_time_h='<'time.h'>'
22766           fi
22767
22768 fi
22769 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
22770 $as_echo "$gl_cv_next_time_h" >&6; }
22771      fi
22772      NEXT_TIME_H=$gl_cv_next_time_h
22773
22774      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22775        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22776        gl_next_as_first_directive='<'time.h'>'
22777      else
22778        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22779        gl_next_as_first_directive=$gl_cv_next_time_h
22780      fi
22781      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
22798 i\
22799 0
22800 q
22801 '
22802 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
22803 i\
22804 0
22805 q
22806 '
22807 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
22808 i\
22809 0
22810 q
22811 '
22812
22813
22814   if test "$HAVE_LIBUNISTRING" = yes; then
22815     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
22816     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
22817     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
22818   fi
22819
22820
22821   { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
22822 $as_echo_n "checking whether the utimes function works... " >&6; }
22823 if test "${gl_cv_func_working_utimes+set}" = set; then
22824   $as_echo_n "(cached) " >&6
22825 else
22826
22827   if test "$cross_compiling" = yes; then
22828   gl_cv_func_working_utimes=no
22829 else
22830   cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836
22837 #include <sys/types.h>
22838 #include <sys/stat.h>
22839 #include <fcntl.h>
22840 #include <sys/time.h>
22841 #include <time.h>
22842 #include <unistd.h>
22843 #include <stdlib.h>
22844 #include <stdio.h>
22845 #include <utime.h>
22846
22847 int
22848 main ()
22849 {
22850   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22851   struct stat sbuf;
22852   char const *file = "conftest.utimes";
22853   FILE *f;
22854   time_t now;
22855   int fd;
22856
22857   int ok = ((f = fopen (file, "w"))
22858             && fclose (f) == 0
22859             && utimes (file, timeval) == 0
22860             && lstat (file, &sbuf) == 0
22861             && sbuf.st_atime == timeval[0].tv_sec
22862             && sbuf.st_mtime == timeval[1].tv_sec);
22863   unlink (file);
22864   if (!ok)
22865     exit (1);
22866
22867   ok =
22868     ((f = fopen (file, "w"))
22869      && fclose (f) == 0
22870      && time (&now) != (time_t)-1
22871      && utimes (file, NULL) == 0
22872      && lstat (file, &sbuf) == 0
22873      && now - sbuf.st_atime <= 2
22874      && now - sbuf.st_mtime <= 2);
22875   unlink (file);
22876   if (!ok)
22877     exit (1);
22878
22879   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
22880               && close (fd) == 0
22881               && utimes (file, NULL) == 0);
22882   unlink (file);
22883
22884   exit (!ok);
22885 }
22886
22887 _ACEOF
22888 rm -f conftest$ac_exeext
22889 if { (ac_try="$ac_link"
22890 case "(($ac_try" in
22891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892   *) ac_try_echo=$ac_try;;
22893 esac
22894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896   (eval "$ac_link") 2>&5
22897   ac_status=$?
22898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900   { (case "(($ac_try" in
22901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902   *) ac_try_echo=$ac_try;;
22903 esac
22904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22905 $as_echo "$ac_try_echo") >&5
22906   (eval "$ac_try") 2>&5
22907   ac_status=$?
22908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; }; then
22910   gl_cv_func_working_utimes=yes
22911 else
22912   $as_echo "$as_me: program exited with status $ac_status" >&5
22913 $as_echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22915
22916 ( exit $ac_status )
22917 gl_cv_func_working_utimes=no
22918 fi
22919 rm -rf conftest.dSYM
22920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22921 fi
22922
22923
22924 fi
22925 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
22926 $as_echo "$gl_cv_func_working_utimes" >&6; }
22927
22928   if test $gl_cv_func_working_utimes = yes; then
22929
22930 cat >>confdefs.h <<\_ACEOF
22931 #define HAVE_WORKING_UTIMES 1
22932 _ACEOF
22933
22934   fi
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947   { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
22948 $as_echo_n "checking for struct utimbuf... " >&6; }
22949 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
22950   $as_echo_n "(cached) " >&6
22951 else
22952   cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h.  */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h.  */
22958 #if HAVE_SYS_TIME_H
22959              #include <sys/time.h>
22960             #endif
22961             #include <time.h>
22962             #ifdef HAVE_UTIME_H
22963              #include <utime.h>
22964             #endif
22965
22966 int
22967 main ()
22968 {
22969 static struct utimbuf x; x.actime = x.modtime;
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 rm -f conftest.$ac_objext
22975 if { (ac_try="$ac_compile"
22976 case "(($ac_try" in
22977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978   *) ac_try_echo=$ac_try;;
22979 esac
22980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22981 $as_echo "$ac_try_echo") >&5
22982   (eval "$ac_compile") 2>conftest.er1
22983   ac_status=$?
22984   grep -v '^ *+' conftest.er1 >conftest.err
22985   rm -f conftest.er1
22986   cat conftest.err >&5
22987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); } && {
22989          test -z "$ac_c_werror_flag" ||
22990          test ! -s conftest.err
22991        } && test -s conftest.$ac_objext; then
22992   gl_cv_sys_struct_utimbuf=yes
22993 else
22994   $as_echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997         gl_cv_sys_struct_utimbuf=no
22998 fi
22999
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001 fi
23002 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
23003 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
23004
23005   if test $gl_cv_sys_struct_utimbuf = yes; then
23006
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_STRUCT_UTIMBUF 1
23009 _ACEOF
23010
23011   fi
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
23025 $as_echo_n "checking for wint_t... " >&6; }
23026 if test "${gt_cv_c_wint_t+set}" = set; then
23027   $as_echo_n "(cached) " >&6
23028 else
23029   cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035
23036 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23037    <wchar.h>.
23038    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23039    before <wchar.h>.  */
23040 #include <stddef.h>
23041 #include <stdio.h>
23042 #include <time.h>
23043 #include <wchar.h>
23044             wint_t foo = (wchar_t)'\0';
23045 int
23046 main ()
23047 {
23048
23049   ;
23050   return 0;
23051 }
23052 _ACEOF
23053 rm -f conftest.$ac_objext
23054 if { (ac_try="$ac_compile"
23055 case "(($ac_try" in
23056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057   *) ac_try_echo=$ac_try;;
23058 esac
23059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23060 $as_echo "$ac_try_echo") >&5
23061   (eval "$ac_compile") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && {
23068          test -z "$ac_c_werror_flag" ||
23069          test ! -s conftest.err
23070        } && test -s conftest.$ac_objext; then
23071   gt_cv_c_wint_t=yes
23072 else
23073   $as_echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076         gt_cv_c_wint_t=no
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 fi
23081 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23082 $as_echo "$gt_cv_c_wint_t" >&6; }
23083   if test $gt_cv_c_wint_t = yes; then
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_WINT_T 1
23087 _ACEOF
23088
23089   fi
23090
23091
23092   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
23093 $as_echo_n "checking for inttypes.h... " >&6; }
23094 if test "${gl_cv_header_inttypes_h+set}" = set; then
23095   $as_echo_n "(cached) " >&6
23096 else
23097   cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103
23104 #include <sys/types.h>
23105 #include <inttypes.h>
23106
23107 int
23108 main ()
23109 {
23110 uintmax_t i = (uintmax_t) -1; return !i;
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23122 $as_echo "$ac_try_echo") >&5
23123   (eval "$ac_compile") 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } && {
23130          test -z "$ac_c_werror_flag" ||
23131          test ! -s conftest.err
23132        } && test -s conftest.$ac_objext; then
23133   gl_cv_header_inttypes_h=yes
23134 else
23135   $as_echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138         gl_cv_header_inttypes_h=no
23139 fi
23140
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 fi
23143 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
23144 $as_echo "$gl_cv_header_inttypes_h" >&6; }
23145   if test $gl_cv_header_inttypes_h = yes; then
23146
23147 cat >>confdefs.h <<_ACEOF
23148 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23149 _ACEOF
23150
23151   fi
23152
23153
23154   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
23155 $as_echo_n "checking for stdint.h... " >&6; }
23156 if test "${gl_cv_header_stdint_h+set}" = set; then
23157   $as_echo_n "(cached) " >&6
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 #include <sys/types.h>
23166             #include <stdint.h>
23167 int
23168 main ()
23169 {
23170 uintmax_t i = (uintmax_t) -1; return !i;
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179   *) ac_try_echo=$ac_try;;
23180 esac
23181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23182 $as_echo "$ac_try_echo") >&5
23183   (eval "$ac_compile") 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } && {
23190          test -z "$ac_c_werror_flag" ||
23191          test ! -s conftest.err
23192        } && test -s conftest.$ac_objext; then
23193   gl_cv_header_stdint_h=yes
23194 else
23195   $as_echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         gl_cv_header_stdint_h=no
23199 fi
23200
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 fi
23203 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23204 $as_echo "$gl_cv_header_stdint_h" >&6; }
23205   if test $gl_cv_header_stdint_h = yes; then
23206
23207 cat >>confdefs.h <<_ACEOF
23208 #define HAVE_STDINT_H_WITH_UINTMAX 1
23209 _ACEOF
23210
23211   fi
23212
23213
23214
23215
23216   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
23217 $as_echo_n "checking for intmax_t... " >&6; }
23218 if test "${gt_cv_c_intmax_t+set}" = set; then
23219   $as_echo_n "(cached) " >&6
23220 else
23221   cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h.  */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h.  */
23227
23228 #include <stddef.h>
23229 #include <stdlib.h>
23230 #if HAVE_STDINT_H_WITH_UINTMAX
23231 #include <stdint.h>
23232 #endif
23233 #if HAVE_INTTYPES_H_WITH_UINTMAX
23234 #include <inttypes.h>
23235 #endif
23236
23237 int
23238 main ()
23239 {
23240 intmax_t x = -1; return !x;
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext
23246 if { (ac_try="$ac_compile"
23247 case "(($ac_try" in
23248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249   *) ac_try_echo=$ac_try;;
23250 esac
23251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23252 $as_echo "$ac_try_echo") >&5
23253   (eval "$ac_compile") 2>conftest.er1
23254   ac_status=$?
23255   grep -v '^ *+' conftest.er1 >conftest.err
23256   rm -f conftest.er1
23257   cat conftest.err >&5
23258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); } && {
23260          test -z "$ac_c_werror_flag" ||
23261          test ! -s conftest.err
23262        } && test -s conftest.$ac_objext; then
23263   gt_cv_c_intmax_t=yes
23264 else
23265   $as_echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268         gt_cv_c_intmax_t=no
23269 fi
23270
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 fi
23273 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23274 $as_echo "$gt_cv_c_intmax_t" >&6; }
23275   if test $gt_cv_c_intmax_t = yes; then
23276
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_INTMAX_T 1
23279 _ACEOF
23280
23281   else
23282
23283     test $ac_cv_type_long_long_int = yes \
23284       && ac_type='long long' \
23285       || ac_type='long'
23286
23287 cat >>confdefs.h <<_ACEOF
23288 #define intmax_t $ac_type
23289 _ACEOF
23290
23291   fi
23292
23293
23294
23295      { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
23296 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
23297 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
23298   $as_echo_n "(cached) " >&6
23299 else
23300
23301       if test "$cross_compiling" = yes; then
23302
23303          case "$host_os" in
23304                                  # Guess yes on glibc systems.
23305            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
23306                                  # Guess yes on FreeBSD >= 5.
23307            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
23308            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23309                                  # Guess yes on MacOS X >= 10.3.
23310            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
23311            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23312                                  # Guess yes on OpenBSD >= 3.9.
23313            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
23314                                  gl_cv_func_snprintf_retval_c99="guessing no";;
23315            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
23316                                  # Guess yes on Solaris >= 2.6.
23317            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
23318            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
23319                                  # Guess yes on AIX >= 4.
23320            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
23321            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
23322                                  # Guess yes on NetBSD >= 3.
23323            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23324                                  gl_cv_func_snprintf_retval_c99="guessing no";;
23325            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23326                                  # Guess yes on BeOS.
23327            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
23328                                  # If we don't know, assume the worst.
23329            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
23330          esac
23331
23332 else
23333   cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339
23340 #include <stdio.h>
23341 #include <string.h>
23342 static char buf[100];
23343 int main ()
23344 {
23345   strcpy (buf, "ABCDEF");
23346   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
23347     return 1;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest$ac_exeext
23352 if { (ac_try="$ac_link"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358 $as_echo "$ac_try_echo") >&5
23359   (eval "$ac_link") 2>&5
23360   ac_status=$?
23361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23363   { (case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369   (eval "$ac_try") 2>&5
23370   ac_status=$?
23371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); }; }; then
23373   gl_cv_func_snprintf_retval_c99=yes
23374 else
23375   $as_echo "$as_me: program exited with status $ac_status" >&5
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ( exit $ac_status )
23380 gl_cv_func_snprintf_retval_c99=no
23381 fi
23382 rm -rf conftest.dSYM
23383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23384 fi
23385
23386
23387
23388 fi
23389 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
23390 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
23406 do
23407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23409 $as_echo_n "checking for $ac_func... " >&6; }
23410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23411   $as_echo_n "(cached) " >&6
23412 else
23413   cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h.  */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h.  */
23419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23421 #define $ac_func innocuous_$ac_func
23422
23423 /* System header to define __stub macros and hopefully few prototypes,
23424     which can conflict with char $ac_func (); below.
23425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23426     <limits.h> exists even on freestanding compilers.  */
23427
23428 #ifdef __STDC__
23429 # include <limits.h>
23430 #else
23431 # include <assert.h>
23432 #endif
23433
23434 #undef $ac_func
23435
23436 /* Override any GCC internal prototype to avoid an error.
23437    Use char because int might match the return type of a GCC
23438    builtin and then its argument prototype would still apply.  */
23439 #ifdef __cplusplus
23440 extern "C"
23441 #endif
23442 char $ac_func ();
23443 /* The GNU C library defines this for functions which it implements
23444     to always fail with ENOSYS.  Some functions are actually named
23445     something starting with __ and the normal name is an alias.  */
23446 #if defined __stub_$ac_func || defined __stub___$ac_func
23447 choke me
23448 #endif
23449
23450 int
23451 main ()
23452 {
23453 return $ac_func ();
23454   ;
23455   return 0;
23456 }
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462   *) ac_try_echo=$ac_try;;
23463 esac
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466   (eval "$ac_link") 2>conftest.er1
23467   ac_status=$?
23468   grep -v '^ *+' conftest.er1 >conftest.err
23469   rm -f conftest.er1
23470   cat conftest.err >&5
23471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); } && {
23473          test -z "$ac_c_werror_flag" ||
23474          test ! -s conftest.err
23475        } && test -s conftest$ac_exeext && {
23476          test "$cross_compiling" = yes ||
23477          $as_test_x conftest$ac_exeext
23478        }; then
23479   eval "$as_ac_var=yes"
23480 else
23481   $as_echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23483
23484         eval "$as_ac_var=no"
23485 fi
23486
23487 rm -rf conftest.dSYM
23488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23489       conftest$ac_exeext conftest.$ac_ext
23490 fi
23491 ac_res=`eval 'as_val=${'$as_ac_var'}
23492                  $as_echo "$as_val"'`
23493                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495 as_val=`eval 'as_val=${'$as_ac_var'}
23496                  $as_echo "$as_val"'`
23497    if test "x$as_val" = x""yes; then
23498   cat >>confdefs.h <<_ACEOF
23499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23500 _ACEOF
23501
23502 fi
23503 done
23504
23505       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
23506 $as_echo_n "checking whether _snprintf is declared... " >&6; }
23507 if test "${ac_cv_have_decl__snprintf+set}" = set; then
23508   $as_echo_n "(cached) " >&6
23509 else
23510   cat >conftest.$ac_ext <<_ACEOF
23511 /* confdefs.h.  */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h.  */
23516 #include <stdio.h>
23517
23518 int
23519 main ()
23520 {
23521 #ifndef _snprintf
23522   (void) _snprintf;
23523 #endif
23524
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537   (eval "$ac_compile") 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } && {
23544          test -z "$ac_c_werror_flag" ||
23545          test ! -s conftest.err
23546        } && test -s conftest.$ac_objext; then
23547   ac_cv_have_decl__snprintf=yes
23548 else
23549   $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23551
23552         ac_cv_have_decl__snprintf=no
23553 fi
23554
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 fi
23557 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
23558 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
23559 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
23560
23561 cat >>confdefs.h <<_ACEOF
23562 #define HAVE_DECL__SNPRINTF 1
23563 _ACEOF
23564
23565
23566 else
23567   cat >>confdefs.h <<_ACEOF
23568 #define HAVE_DECL__SNPRINTF 0
23569 _ACEOF
23570
23571
23572 fi
23573
23574
23575
23576   case "$gl_cv_func_snprintf_retval_c99" in
23577     *yes)
23578
23579 cat >>confdefs.h <<\_ACEOF
23580 #define HAVE_SNPRINTF_RETVAL_C99 1
23581 _ACEOF
23582
23583       ;;
23584   esac
23585
23586 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
23587 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
23588 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
23589   $as_echo_n "(cached) " >&6
23590 else
23591   cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h.  */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h.  */
23597 $ac_includes_default
23598 int
23599 main ()
23600 {
23601 #ifndef vsnprintf
23602   (void) vsnprintf;
23603 #endif
23604
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 rm -f conftest.$ac_objext
23610 if { (ac_try="$ac_compile"
23611 case "(($ac_try" in
23612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613   *) ac_try_echo=$ac_try;;
23614 esac
23615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616 $as_echo "$ac_try_echo") >&5
23617   (eval "$ac_compile") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest.$ac_objext; then
23627   ac_cv_have_decl_vsnprintf=yes
23628 else
23629   $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632         ac_cv_have_decl_vsnprintf=no
23633 fi
23634
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 fi
23637 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
23638 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
23639 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
23640
23641 cat >>confdefs.h <<_ACEOF
23642 #define HAVE_DECL_VSNPRINTF 1
23643 _ACEOF
23644
23645
23646 else
23647   cat >>confdefs.h <<_ACEOF
23648 #define HAVE_DECL_VSNPRINTF 0
23649 _ACEOF
23650
23651
23652 fi
23653
23654
23655
23656
23657
23658
23659
23660
23661 { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
23662 $as_echo_n "checking whether iswblank is declared... " >&6; }
23663 if test "${ac_cv_have_decl_iswblank+set}" = set; then
23664   $as_echo_n "(cached) " >&6
23665 else
23666   cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672 $ac_includes_default
23673 int
23674 main ()
23675 {
23676 #ifndef iswblank
23677   (void) iswblank;
23678 #endif
23679
23680   ;
23681   return 0;
23682 }
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692   (eval "$ac_compile") 2>conftest.er1
23693   ac_status=$?
23694   grep -v '^ *+' conftest.er1 >conftest.err
23695   rm -f conftest.er1
23696   cat conftest.err >&5
23697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); } && {
23699          test -z "$ac_c_werror_flag" ||
23700          test ! -s conftest.err
23701        } && test -s conftest.$ac_objext; then
23702   ac_cv_have_decl_iswblank=yes
23703 else
23704   $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707         ac_cv_have_decl_iswblank=no
23708 fi
23709
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 fi
23712 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
23713 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
23714 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
23715
23716 cat >>confdefs.h <<_ACEOF
23717 #define HAVE_DECL_ISWBLANK 1
23718 _ACEOF
23719
23720
23721 else
23722   cat >>confdefs.h <<_ACEOF
23723 #define HAVE_DECL_ISWBLANK 0
23724 _ACEOF
23725
23726
23727 fi
23728
23729
23730
23731
23732
23733    if false; then
23734   GL_COND_LIBTOOL_TRUE=
23735   GL_COND_LIBTOOL_FALSE='#'
23736 else
23737   GL_COND_LIBTOOL_TRUE='#'
23738   GL_COND_LIBTOOL_FALSE=
23739 fi
23740
23741   gl_cond_libtool=false
23742   gl_libdeps=
23743   gl_ltlibdeps=
23744   gl_m4_base='m4'
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754   gl_source_base='gnu'
23755   # Code from module alloca:
23756   # Code from module alloca-opt:
23757
23758
23759
23760
23761
23762   if test $ac_cv_func_alloca_works = no; then
23763     :
23764   fi
23765
23766   # Define an additional variable used in the Makefile substitution.
23767   if test $ac_cv_working_alloca_h = yes; then
23768     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
23769 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23770 if test "${gl_cv_rpl_alloca+set}" = set; then
23771   $as_echo_n "(cached) " >&6
23772 else
23773
23774       cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23782         Need own alloca
23783 #endif
23784
23785 _ACEOF
23786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23787   $EGREP "Need own alloca" >/dev/null 2>&1; then
23788   gl_cv_rpl_alloca=yes
23789 else
23790   gl_cv_rpl_alloca=no
23791 fi
23792 rm -f conftest*
23793
23794
23795 fi
23796 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
23797 $as_echo "$gl_cv_rpl_alloca" >&6; }
23798     if test $gl_cv_rpl_alloca = yes; then
23799
23800 cat >>confdefs.h <<\_ACEOF
23801 #define HAVE_ALLOCA 1
23802 _ACEOF
23803
23804       ALLOCA_H=alloca.h
23805     else
23806                   ALLOCA_H=
23807     fi
23808   else
23809     ALLOCA_H=alloca.h
23810   fi
23811
23812
23813   # Code from module areadlink:
23814   # Code from module areadlinkat:
23815
23816
23817 cat >>confdefs.h <<_ACEOF
23818 #define GNULIB_AREADLINKAT 1
23819 _ACEOF
23820
23821
23822   # Code from module arg-nonnull:
23823   # Code from module argmatch:
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
23834
23835
23836   # Code from module argp:
23837
23838
23839
23840
23841
23842
23843   GETOPT_H=getopt.h
23844
23845 cat >>confdefs.h <<\_ACEOF
23846 #define __GETOPT_PREFIX rpl_
23847 _ACEOF
23848
23849
23850
23851     GNULIB_UNISTD_H_GETOPT=1
23852
23853
23854
23855
23856
23857
23858
23859
23860   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
23881 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
23882 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
23883   $as_echo_n "(cached) " >&6
23884 else
23885   cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h.  */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h.  */
23891 #include <errno.h>
23892
23893 int
23894 main ()
23895 {
23896 #ifndef program_invocation_name
23897   (void) program_invocation_name;
23898 #endif
23899
23900   ;
23901   return 0;
23902 }
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (ac_try="$ac_compile"
23906 case "(($ac_try" in
23907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908   *) ac_try_echo=$ac_try;;
23909 esac
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912   (eval "$ac_compile") 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } && {
23919          test -z "$ac_c_werror_flag" ||
23920          test ! -s conftest.err
23921        } && test -s conftest.$ac_objext; then
23922   ac_cv_have_decl_program_invocation_name=yes
23923 else
23924   $as_echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23926
23927         ac_cv_have_decl_program_invocation_name=no
23928 fi
23929
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 fi
23932 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
23933 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
23934 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
23935
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
23938 _ACEOF
23939
23940 else
23941
23942 cat >>confdefs.h <<\_ACEOF
23943 #define GNULIB_PROGRAM_INVOCATION_NAME 1
23944 _ACEOF
23945
23946 fi
23947
23948   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
23949 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
23950 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
23951   $as_echo_n "(cached) " >&6
23952 else
23953   cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 #include <errno.h>
23960
23961 int
23962 main ()
23963 {
23964 #ifndef program_invocation_short_name
23965   (void) program_invocation_short_name;
23966 #endif
23967
23968   ;
23969   return 0;
23970 }
23971 _ACEOF
23972 rm -f conftest.$ac_objext
23973 if { (ac_try="$ac_compile"
23974 case "(($ac_try" in
23975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976   *) ac_try_echo=$ac_try;;
23977 esac
23978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980   (eval "$ac_compile") 2>conftest.er1
23981   ac_status=$?
23982   grep -v '^ *+' conftest.er1 >conftest.err
23983   rm -f conftest.er1
23984   cat conftest.err >&5
23985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); } && {
23987          test -z "$ac_c_werror_flag" ||
23988          test ! -s conftest.err
23989        } && test -s conftest.$ac_objext; then
23990   ac_cv_have_decl_program_invocation_short_name=yes
23991 else
23992   $as_echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995         ac_cv_have_decl_program_invocation_short_name=no
23996 fi
23997
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 fi
24000 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
24001 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
24002 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
24003
24004 cat >>confdefs.h <<\_ACEOF
24005 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
24006 _ACEOF
24007
24008 else
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
24012 _ACEOF
24013
24014 fi
24015
24016
24017   # Check if program_invocation_name and program_invocation_short_name
24018   # are defined elsewhere. It is improbable that only one of them will
24019   # be defined and other not, I prefer to stay on the safe side and to
24020   # test each one separately.
24021   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
24022 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
24023   cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029 #include <argp.h>
24030 int
24031 main ()
24032 {
24033 program_invocation_name = "test";
24034   ;
24035   return 0;
24036 }
24037 _ACEOF
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042   *) ac_try_echo=$ac_try;;
24043 esac
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046   (eval "$ac_link") 2>conftest.er1
24047   ac_status=$?
24048   grep -v '^ *+' conftest.er1 >conftest.err
24049   rm -f conftest.er1
24050   cat conftest.err >&5
24051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } && {
24053          test -z "$ac_c_werror_flag" ||
24054          test ! -s conftest.err
24055        } && test -s conftest$ac_exeext && {
24056          test "$cross_compiling" = yes ||
24057          $as_test_x conftest$ac_exeext
24058        }; then
24059
24060 cat >>confdefs.h <<\_ACEOF
24061 #define HAVE_PROGRAM_INVOCATION_NAME 1
24062 _ACEOF
24063
24064                   { $as_echo "$as_me:$LINENO: result: yes" >&5
24065 $as_echo "yes" >&6; }
24066 else
24067   $as_echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070         { $as_echo "$as_me:$LINENO: result: no" >&5
24071 $as_echo "no" >&6; }
24072 fi
24073
24074 rm -rf conftest.dSYM
24075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24076       conftest$ac_exeext conftest.$ac_ext
24077
24078   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
24079 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
24080   cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 #include <argp.h>
24087 int
24088 main ()
24089 {
24090 program_invocation_short_name = "test";
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099   *) ac_try_echo=$ac_try;;
24100 esac
24101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24102 $as_echo "$ac_try_echo") >&5
24103   (eval "$ac_link") 2>conftest.er1
24104   ac_status=$?
24105   grep -v '^ *+' conftest.er1 >conftest.err
24106   rm -f conftest.er1
24107   cat conftest.err >&5
24108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); } && {
24110          test -z "$ac_c_werror_flag" ||
24111          test ! -s conftest.err
24112        } && test -s conftest$ac_exeext && {
24113          test "$cross_compiling" = yes ||
24114          $as_test_x conftest$ac_exeext
24115        }; then
24116
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
24119 _ACEOF
24120
24121                   { $as_echo "$as_me:$LINENO: result: yes" >&5
24122 $as_echo "yes" >&6; }
24123 else
24124   $as_echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24126
24127         { $as_echo "$as_me:$LINENO: result: no" >&5
24128 $as_echo "no" >&6; }
24129 fi
24130
24131 rm -rf conftest.dSYM
24132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24133       conftest$ac_exeext conftest.$ac_ext
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
24207
24208
24209
24210   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
24211
24212   # Code from module argp-version-etc:
24213   # Code from module backupfile:
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236   # Code from module bitrotate:
24237
24238   # Code from module btowc:
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250   if test $ac_cv_func_btowc = no; then
24251     HAVE_BTOWC=0
24252   else
24253
24254
24255
24256
24257         { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
24258 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
24259 if test "${gl_cv_func_btowc_nul+set}" = set; then
24260   $as_echo_n "(cached) " >&6
24261 else
24262
24263         if test "$cross_compiling" = yes; then
24264
24265            case "$host_os" in
24266                       # Guess no on Cygwin.
24267              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
24268                       # Guess yes otherwise.
24269              *)       gl_cv_func_btowc_nul="guessing yes" ;;
24270            esac
24271
24272 else
24273   cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279
24280 #include <stdio.h>
24281 #include <string.h>
24282 #include <wchar.h>
24283 int main ()
24284 {
24285   if (btowc ('\0') != 0)
24286     return 1;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298   (eval "$ac_link") 2>&5
24299   ac_status=$?
24300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24302   { (case "(($ac_try" in
24303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304   *) ac_try_echo=$ac_try;;
24305 esac
24306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24307 $as_echo "$ac_try_echo") >&5
24308   (eval "$ac_try") 2>&5
24309   ac_status=$?
24310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   gl_cv_func_btowc_nul=yes
24313 else
24314   $as_echo "$as_me: program exited with status $ac_status" >&5
24315 $as_echo "$as_me: failed program was:" >&5
24316 sed 's/^/| /' conftest.$ac_ext >&5
24317
24318 ( exit $ac_status )
24319 gl_cv_func_btowc_nul=no
24320 fi
24321 rm -rf conftest.dSYM
24322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24323 fi
24324
24325
24326
24327 fi
24328 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
24329 $as_echo "$gl_cv_func_btowc_nul" >&6; }
24330
24331         { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
24332 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
24333 if test "${gl_cv_func_btowc_eof+set}" = set; then
24334   $as_echo_n "(cached) " >&6
24335 else
24336
24337                         case "$host_os" in
24338                  # Guess no on IRIX.
24339           irix*) gl_cv_func_btowc_eof="guessing no" ;;
24340                  # Guess yes otherwise.
24341           *)     gl_cv_func_btowc_eof="guessing yes" ;;
24342         esac
24343         if test $LOCALE_FR != none; then
24344           if test "$cross_compiling" = yes; then
24345   :
24346 else
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354 #include <locale.h>
24355 #include <stdio.h>
24356 #include <string.h>
24357 #include <wchar.h>
24358 int main ()
24359 {
24360   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24361     {
24362       if (btowc (EOF) != WEOF)
24363         return 1;
24364     }
24365   return 0;
24366 }
24367 _ACEOF
24368 rm -f conftest$ac_exeext
24369 if { (ac_try="$ac_link"
24370 case "(($ac_try" in
24371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372   *) ac_try_echo=$ac_try;;
24373 esac
24374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24375 $as_echo "$ac_try_echo") >&5
24376   (eval "$ac_link") 2>&5
24377   ac_status=$?
24378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24380   { (case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386   (eval "$ac_try") 2>&5
24387   ac_status=$?
24388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389   (exit $ac_status); }; }; then
24390   gl_cv_func_btowc_eof=yes
24391 else
24392   $as_echo "$as_me: program exited with status $ac_status" >&5
24393 $as_echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396 ( exit $ac_status )
24397 gl_cv_func_btowc_eof=no
24398 fi
24399 rm -rf conftest.dSYM
24400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24401 fi
24402
24403
24404         fi
24405
24406 fi
24407 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
24408 $as_echo "$gl_cv_func_btowc_eof" >&6; }
24409
24410     case "$gl_cv_func_btowc_nul" in
24411       *yes) ;;
24412       *) REPLACE_BTOWC=1 ;;
24413     esac
24414     case "$gl_cv_func_btowc_eof" in
24415       *yes) ;;
24416       *) REPLACE_BTOWC=1 ;;
24417     esac
24418   fi
24419   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
24420
24421     :
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
24432
24433
24434   :
24435
24436   fi
24437
24438
24439
24440
24441   GNULIB_BTOWC=1
24442
24443
24444
24445 cat >>confdefs.h <<\_ACEOF
24446 #define GNULIB_TEST_BTOWC 1
24447 _ACEOF
24448
24449
24450
24451   # Code from module c++defs:
24452   # Code from module c-ctype:
24453   # Code from module canonicalize-lgpl:
24454
24455
24456   if test $ac_cv_func_canonicalize_file_name = no; then
24457     HAVE_CANONICALIZE_FILE_NAME=0
24458
24459
24460
24461
24462
24463
24464
24465
24466   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
24467
24468     if test $ac_cv_func_realpath = no; then
24469       HAVE_REALPATH=0
24470     elif test "$gl_cv_func_realpath_works" != yes; then
24471       REPLACE_REALPATH=1
24472     fi
24473   elif test "$gl_cv_func_realpath_works" != yes; then
24474
24475
24476
24477
24478
24479
24480
24481
24482   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
24483
24484     REPLACE_REALPATH=1
24485     REPLACE_CANONICALIZE_FILE_NAME=1
24486   fi
24487
24488
24489
24490 cat >>confdefs.h <<_ACEOF
24491 #define GNULIB_CANONICALIZE_LGPL 1
24492 _ACEOF
24493
24494
24495
24496
24497
24498   GNULIB_CANONICALIZE_FILE_NAME=1
24499
24500
24501
24502 cat >>confdefs.h <<\_ACEOF
24503 #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
24504 _ACEOF
24505
24506
24507
24508
24509
24510
24511   GNULIB_REALPATH=1
24512
24513
24514
24515 cat >>confdefs.h <<\_ACEOF
24516 #define GNULIB_TEST_REALPATH 1
24517 _ACEOF
24518
24519
24520
24521   # Code from module chdir-long:
24522
24523   { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
24524 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
24525 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
24526   $as_echo_n "(cached) " >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <unistd.h>
24535 #include <limits.h>
24536 #if defined PATH_MAX || defined MAXPATHLEN
24537 have_arbitrary_file_name_length_limit
24538 #endif
24539 _ACEOF
24540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24541   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
24542   gl_cv_have_arbitrary_file_name_length_limit=yes
24543 else
24544   gl_cv_have_arbitrary_file_name_length_limit=no
24545 fi
24546 rm -f conftest*
24547
24548 fi
24549 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
24550 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
24551
24552   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
24553
24554
24555
24556
24557
24558
24559
24560
24561   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
24562
24563
24564
24565   :
24566
24567   fi
24568
24569   # Code from module chown:
24570
24571
24572
24573
24574   GNULIB_CHOWN=1
24575
24576
24577
24578 cat >>confdefs.h <<\_ACEOF
24579 #define GNULIB_TEST_CHOWN 1
24580 _ACEOF
24581
24582
24583
24584   # Code from module clock-time:
24585
24586
24587
24588   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
24589   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
24590
24591   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
24592   # programs in the package would end up linked with that potentially-shared
24593   # library, inducing unnecessary run-time overhead.
24594   LIB_CLOCK_GETTIME=
24595
24596   gl_saved_libs=$LIBS
24597     { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
24598 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24599 if test "${ac_cv_search_clock_gettime+set}" = set; then
24600   $as_echo_n "(cached) " >&6
24601 else
24602   ac_func_search_save_LIBS=$LIBS
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609
24610 /* Override any GCC internal prototype to avoid an error.
24611    Use char because int might match the return type of a GCC
24612    builtin and then its argument prototype would still apply.  */
24613 #ifdef __cplusplus
24614 extern "C"
24615 #endif
24616 char clock_gettime ();
24617 int
24618 main ()
24619 {
24620 return clock_gettime ();
24621   ;
24622   return 0;
24623 }
24624 _ACEOF
24625 for ac_lib in '' rt posix4; do
24626   if test -z "$ac_lib"; then
24627     ac_res="none required"
24628   else
24629     ac_res=-l$ac_lib
24630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24631   fi
24632   rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640   (eval "$ac_link") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest$ac_exeext && {
24650          test "$cross_compiling" = yes ||
24651          $as_test_x conftest$ac_exeext
24652        }; then
24653   ac_cv_search_clock_gettime=$ac_res
24654 else
24655   $as_echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24657
24658
24659 fi
24660
24661 rm -rf conftest.dSYM
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663       conftest$ac_exeext
24664   if test "${ac_cv_search_clock_gettime+set}" = set; then
24665   break
24666 fi
24667 done
24668 if test "${ac_cv_search_clock_gettime+set}" = set; then
24669   :
24670 else
24671   ac_cv_search_clock_gettime=no
24672 fi
24673 rm conftest.$ac_ext
24674 LIBS=$ac_func_search_save_LIBS
24675 fi
24676 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
24677 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24678 ac_res=$ac_cv_search_clock_gettime
24679 if test "$ac_res" != no; then
24680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24681   test "$ac_cv_search_clock_gettime" = "none required" ||
24682                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
24683 fi
24684
24685
24686
24687 for ac_func in clock_gettime clock_settime
24688 do
24689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24690 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24691 $as_echo_n "checking for $ac_func... " >&6; }
24692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24693   $as_echo_n "(cached) " >&6
24694 else
24695   cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h.  */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h.  */
24701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24703 #define $ac_func innocuous_$ac_func
24704
24705 /* System header to define __stub macros and hopefully few prototypes,
24706     which can conflict with char $ac_func (); below.
24707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24708     <limits.h> exists even on freestanding compilers.  */
24709
24710 #ifdef __STDC__
24711 # include <limits.h>
24712 #else
24713 # include <assert.h>
24714 #endif
24715
24716 #undef $ac_func
24717
24718 /* Override any GCC internal prototype to avoid an error.
24719    Use char because int might match the return type of a GCC
24720    builtin and then its argument prototype would still apply.  */
24721 #ifdef __cplusplus
24722 extern "C"
24723 #endif
24724 char $ac_func ();
24725 /* The GNU C library defines this for functions which it implements
24726     to always fail with ENOSYS.  Some functions are actually named
24727     something starting with __ and the normal name is an alias.  */
24728 #if defined __stub_$ac_func || defined __stub___$ac_func
24729 choke me
24730 #endif
24731
24732 int
24733 main ()
24734 {
24735 return $ac_func ();
24736   ;
24737   return 0;
24738 }
24739 _ACEOF
24740 rm -f conftest.$ac_objext conftest$ac_exeext
24741 if { (ac_try="$ac_link"
24742 case "(($ac_try" in
24743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744   *) ac_try_echo=$ac_try;;
24745 esac
24746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24747 $as_echo "$ac_try_echo") >&5
24748   (eval "$ac_link") 2>conftest.er1
24749   ac_status=$?
24750   grep -v '^ *+' conftest.er1 >conftest.err
24751   rm -f conftest.er1
24752   cat conftest.err >&5
24753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); } && {
24755          test -z "$ac_c_werror_flag" ||
24756          test ! -s conftest.err
24757        } && test -s conftest$ac_exeext && {
24758          test "$cross_compiling" = yes ||
24759          $as_test_x conftest$ac_exeext
24760        }; then
24761   eval "$as_ac_var=yes"
24762 else
24763   $as_echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766         eval "$as_ac_var=no"
24767 fi
24768
24769 rm -rf conftest.dSYM
24770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24771       conftest$ac_exeext conftest.$ac_ext
24772 fi
24773 ac_res=`eval 'as_val=${'$as_ac_var'}
24774                  $as_echo "$as_val"'`
24775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24776 $as_echo "$ac_res" >&6; }
24777 as_val=`eval 'as_val=${'$as_ac_var'}
24778                  $as_echo "$as_val"'`
24779    if test "x$as_val" = x""yes; then
24780   cat >>confdefs.h <<_ACEOF
24781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24782 _ACEOF
24783
24784 fi
24785 done
24786
24787   LIBS=$gl_saved_libs
24788
24789   # Code from module cloexec:
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799   gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
24800
24801
24802
24803
24804 cat >>confdefs.h <<\_ACEOF
24805 #define GNULIB_TEST_CLOEXEC 1
24806 _ACEOF
24807
24808
24809   # Code from module close:
24810
24811
24812
24813
24814
24815
24816   GNULIB_CLOSE=1
24817
24818
24819
24820 cat >>confdefs.h <<\_ACEOF
24821 #define GNULIB_TEST_CLOSE 1
24822 _ACEOF
24823
24824
24825
24826   # Code from module close-hook:
24827   # Code from module close-stream:
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
24838
24839
24840     :
24841
24842
24843
24844 cat >>confdefs.h <<_ACEOF
24845 #define GNULIB_CLOSE_STREAM 1
24846 _ACEOF
24847
24848
24849   # Code from module closeout:
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
24860
24861
24862     :
24863
24864   # Code from module configmake:
24865   # Code from module d-ino:
24866   { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
24867 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
24868 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
24869   $as_echo_n "(cached) " >&6
24870 else
24871   if test "$cross_compiling" = yes; then
24872   gl_cv_struct_dirent_d_ino=no
24873 else
24874   cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880 #include <sys/types.h>
24881              #include <sys/stat.h>
24882              #include <dirent.h>
24883
24884 int
24885 main ()
24886 {
24887 DIR *dp = opendir (".");
24888              struct dirent *e;
24889              struct stat st;
24890              if (! dp)
24891                return 1;
24892              e = readdir (dp);
24893              return ! (e
24894                        && stat (e->d_name, &st) == 0
24895                        && e->d_ino == st.st_ino);
24896   ;
24897   return 0;
24898 }
24899 _ACEOF
24900 rm -f conftest$ac_exeext
24901 if { (ac_try="$ac_link"
24902 case "(($ac_try" in
24903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904   *) ac_try_echo=$ac_try;;
24905 esac
24906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24907 $as_echo "$ac_try_echo") >&5
24908   (eval "$ac_link") 2>&5
24909   ac_status=$?
24910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912   { (case "(($ac_try" in
24913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914   *) ac_try_echo=$ac_try;;
24915 esac
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918   (eval "$ac_try") 2>&5
24919   ac_status=$?
24920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; }; then
24922   gl_cv_struct_dirent_d_ino=yes
24923 else
24924   $as_echo "$as_me: program exited with status $ac_status" >&5
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ( exit $ac_status )
24929 gl_cv_struct_dirent_d_ino=no
24930 fi
24931 rm -rf conftest.dSYM
24932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24933 fi
24934
24935
24936 fi
24937 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
24938 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
24939    if test $gl_cv_struct_dirent_d_ino = yes; then
24940
24941 cat >>confdefs.h <<\_ACEOF
24942 #define D_INO_IN_DIRENT 1
24943 _ACEOF
24944
24945    fi
24946
24947
24948   # Code from module dirent:
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963      if test $gl_cv_have_include_next = yes; then
24964        gl_cv_next_dirent_h='<'dirent.h'>'
24965      else
24966        { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
24967 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
24968 if test "${gl_cv_next_dirent_h+set}" = set; then
24969   $as_echo_n "(cached) " >&6
24970 else
24971
24972           if test $ac_cv_header_dirent_h = yes; then
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 #include <dirent.h>
24980
24981 _ACEOF
24982                                                                                                 case "$host_os" in
24983               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24984               *)    gl_absname_cpp="$ac_cpp" ;;
24985             esac
24986                                                 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24987                sed -n '\#/dirent.h#{
24988                  s#.*"\(.*/dirent.h\)".*#\1#
24989                  s#^/[^/]#//&#
24990                  p
24991                  q
24992                }'`'"'
24993           else
24994             gl_cv_next_dirent_h='<'dirent.h'>'
24995           fi
24996
24997 fi
24998 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
24999 $as_echo "$gl_cv_next_dirent_h" >&6; }
25000      fi
25001      NEXT_DIRENT_H=$gl_cv_next_dirent_h
25002
25003      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25004        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25005        gl_next_as_first_directive='<'dirent.h'>'
25006      else
25007        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25008        gl_next_as_first_directive=$gl_cv_next_dirent_h
25009      fi
25010      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020   for gl_func in alphasort dirfd fdopendir scandir; do
25021     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25022     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25024 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25025   $as_echo_n "(cached) " >&6
25026 else
25027   cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033 #include <dirent.h>
25034
25035 int
25036 main ()
25037 {
25038 #undef $gl_func
25039   (void) $gl_func;
25040   ;
25041   return 0;
25042 }
25043 _ACEOF
25044 rm -f conftest.$ac_objext
25045 if { (ac_try="$ac_compile"
25046 case "(($ac_try" in
25047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25048   *) ac_try_echo=$ac_try;;
25049 esac
25050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25051 $as_echo "$ac_try_echo") >&5
25052   (eval "$ac_compile") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_c_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest.$ac_objext; then
25062   eval "$as_gl_Symbol=yes"
25063 else
25064   $as_echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25066
25067         eval "$as_gl_Symbol=no"
25068 fi
25069
25070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 fi
25072 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25073                  $as_echo "$as_val"'`
25074                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25075 $as_echo "$ac_res" >&6; }
25076      as_val=`eval 'as_val=${'$as_gl_Symbol'}
25077                  $as_echo "$as_val"'`
25078    if test "x$as_val" = x""yes; then
25079   cat >>confdefs.h <<_ACEOF
25080 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25081 _ACEOF
25082
25083                      eval ac_cv_have_decl_$gl_func=yes
25084 fi
25085
25086       done
25087
25088
25089   # Code from module dirent-safer:
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105   gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
25106
25107
25108
25109
25110 cat >>confdefs.h <<_ACEOF
25111 #define GNULIB_DIRENT_SAFER 1
25112 _ACEOF
25113
25114
25115   # Code from module dirfd:
25116
25117
25118
25119     :
25120
25121
25122
25123
25124
25125
25126
25127
25128 for ac_func in dirfd
25129 do
25130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25132 $as_echo_n "checking for $ac_func... " >&6; }
25133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25134   $as_echo_n "(cached) " >&6
25135 else
25136   cat >conftest.$ac_ext <<_ACEOF
25137 /* confdefs.h.  */
25138 _ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h.  */
25142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25144 #define $ac_func innocuous_$ac_func
25145
25146 /* System header to define __stub macros and hopefully few prototypes,
25147     which can conflict with char $ac_func (); below.
25148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25149     <limits.h> exists even on freestanding compilers.  */
25150
25151 #ifdef __STDC__
25152 # include <limits.h>
25153 #else
25154 # include <assert.h>
25155 #endif
25156
25157 #undef $ac_func
25158
25159 /* Override any GCC internal prototype to avoid an error.
25160    Use char because int might match the return type of a GCC
25161    builtin and then its argument prototype would still apply.  */
25162 #ifdef __cplusplus
25163 extern "C"
25164 #endif
25165 char $ac_func ();
25166 /* The GNU C library defines this for functions which it implements
25167     to always fail with ENOSYS.  Some functions are actually named
25168     something starting with __ and the normal name is an alias.  */
25169 #if defined __stub_$ac_func || defined __stub___$ac_func
25170 choke me
25171 #endif
25172
25173 int
25174 main ()
25175 {
25176 return $ac_func ();
25177   ;
25178   return 0;
25179 }
25180 _ACEOF
25181 rm -f conftest.$ac_objext conftest$ac_exeext
25182 if { (ac_try="$ac_link"
25183 case "(($ac_try" in
25184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185   *) ac_try_echo=$ac_try;;
25186 esac
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189   (eval "$ac_link") 2>conftest.er1
25190   ac_status=$?
25191   grep -v '^ *+' conftest.er1 >conftest.err
25192   rm -f conftest.er1
25193   cat conftest.err >&5
25194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); } && {
25196          test -z "$ac_c_werror_flag" ||
25197          test ! -s conftest.err
25198        } && test -s conftest$ac_exeext && {
25199          test "$cross_compiling" = yes ||
25200          $as_test_x conftest$ac_exeext
25201        }; then
25202   eval "$as_ac_var=yes"
25203 else
25204   $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207         eval "$as_ac_var=no"
25208 fi
25209
25210 rm -rf conftest.dSYM
25211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25212       conftest$ac_exeext conftest.$ac_ext
25213 fi
25214 ac_res=`eval 'as_val=${'$as_ac_var'}
25215                  $as_echo "$as_val"'`
25216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25217 $as_echo "$ac_res" >&6; }
25218 as_val=`eval 'as_val=${'$as_ac_var'}
25219                  $as_echo "$as_val"'`
25220    if test "x$as_val" = x""yes; then
25221   cat >>confdefs.h <<_ACEOF
25222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25223 _ACEOF
25224
25225 fi
25226 done
25227
25228   { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
25229 $as_echo_n "checking whether dirfd is declared... " >&6; }
25230 if test "${ac_cv_have_decl_dirfd+set}" = set; then
25231   $as_echo_n "(cached) " >&6
25232 else
25233   cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h.  */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h.  */
25239 #include <sys/types.h>
25240      #include <dirent.h>
25241
25242 int
25243 main ()
25244 {
25245 #ifndef dirfd
25246   (void) dirfd;
25247 #endif
25248
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25260 $as_echo "$ac_try_echo") >&5
25261   (eval "$ac_compile") 2>conftest.er1
25262   ac_status=$?
25263   grep -v '^ *+' conftest.er1 >conftest.err
25264   rm -f conftest.er1
25265   cat conftest.err >&5
25266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); } && {
25268          test -z "$ac_c_werror_flag" ||
25269          test ! -s conftest.err
25270        } && test -s conftest.$ac_objext; then
25271   ac_cv_have_decl_dirfd=yes
25272 else
25273   $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276         ac_cv_have_decl_dirfd=no
25277 fi
25278
25279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 fi
25281 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
25282 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
25283 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
25284
25285 cat >>confdefs.h <<_ACEOF
25286 #define HAVE_DECL_DIRFD 1
25287 _ACEOF
25288
25289
25290 else
25291   cat >>confdefs.h <<_ACEOF
25292 #define HAVE_DECL_DIRFD 0
25293 _ACEOF
25294
25295
25296 fi
25297
25298
25299   if test $ac_cv_have_decl_dirfd = no; then
25300     HAVE_DECL_DIRFD=0
25301   fi
25302
25303   { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
25304 $as_echo_n "checking whether dirfd is a macro... " >&6; }
25305 if test "${gl_cv_func_dirfd_macro+set}" = set; then
25306   $as_echo_n "(cached) " >&6
25307 else
25308   cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314
25315 #include <sys/types.h>
25316 #include <dirent.h>
25317 #ifdef dirfd
25318  dirent_header_defines_dirfd
25319 #endif
25320 _ACEOF
25321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25322   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
25323   gl_cv_func_dirfd_macro=yes
25324 else
25325   gl_cv_func_dirfd_macro=no
25326 fi
25327 rm -f conftest*
25328
25329 fi
25330 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
25331 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
25332
25333   # Use the replacement only if we have no function or macro with that name.
25334   if test $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro = no,no; then
25335     if test $ac_cv_have_decl_dirfd = yes; then
25336       # If the system declares dirfd already, let's declare rpl_dirfd instead.
25337       REPLACE_DIRFD=1
25338     fi
25339
25340
25341
25342
25343
25344
25345
25346
25347   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
25348
25349     { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
25350 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
25351 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
25352   $as_echo_n "(cached) " >&6
25353 else
25354
25355         dirfd_save_CFLAGS=$CFLAGS
25356         for ac_expr in d_fd dd_fd; do
25357
25358           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
25359           cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365
25366              #include <sys/types.h>
25367              #include <dirent.h>
25368 int
25369 main ()
25370 {
25371 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383 $as_echo "$ac_try_echo") >&5
25384   (eval "$ac_compile") 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } && {
25391          test -z "$ac_c_werror_flag" ||
25392          test ! -s conftest.err
25393        } && test -s conftest.$ac_objext; then
25394   dir_fd_found=yes
25395
25396 else
25397   $as_echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400
25401 fi
25402
25403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404           CFLAGS=$dirfd_save_CFLAGS
25405           test "$dir_fd_found" = yes && break
25406         done
25407         test "$dir_fd_found" = yes || ac_expr=no_such_member
25408
25409         gl_cv_sys_dir_fd_member_name=$ac_expr
25410
25411
25412 fi
25413 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
25414 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
25415     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
25416
25417 cat >>confdefs.h <<_ACEOF
25418 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
25419 _ACEOF
25420
25421     fi
25422
25423
25424   fi
25425
25426
25427
25428
25429   GNULIB_DIRFD=1
25430
25431
25432
25433 cat >>confdefs.h <<\_ACEOF
25434 #define GNULIB_TEST_DIRFD 1
25435 _ACEOF
25436
25437
25438
25439   # Code from module dirname:
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
25461
25462
25463
25464
25465 cat >>confdefs.h <<_ACEOF
25466 #define GNULIB_DIRNAME 1
25467 _ACEOF
25468
25469
25470   # Code from module dirname-lgpl:
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
25501
25502
25503
25504
25505
25506
25507   # Code from module double-slash-root:
25508
25509
25510   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
25511 $as_echo_n "checking whether // is distinct from /... " >&6; }
25512 if test "${gl_cv_double_slash_root+set}" = set; then
25513   $as_echo_n "(cached) " >&6
25514 else
25515    if test x"$cross_compiling" = xyes ; then
25516         # When cross-compiling, there is no way to tell whether // is special
25517         # short of a list of hosts.  However, the only known hosts to date
25518         # that have a distinct // are Apollo DomainOS (too old to port to),
25519         # Cygwin, and z/OS.  If anyone knows of another system for which // has
25520         # special semantics and is distinct from /, please report it to
25521         # <bug-gnulib@gnu.org>.
25522         case $host in
25523           *-cygwin | i370-ibm-openedition)
25524             gl_cv_double_slash_root=yes ;;
25525           *)
25526             # Be optimistic and assume that / and // are the same when we
25527             # don't know.
25528             gl_cv_double_slash_root='unknown, assuming no' ;;
25529         esac
25530       else
25531         set x `ls -di / // 2>/dev/null`
25532         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
25533           gl_cv_double_slash_root=no
25534         else
25535           gl_cv_double_slash_root=yes
25536         fi
25537       fi
25538 fi
25539 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
25540 $as_echo "$gl_cv_double_slash_root" >&6; }
25541   if test "$gl_cv_double_slash_root" = yes; then
25542
25543 cat >>confdefs.h <<\_ACEOF
25544 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
25545 _ACEOF
25546
25547   fi
25548
25549   # Code from module dup2:
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559   if test $ac_cv_func_dup2 = no; then
25560     HAVE_DUP2=0
25561
25562
25563
25564
25565
25566
25567
25568
25569   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25570
25571   else
25572     { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
25573 $as_echo_n "checking whether dup2 works... " >&6; }
25574 if test "${gl_cv_func_dup2_works+set}" = set; then
25575   $as_echo_n "(cached) " >&6
25576 else
25577   if test "$cross_compiling" = yes; then
25578   case "$host_os" in
25579            mingw*) # on this platform, dup2 always returns 0 for success
25580              gl_cv_func_dup2_works=no;;
25581            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
25582              gl_cv_func_dup2_works=no;;
25583            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
25584                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
25585              gl_cv_func_dup2_works=no;;
25586            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
25587              gl_cv_func_dup2_works=no;;
25588            *) gl_cv_func_dup2_works=yes;;
25589          esac
25590 else
25591   cat >conftest.$ac_ext <<_ACEOF
25592
25593          /* confdefs.h.  */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h.  */
25598 #include <unistd.h>
25599 #include <errno.h>
25600 int
25601 main ()
25602 {
25603 if (dup2 (1, 1) == 0)
25604               return 1;
25605             close (0);
25606             if (dup2 (0, 0) != -1)
25607               return 2;
25608             /* Many gnulib modules require POSIX conformance of EBADF.  */
25609             if (dup2 (1, 1000000) == -1 && errno != EBADF)
25610               return 3;
25611             return 0;
25612
25613   ;
25614   return 0;
25615 }
25616
25617 _ACEOF
25618 rm -f conftest$ac_exeext
25619 if { (ac_try="$ac_link"
25620 case "(($ac_try" in
25621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622   *) ac_try_echo=$ac_try;;
25623 esac
25624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25625 $as_echo "$ac_try_echo") >&5
25626   (eval "$ac_link") 2>&5
25627   ac_status=$?
25628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25630   { (case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636   (eval "$ac_try") 2>&5
25637   ac_status=$?
25638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); }; }; then
25640   gl_cv_func_dup2_works=yes
25641 else
25642   $as_echo "$as_me: program exited with status $ac_status" >&5
25643 $as_echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 ( exit $ac_status )
25647 gl_cv_func_dup2_works=no
25648 fi
25649 rm -rf conftest.dSYM
25650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25651 fi
25652
25653
25654
25655 fi
25656 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
25657 $as_echo "$gl_cv_func_dup2_works" >&6; }
25658     if test "$gl_cv_func_dup2_works" = no; then
25659
25660
25661   if test $ac_cv_func_dup2 = yes; then
25662     REPLACE_DUP2=1
25663   fi
25664
25665
25666
25667
25668
25669
25670
25671
25672   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25673
25674
25675     fi
25676   fi
25677
25678
25679
25680
25681   GNULIB_DUP2=1
25682
25683
25684
25685 cat >>confdefs.h <<\_ACEOF
25686 #define GNULIB_TEST_DUP2 1
25687 _ACEOF
25688
25689
25690
25691   # Code from module environ:
25692
25693
25694
25695
25696   GNULIB_ENVIRON=1
25697
25698
25699
25700 cat >>confdefs.h <<\_ACEOF
25701 #define GNULIB_TEST_ENVIRON 1
25702 _ACEOF
25703
25704
25705
25706   # Code from module errno:
25707
25708   # Code from module error:
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723   { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
25724 $as_echo_n "checking for error_at_line... " >&6; }
25725 if test "${ac_cv_lib_error_at_line+set}" = set; then
25726   $as_echo_n "(cached) " >&6
25727 else
25728   cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734 #include <error.h>
25735 int
25736 main ()
25737 {
25738 error_at_line (0, 0, "", 0, "an error occurred");
25739   ;
25740   return 0;
25741 }
25742 _ACEOF
25743 rm -f conftest.$ac_objext conftest$ac_exeext
25744 if { (ac_try="$ac_link"
25745 case "(($ac_try" in
25746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747   *) ac_try_echo=$ac_try;;
25748 esac
25749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25750 $as_echo "$ac_try_echo") >&5
25751   (eval "$ac_link") 2>conftest.er1
25752   ac_status=$?
25753   grep -v '^ *+' conftest.er1 >conftest.err
25754   rm -f conftest.er1
25755   cat conftest.err >&5
25756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757   (exit $ac_status); } && {
25758          test -z "$ac_c_werror_flag" ||
25759          test ! -s conftest.err
25760        } && test -s conftest$ac_exeext && {
25761          test "$cross_compiling" = yes ||
25762          $as_test_x conftest$ac_exeext
25763        }; then
25764   ac_cv_lib_error_at_line=yes
25765 else
25766   $as_echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769         ac_cv_lib_error_at_line=no
25770 fi
25771
25772 rm -rf conftest.dSYM
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774       conftest$ac_exeext conftest.$ac_ext
25775 fi
25776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25777 $as_echo "$ac_cv_lib_error_at_line" >&6; }
25778   if test $ac_cv_lib_error_at_line = no; then
25779
25780
25781
25782
25783
25784
25785
25786
25787   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
25788
25789   fi
25790
25791
25792
25793
25794   :
25795
25796
25797
25798
25799   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
25800
25801
25802
25803   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
25804
25805   # Code from module exclude:
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
25816
25817
25818   # Code from module exitfail:
25819   # Code from module extensions:
25820   # Code from module fchdir:
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831   if test $ac_cv_func_fchdir = no; then
25832     HAVE_FCHDIR=0
25833
25834
25835
25836
25837
25838
25839
25840
25841   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
25842
25843     :
25844
25845 cat >>confdefs.h <<\_ACEOF
25846 #define REPLACE_FCHDIR 1
25847 _ACEOF
25848
25849                 REPLACE_OPENDIR=1
25850     REPLACE_CLOSEDIR=1
25851     REPLACE_DUP=1
25852
25853
25854   REPLACE_OPEN=1
25855
25856
25857
25858
25859
25860
25861
25862
25863   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
25864
25865
25866
25867
25868   :
25869
25870
25871
25872
25873   REPLACE_CLOSE=1
25874
25875
25876
25877
25878
25879
25880
25881
25882   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
25883
25884
25885
25886   REPLACE_FCLOSE=1
25887
25888
25889
25890
25891
25892
25893
25894
25895   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
25896
25897
25898
25899
25900
25901   if test $ac_cv_func_dup2 = yes; then
25902     REPLACE_DUP2=1
25903   fi
25904
25905
25906
25907
25908
25909
25910
25911
25912   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923   if test $ac_cv_func_fcntl = no; then
25924     HAVE_FCNTL=0
25925   else
25926     REPLACE_FCNTL=1
25927   fi
25928
25929
25930
25931
25932
25933
25934
25935
25936   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
25937
25938
25939
25940     :
25941
25942     { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
25943 $as_echo_n "checking whether open can visit directories... " >&6; }
25944 if test "${gl_cv_func_open_directory_works+set}" = set; then
25945   $as_echo_n "(cached) " >&6
25946 else
25947   if test "$cross_compiling" = yes; then
25948   gl_cv_func_open_directory_works="guessing no"
25949 else
25950   cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956 #include <fcntl.h>
25957
25958 int
25959 main ()
25960 {
25961 return open(".", O_RDONLY) < 0;
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25973 $as_echo "$ac_try_echo") >&5
25974   (eval "$ac_link") 2>&5
25975   ac_status=$?
25976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25978   { (case "(($ac_try" in
25979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980   *) ac_try_echo=$ac_try;;
25981 esac
25982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25983 $as_echo "$ac_try_echo") >&5
25984   (eval "$ac_try") 2>&5
25985   ac_status=$?
25986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); }; }; then
25988   gl_cv_func_open_directory_works=yes
25989 else
25990   $as_echo "$as_me: program exited with status $ac_status" >&5
25991 $as_echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994 ( exit $ac_status )
25995 gl_cv_func_open_directory_works=no
25996 fi
25997 rm -rf conftest.dSYM
25998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25999 fi
26000
26001
26002 fi
26003 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
26004 $as_echo "$gl_cv_func_open_directory_works" >&6; }
26005     if test "$gl_cv_func_open_directory_works" != yes; then
26006
26007 cat >>confdefs.h <<\_ACEOF
26008 #define REPLACE_OPEN_DIRECTORY 1
26009 _ACEOF
26010
26011       REPLACE_FSTAT=1
26012     fi
26013   fi
26014
26015
26016
26017
26018   GNULIB_FCHDIR=1
26019
26020
26021
26022 cat >>confdefs.h <<\_ACEOF
26023 #define GNULIB_TEST_FCHDIR 1
26024 _ACEOF
26025
26026
26027
26028   # Code from module fclose:
26029
26030
26031
26032
26033
26034   GNULIB_FCLOSE=1
26035
26036
26037
26038 cat >>confdefs.h <<\_ACEOF
26039 #define GNULIB_TEST_FCLOSE 1
26040 _ACEOF
26041
26042
26043
26044   # Code from module fcntl:
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055   if test $ac_cv_func_fcntl = no; then
26056
26057
26058
26059
26060
26061
26062
26063
26064   if test $ac_cv_func_fcntl = no; then
26065     HAVE_FCNTL=0
26066   else
26067     REPLACE_FCNTL=1
26068   fi
26069
26070
26071
26072
26073
26074
26075
26076
26077   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26078
26079
26080   else
26081         { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
26082 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
26083 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
26084   $as_echo_n "(cached) " >&6
26085 else
26086   if test "$cross_compiling" = yes; then
26087   # Guess that it works on glibc systems
26088           case $host_os in #((
26089             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
26090             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
26091           esac
26092 else
26093   cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h.  */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h.  */
26099
26100 #include <fcntl.h>
26101
26102 int
26103 main ()
26104 {
26105 return fcntl (0, F_DUPFD, -1) != -1;
26106
26107   ;
26108   return 0;
26109 }
26110 _ACEOF
26111 rm -f conftest$ac_exeext
26112 if { (ac_try="$ac_link"
26113 case "(($ac_try" in
26114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115   *) ac_try_echo=$ac_try;;
26116 esac
26117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26118 $as_echo "$ac_try_echo") >&5
26119   (eval "$ac_link") 2>&5
26120   ac_status=$?
26121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26123   { (case "(($ac_try" in
26124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125   *) ac_try_echo=$ac_try;;
26126 esac
26127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26128 $as_echo "$ac_try_echo") >&5
26129   (eval "$ac_try") 2>&5
26130   ac_status=$?
26131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); }; }; then
26133   gl_cv_func_fcntl_f_dupfd_works=yes
26134 else
26135   $as_echo "$as_me: program exited with status $ac_status" >&5
26136 $as_echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139 ( exit $ac_status )
26140 gl_cv_func_fcntl_f_dupfd_works=no
26141 fi
26142 rm -rf conftest.dSYM
26143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26144 fi
26145
26146
26147 fi
26148 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
26149 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
26150     case $gl_cv_func_fcntl_f_dupfd_works in
26151       *yes) ;;
26152       *)
26153
26154
26155
26156
26157
26158
26159
26160   if test $ac_cv_func_fcntl = no; then
26161     HAVE_FCNTL=0
26162   else
26163     REPLACE_FCNTL=1
26164   fi
26165
26166
26167
26168
26169
26170
26171
26172
26173   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26174
26175
26176
26177 cat >>confdefs.h <<\_ACEOF
26178 #define FCNTL_DUPFD_BUGGY 1
26179 _ACEOF
26180  ;;
26181     esac
26182
26183         { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
26184 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
26185 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
26186   $as_echo_n "(cached) " >&6
26187 else
26188   cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h.  */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h.  */
26194
26195 #include <fcntl.h>
26196 #ifndef F_DUPFD_CLOEXEC
26197 choke me
26198 #endif
26199
26200 int
26201 main ()
26202 {
26203
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 rm -f conftest.$ac_objext
26209 if { (ac_try="$ac_compile"
26210 case "(($ac_try" in
26211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212   *) ac_try_echo=$ac_try;;
26213 esac
26214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26215 $as_echo "$ac_try_echo") >&5
26216   (eval "$ac_compile") 2>conftest.er1
26217   ac_status=$?
26218   grep -v '^ *+' conftest.er1 >conftest.err
26219   rm -f conftest.er1
26220   cat conftest.err >&5
26221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); } && {
26223          test -z "$ac_c_werror_flag" ||
26224          test ! -s conftest.err
26225        } && test -s conftest.$ac_objext; then
26226   cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h.  */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h.  */
26232
26233 #ifdef __linux__
26234 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
26235    it to support the semantics on older kernels that failed with EINVAL.  */
26236 choke me
26237 #endif
26238
26239 int
26240 main ()
26241 {
26242
26243   ;
26244   return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext
26248 if { (ac_try="$ac_compile"
26249 case "(($ac_try" in
26250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251   *) ac_try_echo=$ac_try;;
26252 esac
26253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255   (eval "$ac_compile") 2>conftest.er1
26256   ac_status=$?
26257   grep -v '^ *+' conftest.er1 >conftest.err
26258   rm -f conftest.er1
26259   cat conftest.err >&5
26260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261   (exit $ac_status); } && {
26262          test -z "$ac_c_werror_flag" ||
26263          test ! -s conftest.err
26264        } && test -s conftest.$ac_objext; then
26265   gl_cv_func_fcntl_f_dupfd_cloexec=yes
26266 else
26267   $as_echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270         gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
26271 fi
26272
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 else
26275   $as_echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278         gl_cv_func_fcntl_f_dupfd_cloexec=no
26279 fi
26280
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26282 fi
26283 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
26284 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
26285     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
26286
26287
26288
26289
26290
26291
26292
26293
26294   if test $ac_cv_func_fcntl = no; then
26295     HAVE_FCNTL=0
26296   else
26297     REPLACE_FCNTL=1
26298   fi
26299
26300
26301
26302
26303
26304
26305
26306
26307   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26308
26309
26310           fi
26311   fi
26312
26313
26314
26315
26316   GNULIB_FCNTL=1
26317
26318
26319
26320 cat >>confdefs.h <<\_ACEOF
26321 #define GNULIB_TEST_FCNTL 1
26322 _ACEOF
26323
26324
26325
26326   # Code from module fcntl-h:
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341      if test $gl_cv_have_include_next = yes; then
26342        gl_cv_next_fcntl_h='<'fcntl.h'>'
26343      else
26344        { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
26345 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
26346 if test "${gl_cv_next_fcntl_h+set}" = set; then
26347   $as_echo_n "(cached) " >&6
26348 else
26349
26350           if test $ac_cv_header_fcntl_h = yes; then
26351             cat >conftest.$ac_ext <<_ACEOF
26352 /* confdefs.h.  */
26353 _ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h.  */
26357 #include <fcntl.h>
26358
26359 _ACEOF
26360                                                                                                 case "$host_os" in
26361               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26362               *)    gl_absname_cpp="$ac_cpp" ;;
26363             esac
26364                                                 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26365                sed -n '\#/fcntl.h#{
26366                  s#.*"\(.*/fcntl.h\)".*#\1#
26367                  s#^/[^/]#//&#
26368                  p
26369                  q
26370                }'`'"'
26371           else
26372             gl_cv_next_fcntl_h='<'fcntl.h'>'
26373           fi
26374
26375 fi
26376 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
26377 $as_echo "$gl_cv_next_fcntl_h" >&6; }
26378      fi
26379      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
26380
26381      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26383        gl_next_as_first_directive='<'fcntl.h'>'
26384      else
26385        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26386        gl_next_as_first_directive=$gl_cv_next_fcntl_h
26387      fi
26388      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
26389
26390
26391
26392
26393
26394
26395
26396   for gl_func in fcntl openat; do
26397     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26398     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
26399 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26400 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
26401   $as_echo_n "(cached) " >&6
26402 else
26403   cat >conftest.$ac_ext <<_ACEOF
26404 /* confdefs.h.  */
26405 _ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h.  */
26409 #include <fcntl.h>
26410
26411 int
26412 main ()
26413 {
26414 #undef $gl_func
26415   (void) $gl_func;
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 rm -f conftest.$ac_objext
26421 if { (ac_try="$ac_compile"
26422 case "(($ac_try" in
26423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424   *) ac_try_echo=$ac_try;;
26425 esac
26426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26427 $as_echo "$ac_try_echo") >&5
26428   (eval "$ac_compile") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } && {
26435          test -z "$ac_c_werror_flag" ||
26436          test ! -s conftest.err
26437        } && test -s conftest.$ac_objext; then
26438   eval "$as_gl_Symbol=yes"
26439 else
26440   $as_echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26442
26443         eval "$as_gl_Symbol=no"
26444 fi
26445
26446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26447 fi
26448 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
26449                  $as_echo "$as_val"'`
26450                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26451 $as_echo "$ac_res" >&6; }
26452      as_val=`eval 'as_val=${'$as_gl_Symbol'}
26453                  $as_echo "$as_val"'`
26454    if test "x$as_val" = x""yes; then
26455   cat >>confdefs.h <<_ACEOF
26456 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26457 _ACEOF
26458
26459                      eval ac_cv_have_decl_$gl_func=yes
26460 fi
26461
26462       done
26463
26464
26465   # Code from module fdopendir:
26466
26467
26468     { $as_echo "$as_me:$LINENO: checking whether fdopendir is declared" >&5
26469 $as_echo_n "checking whether fdopendir is declared... " >&6; }
26470 if test "${ac_cv_have_decl_fdopendir+set}" = set; then
26471   $as_echo_n "(cached) " >&6
26472 else
26473   cat >conftest.$ac_ext <<_ACEOF
26474 /* confdefs.h.  */
26475 _ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h.  */
26479
26480 #include <dirent.h>
26481
26482
26483 int
26484 main ()
26485 {
26486 #ifndef fdopendir
26487   (void) fdopendir;
26488 #endif
26489
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498   *) ac_try_echo=$ac_try;;
26499 esac
26500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26501 $as_echo "$ac_try_echo") >&5
26502   (eval "$ac_compile") 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } && {
26509          test -z "$ac_c_werror_flag" ||
26510          test ! -s conftest.err
26511        } && test -s conftest.$ac_objext; then
26512   ac_cv_have_decl_fdopendir=yes
26513 else
26514   $as_echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26516
26517         ac_cv_have_decl_fdopendir=no
26518 fi
26519
26520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26521 fi
26522 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdopendir" >&5
26523 $as_echo "$ac_cv_have_decl_fdopendir" >&6; }
26524 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then
26525
26526 cat >>confdefs.h <<_ACEOF
26527 #define HAVE_DECL_FDOPENDIR 1
26528 _ACEOF
26529
26530
26531 else
26532   cat >>confdefs.h <<_ACEOF
26533 #define HAVE_DECL_FDOPENDIR 0
26534 _ACEOF
26535
26536 HAVE_DECL_FDOPENDIR=0
26537 fi
26538
26539
26540
26541
26542
26543
26544
26545
26546   if test $ac_cv_func_fdopendir = no; then
26547
26548
26549
26550
26551
26552
26553
26554
26555   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
26566
26567
26568     :
26569
26570     HAVE_FDOPENDIR=0
26571   else
26572     { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
26573 $as_echo_n "checking whether fdopendir works... " >&6; }
26574 if test "${gl_cv_func_fdopendir_works+set}" = set; then
26575   $as_echo_n "(cached) " >&6
26576 else
26577   if test "$cross_compiling" = yes; then
26578   gl_cv_func_fdopendir_works="guessing no"
26579 else
26580   cat >conftest.$ac_ext <<_ACEOF
26581 /* confdefs.h.  */
26582 _ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h.  */
26586
26587 #include <dirent.h>
26588 #include <fcntl.h>
26589 #if !HAVE_DECL_FDOPENDIR
26590 extern DIR *fdopendir (int);
26591 #endif
26592
26593 int
26594 main ()
26595 {
26596 int fd = open ("conftest.c", O_RDONLY);
26597      if (fd < 0) return 2;
26598      return !!fdopendir (fd);
26599   ;
26600   return 0;
26601 }
26602 _ACEOF
26603 rm -f conftest$ac_exeext
26604 if { (ac_try="$ac_link"
26605 case "(($ac_try" in
26606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607   *) ac_try_echo=$ac_try;;
26608 esac
26609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26610 $as_echo "$ac_try_echo") >&5
26611   (eval "$ac_link") 2>&5
26612   ac_status=$?
26613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26615   { (case "(($ac_try" in
26616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617   *) ac_try_echo=$ac_try;;
26618 esac
26619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26620 $as_echo "$ac_try_echo") >&5
26621   (eval "$ac_try") 2>&5
26622   ac_status=$?
26623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; }; then
26625   gl_cv_func_fdopendir_works=yes
26626 else
26627   $as_echo "$as_me: program exited with status $ac_status" >&5
26628 $as_echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26630
26631 ( exit $ac_status )
26632 gl_cv_func_fdopendir_works=no
26633 fi
26634 rm -rf conftest.dSYM
26635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26636 fi
26637
26638
26639 fi
26640 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
26641 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
26642     if test "$gl_cv_func_fdopendir_works" != yes; then
26643       REPLACE_FDOPENDIR=1
26644
26645     :
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
26656
26657     fi
26658   fi
26659
26660
26661
26662
26663   GNULIB_FDOPENDIR=1
26664
26665
26666
26667 cat >>confdefs.h <<\_ACEOF
26668 #define GNULIB_TEST_FDOPENDIR 1
26669 _ACEOF
26670
26671
26672
26673
26674
26675 cat >>confdefs.h <<_ACEOF
26676 #define GNULIB_FDOPENDIR 1
26677 _ACEOF
26678
26679
26680   # Code from module fdutimensat:
26681
26682
26683 cat >>confdefs.h <<_ACEOF
26684 #define GNULIB_FDUTIMENSAT 1
26685 _ACEOF
26686
26687
26688   # Code from module fileblocks:
26689
26690   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
26691 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
26692 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
26693   $as_echo_n "(cached) " >&6
26694 else
26695   cat >conftest.$ac_ext <<_ACEOF
26696 /* confdefs.h.  */
26697 _ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h.  */
26701 $ac_includes_default
26702 int
26703 main ()
26704 {
26705 static struct stat ac_aggr;
26706 if (ac_aggr.st_blocks)
26707 return 0;
26708   ;
26709   return 0;
26710 }
26711 _ACEOF
26712 rm -f conftest.$ac_objext
26713 if { (ac_try="$ac_compile"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26719 $as_echo "$ac_try_echo") >&5
26720   (eval "$ac_compile") 2>conftest.er1
26721   ac_status=$?
26722   grep -v '^ *+' conftest.er1 >conftest.err
26723   rm -f conftest.er1
26724   cat conftest.err >&5
26725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } && {
26727          test -z "$ac_c_werror_flag" ||
26728          test ! -s conftest.err
26729        } && test -s conftest.$ac_objext; then
26730   ac_cv_member_struct_stat_st_blocks=yes
26731 else
26732   $as_echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26734
26735         cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741 $ac_includes_default
26742 int
26743 main ()
26744 {
26745 static struct stat ac_aggr;
26746 if (sizeof ac_aggr.st_blocks)
26747 return 0;
26748   ;
26749   return 0;
26750 }
26751 _ACEOF
26752 rm -f conftest.$ac_objext
26753 if { (ac_try="$ac_compile"
26754 case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26759 $as_echo "$ac_try_echo") >&5
26760   (eval "$ac_compile") 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } && {
26767          test -z "$ac_c_werror_flag" ||
26768          test ! -s conftest.err
26769        } && test -s conftest.$ac_objext; then
26770   ac_cv_member_struct_stat_st_blocks=yes
26771 else
26772   $as_echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775         ac_cv_member_struct_stat_st_blocks=no
26776 fi
26777
26778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26779 fi
26780
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26782 fi
26783 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
26784 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
26785 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
26786
26787 cat >>confdefs.h <<_ACEOF
26788 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26789 _ACEOF
26790
26791
26792 cat >>confdefs.h <<\_ACEOF
26793 #define HAVE_ST_BLOCKS 1
26794 _ACEOF
26795
26796 else
26797
26798
26799
26800
26801
26802
26803
26804
26805   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
26806
26807 fi
26808
26809
26810     if test $ac_cv_member_struct_stat_st_blocks = no; then
26811
26812
26813
26814
26815
26816
26817
26818   :
26819
26820   fi
26821
26822   # Code from module filenamecat-lgpl:
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832   gl_LIBOBJS="$gl_LIBOBJS filenamecat-lgpl.$ac_objext"
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842   # Code from module float:
26843
26844
26845
26846   FLOAT_H=
26847   case "$host_os" in
26848     beos* | openbsd* | mirbsd*)
26849       FLOAT_H=float.h
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861      if test $gl_cv_have_include_next = yes; then
26862        gl_cv_next_float_h='<'float.h'>'
26863      else
26864        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
26865 $as_echo_n "checking absolute name of <float.h>... " >&6; }
26866 if test "${gl_cv_next_float_h+set}" = set; then
26867   $as_echo_n "(cached) " >&6
26868 else
26869
26870           if test $ac_cv_header_float_h = yes; then
26871             cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877 #include <float.h>
26878
26879 _ACEOF
26880                                                                                                 case "$host_os" in
26881               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26882               *)    gl_absname_cpp="$ac_cpp" ;;
26883             esac
26884                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26885                sed -n '\#/float.h#{
26886                  s#.*"\(.*/float.h\)".*#\1#
26887                  s#^/[^/]#//&#
26888                  p
26889                  q
26890                }'`'"'
26891           else
26892             gl_cv_next_float_h='<'float.h'>'
26893           fi
26894
26895 fi
26896 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
26897 $as_echo "$gl_cv_next_float_h" >&6; }
26898      fi
26899      NEXT_FLOAT_H=$gl_cv_next_float_h
26900
26901      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26902        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26903        gl_next_as_first_directive='<'float.h'>'
26904      else
26905        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26906        gl_next_as_first_directive=$gl_cv_next_float_h
26907      fi
26908      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
26909
26910
26911
26912       ;;
26913   esac
26914
26915
26916   # Code from module fnmatch:
26917
26918
26919
26920
26921
26922   FNMATCH_H=
26923   gl_fnmatch_required_lowercase=`
26924     echo $gl_fnmatch_required | tr '[A-Z]' '[a-z]'
26925   `
26926   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
26927   { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
26928 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
26929 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
26930   $as_echo_n "(cached) " >&6
26931 else
26932                            if test $gl_fnmatch_required = GNU; then
26933        gl_fnmatch_gnu_start=
26934        gl_fnmatch_gnu_end=
26935      else
26936        gl_fnmatch_gnu_start='#if 0'
26937        gl_fnmatch_gnu_end='#endif'
26938      fi
26939      if test "$cross_compiling" = yes; then
26940   eval "$gl_fnmatch_cache_var=\"guessing no\""
26941 else
26942   cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948 #include <fnmatch.h>
26949             static int
26950             y (char const *pattern, char const *string, int flags)
26951             {
26952               return fnmatch (pattern, string, flags) == 0;
26953             }
26954             static int
26955             n (char const *pattern, char const *string, int flags)
26956             {
26957               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
26958             }
26959
26960 int
26961 main ()
26962 {
26963 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
26964             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
26965             static char const A_1[] = { 'A' - 1, 0 };
26966             static char const A01[] = { 'A' + 1, 0 };
26967             static char const a_1[] = { 'a' - 1, 0 };
26968             static char const a01[] = { 'a' + 1, 0 };
26969             static char const bs_1[] = { '\\\\' - 1, 0 };
26970             static char const bs01[] = { '\\\\' + 1, 0 };
26971             return
26972              !(n ("a*", "", 0)
26973                && y ("a*", "abc", 0)
26974                && n ("d*/*1", "d/s/1", FNM_PATHNAME)
26975                && y ("a\\\\bc", "abc", 0)
26976                && n ("a\\\\bc", "abc", FNM_NOESCAPE)
26977                && y ("*x", ".x", 0)
26978                && n ("*x", ".x", FNM_PERIOD)
26979                && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
26980                && y (apat, "\\\\", 0) && y (apat, "a", 0)
26981                && n (Apat, A_1, 0) == ('A' < '\\\\')
26982                && n (apat, a_1, 0) == ('a' < '\\\\')
26983                && y (Apat, A01, 0) == ('A' < '\\\\')
26984                && y (apat, a01, 0) == ('a' < '\\\\')
26985                && y (Apat, bs_1, 0) == ('A' < '\\\\')
26986                && y (apat, bs_1, 0) == ('a' < '\\\\')
26987                && n (Apat, bs01, 0) == ('A' < '\\\\')
26988                && n (apat, bs01, 0) == ('a' < '\\\\')
26989                $gl_fnmatch_gnu_start
26990                && y ("xxXX", "xXxX", FNM_CASEFOLD)
26991                && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
26992                && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
26993                && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
26994                && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
26995                && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
26996                $gl_fnmatch_gnu_end
26997               );
26998
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 rm -f conftest$ac_exeext
27004 if { (ac_try="$ac_link"
27005 case "(($ac_try" in
27006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007   *) ac_try_echo=$ac_try;;
27008 esac
27009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27010 $as_echo "$ac_try_echo") >&5
27011   (eval "$ac_link") 2>&5
27012   ac_status=$?
27013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27015   { (case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021   (eval "$ac_try") 2>&5
27022   ac_status=$?
27023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; }; then
27025   eval "$gl_fnmatch_cache_var=yes"
27026 else
27027   $as_echo "$as_me: program exited with status $ac_status" >&5
27028 $as_echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 ( exit $ac_status )
27032 eval "$gl_fnmatch_cache_var=no"
27033 fi
27034 rm -rf conftest.dSYM
27035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27036 fi
27037
27038
27039
27040 fi
27041 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
27042                  $as_echo "$as_val"'`
27043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27044 $as_echo "$ac_res" >&6; }
27045   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
27046   if test "$gl_fnmatch_result" = yes; then
27047             rm -f "$gl_source_base/fnmatch.h"
27048   else
27049     FNMATCH_H=fnmatch.h
27050
27051
27052
27053
27054
27055
27056
27057
27058   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
27059
27060
27061 cat >>confdefs.h <<_ACEOF
27062 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
27063 _ACEOF
27064
27065
27066     { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
27067 $as_echo_n "checking whether isblank is declared... " >&6; }
27068 if test "${ac_cv_have_decl_isblank+set}" = set; then
27069   $as_echo_n "(cached) " >&6
27070 else
27071   cat >conftest.$ac_ext <<_ACEOF
27072 /* confdefs.h.  */
27073 _ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h.  */
27077 #include <ctype.h>
27078
27079 int
27080 main ()
27081 {
27082 #ifndef isblank
27083   (void) isblank;
27084 #endif
27085
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (ac_try="$ac_compile"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27097 $as_echo "$ac_try_echo") >&5
27098   (eval "$ac_compile") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } && {
27105          test -z "$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        } && test -s conftest.$ac_objext; then
27108   ac_cv_have_decl_isblank=yes
27109 else
27110   $as_echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113         ac_cv_have_decl_isblank=no
27114 fi
27115
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 fi
27118 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
27119 $as_echo "$ac_cv_have_decl_isblank" >&6; }
27120 if test "x$ac_cv_have_decl_isblank" = x""yes; then
27121
27122 cat >>confdefs.h <<_ACEOF
27123 #define HAVE_DECL_ISBLANK 1
27124 _ACEOF
27125
27126
27127 else
27128   cat >>confdefs.h <<_ACEOF
27129 #define HAVE_DECL_ISBLANK 0
27130 _ACEOF
27131
27132
27133 fi
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162   fi
27163
27164
27165   # Code from module fnmatch-gnu:
27166
27167
27168
27169
27170
27171   # Code from module fpending:
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185   fp_headers='
27186 #     include <stdio.h>
27187 #     if HAVE_STDIO_EXT_H
27188 #      include <stdio_ext.h>
27189 #     endif
27190 '
27191   { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
27192 $as_echo_n "checking whether __fpending is declared... " >&6; }
27193 if test "${ac_cv_have_decl___fpending+set}" = set; then
27194   $as_echo_n "(cached) " >&6
27195 else
27196   cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202 $fp_headers
27203
27204 int
27205 main ()
27206 {
27207 #ifndef __fpending
27208   (void) __fpending;
27209 #endif
27210
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219   *) ac_try_echo=$ac_try;;
27220 esac
27221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27222 $as_echo "$ac_try_echo") >&5
27223   (eval "$ac_compile") 2>conftest.er1
27224   ac_status=$?
27225   grep -v '^ *+' conftest.er1 >conftest.err
27226   rm -f conftest.er1
27227   cat conftest.err >&5
27228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } && {
27230          test -z "$ac_c_werror_flag" ||
27231          test ! -s conftest.err
27232        } && test -s conftest.$ac_objext; then
27233   ac_cv_have_decl___fpending=yes
27234 else
27235   $as_echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27237
27238         ac_cv_have_decl___fpending=no
27239 fi
27240
27241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242 fi
27243 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
27244 $as_echo "$ac_cv_have_decl___fpending" >&6; }
27245 if test "x$ac_cv_have_decl___fpending" = x""yes; then
27246
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_DECL___FPENDING 1
27249 _ACEOF
27250
27251
27252 else
27253   cat >>confdefs.h <<_ACEOF
27254 #define HAVE_DECL___FPENDING 0
27255 _ACEOF
27256
27257
27258 fi
27259
27260
27261   if test $ac_cv_func___fpending = no; then
27262     { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
27263 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
27264 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
27265   $as_echo_n "(cached) " >&6
27266 else
27267
27268         for ac_expr in                                                    \
27269                                                                           \
27270             '# glibc2'                                                    \
27271             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
27272                                                                           \
27273             '# traditional Unix'                                          \
27274             'fp->_ptr - fp->_base'                                        \
27275                                                                           \
27276             '# BSD'                                                       \
27277             'fp->_p - fp->_bf._base'                                      \
27278                                                                           \
27279             '# SCO, Unixware'                                             \
27280             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
27281                                                                           \
27282             '# QNX'                                                       \
27283             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
27284                                                                           \
27285             '# old glibc?'                                                \
27286             'fp->__bufp - fp->__buffer'                                   \
27287                                                                           \
27288             '# old glibc iostream?'                                       \
27289             'fp->_pptr - fp->_pbase'                                      \
27290                                                                           \
27291             '# emx+gcc'                                                   \
27292             'fp->_ptr - fp->_buffer'                                      \
27293                                                                           \
27294             '# VMS'                                                       \
27295             '(*fp)->_ptr - (*fp)->_base'                                  \
27296                                                                           \
27297             '# e.g., DGUX R4.11; the info is not available'               \
27298             1                                                             \
27299             ; do
27300
27301           # Skip each embedded comment.
27302           case "$ac_expr" in '#'*) continue;; esac
27303
27304           cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 #include <stdio.h>
27311 int
27312 main ()
27313 {
27314 FILE *fp = stdin; (void) ($ac_expr);
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext
27320 if { (ac_try="$ac_compile"
27321 case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27326 $as_echo "$ac_try_echo") >&5
27327   (eval "$ac_compile") 2>conftest.er1
27328   ac_status=$?
27329   grep -v '^ *+' conftest.er1 >conftest.err
27330   rm -f conftest.er1
27331   cat conftest.err >&5
27332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); } && {
27334          test -z "$ac_c_werror_flag" ||
27335          test ! -s conftest.err
27336        } && test -s conftest.$ac_objext; then
27337   fp_done=yes
27338
27339 else
27340   $as_echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347           test "$fp_done" = yes && break
27348         done
27349
27350         ac_cv_sys_pending_output_n_bytes=$ac_expr
27351
27352
27353 fi
27354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
27355 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
27356
27357 cat >>confdefs.h <<_ACEOF
27358 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
27359 _ACEOF
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
27370
27371   fi
27372
27373   # Code from module fseeko:
27374
27375
27376
27377
27378
27379   if test $gl_cv_func_fseeko = no; then
27380     HAVE_FSEEKO=0
27381
27382
27383
27384   if test $gl_cv_func_fseeko = yes; then
27385     REPLACE_FSEEKO=1
27386   fi
27387
27388
27389
27390
27391
27392
27393
27394
27395   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
27396
27397
27398
27399   else
27400     if test $gl_cv_var_stdin_large_offset = no; then
27401
27402
27403
27404   if test $gl_cv_func_fseeko = yes; then
27405     REPLACE_FSEEKO=1
27406   fi
27407
27408
27409
27410
27411
27412
27413
27414
27415   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
27416
27417
27418
27419     fi
27420   fi
27421
27422
27423
27424
27425   GNULIB_FSEEKO=1
27426
27427
27428
27429 cat >>confdefs.h <<\_ACEOF
27430 #define GNULIB_TEST_FSEEKO 1
27431 _ACEOF
27432
27433
27434
27435   # Code from module full-write:
27436   # Code from module futimens:
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446   if test $ac_cv_func_futimens = no; then
27447     HAVE_FUTIMENS=0
27448
27449
27450
27451
27452
27453
27454
27455
27456   gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
27457
27458   else
27459     { $as_echo "$as_me:$LINENO: checking whether futimens works" >&5
27460 $as_echo_n "checking whether futimens works... " >&6; }
27461 if test "${gl_cv_func_futimens_works+set}" = set; then
27462   $as_echo_n "(cached) " >&6
27463 else
27464   if test "$cross_compiling" = yes; then
27465   gl_cv_func_futimens_works="guessing no"
27466 else
27467   cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h.  */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h.  */
27473
27474 #include <fcntl.h>
27475 #include <sys/stat.h>
27476 #include <unistd.h>
27477 #include <errno.h>
27478
27479 int
27480 main ()
27481 {
27482 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
27483       int fd = creat ("conftest.file", 0600);
27484       struct stat st;
27485       if (fd < 0) return 1;
27486       errno = 0;
27487       if (futimens (AT_FDCWD, NULL) == 0) return 2;
27488       if (errno != EBADF) return 3;
27489       if (futimens (fd, ts)) return 4;
27490       sleep (1);
27491       ts[0].tv_nsec = UTIME_NOW;
27492       ts[1].tv_nsec = UTIME_OMIT;
27493       if (futimens (fd, ts)) return 5;
27494       if (fstat (fd, &st)) return 6;
27495       if (st.st_ctime < st.st_atime) return 7;
27496
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505   *) ac_try_echo=$ac_try;;
27506 esac
27507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27508 $as_echo "$ac_try_echo") >&5
27509   (eval "$ac_link") 2>&5
27510   ac_status=$?
27511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27513   { (case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27518 $as_echo "$ac_try_echo") >&5
27519   (eval "$ac_try") 2>&5
27520   ac_status=$?
27521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523            cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529
27530 #ifdef __linux__
27531 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
27532    in several file systems as recently as 2.6.32.  Always replace futimens
27533    to support older kernels.  */
27534 choke me
27535 #endif
27536
27537 int
27538 main ()
27539 {
27540
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 rm -f conftest.$ac_objext
27546 if { (ac_try="$ac_compile"
27547 case "(($ac_try" in
27548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549   *) ac_try_echo=$ac_try;;
27550 esac
27551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27552 $as_echo "$ac_try_echo") >&5
27553   (eval "$ac_compile") 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } && {
27560          test -z "$ac_c_werror_flag" ||
27561          test ! -s conftest.err
27562        } && test -s conftest.$ac_objext; then
27563   gl_cv_func_futimens_works=yes
27564 else
27565   $as_echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568         gl_cv_func_futimens_works="needs runtime check"
27569 fi
27570
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572 else
27573   $as_echo "$as_me: program exited with status $ac_status" >&5
27574 $as_echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 ( exit $ac_status )
27578 gl_cv_func_futimens_works=no
27579 fi
27580 rm -rf conftest.dSYM
27581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27582 fi
27583
27584
27585       rm -f conftest.file
27586 fi
27587 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimens_works" >&5
27588 $as_echo "$gl_cv_func_futimens_works" >&6; }
27589     if test "$gl_cv_func_futimens_works" != yes; then
27590       REPLACE_FUTIMENS=1
27591
27592
27593
27594
27595
27596
27597
27598
27599   gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
27600
27601     fi
27602   fi
27603
27604
27605
27606
27607   GNULIB_FUTIMENS=1
27608
27609
27610
27611 cat >>confdefs.h <<\_ACEOF
27612 #define GNULIB_TEST_FUTIMENS 1
27613 _ACEOF
27614
27615
27616
27617   # Code from module getcwd:
27618
27619
27620
27621
27622   gl_abort_bug=no
27623   case $gl_cv_func_getcwd_null,$host_os in
27624   *,mingw*)
27625     gl_cv_func_getcwd_path_max=yes;;
27626   yes,*)
27627
27628
27629
27630
27631
27632
27633   { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
27634 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
27635 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
27636   $as_echo_n "(cached) " >&6
27637 else
27638   # Arrange for deletion of the temporary directory this test creates.
27639      ac_clean_files="$ac_clean_files confdir3"
27640      if test "$cross_compiling" = yes; then
27641   gl_cv_func_getcwd_path_max=no
27642 else
27643   cat >conftest.$ac_ext <<_ACEOF
27644 /* confdefs.h.  */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h.  */
27649
27650 #include <errno.h>
27651 #include <stdlib.h>
27652 #include <unistd.h>
27653 #include <string.h>
27654 #include <limits.h>
27655 #include <sys/stat.h>
27656 #include <sys/types.h>
27657 #include <fcntl.h>
27658
27659 #ifndef AT_FDCWD
27660 # define AT_FDCWD 0
27661 #endif
27662 #ifdef ENAMETOOLONG
27663 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
27664 #else
27665 # define is_ENAMETOOLONG(x) 0
27666 #endif
27667
27668 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
27669 #undef mkdir
27670
27671 #ifndef S_IRWXU
27672 # define S_IRWXU 0700
27673 #endif
27674
27675 /* The length of this name must be 8.  */
27676 #define DIR_NAME "confdir3"
27677 #define DIR_NAME_LEN 8
27678 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
27679
27680 /* The length of "../".  */
27681 #define DOTDOTSLASH_LEN 3
27682
27683 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
27684 #define BUF_SLOP 20
27685
27686 int
27687 main ()
27688 {
27689 #ifndef PATH_MAX
27690   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
27691      at least not on a local file system.  And if we were to start worrying
27692      about remote file systems, we'd have to enable the wrapper function
27693      all of the time, just to be safe.  That's not worth the cost.  */
27694   exit (0);
27695 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
27696         - DIR_NAME_SIZE - BUF_SLOP) \
27697        <= PATH_MAX)
27698   /* FIXME: Assuming there's a system for which this is true,
27699      this should be done in a compile test.  */
27700   exit (0);
27701 #else
27702   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
27703            + DIR_NAME_SIZE + BUF_SLOP];
27704   char *cwd = getcwd (buf, PATH_MAX);
27705   size_t initial_cwd_len;
27706   size_t cwd_len;
27707   int fail = 0;
27708   size_t n_chdirs = 0;
27709
27710   if (cwd == NULL)
27711     exit (1);
27712
27713   cwd_len = initial_cwd_len = strlen (cwd);
27714
27715   while (1)
27716     {
27717       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
27718       char *c = NULL;
27719
27720       cwd_len += DIR_NAME_SIZE;
27721       /* If mkdir or chdir fails, it could be that this system cannot create
27722          any file with an absolute name longer than PATH_MAX, such as cygwin.
27723          If so, leave fail as 0, because the current working directory can't
27724          be too long for getcwd if it can't even be created.  For other
27725          errors, be pessimistic and consider that as a failure, too.  */
27726       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
27727         {
27728           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
27729             fail = 2;
27730           break;
27731         }
27732
27733       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
27734         {
27735           c = getcwd (buf, PATH_MAX);
27736           if (!c && errno == ENOENT)
27737             {
27738               fail = 1;
27739               break;
27740             }
27741           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
27742             {
27743               fail = 2;
27744               break;
27745             }
27746         }
27747
27748       if (dotdot_max <= cwd_len - initial_cwd_len)
27749         {
27750           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
27751             break;
27752           c = getcwd (buf, cwd_len + 1);
27753           if (!c)
27754             {
27755               if (! (errno == ERANGE || errno == ENOENT
27756                      || is_ENAMETOOLONG (errno)))
27757                 {
27758                   fail = 2;
27759                   break;
27760                 }
27761               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
27762                 {
27763                   fail = 1;
27764                   break;
27765                 }
27766             }
27767         }
27768
27769       if (c && strlen (c) != cwd_len)
27770         {
27771           fail = 2;
27772           break;
27773         }
27774       ++n_chdirs;
27775     }
27776
27777   /* Leaving behind such a deep directory is not polite.
27778      So clean up here, right away, even though the driving
27779      shell script would also clean up.  */
27780   {
27781     size_t i;
27782
27783     /* Try rmdir first, in case the chdir failed.  */
27784     rmdir (DIR_NAME);
27785     for (i = 0; i <= n_chdirs; i++)
27786       {
27787         if (chdir ("..") < 0)
27788           break;
27789         if (rmdir (DIR_NAME) != 0)
27790           break;
27791       }
27792   }
27793
27794   exit (fail);
27795 #endif
27796 }
27797
27798 _ACEOF
27799 rm -f conftest$ac_exeext
27800 if { (ac_try="$ac_link"
27801 case "(($ac_try" in
27802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803   *) ac_try_echo=$ac_try;;
27804 esac
27805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27806 $as_echo "$ac_try_echo") >&5
27807   (eval "$ac_link") 2>&5
27808   ac_status=$?
27809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27811   { (case "(($ac_try" in
27812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813   *) ac_try_echo=$ac_try;;
27814 esac
27815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27816 $as_echo "$ac_try_echo") >&5
27817   (eval "$ac_try") 2>&5
27818   ac_status=$?
27819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; }; then
27821   gl_cv_func_getcwd_path_max=yes
27822 else
27823   $as_echo "$as_me: program exited with status $ac_status" >&5
27824 $as_echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827 ( exit $ac_status )
27828 case $? in
27829      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
27830      *) gl_cv_func_getcwd_path_max=no;;
27831      esac
27832 fi
27833 rm -rf conftest.dSYM
27834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27835 fi
27836
27837
27838
27839 fi
27840 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
27841 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
27842   case $gl_cv_func_getcwd_path_max in
27843   no,*)
27844
27845 cat >>confdefs.h <<\_ACEOF
27846 #define HAVE_PARTLY_WORKING_GETCWD 1
27847 _ACEOF
27848 ;;
27849   esac
27850
27851
27852
27853
27854
27855
27856
27857 for ac_func in getpagesize
27858 do
27859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27861 $as_echo_n "checking for $ac_func... " >&6; }
27862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27863   $as_echo_n "(cached) " >&6
27864 else
27865   cat >conftest.$ac_ext <<_ACEOF
27866 /* confdefs.h.  */
27867 _ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h.  */
27871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27873 #define $ac_func innocuous_$ac_func
27874
27875 /* System header to define __stub macros and hopefully few prototypes,
27876     which can conflict with char $ac_func (); below.
27877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27878     <limits.h> exists even on freestanding compilers.  */
27879
27880 #ifdef __STDC__
27881 # include <limits.h>
27882 #else
27883 # include <assert.h>
27884 #endif
27885
27886 #undef $ac_func
27887
27888 /* Override any GCC internal prototype to avoid an error.
27889    Use char because int might match the return type of a GCC
27890    builtin and then its argument prototype would still apply.  */
27891 #ifdef __cplusplus
27892 extern "C"
27893 #endif
27894 char $ac_func ();
27895 /* The GNU C library defines this for functions which it implements
27896     to always fail with ENOSYS.  Some functions are actually named
27897     something starting with __ and the normal name is an alias.  */
27898 #if defined __stub_$ac_func || defined __stub___$ac_func
27899 choke me
27900 #endif
27901
27902 int
27903 main ()
27904 {
27905 return $ac_func ();
27906   ;
27907   return 0;
27908 }
27909 _ACEOF
27910 rm -f conftest.$ac_objext conftest$ac_exeext
27911 if { (ac_try="$ac_link"
27912 case "(($ac_try" in
27913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914   *) ac_try_echo=$ac_try;;
27915 esac
27916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27917 $as_echo "$ac_try_echo") >&5
27918   (eval "$ac_link") 2>conftest.er1
27919   ac_status=$?
27920   grep -v '^ *+' conftest.er1 >conftest.err
27921   rm -f conftest.er1
27922   cat conftest.err >&5
27923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924   (exit $ac_status); } && {
27925          test -z "$ac_c_werror_flag" ||
27926          test ! -s conftest.err
27927        } && test -s conftest$ac_exeext && {
27928          test "$cross_compiling" = yes ||
27929          $as_test_x conftest$ac_exeext
27930        }; then
27931   eval "$as_ac_var=yes"
27932 else
27933   $as_echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27935
27936         eval "$as_ac_var=no"
27937 fi
27938
27939 rm -rf conftest.dSYM
27940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27941       conftest$ac_exeext conftest.$ac_ext
27942 fi
27943 ac_res=`eval 'as_val=${'$as_ac_var'}
27944                  $as_echo "$as_val"'`
27945                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27946 $as_echo "$ac_res" >&6; }
27947 as_val=`eval 'as_val=${'$as_ac_var'}
27948                  $as_echo "$as_val"'`
27949    if test "x$as_val" = x""yes; then
27950   cat >>confdefs.h <<_ACEOF
27951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27952 _ACEOF
27953
27954 fi
27955 done
27956
27957   { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
27958 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
27959 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
27960   $as_echo_n "(cached) " >&6
27961 else
27962   # Remove any remnants of a previous test.
27963      rm -rf confdir-14B---
27964      # Arrange for deletion of the temporary directory this test creates.
27965      ac_clean_files="$ac_clean_files confdir-14B---"
27966      if test "$cross_compiling" = yes; then
27967   gl_cv_func_getcwd_abort_bug=yes
27968 else
27969   cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975
27976 #include <stdlib.h>
27977 #include <unistd.h>
27978 #include <limits.h>
27979 #include <string.h>
27980 #include <sys/stat.h>
27981
27982 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
27983 #undef mkdir
27984
27985 #ifndef S_IRWXU
27986 # define S_IRWXU 0700
27987 #endif
27988
27989 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
27990 #if ! HAVE_GETPAGESIZE
27991 # define getpagesize() 0
27992 #endif
27993
27994 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
27995    the 16kB pagesize on ia64 linux.  Those conditions make the code below
27996    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
27997 #define TARGET_LEN (5 * 1024)
27998
27999 int
28000 main ()
28001 {
28002   char const *dir_name = "confdir-14B---";
28003   char *cwd;
28004   size_t initial_cwd_len;
28005   int fail = 0;
28006   size_t desired_depth;
28007   size_t d;
28008
28009   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
28010      this relative expensive and invasive test if that's not true.  */
28011   if (getpagesize () <= PATH_MAX)
28012     return 0;
28013
28014   cwd = getcwd (NULL, 0);
28015   if (cwd == NULL)
28016     return 0;
28017
28018   initial_cwd_len = strlen (cwd);
28019   free (cwd);
28020   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
28021                    / (1 + strlen (dir_name)));
28022   for (d = 0; d < desired_depth; d++)
28023     {
28024       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
28025         {
28026           fail = 3; /* Unable to construct deep hierarchy.  */
28027           break;
28028         }
28029     }
28030
28031   /* If libc has the bug in question, this invocation of getcwd
28032      results in a failed assertion.  */
28033   cwd = getcwd (NULL, 0);
28034   if (cwd == NULL)
28035     fail = 4; /* getcwd failed.  This is ok, and expected.  */
28036   free (cwd);
28037
28038   /* Call rmdir first, in case the above chdir failed.  */
28039   rmdir (dir_name);
28040   while (0 < d--)
28041     {
28042       if (chdir ("..") < 0)
28043         break;
28044       rmdir (dir_name);
28045     }
28046
28047   return 0;
28048 }
28049
28050 _ACEOF
28051 rm -f conftest$ac_exeext
28052 if { (ac_try="$ac_link"
28053 case "(($ac_try" in
28054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055   *) ac_try_echo=$ac_try;;
28056 esac
28057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28058 $as_echo "$ac_try_echo") >&5
28059   (eval "$ac_link") 2>&5
28060   ac_status=$?
28061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28063   { (case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069   (eval "$ac_try") 2>&5
28070   ac_status=$?
28071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; }; then
28073   gl_cv_func_getcwd_abort_bug=no
28074 else
28075   $as_echo "$as_me: program exited with status $ac_status" >&5
28076 $as_echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079 ( exit $ac_status )
28080 gl_cv_func_getcwd_abort_bug=yes
28081 fi
28082 rm -rf conftest.dSYM
28083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28084 fi
28085
28086
28087
28088 fi
28089 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
28090 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
28091   if test $gl_cv_func_getcwd_abort_bug = yes; then
28092   gl_abort_bug=yes
28093 fi
28094
28095 ;;
28096   esac
28097
28098   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
28099   *yes,yes,no) ;;
28100   *)
28101     REPLACE_GETCWD=1
28102
28103
28104
28105
28106
28107
28108
28109
28110   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
28111
28112
28113
28114
28115   :
28116 ;;
28117   esac
28118
28119
28120
28121
28122   GNULIB_GETCWD=1
28123
28124
28125
28126 cat >>confdefs.h <<\_ACEOF
28127 #define GNULIB_TEST_GETCWD 1
28128 _ACEOF
28129
28130
28131
28132   # Code from module getdelim:
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149   if test $ac_cv_func_getdelim = yes; then
28150         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
28151 $as_echo_n "checking for working getdelim function... " >&6; }
28152 if test "${gl_cv_func_working_getdelim+set}" = set; then
28153   $as_echo_n "(cached) " >&6
28154 else
28155   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28156     if test "$cross_compiling" = yes; then
28157         cat >conftest.$ac_ext <<_ACEOF
28158 /* confdefs.h.  */
28159 _ACEOF
28160 cat confdefs.h >>conftest.$ac_ext
28161 cat >>conftest.$ac_ext <<_ACEOF
28162 /* end confdefs.h.  */
28163
28164 #include <features.h>
28165 #ifdef __GNU_LIBRARY__
28166  #if (__GLIBC__ >= 2)
28167   Lucky GNU user
28168  #endif
28169 #endif
28170
28171 _ACEOF
28172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28173   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28174   gl_cv_func_working_getdelim=yes
28175 else
28176   gl_cv_func_working_getdelim=no
28177 fi
28178 rm -f conftest*
28179
28180
28181 else
28182   cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h.  */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h.  */
28188
28189 #    include <stdio.h>
28190 #    include <stdlib.h>
28191 #    include <string.h>
28192     int main ()
28193     {
28194       FILE *in = fopen ("./conftest.data", "r");
28195       if (!in)
28196         return 1;
28197       {
28198         /* Test result for a NULL buffer and a zero size.
28199            Based on a test program from Karl Heuer.  */
28200         char *line = NULL;
28201         size_t siz = 0;
28202         int len = getdelim (&line, &siz, '\n', in);
28203         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28204           return 1;
28205       }
28206       {
28207         /* Test result for a NULL buffer and a non-zero size.
28208            This crashes on FreeBSD 8.0.  */
28209         char *line = NULL;
28210         size_t siz = (size_t)(~0) / 4;
28211         if (getdelim (&line, &siz, '\n', in) == -1)
28212           return 1;
28213       }
28214       return 0;
28215     }
28216
28217 _ACEOF
28218 rm -f conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222   *) ac_try_echo=$ac_try;;
28223 esac
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226   (eval "$ac_link") 2>&5
28227   ac_status=$?
28228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28230   { (case "(($ac_try" in
28231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232   *) ac_try_echo=$ac_try;;
28233 esac
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236   (eval "$ac_try") 2>&5
28237   ac_status=$?
28238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; }; then
28240   gl_cv_func_working_getdelim=yes
28241 else
28242   $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ( exit $ac_status )
28247 gl_cv_func_working_getdelim=no
28248 fi
28249 rm -rf conftest.dSYM
28250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28251 fi
28252
28253
28254 fi
28255 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
28256 $as_echo "$gl_cv_func_working_getdelim" >&6; }
28257   else
28258     gl_cv_func_working_getdelim=no
28259   fi
28260
28261   if test $ac_cv_have_decl_getdelim = no; then
28262     HAVE_DECL_GETDELIM=0
28263   fi
28264
28265   if test $gl_cv_func_working_getdelim = no; then
28266     if test $ac_cv_func_getdelim = yes; then
28267       REPLACE_GETDELIM=1
28268     fi
28269
28270
28271
28272
28273
28274
28275
28276
28277   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
28278
28279
28280
28281
28282 for ac_func in flockfile funlockfile
28283 do
28284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28286 $as_echo_n "checking for $ac_func... " >&6; }
28287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28288   $as_echo_n "(cached) " >&6
28289 else
28290   cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28298 #define $ac_func innocuous_$ac_func
28299
28300 /* System header to define __stub macros and hopefully few prototypes,
28301     which can conflict with char $ac_func (); below.
28302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28303     <limits.h> exists even on freestanding compilers.  */
28304
28305 #ifdef __STDC__
28306 # include <limits.h>
28307 #else
28308 # include <assert.h>
28309 #endif
28310
28311 #undef $ac_func
28312
28313 /* Override any GCC internal prototype to avoid an error.
28314    Use char because int might match the return type of a GCC
28315    builtin and then its argument prototype would still apply.  */
28316 #ifdef __cplusplus
28317 extern "C"
28318 #endif
28319 char $ac_func ();
28320 /* The GNU C library defines this for functions which it implements
28321     to always fail with ENOSYS.  Some functions are actually named
28322     something starting with __ and the normal name is an alias.  */
28323 #if defined __stub_$ac_func || defined __stub___$ac_func
28324 choke me
28325 #endif
28326
28327 int
28328 main ()
28329 {
28330 return $ac_func ();
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339   *) ac_try_echo=$ac_try;;
28340 esac
28341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28342 $as_echo "$ac_try_echo") >&5
28343   (eval "$ac_link") 2>conftest.er1
28344   ac_status=$?
28345   grep -v '^ *+' conftest.er1 >conftest.err
28346   rm -f conftest.er1
28347   cat conftest.err >&5
28348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); } && {
28350          test -z "$ac_c_werror_flag" ||
28351          test ! -s conftest.err
28352        } && test -s conftest$ac_exeext && {
28353          test "$cross_compiling" = yes ||
28354          $as_test_x conftest$ac_exeext
28355        }; then
28356   eval "$as_ac_var=yes"
28357 else
28358   $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28360
28361         eval "$as_ac_var=no"
28362 fi
28363
28364 rm -rf conftest.dSYM
28365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28366       conftest$ac_exeext conftest.$ac_ext
28367 fi
28368 ac_res=`eval 'as_val=${'$as_ac_var'}
28369                  $as_echo "$as_val"'`
28370                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28371 $as_echo "$ac_res" >&6; }
28372 as_val=`eval 'as_val=${'$as_ac_var'}
28373                  $as_echo "$as_val"'`
28374    if test "x$as_val" = x""yes; then
28375   cat >>confdefs.h <<_ACEOF
28376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28377 _ACEOF
28378
28379 fi
28380 done
28381
28382   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28383 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28384 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28385   $as_echo_n "(cached) " >&6
28386 else
28387   cat >conftest.$ac_ext <<_ACEOF
28388 /* confdefs.h.  */
28389 _ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h.  */
28393 $ac_includes_default
28394 int
28395 main ()
28396 {
28397 #ifndef getc_unlocked
28398   (void) getc_unlocked;
28399 #endif
28400
28401   ;
28402   return 0;
28403 }
28404 _ACEOF
28405 rm -f conftest.$ac_objext
28406 if { (ac_try="$ac_compile"
28407 case "(($ac_try" in
28408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409   *) ac_try_echo=$ac_try;;
28410 esac
28411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28412 $as_echo "$ac_try_echo") >&5
28413   (eval "$ac_compile") 2>conftest.er1
28414   ac_status=$?
28415   grep -v '^ *+' conftest.er1 >conftest.err
28416   rm -f conftest.er1
28417   cat conftest.err >&5
28418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); } && {
28420          test -z "$ac_c_werror_flag" ||
28421          test ! -s conftest.err
28422        } && test -s conftest.$ac_objext; then
28423   ac_cv_have_decl_getc_unlocked=yes
28424 else
28425   $as_echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         ac_cv_have_decl_getc_unlocked=no
28429 fi
28430
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 fi
28433 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28434 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28435 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
28436
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_DECL_GETC_UNLOCKED 1
28439 _ACEOF
28440
28441
28442 else
28443   cat >>confdefs.h <<_ACEOF
28444 #define HAVE_DECL_GETC_UNLOCKED 0
28445 _ACEOF
28446
28447
28448 fi
28449
28450
28451
28452   fi
28453
28454
28455
28456
28457   GNULIB_GETDELIM=1
28458
28459
28460
28461 cat >>confdefs.h <<\_ACEOF
28462 #define GNULIB_TEST_GETDELIM 1
28463 _ACEOF
28464
28465
28466
28467   # Code from module getdtablesize:
28468
28469
28470
28471
28472
28473
28474
28475
28476   if test $ac_cv_func_getdtablesize != yes; then
28477     HAVE_GETDTABLESIZE=0
28478
28479
28480
28481
28482
28483
28484
28485
28486   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28487
28488   fi
28489
28490
28491
28492
28493   GNULIB_GETDTABLESIZE=1
28494
28495
28496
28497 cat >>confdefs.h <<\_ACEOF
28498 #define GNULIB_TEST_GETDTABLESIZE 1
28499 _ACEOF
28500
28501
28502
28503   # Code from module getline:
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514   gl_getline_needs_run_time_check=no
28515   { $as_echo "$as_me:$LINENO: checking for getline" >&5
28516 $as_echo_n "checking for getline... " >&6; }
28517 if test "${ac_cv_func_getline+set}" = set; then
28518   $as_echo_n "(cached) " >&6
28519 else
28520   cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
28527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28528 #define getline innocuous_getline
28529
28530 /* System header to define __stub macros and hopefully few prototypes,
28531     which can conflict with char getline (); below.
28532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533     <limits.h> exists even on freestanding compilers.  */
28534
28535 #ifdef __STDC__
28536 # include <limits.h>
28537 #else
28538 # include <assert.h>
28539 #endif
28540
28541 #undef getline
28542
28543 /* Override any GCC internal prototype to avoid an error.
28544    Use char because int might match the return type of a GCC
28545    builtin and then its argument prototype would still apply.  */
28546 #ifdef __cplusplus
28547 extern "C"
28548 #endif
28549 char getline ();
28550 /* The GNU C library defines this for functions which it implements
28551     to always fail with ENOSYS.  Some functions are actually named
28552     something starting with __ and the normal name is an alias.  */
28553 #if defined __stub_getline || defined __stub___getline
28554 choke me
28555 #endif
28556
28557 int
28558 main ()
28559 {
28560 return getline ();
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (ac_try="$ac_link"
28567 case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28572 $as_echo "$ac_try_echo") >&5
28573   (eval "$ac_link") 2>conftest.er1
28574   ac_status=$?
28575   grep -v '^ *+' conftest.er1 >conftest.err
28576   rm -f conftest.er1
28577   cat conftest.err >&5
28578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); } && {
28580          test -z "$ac_c_werror_flag" ||
28581          test ! -s conftest.err
28582        } && test -s conftest$ac_exeext && {
28583          test "$cross_compiling" = yes ||
28584          $as_test_x conftest$ac_exeext
28585        }; then
28586   ac_cv_func_getline=yes
28587 else
28588   $as_echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591         ac_cv_func_getline=no
28592 fi
28593
28594 rm -rf conftest.dSYM
28595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28596       conftest$ac_exeext conftest.$ac_ext
28597 fi
28598 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
28599 $as_echo "$ac_cv_func_getline" >&6; }
28600 if test "x$ac_cv_func_getline" = x""yes; then
28601                    gl_getline_needs_run_time_check=yes
28602 else
28603   am_cv_func_working_getline=no
28604 fi
28605
28606   if test $gl_getline_needs_run_time_check = yes; then
28607     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
28608 $as_echo_n "checking for working getline function... " >&6; }
28609 if test "${am_cv_func_working_getline+set}" = set; then
28610   $as_echo_n "(cached) " >&6
28611 else
28612   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28613     if test "$cross_compiling" = yes; then
28614         cat >conftest.$ac_ext <<_ACEOF
28615 /* confdefs.h.  */
28616 _ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h.  */
28620
28621 #include <features.h>
28622 #ifdef __GNU_LIBRARY__
28623  #if (__GLIBC__ >= 2)
28624   Lucky GNU user
28625  #endif
28626 #endif
28627
28628 _ACEOF
28629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28630   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28631   am_cv_func_working_getline=yes
28632 else
28633   am_cv_func_working_getline=no
28634 fi
28635 rm -f conftest*
28636
28637
28638 else
28639   cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645
28646 #    include <stdio.h>
28647 #    include <stdlib.h>
28648 #    include <string.h>
28649     int main ()
28650     {
28651       FILE *in = fopen ("./conftest.data", "r");
28652       if (!in)
28653         return 1;
28654       {
28655         /* Test result for a NULL buffer and a zero size.
28656            Based on a test program from Karl Heuer.  */
28657         char *line = NULL;
28658         size_t siz = 0;
28659         int len = getline (&line, &siz, in);
28660         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28661           return 1;
28662       }
28663       {
28664         /* Test result for a NULL buffer and a non-zero size.
28665            This crashes on FreeBSD 8.0.  */
28666         char *line = NULL;
28667         size_t siz = (size_t)(~0) / 4;
28668         if (getline (&line, &siz, in) == -1)
28669           return 1;
28670       }
28671       return 0;
28672     }
28673
28674 _ACEOF
28675 rm -f conftest$ac_exeext
28676 if { (ac_try="$ac_link"
28677 case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28682 $as_echo "$ac_try_echo") >&5
28683   (eval "$ac_link") 2>&5
28684   ac_status=$?
28685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28687   { (case "(($ac_try" in
28688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689   *) ac_try_echo=$ac_try;;
28690 esac
28691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28692 $as_echo "$ac_try_echo") >&5
28693   (eval "$ac_try") 2>&5
28694   ac_status=$?
28695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); }; }; then
28697   am_cv_func_working_getline=yes
28698 else
28699   $as_echo "$as_me: program exited with status $ac_status" >&5
28700 $as_echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703 ( exit $ac_status )
28704 am_cv_func_working_getline=no
28705 fi
28706 rm -rf conftest.dSYM
28707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28708 fi
28709
28710
28711 fi
28712 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
28713 $as_echo "$am_cv_func_working_getline" >&6; }
28714   fi
28715
28716   if test $ac_cv_have_decl_getline = no; then
28717     HAVE_DECL_GETLINE=0
28718   fi
28719
28720   if test $am_cv_func_working_getline = no; then
28721                 REPLACE_GETLINE=1
28722
28723
28724
28725
28726
28727
28728
28729
28730   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750   if test $ac_cv_func_getdelim = yes; then
28751         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
28752 $as_echo_n "checking for working getdelim function... " >&6; }
28753 if test "${gl_cv_func_working_getdelim+set}" = set; then
28754   $as_echo_n "(cached) " >&6
28755 else
28756   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
28757     if test "$cross_compiling" = yes; then
28758         cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764
28765 #include <features.h>
28766 #ifdef __GNU_LIBRARY__
28767  #if (__GLIBC__ >= 2)
28768   Lucky GNU user
28769  #endif
28770 #endif
28771
28772 _ACEOF
28773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28774   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28775   gl_cv_func_working_getdelim=yes
28776 else
28777   gl_cv_func_working_getdelim=no
28778 fi
28779 rm -f conftest*
28780
28781
28782 else
28783   cat >conftest.$ac_ext <<_ACEOF
28784 /* confdefs.h.  */
28785 _ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h.  */
28789
28790 #    include <stdio.h>
28791 #    include <stdlib.h>
28792 #    include <string.h>
28793     int main ()
28794     {
28795       FILE *in = fopen ("./conftest.data", "r");
28796       if (!in)
28797         return 1;
28798       {
28799         /* Test result for a NULL buffer and a zero size.
28800            Based on a test program from Karl Heuer.  */
28801         char *line = NULL;
28802         size_t siz = 0;
28803         int len = getdelim (&line, &siz, '\n', in);
28804         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
28805           return 1;
28806       }
28807       {
28808         /* Test result for a NULL buffer and a non-zero size.
28809            This crashes on FreeBSD 8.0.  */
28810         char *line = NULL;
28811         size_t siz = (size_t)(~0) / 4;
28812         if (getdelim (&line, &siz, '\n', in) == -1)
28813           return 1;
28814       }
28815       return 0;
28816     }
28817
28818 _ACEOF
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823   *) ac_try_echo=$ac_try;;
28824 esac
28825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28826 $as_echo "$ac_try_echo") >&5
28827   (eval "$ac_link") 2>&5
28828   ac_status=$?
28829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28831   { (case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28836 $as_echo "$ac_try_echo") >&5
28837   (eval "$ac_try") 2>&5
28838   ac_status=$?
28839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; }; then
28841   gl_cv_func_working_getdelim=yes
28842 else
28843   $as_echo "$as_me: program exited with status $ac_status" >&5
28844 $as_echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28846
28847 ( exit $ac_status )
28848 gl_cv_func_working_getdelim=no
28849 fi
28850 rm -rf conftest.dSYM
28851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28852 fi
28853
28854
28855 fi
28856 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
28857 $as_echo "$gl_cv_func_working_getdelim" >&6; }
28858   else
28859     gl_cv_func_working_getdelim=no
28860   fi
28861
28862   if test $ac_cv_have_decl_getdelim = no; then
28863     HAVE_DECL_GETDELIM=0
28864   fi
28865
28866   if test $gl_cv_func_working_getdelim = no; then
28867     if test $ac_cv_func_getdelim = yes; then
28868       REPLACE_GETDELIM=1
28869     fi
28870
28871
28872
28873
28874
28875
28876
28877
28878   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
28879
28880
28881
28882
28883 for ac_func in flockfile funlockfile
28884 do
28885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28887 $as_echo_n "checking for $ac_func... " >&6; }
28888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28889   $as_echo_n "(cached) " >&6
28890 else
28891   cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h.  */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h.  */
28897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28899 #define $ac_func innocuous_$ac_func
28900
28901 /* System header to define __stub macros and hopefully few prototypes,
28902     which can conflict with char $ac_func (); below.
28903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28904     <limits.h> exists even on freestanding compilers.  */
28905
28906 #ifdef __STDC__
28907 # include <limits.h>
28908 #else
28909 # include <assert.h>
28910 #endif
28911
28912 #undef $ac_func
28913
28914 /* Override any GCC internal prototype to avoid an error.
28915    Use char because int might match the return type of a GCC
28916    builtin and then its argument prototype would still apply.  */
28917 #ifdef __cplusplus
28918 extern "C"
28919 #endif
28920 char $ac_func ();
28921 /* The GNU C library defines this for functions which it implements
28922     to always fail with ENOSYS.  Some functions are actually named
28923     something starting with __ and the normal name is an alias.  */
28924 #if defined __stub_$ac_func || defined __stub___$ac_func
28925 choke me
28926 #endif
28927
28928 int
28929 main ()
28930 {
28931 return $ac_func ();
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 rm -f conftest.$ac_objext conftest$ac_exeext
28937 if { (ac_try="$ac_link"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28943 $as_echo "$ac_try_echo") >&5
28944   (eval "$ac_link") 2>conftest.er1
28945   ac_status=$?
28946   grep -v '^ *+' conftest.er1 >conftest.err
28947   rm -f conftest.er1
28948   cat conftest.err >&5
28949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); } && {
28951          test -z "$ac_c_werror_flag" ||
28952          test ! -s conftest.err
28953        } && test -s conftest$ac_exeext && {
28954          test "$cross_compiling" = yes ||
28955          $as_test_x conftest$ac_exeext
28956        }; then
28957   eval "$as_ac_var=yes"
28958 else
28959   $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962         eval "$as_ac_var=no"
28963 fi
28964
28965 rm -rf conftest.dSYM
28966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28967       conftest$ac_exeext conftest.$ac_ext
28968 fi
28969 ac_res=`eval 'as_val=${'$as_ac_var'}
28970                  $as_echo "$as_val"'`
28971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28972 $as_echo "$ac_res" >&6; }
28973 as_val=`eval 'as_val=${'$as_ac_var'}
28974                  $as_echo "$as_val"'`
28975    if test "x$as_val" = x""yes; then
28976   cat >>confdefs.h <<_ACEOF
28977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28978 _ACEOF
28979
28980 fi
28981 done
28982
28983   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28984 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28985 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28986   $as_echo_n "(cached) " >&6
28987 else
28988   cat >conftest.$ac_ext <<_ACEOF
28989 /* confdefs.h.  */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h.  */
28994 $ac_includes_default
28995 int
28996 main ()
28997 {
28998 #ifndef getc_unlocked
28999   (void) getc_unlocked;
29000 #endif
29001
29002   ;
29003   return 0;
29004 }
29005 _ACEOF
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010   *) ac_try_echo=$ac_try;;
29011 esac
29012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29013 $as_echo "$ac_try_echo") >&5
29014   (eval "$ac_compile") 2>conftest.er1
29015   ac_status=$?
29016   grep -v '^ *+' conftest.er1 >conftest.err
29017   rm -f conftest.er1
29018   cat conftest.err >&5
29019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); } && {
29021          test -z "$ac_c_werror_flag" ||
29022          test ! -s conftest.err
29023        } && test -s conftest.$ac_objext; then
29024   ac_cv_have_decl_getc_unlocked=yes
29025 else
29026   $as_echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029         ac_cv_have_decl_getc_unlocked=no
29030 fi
29031
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 fi
29034 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29035 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
29036 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
29037
29038 cat >>confdefs.h <<_ACEOF
29039 #define HAVE_DECL_GETC_UNLOCKED 1
29040 _ACEOF
29041
29042
29043 else
29044   cat >>confdefs.h <<_ACEOF
29045 #define HAVE_DECL_GETC_UNLOCKED 0
29046 _ACEOF
29047
29048
29049 fi
29050
29051
29052
29053   fi
29054
29055
29056   fi
29057
29058
29059
29060
29061   GNULIB_GETLINE=1
29062
29063
29064
29065 cat >>confdefs.h <<\_ACEOF
29066 #define GNULIB_TEST_GETLINE 1
29067 _ACEOF
29068
29069
29070
29071   # Code from module getopt-gnu:
29072
29073
29074
29075
29076
29077
29078
29079 cat >>confdefs.h <<\_ACEOF
29080 #define GNULIB_TEST_GETOPT_GNU 1
29081 _ACEOF
29082
29083
29084   # Code from module getopt-posix:
29085
29086
29087
29088
29089
29090   if test -n "$gl_replace_getopt"; then
29091
29092
29093
29094   GETOPT_H=getopt.h
29095
29096 cat >>confdefs.h <<\_ACEOF
29097 #define __GETOPT_PREFIX rpl_
29098 _ACEOF
29099
29100
29101
29102     GNULIB_UNISTD_H_GETOPT=1
29103
29104
29105
29106
29107
29108
29109
29110
29111   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131 fi
29132
29133
29134
29135   # Code from module getpagesize:
29136
29137
29138
29139
29140 for ac_func in getpagesize
29141 do
29142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29144 $as_echo_n "checking for $ac_func... " >&6; }
29145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29146   $as_echo_n "(cached) " >&6
29147 else
29148   cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29156 #define $ac_func innocuous_$ac_func
29157
29158 /* System header to define __stub macros and hopefully few prototypes,
29159     which can conflict with char $ac_func (); below.
29160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29161     <limits.h> exists even on freestanding compilers.  */
29162
29163 #ifdef __STDC__
29164 # include <limits.h>
29165 #else
29166 # include <assert.h>
29167 #endif
29168
29169 #undef $ac_func
29170
29171 /* Override any GCC internal prototype to avoid an error.
29172    Use char because int might match the return type of a GCC
29173    builtin and then its argument prototype would still apply.  */
29174 #ifdef __cplusplus
29175 extern "C"
29176 #endif
29177 char $ac_func ();
29178 /* The GNU C library defines this for functions which it implements
29179     to always fail with ENOSYS.  Some functions are actually named
29180     something starting with __ and the normal name is an alias.  */
29181 #if defined __stub_$ac_func || defined __stub___$ac_func
29182 choke me
29183 #endif
29184
29185 int
29186 main ()
29187 {
29188 return $ac_func ();
29189   ;
29190   return 0;
29191 }
29192 _ACEOF
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (ac_try="$ac_link"
29195 case "(($ac_try" in
29196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197   *) ac_try_echo=$ac_try;;
29198 esac
29199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29200 $as_echo "$ac_try_echo") >&5
29201   (eval "$ac_link") 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } && {
29208          test -z "$ac_c_werror_flag" ||
29209          test ! -s conftest.err
29210        } && test -s conftest$ac_exeext && {
29211          test "$cross_compiling" = yes ||
29212          $as_test_x conftest$ac_exeext
29213        }; then
29214   eval "$as_ac_var=yes"
29215 else
29216   $as_echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219         eval "$as_ac_var=no"
29220 fi
29221
29222 rm -rf conftest.dSYM
29223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29224       conftest$ac_exeext conftest.$ac_ext
29225 fi
29226 ac_res=`eval 'as_val=${'$as_ac_var'}
29227                  $as_echo "$as_val"'`
29228                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29229 $as_echo "$ac_res" >&6; }
29230 as_val=`eval 'as_val=${'$as_ac_var'}
29231                  $as_echo "$as_val"'`
29232    if test "x$as_val" = x""yes; then
29233   cat >>confdefs.h <<_ACEOF
29234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29235 _ACEOF
29236
29237 fi
29238 done
29239
29240   if test $ac_cv_func_getpagesize = no; then
29241     HAVE_GETPAGESIZE=0
29242
29243 for ac_header in OS.h
29244 do
29245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29247   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29248 $as_echo_n "checking for $ac_header... " >&6; }
29249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29250   $as_echo_n "(cached) " >&6
29251 fi
29252 ac_res=`eval 'as_val=${'$as_ac_Header'}
29253                  $as_echo "$as_val"'`
29254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29255 $as_echo "$ac_res" >&6; }
29256 else
29257   # Is the header compilable?
29258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29259 $as_echo_n "checking $ac_header usability... " >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h.  */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h.  */
29266 $ac_includes_default
29267 #include <$ac_header>
29268 _ACEOF
29269 rm -f conftest.$ac_objext
29270 if { (ac_try="$ac_compile"
29271 case "(($ac_try" in
29272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273   *) ac_try_echo=$ac_try;;
29274 esac
29275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29276 $as_echo "$ac_try_echo") >&5
29277   (eval "$ac_compile") 2>conftest.er1
29278   ac_status=$?
29279   grep -v '^ *+' conftest.er1 >conftest.err
29280   rm -f conftest.er1
29281   cat conftest.err >&5
29282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); } && {
29284          test -z "$ac_c_werror_flag" ||
29285          test ! -s conftest.err
29286        } && test -s conftest.$ac_objext; then
29287   ac_header_compiler=yes
29288 else
29289   $as_echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29291
29292         ac_header_compiler=no
29293 fi
29294
29295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29297 $as_echo "$ac_header_compiler" >&6; }
29298
29299 # Is the header present?
29300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29301 $as_echo_n "checking $ac_header presence... " >&6; }
29302 cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 #include <$ac_header>
29309 _ACEOF
29310 if { (ac_try="$ac_cpp conftest.$ac_ext"
29311 case "(($ac_try" in
29312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313   *) ac_try_echo=$ac_try;;
29314 esac
29315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29316 $as_echo "$ac_try_echo") >&5
29317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } >/dev/null && {
29324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29325          test ! -s conftest.err
29326        }; then
29327   ac_header_preproc=yes
29328 else
29329   $as_echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29331
29332   ac_header_preproc=no
29333 fi
29334
29335 rm -f conftest.err conftest.$ac_ext
29336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29337 $as_echo "$ac_header_preproc" >&6; }
29338
29339 # So?  What about this header?
29340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29341   yes:no: )
29342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29346     ac_header_preproc=yes
29347     ;;
29348   no:yes:* )
29349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29352 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29356 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29361     ( cat <<\_ASBOX
29362 ## ------------------------------ ##
29363 ## Report this to bug-tar@gnu.org ##
29364 ## ------------------------------ ##
29365 _ASBOX
29366      ) | sed "s/^/$as_me: WARNING:     /" >&2
29367     ;;
29368 esac
29369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29370 $as_echo_n "checking for $ac_header... " >&6; }
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372   $as_echo_n "(cached) " >&6
29373 else
29374   eval "$as_ac_Header=\$ac_header_preproc"
29375 fi
29376 ac_res=`eval 'as_val=${'$as_ac_Header'}
29377                  $as_echo "$as_val"'`
29378                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29379 $as_echo "$ac_res" >&6; }
29380
29381 fi
29382 as_val=`eval 'as_val=${'$as_ac_Header'}
29383                  $as_echo "$as_val"'`
29384    if test "x$as_val" = x""yes; then
29385   cat >>confdefs.h <<_ACEOF
29386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29387 _ACEOF
29388
29389 fi
29390
29391 done
29392
29393     if test $ac_cv_header_OS_h = yes; then
29394       HAVE_OS_H=1
29395     fi
29396
29397 for ac_header in sys/param.h
29398 do
29399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29401   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29402 $as_echo_n "checking for $ac_header... " >&6; }
29403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29404   $as_echo_n "(cached) " >&6
29405 fi
29406 ac_res=`eval 'as_val=${'$as_ac_Header'}
29407                  $as_echo "$as_val"'`
29408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29409 $as_echo "$ac_res" >&6; }
29410 else
29411   # Is the header compilable?
29412 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29413 $as_echo_n "checking $ac_header usability... " >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h.  */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h.  */
29420 $ac_includes_default
29421 #include <$ac_header>
29422 _ACEOF
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427   *) ac_try_echo=$ac_try;;
29428 esac
29429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29430 $as_echo "$ac_try_echo") >&5
29431   (eval "$ac_compile") 2>conftest.er1
29432   ac_status=$?
29433   grep -v '^ *+' conftest.er1 >conftest.err
29434   rm -f conftest.er1
29435   cat conftest.err >&5
29436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437   (exit $ac_status); } && {
29438          test -z "$ac_c_werror_flag" ||
29439          test ! -s conftest.err
29440        } && test -s conftest.$ac_objext; then
29441   ac_header_compiler=yes
29442 else
29443   $as_echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29445
29446         ac_header_compiler=no
29447 fi
29448
29449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29451 $as_echo "$ac_header_compiler" >&6; }
29452
29453 # Is the header present?
29454 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29455 $as_echo_n "checking $ac_header presence... " >&6; }
29456 cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 #include <$ac_header>
29463 _ACEOF
29464 if { (ac_try="$ac_cpp conftest.$ac_ext"
29465 case "(($ac_try" in
29466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467   *) ac_try_echo=$ac_try;;
29468 esac
29469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29470 $as_echo "$ac_try_echo") >&5
29471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29472   ac_status=$?
29473   grep -v '^ *+' conftest.er1 >conftest.err
29474   rm -f conftest.er1
29475   cat conftest.err >&5
29476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); } >/dev/null && {
29478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29479          test ! -s conftest.err
29480        }; then
29481   ac_header_preproc=yes
29482 else
29483   $as_echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29485
29486   ac_header_preproc=no
29487 fi
29488
29489 rm -f conftest.err conftest.$ac_ext
29490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29491 $as_echo "$ac_header_preproc" >&6; }
29492
29493 # So?  What about this header?
29494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29495   yes:no: )
29496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29497 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29500     ac_header_preproc=yes
29501     ;;
29502   no:yes:* )
29503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29504 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29506 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29508 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29510 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29511     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29513     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29514 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29515     ( cat <<\_ASBOX
29516 ## ------------------------------ ##
29517 ## Report this to bug-tar@gnu.org ##
29518 ## ------------------------------ ##
29519 _ASBOX
29520      ) | sed "s/^/$as_me: WARNING:     /" >&2
29521     ;;
29522 esac
29523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29524 $as_echo_n "checking for $ac_header... " >&6; }
29525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29526   $as_echo_n "(cached) " >&6
29527 else
29528   eval "$as_ac_Header=\$ac_header_preproc"
29529 fi
29530 ac_res=`eval 'as_val=${'$as_ac_Header'}
29531                  $as_echo "$as_val"'`
29532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29533 $as_echo "$ac_res" >&6; }
29534
29535 fi
29536 as_val=`eval 'as_val=${'$as_ac_Header'}
29537                  $as_echo "$as_val"'`
29538    if test "x$as_val" = x""yes; then
29539   cat >>confdefs.h <<_ACEOF
29540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29541 _ACEOF
29542
29543 fi
29544
29545 done
29546
29547     if test $ac_cv_header_sys_param_h = yes; then
29548       HAVE_SYS_PARAM_H=1
29549     fi
29550   fi
29551   case "$host_os" in
29552     mingw*)
29553       REPLACE_GETPAGESIZE=1
29554
29555
29556
29557
29558
29559
29560
29561
29562   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
29563
29564       ;;
29565   esac
29566       { $as_echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
29567 $as_echo_n "checking whether getpagesize is declared... " >&6; }
29568 if test "${ac_cv_have_decl_getpagesize+set}" = set; then
29569   $as_echo_n "(cached) " >&6
29570 else
29571   cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577 $ac_includes_default
29578 int
29579 main ()
29580 {
29581 #ifndef getpagesize
29582   (void) getpagesize;
29583 #endif
29584
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext
29590 if { (ac_try="$ac_compile"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597   (eval "$ac_compile") 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } && {
29604          test -z "$ac_c_werror_flag" ||
29605          test ! -s conftest.err
29606        } && test -s conftest.$ac_objext; then
29607   ac_cv_have_decl_getpagesize=yes
29608 else
29609   $as_echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29611
29612         ac_cv_have_decl_getpagesize=no
29613 fi
29614
29615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29616 fi
29617 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
29618 $as_echo "$ac_cv_have_decl_getpagesize" >&6; }
29619 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then
29620   :
29621 else
29622   HAVE_DECL_GETPAGESIZE=0
29623 fi
29624
29625
29626
29627
29628
29629   GNULIB_GETPAGESIZE=1
29630
29631
29632
29633 cat >>confdefs.h <<\_ACEOF
29634 #define GNULIB_TEST_GETPAGESIZE 1
29635 _ACEOF
29636
29637
29638
29639   # Code from module gettext:
29640
29641   # Code from module gettext-h:
29642
29643
29644   # Code from module gettime:
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668   # Code from module gettimeofday:
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680   gl_gettimeofday_timezone=void
29681   if test $ac_cv_func_gettimeofday != yes; then
29682     HAVE_GETTIMEOFDAY=0
29683
29684
29685
29686
29687
29688
29689
29690
29691   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
29692
29693
29694
29695 for ac_header in sys/timeb.h
29696 do
29697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29699   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29700 $as_echo_n "checking for $ac_header... " >&6; }
29701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29702   $as_echo_n "(cached) " >&6
29703 fi
29704 ac_res=`eval 'as_val=${'$as_ac_Header'}
29705                  $as_echo "$as_val"'`
29706                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29707 $as_echo "$ac_res" >&6; }
29708 else
29709   # Is the header compilable?
29710 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29711 $as_echo_n "checking $ac_header usability... " >&6; }
29712 cat >conftest.$ac_ext <<_ACEOF
29713 /* confdefs.h.  */
29714 _ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h.  */
29718 $ac_includes_default
29719 #include <$ac_header>
29720 _ACEOF
29721 rm -f conftest.$ac_objext
29722 if { (ac_try="$ac_compile"
29723 case "(($ac_try" in
29724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725   *) ac_try_echo=$ac_try;;
29726 esac
29727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29728 $as_echo "$ac_try_echo") >&5
29729   (eval "$ac_compile") 2>conftest.er1
29730   ac_status=$?
29731   grep -v '^ *+' conftest.er1 >conftest.err
29732   rm -f conftest.er1
29733   cat conftest.err >&5
29734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); } && {
29736          test -z "$ac_c_werror_flag" ||
29737          test ! -s conftest.err
29738        } && test -s conftest.$ac_objext; then
29739   ac_header_compiler=yes
29740 else
29741   $as_echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29743
29744         ac_header_compiler=no
29745 fi
29746
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29749 $as_echo "$ac_header_compiler" >&6; }
29750
29751 # Is the header present?
29752 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29753 $as_echo_n "checking $ac_header presence... " >&6; }
29754 cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h.  */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h.  */
29760 #include <$ac_header>
29761 _ACEOF
29762 if { (ac_try="$ac_cpp conftest.$ac_ext"
29763 case "(($ac_try" in
29764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765   *) ac_try_echo=$ac_try;;
29766 esac
29767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29768 $as_echo "$ac_try_echo") >&5
29769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29770   ac_status=$?
29771   grep -v '^ *+' conftest.er1 >conftest.err
29772   rm -f conftest.er1
29773   cat conftest.err >&5
29774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); } >/dev/null && {
29776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29777          test ! -s conftest.err
29778        }; then
29779   ac_header_preproc=yes
29780 else
29781   $as_echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29783
29784   ac_header_preproc=no
29785 fi
29786
29787 rm -f conftest.err conftest.$ac_ext
29788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29789 $as_echo "$ac_header_preproc" >&6; }
29790
29791 # So?  What about this header?
29792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29793   yes:no: )
29794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29795 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29798     ac_header_preproc=yes
29799     ;;
29800   no:yes:* )
29801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29802 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29804 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29806 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29808 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29812 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29813     ( cat <<\_ASBOX
29814 ## ------------------------------ ##
29815 ## Report this to bug-tar@gnu.org ##
29816 ## ------------------------------ ##
29817 _ASBOX
29818      ) | sed "s/^/$as_me: WARNING:     /" >&2
29819     ;;
29820 esac
29821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29822 $as_echo_n "checking for $ac_header... " >&6; }
29823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29824   $as_echo_n "(cached) " >&6
29825 else
29826   eval "$as_ac_Header=\$ac_header_preproc"
29827 fi
29828 ac_res=`eval 'as_val=${'$as_ac_Header'}
29829                  $as_echo "$as_val"'`
29830                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29831 $as_echo "$ac_res" >&6; }
29832
29833 fi
29834 as_val=`eval 'as_val=${'$as_ac_Header'}
29835                  $as_echo "$as_val"'`
29836    if test "x$as_val" = x""yes; then
29837   cat >>confdefs.h <<_ACEOF
29838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29839 _ACEOF
29840
29841 fi
29842
29843 done
29844
29845
29846 for ac_func in _ftime
29847 do
29848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29850 $as_echo_n "checking for $ac_func... " >&6; }
29851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29852   $as_echo_n "(cached) " >&6
29853 else
29854   cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29862 #define $ac_func innocuous_$ac_func
29863
29864 /* System header to define __stub macros and hopefully few prototypes,
29865     which can conflict with char $ac_func (); below.
29866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29867     <limits.h> exists even on freestanding compilers.  */
29868
29869 #ifdef __STDC__
29870 # include <limits.h>
29871 #else
29872 # include <assert.h>
29873 #endif
29874
29875 #undef $ac_func
29876
29877 /* Override any GCC internal prototype to avoid an error.
29878    Use char because int might match the return type of a GCC
29879    builtin and then its argument prototype would still apply.  */
29880 #ifdef __cplusplus
29881 extern "C"
29882 #endif
29883 char $ac_func ();
29884 /* The GNU C library defines this for functions which it implements
29885     to always fail with ENOSYS.  Some functions are actually named
29886     something starting with __ and the normal name is an alias.  */
29887 #if defined __stub_$ac_func || defined __stub___$ac_func
29888 choke me
29889 #endif
29890
29891 int
29892 main ()
29893 {
29894 return $ac_func ();
29895   ;
29896   return 0;
29897 }
29898 _ACEOF
29899 rm -f conftest.$ac_objext conftest$ac_exeext
29900 if { (ac_try="$ac_link"
29901 case "(($ac_try" in
29902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29903   *) ac_try_echo=$ac_try;;
29904 esac
29905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29906 $as_echo "$ac_try_echo") >&5
29907   (eval "$ac_link") 2>conftest.er1
29908   ac_status=$?
29909   grep -v '^ *+' conftest.er1 >conftest.err
29910   rm -f conftest.er1
29911   cat conftest.err >&5
29912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); } && {
29914          test -z "$ac_c_werror_flag" ||
29915          test ! -s conftest.err
29916        } && test -s conftest$ac_exeext && {
29917          test "$cross_compiling" = yes ||
29918          $as_test_x conftest$ac_exeext
29919        }; then
29920   eval "$as_ac_var=yes"
29921 else
29922   $as_echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29924
29925         eval "$as_ac_var=no"
29926 fi
29927
29928 rm -rf conftest.dSYM
29929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29930       conftest$ac_exeext conftest.$ac_ext
29931 fi
29932 ac_res=`eval 'as_val=${'$as_ac_var'}
29933                  $as_echo "$as_val"'`
29934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29935 $as_echo "$ac_res" >&6; }
29936 as_val=`eval 'as_val=${'$as_ac_var'}
29937                  $as_echo "$as_val"'`
29938    if test "x$as_val" = x""yes; then
29939   cat >>confdefs.h <<_ACEOF
29940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29941 _ACEOF
29942
29943 fi
29944 done
29945
29946
29947   else
29948
29949
29950
29951  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
29952 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
29953 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
29954   $as_echo_n "(cached) " >&6
29955 else
29956   if test "$cross_compiling" = yes; then
29957        gl_cv_func_gettimeofday_clobber=yes
29958 else
29959   cat >conftest.$ac_ext <<_ACEOF
29960 /* confdefs.h.  */
29961 _ACEOF
29962 cat confdefs.h >>conftest.$ac_ext
29963 cat >>conftest.$ac_ext <<_ACEOF
29964 /* end confdefs.h.  */
29965 #include <string.h>
29966           #include <sys/time.h>
29967           #include <time.h>
29968           #include <stdlib.h>
29969
29970 int
29971 main ()
29972 {
29973
29974           time_t t = 0;
29975           struct tm *lt;
29976           struct tm saved_lt;
29977           struct timeval tv;
29978           lt = localtime (&t);
29979           saved_lt = *lt;
29980           gettimeofday (&tv, NULL);
29981           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
29982
29983   ;
29984   return 0;
29985 }
29986 _ACEOF
29987 rm -f conftest$ac_exeext
29988 if { (ac_try="$ac_link"
29989 case "(($ac_try" in
29990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991   *) ac_try_echo=$ac_try;;
29992 esac
29993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29994 $as_echo "$ac_try_echo") >&5
29995   (eval "$ac_link") 2>&5
29996   ac_status=$?
29997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999   { (case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005   (eval "$ac_try") 2>&5
30006   ac_status=$?
30007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; }; then
30009   gl_cv_func_gettimeofday_clobber=no
30010 else
30011   $as_echo "$as_me: program exited with status $ac_status" >&5
30012 $as_echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30014
30015 ( exit $ac_status )
30016 gl_cv_func_gettimeofday_clobber=yes
30017 fi
30018 rm -rf conftest.dSYM
30019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30020 fi
30021
30022
30023 fi
30024 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
30025 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
30026
30027  if test $gl_cv_func_gettimeofday_clobber = yes; then
30028    REPLACE_GETTIMEOFDAY=1
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30039
30040
30041
30042 for ac_header in sys/timeb.h
30043 do
30044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30047 $as_echo_n "checking for $ac_header... " >&6; }
30048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30049   $as_echo_n "(cached) " >&6
30050 fi
30051 ac_res=`eval 'as_val=${'$as_ac_Header'}
30052                  $as_echo "$as_val"'`
30053                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30054 $as_echo "$ac_res" >&6; }
30055 else
30056   # Is the header compilable?
30057 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30058 $as_echo_n "checking $ac_header usability... " >&6; }
30059 cat >conftest.$ac_ext <<_ACEOF
30060 /* confdefs.h.  */
30061 _ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h.  */
30065 $ac_includes_default
30066 #include <$ac_header>
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30075 $as_echo "$ac_try_echo") >&5
30076   (eval "$ac_compile") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } && {
30083          test -z "$ac_c_werror_flag" ||
30084          test ! -s conftest.err
30085        } && test -s conftest.$ac_objext; then
30086   ac_header_compiler=yes
30087 else
30088   $as_echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091         ac_header_compiler=no
30092 fi
30093
30094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30095 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30096 $as_echo "$ac_header_compiler" >&6; }
30097
30098 # Is the header present?
30099 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30100 $as_echo_n "checking $ac_header presence... " >&6; }
30101 cat >conftest.$ac_ext <<_ACEOF
30102 /* confdefs.h.  */
30103 _ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h.  */
30107 #include <$ac_header>
30108 _ACEOF
30109 if { (ac_try="$ac_cpp conftest.$ac_ext"
30110 case "(($ac_try" in
30111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112   *) ac_try_echo=$ac_try;;
30113 esac
30114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30115 $as_echo "$ac_try_echo") >&5
30116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } >/dev/null && {
30123          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30124          test ! -s conftest.err
30125        }; then
30126   ac_header_preproc=yes
30127 else
30128   $as_echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131   ac_header_preproc=no
30132 fi
30133
30134 rm -f conftest.err conftest.$ac_ext
30135 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30136 $as_echo "$ac_header_preproc" >&6; }
30137
30138 # So?  What about this header?
30139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30140   yes:no: )
30141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30142 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30145     ac_header_preproc=yes
30146     ;;
30147   no:yes:* )
30148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30151 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30153 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30155 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30157 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30159 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30160     ( cat <<\_ASBOX
30161 ## ------------------------------ ##
30162 ## Report this to bug-tar@gnu.org ##
30163 ## ------------------------------ ##
30164 _ASBOX
30165      ) | sed "s/^/$as_me: WARNING:     /" >&2
30166     ;;
30167 esac
30168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30169 $as_echo_n "checking for $ac_header... " >&6; }
30170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30171   $as_echo_n "(cached) " >&6
30172 else
30173   eval "$as_ac_Header=\$ac_header_preproc"
30174 fi
30175 ac_res=`eval 'as_val=${'$as_ac_Header'}
30176                  $as_echo "$as_val"'`
30177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30178 $as_echo "$ac_res" >&6; }
30179
30180 fi
30181 as_val=`eval 'as_val=${'$as_ac_Header'}
30182                  $as_echo "$as_val"'`
30183    if test "x$as_val" = x""yes; then
30184   cat >>confdefs.h <<_ACEOF
30185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30186 _ACEOF
30187
30188 fi
30189
30190 done
30191
30192
30193 for ac_func in _ftime
30194 do
30195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 $as_echo_n "checking for $ac_func... " >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199   $as_echo_n "(cached) " >&6
30200 else
30201   cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30209 #define $ac_func innocuous_$ac_func
30210
30211 /* System header to define __stub macros and hopefully few prototypes,
30212     which can conflict with char $ac_func (); below.
30213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214     <limits.h> exists even on freestanding compilers.  */
30215
30216 #ifdef __STDC__
30217 # include <limits.h>
30218 #else
30219 # include <assert.h>
30220 #endif
30221
30222 #undef $ac_func
30223
30224 /* Override any GCC internal prototype to avoid an error.
30225    Use char because int might match the return type of a GCC
30226    builtin and then its argument prototype would still apply.  */
30227 #ifdef __cplusplus
30228 extern "C"
30229 #endif
30230 char $ac_func ();
30231 /* The GNU C library defines this for functions which it implements
30232     to always fail with ENOSYS.  Some functions are actually named
30233     something starting with __ and the normal name is an alias.  */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30235 choke me
30236 #endif
30237
30238 int
30239 main ()
30240 {
30241 return $ac_func ();
30242   ;
30243   return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250   *) ac_try_echo=$ac_try;;
30251 esac
30252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30253 $as_echo "$ac_try_echo") >&5
30254   (eval "$ac_link") 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } && {
30261          test -z "$ac_c_werror_flag" ||
30262          test ! -s conftest.err
30263        } && test -s conftest$ac_exeext && {
30264          test "$cross_compiling" = yes ||
30265          $as_test_x conftest$ac_exeext
30266        }; then
30267   eval "$as_ac_var=yes"
30268 else
30269   $as_echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30271
30272         eval "$as_ac_var=no"
30273 fi
30274
30275 rm -rf conftest.dSYM
30276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30277       conftest$ac_exeext conftest.$ac_ext
30278 fi
30279 ac_res=`eval 'as_val=${'$as_ac_var'}
30280                  $as_echo "$as_val"'`
30281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30282 $as_echo "$ac_res" >&6; }
30283 as_val=`eval 'as_val=${'$as_ac_var'}
30284                  $as_echo "$as_val"'`
30285    if test "x$as_val" = x""yes; then
30286   cat >>confdefs.h <<_ACEOF
30287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30288 _ACEOF
30289
30290 fi
30291 done
30292
30293
30294
30295 cat >>confdefs.h <<\_ACEOF
30296 #define gmtime rpl_gmtime
30297 _ACEOF
30298
30299
30300 cat >>confdefs.h <<\_ACEOF
30301 #define localtime rpl_localtime
30302 _ACEOF
30303
30304
30305
30306 cat >>confdefs.h <<\_ACEOF
30307 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
30308 _ACEOF
30309
30310  fi
30311
30312     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
30313 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30314 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
30315   $as_echo_n "(cached) " >&6
30316 else
30317   cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h.  */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h.  */
30323 #include <sys/time.h>
30324               struct timeval c;
30325               int gettimeofday (struct timeval *restrict, void *restrict);
30326
30327 int
30328 main ()
30329 {
30330 /* glibc uses struct timezone * rather than the POSIX void *
30331                  if _GNU_SOURCE is defined.  However, since the only portable
30332                  use of gettimeofday uses NULL as the second parameter, and
30333                  since the glibc definition is actually more typesafe, it is
30334                  not worth wrapping this to get a compliant signature.  */
30335               int (*f) (struct timeval *restrict, void *restrict)
30336                 = gettimeofday;
30337               int x = f (&c, 0);
30338               return !(x | c.tv_sec | c.tv_usec);
30339
30340   ;
30341   return 0;
30342 }
30343 _ACEOF
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348   *) ac_try_echo=$ac_try;;
30349 esac
30350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30351 $as_echo "$ac_try_echo") >&5
30352   (eval "$ac_compile") 2>conftest.er1
30353   ac_status=$?
30354   grep -v '^ *+' conftest.er1 >conftest.err
30355   rm -f conftest.er1
30356   cat conftest.err >&5
30357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); } && {
30359          test -z "$ac_c_werror_flag" ||
30360          test ! -s conftest.err
30361        } && test -s conftest.$ac_objext; then
30362   gl_cv_func_gettimeofday_posix_signature=yes
30363 else
30364   $as_echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30366
30367         cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h.  */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h.  */
30373 #include <sys/time.h>
30374 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30375
30376 int
30377 main ()
30378 {
30379
30380   ;
30381   return 0;
30382 }
30383 _ACEOF
30384 rm -f conftest.$ac_objext
30385 if { (ac_try="$ac_compile"
30386 case "(($ac_try" in
30387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388   *) ac_try_echo=$ac_try;;
30389 esac
30390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30391 $as_echo "$ac_try_echo") >&5
30392   (eval "$ac_compile") 2>conftest.er1
30393   ac_status=$?
30394   grep -v '^ *+' conftest.er1 >conftest.err
30395   rm -f conftest.er1
30396   cat conftest.err >&5
30397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398   (exit $ac_status); } && {
30399          test -z "$ac_c_werror_flag" ||
30400          test ! -s conftest.err
30401        } && test -s conftest.$ac_objext; then
30402   gl_cv_func_gettimeofday_posix_signature=almost
30403 else
30404   $as_echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30406
30407         gl_cv_func_gettimeofday_posix_signature=no
30408 fi
30409
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30414 fi
30415 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30416 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30417     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30418       gl_gettimeofday_timezone='struct timezone'
30419     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30420       REPLACE_GETTIMEOFDAY=1
30421
30422
30423
30424
30425
30426
30427
30428
30429   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30430
30431
30432
30433 for ac_header in sys/timeb.h
30434 do
30435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30437   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30438 $as_echo_n "checking for $ac_header... " >&6; }
30439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30440   $as_echo_n "(cached) " >&6
30441 fi
30442 ac_res=`eval 'as_val=${'$as_ac_Header'}
30443                  $as_echo "$as_val"'`
30444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30445 $as_echo "$ac_res" >&6; }
30446 else
30447   # Is the header compilable?
30448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30449 $as_echo_n "checking $ac_header usability... " >&6; }
30450 cat >conftest.$ac_ext <<_ACEOF
30451 /* confdefs.h.  */
30452 _ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h.  */
30456 $ac_includes_default
30457 #include <$ac_header>
30458 _ACEOF
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30466 $as_echo "$ac_try_echo") >&5
30467   (eval "$ac_compile") 2>conftest.er1
30468   ac_status=$?
30469   grep -v '^ *+' conftest.er1 >conftest.err
30470   rm -f conftest.er1
30471   cat conftest.err >&5
30472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473   (exit $ac_status); } && {
30474          test -z "$ac_c_werror_flag" ||
30475          test ! -s conftest.err
30476        } && test -s conftest.$ac_objext; then
30477   ac_header_compiler=yes
30478 else
30479   $as_echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482         ac_header_compiler=no
30483 fi
30484
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30487 $as_echo "$ac_header_compiler" >&6; }
30488
30489 # Is the header present?
30490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30491 $as_echo_n "checking $ac_header presence... " >&6; }
30492 cat >conftest.$ac_ext <<_ACEOF
30493 /* confdefs.h.  */
30494 _ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h.  */
30498 #include <$ac_header>
30499 _ACEOF
30500 if { (ac_try="$ac_cpp conftest.$ac_ext"
30501 case "(($ac_try" in
30502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503   *) ac_try_echo=$ac_try;;
30504 esac
30505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30506 $as_echo "$ac_try_echo") >&5
30507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30508   ac_status=$?
30509   grep -v '^ *+' conftest.er1 >conftest.err
30510   rm -f conftest.er1
30511   cat conftest.err >&5
30512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513   (exit $ac_status); } >/dev/null && {
30514          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30515          test ! -s conftest.err
30516        }; then
30517   ac_header_preproc=yes
30518 else
30519   $as_echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30521
30522   ac_header_preproc=no
30523 fi
30524
30525 rm -f conftest.err conftest.$ac_ext
30526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30527 $as_echo "$ac_header_preproc" >&6; }
30528
30529 # So?  What about this header?
30530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30531   yes:no: )
30532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30536     ac_header_preproc=yes
30537     ;;
30538   no:yes:* )
30539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30542 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30546 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30551     ( cat <<\_ASBOX
30552 ## ------------------------------ ##
30553 ## Report this to bug-tar@gnu.org ##
30554 ## ------------------------------ ##
30555 _ASBOX
30556      ) | sed "s/^/$as_me: WARNING:     /" >&2
30557     ;;
30558 esac
30559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30560 $as_echo_n "checking for $ac_header... " >&6; }
30561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30562   $as_echo_n "(cached) " >&6
30563 else
30564   eval "$as_ac_Header=\$ac_header_preproc"
30565 fi
30566 ac_res=`eval 'as_val=${'$as_ac_Header'}
30567                  $as_echo "$as_val"'`
30568                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30569 $as_echo "$ac_res" >&6; }
30570
30571 fi
30572 as_val=`eval 'as_val=${'$as_ac_Header'}
30573                  $as_echo "$as_val"'`
30574    if test "x$as_val" = x""yes; then
30575   cat >>confdefs.h <<_ACEOF
30576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30577 _ACEOF
30578
30579 fi
30580
30581 done
30582
30583
30584 for ac_func in _ftime
30585 do
30586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30588 $as_echo_n "checking for $ac_func... " >&6; }
30589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30590   $as_echo_n "(cached) " >&6
30591 else
30592   cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30600 #define $ac_func innocuous_$ac_func
30601
30602 /* System header to define __stub macros and hopefully few prototypes,
30603     which can conflict with char $ac_func (); below.
30604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605     <limits.h> exists even on freestanding compilers.  */
30606
30607 #ifdef __STDC__
30608 # include <limits.h>
30609 #else
30610 # include <assert.h>
30611 #endif
30612
30613 #undef $ac_func
30614
30615 /* Override any GCC internal prototype to avoid an error.
30616    Use char because int might match the return type of a GCC
30617    builtin and then its argument prototype would still apply.  */
30618 #ifdef __cplusplus
30619 extern "C"
30620 #endif
30621 char $ac_func ();
30622 /* The GNU C library defines this for functions which it implements
30623     to always fail with ENOSYS.  Some functions are actually named
30624     something starting with __ and the normal name is an alias.  */
30625 #if defined __stub_$ac_func || defined __stub___$ac_func
30626 choke me
30627 #endif
30628
30629 int
30630 main ()
30631 {
30632 return $ac_func ();
30633   ;
30634   return 0;
30635 }
30636 _ACEOF
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (ac_try="$ac_link"
30639 case "(($ac_try" in
30640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30641   *) ac_try_echo=$ac_try;;
30642 esac
30643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30644 $as_echo "$ac_try_echo") >&5
30645   (eval "$ac_link") 2>conftest.er1
30646   ac_status=$?
30647   grep -v '^ *+' conftest.er1 >conftest.err
30648   rm -f conftest.er1
30649   cat conftest.err >&5
30650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); } && {
30652          test -z "$ac_c_werror_flag" ||
30653          test ! -s conftest.err
30654        } && test -s conftest$ac_exeext && {
30655          test "$cross_compiling" = yes ||
30656          $as_test_x conftest$ac_exeext
30657        }; then
30658   eval "$as_ac_var=yes"
30659 else
30660   $as_echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30662
30663         eval "$as_ac_var=no"
30664 fi
30665
30666 rm -rf conftest.dSYM
30667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30668       conftest$ac_exeext conftest.$ac_ext
30669 fi
30670 ac_res=`eval 'as_val=${'$as_ac_var'}
30671                  $as_echo "$as_val"'`
30672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30673 $as_echo "$ac_res" >&6; }
30674 as_val=`eval 'as_val=${'$as_ac_var'}
30675                  $as_echo "$as_val"'`
30676    if test "x$as_val" = x""yes; then
30677   cat >>confdefs.h <<_ACEOF
30678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30679 _ACEOF
30680
30681 fi
30682 done
30683
30684
30685     fi
30686   fi
30687
30688 cat >>confdefs.h <<_ACEOF
30689 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30690 _ACEOF
30691
30692
30693
30694
30695
30696   GNULIB_GETTIMEOFDAY=1
30697
30698
30699
30700 cat >>confdefs.h <<\_ACEOF
30701 #define GNULIB_TEST_GETTIMEOFDAY 1
30702 _ACEOF
30703
30704
30705
30706   # Code from module gitlog-to-changelog:
30707   # Code from module hash:
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
30718
30719
30720
30721
30722   # Code from module havelib:
30723   # Code from module human:
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
30734
30735
30736     :
30737
30738   # Code from module include_next:
30739   # Code from module inline:
30740
30741
30742   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
30743 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
30744 if test "${gl_cv_c_inline_effective+set}" = set; then
30745   $as_echo_n "(cached) " >&6
30746 else
30747   if test $ac_cv_c_inline = no; then
30748        gl_cv_c_inline_effective=no
30749      else
30750                                           cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h.  */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h.  */
30756
30757 int
30758 main ()
30759 {
30760 #ifdef __NO_INLINE__
30761                #error "inline is not effective"
30762              #endif
30763   ;
30764   return 0;
30765 }
30766 _ACEOF
30767 rm -f conftest.$ac_objext
30768 if { (ac_try="$ac_compile"
30769 case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30774 $as_echo "$ac_try_echo") >&5
30775   (eval "$ac_compile") 2>conftest.er1
30776   ac_status=$?
30777   grep -v '^ *+' conftest.er1 >conftest.err
30778   rm -f conftest.er1
30779   cat conftest.err >&5
30780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781   (exit $ac_status); } && {
30782          test -z "$ac_c_werror_flag" ||
30783          test ! -s conftest.err
30784        } && test -s conftest.$ac_objext; then
30785   gl_cv_c_inline_effective=yes
30786 else
30787   $as_echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30789
30790         gl_cv_c_inline_effective=no
30791 fi
30792
30793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30794      fi
30795
30796 fi
30797 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
30798 $as_echo "$gl_cv_c_inline_effective" >&6; }
30799   if test $gl_cv_c_inline_effective = yes; then
30800
30801 cat >>confdefs.h <<\_ACEOF
30802 #define HAVE_INLINE 1
30803 _ACEOF
30804
30805   fi
30806
30807   # Code from module intprops:
30808   # Code from module inttostr:
30809
30810
30811
30812   :
30813
30814   :
30815   :
30816   :
30817   :
30818
30819   # Code from module inttypes:
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846               { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
30847 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
30848 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
30849   $as_echo_n "(cached) " >&6
30850 else
30851   gl_cv_header_working_inttypes_h=no
30852      if test "$gl_cv_header_working_stdint_h" = yes \
30853         && test $ac_cv_header_inttypes_h = yes \
30854         && test "$ac_cv_have_decl_imaxabs" = yes \
30855         && test "$ac_cv_have_decl_imaxdiv" = yes \
30856         && test "$ac_cv_have_decl_strtoimax" = yes \
30857         && test "$ac_cv_have_decl_strtoumax" = yes; then
30858        cat >conftest.$ac_ext <<_ACEOF
30859
30860          /* confdefs.h.  */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h.  */
30865
30866 #include <stddef.h>
30867 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
30868 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
30869 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
30870 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
30871 #include <inttypes.h>
30872
30873 /* No need to duplicate the tests of stdint.m4; they are subsumed by
30874    $gl_cv_header_working_stdint_h = yes.  */
30875
30876 /* Tests for macros supposed to be defined in inttypes.h.  */
30877
30878 const char *k = /* implicit string concatenation */
30879 #ifdef INT8_MAX
30880   PRId8 PRIi8
30881 #endif
30882 #ifdef UINT8_MAX
30883   PRIo8 PRIu8 PRIx8 PRIX8
30884 #endif
30885 #ifdef INT16_MAX
30886   PRId16 PRIi16
30887 #endif
30888 #ifdef UINT16_MAX
30889   PRIo16 PRIu16 PRIx16 PRIX16
30890 #endif
30891 #ifdef INT32_MAX
30892   PRId32 PRIi32
30893 #endif
30894 #ifdef UINT32_MAX
30895   PRIo32 PRIu32 PRIx32 PRIX32
30896 #endif
30897 #ifdef INT64_MAX
30898   PRId64 PRIi64
30899 #endif
30900 #ifdef UINT64_MAX
30901   PRIo64 PRIu64 PRIx64 PRIX64
30902 #endif
30903   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
30904   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
30905   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
30906   PRIdLEAST64 PRIiLEAST64
30907   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
30908   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
30909   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
30910   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
30911   PRIdFAST64 PRIiFAST64
30912   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
30913   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
30914 #ifdef INTPTR_MAX
30915   PRIdPTR PRIiPTR
30916 #endif
30917 #ifdef UINTPTR_MAX
30918   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
30919 #endif
30920   ;
30921 const char *l = /* implicit string concatenation */
30922 #ifdef INT8_MAX
30923   SCNd8 SCNi8
30924 #endif
30925 #ifdef UINT8_MAX
30926   SCNo8 SCNu8 SCNx8
30927 #endif
30928 #ifdef INT16_MAX
30929   SCNd16 SCNi16
30930 #endif
30931 #ifdef UINT16_MAX
30932   SCNo16 SCNu16 SCNx16
30933 #endif
30934 #ifdef INT32_MAX
30935   SCNd32 SCNi32
30936 #endif
30937 #ifdef UINT32_MAX
30938   SCNo32 SCNu32 SCNx32
30939 #endif
30940 #ifdef INT64_MAX
30941   SCNd64 SCNi64
30942 #endif
30943 #ifdef UINT64_MAX
30944   SCNo64 SCNu64 SCNx64
30945 #endif
30946   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
30947   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
30948   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
30949   SCNdLEAST64 SCNiLEAST64
30950   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
30951   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
30952   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
30953   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
30954   SCNdFAST64 SCNiFAST64
30955   SCNoFAST64 SCNuFAST64 SCNxFAST64
30956   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
30957 #ifdef INTPTR_MAX
30958   SCNdPTR SCNiPTR
30959 #endif
30960 #ifdef UINTPTR_MAX
30961   SCNoPTR SCNuPTR SCNxPTR
30962 #endif
30963   ;
30964
30965 int
30966 main ()
30967 {
30968
30969   ;
30970   return 0;
30971 }
30972 _ACEOF
30973 rm -f conftest.$ac_objext
30974 if { (ac_try="$ac_compile"
30975 case "(($ac_try" in
30976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977   *) ac_try_echo=$ac_try;;
30978 esac
30979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30980 $as_echo "$ac_try_echo") >&5
30981   (eval "$ac_compile") 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } && {
30988          test -z "$ac_c_werror_flag" ||
30989          test ! -s conftest.err
30990        } && test -s conftest.$ac_objext; then
30991   gl_cv_header_working_inttypes_h=yes
30992 else
30993   $as_echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996
30997 fi
30998
30999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31000      fi
31001 fi
31002 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
31003 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017      if test $gl_cv_have_include_next = yes; then
31018        gl_cv_next_inttypes_h='<'inttypes.h'>'
31019      else
31020        { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
31021 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
31022 if test "${gl_cv_next_inttypes_h+set}" = set; then
31023   $as_echo_n "(cached) " >&6
31024 else
31025
31026           if test $ac_cv_header_inttypes_h = yes; then
31027             cat >conftest.$ac_ext <<_ACEOF
31028 /* confdefs.h.  */
31029 _ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h.  */
31033 #include <inttypes.h>
31034
31035 _ACEOF
31036                                                                                                 case "$host_os" in
31037               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31038               *)    gl_absname_cpp="$ac_cpp" ;;
31039             esac
31040                                                 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31041                sed -n '\#/inttypes.h#{
31042                  s#.*"\(.*/inttypes.h\)".*#\1#
31043                  s#^/[^/]#//&#
31044                  p
31045                  q
31046                }'`'"'
31047           else
31048             gl_cv_next_inttypes_h='<'inttypes.h'>'
31049           fi
31050
31051 fi
31052 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
31053 $as_echo "$gl_cv_next_inttypes_h" >&6; }
31054      fi
31055      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
31056
31057      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31058        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31059        gl_next_as_first_directive='<'inttypes.h'>'
31060      else
31061        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31062        gl_next_as_first_directive=$gl_cv_next_inttypes_h
31063      fi
31064      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
31065
31066
31067
31068
31069
31070
31071
31072 cat >>confdefs.h <<\_ACEOF
31073 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
31074 _ACEOF
31075
31076
31077
31078
31079   PRIPTR_PREFIX=
31080   if test -n "$STDINT_H"; then
31081         PRIPTR_PREFIX='"l"'
31082   else
31083         for glpfx in '' l ll I64; do
31084       case $glpfx in
31085         '')  gltype1='int';;
31086         l)   gltype1='long int';;
31087         ll)  gltype1='long long int';;
31088         I64) gltype1='__int64';;
31089       esac
31090       cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096 #include <stdint.h>
31097            extern intptr_t foo;
31098            extern $gltype1 foo;
31099 int
31100 main ()
31101 {
31102
31103   ;
31104   return 0;
31105 }
31106 _ACEOF
31107 rm -f conftest.$ac_objext
31108 if { (ac_try="$ac_compile"
31109 case "(($ac_try" in
31110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111   *) ac_try_echo=$ac_try;;
31112 esac
31113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31114 $as_echo "$ac_try_echo") >&5
31115   (eval "$ac_compile") 2>conftest.er1
31116   ac_status=$?
31117   grep -v '^ *+' conftest.er1 >conftest.err
31118   rm -f conftest.er1
31119   cat conftest.err >&5
31120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); } && {
31122          test -z "$ac_c_werror_flag" ||
31123          test ! -s conftest.err
31124        } && test -s conftest.$ac_objext; then
31125   PRIPTR_PREFIX='"'$glpfx'"'
31126 else
31127   $as_echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31129
31130
31131 fi
31132
31133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31134       test -n "$PRIPTR_PREFIX" && break
31135     done
31136   fi
31137
31138
31139   if test "$ac_cv_have_decl_imaxabs" = yes; then
31140     HAVE_DECL_IMAXABS=1
31141   else
31142     HAVE_DECL_IMAXABS=0
31143   fi
31144
31145   if test "$ac_cv_have_decl_imaxdiv" = yes; then
31146     HAVE_DECL_IMAXDIV=1
31147   else
31148     HAVE_DECL_IMAXDIV=0
31149   fi
31150
31151   if test "$ac_cv_have_decl_strtoimax" = yes; then
31152     HAVE_DECL_STRTOIMAX=1
31153   else
31154     HAVE_DECL_STRTOIMAX=0
31155   fi
31156
31157   if test "$ac_cv_have_decl_strtoumax" = yes; then
31158     HAVE_DECL_STRTOUMAX=1
31159   else
31160     HAVE_DECL_STRTOUMAX=0
31161   fi
31162
31163
31164   { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
31165 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
31166 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
31167   $as_echo_n "(cached) " >&6
31168 else
31169   cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h.  */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h.  */
31175 /* Work also in C++ mode.  */
31176             #define __STDC_LIMIT_MACROS 1
31177
31178             /* Work if build is not clean.  */
31179             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31180
31181             #include <limits.h>
31182             #if HAVE_STDINT_H
31183              #include <stdint.h>
31184             #endif
31185
31186             #if defined INT32_MAX && defined INTMAX_MAX
31187              #define CONDITION (INT32_MAX < INTMAX_MAX)
31188             #elif HAVE_LONG_LONG_INT
31189              #define CONDITION (sizeof (int) < sizeof (long long int))
31190             #else
31191              #define CONDITION 0
31192             #endif
31193             int test[CONDITION ? 1 : -1];
31194 int
31195 main ()
31196 {
31197
31198   ;
31199   return 0;
31200 }
31201 _ACEOF
31202 rm -f conftest.$ac_objext
31203 if { (ac_try="$ac_compile"
31204 case "(($ac_try" in
31205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206   *) ac_try_echo=$ac_try;;
31207 esac
31208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31209 $as_echo "$ac_try_echo") >&5
31210   (eval "$ac_compile") 2>conftest.er1
31211   ac_status=$?
31212   grep -v '^ *+' conftest.er1 >conftest.err
31213   rm -f conftest.er1
31214   cat conftest.err >&5
31215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && {
31217          test -z "$ac_c_werror_flag" ||
31218          test ! -s conftest.err
31219        } && test -s conftest.$ac_objext; then
31220   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
31221 else
31222   $as_echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31224
31225         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
31226 fi
31227
31228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31229 fi
31230 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
31231 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
31232   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
31233     INT32_MAX_LT_INTMAX_MAX=1;
31234   else
31235     INT32_MAX_LT_INTMAX_MAX=0;
31236   fi
31237
31238
31239   if test $APPLE_UNIVERSAL_BUILD = 0; then
31240
31241   { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
31242 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
31243 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
31244   $as_echo_n "(cached) " >&6
31245 else
31246   cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h.  */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h.  */
31252 /* Work also in C++ mode.  */
31253             #define __STDC_LIMIT_MACROS 1
31254
31255             /* Work if build is not clean.  */
31256             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31257
31258             #include <limits.h>
31259             #if HAVE_STDINT_H
31260              #include <stdint.h>
31261             #endif
31262
31263             #if defined INT64_MAX
31264              #define CONDITION (INT64_MAX == LONG_MAX)
31265             #elif HAVE_LONG_LONG_INT
31266              #define CONDITION (sizeof (long long int) == sizeof (long int))
31267             #else
31268              #define CONDITION 0
31269             #endif
31270             int test[CONDITION ? 1 : -1];
31271 int
31272 main ()
31273 {
31274
31275   ;
31276   return 0;
31277 }
31278 _ACEOF
31279 rm -f conftest.$ac_objext
31280 if { (ac_try="$ac_compile"
31281 case "(($ac_try" in
31282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283   *) ac_try_echo=$ac_try;;
31284 esac
31285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31286 $as_echo "$ac_try_echo") >&5
31287   (eval "$ac_compile") 2>conftest.er1
31288   ac_status=$?
31289   grep -v '^ *+' conftest.er1 >conftest.err
31290   rm -f conftest.er1
31291   cat conftest.err >&5
31292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293   (exit $ac_status); } && {
31294          test -z "$ac_c_werror_flag" ||
31295          test ! -s conftest.err
31296        } && test -s conftest.$ac_objext; then
31297   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
31298 else
31299   $as_echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31301
31302         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
31303 fi
31304
31305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31306 fi
31307 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
31308 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
31309   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
31310     INT64_MAX_EQ_LONG_MAX=1;
31311   else
31312     INT64_MAX_EQ_LONG_MAX=0;
31313   fi
31314
31315
31316   else
31317     INT64_MAX_EQ_LONG_MAX=-1
31318   fi
31319
31320   { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
31321 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
31322 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
31323   $as_echo_n "(cached) " >&6
31324 else
31325   cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h.  */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h.  */
31331 /* Work also in C++ mode.  */
31332             #define __STDC_LIMIT_MACROS 1
31333
31334             /* Work if build is not clean.  */
31335             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31336
31337             #include <limits.h>
31338             #if HAVE_STDINT_H
31339              #include <stdint.h>
31340             #endif
31341
31342             #if defined UINT32_MAX && defined UINTMAX_MAX
31343              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
31344             #elif HAVE_LONG_LONG_INT
31345              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
31346             #else
31347              #define CONDITION 0
31348             #endif
31349             int test[CONDITION ? 1 : -1];
31350 int
31351 main ()
31352 {
31353
31354   ;
31355   return 0;
31356 }
31357 _ACEOF
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362   *) ac_try_echo=$ac_try;;
31363 esac
31364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31365 $as_echo "$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   $as_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_test_UINT32_MAX_LT_UINTMAX_MAX=yes
31377 else
31378   $as_echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31380
31381         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 fi
31386 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
31387 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
31388   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
31389     UINT32_MAX_LT_UINTMAX_MAX=1;
31390   else
31391     UINT32_MAX_LT_UINTMAX_MAX=0;
31392   fi
31393
31394
31395   if test $APPLE_UNIVERSAL_BUILD = 0; then
31396
31397   { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
31398 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
31399 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
31400   $as_echo_n "(cached) " >&6
31401 else
31402   cat >conftest.$ac_ext <<_ACEOF
31403 /* confdefs.h.  */
31404 _ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h.  */
31408 /* Work also in C++ mode.  */
31409             #define __STDC_LIMIT_MACROS 1
31410
31411             /* Work if build is not clean.  */
31412             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
31413
31414             #include <limits.h>
31415             #if HAVE_STDINT_H
31416              #include <stdint.h>
31417             #endif
31418
31419             #if defined UINT64_MAX
31420              #define CONDITION (UINT64_MAX == ULONG_MAX)
31421             #elif HAVE_LONG_LONG_INT
31422              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
31423             #else
31424              #define CONDITION 0
31425             #endif
31426             int test[CONDITION ? 1 : -1];
31427 int
31428 main ()
31429 {
31430
31431   ;
31432   return 0;
31433 }
31434 _ACEOF
31435 rm -f conftest.$ac_objext
31436 if { (ac_try="$ac_compile"
31437 case "(($ac_try" in
31438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439   *) ac_try_echo=$ac_try;;
31440 esac
31441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31442 $as_echo "$ac_try_echo") >&5
31443   (eval "$ac_compile") 2>conftest.er1
31444   ac_status=$?
31445   grep -v '^ *+' conftest.er1 >conftest.err
31446   rm -f conftest.er1
31447   cat conftest.err >&5
31448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449   (exit $ac_status); } && {
31450          test -z "$ac_c_werror_flag" ||
31451          test ! -s conftest.err
31452        } && test -s conftest.$ac_objext; then
31453   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
31454 else
31455   $as_echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31457
31458         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
31459 fi
31460
31461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31462 fi
31463 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
31464 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
31465   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
31466     UINT64_MAX_EQ_ULONG_MAX=1;
31467   else
31468     UINT64_MAX_EQ_ULONG_MAX=0;
31469   fi
31470
31471
31472   else
31473     UINT64_MAX_EQ_ULONG_MAX=-1
31474   fi
31475
31476
31477
31478
31479
31480
31481   for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
31482     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31483     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31484 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31485 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31486   $as_echo_n "(cached) " >&6
31487 else
31488   cat >conftest.$ac_ext <<_ACEOF
31489 /* confdefs.h.  */
31490 _ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h.  */
31494 #include <inttypes.h>
31495
31496 int
31497 main ()
31498 {
31499 #undef $gl_func
31500   (void) $gl_func;
31501   ;
31502   return 0;
31503 }
31504 _ACEOF
31505 rm -f conftest.$ac_objext
31506 if { (ac_try="$ac_compile"
31507 case "(($ac_try" in
31508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509   *) ac_try_echo=$ac_try;;
31510 esac
31511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31512 $as_echo "$ac_try_echo") >&5
31513   (eval "$ac_compile") 2>conftest.er1
31514   ac_status=$?
31515   grep -v '^ *+' conftest.er1 >conftest.err
31516   rm -f conftest.er1
31517   cat conftest.err >&5
31518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519   (exit $ac_status); } && {
31520          test -z "$ac_c_werror_flag" ||
31521          test ! -s conftest.err
31522        } && test -s conftest.$ac_objext; then
31523   eval "$as_gl_Symbol=yes"
31524 else
31525   $as_echo "$as_me: failed program was:" >&5
31526 sed 's/^/| /' conftest.$ac_ext >&5
31527
31528         eval "$as_gl_Symbol=no"
31529 fi
31530
31531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31532 fi
31533 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31534                  $as_echo "$as_val"'`
31535                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31536 $as_echo "$ac_res" >&6; }
31537      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31538                  $as_echo "$as_val"'`
31539    if test "x$as_val" = x""yes; then
31540   cat >>confdefs.h <<_ACEOF
31541 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31542 _ACEOF
31543
31544                      eval ac_cv_have_decl_$gl_func=yes
31545 fi
31546
31547       done
31548
31549
31550   # Code from module langinfo:
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567      if test $gl_cv_have_include_next = yes; then
31568        gl_cv_next_langinfo_h='<'langinfo.h'>'
31569      else
31570        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
31571 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
31572 if test "${gl_cv_next_langinfo_h+set}" = set; then
31573   $as_echo_n "(cached) " >&6
31574 else
31575
31576           if test $ac_cv_header_langinfo_h = yes; then
31577             cat >conftest.$ac_ext <<_ACEOF
31578 /* confdefs.h.  */
31579 _ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h.  */
31583 #include <langinfo.h>
31584
31585 _ACEOF
31586                                                                                                 case "$host_os" in
31587               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31588               *)    gl_absname_cpp="$ac_cpp" ;;
31589             esac
31590                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31591                sed -n '\#/langinfo.h#{
31592                  s#.*"\(.*/langinfo.h\)".*#\1#
31593                  s#^/[^/]#//&#
31594                  p
31595                  q
31596                }'`'"'
31597           else
31598             gl_cv_next_langinfo_h='<'langinfo.h'>'
31599           fi
31600
31601 fi
31602 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
31603 $as_echo "$gl_cv_next_langinfo_h" >&6; }
31604      fi
31605      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
31606
31607      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31608        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31609        gl_next_as_first_directive='<'langinfo.h'>'
31610      else
31611        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31612        gl_next_as_first_directive=$gl_cv_next_langinfo_h
31613      fi
31614      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
31615
31616
31617
31618
31619     HAVE_LANGINFO_CODESET=0
31620   HAVE_LANGINFO_T_FMT_AMPM=0
31621   HAVE_LANGINFO_ERA=0
31622   HAVE_LANGINFO_YESEXPR=0
31623
31624
31625
31626
31627
31628
31629   if test $ac_cv_header_langinfo_h = yes; then
31630     HAVE_LANGINFO_H=1
31631             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
31632 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
31633 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
31634   $as_echo_n "(cached) " >&6
31635 else
31636   cat >conftest.$ac_ext <<_ACEOF
31637 /* confdefs.h.  */
31638 _ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h.  */
31642 #include <langinfo.h>
31643 int a = CODESET;
31644
31645 int
31646 main ()
31647 {
31648
31649   ;
31650   return 0;
31651 }
31652 _ACEOF
31653 rm -f conftest.$ac_objext
31654 if { (ac_try="$ac_compile"
31655 case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31660 $as_echo "$ac_try_echo") >&5
31661   (eval "$ac_compile") 2>conftest.er1
31662   ac_status=$?
31663   grep -v '^ *+' conftest.er1 >conftest.err
31664   rm -f conftest.er1
31665   cat conftest.err >&5
31666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); } && {
31668          test -z "$ac_c_werror_flag" ||
31669          test ! -s conftest.err
31670        } && test -s conftest.$ac_objext; then
31671   gl_cv_header_langinfo_codeset=yes
31672 else
31673   $as_echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31675
31676         gl_cv_header_langinfo_codeset=no
31677 fi
31678
31679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31680
31681 fi
31682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
31683 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
31684     if test $gl_cv_header_langinfo_codeset = yes; then
31685       HAVE_LANGINFO_CODESET=1
31686     fi
31687     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines T_FMT_AMPM" >&5
31688 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
31689 if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then
31690   $as_echo_n "(cached) " >&6
31691 else
31692   cat >conftest.$ac_ext <<_ACEOF
31693 /* confdefs.h.  */
31694 _ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h.  */
31698 #include <langinfo.h>
31699 int a = T_FMT_AMPM;
31700
31701 int
31702 main ()
31703 {
31704
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext
31710 if { (ac_try="$ac_compile"
31711 case "(($ac_try" in
31712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713   *) ac_try_echo=$ac_try;;
31714 esac
31715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31716 $as_echo "$ac_try_echo") >&5
31717   (eval "$ac_compile") 2>conftest.er1
31718   ac_status=$?
31719   grep -v '^ *+' conftest.er1 >conftest.err
31720   rm -f conftest.er1
31721   cat conftest.err >&5
31722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); } && {
31724          test -z "$ac_c_werror_flag" ||
31725          test ! -s conftest.err
31726        } && test -s conftest.$ac_objext; then
31727   gl_cv_header_langinfo_t_fmt_ampm=yes
31728 else
31729   $as_echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732         gl_cv_header_langinfo_t_fmt_ampm=no
31733 fi
31734
31735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31736
31737 fi
31738 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
31739 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
31740     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
31741       HAVE_LANGINFO_T_FMT_AMPM=1
31742     fi
31743     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
31744 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
31745 if test "${gl_cv_header_langinfo_era+set}" = set; then
31746   $as_echo_n "(cached) " >&6
31747 else
31748   cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754 #include <langinfo.h>
31755 int a = ERA;
31756
31757 int
31758 main ()
31759 {
31760
31761   ;
31762   return 0;
31763 }
31764 _ACEOF
31765 rm -f conftest.$ac_objext
31766 if { (ac_try="$ac_compile"
31767 case "(($ac_try" in
31768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769   *) ac_try_echo=$ac_try;;
31770 esac
31771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31772 $as_echo "$ac_try_echo") >&5
31773   (eval "$ac_compile") 2>conftest.er1
31774   ac_status=$?
31775   grep -v '^ *+' conftest.er1 >conftest.err
31776   rm -f conftest.er1
31777   cat conftest.err >&5
31778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); } && {
31780          test -z "$ac_c_werror_flag" ||
31781          test ! -s conftest.err
31782        } && test -s conftest.$ac_objext; then
31783   gl_cv_header_langinfo_era=yes
31784 else
31785   $as_echo "$as_me: failed program was:" >&5
31786 sed 's/^/| /' conftest.$ac_ext >&5
31787
31788         gl_cv_header_langinfo_era=no
31789 fi
31790
31791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31792
31793 fi
31794 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
31795 $as_echo "$gl_cv_header_langinfo_era" >&6; }
31796     if test $gl_cv_header_langinfo_era = yes; then
31797       HAVE_LANGINFO_ERA=1
31798     fi
31799     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines YESEXPR" >&5
31800 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
31801 if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then
31802   $as_echo_n "(cached) " >&6
31803 else
31804   cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810 #include <langinfo.h>
31811 int a = YESEXPR;
31812
31813 int
31814 main ()
31815 {
31816
31817   ;
31818   return 0;
31819 }
31820 _ACEOF
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825   *) ac_try_echo=$ac_try;;
31826 esac
31827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31828 $as_echo "$ac_try_echo") >&5
31829   (eval "$ac_compile") 2>conftest.er1
31830   ac_status=$?
31831   grep -v '^ *+' conftest.er1 >conftest.err
31832   rm -f conftest.er1
31833   cat conftest.err >&5
31834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); } && {
31836          test -z "$ac_c_werror_flag" ||
31837          test ! -s conftest.err
31838        } && test -s conftest.$ac_objext; then
31839   gl_cv_header_langinfo_yesexpr=yes
31840 else
31841   $as_echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31843
31844         gl_cv_header_langinfo_yesexpr=no
31845 fi
31846
31847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31848
31849 fi
31850 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_yesexpr" >&5
31851 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
31852     if test $gl_cv_header_langinfo_yesexpr = yes; then
31853       HAVE_LANGINFO_YESEXPR=1
31854     fi
31855   else
31856     HAVE_LANGINFO_H=0
31857   fi
31858
31859
31860
31861
31862
31863
31864
31865
31866   for gl_func in nl_langinfo; do
31867     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31868     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31869 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31870 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31871   $as_echo_n "(cached) " >&6
31872 else
31873   cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879 #include <langinfo.h>
31880
31881 int
31882 main ()
31883 {
31884 #undef $gl_func
31885   (void) $gl_func;
31886   ;
31887   return 0;
31888 }
31889 _ACEOF
31890 rm -f conftest.$ac_objext
31891 if { (ac_try="$ac_compile"
31892 case "(($ac_try" in
31893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894   *) ac_try_echo=$ac_try;;
31895 esac
31896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31897 $as_echo "$ac_try_echo") >&5
31898   (eval "$ac_compile") 2>conftest.er1
31899   ac_status=$?
31900   grep -v '^ *+' conftest.er1 >conftest.err
31901   rm -f conftest.er1
31902   cat conftest.err >&5
31903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904   (exit $ac_status); } && {
31905          test -z "$ac_c_werror_flag" ||
31906          test ! -s conftest.err
31907        } && test -s conftest.$ac_objext; then
31908   eval "$as_gl_Symbol=yes"
31909 else
31910   $as_echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31912
31913         eval "$as_gl_Symbol=no"
31914 fi
31915
31916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31917 fi
31918 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31919                  $as_echo "$as_val"'`
31920                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31921 $as_echo "$ac_res" >&6; }
31922      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31923                  $as_echo "$as_val"'`
31924    if test "x$as_val" = x""yes; then
31925   cat >>confdefs.h <<_ACEOF
31926 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31927 _ACEOF
31928
31929                      eval ac_cv_have_decl_$gl_func=yes
31930 fi
31931
31932       done
31933
31934
31935   # Code from module lchown:
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954 for ac_func in lchown
31955 do
31956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31958 $as_echo_n "checking for $ac_func... " >&6; }
31959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31960   $as_echo_n "(cached) " >&6
31961 else
31962   cat >conftest.$ac_ext <<_ACEOF
31963 /* confdefs.h.  */
31964 _ACEOF
31965 cat confdefs.h >>conftest.$ac_ext
31966 cat >>conftest.$ac_ext <<_ACEOF
31967 /* end confdefs.h.  */
31968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31970 #define $ac_func innocuous_$ac_func
31971
31972 /* System header to define __stub macros and hopefully few prototypes,
31973     which can conflict with char $ac_func (); below.
31974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31975     <limits.h> exists even on freestanding compilers.  */
31976
31977 #ifdef __STDC__
31978 # include <limits.h>
31979 #else
31980 # include <assert.h>
31981 #endif
31982
31983 #undef $ac_func
31984
31985 /* Override any GCC internal prototype to avoid an error.
31986    Use char because int might match the return type of a GCC
31987    builtin and then its argument prototype would still apply.  */
31988 #ifdef __cplusplus
31989 extern "C"
31990 #endif
31991 char $ac_func ();
31992 /* The GNU C library defines this for functions which it implements
31993     to always fail with ENOSYS.  Some functions are actually named
31994     something starting with __ and the normal name is an alias.  */
31995 #if defined __stub_$ac_func || defined __stub___$ac_func
31996 choke me
31997 #endif
31998
31999 int
32000 main ()
32001 {
32002 return $ac_func ();
32003   ;
32004   return 0;
32005 }
32006 _ACEOF
32007 rm -f conftest.$ac_objext conftest$ac_exeext
32008 if { (ac_try="$ac_link"
32009 case "(($ac_try" in
32010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011   *) ac_try_echo=$ac_try;;
32012 esac
32013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32014 $as_echo "$ac_try_echo") >&5
32015   (eval "$ac_link") 2>conftest.er1
32016   ac_status=$?
32017   grep -v '^ *+' conftest.er1 >conftest.err
32018   rm -f conftest.er1
32019   cat conftest.err >&5
32020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); } && {
32022          test -z "$ac_c_werror_flag" ||
32023          test ! -s conftest.err
32024        } && test -s conftest$ac_exeext && {
32025          test "$cross_compiling" = yes ||
32026          $as_test_x conftest$ac_exeext
32027        }; then
32028   eval "$as_ac_var=yes"
32029 else
32030   $as_echo "$as_me: failed program was:" >&5
32031 sed 's/^/| /' conftest.$ac_ext >&5
32032
32033         eval "$as_ac_var=no"
32034 fi
32035
32036 rm -rf conftest.dSYM
32037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32038       conftest$ac_exeext conftest.$ac_ext
32039 fi
32040 ac_res=`eval 'as_val=${'$as_ac_var'}
32041                  $as_echo "$as_val"'`
32042                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32043 $as_echo "$ac_res" >&6; }
32044 as_val=`eval 'as_val=${'$as_ac_var'}
32045                  $as_echo "$as_val"'`
32046    if test "x$as_val" = x""yes; then
32047   cat >>confdefs.h <<_ACEOF
32048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32049 _ACEOF
32050
32051 else
32052
32053     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32054
32055 fi
32056 done
32057
32058
32059   if test $ac_cv_func_lchown = no; then
32060     HAVE_LCHOWN=0
32061   elif test "$gl_cv_func_chown_slash_works" != yes \
32062       || test "$gl_cv_func_chown_ctime_works" != yes; then
32063
32064
32065
32066
32067
32068
32069
32070
32071   gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
32072
32073     REPLACE_LCHOWN=1
32074   fi
32075
32076
32077
32078
32079   GNULIB_LCHOWN=1
32080
32081
32082
32083 cat >>confdefs.h <<\_ACEOF
32084 #define GNULIB_TEST_LCHOWN 1
32085 _ACEOF
32086
32087
32088
32089   # Code from module link:
32090
32091
32092
32093
32094
32095
32096
32097
32098   if test $ac_cv_func_link = no; then
32099     HAVE_LINK=0
32100
32101
32102
32103
32104
32105
32106
32107
32108   gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
32109
32110   else
32111     { $as_echo "$as_me:$LINENO: checking whether link handles trailing slash correctly" >&5
32112 $as_echo_n "checking whether link handles trailing slash correctly... " >&6; }
32113 if test "${gl_cv_func_link_works+set}" = set; then
32114   $as_echo_n "(cached) " >&6
32115 else
32116   touch conftest.a
32117        # Assume that if we have lstat, we can also check symlinks.
32118        if test $ac_cv_func_lstat = yes; then
32119          ln -s conftest.a conftest.lnk
32120        fi
32121        if test "$cross_compiling" = yes; then
32122   gl_cv_func_link_works="guessing no"
32123 else
32124   cat >conftest.$ac_ext <<_ACEOF
32125 /* confdefs.h.  */
32126 _ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h.  */
32130 #include <unistd.h>
32131
32132 int
32133 main ()
32134 {
32135 if (!link ("conftest.a", "conftest.b/")) return 1;
32136 #if HAVE_LSTAT
32137       if (!link ("conftest.lnk/", "conftest.b")) return 2;
32138 #endif
32139
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest$ac_exeext
32145 if { (ac_try="$ac_link"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32151 $as_echo "$ac_try_echo") >&5
32152   (eval "$ac_link") 2>&5
32153   ac_status=$?
32154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32156   { (case "(($ac_try" in
32157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158   *) ac_try_echo=$ac_try;;
32159 esac
32160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32161 $as_echo "$ac_try_echo") >&5
32162   (eval "$ac_try") 2>&5
32163   ac_status=$?
32164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); }; }; then
32166   gl_cv_func_link_works=yes
32167 else
32168   $as_echo "$as_me: program exited with status $ac_status" >&5
32169 $as_echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.$ac_ext >&5
32171
32172 ( exit $ac_status )
32173 gl_cv_func_link_works=no
32174 fi
32175 rm -rf conftest.dSYM
32176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32177 fi
32178
32179
32180        rm -f conftest.a conftest.b conftest.lnk
32181 fi
32182 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_works" >&5
32183 $as_echo "$gl_cv_func_link_works" >&6; }
32184     if test "$gl_cv_func_link_works" != yes; then
32185       REPLACE_LINK=1
32186
32187
32188
32189
32190
32191
32192
32193
32194   gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
32195
32196     fi
32197   fi
32198
32199
32200
32201
32202   GNULIB_LINK=1
32203
32204
32205
32206 cat >>confdefs.h <<\_ACEOF
32207 #define GNULIB_TEST_LINK 1
32208 _ACEOF
32209
32210
32211
32212   # Code from module link-follow:
32213
32214
32215
32216
32217
32218
32219           gl_link_follows_symlinks=0 # assume GNU behavior
32220   if test $ac_cv_func_readlink = yes; then
32221     { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink" >&5
32222 $as_echo_n "checking whether link(2) dereferences a symlink... " >&6; }
32223 if test "${gl_cv_func_link_follows_symlink+set}" = set; then
32224   $as_echo_n "(cached) " >&6
32225 else
32226
32227       # Create a regular file.
32228       echo > conftest.file
32229       if test "$cross_compiling" = yes; then
32230           gl_cv_func_link_follows_symlink=unknown
32231 else
32232   cat >conftest.$ac_ext <<_ACEOF
32233 /* confdefs.h.  */
32234 _ACEOF
32235 cat confdefs.h >>conftest.$ac_ext
32236 cat >>conftest.$ac_ext <<_ACEOF
32237 /* end confdefs.h.  */
32238
32239 #       include <sys/types.h>
32240 #       include <sys/stat.h>
32241 #       include <unistd.h>
32242 #       include <stdlib.h>
32243
32244 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
32245           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
32246            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
32247
32248         int
32249         main ()
32250         {
32251           const char *file = "conftest.file";
32252           const char *sym = "conftest.sym";
32253           const char *hard = "conftest.hard";
32254           struct stat sb_file, sb_hard;
32255
32256           /* Create a symlink to the regular file. */
32257           if (symlink (file, sym))
32258             return 2;
32259
32260           /* Create a hard link to that symlink.  */
32261           if (link (sym, hard))
32262             return 3;
32263
32264           if (lstat (hard, &sb_hard))
32265             return 4;
32266           if (lstat (file, &sb_file))
32267             return 5;
32268
32269           /* If the dev/inode of hard and file are the same, then
32270              the link call followed the symlink.  */
32271           return SAME_INODE (sb_hard, sb_file) ? 1 : 0;
32272         }
32273
32274 _ACEOF
32275 rm -f conftest$ac_exeext
32276 if { (ac_try="$ac_link"
32277 case "(($ac_try" in
32278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279   *) ac_try_echo=$ac_try;;
32280 esac
32281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32282 $as_echo "$ac_try_echo") >&5
32283   (eval "$ac_link") 2>&5
32284   ac_status=$?
32285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32287   { (case "(($ac_try" in
32288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289   *) ac_try_echo=$ac_try;;
32290 esac
32291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32292 $as_echo "$ac_try_echo") >&5
32293   (eval "$ac_try") 2>&5
32294   ac_status=$?
32295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); }; }; then
32297   gl_cv_func_link_follows_symlink=no
32298 else
32299   $as_echo "$as_me: program exited with status $ac_status" >&5
32300 $as_echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32302
32303 ( exit $ac_status )
32304         gl_cv_func_link_follows_symlink=yes
32305 fi
32306 rm -rf conftest.dSYM
32307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32308 fi
32309
32310
32311       rm -f conftest.file conftest.sym conftest.hard
32312
32313 fi
32314 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_follows_symlink" >&5
32315 $as_echo "$gl_cv_func_link_follows_symlink" >&6; }
32316     case $gl_cv_func_link_follows_symlink in
32317       yes) gl_link_follows_symlinks=1 ;;
32318       no) ;; # already defaulted to 0
32319       *) gl_link_follows_symlinks=-1 ;;
32320     esac
32321   fi
32322
32323 cat >>confdefs.h <<_ACEOF
32324 #define LINK_FOLLOWS_SYMLINKS $gl_link_follows_symlinks
32325 _ACEOF
32326
32327
32328   # Code from module linkat:
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349   if test $ac_cv_func_linkat = no; then
32350     HAVE_LINKAT=0
32351
32352
32353
32354
32355
32356
32357
32358
32359   gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
32370
32371   else
32372     { $as_echo "$as_me:$LINENO: checking whether linkat(,AT_SYMLINK_FOLLOW) works" >&5
32373 $as_echo_n "checking whether linkat(,AT_SYMLINK_FOLLOW) works... " >&6; }
32374 if test "${gl_cv_func_linkat_follow+set}" = set; then
32375   $as_echo_n "(cached) " >&6
32376 else
32377   rm -rf conftest.f1 conftest.f2
32378        touch conftest.f1
32379        cat >conftest.$ac_ext <<_ACEOF
32380 /* confdefs.h.  */
32381 _ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h.  */
32385
32386 #include <fcntl.h>
32387 #include <unistd.h>
32388 #ifdef __linux__
32389 /* Linux added linkat in 2.6.16, but did not add AT_SYMLINK_FOLLOW
32390    until 2.6.18.  Always replace linkat to support older kernels.  */
32391 choke me
32392 #endif
32393
32394 int
32395 main ()
32396 {
32397 return linkat (AT_FDCWD, "conftest.f1", AT_FDCWD, "conftest.f2",
32398                     AT_SYMLINK_FOLLOW);
32399   ;
32400   return 0;
32401 }
32402 _ACEOF
32403 rm -f conftest.$ac_objext
32404 if { (ac_try="$ac_compile"
32405 case "(($ac_try" in
32406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407   *) ac_try_echo=$ac_try;;
32408 esac
32409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32410 $as_echo "$ac_try_echo") >&5
32411   (eval "$ac_compile") 2>conftest.er1
32412   ac_status=$?
32413   grep -v '^ *+' conftest.er1 >conftest.err
32414   rm -f conftest.er1
32415   cat conftest.err >&5
32416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); } && {
32418          test -z "$ac_c_werror_flag" ||
32419          test ! -s conftest.err
32420        } && test -s conftest.$ac_objext; then
32421   gl_cv_func_linkat_follow=yes
32422 else
32423   $as_echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426         gl_cv_func_linkat_follow="need runtime check"
32427 fi
32428
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430        rm -rf conftest.f1 conftest.f2
32431 fi
32432 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_follow" >&5
32433 $as_echo "$gl_cv_func_linkat_follow" >&6; }
32434     { $as_echo "$as_me:$LINENO: checking whether linkat handles trailing slash correctly" >&5
32435 $as_echo_n "checking whether linkat handles trailing slash correctly... " >&6; }
32436 if test "${gl_cv_func_linkat_slash+set}" = set; then
32437   $as_echo_n "(cached) " >&6
32438 else
32439   rm -rf conftest.a conftest.b conftest.c conftest.d
32440        if test "$cross_compiling" = yes; then
32441   # Guess yes on glibc systems, no otherwise.
32442           case "$host_os" in
32443             *-gnu*) gl_cv_func_linkat_slash="guessing yes";;
32444             *)      gl_cv_func_linkat_slash="guessing no";;
32445           esac
32446
32447 else
32448   cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h.  */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h.  */
32454 #include <unistd.h>
32455               #include <fcntl.h>
32456               #include <errno.h>
32457               #include <stdio.h>
32458
32459 int
32460 main ()
32461 {
32462 int fd;
32463               int err;
32464               int ret;
32465               /* Create a regular file.  */
32466               fd = open ("conftest.a", O_CREAT | O_EXCL | O_WRONLY, 0600);
32467               if (fd < 0)
32468                 return 1;
32469               if (write (fd, "hello", 5) < 5)
32470                 return 2;
32471               if (close (fd) < 0)
32472                 return 3;
32473               /* Test whether hard links are supported on the current
32474                  device.  */
32475               if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.b",
32476                           AT_SYMLINK_FOLLOW) < 0)
32477                 return 0;
32478               /* Test whether a trailing "/" is treated like "/.".  */
32479               if (linkat (AT_FDCWD, "conftest.a/", AT_FDCWD, "conftest.c",
32480                           AT_SYMLINK_FOLLOW) == 0)
32481                 return 4;
32482               if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.d/",
32483                           AT_SYMLINK_FOLLOW) == 0)
32484                 return 5;
32485               return 0;
32486
32487   ;
32488   return 0;
32489 }
32490 _ACEOF
32491 rm -f conftest$ac_exeext
32492 if { (ac_try="$ac_link"
32493 case "(($ac_try" in
32494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495   *) ac_try_echo=$ac_try;;
32496 esac
32497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32498 $as_echo "$ac_try_echo") >&5
32499   (eval "$ac_link") 2>&5
32500   ac_status=$?
32501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32503   { (case "(($ac_try" in
32504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505   *) ac_try_echo=$ac_try;;
32506 esac
32507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32508 $as_echo "$ac_try_echo") >&5
32509   (eval "$ac_try") 2>&5
32510   ac_status=$?
32511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); }; }; then
32513   gl_cv_func_linkat_slash=yes
32514 else
32515   $as_echo "$as_me: program exited with status $ac_status" >&5
32516 $as_echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32518
32519 ( exit $ac_status )
32520 gl_cv_func_linkat_slash=no
32521 fi
32522 rm -rf conftest.dSYM
32523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32524 fi
32525
32526
32527        rm -rf conftest.a conftest.b conftest.c conftest.d
32528 fi
32529 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_slash" >&5
32530 $as_echo "$gl_cv_func_linkat_slash" >&6; }
32531     case "$gl_cv_func_linkat_slash" in
32532       *yes) gl_linkat_slash_bug=0 ;;
32533       *)    gl_linkat_slash_bug=1 ;;
32534     esac
32535     if test "$gl_cv_func_linkat_follow" != yes \
32536        || test $gl_linkat_slash_bug = 1; then
32537       REPLACE_LINKAT=1
32538
32539
32540
32541
32542
32543
32544
32545
32546   gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
32547
32548
32549 cat >>confdefs.h <<_ACEOF
32550 #define LINKAT_TRAILING_SLASH_BUG $gl_linkat_slash_bug
32551 _ACEOF
32552
32553     fi
32554   fi
32555
32556
32557
32558
32559   GNULIB_LINKAT=1
32560
32561
32562
32563 cat >>confdefs.h <<\_ACEOF
32564 #define GNULIB_TEST_LINKAT 1
32565 _ACEOF
32566
32567
32568
32569   # Code from module localcharset:
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
32582
32583   # Code from module lseek:
32584
32585
32586
32587   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
32588 $as_echo_n "checking whether lseek detects pipes... " >&6; }
32589 if test "${gl_cv_func_lseek_pipe+set}" = set; then
32590   $as_echo_n "(cached) " >&6
32591 else
32592   if test $cross_compiling = no; then
32593        cat >conftest.$ac_ext <<_ACEOF
32594 /* confdefs.h.  */
32595 _ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h.  */
32599
32600 #include <sys/types.h> /* for off_t */
32601 #include <stdio.h> /* for SEEK_CUR */
32602 #include <unistd.h>
32603 int
32604 main ()
32605 {
32606
32607   /* Exit with success only if stdin is seekable.  */
32608   return lseek (0, (off_t)0, SEEK_CUR) < 0;
32609
32610   ;
32611   return 0;
32612 }
32613 _ACEOF
32614 rm -f conftest.$ac_objext conftest$ac_exeext
32615 if { (ac_try="$ac_link"
32616 case "(($ac_try" in
32617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618   *) ac_try_echo=$ac_try;;
32619 esac
32620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32621 $as_echo "$ac_try_echo") >&5
32622   (eval "$ac_link") 2>conftest.er1
32623   ac_status=$?
32624   grep -v '^ *+' conftest.er1 >conftest.err
32625   rm -f conftest.er1
32626   cat conftest.err >&5
32627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628   (exit $ac_status); } && {
32629          test -z "$ac_c_werror_flag" ||
32630          test ! -s conftest.err
32631        } && test -s conftest$ac_exeext && {
32632          test "$cross_compiling" = yes ||
32633          $as_test_x conftest$ac_exeext
32634        }; then
32635   if test -s conftest$ac_exeext \
32636              && ./conftest$ac_exeext < conftest.$ac_ext \
32637              && test 1 = "`echo hi \
32638                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
32639             gl_cv_func_lseek_pipe=yes
32640           else
32641             gl_cv_func_lseek_pipe=no
32642           fi
32643 else
32644   $as_echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647         gl_cv_func_lseek_pipe=no
32648 fi
32649
32650 rm -rf conftest.dSYM
32651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32652       conftest$ac_exeext conftest.$ac_ext
32653      else
32654        cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660
32661 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
32662 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
32663   Choke me.
32664 #endif
32665 _ACEOF
32666 rm -f conftest.$ac_objext
32667 if { (ac_try="$ac_compile"
32668 case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32673 $as_echo "$ac_try_echo") >&5
32674   (eval "$ac_compile") 2>conftest.er1
32675   ac_status=$?
32676   grep -v '^ *+' conftest.er1 >conftest.err
32677   rm -f conftest.er1
32678   cat conftest.err >&5
32679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); } && {
32681          test -z "$ac_c_werror_flag" ||
32682          test ! -s conftest.err
32683        } && test -s conftest.$ac_objext; then
32684   gl_cv_func_lseek_pipe=yes
32685 else
32686   $as_echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32688
32689         gl_cv_func_lseek_pipe=no
32690 fi
32691
32692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32693      fi
32694 fi
32695 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
32696 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
32697   if test $gl_cv_func_lseek_pipe = no; then
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
32708
32709
32710   REPLACE_LSEEK=1
32711
32712 cat >>confdefs.h <<\_ACEOF
32713 #define LSEEK_PIPE_BROKEN 1
32714 _ACEOF
32715
32716
32717   fi
32718
32719
32720
32721
32722   GNULIB_LSEEK=1
32723
32724
32725
32726 cat >>confdefs.h <<\_ACEOF
32727 #define GNULIB_TEST_LSEEK 1
32728 _ACEOF
32729
32730
32731
32732   # Code from module lstat:
32733
32734
32735
32736
32737
32738
32739
32740
32741   if test $ac_cv_func_lstat = yes; then
32742
32743     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
32744             REPLACE_LSTAT=1
32745     fi
32746     # Prerequisites of lib/lstat.c.
32747
32748   else
32749     HAVE_LSTAT=0
32750   fi
32751
32752
32753
32754
32755   GNULIB_LSTAT=1
32756
32757
32758
32759 cat >>confdefs.h <<\_ACEOF
32760 #define GNULIB_TEST_LSTAT 1
32761 _ACEOF
32762
32763
32764
32765   # Code from module malloc-gnu:
32766
32767
32768
32769 for ac_header in stdlib.h
32770 do
32771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32773   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32774 $as_echo_n "checking for $ac_header... " >&6; }
32775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32776   $as_echo_n "(cached) " >&6
32777 fi
32778 ac_res=`eval 'as_val=${'$as_ac_Header'}
32779                  $as_echo "$as_val"'`
32780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32781 $as_echo "$ac_res" >&6; }
32782 else
32783   # Is the header compilable?
32784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32785 $as_echo_n "checking $ac_header usability... " >&6; }
32786 cat >conftest.$ac_ext <<_ACEOF
32787 /* confdefs.h.  */
32788 _ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h.  */
32792 $ac_includes_default
32793 #include <$ac_header>
32794 _ACEOF
32795 rm -f conftest.$ac_objext
32796 if { (ac_try="$ac_compile"
32797 case "(($ac_try" in
32798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799   *) ac_try_echo=$ac_try;;
32800 esac
32801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32802 $as_echo "$ac_try_echo") >&5
32803   (eval "$ac_compile") 2>conftest.er1
32804   ac_status=$?
32805   grep -v '^ *+' conftest.er1 >conftest.err
32806   rm -f conftest.er1
32807   cat conftest.err >&5
32808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809   (exit $ac_status); } && {
32810          test -z "$ac_c_werror_flag" ||
32811          test ! -s conftest.err
32812        } && test -s conftest.$ac_objext; then
32813   ac_header_compiler=yes
32814 else
32815   $as_echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32817
32818         ac_header_compiler=no
32819 fi
32820
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32823 $as_echo "$ac_header_compiler" >&6; }
32824
32825 # Is the header present?
32826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32827 $as_echo_n "checking $ac_header presence... " >&6; }
32828 cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834 #include <$ac_header>
32835 _ACEOF
32836 if { (ac_try="$ac_cpp conftest.$ac_ext"
32837 case "(($ac_try" in
32838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839   *) ac_try_echo=$ac_try;;
32840 esac
32841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32842 $as_echo "$ac_try_echo") >&5
32843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32844   ac_status=$?
32845   grep -v '^ *+' conftest.er1 >conftest.err
32846   rm -f conftest.er1
32847   cat conftest.err >&5
32848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); } >/dev/null && {
32850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32851          test ! -s conftest.err
32852        }; then
32853   ac_header_preproc=yes
32854 else
32855   $as_echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32857
32858   ac_header_preproc=no
32859 fi
32860
32861 rm -f conftest.err conftest.$ac_ext
32862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32863 $as_echo "$ac_header_preproc" >&6; }
32864
32865 # So?  What about this header?
32866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32867   yes:no: )
32868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32872     ac_header_preproc=yes
32873     ;;
32874   no:yes:* )
32875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32878 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32882 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32883     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32887     ( cat <<\_ASBOX
32888 ## ------------------------------ ##
32889 ## Report this to bug-tar@gnu.org ##
32890 ## ------------------------------ ##
32891 _ASBOX
32892      ) | sed "s/^/$as_me: WARNING:     /" >&2
32893     ;;
32894 esac
32895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32896 $as_echo_n "checking for $ac_header... " >&6; }
32897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32898   $as_echo_n "(cached) " >&6
32899 else
32900   eval "$as_ac_Header=\$ac_header_preproc"
32901 fi
32902 ac_res=`eval 'as_val=${'$as_ac_Header'}
32903                  $as_echo "$as_val"'`
32904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32905 $as_echo "$ac_res" >&6; }
32906
32907 fi
32908 as_val=`eval 'as_val=${'$as_ac_Header'}
32909                  $as_echo "$as_val"'`
32910    if test "x$as_val" = x""yes; then
32911   cat >>confdefs.h <<_ACEOF
32912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32913 _ACEOF
32914
32915 fi
32916
32917 done
32918
32919 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
32920 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
32921 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
32922   $as_echo_n "(cached) " >&6
32923 else
32924   if test "$cross_compiling" = yes; then
32925   ac_cv_func_malloc_0_nonnull=no
32926 else
32927   cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h.  */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h.  */
32933 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
32934 # include <stdlib.h>
32935 #else
32936 char *malloc ();
32937 #endif
32938
32939 int
32940 main ()
32941 {
32942 return ! malloc (0);
32943   ;
32944   return 0;
32945 }
32946 _ACEOF
32947 rm -f conftest$ac_exeext
32948 if { (ac_try="$ac_link"
32949 case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32954 $as_echo "$ac_try_echo") >&5
32955   (eval "$ac_link") 2>&5
32956   ac_status=$?
32957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32959   { (case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32964 $as_echo "$ac_try_echo") >&5
32965   (eval "$ac_try") 2>&5
32966   ac_status=$?
32967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968   (exit $ac_status); }; }; then
32969   ac_cv_func_malloc_0_nonnull=yes
32970 else
32971   $as_echo "$as_me: program exited with status $ac_status" >&5
32972 $as_echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32974
32975 ( exit $ac_status )
32976 ac_cv_func_malloc_0_nonnull=no
32977 fi
32978 rm -rf conftest.dSYM
32979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32980 fi
32981
32982
32983 fi
32984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
32985 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
32986 if test $ac_cv_func_malloc_0_nonnull = yes; then
32987
32988 cat >>confdefs.h <<\_ACEOF
32989 #define HAVE_MALLOC_GNU 1
32990 _ACEOF
32991
32992 else
32993   cat >>confdefs.h <<\_ACEOF
32994 #define HAVE_MALLOC_GNU 0
32995 _ACEOF
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
33007
33008   REPLACE_MALLOC=1
33009
33010
33011 fi
33012
33013
33014
33015
33016
33017 cat >>confdefs.h <<_ACEOF
33018 #define GNULIB_MALLOC_GNU 1
33019 _ACEOF
33020
33021
33022   # Code from module malloc-posix:
33023
33024
33025
33026   if test $gl_cv_func_malloc_posix = yes; then
33027
33028 cat >>confdefs.h <<\_ACEOF
33029 #define HAVE_MALLOC_POSIX 1
33030 _ACEOF
33031
33032   else
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
33043
33044   REPLACE_MALLOC=1
33045
33046   fi
33047
33048
33049
33050
33051   GNULIB_MALLOC_POSIX=1
33052
33053
33054
33055 cat >>confdefs.h <<\_ACEOF
33056 #define GNULIB_TEST_MALLOC_POSIX 1
33057 _ACEOF
33058
33059
33060
33061   # Code from module malloca:
33062
33063
33064
33065
33066   # Code from module mbchar:
33067
33068
33069
33070
33071   # Code from module mbrtowc:
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33093
33094
33095
33096      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33097 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33098 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33099   $as_echo_n "(cached) " >&6
33100 else
33101
33102                   case "$host_os" in
33103                      # Guess no on AIX and OSF/1.
33104         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33105                      # Guess yes otherwise.
33106         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33107       esac
33108       if test $LOCALE_JA != none; then
33109         if test "$cross_compiling" = yes; then
33110   :
33111 else
33112   cat >conftest.$ac_ext <<_ACEOF
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118
33119 #include <locale.h>
33120 #include <string.h>
33121 #include <wchar.h>
33122 int main ()
33123 {
33124   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33125     {
33126       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33127       mbstate_t state;
33128       wchar_t wc;
33129
33130       memset (&state, '\0', sizeof (mbstate_t));
33131       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33132         if (mbsinit (&state))
33133           return 1;
33134     }
33135   return 0;
33136 }
33137 _ACEOF
33138 rm -f conftest$ac_exeext
33139 if { (ac_try="$ac_link"
33140 case "(($ac_try" in
33141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142   *) ac_try_echo=$ac_try;;
33143 esac
33144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33145 $as_echo "$ac_try_echo") >&5
33146   (eval "$ac_link") 2>&5
33147   ac_status=$?
33148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33150   { (case "(($ac_try" in
33151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152   *) ac_try_echo=$ac_try;;
33153 esac
33154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33155 $as_echo "$ac_try_echo") >&5
33156   (eval "$ac_try") 2>&5
33157   ac_status=$?
33158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); }; }; then
33160   gl_cv_func_mbrtowc_incomplete_state=yes
33161 else
33162   $as_echo "$as_me: program exited with status $ac_status" >&5
33163 $as_echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33165
33166 ( exit $ac_status )
33167 gl_cv_func_mbrtowc_incomplete_state=no
33168 fi
33169 rm -rf conftest.dSYM
33170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33171 fi
33172
33173
33174       fi
33175
33176 fi
33177 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
33178 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
33179
33180
33181
33182
33183      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
33184 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
33185 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
33186   $as_echo_n "(cached) " >&6
33187 else
33188
33189                   case "$host_os" in
33190                     # Guess no on Solaris 8.
33191         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
33192                     # Guess yes otherwise.
33193         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
33194       esac
33195       if test $LOCALE_ZH_CN != none; then
33196         if test "$cross_compiling" = yes; then
33197   :
33198 else
33199   cat >conftest.$ac_ext <<_ACEOF
33200 /* confdefs.h.  */
33201 _ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h.  */
33205
33206 #include <locale.h>
33207 #include <stdlib.h>
33208 #include <string.h>
33209 #include <wchar.h>
33210 int main ()
33211 {
33212   /* This fails on Solaris 8:
33213      mbrtowc returns 2, and sets wc to 0x00F0.
33214      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
33215   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33216     {
33217       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
33218       mbstate_t state;
33219       wchar_t wc;
33220
33221       memset (&state, '\0', sizeof (mbstate_t));
33222       if (mbrtowc (&wc, input + 3, 6, &state) != 4
33223           && mbtowc (&wc, input + 3, 6) == 4)
33224         return 1;
33225     }
33226   return 0;
33227 }
33228 _ACEOF
33229 rm -f conftest$ac_exeext
33230 if { (ac_try="$ac_link"
33231 case "(($ac_try" in
33232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33233   *) ac_try_echo=$ac_try;;
33234 esac
33235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33236 $as_echo "$ac_try_echo") >&5
33237   (eval "$ac_link") 2>&5
33238   ac_status=$?
33239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33241   { (case "(($ac_try" in
33242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243   *) ac_try_echo=$ac_try;;
33244 esac
33245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33246 $as_echo "$ac_try_echo") >&5
33247   (eval "$ac_try") 2>&5
33248   ac_status=$?
33249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; }; then
33251   gl_cv_func_mbrtowc_sanitycheck=yes
33252 else
33253   $as_echo "$as_me: program exited with status $ac_status" >&5
33254 $as_echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33256
33257 ( exit $ac_status )
33258 gl_cv_func_mbrtowc_sanitycheck=no
33259 fi
33260 rm -rf conftest.dSYM
33261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33262 fi
33263
33264
33265       fi
33266
33267 fi
33268 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
33269 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
33270
33271     REPLACE_MBSTATE_T=0
33272     case "$gl_cv_func_mbrtowc_incomplete_state" in
33273       *yes) ;;
33274       *) REPLACE_MBSTATE_T=1 ;;
33275     esac
33276     case "$gl_cv_func_mbrtowc_sanitycheck" in
33277       *yes) ;;
33278       *) REPLACE_MBSTATE_T=1 ;;
33279     esac
33280   else
33281     REPLACE_MBSTATE_T=1
33282   fi
33283   if test $REPLACE_MBSTATE_T = 1; then
33284
33285     :
33286
33287   fi
33288
33289
33290
33291
33292
33293
33294
33295
33296   if test $ac_cv_func_mbrtowc = no; then
33297     HAVE_MBRTOWC=0
33298   else
33299     if test $REPLACE_MBSTATE_T = 1; then
33300       REPLACE_MBRTOWC=1
33301     else
33302
33303
33304
33305      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
33306 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
33307 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
33308   $as_echo_n "(cached) " >&6
33309 else
33310
33311                   case "$host_os" in
33312               # Guess no on OSF/1.
33313         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
33314               # Guess yes otherwise.
33315         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
33316       esac
33317       if test $LOCALE_FR_UTF8 != none; then
33318         if test "$cross_compiling" = yes; then
33319   :
33320 else
33321   cat >conftest.$ac_ext <<_ACEOF
33322 /* confdefs.h.  */
33323 _ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h.  */
33327
33328 #include <locale.h>
33329 #include <string.h>
33330 #include <wchar.h>
33331 int main ()
33332 {
33333   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
33334     {
33335       mbstate_t state;
33336       wchar_t wc;
33337       int ret;
33338
33339       memset (&state, '\0', sizeof (mbstate_t));
33340       wc = (wchar_t) 0xBADFACE;
33341       mbrtowc (&wc, NULL, 5, &state);
33342       /* Check that wc was not modified.  */
33343       if (wc != (wchar_t) 0xBADFACE)
33344         return 1;
33345     }
33346   return 0;
33347 }
33348 _ACEOF
33349 rm -f conftest$ac_exeext
33350 if { (ac_try="$ac_link"
33351 case "(($ac_try" in
33352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353   *) ac_try_echo=$ac_try;;
33354 esac
33355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33356 $as_echo "$ac_try_echo") >&5
33357   (eval "$ac_link") 2>&5
33358   ac_status=$?
33359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33361   { (case "(($ac_try" in
33362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363   *) ac_try_echo=$ac_try;;
33364 esac
33365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33366 $as_echo "$ac_try_echo") >&5
33367   (eval "$ac_try") 2>&5
33368   ac_status=$?
33369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); }; }; then
33371   gl_cv_func_mbrtowc_null_arg=yes
33372 else
33373   $as_echo "$as_me: program exited with status $ac_status" >&5
33374 $as_echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33376
33377 ( exit $ac_status )
33378 gl_cv_func_mbrtowc_null_arg=no
33379 fi
33380 rm -rf conftest.dSYM
33381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33382 fi
33383
33384
33385       fi
33386
33387 fi
33388 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
33389 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
33390
33391
33392
33393
33394
33395      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
33396 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
33397 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
33398   $as_echo_n "(cached) " >&6
33399 else
33400
33401                   case "$host_os" in
33402                           # Guess no on HP-UX and Solaris.
33403         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
33404                           # Guess yes otherwise.
33405         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
33406       esac
33407       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
33408         if test "$cross_compiling" = yes; then
33409   :
33410 else
33411   cat >conftest.$ac_ext <<_ACEOF
33412 /* confdefs.h.  */
33413 _ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h.  */
33417
33418 #include <locale.h>
33419 #include <string.h>
33420 #include <wchar.h>
33421 int main ()
33422 {
33423   /* This fails on Solaris.  */
33424   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
33425     {
33426       char input[] = "B\303\274\303\237er"; /* "Büßer" */
33427       mbstate_t state;
33428       wchar_t wc;
33429
33430       memset (&state, '\0', sizeof (mbstate_t));
33431       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33432         {
33433           input[1] = '\0';
33434           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
33435             return 1;
33436         }
33437     }
33438   /* This fails on HP-UX 11.11.  */
33439   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33440     {
33441       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33442       mbstate_t state;
33443       wchar_t wc;
33444
33445       memset (&state, '\0', sizeof (mbstate_t));
33446       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33447         {
33448           input[1] = '\0';
33449           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
33450             return 1;
33451         }
33452     }
33453   return 0;
33454 }
33455 _ACEOF
33456 rm -f conftest$ac_exeext
33457 if { (ac_try="$ac_link"
33458 case "(($ac_try" in
33459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460   *) ac_try_echo=$ac_try;;
33461 esac
33462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33463 $as_echo "$ac_try_echo") >&5
33464   (eval "$ac_link") 2>&5
33465   ac_status=$?
33466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33468   { (case "(($ac_try" in
33469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470   *) ac_try_echo=$ac_try;;
33471 esac
33472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33473 $as_echo "$ac_try_echo") >&5
33474   (eval "$ac_try") 2>&5
33475   ac_status=$?
33476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); }; }; then
33478   gl_cv_func_mbrtowc_retval=yes
33479 else
33480   $as_echo "$as_me: program exited with status $ac_status" >&5
33481 $as_echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33483
33484 ( exit $ac_status )
33485 gl_cv_func_mbrtowc_retval=no
33486 fi
33487 rm -rf conftest.dSYM
33488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33489 fi
33490
33491
33492       fi
33493
33494 fi
33495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
33496 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
33497
33498
33499
33500
33501      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
33502 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
33503 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
33504   $as_echo_n "(cached) " >&6
33505 else
33506
33507                   case "$host_os" in
33508                        # Guess no on Solaris 8 and 9.
33509         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
33510                        # Guess yes otherwise.
33511         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
33512       esac
33513       if test $LOCALE_ZH_CN != none; then
33514         if test "$cross_compiling" = yes; then
33515   :
33516 else
33517   cat >conftest.$ac_ext <<_ACEOF
33518 /* confdefs.h.  */
33519 _ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h.  */
33523
33524 #include <locale.h>
33525 #include <string.h>
33526 #include <wchar.h>
33527 int main ()
33528 {
33529   /* This fails on Solaris 8 and 9.  */
33530   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33531     {
33532       mbstate_t state;
33533       wchar_t wc;
33534
33535       memset (&state, '\0', sizeof (mbstate_t));
33536       if (mbrtowc (&wc, "", 1, &state) != 0)
33537         return 1;
33538     }
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest$ac_exeext
33543 if { (ac_try="$ac_link"
33544 case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33549 $as_echo "$ac_try_echo") >&5
33550   (eval "$ac_link") 2>&5
33551   ac_status=$?
33552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33554   { (case "(($ac_try" in
33555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33556   *) ac_try_echo=$ac_try;;
33557 esac
33558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33559 $as_echo "$ac_try_echo") >&5
33560   (eval "$ac_try") 2>&5
33561   ac_status=$?
33562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); }; }; then
33564   gl_cv_func_mbrtowc_nul_retval=yes
33565 else
33566   $as_echo "$as_me: program exited with status $ac_status" >&5
33567 $as_echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33569
33570 ( exit $ac_status )
33571 gl_cv_func_mbrtowc_nul_retval=no
33572 fi
33573 rm -rf conftest.dSYM
33574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33575 fi
33576
33577
33578       fi
33579
33580 fi
33581 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
33582 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
33583
33584       case "$gl_cv_func_mbrtowc_null_arg" in
33585         *yes) ;;
33586         *)
33587 cat >>confdefs.h <<\_ACEOF
33588 #define MBRTOWC_NULL_ARG_BUG 1
33589 _ACEOF
33590
33591            REPLACE_MBRTOWC=1
33592            ;;
33593       esac
33594       case "$gl_cv_func_mbrtowc_retval" in
33595         *yes) ;;
33596         *)
33597 cat >>confdefs.h <<\_ACEOF
33598 #define MBRTOWC_RETVAL_BUG 1
33599 _ACEOF
33600
33601            REPLACE_MBRTOWC=1
33602            ;;
33603       esac
33604       case "$gl_cv_func_mbrtowc_nul_retval" in
33605         *yes) ;;
33606         *)
33607 cat >>confdefs.h <<\_ACEOF
33608 #define MBRTOWC_NUL_RETVAL_BUG 1
33609 _ACEOF
33610
33611            REPLACE_MBRTOWC=1
33612            ;;
33613       esac
33614     fi
33615   fi
33616   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
33617
33618     :
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
33629
33630
33631   :
33632
33633   fi
33634
33635
33636
33637
33638   GNULIB_MBRTOWC=1
33639
33640
33641
33642 cat >>confdefs.h <<\_ACEOF
33643 #define GNULIB_TEST_MBRTOWC 1
33644 _ACEOF
33645
33646
33647
33648   # Code from module mbscasecmp:
33649
33650
33651
33652   GNULIB_MBSCASECMP=1
33653
33654
33655
33656 cat >>confdefs.h <<\_ACEOF
33657 #define GNULIB_TEST_MBSCASECMP 1
33658 _ACEOF
33659
33660
33661
33662   # Code from module mbsinit:
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33684
33685
33686
33687      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33688 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33689 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33690   $as_echo_n "(cached) " >&6
33691 else
33692
33693                   case "$host_os" in
33694                      # Guess no on AIX and OSF/1.
33695         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33696                      # Guess yes otherwise.
33697         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33698       esac
33699       if test $LOCALE_JA != none; then
33700         if test "$cross_compiling" = yes; then
33701   :
33702 else
33703   cat >conftest.$ac_ext <<_ACEOF
33704 /* confdefs.h.  */
33705 _ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h.  */
33709
33710 #include <locale.h>
33711 #include <string.h>
33712 #include <wchar.h>
33713 int main ()
33714 {
33715   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33716     {
33717       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33718       mbstate_t state;
33719       wchar_t wc;
33720
33721       memset (&state, '\0', sizeof (mbstate_t));
33722       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33723         if (mbsinit (&state))
33724           return 1;
33725     }
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33736 $as_echo "$ac_try_echo") >&5
33737   (eval "$ac_link") 2>&5
33738   ac_status=$?
33739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33741   { (case "(($ac_try" in
33742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743   *) ac_try_echo=$ac_try;;
33744 esac
33745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33746 $as_echo "$ac_try_echo") >&5
33747   (eval "$ac_try") 2>&5
33748   ac_status=$?
33749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); }; }; then
33751   gl_cv_func_mbrtowc_incomplete_state=yes
33752 else
33753   $as_echo "$as_me: program exited with status $ac_status" >&5
33754 $as_echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33756
33757 ( exit $ac_status )
33758 gl_cv_func_mbrtowc_incomplete_state=no
33759 fi
33760 rm -rf conftest.dSYM
33761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33762 fi
33763
33764
33765       fi
33766
33767 fi
33768 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
33769 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
33770
33771
33772
33773
33774      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
33775 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
33776 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
33777   $as_echo_n "(cached) " >&6
33778 else
33779
33780                   case "$host_os" in
33781                     # Guess no on Solaris 8.
33782         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
33783                     # Guess yes otherwise.
33784         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
33785       esac
33786       if test $LOCALE_ZH_CN != none; then
33787         if test "$cross_compiling" = yes; then
33788   :
33789 else
33790   cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h.  */
33792 _ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h.  */
33796
33797 #include <locale.h>
33798 #include <stdlib.h>
33799 #include <string.h>
33800 #include <wchar.h>
33801 int main ()
33802 {
33803   /* This fails on Solaris 8:
33804      mbrtowc returns 2, and sets wc to 0x00F0.
33805      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
33806   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
33807     {
33808       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
33809       mbstate_t state;
33810       wchar_t wc;
33811
33812       memset (&state, '\0', sizeof (mbstate_t));
33813       if (mbrtowc (&wc, input + 3, 6, &state) != 4
33814           && mbtowc (&wc, input + 3, 6) == 4)
33815         return 1;
33816     }
33817   return 0;
33818 }
33819 _ACEOF
33820 rm -f conftest$ac_exeext
33821 if { (ac_try="$ac_link"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33827 $as_echo "$ac_try_echo") >&5
33828   (eval "$ac_link") 2>&5
33829   ac_status=$?
33830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33832   { (case "(($ac_try" in
33833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834   *) ac_try_echo=$ac_try;;
33835 esac
33836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33837 $as_echo "$ac_try_echo") >&5
33838   (eval "$ac_try") 2>&5
33839   ac_status=$?
33840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841   (exit $ac_status); }; }; then
33842   gl_cv_func_mbrtowc_sanitycheck=yes
33843 else
33844   $as_echo "$as_me: program exited with status $ac_status" >&5
33845 $as_echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33847
33848 ( exit $ac_status )
33849 gl_cv_func_mbrtowc_sanitycheck=no
33850 fi
33851 rm -rf conftest.dSYM
33852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33853 fi
33854
33855
33856       fi
33857
33858 fi
33859 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
33860 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
33861
33862     REPLACE_MBSTATE_T=0
33863     case "$gl_cv_func_mbrtowc_incomplete_state" in
33864       *yes) ;;
33865       *) REPLACE_MBSTATE_T=1 ;;
33866     esac
33867     case "$gl_cv_func_mbrtowc_sanitycheck" in
33868       *yes) ;;
33869       *) REPLACE_MBSTATE_T=1 ;;
33870     esac
33871   else
33872     REPLACE_MBSTATE_T=1
33873   fi
33874   if test $REPLACE_MBSTATE_T = 1; then
33875
33876     :
33877
33878   fi
33879
33880
33881
33882
33883
33884
33885
33886
33887   if test $ac_cv_func_mbsinit = no; then
33888     HAVE_MBSINIT=0
33889   else
33890     if test $REPLACE_MBSTATE_T = 1; then
33891       REPLACE_MBSINIT=1
33892     fi
33893   fi
33894   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
33895
33896     :
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
33907
33908
33909   :
33910
33911   fi
33912
33913
33914
33915
33916   GNULIB_MBSINIT=1
33917
33918
33919
33920 cat >>confdefs.h <<\_ACEOF
33921 #define GNULIB_TEST_MBSINIT 1
33922 _ACEOF
33923
33924
33925
33926   # Code from module mbsrtowcs:
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
33948
33949
33950
33951      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
33952 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
33953 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
33954   $as_echo_n "(cached) " >&6
33955 else
33956
33957                   case "$host_os" in
33958                      # Guess no on AIX and OSF/1.
33959         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
33960                      # Guess yes otherwise.
33961         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
33962       esac
33963       if test $LOCALE_JA != none; then
33964         if test "$cross_compiling" = yes; then
33965   :
33966 else
33967   cat >conftest.$ac_ext <<_ACEOF
33968 /* confdefs.h.  */
33969 _ACEOF
33970 cat confdefs.h >>conftest.$ac_ext
33971 cat >>conftest.$ac_ext <<_ACEOF
33972 /* end confdefs.h.  */
33973
33974 #include <locale.h>
33975 #include <string.h>
33976 #include <wchar.h>
33977 int main ()
33978 {
33979   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
33980     {
33981       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
33982       mbstate_t state;
33983       wchar_t wc;
33984
33985       memset (&state, '\0', sizeof (mbstate_t));
33986       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
33987         if (mbsinit (&state))
33988           return 1;
33989     }
33990   return 0;
33991 }
33992 _ACEOF
33993 rm -f conftest$ac_exeext
33994 if { (ac_try="$ac_link"
33995 case "(($ac_try" in
33996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997   *) ac_try_echo=$ac_try;;
33998 esac
33999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34000 $as_echo "$ac_try_echo") >&5
34001   (eval "$ac_link") 2>&5
34002   ac_status=$?
34003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34005   { (case "(($ac_try" in
34006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007   *) ac_try_echo=$ac_try;;
34008 esac
34009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34010 $as_echo "$ac_try_echo") >&5
34011   (eval "$ac_try") 2>&5
34012   ac_status=$?
34013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014   (exit $ac_status); }; }; then
34015   gl_cv_func_mbrtowc_incomplete_state=yes
34016 else
34017   $as_echo "$as_me: program exited with status $ac_status" >&5
34018 $as_echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34020
34021 ( exit $ac_status )
34022 gl_cv_func_mbrtowc_incomplete_state=no
34023 fi
34024 rm -rf conftest.dSYM
34025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34026 fi
34027
34028
34029       fi
34030
34031 fi
34032 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34033 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34034
34035
34036
34037
34038      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
34039 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34040 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
34041   $as_echo_n "(cached) " >&6
34042 else
34043
34044                   case "$host_os" in
34045                     # Guess no on Solaris 8.
34046         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34047                     # Guess yes otherwise.
34048         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34049       esac
34050       if test $LOCALE_ZH_CN != none; then
34051         if test "$cross_compiling" = yes; then
34052   :
34053 else
34054   cat >conftest.$ac_ext <<_ACEOF
34055 /* confdefs.h.  */
34056 _ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h.  */
34060
34061 #include <locale.h>
34062 #include <stdlib.h>
34063 #include <string.h>
34064 #include <wchar.h>
34065 int main ()
34066 {
34067   /* This fails on Solaris 8:
34068      mbrtowc returns 2, and sets wc to 0x00F0.
34069      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
34070   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34071     {
34072       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34073       mbstate_t state;
34074       wchar_t wc;
34075
34076       memset (&state, '\0', sizeof (mbstate_t));
34077       if (mbrtowc (&wc, input + 3, 6, &state) != 4
34078           && mbtowc (&wc, input + 3, 6) == 4)
34079         return 1;
34080     }
34081   return 0;
34082 }
34083 _ACEOF
34084 rm -f conftest$ac_exeext
34085 if { (ac_try="$ac_link"
34086 case "(($ac_try" in
34087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34088   *) ac_try_echo=$ac_try;;
34089 esac
34090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34091 $as_echo "$ac_try_echo") >&5
34092   (eval "$ac_link") 2>&5
34093   ac_status=$?
34094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34096   { (case "(($ac_try" in
34097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098   *) ac_try_echo=$ac_try;;
34099 esac
34100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34101 $as_echo "$ac_try_echo") >&5
34102   (eval "$ac_try") 2>&5
34103   ac_status=$?
34104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105   (exit $ac_status); }; }; then
34106   gl_cv_func_mbrtowc_sanitycheck=yes
34107 else
34108   $as_echo "$as_me: program exited with status $ac_status" >&5
34109 $as_echo "$as_me: failed program was:" >&5
34110 sed 's/^/| /' conftest.$ac_ext >&5
34111
34112 ( exit $ac_status )
34113 gl_cv_func_mbrtowc_sanitycheck=no
34114 fi
34115 rm -rf conftest.dSYM
34116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34117 fi
34118
34119
34120       fi
34121
34122 fi
34123 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34124 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34125
34126     REPLACE_MBSTATE_T=0
34127     case "$gl_cv_func_mbrtowc_incomplete_state" in
34128       *yes) ;;
34129       *) REPLACE_MBSTATE_T=1 ;;
34130     esac
34131     case "$gl_cv_func_mbrtowc_sanitycheck" in
34132       *yes) ;;
34133       *) REPLACE_MBSTATE_T=1 ;;
34134     esac
34135   else
34136     REPLACE_MBSTATE_T=1
34137   fi
34138   if test $REPLACE_MBSTATE_T = 1; then
34139
34140     :
34141
34142   fi
34143
34144
34145
34146
34147
34148
34149
34150
34151   if test $ac_cv_func_mbsrtowcs = no; then
34152     HAVE_MBSRTOWCS=0
34153   else
34154     if test $REPLACE_MBSTATE_T = 1; then
34155       REPLACE_MBSRTOWCS=1
34156     else
34157
34158
34159
34160
34161
34162      { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
34163 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
34164 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
34165   $as_echo_n "(cached) " >&6
34166 else
34167
34168                   case "$host_os" in
34169                           # Guess no on HP-UX and Solaris.
34170         hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
34171                           # Guess yes otherwise.
34172         *)                gl_cv_func_mbsrtowcs_works="guessing yes" ;;
34173       esac
34174       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
34175         if test "$cross_compiling" = yes; then
34176   :
34177 else
34178   cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184
34185 #include <locale.h>
34186 #include <string.h>
34187 #include <wchar.h>
34188 int main ()
34189 {
34190   /* Test whether the function works when started with a conversion state
34191      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
34192   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34193     {
34194       const char input[] = "B\303\274\303\237er";
34195       mbstate_t state;
34196
34197       memset (&state, '\0', sizeof (mbstate_t));
34198       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
34199         if (!mbsinit (&state))
34200           {
34201             const char *src = input + 2;
34202             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
34203               return 1;
34204           }
34205     }
34206   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34207     {
34208       const char input[] = "<\306\374\313\334\270\354>";
34209       mbstate_t state;
34210
34211       memset (&state, '\0', sizeof (mbstate_t));
34212       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
34213         if (!mbsinit (&state))
34214           {
34215             const char *src = input + 4;
34216             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
34217               return 1;
34218           }
34219     }
34220   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34221     {
34222       const char input[] = "B\250\271\201\060\211\070er";
34223       mbstate_t state;
34224
34225       memset (&state, '\0', sizeof (mbstate_t));
34226       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
34227         if (!mbsinit (&state))
34228           {
34229             const char *src = input + 2;
34230             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
34231               return 1;
34232           }
34233     }
34234   return 0;
34235 }
34236 _ACEOF
34237 rm -f conftest$ac_exeext
34238 if { (ac_try="$ac_link"
34239 case "(($ac_try" in
34240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241   *) ac_try_echo=$ac_try;;
34242 esac
34243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34244 $as_echo "$ac_try_echo") >&5
34245   (eval "$ac_link") 2>&5
34246   ac_status=$?
34247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34249   { (case "(($ac_try" in
34250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251   *) ac_try_echo=$ac_try;;
34252 esac
34253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34254 $as_echo "$ac_try_echo") >&5
34255   (eval "$ac_try") 2>&5
34256   ac_status=$?
34257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258   (exit $ac_status); }; }; then
34259   gl_cv_func_mbsrtowcs_works=yes
34260 else
34261   $as_echo "$as_me: program exited with status $ac_status" >&5
34262 $as_echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34264
34265 ( exit $ac_status )
34266 gl_cv_func_mbsrtowcs_works=no
34267 fi
34268 rm -rf conftest.dSYM
34269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34270 fi
34271
34272
34273       fi
34274
34275 fi
34276 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
34277 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
34278
34279       case "$gl_cv_func_mbsrtowcs_works" in
34280         *yes) ;;
34281         *) REPLACE_MBSRTOWCS=1 ;;
34282       esac
34283     fi
34284   fi
34285   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
34286
34287     :
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
34308
34309
34310   :
34311
34312   fi
34313
34314
34315
34316
34317   GNULIB_MBSRTOWCS=1
34318
34319
34320
34321 cat >>confdefs.h <<\_ACEOF
34322 #define GNULIB_TEST_MBSRTOWCS 1
34323 _ACEOF
34324
34325
34326
34327   # Code from module mbuiter:
34328
34329
34330
34331
34332   :
34333
34334   # Code from module memchr:
34335
34336
34337
34338
34339   GNULIB_MEMCHR=1
34340
34341
34342
34343 cat >>confdefs.h <<\_ACEOF
34344 #define GNULIB_TEST_MEMCHR 1
34345 _ACEOF
34346
34347
34348
34349   # Code from module mempcpy:
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365 for ac_func in mempcpy
34366 do
34367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34368 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34369 $as_echo_n "checking for $ac_func... " >&6; }
34370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34371   $as_echo_n "(cached) " >&6
34372 else
34373   cat >conftest.$ac_ext <<_ACEOF
34374 /* confdefs.h.  */
34375 _ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h.  */
34379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34381 #define $ac_func innocuous_$ac_func
34382
34383 /* System header to define __stub macros and hopefully few prototypes,
34384     which can conflict with char $ac_func (); below.
34385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34386     <limits.h> exists even on freestanding compilers.  */
34387
34388 #ifdef __STDC__
34389 # include <limits.h>
34390 #else
34391 # include <assert.h>
34392 #endif
34393
34394 #undef $ac_func
34395
34396 /* Override any GCC internal prototype to avoid an error.
34397    Use char because int might match the return type of a GCC
34398    builtin and then its argument prototype would still apply.  */
34399 #ifdef __cplusplus
34400 extern "C"
34401 #endif
34402 char $ac_func ();
34403 /* The GNU C library defines this for functions which it implements
34404     to always fail with ENOSYS.  Some functions are actually named
34405     something starting with __ and the normal name is an alias.  */
34406 #if defined __stub_$ac_func || defined __stub___$ac_func
34407 choke me
34408 #endif
34409
34410 int
34411 main ()
34412 {
34413 return $ac_func ();
34414   ;
34415   return 0;
34416 }
34417 _ACEOF
34418 rm -f conftest.$ac_objext conftest$ac_exeext
34419 if { (ac_try="$ac_link"
34420 case "(($ac_try" in
34421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422   *) ac_try_echo=$ac_try;;
34423 esac
34424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34425 $as_echo "$ac_try_echo") >&5
34426   (eval "$ac_link") 2>conftest.er1
34427   ac_status=$?
34428   grep -v '^ *+' conftest.er1 >conftest.err
34429   rm -f conftest.er1
34430   cat conftest.err >&5
34431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432   (exit $ac_status); } && {
34433          test -z "$ac_c_werror_flag" ||
34434          test ! -s conftest.err
34435        } && test -s conftest$ac_exeext && {
34436          test "$cross_compiling" = yes ||
34437          $as_test_x conftest$ac_exeext
34438        }; then
34439   eval "$as_ac_var=yes"
34440 else
34441   $as_echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34443
34444         eval "$as_ac_var=no"
34445 fi
34446
34447 rm -rf conftest.dSYM
34448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34449       conftest$ac_exeext conftest.$ac_ext
34450 fi
34451 ac_res=`eval 'as_val=${'$as_ac_var'}
34452                  $as_echo "$as_val"'`
34453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34454 $as_echo "$ac_res" >&6; }
34455 as_val=`eval 'as_val=${'$as_ac_var'}
34456                  $as_echo "$as_val"'`
34457    if test "x$as_val" = x""yes; then
34458   cat >>confdefs.h <<_ACEOF
34459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34460 _ACEOF
34461
34462 else
34463
34464     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34465
34466 fi
34467 done
34468
34469
34470   if test $ac_cv_func_mempcpy = no; then
34471     HAVE_MEMPCPY=0
34472
34473   :
34474
34475   fi
34476
34477
34478
34479
34480   GNULIB_MEMPCPY=1
34481
34482
34483
34484 cat >>confdefs.h <<\_ACEOF
34485 #define GNULIB_TEST_MEMPCPY 1
34486 _ACEOF
34487
34488
34489
34490   # Code from module memrchr:
34491
34492
34493
34494
34495
34496
34497
34498
34499   if test $ac_cv_have_decl_memrchr = no; then
34500     HAVE_DECL_MEMRCHR=0
34501   fi
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512 for ac_func in memrchr
34513 do
34514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34516 $as_echo_n "checking for $ac_func... " >&6; }
34517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34518   $as_echo_n "(cached) " >&6
34519 else
34520   cat >conftest.$ac_ext <<_ACEOF
34521 /* confdefs.h.  */
34522 _ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h.  */
34526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34528 #define $ac_func innocuous_$ac_func
34529
34530 /* System header to define __stub macros and hopefully few prototypes,
34531     which can conflict with char $ac_func (); below.
34532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34533     <limits.h> exists even on freestanding compilers.  */
34534
34535 #ifdef __STDC__
34536 # include <limits.h>
34537 #else
34538 # include <assert.h>
34539 #endif
34540
34541 #undef $ac_func
34542
34543 /* Override any GCC internal prototype to avoid an error.
34544    Use char because int might match the return type of a GCC
34545    builtin and then its argument prototype would still apply.  */
34546 #ifdef __cplusplus
34547 extern "C"
34548 #endif
34549 char $ac_func ();
34550 /* The GNU C library defines this for functions which it implements
34551     to always fail with ENOSYS.  Some functions are actually named
34552     something starting with __ and the normal name is an alias.  */
34553 #if defined __stub_$ac_func || defined __stub___$ac_func
34554 choke me
34555 #endif
34556
34557 int
34558 main ()
34559 {
34560 return $ac_func ();
34561   ;
34562   return 0;
34563 }
34564 _ACEOF
34565 rm -f conftest.$ac_objext conftest$ac_exeext
34566 if { (ac_try="$ac_link"
34567 case "(($ac_try" in
34568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34569   *) ac_try_echo=$ac_try;;
34570 esac
34571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34572 $as_echo "$ac_try_echo") >&5
34573   (eval "$ac_link") 2>conftest.er1
34574   ac_status=$?
34575   grep -v '^ *+' conftest.er1 >conftest.err
34576   rm -f conftest.er1
34577   cat conftest.err >&5
34578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579   (exit $ac_status); } && {
34580          test -z "$ac_c_werror_flag" ||
34581          test ! -s conftest.err
34582        } && test -s conftest$ac_exeext && {
34583          test "$cross_compiling" = yes ||
34584          $as_test_x conftest$ac_exeext
34585        }; then
34586   eval "$as_ac_var=yes"
34587 else
34588   $as_echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34590
34591         eval "$as_ac_var=no"
34592 fi
34593
34594 rm -rf conftest.dSYM
34595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34596       conftest$ac_exeext conftest.$ac_ext
34597 fi
34598 ac_res=`eval 'as_val=${'$as_ac_var'}
34599                  $as_echo "$as_val"'`
34600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34601 $as_echo "$ac_res" >&6; }
34602 as_val=`eval 'as_val=${'$as_ac_var'}
34603                  $as_echo "$as_val"'`
34604    if test "x$as_val" = x""yes; then
34605   cat >>confdefs.h <<_ACEOF
34606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34607 _ACEOF
34608
34609 else
34610
34611     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34612
34613 fi
34614 done
34615
34616
34617   if test $ac_cv_func_memrchr = no; then
34618     :
34619   fi
34620
34621
34622
34623
34624   GNULIB_MEMRCHR=1
34625
34626
34627
34628 cat >>confdefs.h <<\_ACEOF
34629 #define GNULIB_TEST_MEMRCHR 1
34630 _ACEOF
34631
34632
34633
34634   # Code from module mkdir:
34635
34636
34637
34638
34639
34640
34641
34642   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
34643 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
34644 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
34645   $as_echo_n "(cached) " >&6
34646 else
34647   rm -rf conftest.dir
34648       if test "$cross_compiling" = yes; then
34649   gl_cv_func_mkdir_trailing_slash_works="guessing no"
34650 else
34651   cat >conftest.$ac_ext <<_ACEOF
34652 /* confdefs.h.  */
34653 _ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h.  */
34657
34658 #       include <sys/types.h>
34659 #       include <sys/stat.h>
34660
34661 int
34662 main ()
34663 {
34664 return mkdir ("conftest.dir/", 0700);
34665   ;
34666   return 0;
34667 }
34668 _ACEOF
34669 rm -f conftest$ac_exeext
34670 if { (ac_try="$ac_link"
34671 case "(($ac_try" in
34672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673   *) ac_try_echo=$ac_try;;
34674 esac
34675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34676 $as_echo "$ac_try_echo") >&5
34677   (eval "$ac_link") 2>&5
34678   ac_status=$?
34679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34681   { (case "(($ac_try" in
34682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683   *) ac_try_echo=$ac_try;;
34684 esac
34685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34686 $as_echo "$ac_try_echo") >&5
34687   (eval "$ac_try") 2>&5
34688   ac_status=$?
34689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690   (exit $ac_status); }; }; then
34691   gl_cv_func_mkdir_trailing_slash_works=yes
34692 else
34693   $as_echo "$as_me: program exited with status $ac_status" >&5
34694 $as_echo "$as_me: failed program was:" >&5
34695 sed 's/^/| /' conftest.$ac_ext >&5
34696
34697 ( exit $ac_status )
34698 gl_cv_func_mkdir_trailing_slash_works=no
34699 fi
34700 rm -rf conftest.dSYM
34701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34702 fi
34703
34704
34705     rm -rf conftest.dir
34706
34707
34708 fi
34709 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
34710 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
34711   if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
34712     REPLACE_MKDIR=1
34713
34714
34715
34716
34717
34718
34719
34720
34721   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
34722
34723   fi
34724
34725   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
34726 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
34727 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
34728   $as_echo_n "(cached) " >&6
34729 else
34730   rm -rf conftest.dir
34731       if test "$cross_compiling" = yes; then
34732   gl_cv_func_mkdir_trailing_dot_works="guessing no"
34733 else
34734   cat >conftest.$ac_ext <<_ACEOF
34735 /* confdefs.h.  */
34736 _ACEOF
34737 cat confdefs.h >>conftest.$ac_ext
34738 cat >>conftest.$ac_ext <<_ACEOF
34739 /* end confdefs.h.  */
34740
34741 #       include <sys/types.h>
34742 #       include <sys/stat.h>
34743
34744 int
34745 main ()
34746 {
34747 return !mkdir ("conftest.dir/./", 0700);
34748   ;
34749   return 0;
34750 }
34751 _ACEOF
34752 rm -f conftest$ac_exeext
34753 if { (ac_try="$ac_link"
34754 case "(($ac_try" in
34755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34756   *) ac_try_echo=$ac_try;;
34757 esac
34758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34759 $as_echo "$ac_try_echo") >&5
34760   (eval "$ac_link") 2>&5
34761   ac_status=$?
34762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34764   { (case "(($ac_try" in
34765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766   *) ac_try_echo=$ac_try;;
34767 esac
34768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34769 $as_echo "$ac_try_echo") >&5
34770   (eval "$ac_try") 2>&5
34771   ac_status=$?
34772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773   (exit $ac_status); }; }; then
34774   gl_cv_func_mkdir_trailing_dot_works=yes
34775 else
34776   $as_echo "$as_me: program exited with status $ac_status" >&5
34777 $as_echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34779
34780 ( exit $ac_status )
34781 gl_cv_func_mkdir_trailing_dot_works=no
34782 fi
34783 rm -rf conftest.dSYM
34784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34785 fi
34786
34787
34788     rm -rf conftest.dir
34789
34790
34791 fi
34792 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
34793 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
34794   if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
34795     REPLACE_MKDIR=1
34796
34797
34798
34799
34800
34801
34802
34803
34804   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
34805
34806
34807 cat >>confdefs.h <<\_ACEOF
34808 #define FUNC_MKDIR_DOT_BUG 1
34809 _ACEOF
34810
34811   fi
34812
34813   # Code from module mkdtemp:
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825 for ac_func in mkdtemp
34826 do
34827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34829 $as_echo_n "checking for $ac_func... " >&6; }
34830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34831   $as_echo_n "(cached) " >&6
34832 else
34833   cat >conftest.$ac_ext <<_ACEOF
34834 /* confdefs.h.  */
34835 _ACEOF
34836 cat confdefs.h >>conftest.$ac_ext
34837 cat >>conftest.$ac_ext <<_ACEOF
34838 /* end confdefs.h.  */
34839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34841 #define $ac_func innocuous_$ac_func
34842
34843 /* System header to define __stub macros and hopefully few prototypes,
34844     which can conflict with char $ac_func (); below.
34845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34846     <limits.h> exists even on freestanding compilers.  */
34847
34848 #ifdef __STDC__
34849 # include <limits.h>
34850 #else
34851 # include <assert.h>
34852 #endif
34853
34854 #undef $ac_func
34855
34856 /* Override any GCC internal prototype to avoid an error.
34857    Use char because int might match the return type of a GCC
34858    builtin and then its argument prototype would still apply.  */
34859 #ifdef __cplusplus
34860 extern "C"
34861 #endif
34862 char $ac_func ();
34863 /* The GNU C library defines this for functions which it implements
34864     to always fail with ENOSYS.  Some functions are actually named
34865     something starting with __ and the normal name is an alias.  */
34866 #if defined __stub_$ac_func || defined __stub___$ac_func
34867 choke me
34868 #endif
34869
34870 int
34871 main ()
34872 {
34873 return $ac_func ();
34874   ;
34875   return 0;
34876 }
34877 _ACEOF
34878 rm -f conftest.$ac_objext conftest$ac_exeext
34879 if { (ac_try="$ac_link"
34880 case "(($ac_try" in
34881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34882   *) ac_try_echo=$ac_try;;
34883 esac
34884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34885 $as_echo "$ac_try_echo") >&5
34886   (eval "$ac_link") 2>conftest.er1
34887   ac_status=$?
34888   grep -v '^ *+' conftest.er1 >conftest.err
34889   rm -f conftest.er1
34890   cat conftest.err >&5
34891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892   (exit $ac_status); } && {
34893          test -z "$ac_c_werror_flag" ||
34894          test ! -s conftest.err
34895        } && test -s conftest$ac_exeext && {
34896          test "$cross_compiling" = yes ||
34897          $as_test_x conftest$ac_exeext
34898        }; then
34899   eval "$as_ac_var=yes"
34900 else
34901   $as_echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34903
34904         eval "$as_ac_var=no"
34905 fi
34906
34907 rm -rf conftest.dSYM
34908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34909       conftest$ac_exeext conftest.$ac_ext
34910 fi
34911 ac_res=`eval 'as_val=${'$as_ac_var'}
34912                  $as_echo "$as_val"'`
34913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34914 $as_echo "$ac_res" >&6; }
34915 as_val=`eval 'as_val=${'$as_ac_var'}
34916                  $as_echo "$as_val"'`
34917    if test "x$as_val" = x""yes; then
34918   cat >>confdefs.h <<_ACEOF
34919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34920 _ACEOF
34921
34922 else
34923
34924     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34925
34926 fi
34927 done
34928
34929
34930   if test $ac_cv_func_mkdtemp = no; then
34931     HAVE_MKDTEMP=0
34932     :
34933
34934   fi
34935
34936
34937
34938
34939   GNULIB_MKDTEMP=1
34940
34941
34942
34943 cat >>confdefs.h <<\_ACEOF
34944 #define GNULIB_TEST_MKDTEMP 1
34945 _ACEOF
34946
34947
34948
34949   # Code from module mkfifo:
34950
34951
34952
34953
34954
34955
34956
34957
34958   if test $ac_cv_func_mkfifo = no; then
34959     HAVE_MKFIFO=0
34960
34961
34962
34963
34964
34965
34966
34967
34968   gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
34969
34970   else
34971
34972
34973
34974
34975
34976
34977     { $as_echo "$as_me:$LINENO: checking whether mkfifo rejects trailing slashes" >&5
34978 $as_echo_n "checking whether mkfifo rejects trailing slashes... " >&6; }
34979 if test "${gl_cv_func_mkfifo_works+set}" = set; then
34980   $as_echo_n "(cached) " >&6
34981 else
34982   # Assume that if we have lstat, we can also check symlinks.
34983        if test $ac_cv_func_lstat = yes; then
34984          ln -s conftest.tmp conftest.lnk
34985        fi
34986        if test "$cross_compiling" = yes; then
34987   gl_cv_func_mkfifo_works="guessing no"
34988 else
34989   cat >conftest.$ac_ext <<_ACEOF
34990 /* confdefs.h.  */
34991 _ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h.  */
34995 #include <sys/stat.h>
34996
34997 int
34998 main ()
34999 {
35000 if (!mkfifo ("conftest.tmp/", 0600)) return 1;
35001 #if HAVE_LSTAT
35002       if (!mkfifo ("conftest.lnk/", 0600)) return 2;
35003 #endif
35004
35005   ;
35006   return 0;
35007 }
35008 _ACEOF
35009 rm -f conftest$ac_exeext
35010 if { (ac_try="$ac_link"
35011 case "(($ac_try" in
35012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013   *) ac_try_echo=$ac_try;;
35014 esac
35015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35016 $as_echo "$ac_try_echo") >&5
35017   (eval "$ac_link") 2>&5
35018   ac_status=$?
35019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35021   { (case "(($ac_try" in
35022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023   *) ac_try_echo=$ac_try;;
35024 esac
35025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35026 $as_echo "$ac_try_echo") >&5
35027   (eval "$ac_try") 2>&5
35028   ac_status=$?
35029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030   (exit $ac_status); }; }; then
35031   gl_cv_func_mkfifo_works=yes
35032 else
35033   $as_echo "$as_me: program exited with status $ac_status" >&5
35034 $as_echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35036
35037 ( exit $ac_status )
35038 gl_cv_func_mkfifo_works=no
35039 fi
35040 rm -rf conftest.dSYM
35041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35042 fi
35043
35044
35045        rm -f conftest.tmp conftest.lnk
35046 fi
35047 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkfifo_works" >&5
35048 $as_echo "$gl_cv_func_mkfifo_works" >&6; }
35049     if test "$gl_cv_func_mkfifo_works" != yes; then
35050
35051 cat >>confdefs.h <<\_ACEOF
35052 #define MKFIFO_TRAILING_SLASH_BUG 1
35053 _ACEOF
35054
35055       REPLACE_MKFIFO=1
35056
35057
35058
35059
35060
35061
35062
35063
35064   gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
35065
35066     fi
35067   fi
35068
35069
35070
35071
35072   GNULIB_MKFIFO=1
35073
35074
35075
35076 cat >>confdefs.h <<\_ACEOF
35077 #define GNULIB_TEST_MKFIFO 1
35078 _ACEOF
35079
35080
35081
35082   # Code from module mkfifoat:
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095   if test $ac_cv_func_mkfifoat = no; then
35096     # No known system has mkfifoat but not mknodat
35097     HAVE_MKFIFOAT=0
35098     HAVE_MKNODAT=0
35099
35100
35101
35102
35103
35104
35105
35106
35107   gl_LIBOBJS="$gl_LIBOBJS mkfifoat.$ac_objext"
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117   gl_LIBOBJS="$gl_LIBOBJS mknodat.$ac_objext"
35118
35119   fi
35120
35121
35122
35123
35124   GNULIB_MKFIFOAT=1
35125
35126
35127
35128 cat >>confdefs.h <<\_ACEOF
35129 #define GNULIB_TEST_MKFIFOAT 1
35130 _ACEOF
35131
35132
35133
35134
35135
35136
35137   GNULIB_MKNODAT=1
35138
35139
35140
35141 cat >>confdefs.h <<\_ACEOF
35142 #define GNULIB_TEST_MKNODAT 1
35143 _ACEOF
35144
35145
35146
35147   # Code from module mknod:
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158   if test $ac_cv_func_mknod = no; then
35159     HAVE_MKNOD=0
35160
35161
35162
35163
35164
35165
35166
35167
35168   gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
35169
35170   else
35171         { $as_echo "$as_me:$LINENO: checking whether mknod can create fifo without root privileges" >&5
35172 $as_echo_n "checking whether mknod can create fifo without root privileges... " >&6; }
35173 if test "${gl_cv_func_mknod_works+set}" = set; then
35174   $as_echo_n "(cached) " >&6
35175 else
35176   if test "$cross_compiling" = yes; then
35177   gl_cv_func_mknod_works="guessing no"
35178 else
35179   cat >conftest.$ac_ext <<_ACEOF
35180 /* confdefs.h.  */
35181 _ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h.  */
35185 #include <sys/stat.h>
35186              #include <unistd.h>
35187
35188 int
35189 main ()
35190 {
35191 /* Indeterminate for super-user, assume no.  Why are you running
35192          configure as root, anyway?  */
35193       if (!geteuid ()) return 99;
35194       if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;
35195   ;
35196   return 0;
35197 }
35198 _ACEOF
35199 rm -f conftest$ac_exeext
35200 if { (ac_try="$ac_link"
35201 case "(($ac_try" in
35202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203   *) ac_try_echo=$ac_try;;
35204 esac
35205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35206 $as_echo "$ac_try_echo") >&5
35207   (eval "$ac_link") 2>&5
35208   ac_status=$?
35209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35211   { (case "(($ac_try" in
35212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213   *) ac_try_echo=$ac_try;;
35214 esac
35215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35216 $as_echo "$ac_try_echo") >&5
35217   (eval "$ac_try") 2>&5
35218   ac_status=$?
35219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220   (exit $ac_status); }; }; then
35221   gl_cv_func_mknod_works=yes
35222 else
35223   $as_echo "$as_me: program exited with status $ac_status" >&5
35224 $as_echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35226
35227 ( exit $ac_status )
35228 if test $? == 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
35229             { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35231 { { $as_echo "$as_me:$LINENO: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
35232 See \`config.log' for more details." >&5
35233 $as_echo "$as_me: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
35234 See \`config.log' for more details." >&2;}
35235    { (exit 1); exit 1; }; }; }
35236           fi
35237           gl_cv_func_mknod_works=no
35238 fi
35239 rm -rf conftest.dSYM
35240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35241 fi
35242
35243
35244        rm -f conftest.fifo
35245 fi
35246 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mknod_works" >&5
35247 $as_echo "$gl_cv_func_mknod_works" >&6; }
35248     if test "$gl_cv_func_mknod_works" != yes; then
35249
35250 cat >>confdefs.h <<\_ACEOF
35251 #define MKNOD_FIFO_BUG 1
35252 _ACEOF
35253
35254     fi
35255         if test $REPLACE_MKFIFO = 1 || test "$gl_cv_func_mknod_works" != yes; then
35256       REPLACE_MKNOD=1
35257
35258
35259
35260
35261
35262
35263
35264
35265   gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
35266
35267     fi
35268   fi
35269
35270
35271
35272
35273   GNULIB_MKNOD=1
35274
35275
35276
35277 cat >>confdefs.h <<\_ACEOF
35278 #define GNULIB_TEST_MKNOD 1
35279 _ACEOF
35280
35281
35282
35283   # Code from module mktime:
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299 if test $APPLE_UNIVERSAL_BUILD = 1; then
35300   # A universal build on Apple MacOS X platforms.
35301   # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
35302   # But we need a configuration result that is valid in both modes.
35303   ac_cv_func_working_mktime=no
35304 fi
35305 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
35306 $as_echo_n "checking for working mktime... " >&6; }
35307 if test "${ac_cv_func_working_mktime+set}" = set; then
35308   $as_echo_n "(cached) " >&6
35309 else
35310   if test "$cross_compiling" = yes; then
35311   ac_cv_func_working_mktime=no
35312 else
35313   cat >conftest.$ac_ext <<_ACEOF
35314 /* confdefs.h.  */
35315 _ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h.  */
35319 /* Test program from Paul Eggert and Tony Leneis.  */
35320 #include <limits.h>
35321 #include <stdlib.h>
35322 #include <time.h>
35323
35324 #ifdef HAVE_UNISTD_H
35325 # include <unistd.h>
35326 #endif
35327
35328 #ifndef HAVE_ALARM
35329 # define alarm(X) /* empty */
35330 #endif
35331
35332 /* Work around redefinition to rpl_putenv by other config tests.  */
35333 #undef putenv
35334
35335 static time_t time_t_max;
35336 static time_t time_t_min;
35337
35338 /* Values we'll use to set the TZ environment variable.  */
35339 static char *tz_strings[] = {
35340   (char *) 0, "TZ=GMT0", "TZ=JST-9",
35341   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
35342 };
35343 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
35344
35345 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
35346    Based on a problem report from Andreas Jaeger.  */
35347 static int
35348 spring_forward_gap ()
35349 {
35350   /* glibc (up to about 1998-10-07) failed this test. */
35351   struct tm tm;
35352
35353   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
35354      instead of "TZ=America/Vancouver" in order to detect the bug even
35355      on systems that don't support the Olson extension, or don't have the
35356      full zoneinfo tables installed.  */
35357   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
35358
35359   tm.tm_year = 98;
35360   tm.tm_mon = 3;
35361   tm.tm_mday = 5;
35362   tm.tm_hour = 2;
35363   tm.tm_min = 0;
35364   tm.tm_sec = 0;
35365   tm.tm_isdst = -1;
35366   return mktime (&tm) != (time_t) -1;
35367 }
35368
35369 static int
35370 mktime_test1 (time_t now)
35371 {
35372   struct tm *lt;
35373   return ! (lt = localtime (&now)) || mktime (lt) == now;
35374 }
35375
35376 static int
35377 mktime_test (time_t now)
35378 {
35379   return (mktime_test1 (now)
35380           && mktime_test1 ((time_t) (time_t_max - now))
35381           && mktime_test1 ((time_t) (time_t_min + now)));
35382 }
35383
35384 static int
35385 irix_6_4_bug ()
35386 {
35387   /* Based on code from Ariel Faigon.  */
35388   struct tm tm;
35389   tm.tm_year = 96;
35390   tm.tm_mon = 3;
35391   tm.tm_mday = 0;
35392   tm.tm_hour = 0;
35393   tm.tm_min = 0;
35394   tm.tm_sec = 0;
35395   tm.tm_isdst = -1;
35396   mktime (&tm);
35397   return tm.tm_mon == 2 && tm.tm_mday == 31;
35398 }
35399
35400 static int
35401 bigtime_test (int j)
35402 {
35403   struct tm tm;
35404   time_t now;
35405   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
35406   now = mktime (&tm);
35407   if (now != (time_t) -1)
35408     {
35409       struct tm *lt = localtime (&now);
35410       if (! (lt
35411              && lt->tm_year == tm.tm_year
35412              && lt->tm_mon == tm.tm_mon
35413              && lt->tm_mday == tm.tm_mday
35414              && lt->tm_hour == tm.tm_hour
35415              && lt->tm_min == tm.tm_min
35416              && lt->tm_sec == tm.tm_sec
35417              && lt->tm_yday == tm.tm_yday
35418              && lt->tm_wday == tm.tm_wday
35419              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
35420                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
35421         return 0;
35422     }
35423   return 1;
35424 }
35425
35426 static int
35427 year_2050_test ()
35428 {
35429   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
35430      ignoring leap seconds.  */
35431   unsigned long int answer = 2527315200UL;
35432
35433   struct tm tm;
35434   time_t t;
35435   tm.tm_year = 2050 - 1900;
35436   tm.tm_mon = 2 - 1;
35437   tm.tm_mday = 1;
35438   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
35439   tm.tm_isdst = -1;
35440
35441   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
35442      instead of "TZ=America/Vancouver" in order to detect the bug even
35443      on systems that don't support the Olson extension, or don't have the
35444      full zoneinfo tables installed.  */
35445   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
35446
35447   t = mktime (&tm);
35448
35449   /* Check that the result is either a failure, or close enough
35450      to the correct answer that we can assume the discrepancy is
35451      due to leap seconds.  */
35452   return (t == (time_t) -1
35453           || (0 < t && answer - 120 <= t && t <= answer + 120));
35454 }
35455
35456 int
35457 main ()
35458 {
35459   time_t t, delta;
35460   int i, j;
35461
35462   /* This test makes some buggy mktime implementations loop.
35463      Give up after 60 seconds; a mktime slower than that
35464      isn't worth using anyway.  */
35465   alarm (60);
35466
35467   for (;;)
35468     {
35469       t = (time_t_max << 1) + 1;
35470       if (t <= time_t_max)
35471         break;
35472       time_t_max = t;
35473     }
35474   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
35475
35476   delta = time_t_max / 997; /* a suitable prime number */
35477   for (i = 0; i < N_STRINGS; i++)
35478     {
35479       if (tz_strings[i])
35480         putenv (tz_strings[i]);
35481
35482       for (t = 0; t <= time_t_max - delta; t += delta)
35483         if (! mktime_test (t))
35484           return 1;
35485       if (! (mktime_test ((time_t) 1)
35486              && mktime_test ((time_t) (60 * 60))
35487              && mktime_test ((time_t) (60 * 60 * 24))))
35488         return 1;
35489
35490       for (j = 1; ; j <<= 1)
35491         if (! bigtime_test (j))
35492           return 1;
35493         else if (INT_MAX / 2 < j)
35494           break;
35495       if (! bigtime_test (INT_MAX))
35496         return 1;
35497     }
35498   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
35499 }
35500 _ACEOF
35501 rm -f conftest$ac_exeext
35502 if { (ac_try="$ac_link"
35503 case "(($ac_try" in
35504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505   *) ac_try_echo=$ac_try;;
35506 esac
35507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35508 $as_echo "$ac_try_echo") >&5
35509   (eval "$ac_link") 2>&5
35510   ac_status=$?
35511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35513   { (case "(($ac_try" in
35514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35515   *) ac_try_echo=$ac_try;;
35516 esac
35517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35518 $as_echo "$ac_try_echo") >&5
35519   (eval "$ac_try") 2>&5
35520   ac_status=$?
35521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522   (exit $ac_status); }; }; then
35523   ac_cv_func_working_mktime=yes
35524 else
35525   $as_echo "$as_me: program exited with status $ac_status" >&5
35526 $as_echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529 ( exit $ac_status )
35530 ac_cv_func_working_mktime=no
35531 fi
35532 rm -rf conftest.dSYM
35533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35534 fi
35535
35536
35537 fi
35538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
35539 $as_echo "$ac_cv_func_working_mktime" >&6; }
35540 if test $ac_cv_func_working_mktime = no; then
35541
35542
35543
35544
35545
35546
35547
35548
35549   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
35550
35551 fi
35552
35553     if test $ac_cv_func_working_mktime = no; then
35554     REPLACE_MKTIME=1
35555
35556
35557
35558   else
35559     REPLACE_MKTIME=0
35560   fi
35561
35562
35563
35564
35565   GNULIB_MKTIME=1
35566
35567
35568
35569 cat >>confdefs.h <<\_ACEOF
35570 #define GNULIB_TEST_MKTIME 1
35571 _ACEOF
35572
35573
35574
35575   # Code from module modechange:
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
35586
35587
35588   # Code from module multiarch:
35589
35590   # Code from module nl_langinfo:
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600   if test $ac_cv_func_nl_langinfo = yes; then
35601     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
35602       :
35603     else
35604       REPLACE_NL_LANGINFO=1
35605
35606 cat >>confdefs.h <<\_ACEOF
35607 #define REPLACE_NL_LANGINFO 1
35608 _ACEOF
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
35619
35620     fi
35621   else
35622     HAVE_NL_LANGINFO=0
35623
35624
35625
35626
35627
35628
35629
35630
35631   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
35632
35633   fi
35634
35635
35636
35637
35638   GNULIB_NL_LANGINFO=1
35639
35640
35641
35642 cat >>confdefs.h <<\_ACEOF
35643 #define GNULIB_TEST_NL_LANGINFO 1
35644 _ACEOF
35645
35646
35647
35648   # Code from module obstack:
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
35662 $as_echo_n "checking for obstacks... " >&6; }
35663 if test "${ac_cv_func_obstack+set}" = set; then
35664   $as_echo_n "(cached) " >&6
35665 else
35666   cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672 $ac_includes_default
35673                       #include "obstack.h"
35674 int
35675 main ()
35676 {
35677 struct obstack mem;
35678                        #define obstack_chunk_alloc malloc
35679                        #define obstack_chunk_free free
35680                        obstack_init (&mem);
35681                        obstack_free (&mem, 0);
35682   ;
35683   return 0;
35684 }
35685 _ACEOF
35686 rm -f conftest.$ac_objext conftest$ac_exeext
35687 if { (ac_try="$ac_link"
35688 case "(($ac_try" in
35689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35690   *) ac_try_echo=$ac_try;;
35691 esac
35692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35693 $as_echo "$ac_try_echo") >&5
35694   (eval "$ac_link") 2>conftest.er1
35695   ac_status=$?
35696   grep -v '^ *+' conftest.er1 >conftest.err
35697   rm -f conftest.er1
35698   cat conftest.err >&5
35699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700   (exit $ac_status); } && {
35701          test -z "$ac_c_werror_flag" ||
35702          test ! -s conftest.err
35703        } && test -s conftest$ac_exeext && {
35704          test "$cross_compiling" = yes ||
35705          $as_test_x conftest$ac_exeext
35706        }; then
35707   ac_cv_func_obstack=yes
35708 else
35709   $as_echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35711
35712         ac_cv_func_obstack=no
35713 fi
35714
35715 rm -rf conftest.dSYM
35716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35717       conftest$ac_exeext conftest.$ac_ext
35718 fi
35719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35720 $as_echo "$ac_cv_func_obstack" >&6; }
35721 if test $ac_cv_func_obstack = yes; then
35722
35723 cat >>confdefs.h <<\_ACEOF
35724 #define HAVE_OBSTACK 1
35725 _ACEOF
35726
35727 else
35728
35729
35730
35731
35732
35733
35734
35735
35736   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
35737
35738 fi
35739
35740     # Code from module open:
35741
35742
35743   case "$host_os" in
35744     mingw* | pw*)
35745
35746
35747   REPLACE_OPEN=1
35748
35749
35750
35751
35752
35753
35754
35755
35756   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
35757
35758
35759
35760
35761   :
35762
35763
35764       ;;
35765     *)
35766
35767
35768
35769
35770
35771
35772       { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
35773 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
35774 if test "${gl_cv_func_open_slash+set}" = set; then
35775   $as_echo_n "(cached) " >&6
35776 else
35777   # Assume that if we have lstat, we can also check symlinks.
35778           if test $ac_cv_func_lstat = yes; then
35779             touch conftest.tmp
35780             ln -s conftest.tmp conftest.lnk
35781           fi
35782           if test "$cross_compiling" = yes; then
35783
35784              case "$host_os" in
35785                freebsd* | aix* | hpux* | solaris2.[0-9]*)
35786                  gl_cv_func_open_slash="guessing no" ;;
35787                *)
35788                  gl_cv_func_open_slash="guessing yes" ;;
35789              esac
35790
35791 else
35792   cat >conftest.$ac_ext <<_ACEOF
35793 /* confdefs.h.  */
35794 _ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h.  */
35798
35799 #include <fcntl.h>
35800 #if HAVE_UNISTD_H
35801 # include <unistd.h>
35802 #endif
35803 int main ()
35804 {
35805 #if HAVE_LSTAT
35806   if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
35807 #endif
35808   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
35809 }
35810 _ACEOF
35811 rm -f conftest$ac_exeext
35812 if { (ac_try="$ac_link"
35813 case "(($ac_try" in
35814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815   *) ac_try_echo=$ac_try;;
35816 esac
35817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35818 $as_echo "$ac_try_echo") >&5
35819   (eval "$ac_link") 2>&5
35820   ac_status=$?
35821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35823   { (case "(($ac_try" in
35824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825   *) ac_try_echo=$ac_try;;
35826 esac
35827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35828 $as_echo "$ac_try_echo") >&5
35829   (eval "$ac_try") 2>&5
35830   ac_status=$?
35831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832   (exit $ac_status); }; }; then
35833   gl_cv_func_open_slash=yes
35834 else
35835   $as_echo "$as_me: program exited with status $ac_status" >&5
35836 $as_echo "$as_me: failed program was:" >&5
35837 sed 's/^/| /' conftest.$ac_ext >&5
35838
35839 ( exit $ac_status )
35840 gl_cv_func_open_slash=no
35841 fi
35842 rm -rf conftest.dSYM
35843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35844 fi
35845
35846
35847           rm -f conftest.sl conftest.tmp conftest.lnk
35848
35849 fi
35850 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
35851 $as_echo "$gl_cv_func_open_slash" >&6; }
35852       case "$gl_cv_func_open_slash" in
35853         *no)
35854
35855 cat >>confdefs.h <<\_ACEOF
35856 #define OPEN_TRAILING_SLASH_BUG 1
35857 _ACEOF
35858
35859
35860
35861   REPLACE_OPEN=1
35862
35863
35864
35865
35866
35867
35868
35869
35870   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
35871
35872
35873
35874
35875   :
35876
35877
35878           ;;
35879       esac
35880       ;;
35881   esac
35882
35883
35884
35885
35886   GNULIB_OPEN=1
35887
35888
35889
35890 cat >>confdefs.h <<\_ACEOF
35891 #define GNULIB_TEST_OPEN 1
35892 _ACEOF
35893
35894
35895
35896   # Code from module openat:
35897
35898
35899   GNULIB_OPENAT=1
35900
35901
35902   GNULIB_FCHMODAT=1
35903   GNULIB_FSTATAT=1
35904   GNULIB_MKDIRAT=1
35905
35906
35907   GNULIB_FCHOWNAT=1
35908   GNULIB_UNLINKAT=1
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
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
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968 for ac_func in fchmodat fstatat mkdirat openat unlinkat
35969 do
35970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35971 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35972 $as_echo_n "checking for $ac_func... " >&6; }
35973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35974   $as_echo_n "(cached) " >&6
35975 else
35976   cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35984 #define $ac_func innocuous_$ac_func
35985
35986 /* System header to define __stub macros and hopefully few prototypes,
35987     which can conflict with char $ac_func (); below.
35988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35989     <limits.h> exists even on freestanding compilers.  */
35990
35991 #ifdef __STDC__
35992 # include <limits.h>
35993 #else
35994 # include <assert.h>
35995 #endif
35996
35997 #undef $ac_func
35998
35999 /* Override any GCC internal prototype to avoid an error.
36000    Use char because int might match the return type of a GCC
36001    builtin and then its argument prototype would still apply.  */
36002 #ifdef __cplusplus
36003 extern "C"
36004 #endif
36005 char $ac_func ();
36006 /* The GNU C library defines this for functions which it implements
36007     to always fail with ENOSYS.  Some functions are actually named
36008     something starting with __ and the normal name is an alias.  */
36009 #if defined __stub_$ac_func || defined __stub___$ac_func
36010 choke me
36011 #endif
36012
36013 int
36014 main ()
36015 {
36016 return $ac_func ();
36017   ;
36018   return 0;
36019 }
36020 _ACEOF
36021 rm -f conftest.$ac_objext conftest$ac_exeext
36022 if { (ac_try="$ac_link"
36023 case "(($ac_try" in
36024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025   *) ac_try_echo=$ac_try;;
36026 esac
36027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36028 $as_echo "$ac_try_echo") >&5
36029   (eval "$ac_link") 2>conftest.er1
36030   ac_status=$?
36031   grep -v '^ *+' conftest.er1 >conftest.err
36032   rm -f conftest.er1
36033   cat conftest.err >&5
36034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035   (exit $ac_status); } && {
36036          test -z "$ac_c_werror_flag" ||
36037          test ! -s conftest.err
36038        } && test -s conftest$ac_exeext && {
36039          test "$cross_compiling" = yes ||
36040          $as_test_x conftest$ac_exeext
36041        }; then
36042   eval "$as_ac_var=yes"
36043 else
36044   $as_echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047         eval "$as_ac_var=no"
36048 fi
36049
36050 rm -rf conftest.dSYM
36051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36052       conftest$ac_exeext conftest.$ac_ext
36053 fi
36054 ac_res=`eval 'as_val=${'$as_ac_var'}
36055                  $as_echo "$as_val"'`
36056                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36057 $as_echo "$ac_res" >&6; }
36058 as_val=`eval 'as_val=${'$as_ac_var'}
36059                  $as_echo "$as_val"'`
36060    if test "x$as_val" = x""yes; then
36061   cat >>confdefs.h <<_ACEOF
36062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36063 _ACEOF
36064
36065 else
36066
36067     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36068
36069 fi
36070 done
36071
36072
36073
36074
36075   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
36076   yes+yes)
36077     # GNU/Hurd has unlinkat, but it has the same bug as unlink.
36078     if test $REPLACE_UNLINK = 1; then
36079
36080
36081
36082
36083
36084
36085
36086
36087   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
36088
36089       REPLACE_UNLINKAT=1
36090     fi ;;
36091   yes+*)
36092     # Solaris 9 has *at functions, but uniformly mishandles trailing
36093     # slash in all of them.
36094
36095
36096
36097
36098
36099
36100
36101
36102   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
36103
36104     REPLACE_OPENAT=1
36105
36106
36107
36108
36109
36110
36111
36112
36113   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
36114
36115     REPLACE_FSTATAT=1
36116
36117
36118
36119
36120
36121
36122
36123
36124   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
36125
36126     REPLACE_UNLINKAT=1
36127     ;;
36128   *)
36129     HAVE_OPENAT=0
36130     HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
36131     HAVE_FSTATAT=0 # No known system with fstatat but not openat
36132
36133
36134
36135   :
36136 ;;
36137   esac
36138   if test $ac_cv_func_fchmodat != yes; then
36139     HAVE_FCHMODAT=0
36140   fi
36141   if test $ac_cv_func_mkdirat != yes; then
36142     HAVE_MKDIRAT=0
36143   fi
36144
36145
36146   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
36147 $as_echo_n "checking for fchownat... " >&6; }
36148 if test "${ac_cv_func_fchownat+set}" = set; then
36149   $as_echo_n "(cached) " >&6
36150 else
36151   cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
36158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36159 #define fchownat innocuous_fchownat
36160
36161 /* System header to define __stub macros and hopefully few prototypes,
36162     which can conflict with char fchownat (); below.
36163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36164     <limits.h> exists even on freestanding compilers.  */
36165
36166 #ifdef __STDC__
36167 # include <limits.h>
36168 #else
36169 # include <assert.h>
36170 #endif
36171
36172 #undef fchownat
36173
36174 /* Override any GCC internal prototype to avoid an error.
36175    Use char because int might match the return type of a GCC
36176    builtin and then its argument prototype would still apply.  */
36177 #ifdef __cplusplus
36178 extern "C"
36179 #endif
36180 char fchownat ();
36181 /* The GNU C library defines this for functions which it implements
36182     to always fail with ENOSYS.  Some functions are actually named
36183     something starting with __ and the normal name is an alias.  */
36184 #if defined __stub_fchownat || defined __stub___fchownat
36185 choke me
36186 #endif
36187
36188 int
36189 main ()
36190 {
36191 return fchownat ();
36192   ;
36193   return 0;
36194 }
36195 _ACEOF
36196 rm -f conftest.$ac_objext conftest$ac_exeext
36197 if { (ac_try="$ac_link"
36198 case "(($ac_try" in
36199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36200   *) ac_try_echo=$ac_try;;
36201 esac
36202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36203 $as_echo "$ac_try_echo") >&5
36204   (eval "$ac_link") 2>conftest.er1
36205   ac_status=$?
36206   grep -v '^ *+' conftest.er1 >conftest.err
36207   rm -f conftest.er1
36208   cat conftest.err >&5
36209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210   (exit $ac_status); } && {
36211          test -z "$ac_c_werror_flag" ||
36212          test ! -s conftest.err
36213        } && test -s conftest$ac_exeext && {
36214          test "$cross_compiling" = yes ||
36215          $as_test_x conftest$ac_exeext
36216        }; then
36217   ac_cv_func_fchownat=yes
36218 else
36219   $as_echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36221
36222         ac_cv_func_fchownat=no
36223 fi
36224
36225 rm -rf conftest.dSYM
36226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36227       conftest$ac_exeext conftest.$ac_ext
36228 fi
36229 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
36230 $as_echo "$ac_cv_func_fchownat" >&6; }
36231 if test "x$ac_cv_func_fchownat" = x""yes; then
36232
36233   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
36234 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
36235 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
36236   $as_echo_n "(cached) " >&6
36237 else
36238
36239      gl_dangle=conftest.dangle
36240      # Remove any remnants of a previous test.
36241      rm -f $gl_dangle
36242      # Arrange for deletion of the temporary file this test creates.
36243      ac_clean_files="$ac_clean_files $gl_dangle"
36244      ln -s conftest.no-such $gl_dangle
36245      if test "$cross_compiling" = yes; then
36246   gl_cv_func_fchownat_nofollow_works=no
36247 else
36248   cat >conftest.$ac_ext <<_ACEOF
36249 /* confdefs.h.  */
36250 _ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h.  */
36254
36255 #include <fcntl.h>
36256 #include <unistd.h>
36257 #include <stdlib.h>
36258 #include <errno.h>
36259 #include <sys/types.h>
36260 int
36261 main ()
36262 {
36263   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
36264                     AT_SYMLINK_NOFOLLOW) != 0
36265           && errno == ENOENT);
36266 }
36267
36268 _ACEOF
36269 rm -f conftest$ac_exeext
36270 if { (ac_try="$ac_link"
36271 case "(($ac_try" in
36272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36273   *) ac_try_echo=$ac_try;;
36274 esac
36275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36276 $as_echo "$ac_try_echo") >&5
36277   (eval "$ac_link") 2>&5
36278   ac_status=$?
36279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36281   { (case "(($ac_try" in
36282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36283   *) ac_try_echo=$ac_try;;
36284 esac
36285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36286 $as_echo "$ac_try_echo") >&5
36287   (eval "$ac_try") 2>&5
36288   ac_status=$?
36289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290   (exit $ac_status); }; }; then
36291   gl_cv_func_fchownat_nofollow_works=yes
36292 else
36293   $as_echo "$as_me: program exited with status $ac_status" >&5
36294 $as_echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36296
36297 ( exit $ac_status )
36298 gl_cv_func_fchownat_nofollow_works=no
36299 fi
36300 rm -rf conftest.dSYM
36301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36302 fi
36303
36304
36305
36306 fi
36307 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
36308 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
36309   if test $gl_cv_func_fchownat_nofollow_works = no; then
36310   REPLACE_FCHOWNAT=1
36311
36312 cat >>confdefs.h <<\_ACEOF
36313 #define FCHOWNAT_NOFOLLOW_BUG 1
36314 _ACEOF
36315
36316
36317 fi
36318
36319
36320      if test $REPLACE_CHOWN = 1; then
36321        REPLACE_FCHOWNAT=1
36322      fi
36323 else
36324   HAVE_FCHOWNAT=0
36325 fi
36326
36327   if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
36328
36329
36330
36331
36332
36333
36334
36335
36336   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
36337
36338   fi
36339
36340
36341   # Code from module openat-die:
36342   # Code from module parse-datetime:
36343
36344
36345
36346
36347
36348
36349   { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
36350 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
36351 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
36352   $as_echo_n "(cached) " >&6
36353 else
36354   cat >conftest.$ac_ext <<_ACEOF
36355 /* confdefs.h.  */
36356 _ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h.  */
36360 #include <sys/types.h>
36361 #include <$ac_cv_struct_tm>
36362
36363
36364 int
36365 main ()
36366 {
36367 static struct tm ac_aggr;
36368 if (ac_aggr.tm_zone)
36369 return 0;
36370   ;
36371   return 0;
36372 }
36373 _ACEOF
36374 rm -f conftest.$ac_objext
36375 if { (ac_try="$ac_compile"
36376 case "(($ac_try" in
36377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378   *) ac_try_echo=$ac_try;;
36379 esac
36380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36381 $as_echo "$ac_try_echo") >&5
36382   (eval "$ac_compile") 2>conftest.er1
36383   ac_status=$?
36384   grep -v '^ *+' conftest.er1 >conftest.err
36385   rm -f conftest.er1
36386   cat conftest.err >&5
36387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388   (exit $ac_status); } && {
36389          test -z "$ac_c_werror_flag" ||
36390          test ! -s conftest.err
36391        } && test -s conftest.$ac_objext; then
36392   ac_cv_member_struct_tm_tm_zone=yes
36393 else
36394   $as_echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         cat >conftest.$ac_ext <<_ACEOF
36398 /* confdefs.h.  */
36399 _ACEOF
36400 cat confdefs.h >>conftest.$ac_ext
36401 cat >>conftest.$ac_ext <<_ACEOF
36402 /* end confdefs.h.  */
36403 #include <sys/types.h>
36404 #include <$ac_cv_struct_tm>
36405
36406
36407 int
36408 main ()
36409 {
36410 static struct tm ac_aggr;
36411 if (sizeof ac_aggr.tm_zone)
36412 return 0;
36413   ;
36414   return 0;
36415 }
36416 _ACEOF
36417 rm -f conftest.$ac_objext
36418 if { (ac_try="$ac_compile"
36419 case "(($ac_try" in
36420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36421   *) ac_try_echo=$ac_try;;
36422 esac
36423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36424 $as_echo "$ac_try_echo") >&5
36425   (eval "$ac_compile") 2>conftest.er1
36426   ac_status=$?
36427   grep -v '^ *+' conftest.er1 >conftest.err
36428   rm -f conftest.er1
36429   cat conftest.err >&5
36430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431   (exit $ac_status); } && {
36432          test -z "$ac_c_werror_flag" ||
36433          test ! -s conftest.err
36434        } && test -s conftest.$ac_objext; then
36435   ac_cv_member_struct_tm_tm_zone=yes
36436 else
36437   $as_echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36439
36440         ac_cv_member_struct_tm_tm_zone=no
36441 fi
36442
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36444 fi
36445
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447 fi
36448 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
36449 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
36450 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
36451
36452 cat >>confdefs.h <<_ACEOF
36453 #define HAVE_STRUCT_TM_TM_ZONE 1
36454 _ACEOF
36455
36456
36457 fi
36458
36459 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
36460
36461 cat >>confdefs.h <<\_ACEOF
36462 #define HAVE_TM_ZONE 1
36463 _ACEOF
36464
36465 else
36466   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
36467 $as_echo_n "checking whether tzname is declared... " >&6; }
36468 if test "${ac_cv_have_decl_tzname+set}" = set; then
36469   $as_echo_n "(cached) " >&6
36470 else
36471   cat >conftest.$ac_ext <<_ACEOF
36472 /* confdefs.h.  */
36473 _ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h.  */
36477 #include <time.h>
36478
36479 int
36480 main ()
36481 {
36482 #ifndef tzname
36483   (void) tzname;
36484 #endif
36485
36486   ;
36487   return 0;
36488 }
36489 _ACEOF
36490 rm -f conftest.$ac_objext
36491 if { (ac_try="$ac_compile"
36492 case "(($ac_try" in
36493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494   *) ac_try_echo=$ac_try;;
36495 esac
36496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36497 $as_echo "$ac_try_echo") >&5
36498   (eval "$ac_compile") 2>conftest.er1
36499   ac_status=$?
36500   grep -v '^ *+' conftest.er1 >conftest.err
36501   rm -f conftest.er1
36502   cat conftest.err >&5
36503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504   (exit $ac_status); } && {
36505          test -z "$ac_c_werror_flag" ||
36506          test ! -s conftest.err
36507        } && test -s conftest.$ac_objext; then
36508   ac_cv_have_decl_tzname=yes
36509 else
36510   $as_echo "$as_me: failed program was:" >&5
36511 sed 's/^/| /' conftest.$ac_ext >&5
36512
36513         ac_cv_have_decl_tzname=no
36514 fi
36515
36516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36517 fi
36518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
36519 $as_echo "$ac_cv_have_decl_tzname" >&6; }
36520 if test "x$ac_cv_have_decl_tzname" = x""yes; then
36521
36522 cat >>confdefs.h <<_ACEOF
36523 #define HAVE_DECL_TZNAME 1
36524 _ACEOF
36525
36526
36527 else
36528   cat >>confdefs.h <<_ACEOF
36529 #define HAVE_DECL_TZNAME 0
36530 _ACEOF
36531
36532
36533 fi
36534
36535
36536   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
36537 $as_echo_n "checking for tzname... " >&6; }
36538 if test "${ac_cv_var_tzname+set}" = set; then
36539   $as_echo_n "(cached) " >&6
36540 else
36541   cat >conftest.$ac_ext <<_ACEOF
36542 /* confdefs.h.  */
36543 _ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h.  */
36547 #include <time.h>
36548 #if !HAVE_DECL_TZNAME
36549 extern char *tzname[];
36550 #endif
36551
36552 int
36553 main ()
36554 {
36555 return tzname[0][0];
36556   ;
36557   return 0;
36558 }
36559 _ACEOF
36560 rm -f conftest.$ac_objext conftest$ac_exeext
36561 if { (ac_try="$ac_link"
36562 case "(($ac_try" in
36563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36564   *) ac_try_echo=$ac_try;;
36565 esac
36566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36567 $as_echo "$ac_try_echo") >&5
36568   (eval "$ac_link") 2>conftest.er1
36569   ac_status=$?
36570   grep -v '^ *+' conftest.er1 >conftest.err
36571   rm -f conftest.er1
36572   cat conftest.err >&5
36573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574   (exit $ac_status); } && {
36575          test -z "$ac_c_werror_flag" ||
36576          test ! -s conftest.err
36577        } && test -s conftest$ac_exeext && {
36578          test "$cross_compiling" = yes ||
36579          $as_test_x conftest$ac_exeext
36580        }; then
36581   ac_cv_var_tzname=yes
36582 else
36583   $as_echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36585
36586         ac_cv_var_tzname=no
36587 fi
36588
36589 rm -rf conftest.dSYM
36590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36591       conftest$ac_exeext conftest.$ac_ext
36592 fi
36593 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
36594 $as_echo "$ac_cv_var_tzname" >&6; }
36595   if test $ac_cv_var_tzname = yes; then
36596
36597 cat >>confdefs.h <<\_ACEOF
36598 #define HAVE_TZNAME 1
36599 _ACEOF
36600
36601   fi
36602 fi
36603
36604
36605
36606   cat >conftest.$ac_ext <<_ACEOF
36607 /* confdefs.h.  */
36608 _ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h.  */
36612
36613 #include <time.h> /* for time_t */
36614 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
36615 #define TYPE_MINIMUM(t) \
36616   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
36617 #define TYPE_MAXIMUM(t) \
36618   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
36619 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
36620 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
36621
36622 _ACEOF
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627   *) ac_try_echo=$ac_try;;
36628 esac
36629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36630 $as_echo "$ac_try_echo") >&5
36631   (eval "$ac_compile") 2>conftest.er1
36632   ac_status=$?
36633   grep -v '^ *+' conftest.er1 >conftest.err
36634   rm -f conftest.er1
36635   cat conftest.err >&5
36636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637   (exit $ac_status); } && {
36638          test -z "$ac_c_werror_flag" ||
36639          test ! -s conftest.err
36640        } && test -s conftest.$ac_objext; then
36641
36642 cat >>confdefs.h <<\_ACEOF
36643 #define TIME_T_FITS_IN_LONG_INT 1
36644 _ACEOF
36645
36646
36647 else
36648   $as_echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651
36652 fi
36653
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655
36656   # Code from module pathmax:
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671   # Code from module priv-set:
36672
36673
36674
36675 for ac_func in getppriv
36676 do
36677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36679 $as_echo_n "checking for $ac_func... " >&6; }
36680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36681   $as_echo_n "(cached) " >&6
36682 else
36683   cat >conftest.$ac_ext <<_ACEOF
36684 /* confdefs.h.  */
36685 _ACEOF
36686 cat confdefs.h >>conftest.$ac_ext
36687 cat >>conftest.$ac_ext <<_ACEOF
36688 /* end confdefs.h.  */
36689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36691 #define $ac_func innocuous_$ac_func
36692
36693 /* System header to define __stub macros and hopefully few prototypes,
36694     which can conflict with char $ac_func (); below.
36695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36696     <limits.h> exists even on freestanding compilers.  */
36697
36698 #ifdef __STDC__
36699 # include <limits.h>
36700 #else
36701 # include <assert.h>
36702 #endif
36703
36704 #undef $ac_func
36705
36706 /* Override any GCC internal prototype to avoid an error.
36707    Use char because int might match the return type of a GCC
36708    builtin and then its argument prototype would still apply.  */
36709 #ifdef __cplusplus
36710 extern "C"
36711 #endif
36712 char $ac_func ();
36713 /* The GNU C library defines this for functions which it implements
36714     to always fail with ENOSYS.  Some functions are actually named
36715     something starting with __ and the normal name is an alias.  */
36716 #if defined __stub_$ac_func || defined __stub___$ac_func
36717 choke me
36718 #endif
36719
36720 int
36721 main ()
36722 {
36723 return $ac_func ();
36724   ;
36725   return 0;
36726 }
36727 _ACEOF
36728 rm -f conftest.$ac_objext conftest$ac_exeext
36729 if { (ac_try="$ac_link"
36730 case "(($ac_try" in
36731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732   *) ac_try_echo=$ac_try;;
36733 esac
36734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36735 $as_echo "$ac_try_echo") >&5
36736   (eval "$ac_link") 2>conftest.er1
36737   ac_status=$?
36738   grep -v '^ *+' conftest.er1 >conftest.err
36739   rm -f conftest.er1
36740   cat conftest.err >&5
36741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742   (exit $ac_status); } && {
36743          test -z "$ac_c_werror_flag" ||
36744          test ! -s conftest.err
36745        } && test -s conftest$ac_exeext && {
36746          test "$cross_compiling" = yes ||
36747          $as_test_x conftest$ac_exeext
36748        }; then
36749   eval "$as_ac_var=yes"
36750 else
36751   $as_echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36753
36754         eval "$as_ac_var=no"
36755 fi
36756
36757 rm -rf conftest.dSYM
36758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36759       conftest$ac_exeext conftest.$ac_ext
36760 fi
36761 ac_res=`eval 'as_val=${'$as_ac_var'}
36762                  $as_echo "$as_val"'`
36763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36764 $as_echo "$ac_res" >&6; }
36765 as_val=`eval 'as_val=${'$as_ac_var'}
36766                  $as_echo "$as_val"'`
36767    if test "x$as_val" = x""yes; then
36768   cat >>confdefs.h <<_ACEOF
36769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36770 _ACEOF
36771
36772 fi
36773 done
36774
36775
36776
36777
36778
36779
36780
36781
36782   # Code from module progname:
36783   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
36784 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
36785 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
36786   $as_echo_n "(cached) " >&6
36787 else
36788   cat >conftest.$ac_ext <<_ACEOF
36789 /* confdefs.h.  */
36790 _ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h.  */
36794 #include <errno.h>
36795
36796 int
36797 main ()
36798 {
36799 #ifndef program_invocation_name
36800   (void) program_invocation_name;
36801 #endif
36802
36803   ;
36804   return 0;
36805 }
36806 _ACEOF
36807 rm -f conftest.$ac_objext
36808 if { (ac_try="$ac_compile"
36809 case "(($ac_try" in
36810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811   *) ac_try_echo=$ac_try;;
36812 esac
36813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36814 $as_echo "$ac_try_echo") >&5
36815   (eval "$ac_compile") 2>conftest.er1
36816   ac_status=$?
36817   grep -v '^ *+' conftest.er1 >conftest.err
36818   rm -f conftest.er1
36819   cat conftest.err >&5
36820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821   (exit $ac_status); } && {
36822          test -z "$ac_c_werror_flag" ||
36823          test ! -s conftest.err
36824        } && test -s conftest.$ac_objext; then
36825   ac_cv_have_decl_program_invocation_name=yes
36826 else
36827   $as_echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36829
36830         ac_cv_have_decl_program_invocation_name=no
36831 fi
36832
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36834 fi
36835 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
36836 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
36837 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
36838
36839 cat >>confdefs.h <<_ACEOF
36840 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
36841 _ACEOF
36842
36843
36844 else
36845   cat >>confdefs.h <<_ACEOF
36846 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
36847 _ACEOF
36848
36849
36850 fi
36851
36852
36853   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
36854 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
36855 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
36856   $as_echo_n "(cached) " >&6
36857 else
36858   cat >conftest.$ac_ext <<_ACEOF
36859 /* confdefs.h.  */
36860 _ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h.  */
36864 #include <errno.h>
36865
36866 int
36867 main ()
36868 {
36869 #ifndef program_invocation_short_name
36870   (void) program_invocation_short_name;
36871 #endif
36872
36873   ;
36874   return 0;
36875 }
36876 _ACEOF
36877 rm -f conftest.$ac_objext
36878 if { (ac_try="$ac_compile"
36879 case "(($ac_try" in
36880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36881   *) ac_try_echo=$ac_try;;
36882 esac
36883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36884 $as_echo "$ac_try_echo") >&5
36885   (eval "$ac_compile") 2>conftest.er1
36886   ac_status=$?
36887   grep -v '^ *+' conftest.er1 >conftest.err
36888   rm -f conftest.er1
36889   cat conftest.err >&5
36890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891   (exit $ac_status); } && {
36892          test -z "$ac_c_werror_flag" ||
36893          test ! -s conftest.err
36894        } && test -s conftest.$ac_objext; then
36895   ac_cv_have_decl_program_invocation_short_name=yes
36896 else
36897   $as_echo "$as_me: failed program was:" >&5
36898 sed 's/^/| /' conftest.$ac_ext >&5
36899
36900         ac_cv_have_decl_program_invocation_short_name=no
36901 fi
36902
36903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36904 fi
36905 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
36906 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
36907 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
36908
36909 cat >>confdefs.h <<_ACEOF
36910 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
36911 _ACEOF
36912
36913
36914 else
36915   cat >>confdefs.h <<_ACEOF
36916 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
36917 _ACEOF
36918
36919
36920 fi
36921
36922
36923   # Code from module quote:
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
36934
36935
36936
36937   # Code from module quotearg:
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
36948
36949
36950   # Code from module quotearg-simple:
36951   # Code from module rawmemchr:
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965 for ac_func in rawmemchr
36966 do
36967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36968 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36969 $as_echo_n "checking for $ac_func... " >&6; }
36970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36971   $as_echo_n "(cached) " >&6
36972 else
36973   cat >conftest.$ac_ext <<_ACEOF
36974 /* confdefs.h.  */
36975 _ACEOF
36976 cat confdefs.h >>conftest.$ac_ext
36977 cat >>conftest.$ac_ext <<_ACEOF
36978 /* end confdefs.h.  */
36979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36981 #define $ac_func innocuous_$ac_func
36982
36983 /* System header to define __stub macros and hopefully few prototypes,
36984     which can conflict with char $ac_func (); below.
36985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36986     <limits.h> exists even on freestanding compilers.  */
36987
36988 #ifdef __STDC__
36989 # include <limits.h>
36990 #else
36991 # include <assert.h>
36992 #endif
36993
36994 #undef $ac_func
36995
36996 /* Override any GCC internal prototype to avoid an error.
36997    Use char because int might match the return type of a GCC
36998    builtin and then its argument prototype would still apply.  */
36999 #ifdef __cplusplus
37000 extern "C"
37001 #endif
37002 char $ac_func ();
37003 /* The GNU C library defines this for functions which it implements
37004     to always fail with ENOSYS.  Some functions are actually named
37005     something starting with __ and the normal name is an alias.  */
37006 #if defined __stub_$ac_func || defined __stub___$ac_func
37007 choke me
37008 #endif
37009
37010 int
37011 main ()
37012 {
37013 return $ac_func ();
37014   ;
37015   return 0;
37016 }
37017 _ACEOF
37018 rm -f conftest.$ac_objext conftest$ac_exeext
37019 if { (ac_try="$ac_link"
37020 case "(($ac_try" in
37021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37022   *) ac_try_echo=$ac_try;;
37023 esac
37024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37025 $as_echo "$ac_try_echo") >&5
37026   (eval "$ac_link") 2>conftest.er1
37027   ac_status=$?
37028   grep -v '^ *+' conftest.er1 >conftest.err
37029   rm -f conftest.er1
37030   cat conftest.err >&5
37031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032   (exit $ac_status); } && {
37033          test -z "$ac_c_werror_flag" ||
37034          test ! -s conftest.err
37035        } && test -s conftest$ac_exeext && {
37036          test "$cross_compiling" = yes ||
37037          $as_test_x conftest$ac_exeext
37038        }; then
37039   eval "$as_ac_var=yes"
37040 else
37041   $as_echo "$as_me: failed program was:" >&5
37042 sed 's/^/| /' conftest.$ac_ext >&5
37043
37044         eval "$as_ac_var=no"
37045 fi
37046
37047 rm -rf conftest.dSYM
37048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37049       conftest$ac_exeext conftest.$ac_ext
37050 fi
37051 ac_res=`eval 'as_val=${'$as_ac_var'}
37052                  $as_echo "$as_val"'`
37053                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37054 $as_echo "$ac_res" >&6; }
37055 as_val=`eval 'as_val=${'$as_ac_var'}
37056                  $as_echo "$as_val"'`
37057    if test "x$as_val" = x""yes; then
37058   cat >>confdefs.h <<_ACEOF
37059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37060 _ACEOF
37061
37062 else
37063
37064     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37065
37066 fi
37067 done
37068
37069
37070   if test $ac_cv_func_rawmemchr = no; then
37071     HAVE_RAWMEMCHR=0
37072     :
37073   fi
37074
37075
37076
37077
37078   GNULIB_RAWMEMCHR=1
37079
37080
37081
37082 cat >>confdefs.h <<\_ACEOF
37083 #define GNULIB_TEST_RAWMEMCHR 1
37084 _ACEOF
37085
37086
37087
37088   # Code from module readlink:
37089
37090
37091
37092
37093
37094
37095
37096
37097   if test $ac_cv_func_readlink = no; then
37098     HAVE_READLINK=0
37099
37100
37101
37102
37103
37104
37105
37106
37107   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37108
37109
37110   :
37111
37112   else
37113     { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
37114 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37115 if test "${gl_cv_decl_readlink_works+set}" = set; then
37116   $as_echo_n "(cached) " >&6
37117 else
37118   cat >conftest.$ac_ext <<_ACEOF
37119 /* confdefs.h.  */
37120 _ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h.  */
37124 #include <unistd.h>
37125       /* Cause compilation failure if original declaration has wrong type.  */
37126       ssize_t readlink (const char *, char *, size_t);
37127 int
37128 main ()
37129 {
37130
37131   ;
37132   return 0;
37133 }
37134 _ACEOF
37135 rm -f conftest.$ac_objext
37136 if { (ac_try="$ac_compile"
37137 case "(($ac_try" in
37138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37139   *) ac_try_echo=$ac_try;;
37140 esac
37141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37142 $as_echo "$ac_try_echo") >&5
37143   (eval "$ac_compile") 2>conftest.er1
37144   ac_status=$?
37145   grep -v '^ *+' conftest.er1 >conftest.err
37146   rm -f conftest.er1
37147   cat conftest.err >&5
37148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); } && {
37150          test -z "$ac_c_werror_flag" ||
37151          test ! -s conftest.err
37152        } && test -s conftest.$ac_objext; then
37153   gl_cv_decl_readlink_works=yes
37154 else
37155   $as_echo "$as_me: failed program was:" >&5
37156 sed 's/^/| /' conftest.$ac_ext >&5
37157
37158         gl_cv_decl_readlink_works=no
37159 fi
37160
37161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37162 fi
37163 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
37164 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37165             { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
37166 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37167 if test "${gl_cv_func_readlink_works+set}" = set; then
37168   $as_echo_n "(cached) " >&6
37169 else
37170   # We have readlink, so assume ln -s works.
37171        ln -s conftest.no-such conftest.link
37172        ln -s conftest.link conftest.lnk2
37173        if test "$cross_compiling" = yes; then
37174   gl_cv_func_readlink_works="guessing no"
37175 else
37176   cat >conftest.$ac_ext <<_ACEOF
37177 /* confdefs.h.  */
37178 _ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h.  */
37182 #include <unistd.h>
37183
37184 int
37185 main ()
37186 {
37187 char buf[20];
37188       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37189   ;
37190   return 0;
37191 }
37192 _ACEOF
37193 rm -f conftest$ac_exeext
37194 if { (ac_try="$ac_link"
37195 case "(($ac_try" in
37196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197   *) ac_try_echo=$ac_try;;
37198 esac
37199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37200 $as_echo "$ac_try_echo") >&5
37201   (eval "$ac_link") 2>&5
37202   ac_status=$?
37203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37205   { (case "(($ac_try" in
37206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37207   *) ac_try_echo=$ac_try;;
37208 esac
37209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37210 $as_echo "$ac_try_echo") >&5
37211   (eval "$ac_try") 2>&5
37212   ac_status=$?
37213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214   (exit $ac_status); }; }; then
37215   gl_cv_func_readlink_works=yes
37216 else
37217   $as_echo "$as_me: program exited with status $ac_status" >&5
37218 $as_echo "$as_me: failed program was:" >&5
37219 sed 's/^/| /' conftest.$ac_ext >&5
37220
37221 ( exit $ac_status )
37222 gl_cv_func_readlink_works=no
37223 fi
37224 rm -rf conftest.dSYM
37225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37226 fi
37227
37228
37229       rm -f conftest.link conftest.lnk2
37230 fi
37231 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
37232 $as_echo "$gl_cv_func_readlink_works" >&6; }
37233     if test "$gl_cv_func_readlink_works" != yes; then
37234
37235 cat >>confdefs.h <<\_ACEOF
37236 #define READLINK_TRAILING_SLASH_BUG 1
37237 _ACEOF
37238
37239       REPLACE_READLINK=1
37240
37241
37242
37243
37244
37245
37246
37247
37248   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37249
37250     elif test "$gl_cv_decl_readlink_works" != yes; then
37251       REPLACE_READLINK=1
37252
37253
37254
37255
37256
37257
37258
37259
37260   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37261
37262     fi
37263   fi
37264
37265
37266
37267
37268   GNULIB_READLINK=1
37269
37270
37271
37272 cat >>confdefs.h <<\_ACEOF
37273 #define GNULIB_TEST_READLINK 1
37274 _ACEOF
37275
37276
37277
37278   # Code from module readlinkat:
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289   if test $ac_cv_func_readlinkat = no; then
37290     HAVE_READLINKAT=0
37291
37292
37293
37294
37295
37296
37297
37298
37299   gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
37300
37301   fi
37302
37303
37304
37305
37306   GNULIB_READLINKAT=1
37307
37308
37309
37310 cat >>confdefs.h <<\_ACEOF
37311 #define GNULIB_TEST_READLINKAT 1
37312 _ACEOF
37313
37314
37315
37316   # Code from module realloc-posix:
37317
37318
37319
37320   if test $gl_cv_func_malloc_posix = yes; then
37321
37322 cat >>confdefs.h <<\_ACEOF
37323 #define HAVE_REALLOC_POSIX 1
37324 _ACEOF
37325
37326   else
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37337
37338   REPLACE_REALLOC=1
37339
37340   fi
37341
37342
37343
37344
37345   GNULIB_REALLOC_POSIX=1
37346
37347
37348
37349 cat >>confdefs.h <<\_ACEOF
37350 #define GNULIB_TEST_REALLOC_POSIX 1
37351 _ACEOF
37352
37353
37354
37355   # Code from module regex:
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365 # Check whether --with-included-regex was given.
37366 if test "${with_included_regex+set}" = set; then
37367   withval=$with_included_regex;
37368 fi
37369
37370
37371   case $with_included_regex in #(
37372   yes|no) ac_use_included_regex=$with_included_regex
37373         ;;
37374   '')
37375     # If the system regex support is good enough that it passes the
37376     # following run test, then default to *not* using the included regex.c.
37377     # If cross compiling, assume the test would fail and use the included
37378     # regex.c.
37379     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
37380 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37381 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
37382   $as_echo_n "(cached) " >&6
37383 else
37384   if test "$cross_compiling" = yes; then
37385          gl_cv_func_re_compile_pattern_working=no
37386 else
37387   cat >conftest.$ac_ext <<_ACEOF
37388 /* confdefs.h.  */
37389 _ACEOF
37390 cat confdefs.h >>conftest.$ac_ext
37391 cat >>conftest.$ac_ext <<_ACEOF
37392 /* end confdefs.h.  */
37393 $ac_includes_default
37394            #if HAVE_LOCALE_H
37395             #include <locale.h>
37396            #endif
37397            #include <limits.h>
37398            #include <regex.h>
37399
37400 int
37401 main ()
37402 {
37403 static struct re_pattern_buffer regex;
37404             unsigned char folded_chars[UCHAR_MAX + 1];
37405             int i;
37406             const char *s;
37407             struct re_registers regs;
37408
37409             #if HAVE_LOCALE_H
37410               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37411                  This test needs valgrind to catch the bug on Debian
37412                  GNU/Linux 3.1 x86, but it might catch the bug better
37413                  on other platforms and it shouldn't hurt to try the
37414                  test here.  */
37415               if (setlocale (LC_ALL, "en_US.UTF-8"))
37416                 {
37417                   static char const pat[] = "insert into";
37418                   static char const data[] =
37419                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37420                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37421                                  | RE_ICASE);
37422                   memset (&regex, 0, sizeof regex);
37423                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
37424                   if (s)
37425                     return 1;
37426                   if (re_search (&regex, data, sizeof data - 1,
37427                                  0, sizeof data - 1, &regs)
37428                       != -1)
37429                     return 1;
37430                   if (! setlocale (LC_ALL, "C"))
37431                     return 1;
37432                 }
37433             #endif
37434
37435             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
37436             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37437             memset (&regex, 0, sizeof regex);
37438             s = re_compile_pattern ("a[^x]b", 6, &regex);
37439             if (s)
37440               return 1;
37441
37442             /* This should fail, but succeeds for glibc-2.5.  */
37443             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
37444               return 1;
37445
37446             /* This regular expression is from Spencer ere test number 75
37447                in grep-2.3.  */
37448             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37449             memset (&regex, 0, sizeof regex);
37450             for (i = 0; i <= UCHAR_MAX; i++)
37451               folded_chars[i] = i;
37452             regex.translate = folded_chars;
37453             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
37454             /* This should fail with _Invalid character class name_ error.  */
37455             if (!s)
37456               return 1;
37457
37458             /* Ensure that [b-a] is diagnosed as invalid, when
37459                using RE_NO_EMPTY_RANGES. */
37460             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
37461             memset (&regex, 0, sizeof regex);
37462             s = re_compile_pattern ("a[b-a]", 6, &regex);
37463             if (s == 0)
37464               return 1;
37465
37466             /* This should succeed, but does not for glibc-2.1.3.  */
37467             memset (&regex, 0, sizeof regex);
37468             s = re_compile_pattern ("{1", 2, &regex);
37469
37470             if (s)
37471               return 1;
37472
37473             /* The following example is derived from a problem report
37474                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
37475             memset (&regex, 0, sizeof regex);
37476             s = re_compile_pattern ("[an\371]*n", 7, &regex);
37477             if (s)
37478               return 1;
37479
37480             /* This should match, but does not for glibc-2.2.1.  */
37481             if (re_match (&regex, "an", 2, 0, &regs) != 2)
37482               return 1;
37483
37484             memset (&regex, 0, sizeof regex);
37485             s = re_compile_pattern ("x", 1, &regex);
37486             if (s)
37487               return 1;
37488
37489             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
37490             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
37491               return 1;
37492
37493             /* The version of regex.c in older versions of gnulib
37494                ignored RE_ICASE.  Detect that problem too.  */
37495             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37496             memset (&regex, 0, sizeof regex);
37497             s = re_compile_pattern ("x", 1, &regex);
37498             if (s)
37499               return 1;
37500
37501             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
37502               return 1;
37503
37504             /* Catch a bug reported by Vin Shelton in
37505                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
37506                */
37507             re_set_syntax (RE_SYNTAX_POSIX_BASIC
37508                            & ~RE_CONTEXT_INVALID_DUP
37509                            & ~RE_NO_EMPTY_RANGES);
37510             memset (&regex, 0, sizeof regex);
37511             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
37512             if (s)
37513               return 1;
37514
37515             /* REG_STARTEND was added to glibc on 2004-01-15.
37516                Reject older versions.  */
37517             if (! REG_STARTEND)
37518               return 1;
37519
37520 #if 0
37521             /* It would be nice to reject hosts whose regoff_t values are too
37522                narrow (including glibc on hosts with 64-bit ptrdiff_t and
37523                32-bit int), but we should wait until glibc implements this
37524                feature.  Otherwise, support for equivalence classes and
37525                multibyte collation symbols would always be broken except
37526                when compiling --without-included-regex.   */
37527             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37528                 || sizeof (regoff_t) < sizeof (ssize_t))
37529               return 1;
37530 #endif
37531
37532             return 0;
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 rm -f conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541   *) ac_try_echo=$ac_try;;
37542 esac
37543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37544 $as_echo "$ac_try_echo") >&5
37545   (eval "$ac_link") 2>&5
37546   ac_status=$?
37547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37549   { (case "(($ac_try" in
37550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37551   *) ac_try_echo=$ac_try;;
37552 esac
37553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37554 $as_echo "$ac_try_echo") >&5
37555   (eval "$ac_try") 2>&5
37556   ac_status=$?
37557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); }; }; then
37559   gl_cv_func_re_compile_pattern_working=yes
37560 else
37561   $as_echo "$as_me: program exited with status $ac_status" >&5
37562 $as_echo "$as_me: failed program was:" >&5
37563 sed 's/^/| /' conftest.$ac_ext >&5
37564
37565 ( exit $ac_status )
37566 gl_cv_func_re_compile_pattern_working=no
37567 fi
37568 rm -rf conftest.dSYM
37569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37570 fi
37571
37572
37573 fi
37574 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
37575 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37576     case $gl_cv_func_re_compile_pattern_working in #(
37577     yes) ac_use_included_regex=no;; #(
37578     no) ac_use_included_regex=yes;;
37579     esac
37580     ;;
37581   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
37582 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
37583    { (exit 1); exit 1; }; }
37584     ;;
37585   esac
37586
37587   if test $ac_use_included_regex = yes; then
37588
37589 cat >>confdefs.h <<\_ACEOF
37590 #define _REGEX_LARGE_OFFSETS 1
37591 _ACEOF
37592
37593
37594 cat >>confdefs.h <<\_ACEOF
37595 #define re_syntax_options rpl_re_syntax_options
37596 _ACEOF
37597
37598
37599 cat >>confdefs.h <<\_ACEOF
37600 #define re_set_syntax rpl_re_set_syntax
37601 _ACEOF
37602
37603
37604 cat >>confdefs.h <<\_ACEOF
37605 #define re_compile_pattern rpl_re_compile_pattern
37606 _ACEOF
37607
37608
37609 cat >>confdefs.h <<\_ACEOF
37610 #define re_compile_fastmap rpl_re_compile_fastmap
37611 _ACEOF
37612
37613
37614 cat >>confdefs.h <<\_ACEOF
37615 #define re_search rpl_re_search
37616 _ACEOF
37617
37618
37619 cat >>confdefs.h <<\_ACEOF
37620 #define re_search_2 rpl_re_search_2
37621 _ACEOF
37622
37623
37624 cat >>confdefs.h <<\_ACEOF
37625 #define re_match rpl_re_match
37626 _ACEOF
37627
37628
37629 cat >>confdefs.h <<\_ACEOF
37630 #define re_match_2 rpl_re_match_2
37631 _ACEOF
37632
37633
37634 cat >>confdefs.h <<\_ACEOF
37635 #define re_set_registers rpl_re_set_registers
37636 _ACEOF
37637
37638
37639 cat >>confdefs.h <<\_ACEOF
37640 #define re_comp rpl_re_comp
37641 _ACEOF
37642
37643
37644 cat >>confdefs.h <<\_ACEOF
37645 #define re_exec rpl_re_exec
37646 _ACEOF
37647
37648
37649 cat >>confdefs.h <<\_ACEOF
37650 #define regcomp rpl_regcomp
37651 _ACEOF
37652
37653
37654 cat >>confdefs.h <<\_ACEOF
37655 #define regexec rpl_regexec
37656 _ACEOF
37657
37658
37659 cat >>confdefs.h <<\_ACEOF
37660 #define regerror rpl_regerror
37661 _ACEOF
37662
37663
37664 cat >>confdefs.h <<\_ACEOF
37665 #define regfree rpl_regfree
37666 _ACEOF
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37677
37678
37679
37680
37681
37682
37683
37684 for ac_header in libintl.h
37685 do
37686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37688   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37689 $as_echo_n "checking for $ac_header... " >&6; }
37690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37691   $as_echo_n "(cached) " >&6
37692 fi
37693 ac_res=`eval 'as_val=${'$as_ac_Header'}
37694                  $as_echo "$as_val"'`
37695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37696 $as_echo "$ac_res" >&6; }
37697 else
37698   # Is the header compilable?
37699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37700 $as_echo_n "checking $ac_header usability... " >&6; }
37701 cat >conftest.$ac_ext <<_ACEOF
37702 /* confdefs.h.  */
37703 _ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h.  */
37707 $ac_includes_default
37708 #include <$ac_header>
37709 _ACEOF
37710 rm -f conftest.$ac_objext
37711 if { (ac_try="$ac_compile"
37712 case "(($ac_try" in
37713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37714   *) ac_try_echo=$ac_try;;
37715 esac
37716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37717 $as_echo "$ac_try_echo") >&5
37718   (eval "$ac_compile") 2>conftest.er1
37719   ac_status=$?
37720   grep -v '^ *+' conftest.er1 >conftest.err
37721   rm -f conftest.er1
37722   cat conftest.err >&5
37723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); } && {
37725          test -z "$ac_c_werror_flag" ||
37726          test ! -s conftest.err
37727        } && test -s conftest.$ac_objext; then
37728   ac_header_compiler=yes
37729 else
37730   $as_echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37732
37733         ac_header_compiler=no
37734 fi
37735
37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37738 $as_echo "$ac_header_compiler" >&6; }
37739
37740 # Is the header present?
37741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37742 $as_echo_n "checking $ac_header presence... " >&6; }
37743 cat >conftest.$ac_ext <<_ACEOF
37744 /* confdefs.h.  */
37745 _ACEOF
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h.  */
37749 #include <$ac_header>
37750 _ACEOF
37751 if { (ac_try="$ac_cpp conftest.$ac_ext"
37752 case "(($ac_try" in
37753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754   *) ac_try_echo=$ac_try;;
37755 esac
37756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37757 $as_echo "$ac_try_echo") >&5
37758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37759   ac_status=$?
37760   grep -v '^ *+' conftest.er1 >conftest.err
37761   rm -f conftest.er1
37762   cat conftest.err >&5
37763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); } >/dev/null && {
37765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37766          test ! -s conftest.err
37767        }; then
37768   ac_header_preproc=yes
37769 else
37770   $as_echo "$as_me: failed program was:" >&5
37771 sed 's/^/| /' conftest.$ac_ext >&5
37772
37773   ac_header_preproc=no
37774 fi
37775
37776 rm -f conftest.err conftest.$ac_ext
37777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37778 $as_echo "$ac_header_preproc" >&6; }
37779
37780 # So?  What about this header?
37781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37782   yes:no: )
37783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37787     ac_header_preproc=yes
37788     ;;
37789   no:yes:* )
37790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37793 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37797 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37802     ( cat <<\_ASBOX
37803 ## ------------------------------ ##
37804 ## Report this to bug-tar@gnu.org ##
37805 ## ------------------------------ ##
37806 _ASBOX
37807      ) | sed "s/^/$as_me: WARNING:     /" >&2
37808     ;;
37809 esac
37810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37811 $as_echo_n "checking for $ac_header... " >&6; }
37812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37813   $as_echo_n "(cached) " >&6
37814 else
37815   eval "$as_ac_Header=\$ac_header_preproc"
37816 fi
37817 ac_res=`eval 'as_val=${'$as_ac_Header'}
37818                  $as_echo "$as_val"'`
37819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37820 $as_echo "$ac_res" >&6; }
37821
37822 fi
37823 as_val=`eval 'as_val=${'$as_ac_Header'}
37824                  $as_echo "$as_val"'`
37825    if test "x$as_val" = x""yes; then
37826   cat >>confdefs.h <<_ACEOF
37827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37828 _ACEOF
37829
37830 fi
37831
37832 done
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
37845 $as_echo_n "checking whether isblank is declared... " >&6; }
37846 if test "${ac_cv_have_decl_isblank+set}" = set; then
37847   $as_echo_n "(cached) " >&6
37848 else
37849   cat >conftest.$ac_ext <<_ACEOF
37850 /* confdefs.h.  */
37851 _ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h.  */
37855 #include <ctype.h>
37856
37857 int
37858 main ()
37859 {
37860 #ifndef isblank
37861   (void) isblank;
37862 #endif
37863
37864   ;
37865   return 0;
37866 }
37867 _ACEOF
37868 rm -f conftest.$ac_objext
37869 if { (ac_try="$ac_compile"
37870 case "(($ac_try" in
37871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37872   *) ac_try_echo=$ac_try;;
37873 esac
37874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37875 $as_echo "$ac_try_echo") >&5
37876   (eval "$ac_compile") 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } && {
37883          test -z "$ac_c_werror_flag" ||
37884          test ! -s conftest.err
37885        } && test -s conftest.$ac_objext; then
37886   ac_cv_have_decl_isblank=yes
37887 else
37888   $as_echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.$ac_ext >&5
37890
37891         ac_cv_have_decl_isblank=no
37892 fi
37893
37894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37895 fi
37896 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
37897 $as_echo "$ac_cv_have_decl_isblank" >&6; }
37898 if test "x$ac_cv_have_decl_isblank" = x""yes; then
37899
37900 cat >>confdefs.h <<_ACEOF
37901 #define HAVE_DECL_ISBLANK 1
37902 _ACEOF
37903
37904
37905 else
37906   cat >>confdefs.h <<_ACEOF
37907 #define HAVE_DECL_ISBLANK 0
37908 _ACEOF
37909
37910
37911 fi
37912
37913
37914
37915   fi
37916
37917   # Code from module rename:
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928                 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on destination" >&5
37929 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
37930 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then
37931   $as_echo_n "(cached) " >&6
37932 else
37933   rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.lnk
37934     touch conftest.f && mkdir conftest.d1 ||
37935       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
37936 $as_echo "$as_me: error: cannot create temporary files" >&2;}
37937    { (exit 1); exit 1; }; }
37938     # Assume that if we have lstat, we can also check symlinks.
37939     if test $ac_cv_func_lstat = yes; then
37940       ln -s conftest.f conftest.lnk
37941     fi
37942     if test "$cross_compiling" = yes; then
37943         gl_cv_func_rename_slash_dst_works="guessing no"
37944 else
37945   cat >conftest.$ac_ext <<_ACEOF
37946 /* confdefs.h.  */
37947 _ACEOF
37948 cat confdefs.h >>conftest.$ac_ext
37949 cat >>conftest.$ac_ext <<_ACEOF
37950 /* end confdefs.h.  */
37951
37952 #       include <stdio.h>
37953 #       include <stdlib.h>
37954
37955 int
37956 main ()
37957 {
37958 if (rename ("conftest.f", "conftest.f1/") == 0) return 1;
37959      if (rename ("conftest.d1", "conftest.d2/") != 0) return 2;
37960 #if HAVE_LSTAT
37961      if (rename ("conftest.f", "conftest.lnk/") == 0) return 3;
37962 #endif
37963
37964   ;
37965   return 0;
37966 }
37967 _ACEOF
37968 rm -f conftest$ac_exeext
37969 if { (ac_try="$ac_link"
37970 case "(($ac_try" in
37971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972   *) ac_try_echo=$ac_try;;
37973 esac
37974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37975 $as_echo "$ac_try_echo") >&5
37976   (eval "$ac_link") 2>&5
37977   ac_status=$?
37978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37980   { (case "(($ac_try" in
37981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37982   *) ac_try_echo=$ac_try;;
37983 esac
37984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37985 $as_echo "$ac_try_echo") >&5
37986   (eval "$ac_try") 2>&5
37987   ac_status=$?
37988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989   (exit $ac_status); }; }; then
37990   gl_cv_func_rename_slash_dst_works=yes
37991 else
37992   $as_echo "$as_me: program exited with status $ac_status" >&5
37993 $as_echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37995
37996 ( exit $ac_status )
37997 gl_cv_func_rename_slash_dst_works=no
37998 fi
37999 rm -rf conftest.dSYM
38000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38001 fi
38002
38003
38004     rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.lnk
38005
38006 fi
38007 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_dst_works" >&5
38008 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
38009   if test "x$gl_cv_func_rename_slash_dst_works" != xyes; then
38010
38011
38012
38013
38014
38015
38016
38017
38018   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38019
38020     REPLACE_RENAME=1
38021
38022 cat >>confdefs.h <<\_ACEOF
38023 #define RENAME_TRAILING_SLASH_DEST_BUG 1
38024 _ACEOF
38025
38026   fi
38027
38028             { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on source" >&5
38029 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
38030 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then
38031   $as_echo_n "(cached) " >&6
38032 else
38033   rm -rf conftest.f conftest.d1 conftest.d2 conftest.lnk
38034     touch conftest.f && mkdir conftest.d1 ||
38035       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
38036 $as_echo "$as_me: error: cannot create temporary files" >&2;}
38037    { (exit 1); exit 1; }; }
38038     # Assume that if we have lstat, we can also check symlinks.
38039     if test $ac_cv_func_lstat = yes; then
38040       ln -s conftest.f conftest.lnk
38041     fi
38042     if test "$cross_compiling" = yes; then
38043         gl_cv_func_rename_slash_src_works="guessing no"
38044 else
38045   cat >conftest.$ac_ext <<_ACEOF
38046 /* confdefs.h.  */
38047 _ACEOF
38048 cat confdefs.h >>conftest.$ac_ext
38049 cat >>conftest.$ac_ext <<_ACEOF
38050 /* end confdefs.h.  */
38051
38052 #       include <stdio.h>
38053 #       include <stdlib.h>
38054
38055 int
38056 main ()
38057 {
38058 if (rename ("conftest.f/", "conftest.d2") == 0) return 1;
38059      if (rename ("conftest.d1/", "conftest.d2") != 0) return 2;
38060 #if HAVE_LSTAT
38061      if (rename ("conftest.lnk/", "conftest.f") == 0) return 3;
38062 #endif
38063
38064   ;
38065   return 0;
38066 }
38067 _ACEOF
38068 rm -f conftest$ac_exeext
38069 if { (ac_try="$ac_link"
38070 case "(($ac_try" in
38071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38072   *) ac_try_echo=$ac_try;;
38073 esac
38074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38075 $as_echo "$ac_try_echo") >&5
38076   (eval "$ac_link") 2>&5
38077   ac_status=$?
38078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38080   { (case "(($ac_try" in
38081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38082   *) ac_try_echo=$ac_try;;
38083 esac
38084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38085 $as_echo "$ac_try_echo") >&5
38086   (eval "$ac_try") 2>&5
38087   ac_status=$?
38088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089   (exit $ac_status); }; }; then
38090   gl_cv_func_rename_slash_src_works=yes
38091 else
38092   $as_echo "$as_me: program exited with status $ac_status" >&5
38093 $as_echo "$as_me: failed program was:" >&5
38094 sed 's/^/| /' conftest.$ac_ext >&5
38095
38096 ( exit $ac_status )
38097 gl_cv_func_rename_slash_src_works=no
38098 fi
38099 rm -rf conftest.dSYM
38100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38101 fi
38102
38103
38104     rm -rf conftest.f conftest.d1 conftest.d2 conftest.lnk
38105
38106 fi
38107 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_src_works" >&5
38108 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
38109   if test "x$gl_cv_func_rename_slash_src_works" != xyes; then
38110
38111
38112
38113
38114
38115
38116
38117
38118   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38119
38120     REPLACE_RENAME=1
38121
38122 cat >>confdefs.h <<\_ACEOF
38123 #define RENAME_TRAILING_SLASH_SOURCE_BUG 1
38124 _ACEOF
38125
38126   fi
38127
38128         { $as_echo "$as_me:$LINENO: checking whether rename manages hard links correctly" >&5
38129 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
38130 if test "${gl_cv_func_rename_link_works+set}" = set; then
38131   $as_echo_n "(cached) " >&6
38132 else
38133   rm -rf conftest.f conftest.f1
38134     if touch conftest.f && ln conftest.f conftest.f1 &&
38135         set x `ls -i conftest.f conftest.f1` && test "" = ""; then
38136       if test "$cross_compiling" = yes; then
38137           gl_cv_func_rename_link_works="guessing no"
38138 else
38139   cat >conftest.$ac_ext <<_ACEOF
38140 /* confdefs.h.  */
38141 _ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h.  */
38145
38146 #       include <stdio.h>
38147 #       include <stdlib.h>
38148 #       include <unistd.h>
38149
38150 int
38151 main ()
38152 {
38153 if (rename ("conftest.f", "conftest.f1")) return 1;
38154      if (unlink ("conftest.f1")) return 2;
38155      if (rename ("conftest.f", "conftest.f")) return 3;
38156      if (rename ("conftest.f1", "conftest.f1") == 0) return 4;
38157   ;
38158   return 0;
38159 }
38160 _ACEOF
38161 rm -f conftest$ac_exeext
38162 if { (ac_try="$ac_link"
38163 case "(($ac_try" in
38164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38165   *) ac_try_echo=$ac_try;;
38166 esac
38167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38168 $as_echo "$ac_try_echo") >&5
38169   (eval "$ac_link") 2>&5
38170   ac_status=$?
38171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38173   { (case "(($ac_try" in
38174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38175   *) ac_try_echo=$ac_try;;
38176 esac
38177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38178 $as_echo "$ac_try_echo") >&5
38179   (eval "$ac_try") 2>&5
38180   ac_status=$?
38181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); }; }; then
38183   gl_cv_func_rename_link_works=yes
38184 else
38185   $as_echo "$as_me: program exited with status $ac_status" >&5
38186 $as_echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189 ( exit $ac_status )
38190 gl_cv_func_rename_link_works=no
38191 fi
38192 rm -rf conftest.dSYM
38193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38194 fi
38195
38196
38197     else
38198       gl_cv_func_rename_link_works="guessing no"
38199     fi
38200     rm -rf conftest.f conftest.f1
38201
38202 fi
38203 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_link_works" >&5
38204 $as_echo "$gl_cv_func_rename_link_works" >&6; }
38205   if test "x$gl_cv_func_rename_link_works" != xyes; then
38206
38207
38208
38209
38210
38211
38212
38213
38214   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38215
38216     REPLACE_RENAME=1
38217
38218 cat >>confdefs.h <<\_ACEOF
38219 #define RENAME_HARD_LINK_BUG 1
38220 _ACEOF
38221
38222   fi
38223
38224           { $as_echo "$as_me:$LINENO: checking whether rename manages existing destinations correctly" >&5
38225 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
38226 if test "${gl_cv_func_rename_dest_works+set}" = set; then
38227   $as_echo_n "(cached) " >&6
38228 else
38229   rm -rf conftest.f conftest.d1 conftest.d2
38230     touch conftest.f && mkdir conftest.d1 conftest.d2 ||
38231       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
38232 $as_echo "$as_me: error: cannot create temporary files" >&2;}
38233    { (exit 1); exit 1; }; }
38234     if test "$cross_compiling" = yes; then
38235         gl_cv_func_rename_dest_works="guessing no"
38236 else
38237   cat >conftest.$ac_ext <<_ACEOF
38238 /* confdefs.h.  */
38239 _ACEOF
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h.  */
38243
38244 #       include <stdio.h>
38245 #       include <stdlib.h>
38246
38247 int
38248 main ()
38249 {
38250 if (rename ("conftest.d1", "conftest.d2") != 0) return 1;
38251      if (rename ("conftest.d2", "conftest.f") == 0) return 2;
38252   ;
38253   return 0;
38254 }
38255 _ACEOF
38256 rm -f conftest$ac_exeext
38257 if { (ac_try="$ac_link"
38258 case "(($ac_try" in
38259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38260   *) ac_try_echo=$ac_try;;
38261 esac
38262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38263 $as_echo "$ac_try_echo") >&5
38264   (eval "$ac_link") 2>&5
38265   ac_status=$?
38266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38268   { (case "(($ac_try" in
38269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38270   *) ac_try_echo=$ac_try;;
38271 esac
38272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38273 $as_echo "$ac_try_echo") >&5
38274   (eval "$ac_try") 2>&5
38275   ac_status=$?
38276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277   (exit $ac_status); }; }; then
38278   gl_cv_func_rename_dest_works=yes
38279 else
38280   $as_echo "$as_me: program exited with status $ac_status" >&5
38281 $as_echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38283
38284 ( exit $ac_status )
38285 gl_cv_func_rename_dest_works=no
38286 fi
38287 rm -rf conftest.dSYM
38288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38289 fi
38290
38291
38292     rm -rf conftest.f conftest.d1 conftest.d2
38293
38294 fi
38295 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_works" >&5
38296 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
38297   if test "x$gl_cv_func_rename_dest_works" != xyes; then
38298
38299
38300
38301
38302
38303
38304
38305
38306   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
38307
38308     REPLACE_RENAME=1
38309
38310 cat >>confdefs.h <<\_ACEOF
38311 #define RENAME_DEST_EXISTS_BUG 1
38312 _ACEOF
38313
38314   fi
38315
38316
38317
38318
38319   GNULIB_RENAME=1
38320
38321
38322
38323 cat >>confdefs.h <<\_ACEOF
38324 #define GNULIB_TEST_RENAME 1
38325 _ACEOF
38326
38327
38328
38329   # Code from module renameat:
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341   if test $ac_cv_func_renameat = no; then
38342     HAVE_RENAMEAT=0
38343
38344
38345
38346
38347
38348
38349
38350
38351   gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
38362
38363   elif test $REPLACE_RENAME = 1; then
38364         REPLACE_RENAMEAT=1
38365
38366
38367
38368
38369
38370
38371
38372
38373   gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
38384
38385   fi
38386
38387
38388
38389
38390   GNULIB_RENAMEAT=1
38391
38392
38393
38394 cat >>confdefs.h <<\_ACEOF
38395 #define GNULIB_TEST_RENAMEAT 1
38396 _ACEOF
38397
38398
38399
38400   # Code from module rmdir:
38401
38402
38403
38404     { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
38405 $as_echo_n "checking whether rmdir works... " >&6; }
38406 if test "${gl_cv_func_rmdir_works+set}" = set; then
38407   $as_echo_n "(cached) " >&6
38408 else
38409   mkdir conftest.dir
38410      touch conftest.file
38411      if test "$cross_compiling" = yes; then
38412   gl_cv_func_rmdir_works="guessing no"
38413 else
38414   cat >conftest.$ac_ext <<_ACEOF
38415 /* confdefs.h.  */
38416 _ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h.  */
38420 #include <stdio.h>
38421            #include <errno.h>
38422            #include <unistd.h>
38423
38424 int
38425 main ()
38426 {
38427 return !rmdir ("conftest.file/") || errno != ENOTDIR
38428        || !rmdir ("conftest.dir/./");
38429   ;
38430   return 0;
38431 }
38432 _ACEOF
38433 rm -f conftest$ac_exeext
38434 if { (ac_try="$ac_link"
38435 case "(($ac_try" in
38436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38437   *) ac_try_echo=$ac_try;;
38438 esac
38439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38440 $as_echo "$ac_try_echo") >&5
38441   (eval "$ac_link") 2>&5
38442   ac_status=$?
38443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38445   { (case "(($ac_try" in
38446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447   *) ac_try_echo=$ac_try;;
38448 esac
38449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38450 $as_echo "$ac_try_echo") >&5
38451   (eval "$ac_try") 2>&5
38452   ac_status=$?
38453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454   (exit $ac_status); }; }; then
38455   gl_cv_func_rmdir_works=yes
38456 else
38457   $as_echo "$as_me: program exited with status $ac_status" >&5
38458 $as_echo "$as_me: failed program was:" >&5
38459 sed 's/^/| /' conftest.$ac_ext >&5
38460
38461 ( exit $ac_status )
38462 gl_cv_func_rmdir_works=no
38463 fi
38464 rm -rf conftest.dSYM
38465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38466 fi
38467
38468
38469      rm -rf conftest.dir conftest.file
38470 fi
38471 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
38472 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38473   if test x"$gl_cv_func_rmdir_works" != xyes; then
38474     REPLACE_RMDIR=1
38475
38476
38477
38478
38479
38480
38481
38482
38483   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38484
38485   fi
38486
38487
38488
38489
38490   GNULIB_RMDIR=1
38491
38492
38493
38494 cat >>confdefs.h <<\_ACEOF
38495 #define GNULIB_TEST_RMDIR 1
38496 _ACEOF
38497
38498
38499
38500   # Code from module rpmatch:
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514 for ac_func in rpmatch
38515 do
38516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38518 $as_echo_n "checking for $ac_func... " >&6; }
38519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38520   $as_echo_n "(cached) " >&6
38521 else
38522   cat >conftest.$ac_ext <<_ACEOF
38523 /* confdefs.h.  */
38524 _ACEOF
38525 cat confdefs.h >>conftest.$ac_ext
38526 cat >>conftest.$ac_ext <<_ACEOF
38527 /* end confdefs.h.  */
38528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38530 #define $ac_func innocuous_$ac_func
38531
38532 /* System header to define __stub macros and hopefully few prototypes,
38533     which can conflict with char $ac_func (); below.
38534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38535     <limits.h> exists even on freestanding compilers.  */
38536
38537 #ifdef __STDC__
38538 # include <limits.h>
38539 #else
38540 # include <assert.h>
38541 #endif
38542
38543 #undef $ac_func
38544
38545 /* Override any GCC internal prototype to avoid an error.
38546    Use char because int might match the return type of a GCC
38547    builtin and then its argument prototype would still apply.  */
38548 #ifdef __cplusplus
38549 extern "C"
38550 #endif
38551 char $ac_func ();
38552 /* The GNU C library defines this for functions which it implements
38553     to always fail with ENOSYS.  Some functions are actually named
38554     something starting with __ and the normal name is an alias.  */
38555 #if defined __stub_$ac_func || defined __stub___$ac_func
38556 choke me
38557 #endif
38558
38559 int
38560 main ()
38561 {
38562 return $ac_func ();
38563   ;
38564   return 0;
38565 }
38566 _ACEOF
38567 rm -f conftest.$ac_objext conftest$ac_exeext
38568 if { (ac_try="$ac_link"
38569 case "(($ac_try" in
38570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38571   *) ac_try_echo=$ac_try;;
38572 esac
38573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38574 $as_echo "$ac_try_echo") >&5
38575   (eval "$ac_link") 2>conftest.er1
38576   ac_status=$?
38577   grep -v '^ *+' conftest.er1 >conftest.err
38578   rm -f conftest.er1
38579   cat conftest.err >&5
38580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581   (exit $ac_status); } && {
38582          test -z "$ac_c_werror_flag" ||
38583          test ! -s conftest.err
38584        } && test -s conftest$ac_exeext && {
38585          test "$cross_compiling" = yes ||
38586          $as_test_x conftest$ac_exeext
38587        }; then
38588   eval "$as_ac_var=yes"
38589 else
38590   $as_echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38592
38593         eval "$as_ac_var=no"
38594 fi
38595
38596 rm -rf conftest.dSYM
38597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38598       conftest$ac_exeext conftest.$ac_ext
38599 fi
38600 ac_res=`eval 'as_val=${'$as_ac_var'}
38601                  $as_echo "$as_val"'`
38602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38603 $as_echo "$ac_res" >&6; }
38604 as_val=`eval 'as_val=${'$as_ac_var'}
38605                  $as_echo "$as_val"'`
38606    if test "x$as_val" = x""yes; then
38607   cat >>confdefs.h <<_ACEOF
38608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38609 _ACEOF
38610
38611 else
38612
38613     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38614
38615 fi
38616 done
38617
38618
38619   if test $ac_cv_func_rpmatch = no; then
38620     HAVE_RPMATCH=0
38621
38622   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
38623 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
38624 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
38625   $as_echo_n "(cached) " >&6
38626 else
38627   cat >conftest.$ac_ext <<_ACEOF
38628 /* confdefs.h.  */
38629 _ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h.  */
38633 #include <langinfo.h>
38634 int
38635 main ()
38636 {
38637 char* cs = nl_langinfo(YESEXPR); return !cs;
38638   ;
38639   return 0;
38640 }
38641 _ACEOF
38642 rm -f conftest.$ac_objext conftest$ac_exeext
38643 if { (ac_try="$ac_link"
38644 case "(($ac_try" in
38645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38646   *) ac_try_echo=$ac_try;;
38647 esac
38648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38649 $as_echo "$ac_try_echo") >&5
38650   (eval "$ac_link") 2>conftest.er1
38651   ac_status=$?
38652   grep -v '^ *+' conftest.er1 >conftest.err
38653   rm -f conftest.er1
38654   cat conftest.err >&5
38655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656   (exit $ac_status); } && {
38657          test -z "$ac_c_werror_flag" ||
38658          test ! -s conftest.err
38659        } && test -s conftest$ac_exeext && {
38660          test "$cross_compiling" = yes ||
38661          $as_test_x conftest$ac_exeext
38662        }; then
38663   gl_cv_langinfo_yesexpr=yes
38664 else
38665   $as_echo "$as_me: failed program was:" >&5
38666 sed 's/^/| /' conftest.$ac_ext >&5
38667
38668         gl_cv_langinfo_yesexpr=no
38669 fi
38670
38671 rm -rf conftest.dSYM
38672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38673       conftest$ac_exeext conftest.$ac_ext
38674
38675 fi
38676 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
38677 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
38678   if test $gl_cv_langinfo_yesexpr = yes; then
38679
38680 cat >>confdefs.h <<\_ACEOF
38681 #define HAVE_LANGINFO_YESEXPR 1
38682 _ACEOF
38683
38684   fi
38685
38686   fi
38687
38688
38689
38690
38691   GNULIB_RPMATCH=1
38692
38693
38694
38695 cat >>confdefs.h <<\_ACEOF
38696 #define GNULIB_TEST_RPMATCH 1
38697 _ACEOF
38698
38699
38700
38701   # Code from module safe-read:
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
38712
38713
38714
38715
38716
38717
38718   # Code from module safe-write:
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
38729
38730
38731
38732
38733
38734
38735
38736
38737   # Code from module same-inode:
38738   # Code from module save-cwd:
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
38749
38750
38751
38752
38753
38754
38755
38756
38757   # Code from module savedir:
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
38768
38769
38770   # Code from module setenv:
38771
38772
38773   if test $HAVE_SETENV$REPLACE_SETENV != 10; then
38774
38775
38776
38777
38778
38779
38780
38781
38782   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38783
38784   fi
38785
38786
38787
38788
38789   GNULIB_SETENV=1
38790
38791
38792
38793 cat >>confdefs.h <<\_ACEOF
38794 #define GNULIB_TEST_SETENV 1
38795 _ACEOF
38796
38797
38798
38799   # Code from module size_max:
38800
38801
38802 for ac_header in stdint.h
38803 do
38804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38806   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38807 $as_echo_n "checking for $ac_header... " >&6; }
38808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38809   $as_echo_n "(cached) " >&6
38810 fi
38811 ac_res=`eval 'as_val=${'$as_ac_Header'}
38812                  $as_echo "$as_val"'`
38813                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38814 $as_echo "$ac_res" >&6; }
38815 else
38816   # Is the header compilable?
38817 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38818 $as_echo_n "checking $ac_header usability... " >&6; }
38819 cat >conftest.$ac_ext <<_ACEOF
38820 /* confdefs.h.  */
38821 _ACEOF
38822 cat confdefs.h >>conftest.$ac_ext
38823 cat >>conftest.$ac_ext <<_ACEOF
38824 /* end confdefs.h.  */
38825 $ac_includes_default
38826 #include <$ac_header>
38827 _ACEOF
38828 rm -f conftest.$ac_objext
38829 if { (ac_try="$ac_compile"
38830 case "(($ac_try" in
38831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38832   *) ac_try_echo=$ac_try;;
38833 esac
38834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38835 $as_echo "$ac_try_echo") >&5
38836   (eval "$ac_compile") 2>conftest.er1
38837   ac_status=$?
38838   grep -v '^ *+' conftest.er1 >conftest.err
38839   rm -f conftest.er1
38840   cat conftest.err >&5
38841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); } && {
38843          test -z "$ac_c_werror_flag" ||
38844          test ! -s conftest.err
38845        } && test -s conftest.$ac_objext; then
38846   ac_header_compiler=yes
38847 else
38848   $as_echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.$ac_ext >&5
38850
38851         ac_header_compiler=no
38852 fi
38853
38854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38856 $as_echo "$ac_header_compiler" >&6; }
38857
38858 # Is the header present?
38859 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
38860 $as_echo_n "checking $ac_header presence... " >&6; }
38861 cat >conftest.$ac_ext <<_ACEOF
38862 /* confdefs.h.  */
38863 _ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h.  */
38867 #include <$ac_header>
38868 _ACEOF
38869 if { (ac_try="$ac_cpp conftest.$ac_ext"
38870 case "(($ac_try" in
38871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38872   *) ac_try_echo=$ac_try;;
38873 esac
38874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38875 $as_echo "$ac_try_echo") >&5
38876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38877   ac_status=$?
38878   grep -v '^ *+' conftest.er1 >conftest.err
38879   rm -f conftest.er1
38880   cat conftest.err >&5
38881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882   (exit $ac_status); } >/dev/null && {
38883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38884          test ! -s conftest.err
38885        }; then
38886   ac_header_preproc=yes
38887 else
38888   $as_echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38890
38891   ac_header_preproc=no
38892 fi
38893
38894 rm -f conftest.err conftest.$ac_ext
38895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38896 $as_echo "$ac_header_preproc" >&6; }
38897
38898 # So?  What about this header?
38899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38900   yes:no: )
38901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38902 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38905     ac_header_preproc=yes
38906     ;;
38907   no:yes:* )
38908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38909 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38911 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38912     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38913 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38914     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38915 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38919 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38920     ( cat <<\_ASBOX
38921 ## ------------------------------ ##
38922 ## Report this to bug-tar@gnu.org ##
38923 ## ------------------------------ ##
38924 _ASBOX
38925      ) | sed "s/^/$as_me: WARNING:     /" >&2
38926     ;;
38927 esac
38928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38929 $as_echo_n "checking for $ac_header... " >&6; }
38930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38931   $as_echo_n "(cached) " >&6
38932 else
38933   eval "$as_ac_Header=\$ac_header_preproc"
38934 fi
38935 ac_res=`eval 'as_val=${'$as_ac_Header'}
38936                  $as_echo "$as_val"'`
38937                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38938 $as_echo "$ac_res" >&6; }
38939
38940 fi
38941 as_val=`eval 'as_val=${'$as_ac_Header'}
38942                  $as_echo "$as_val"'`
38943    if test "x$as_val" = x""yes; then
38944   cat >>confdefs.h <<_ACEOF
38945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38946 _ACEOF
38947
38948 fi
38949
38950 done
38951
38952     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
38953 $as_echo_n "checking for SIZE_MAX... " >&6; }
38954 if test "${gl_cv_size_max+set}" = set; then
38955   $as_echo_n "(cached) " >&6
38956 else
38957
38958     gl_cv_size_max=
38959     cat >conftest.$ac_ext <<_ACEOF
38960 /* confdefs.h.  */
38961 _ACEOF
38962 cat confdefs.h >>conftest.$ac_ext
38963 cat >>conftest.$ac_ext <<_ACEOF
38964 /* end confdefs.h.  */
38965
38966 #include <limits.h>
38967 #if HAVE_STDINT_H
38968 #include <stdint.h>
38969 #endif
38970 #ifdef SIZE_MAX
38971 Found it
38972 #endif
38973
38974 _ACEOF
38975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38976   $EGREP "Found it" >/dev/null 2>&1; then
38977   gl_cv_size_max=yes
38978 fi
38979 rm -f conftest*
38980
38981     if test -z "$gl_cv_size_max"; then
38982                         if test "$cross_compiling" = yes; then
38983   # Depending upon the size, compute the lo and hi bounds.
38984 cat >conftest.$ac_ext <<_ACEOF
38985 /* confdefs.h.  */
38986 _ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h.  */
38990 #include <stddef.h>
38991 #include <limits.h>
38992 int
38993 main ()
38994 {
38995 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
38996 test_array [0] = 0
38997
38998   ;
38999   return 0;
39000 }
39001 _ACEOF
39002 rm -f conftest.$ac_objext
39003 if { (ac_try="$ac_compile"
39004 case "(($ac_try" in
39005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006   *) ac_try_echo=$ac_try;;
39007 esac
39008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39009 $as_echo "$ac_try_echo") >&5
39010   (eval "$ac_compile") 2>conftest.er1
39011   ac_status=$?
39012   grep -v '^ *+' conftest.er1 >conftest.err
39013   rm -f conftest.er1
39014   cat conftest.err >&5
39015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016   (exit $ac_status); } && {
39017          test -z "$ac_c_werror_flag" ||
39018          test ! -s conftest.err
39019        } && test -s conftest.$ac_objext; then
39020   ac_lo=0 ac_mid=0
39021   while :; do
39022     cat >conftest.$ac_ext <<_ACEOF
39023 /* confdefs.h.  */
39024 _ACEOF
39025 cat confdefs.h >>conftest.$ac_ext
39026 cat >>conftest.$ac_ext <<_ACEOF
39027 /* end confdefs.h.  */
39028 #include <stddef.h>
39029 #include <limits.h>
39030 int
39031 main ()
39032 {
39033 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
39034 test_array [0] = 0
39035
39036   ;
39037   return 0;
39038 }
39039 _ACEOF
39040 rm -f conftest.$ac_objext
39041 if { (ac_try="$ac_compile"
39042 case "(($ac_try" in
39043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044   *) ac_try_echo=$ac_try;;
39045 esac
39046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39047 $as_echo "$ac_try_echo") >&5
39048   (eval "$ac_compile") 2>conftest.er1
39049   ac_status=$?
39050   grep -v '^ *+' conftest.er1 >conftest.err
39051   rm -f conftest.er1
39052   cat conftest.err >&5
39053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } && {
39055          test -z "$ac_c_werror_flag" ||
39056          test ! -s conftest.err
39057        } && test -s conftest.$ac_objext; then
39058   ac_hi=$ac_mid; break
39059 else
39060   $as_echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063         ac_lo=`expr $ac_mid + 1`
39064                         if test $ac_lo -le $ac_mid; then
39065                           ac_lo= ac_hi=
39066                           break
39067                         fi
39068                         ac_mid=`expr 2 '*' $ac_mid + 1`
39069 fi
39070
39071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39072   done
39073 else
39074   $as_echo "$as_me: failed program was:" >&5
39075 sed 's/^/| /' conftest.$ac_ext >&5
39076
39077         cat >conftest.$ac_ext <<_ACEOF
39078 /* confdefs.h.  */
39079 _ACEOF
39080 cat confdefs.h >>conftest.$ac_ext
39081 cat >>conftest.$ac_ext <<_ACEOF
39082 /* end confdefs.h.  */
39083 #include <stddef.h>
39084 #include <limits.h>
39085 int
39086 main ()
39087 {
39088 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
39089 test_array [0] = 0
39090
39091   ;
39092   return 0;
39093 }
39094 _ACEOF
39095 rm -f conftest.$ac_objext
39096 if { (ac_try="$ac_compile"
39097 case "(($ac_try" in
39098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39099   *) ac_try_echo=$ac_try;;
39100 esac
39101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39102 $as_echo "$ac_try_echo") >&5
39103   (eval "$ac_compile") 2>conftest.er1
39104   ac_status=$?
39105   grep -v '^ *+' conftest.er1 >conftest.err
39106   rm -f conftest.er1
39107   cat conftest.err >&5
39108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109   (exit $ac_status); } && {
39110          test -z "$ac_c_werror_flag" ||
39111          test ! -s conftest.err
39112        } && test -s conftest.$ac_objext; then
39113   ac_hi=-1 ac_mid=-1
39114   while :; do
39115     cat >conftest.$ac_ext <<_ACEOF
39116 /* confdefs.h.  */
39117 _ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h.  */
39121 #include <stddef.h>
39122 #include <limits.h>
39123 int
39124 main ()
39125 {
39126 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
39127 test_array [0] = 0
39128
39129   ;
39130   return 0;
39131 }
39132 _ACEOF
39133 rm -f conftest.$ac_objext
39134 if { (ac_try="$ac_compile"
39135 case "(($ac_try" in
39136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137   *) ac_try_echo=$ac_try;;
39138 esac
39139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39140 $as_echo "$ac_try_echo") >&5
39141   (eval "$ac_compile") 2>conftest.er1
39142   ac_status=$?
39143   grep -v '^ *+' conftest.er1 >conftest.err
39144   rm -f conftest.er1
39145   cat conftest.err >&5
39146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147   (exit $ac_status); } && {
39148          test -z "$ac_c_werror_flag" ||
39149          test ! -s conftest.err
39150        } && test -s conftest.$ac_objext; then
39151   ac_lo=$ac_mid; break
39152 else
39153   $as_echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39155
39156         ac_hi=`expr '(' $ac_mid ')' - 1`
39157                         if test $ac_mid -le $ac_hi; then
39158                           ac_lo= ac_hi=
39159                           break
39160                         fi
39161                         ac_mid=`expr 2 '*' $ac_mid`
39162 fi
39163
39164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39165   done
39166 else
39167   $as_echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39169
39170         ac_lo= ac_hi=
39171 fi
39172
39173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39174 fi
39175
39176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39177 # Binary search between lo and hi bounds.
39178 while test "x$ac_lo" != "x$ac_hi"; do
39179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39180   cat >conftest.$ac_ext <<_ACEOF
39181 /* confdefs.h.  */
39182 _ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h.  */
39186 #include <stddef.h>
39187 #include <limits.h>
39188 int
39189 main ()
39190 {
39191 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
39192 test_array [0] = 0
39193
39194   ;
39195   return 0;
39196 }
39197 _ACEOF
39198 rm -f conftest.$ac_objext
39199 if { (ac_try="$ac_compile"
39200 case "(($ac_try" in
39201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39202   *) ac_try_echo=$ac_try;;
39203 esac
39204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39205 $as_echo "$ac_try_echo") >&5
39206   (eval "$ac_compile") 2>conftest.er1
39207   ac_status=$?
39208   grep -v '^ *+' conftest.er1 >conftest.err
39209   rm -f conftest.er1
39210   cat conftest.err >&5
39211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212   (exit $ac_status); } && {
39213          test -z "$ac_c_werror_flag" ||
39214          test ! -s conftest.err
39215        } && test -s conftest.$ac_objext; then
39216   ac_hi=$ac_mid
39217 else
39218   $as_echo "$as_me: failed program was:" >&5
39219 sed 's/^/| /' conftest.$ac_ext >&5
39220
39221         ac_lo=`expr '(' $ac_mid ')' + 1`
39222 fi
39223
39224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39225 done
39226 case $ac_lo in
39227 ?*) size_t_bits_minus_1=$ac_lo;;
39228 '') size_t_bits_minus_1= ;;
39229 esac
39230 else
39231   cat >conftest.$ac_ext <<_ACEOF
39232 /* confdefs.h.  */
39233 _ACEOF
39234 cat confdefs.h >>conftest.$ac_ext
39235 cat >>conftest.$ac_ext <<_ACEOF
39236 /* end confdefs.h.  */
39237 #include <stddef.h>
39238 #include <limits.h>
39239 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
39240 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
39241 #include <stdio.h>
39242 #include <stdlib.h>
39243 int
39244 main ()
39245 {
39246
39247   FILE *f = fopen ("conftest.val", "w");
39248   if (! f)
39249     return 1;
39250   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
39251     {
39252       long int i = longval ();
39253       if (i != (sizeof (size_t) * CHAR_BIT - 1))
39254         return 1;
39255       fprintf (f, "%ld", i);
39256     }
39257   else
39258     {
39259       unsigned long int i = ulongval ();
39260       if (i != (sizeof (size_t) * CHAR_BIT - 1))
39261         return 1;
39262       fprintf (f, "%lu", i);
39263     }
39264   /* Do not output a trailing newline, as this causes \r\n confusion
39265      on some platforms.  */
39266   return ferror (f) || fclose (f) != 0;
39267
39268   ;
39269   return 0;
39270 }
39271 _ACEOF
39272 rm -f conftest$ac_exeext
39273 if { (ac_try="$ac_link"
39274 case "(($ac_try" in
39275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39276   *) ac_try_echo=$ac_try;;
39277 esac
39278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39279 $as_echo "$ac_try_echo") >&5
39280   (eval "$ac_link") 2>&5
39281   ac_status=$?
39282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39284   { (case "(($ac_try" in
39285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39286   *) ac_try_echo=$ac_try;;
39287 esac
39288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39289 $as_echo "$ac_try_echo") >&5
39290   (eval "$ac_try") 2>&5
39291   ac_status=$?
39292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293   (exit $ac_status); }; }; then
39294   size_t_bits_minus_1=`cat conftest.val`
39295 else
39296   $as_echo "$as_me: program exited with status $ac_status" >&5
39297 $as_echo "$as_me: failed program was:" >&5
39298 sed 's/^/| /' conftest.$ac_ext >&5
39299
39300 ( exit $ac_status )
39301 size_t_bits_minus_1=
39302 fi
39303 rm -rf conftest.dSYM
39304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39305 fi
39306 rm -f conftest.val
39307       if test "$cross_compiling" = yes; then
39308   # Depending upon the size, compute the lo and hi bounds.
39309 cat >conftest.$ac_ext <<_ACEOF
39310 /* confdefs.h.  */
39311 _ACEOF
39312 cat confdefs.h >>conftest.$ac_ext
39313 cat >>conftest.$ac_ext <<_ACEOF
39314 /* end confdefs.h.  */
39315 #include <stddef.h>
39316 int
39317 main ()
39318 {
39319 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
39320 test_array [0] = 0
39321
39322   ;
39323   return 0;
39324 }
39325 _ACEOF
39326 rm -f conftest.$ac_objext
39327 if { (ac_try="$ac_compile"
39328 case "(($ac_try" in
39329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39330   *) ac_try_echo=$ac_try;;
39331 esac
39332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39333 $as_echo "$ac_try_echo") >&5
39334   (eval "$ac_compile") 2>conftest.er1
39335   ac_status=$?
39336   grep -v '^ *+' conftest.er1 >conftest.err
39337   rm -f conftest.er1
39338   cat conftest.err >&5
39339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39340   (exit $ac_status); } && {
39341          test -z "$ac_c_werror_flag" ||
39342          test ! -s conftest.err
39343        } && test -s conftest.$ac_objext; then
39344   ac_lo=0 ac_mid=0
39345   while :; do
39346     cat >conftest.$ac_ext <<_ACEOF
39347 /* confdefs.h.  */
39348 _ACEOF
39349 cat confdefs.h >>conftest.$ac_ext
39350 cat >>conftest.$ac_ext <<_ACEOF
39351 /* end confdefs.h.  */
39352 #include <stddef.h>
39353 int
39354 main ()
39355 {
39356 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
39357 test_array [0] = 0
39358
39359   ;
39360   return 0;
39361 }
39362 _ACEOF
39363 rm -f conftest.$ac_objext
39364 if { (ac_try="$ac_compile"
39365 case "(($ac_try" in
39366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39367   *) ac_try_echo=$ac_try;;
39368 esac
39369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39370 $as_echo "$ac_try_echo") >&5
39371   (eval "$ac_compile") 2>conftest.er1
39372   ac_status=$?
39373   grep -v '^ *+' conftest.er1 >conftest.err
39374   rm -f conftest.er1
39375   cat conftest.err >&5
39376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377   (exit $ac_status); } && {
39378          test -z "$ac_c_werror_flag" ||
39379          test ! -s conftest.err
39380        } && test -s conftest.$ac_objext; then
39381   ac_hi=$ac_mid; break
39382 else
39383   $as_echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39385
39386         ac_lo=`expr $ac_mid + 1`
39387                         if test $ac_lo -le $ac_mid; then
39388                           ac_lo= ac_hi=
39389                           break
39390                         fi
39391                         ac_mid=`expr 2 '*' $ac_mid + 1`
39392 fi
39393
39394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39395   done
39396 else
39397   $as_echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39399
39400         cat >conftest.$ac_ext <<_ACEOF
39401 /* confdefs.h.  */
39402 _ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h.  */
39406 #include <stddef.h>
39407 int
39408 main ()
39409 {
39410 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
39411 test_array [0] = 0
39412
39413   ;
39414   return 0;
39415 }
39416 _ACEOF
39417 rm -f conftest.$ac_objext
39418 if { (ac_try="$ac_compile"
39419 case "(($ac_try" in
39420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39421   *) ac_try_echo=$ac_try;;
39422 esac
39423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39424 $as_echo "$ac_try_echo") >&5
39425   (eval "$ac_compile") 2>conftest.er1
39426   ac_status=$?
39427   grep -v '^ *+' conftest.er1 >conftest.err
39428   rm -f conftest.er1
39429   cat conftest.err >&5
39430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); } && {
39432          test -z "$ac_c_werror_flag" ||
39433          test ! -s conftest.err
39434        } && test -s conftest.$ac_objext; then
39435   ac_hi=-1 ac_mid=-1
39436   while :; do
39437     cat >conftest.$ac_ext <<_ACEOF
39438 /* confdefs.h.  */
39439 _ACEOF
39440 cat confdefs.h >>conftest.$ac_ext
39441 cat >>conftest.$ac_ext <<_ACEOF
39442 /* end confdefs.h.  */
39443 #include <stddef.h>
39444 int
39445 main ()
39446 {
39447 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
39448 test_array [0] = 0
39449
39450   ;
39451   return 0;
39452 }
39453 _ACEOF
39454 rm -f conftest.$ac_objext
39455 if { (ac_try="$ac_compile"
39456 case "(($ac_try" in
39457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39458   *) ac_try_echo=$ac_try;;
39459 esac
39460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39461 $as_echo "$ac_try_echo") >&5
39462   (eval "$ac_compile") 2>conftest.er1
39463   ac_status=$?
39464   grep -v '^ *+' conftest.er1 >conftest.err
39465   rm -f conftest.er1
39466   cat conftest.err >&5
39467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } && {
39469          test -z "$ac_c_werror_flag" ||
39470          test ! -s conftest.err
39471        } && test -s conftest.$ac_objext; then
39472   ac_lo=$ac_mid; break
39473 else
39474   $as_echo "$as_me: failed program was:" >&5
39475 sed 's/^/| /' conftest.$ac_ext >&5
39476
39477         ac_hi=`expr '(' $ac_mid ')' - 1`
39478                         if test $ac_mid -le $ac_hi; then
39479                           ac_lo= ac_hi=
39480                           break
39481                         fi
39482                         ac_mid=`expr 2 '*' $ac_mid`
39483 fi
39484
39485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39486   done
39487 else
39488   $as_echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39490
39491         ac_lo= ac_hi=
39492 fi
39493
39494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39495 fi
39496
39497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39498 # Binary search between lo and hi bounds.
39499 while test "x$ac_lo" != "x$ac_hi"; do
39500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39501   cat >conftest.$ac_ext <<_ACEOF
39502 /* confdefs.h.  */
39503 _ACEOF
39504 cat confdefs.h >>conftest.$ac_ext
39505 cat >>conftest.$ac_ext <<_ACEOF
39506 /* end confdefs.h.  */
39507 #include <stddef.h>
39508 int
39509 main ()
39510 {
39511 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
39512 test_array [0] = 0
39513
39514   ;
39515   return 0;
39516 }
39517 _ACEOF
39518 rm -f conftest.$ac_objext
39519 if { (ac_try="$ac_compile"
39520 case "(($ac_try" in
39521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39522   *) ac_try_echo=$ac_try;;
39523 esac
39524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39525 $as_echo "$ac_try_echo") >&5
39526   (eval "$ac_compile") 2>conftest.er1
39527   ac_status=$?
39528   grep -v '^ *+' conftest.er1 >conftest.err
39529   rm -f conftest.er1
39530   cat conftest.err >&5
39531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532   (exit $ac_status); } && {
39533          test -z "$ac_c_werror_flag" ||
39534          test ! -s conftest.err
39535        } && test -s conftest.$ac_objext; then
39536   ac_hi=$ac_mid
39537 else
39538   $as_echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39540
39541         ac_lo=`expr '(' $ac_mid ')' + 1`
39542 fi
39543
39544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39545 done
39546 case $ac_lo in
39547 ?*) fits_in_uint=$ac_lo;;
39548 '') fits_in_uint= ;;
39549 esac
39550 else
39551   cat >conftest.$ac_ext <<_ACEOF
39552 /* confdefs.h.  */
39553 _ACEOF
39554 cat confdefs.h >>conftest.$ac_ext
39555 cat >>conftest.$ac_ext <<_ACEOF
39556 /* end confdefs.h.  */
39557 #include <stddef.h>
39558 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
39559 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
39560 #include <stdio.h>
39561 #include <stdlib.h>
39562 int
39563 main ()
39564 {
39565
39566   FILE *f = fopen ("conftest.val", "w");
39567   if (! f)
39568     return 1;
39569   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
39570     {
39571       long int i = longval ();
39572       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
39573         return 1;
39574       fprintf (f, "%ld", i);
39575     }
39576   else
39577     {
39578       unsigned long int i = ulongval ();
39579       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
39580         return 1;
39581       fprintf (f, "%lu", i);
39582     }
39583   /* Do not output a trailing newline, as this causes \r\n confusion
39584      on some platforms.  */
39585   return ferror (f) || fclose (f) != 0;
39586
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest$ac_exeext
39592 if { (ac_try="$ac_link"
39593 case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39598 $as_echo "$ac_try_echo") >&5
39599   (eval "$ac_link") 2>&5
39600   ac_status=$?
39601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39603   { (case "(($ac_try" in
39604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39605   *) ac_try_echo=$ac_try;;
39606 esac
39607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39608 $as_echo "$ac_try_echo") >&5
39609   (eval "$ac_try") 2>&5
39610   ac_status=$?
39611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); }; }; then
39613   fits_in_uint=`cat conftest.val`
39614 else
39615   $as_echo "$as_me: program exited with status $ac_status" >&5
39616 $as_echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39618
39619 ( exit $ac_status )
39620 fits_in_uint=
39621 fi
39622 rm -rf conftest.dSYM
39623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39624 fi
39625 rm -f conftest.val
39626       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
39627         if test $fits_in_uint = 1; then
39628                               cat >conftest.$ac_ext <<_ACEOF
39629 /* confdefs.h.  */
39630 _ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h.  */
39634 #include <stddef.h>
39635                  extern size_t foo;
39636                  extern unsigned long foo;
39637
39638 int
39639 main ()
39640 {
39641
39642   ;
39643   return 0;
39644 }
39645 _ACEOF
39646 rm -f conftest.$ac_objext
39647 if { (ac_try="$ac_compile"
39648 case "(($ac_try" in
39649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39650   *) ac_try_echo=$ac_try;;
39651 esac
39652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39653 $as_echo "$ac_try_echo") >&5
39654   (eval "$ac_compile") 2>conftest.er1
39655   ac_status=$?
39656   grep -v '^ *+' conftest.er1 >conftest.err
39657   rm -f conftest.er1
39658   cat conftest.err >&5
39659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); } && {
39661          test -z "$ac_c_werror_flag" ||
39662          test ! -s conftest.err
39663        } && test -s conftest.$ac_objext; then
39664   fits_in_uint=0
39665 else
39666   $as_echo "$as_me: failed program was:" >&5
39667 sed 's/^/| /' conftest.$ac_ext >&5
39668
39669
39670 fi
39671
39672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39673         fi
39674                                 if test $fits_in_uint = 1; then
39675           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
39676         else
39677           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
39678         fi
39679       else
39680                 gl_cv_size_max='((size_t)~(size_t)0)'
39681       fi
39682     fi
39683
39684 fi
39685 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
39686 $as_echo "$gl_cv_size_max" >&6; }
39687   if test "$gl_cv_size_max" != yes; then
39688
39689 cat >>confdefs.h <<_ACEOF
39690 #define SIZE_MAX $gl_cv_size_max
39691 _ACEOF
39692
39693   fi
39694
39695
39696
39697   # Code from module sleep:
39698
39699
39700             { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
39701 $as_echo_n "checking whether sleep is declared... " >&6; }
39702 if test "${ac_cv_have_decl_sleep+set}" = set; then
39703   $as_echo_n "(cached) " >&6
39704 else
39705   cat >conftest.$ac_ext <<_ACEOF
39706 /* confdefs.h.  */
39707 _ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h.  */
39711 #include <unistd.h>
39712
39713 int
39714 main ()
39715 {
39716 #ifndef sleep
39717   (void) sleep;
39718 #endif
39719
39720   ;
39721   return 0;
39722 }
39723 _ACEOF
39724 rm -f conftest.$ac_objext
39725 if { (ac_try="$ac_compile"
39726 case "(($ac_try" in
39727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39728   *) ac_try_echo=$ac_try;;
39729 esac
39730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39731 $as_echo "$ac_try_echo") >&5
39732   (eval "$ac_compile") 2>conftest.er1
39733   ac_status=$?
39734   grep -v '^ *+' conftest.er1 >conftest.err
39735   rm -f conftest.er1
39736   cat conftest.err >&5
39737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738   (exit $ac_status); } && {
39739          test -z "$ac_c_werror_flag" ||
39740          test ! -s conftest.err
39741        } && test -s conftest.$ac_objext; then
39742   ac_cv_have_decl_sleep=yes
39743 else
39744   $as_echo "$as_me: failed program was:" >&5
39745 sed 's/^/| /' conftest.$ac_ext >&5
39746
39747         ac_cv_have_decl_sleep=no
39748 fi
39749
39750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39751 fi
39752 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
39753 $as_echo "$ac_cv_have_decl_sleep" >&6; }
39754 if test "x$ac_cv_have_decl_sleep" = x""yes; then
39755
39756 cat >>confdefs.h <<_ACEOF
39757 #define HAVE_DECL_SLEEP 1
39758 _ACEOF
39759
39760
39761 else
39762   cat >>confdefs.h <<_ACEOF
39763 #define HAVE_DECL_SLEEP 0
39764 _ACEOF
39765
39766
39767 fi
39768
39769
39770
39771
39772
39773
39774
39775
39776   if test $ac_cv_have_decl_sleep != yes; then
39777     HAVE_SLEEP=0
39778
39779
39780
39781
39782
39783
39784
39785
39786   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
39787
39788   else
39789         { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
39790 $as_echo_n "checking for working sleep... " >&6; }
39791 if test "${gl_cv_func_sleep_works+set}" = set; then
39792   $as_echo_n "(cached) " >&6
39793 else
39794   if test "$cross_compiling" = yes; then
39795   gl_cv_func_sleep_works="guessing no"
39796 else
39797   cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h.  */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h.  */
39803
39804 #include <errno.h>
39805 #include <unistd.h>
39806 #include <signal.h>
39807 static void
39808 handle_alarm (int sig)
39809 {
39810   if (sig != SIGALRM)
39811     _exit (2);
39812 }
39813
39814 int
39815 main ()
39816 {
39817
39818     /* Failure to compile this test due to missing alarm is okay,
39819        since all such platforms (mingw) also lack sleep.  */
39820     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
39821     unsigned int remaining;
39822     signal (SIGALRM, handle_alarm);
39823     alarm (1);
39824     remaining = sleep (pentecost);
39825     return !(pentecost - 10 < remaining && remaining <= pentecost);
39826   ;
39827   return 0;
39828 }
39829 _ACEOF
39830 rm -f conftest$ac_exeext
39831 if { (ac_try="$ac_link"
39832 case "(($ac_try" in
39833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39834   *) ac_try_echo=$ac_try;;
39835 esac
39836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39837 $as_echo "$ac_try_echo") >&5
39838   (eval "$ac_link") 2>&5
39839   ac_status=$?
39840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39842   { (case "(($ac_try" in
39843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39844   *) ac_try_echo=$ac_try;;
39845 esac
39846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39847 $as_echo "$ac_try_echo") >&5
39848   (eval "$ac_try") 2>&5
39849   ac_status=$?
39850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); }; }; then
39852   gl_cv_func_sleep_works=yes
39853 else
39854   $as_echo "$as_me: program exited with status $ac_status" >&5
39855 $as_echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39857
39858 ( exit $ac_status )
39859 gl_cv_func_sleep_works=no
39860 fi
39861 rm -rf conftest.dSYM
39862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39863 fi
39864
39865
39866 fi
39867 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
39868 $as_echo "$gl_cv_func_sleep_works" >&6; }
39869     if test "$gl_cv_func_sleep_works" != yes; then
39870       REPLACE_SLEEP=1
39871
39872
39873
39874
39875
39876
39877
39878
39879   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
39880
39881     fi
39882   fi
39883
39884
39885
39886
39887   GNULIB_SLEEP=1
39888
39889
39890
39891 cat >>confdefs.h <<\_ACEOF
39892 #define GNULIB_TEST_SLEEP 1
39893 _ACEOF
39894
39895
39896
39897   # Code from module snprintf:
39898
39899
39900   gl_cv_func_snprintf_usable=no
39901
39902 for ac_func in snprintf
39903 do
39904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39905 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39906 $as_echo_n "checking for $ac_func... " >&6; }
39907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39908   $as_echo_n "(cached) " >&6
39909 else
39910   cat >conftest.$ac_ext <<_ACEOF
39911 /* confdefs.h.  */
39912 _ACEOF
39913 cat confdefs.h >>conftest.$ac_ext
39914 cat >>conftest.$ac_ext <<_ACEOF
39915 /* end confdefs.h.  */
39916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39918 #define $ac_func innocuous_$ac_func
39919
39920 /* System header to define __stub macros and hopefully few prototypes,
39921     which can conflict with char $ac_func (); below.
39922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39923     <limits.h> exists even on freestanding compilers.  */
39924
39925 #ifdef __STDC__
39926 # include <limits.h>
39927 #else
39928 # include <assert.h>
39929 #endif
39930
39931 #undef $ac_func
39932
39933 /* Override any GCC internal prototype to avoid an error.
39934    Use char because int might match the return type of a GCC
39935    builtin and then its argument prototype would still apply.  */
39936 #ifdef __cplusplus
39937 extern "C"
39938 #endif
39939 char $ac_func ();
39940 /* The GNU C library defines this for functions which it implements
39941     to always fail with ENOSYS.  Some functions are actually named
39942     something starting with __ and the normal name is an alias.  */
39943 #if defined __stub_$ac_func || defined __stub___$ac_func
39944 choke me
39945 #endif
39946
39947 int
39948 main ()
39949 {
39950 return $ac_func ();
39951   ;
39952   return 0;
39953 }
39954 _ACEOF
39955 rm -f conftest.$ac_objext conftest$ac_exeext
39956 if { (ac_try="$ac_link"
39957 case "(($ac_try" in
39958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39959   *) ac_try_echo=$ac_try;;
39960 esac
39961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39962 $as_echo "$ac_try_echo") >&5
39963   (eval "$ac_link") 2>conftest.er1
39964   ac_status=$?
39965   grep -v '^ *+' conftest.er1 >conftest.err
39966   rm -f conftest.er1
39967   cat conftest.err >&5
39968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969   (exit $ac_status); } && {
39970          test -z "$ac_c_werror_flag" ||
39971          test ! -s conftest.err
39972        } && test -s conftest$ac_exeext && {
39973          test "$cross_compiling" = yes ||
39974          $as_test_x conftest$ac_exeext
39975        }; then
39976   eval "$as_ac_var=yes"
39977 else
39978   $as_echo "$as_me: failed program was:" >&5
39979 sed 's/^/| /' conftest.$ac_ext >&5
39980
39981         eval "$as_ac_var=no"
39982 fi
39983
39984 rm -rf conftest.dSYM
39985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39986       conftest$ac_exeext conftest.$ac_ext
39987 fi
39988 ac_res=`eval 'as_val=${'$as_ac_var'}
39989                  $as_echo "$as_val"'`
39990                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39991 $as_echo "$ac_res" >&6; }
39992 as_val=`eval 'as_val=${'$as_ac_var'}
39993                  $as_echo "$as_val"'`
39994    if test "x$as_val" = x""yes; then
39995   cat >>confdefs.h <<_ACEOF
39996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39997 _ACEOF
39998
39999 fi
40000 done
40001
40002   if test $ac_cv_func_snprintf = yes; then
40003
40004
40005   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
40006 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
40007 if test "${gl_cv_func_snprintf_size1+set}" = set; then
40008   $as_echo_n "(cached) " >&6
40009 else
40010
40011       if test "$cross_compiling" = yes; then
40012   gl_cv_func_snprintf_size1="guessing yes"
40013 else
40014   cat >conftest.$ac_ext <<_ACEOF
40015 /* confdefs.h.  */
40016 _ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h.  */
40020
40021 #include <stdio.h>
40022 int main()
40023 {
40024   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
40025   snprintf (buf, 1, "%d", 12345);
40026   return buf[1] != 'E';
40027 }
40028 _ACEOF
40029 rm -f conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033   *) ac_try_echo=$ac_try;;
40034 esac
40035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40036 $as_echo "$ac_try_echo") >&5
40037   (eval "$ac_link") 2>&5
40038   ac_status=$?
40039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40041   { (case "(($ac_try" in
40042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40043   *) ac_try_echo=$ac_try;;
40044 esac
40045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40046 $as_echo "$ac_try_echo") >&5
40047   (eval "$ac_try") 2>&5
40048   ac_status=$?
40049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050   (exit $ac_status); }; }; then
40051   gl_cv_func_snprintf_size1=yes
40052 else
40053   $as_echo "$as_me: program exited with status $ac_status" >&5
40054 $as_echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40056
40057 ( exit $ac_status )
40058 gl_cv_func_snprintf_size1=no
40059 fi
40060 rm -rf conftest.dSYM
40061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40062 fi
40063
40064
40065
40066 fi
40067 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
40068 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
40069
40070     case "$gl_cv_func_snprintf_size1" in
40071       *yes)
40072         gl_cv_func_snprintf_usable=yes
40073         ;;
40074     esac
40075   fi
40076   if test $gl_cv_func_snprintf_usable = no; then
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
40088
40089   if test $ac_cv_func_snprintf = yes; then
40090     REPLACE_SNPRINTF=1
40091   fi
40092   :
40093
40094   fi
40095
40096
40097
40098
40099   if test $ac_cv_have_decl_snprintf = no; then
40100     HAVE_DECL_SNPRINTF=0
40101   fi
40102
40103
40104
40105
40106   GNULIB_SNPRINTF=1
40107
40108
40109
40110 cat >>confdefs.h <<\_ACEOF
40111 #define GNULIB_TEST_SNPRINTF 1
40112 _ACEOF
40113
40114
40115
40116   # Code from module ssize_t:
40117
40118   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
40119 $as_echo_n "checking for ssize_t... " >&6; }
40120 if test "${gt_cv_ssize_t+set}" = set; then
40121   $as_echo_n "(cached) " >&6
40122 else
40123   cat >conftest.$ac_ext <<_ACEOF
40124 /* confdefs.h.  */
40125 _ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h.  */
40129 #include <sys/types.h>
40130 int
40131 main ()
40132 {
40133 int x = sizeof (ssize_t *) + sizeof (ssize_t);
40134             return !x;
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest.$ac_objext
40140 if { (ac_try="$ac_compile"
40141 case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40146 $as_echo "$ac_try_echo") >&5
40147   (eval "$ac_compile") 2>conftest.er1
40148   ac_status=$?
40149   grep -v '^ *+' conftest.er1 >conftest.err
40150   rm -f conftest.er1
40151   cat conftest.err >&5
40152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153   (exit $ac_status); } && {
40154          test -z "$ac_c_werror_flag" ||
40155          test ! -s conftest.err
40156        } && test -s conftest.$ac_objext; then
40157   gt_cv_ssize_t=yes
40158 else
40159   $as_echo "$as_me: failed program was:" >&5
40160 sed 's/^/| /' conftest.$ac_ext >&5
40161
40162         gt_cv_ssize_t=no
40163 fi
40164
40165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40166 fi
40167 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
40168 $as_echo "$gt_cv_ssize_t" >&6; }
40169   if test $gt_cv_ssize_t = no; then
40170
40171 cat >>confdefs.h <<\_ACEOF
40172 #define ssize_t int
40173 _ACEOF
40174
40175   fi
40176
40177   # Code from module stat:
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
40188 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
40189 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
40190   $as_echo_n "(cached) " >&6
40191 else
40192   if test "$cross_compiling" = yes; then
40193   case $host_os in
40194             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
40195             *) gl_cv_func_stat_dir_slash="guessing yes";;
40196           esac
40197 else
40198   cat >conftest.$ac_ext <<_ACEOF
40199 /* confdefs.h.  */
40200 _ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h.  */
40204 #include <sys/stat.h>
40205
40206 int
40207 main ()
40208 {
40209 struct stat st; return stat (".", &st) != stat ("./", &st);
40210   ;
40211   return 0;
40212 }
40213 _ACEOF
40214 rm -f conftest$ac_exeext
40215 if { (ac_try="$ac_link"
40216 case "(($ac_try" in
40217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40218   *) ac_try_echo=$ac_try;;
40219 esac
40220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40221 $as_echo "$ac_try_echo") >&5
40222   (eval "$ac_link") 2>&5
40223   ac_status=$?
40224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40226   { (case "(($ac_try" in
40227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40228   *) ac_try_echo=$ac_try;;
40229 esac
40230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40231 $as_echo "$ac_try_echo") >&5
40232   (eval "$ac_try") 2>&5
40233   ac_status=$?
40234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235   (exit $ac_status); }; }; then
40236   gl_cv_func_stat_dir_slash=yes
40237 else
40238   $as_echo "$as_me: program exited with status $ac_status" >&5
40239 $as_echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40241
40242 ( exit $ac_status )
40243 gl_cv_func_stat_dir_slash=no
40244 fi
40245 rm -rf conftest.dSYM
40246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40247 fi
40248
40249
40250 fi
40251 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
40252 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
40253       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
40254 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
40255 if test "${gl_cv_func_stat_file_slash+set}" = set; then
40256   $as_echo_n "(cached) " >&6
40257 else
40258   touch conftest.tmp
40259        # Assume that if we have lstat, we can also check symlinks.
40260        if test $ac_cv_func_lstat = yes; then
40261          ln -s conftest.tmp conftest.lnk
40262        fi
40263        if test "$cross_compiling" = yes; then
40264   gl_cv_func_stat_file_slash="guessing no"
40265 else
40266   cat >conftest.$ac_ext <<_ACEOF
40267 /* confdefs.h.  */
40268 _ACEOF
40269 cat confdefs.h >>conftest.$ac_ext
40270 cat >>conftest.$ac_ext <<_ACEOF
40271 /* end confdefs.h.  */
40272 #include <sys/stat.h>
40273
40274 int
40275 main ()
40276 {
40277 struct stat st;
40278       if (!stat ("conftest.tmp/", &st)) return 1;
40279 #if HAVE_LSTAT
40280       if (!stat ("conftest.lnk/", &st)) return 2;
40281 #endif
40282
40283   ;
40284   return 0;
40285 }
40286 _ACEOF
40287 rm -f conftest$ac_exeext
40288 if { (ac_try="$ac_link"
40289 case "(($ac_try" in
40290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40291   *) ac_try_echo=$ac_try;;
40292 esac
40293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40294 $as_echo "$ac_try_echo") >&5
40295   (eval "$ac_link") 2>&5
40296   ac_status=$?
40297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40299   { (case "(($ac_try" in
40300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40301   *) ac_try_echo=$ac_try;;
40302 esac
40303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40304 $as_echo "$ac_try_echo") >&5
40305   (eval "$ac_try") 2>&5
40306   ac_status=$?
40307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308   (exit $ac_status); }; }; then
40309   gl_cv_func_stat_file_slash=yes
40310 else
40311   $as_echo "$as_me: program exited with status $ac_status" >&5
40312 $as_echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315 ( exit $ac_status )
40316 gl_cv_func_stat_file_slash=no
40317 fi
40318 rm -rf conftest.dSYM
40319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40320 fi
40321
40322
40323        rm -f conftest.tmp conftest.lnk
40324 fi
40325 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
40326 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
40327   case $gl_cv_func_stat_dir_slash in
40328     *no) REPLACE_STAT=1
40329
40330 cat >>confdefs.h <<\_ACEOF
40331 #define REPLACE_FUNC_STAT_DIR 1
40332 _ACEOF
40333 ;;
40334   esac
40335   case $gl_cv_func_stat_file_slash in
40336     *no) REPLACE_STAT=1
40337
40338 cat >>confdefs.h <<\_ACEOF
40339 #define REPLACE_FUNC_STAT_FILE 1
40340 _ACEOF
40341 ;;
40342   esac
40343   if test $REPLACE_STAT = 1; then
40344
40345
40346
40347
40348
40349
40350
40351
40352   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
40353
40354
40355   fi
40356
40357
40358
40359
40360   GNULIB_STAT=1
40361
40362
40363
40364 cat >>confdefs.h <<\_ACEOF
40365 #define GNULIB_TEST_STAT 1
40366 _ACEOF
40367
40368
40369
40370   # Code from module stat-macros:
40371   # Code from module stat-time:
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
40383 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
40384 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
40385   $as_echo_n "(cached) " >&6
40386 else
40387   cat >conftest.$ac_ext <<_ACEOF
40388 /* confdefs.h.  */
40389 _ACEOF
40390 cat confdefs.h >>conftest.$ac_ext
40391 cat >>conftest.$ac_ext <<_ACEOF
40392 /* end confdefs.h.  */
40393 #include <sys/types.h>
40394      #include <sys/stat.h>
40395
40396 int
40397 main ()
40398 {
40399 static struct stat ac_aggr;
40400 if (ac_aggr.st_atim.tv_nsec)
40401 return 0;
40402   ;
40403   return 0;
40404 }
40405 _ACEOF
40406 rm -f conftest.$ac_objext
40407 if { (ac_try="$ac_compile"
40408 case "(($ac_try" in
40409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40410   *) ac_try_echo=$ac_try;;
40411 esac
40412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40413 $as_echo "$ac_try_echo") >&5
40414   (eval "$ac_compile") 2>conftest.er1
40415   ac_status=$?
40416   grep -v '^ *+' conftest.er1 >conftest.err
40417   rm -f conftest.er1
40418   cat conftest.err >&5
40419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420   (exit $ac_status); } && {
40421          test -z "$ac_c_werror_flag" ||
40422          test ! -s conftest.err
40423        } && test -s conftest.$ac_objext; then
40424   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40425 else
40426   $as_echo "$as_me: failed program was:" >&5
40427 sed 's/^/| /' conftest.$ac_ext >&5
40428
40429         cat >conftest.$ac_ext <<_ACEOF
40430 /* confdefs.h.  */
40431 _ACEOF
40432 cat confdefs.h >>conftest.$ac_ext
40433 cat >>conftest.$ac_ext <<_ACEOF
40434 /* end confdefs.h.  */
40435 #include <sys/types.h>
40436      #include <sys/stat.h>
40437
40438 int
40439 main ()
40440 {
40441 static struct stat ac_aggr;
40442 if (sizeof ac_aggr.st_atim.tv_nsec)
40443 return 0;
40444   ;
40445   return 0;
40446 }
40447 _ACEOF
40448 rm -f conftest.$ac_objext
40449 if { (ac_try="$ac_compile"
40450 case "(($ac_try" in
40451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452   *) ac_try_echo=$ac_try;;
40453 esac
40454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40455 $as_echo "$ac_try_echo") >&5
40456   (eval "$ac_compile") 2>conftest.er1
40457   ac_status=$?
40458   grep -v '^ *+' conftest.er1 >conftest.err
40459   rm -f conftest.er1
40460   cat conftest.err >&5
40461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462   (exit $ac_status); } && {
40463          test -z "$ac_c_werror_flag" ||
40464          test ! -s conftest.err
40465        } && test -s conftest.$ac_objext; then
40466   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
40467 else
40468   $as_echo "$as_me: failed program was:" >&5
40469 sed 's/^/| /' conftest.$ac_ext >&5
40470
40471         ac_cv_member_struct_stat_st_atim_tv_nsec=no
40472 fi
40473
40474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40475 fi
40476
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40478 fi
40479 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
40480 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
40481 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
40482
40483 cat >>confdefs.h <<_ACEOF
40484 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
40485 _ACEOF
40486
40487 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
40488 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
40489 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
40490   $as_echo_n "(cached) " >&6
40491 else
40492   cat >conftest.$ac_ext <<_ACEOF
40493 /* confdefs.h.  */
40494 _ACEOF
40495 cat confdefs.h >>conftest.$ac_ext
40496 cat >>conftest.$ac_ext <<_ACEOF
40497 /* end confdefs.h.  */
40498
40499             #include <sys/types.h>
40500             #include <sys/stat.h>
40501             #if HAVE_SYS_TIME_H
40502             # include <sys/time.h>
40503             #endif
40504             #include <time.h>
40505             struct timespec ts;
40506             struct stat st;
40507
40508 int
40509 main ()
40510 {
40511
40512             st.st_atim = ts;
40513
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext
40519 if { (ac_try="$ac_compile"
40520 case "(($ac_try" in
40521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522   *) ac_try_echo=$ac_try;;
40523 esac
40524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40525 $as_echo "$ac_try_echo") >&5
40526   (eval "$ac_compile") 2>conftest.er1
40527   ac_status=$?
40528   grep -v '^ *+' conftest.er1 >conftest.err
40529   rm -f conftest.er1
40530   cat conftest.err >&5
40531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532   (exit $ac_status); } && {
40533          test -z "$ac_c_werror_flag" ||
40534          test ! -s conftest.err
40535        } && test -s conftest.$ac_objext; then
40536   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
40537 else
40538   $as_echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40540
40541         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
40542 fi
40543
40544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40545 fi
40546 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
40547 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
40548      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
40549
40550 cat >>confdefs.h <<\_ACEOF
40551 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
40552 _ACEOF
40553
40554      fi
40555 else
40556   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
40557 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
40558 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
40559   $as_echo_n "(cached) " >&6
40560 else
40561   cat >conftest.$ac_ext <<_ACEOF
40562 /* confdefs.h.  */
40563 _ACEOF
40564 cat confdefs.h >>conftest.$ac_ext
40565 cat >>conftest.$ac_ext <<_ACEOF
40566 /* end confdefs.h.  */
40567 #include <sys/types.h>
40568         #include <sys/stat.h>
40569
40570 int
40571 main ()
40572 {
40573 static struct stat ac_aggr;
40574 if (ac_aggr.st_atimespec.tv_nsec)
40575 return 0;
40576   ;
40577   return 0;
40578 }
40579 _ACEOF
40580 rm -f conftest.$ac_objext
40581 if { (ac_try="$ac_compile"
40582 case "(($ac_try" in
40583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40584   *) ac_try_echo=$ac_try;;
40585 esac
40586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40587 $as_echo "$ac_try_echo") >&5
40588   (eval "$ac_compile") 2>conftest.er1
40589   ac_status=$?
40590   grep -v '^ *+' conftest.er1 >conftest.err
40591   rm -f conftest.er1
40592   cat conftest.err >&5
40593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); } && {
40595          test -z "$ac_c_werror_flag" ||
40596          test ! -s conftest.err
40597        } && test -s conftest.$ac_objext; then
40598   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40599 else
40600   $as_echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40602
40603         cat >conftest.$ac_ext <<_ACEOF
40604 /* confdefs.h.  */
40605 _ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h.  */
40609 #include <sys/types.h>
40610         #include <sys/stat.h>
40611
40612 int
40613 main ()
40614 {
40615 static struct stat ac_aggr;
40616 if (sizeof ac_aggr.st_atimespec.tv_nsec)
40617 return 0;
40618   ;
40619   return 0;
40620 }
40621 _ACEOF
40622 rm -f conftest.$ac_objext
40623 if { (ac_try="$ac_compile"
40624 case "(($ac_try" in
40625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40626   *) ac_try_echo=$ac_try;;
40627 esac
40628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40629 $as_echo "$ac_try_echo") >&5
40630   (eval "$ac_compile") 2>conftest.er1
40631   ac_status=$?
40632   grep -v '^ *+' conftest.er1 >conftest.err
40633   rm -f conftest.er1
40634   cat conftest.err >&5
40635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636   (exit $ac_status); } && {
40637          test -z "$ac_c_werror_flag" ||
40638          test ! -s conftest.err
40639        } && test -s conftest.$ac_objext; then
40640   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
40641 else
40642   $as_echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40644
40645         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
40646 fi
40647
40648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40649 fi
40650
40651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40652 fi
40653 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
40654 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
40655 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
40656
40657 cat >>confdefs.h <<_ACEOF
40658 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
40659 _ACEOF
40660
40661
40662 else
40663   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
40664 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
40665 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
40666   $as_echo_n "(cached) " >&6
40667 else
40668   cat >conftest.$ac_ext <<_ACEOF
40669 /* confdefs.h.  */
40670 _ACEOF
40671 cat confdefs.h >>conftest.$ac_ext
40672 cat >>conftest.$ac_ext <<_ACEOF
40673 /* end confdefs.h.  */
40674 #include <sys/types.h>
40675            #include <sys/stat.h>
40676
40677 int
40678 main ()
40679 {
40680 static struct stat ac_aggr;
40681 if (ac_aggr.st_atimensec)
40682 return 0;
40683   ;
40684   return 0;
40685 }
40686 _ACEOF
40687 rm -f conftest.$ac_objext
40688 if { (ac_try="$ac_compile"
40689 case "(($ac_try" in
40690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40691   *) ac_try_echo=$ac_try;;
40692 esac
40693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40694 $as_echo "$ac_try_echo") >&5
40695   (eval "$ac_compile") 2>conftest.er1
40696   ac_status=$?
40697   grep -v '^ *+' conftest.er1 >conftest.err
40698   rm -f conftest.er1
40699   cat conftest.err >&5
40700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701   (exit $ac_status); } && {
40702          test -z "$ac_c_werror_flag" ||
40703          test ! -s conftest.err
40704        } && test -s conftest.$ac_objext; then
40705   ac_cv_member_struct_stat_st_atimensec=yes
40706 else
40707   $as_echo "$as_me: failed program was:" >&5
40708 sed 's/^/| /' conftest.$ac_ext >&5
40709
40710         cat >conftest.$ac_ext <<_ACEOF
40711 /* confdefs.h.  */
40712 _ACEOF
40713 cat confdefs.h >>conftest.$ac_ext
40714 cat >>conftest.$ac_ext <<_ACEOF
40715 /* end confdefs.h.  */
40716 #include <sys/types.h>
40717            #include <sys/stat.h>
40718
40719 int
40720 main ()
40721 {
40722 static struct stat ac_aggr;
40723 if (sizeof ac_aggr.st_atimensec)
40724 return 0;
40725   ;
40726   return 0;
40727 }
40728 _ACEOF
40729 rm -f conftest.$ac_objext
40730 if { (ac_try="$ac_compile"
40731 case "(($ac_try" in
40732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40733   *) ac_try_echo=$ac_try;;
40734 esac
40735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40736 $as_echo "$ac_try_echo") >&5
40737   (eval "$ac_compile") 2>conftest.er1
40738   ac_status=$?
40739   grep -v '^ *+' conftest.er1 >conftest.err
40740   rm -f conftest.er1
40741   cat conftest.err >&5
40742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743   (exit $ac_status); } && {
40744          test -z "$ac_c_werror_flag" ||
40745          test ! -s conftest.err
40746        } && test -s conftest.$ac_objext; then
40747   ac_cv_member_struct_stat_st_atimensec=yes
40748 else
40749   $as_echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752         ac_cv_member_struct_stat_st_atimensec=no
40753 fi
40754
40755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40756 fi
40757
40758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40759 fi
40760 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
40761 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
40762 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
40763
40764 cat >>confdefs.h <<_ACEOF
40765 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
40766 _ACEOF
40767
40768
40769 else
40770   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
40771 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
40772 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
40773   $as_echo_n "(cached) " >&6
40774 else
40775   cat >conftest.$ac_ext <<_ACEOF
40776 /* confdefs.h.  */
40777 _ACEOF
40778 cat confdefs.h >>conftest.$ac_ext
40779 cat >>conftest.$ac_ext <<_ACEOF
40780 /* end confdefs.h.  */
40781 #include <sys/types.h>
40782               #include <sys/stat.h>
40783
40784 int
40785 main ()
40786 {
40787 static struct stat ac_aggr;
40788 if (ac_aggr.st_atim.st__tim.tv_nsec)
40789 return 0;
40790   ;
40791   return 0;
40792 }
40793 _ACEOF
40794 rm -f conftest.$ac_objext
40795 if { (ac_try="$ac_compile"
40796 case "(($ac_try" in
40797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40798   *) ac_try_echo=$ac_try;;
40799 esac
40800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40801 $as_echo "$ac_try_echo") >&5
40802   (eval "$ac_compile") 2>conftest.er1
40803   ac_status=$?
40804   grep -v '^ *+' conftest.er1 >conftest.err
40805   rm -f conftest.er1
40806   cat conftest.err >&5
40807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808   (exit $ac_status); } && {
40809          test -z "$ac_c_werror_flag" ||
40810          test ! -s conftest.err
40811        } && test -s conftest.$ac_objext; then
40812   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40813 else
40814   $as_echo "$as_me: failed program was:" >&5
40815 sed 's/^/| /' conftest.$ac_ext >&5
40816
40817         cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823 #include <sys/types.h>
40824               #include <sys/stat.h>
40825
40826 int
40827 main ()
40828 {
40829 static struct stat ac_aggr;
40830 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
40831 return 0;
40832   ;
40833   return 0;
40834 }
40835 _ACEOF
40836 rm -f conftest.$ac_objext
40837 if { (ac_try="$ac_compile"
40838 case "(($ac_try" in
40839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40840   *) ac_try_echo=$ac_try;;
40841 esac
40842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40843 $as_echo "$ac_try_echo") >&5
40844   (eval "$ac_compile") 2>conftest.er1
40845   ac_status=$?
40846   grep -v '^ *+' conftest.er1 >conftest.err
40847   rm -f conftest.er1
40848   cat conftest.err >&5
40849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); } && {
40851          test -z "$ac_c_werror_flag" ||
40852          test ! -s conftest.err
40853        } && test -s conftest.$ac_objext; then
40854   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
40855 else
40856   $as_echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40858
40859         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
40860 fi
40861
40862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40863 fi
40864
40865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40866 fi
40867 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
40868 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
40869 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
40870
40871 cat >>confdefs.h <<_ACEOF
40872 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
40873 _ACEOF
40874
40875
40876 fi
40877
40878 fi
40879
40880 fi
40881
40882 fi
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
40895 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
40896 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
40897   $as_echo_n "(cached) " >&6
40898 else
40899   cat >conftest.$ac_ext <<_ACEOF
40900 /* confdefs.h.  */
40901 _ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h.  */
40905 #include <sys/types.h>
40906      #include <sys/stat.h>
40907
40908 int
40909 main ()
40910 {
40911 static struct stat ac_aggr;
40912 if (ac_aggr.st_birthtimespec.tv_nsec)
40913 return 0;
40914   ;
40915   return 0;
40916 }
40917 _ACEOF
40918 rm -f conftest.$ac_objext
40919 if { (ac_try="$ac_compile"
40920 case "(($ac_try" in
40921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922   *) ac_try_echo=$ac_try;;
40923 esac
40924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40925 $as_echo "$ac_try_echo") >&5
40926   (eval "$ac_compile") 2>conftest.er1
40927   ac_status=$?
40928   grep -v '^ *+' conftest.er1 >conftest.err
40929   rm -f conftest.er1
40930   cat conftest.err >&5
40931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); } && {
40933          test -z "$ac_c_werror_flag" ||
40934          test ! -s conftest.err
40935        } && test -s conftest.$ac_objext; then
40936   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
40937 else
40938   $as_echo "$as_me: failed program was:" >&5
40939 sed 's/^/| /' conftest.$ac_ext >&5
40940
40941         cat >conftest.$ac_ext <<_ACEOF
40942 /* confdefs.h.  */
40943 _ACEOF
40944 cat confdefs.h >>conftest.$ac_ext
40945 cat >>conftest.$ac_ext <<_ACEOF
40946 /* end confdefs.h.  */
40947 #include <sys/types.h>
40948      #include <sys/stat.h>
40949
40950 int
40951 main ()
40952 {
40953 static struct stat ac_aggr;
40954 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
40955 return 0;
40956   ;
40957   return 0;
40958 }
40959 _ACEOF
40960 rm -f conftest.$ac_objext
40961 if { (ac_try="$ac_compile"
40962 case "(($ac_try" in
40963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40964   *) ac_try_echo=$ac_try;;
40965 esac
40966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40967 $as_echo "$ac_try_echo") >&5
40968   (eval "$ac_compile") 2>conftest.er1
40969   ac_status=$?
40970   grep -v '^ *+' conftest.er1 >conftest.err
40971   rm -f conftest.er1
40972   cat conftest.err >&5
40973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974   (exit $ac_status); } && {
40975          test -z "$ac_c_werror_flag" ||
40976          test ! -s conftest.err
40977        } && test -s conftest.$ac_objext; then
40978   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
40979 else
40980   $as_echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40982
40983         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
40984 fi
40985
40986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40987 fi
40988
40989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40990 fi
40991 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
40992 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
40993 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
40994
40995 cat >>confdefs.h <<_ACEOF
40996 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
40997 _ACEOF
40998
40999
41000 else
41001   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
41002 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
41003 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
41004   $as_echo_n "(cached) " >&6
41005 else
41006   cat >conftest.$ac_ext <<_ACEOF
41007 /* confdefs.h.  */
41008 _ACEOF
41009 cat confdefs.h >>conftest.$ac_ext
41010 cat >>conftest.$ac_ext <<_ACEOF
41011 /* end confdefs.h.  */
41012 #include <sys/types.h>
41013         #include <sys/stat.h>
41014
41015 int
41016 main ()
41017 {
41018 static struct stat ac_aggr;
41019 if (ac_aggr.st_birthtimensec)
41020 return 0;
41021   ;
41022   return 0;
41023 }
41024 _ACEOF
41025 rm -f conftest.$ac_objext
41026 if { (ac_try="$ac_compile"
41027 case "(($ac_try" in
41028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41029   *) ac_try_echo=$ac_try;;
41030 esac
41031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41032 $as_echo "$ac_try_echo") >&5
41033   (eval "$ac_compile") 2>conftest.er1
41034   ac_status=$?
41035   grep -v '^ *+' conftest.er1 >conftest.err
41036   rm -f conftest.er1
41037   cat conftest.err >&5
41038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41039   (exit $ac_status); } && {
41040          test -z "$ac_c_werror_flag" ||
41041          test ! -s conftest.err
41042        } && test -s conftest.$ac_objext; then
41043   ac_cv_member_struct_stat_st_birthtimensec=yes
41044 else
41045   $as_echo "$as_me: failed program was:" >&5
41046 sed 's/^/| /' conftest.$ac_ext >&5
41047
41048         cat >conftest.$ac_ext <<_ACEOF
41049 /* confdefs.h.  */
41050 _ACEOF
41051 cat confdefs.h >>conftest.$ac_ext
41052 cat >>conftest.$ac_ext <<_ACEOF
41053 /* end confdefs.h.  */
41054 #include <sys/types.h>
41055         #include <sys/stat.h>
41056
41057 int
41058 main ()
41059 {
41060 static struct stat ac_aggr;
41061 if (sizeof ac_aggr.st_birthtimensec)
41062 return 0;
41063   ;
41064   return 0;
41065 }
41066 _ACEOF
41067 rm -f conftest.$ac_objext
41068 if { (ac_try="$ac_compile"
41069 case "(($ac_try" in
41070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41071   *) ac_try_echo=$ac_try;;
41072 esac
41073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41074 $as_echo "$ac_try_echo") >&5
41075   (eval "$ac_compile") 2>conftest.er1
41076   ac_status=$?
41077   grep -v '^ *+' conftest.er1 >conftest.err
41078   rm -f conftest.er1
41079   cat conftest.err >&5
41080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081   (exit $ac_status); } && {
41082          test -z "$ac_c_werror_flag" ||
41083          test ! -s conftest.err
41084        } && test -s conftest.$ac_objext; then
41085   ac_cv_member_struct_stat_st_birthtimensec=yes
41086 else
41087   $as_echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41089
41090         ac_cv_member_struct_stat_st_birthtimensec=no
41091 fi
41092
41093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41094 fi
41095
41096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41097 fi
41098 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
41099 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
41100 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
41101
41102 cat >>confdefs.h <<_ACEOF
41103 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
41104 _ACEOF
41105
41106
41107 else
41108   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
41109 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
41110 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
41111   $as_echo_n "(cached) " >&6
41112 else
41113   cat >conftest.$ac_ext <<_ACEOF
41114 /* confdefs.h.  */
41115 _ACEOF
41116 cat confdefs.h >>conftest.$ac_ext
41117 cat >>conftest.$ac_ext <<_ACEOF
41118 /* end confdefs.h.  */
41119 #include <sys/types.h>
41120           #include <sys/stat.h>
41121
41122 int
41123 main ()
41124 {
41125 static struct stat ac_aggr;
41126 if (ac_aggr.st_birthtim.tv_nsec)
41127 return 0;
41128   ;
41129   return 0;
41130 }
41131 _ACEOF
41132 rm -f conftest.$ac_objext
41133 if { (ac_try="$ac_compile"
41134 case "(($ac_try" in
41135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41136   *) ac_try_echo=$ac_try;;
41137 esac
41138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41139 $as_echo "$ac_try_echo") >&5
41140   (eval "$ac_compile") 2>conftest.er1
41141   ac_status=$?
41142   grep -v '^ *+' conftest.er1 >conftest.err
41143   rm -f conftest.er1
41144   cat conftest.err >&5
41145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146   (exit $ac_status); } && {
41147          test -z "$ac_c_werror_flag" ||
41148          test ! -s conftest.err
41149        } && test -s conftest.$ac_objext; then
41150   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
41151 else
41152   $as_echo "$as_me: failed program was:" >&5
41153 sed 's/^/| /' conftest.$ac_ext >&5
41154
41155         cat >conftest.$ac_ext <<_ACEOF
41156 /* confdefs.h.  */
41157 _ACEOF
41158 cat confdefs.h >>conftest.$ac_ext
41159 cat >>conftest.$ac_ext <<_ACEOF
41160 /* end confdefs.h.  */
41161 #include <sys/types.h>
41162           #include <sys/stat.h>
41163
41164 int
41165 main ()
41166 {
41167 static struct stat ac_aggr;
41168 if (sizeof ac_aggr.st_birthtim.tv_nsec)
41169 return 0;
41170   ;
41171   return 0;
41172 }
41173 _ACEOF
41174 rm -f conftest.$ac_objext
41175 if { (ac_try="$ac_compile"
41176 case "(($ac_try" in
41177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41178   *) ac_try_echo=$ac_try;;
41179 esac
41180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41181 $as_echo "$ac_try_echo") >&5
41182   (eval "$ac_compile") 2>conftest.er1
41183   ac_status=$?
41184   grep -v '^ *+' conftest.er1 >conftest.err
41185   rm -f conftest.er1
41186   cat conftest.err >&5
41187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188   (exit $ac_status); } && {
41189          test -z "$ac_c_werror_flag" ||
41190          test ! -s conftest.err
41191        } && test -s conftest.$ac_objext; then
41192   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
41193 else
41194   $as_echo "$as_me: failed program was:" >&5
41195 sed 's/^/| /' conftest.$ac_ext >&5
41196
41197         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
41198 fi
41199
41200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41201 fi
41202
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41204 fi
41205 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
41206 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
41207 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
41208
41209 cat >>confdefs.h <<_ACEOF
41210 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
41211 _ACEOF
41212
41213
41214 fi
41215
41216 fi
41217
41218 fi
41219
41220
41221   # Code from module stdarg:
41222
41223   STDARG_H='';
41224   NEXT_STDARG_H='<stdarg.h>';
41225   { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
41226 $as_echo_n "checking for va_copy... " >&6; }
41227   if test "${gl_cv_func_va_copy+set}" = set; then
41228   $as_echo_n "(cached) " >&6
41229 else
41230
41231     cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237 #include <stdarg.h>
41238 int
41239 main ()
41240 {
41241
41242 #ifndef va_copy
41243 void (*func) (va_list, va_list) = va_copy;
41244 #endif
41245
41246   ;
41247   return 0;
41248 }
41249 _ACEOF
41250 rm -f conftest.$ac_objext
41251 if { (ac_try="$ac_compile"
41252 case "(($ac_try" in
41253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41254   *) ac_try_echo=$ac_try;;
41255 esac
41256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41257 $as_echo "$ac_try_echo") >&5
41258   (eval "$ac_compile") 2>conftest.er1
41259   ac_status=$?
41260   grep -v '^ *+' conftest.er1 >conftest.err
41261   rm -f conftest.er1
41262   cat conftest.err >&5
41263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); } && {
41265          test -z "$ac_c_werror_flag" ||
41266          test ! -s conftest.err
41267        } && test -s conftest.$ac_objext; then
41268   gl_cv_func_va_copy=yes
41269 else
41270   $as_echo "$as_me: failed program was:" >&5
41271 sed 's/^/| /' conftest.$ac_ext >&5
41272
41273         gl_cv_func_va_copy=no
41274 fi
41275
41276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41277 fi
41278
41279   { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
41280 $as_echo "$gl_cv_func_va_copy" >&6; }
41281   if test $gl_cv_func_va_copy = no; then
41282                                     cat >conftest.$ac_ext <<_ACEOF
41283 /* confdefs.h.  */
41284 _ACEOF
41285 cat confdefs.h >>conftest.$ac_ext
41286 cat >>conftest.$ac_ext <<_ACEOF
41287 /* end confdefs.h.  */
41288 #if defined _AIX && !defined __GNUC__
41289         AIX vaccine
41290        #endif
41291
41292 _ACEOF
41293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41294   $EGREP "vaccine" >/dev/null 2>&1; then
41295   gl_aixcc=yes
41296 else
41297   gl_aixcc=no
41298 fi
41299 rm -f conftest*
41300
41301     if test $gl_aixcc = yes; then
41302             STDARG_H=stdarg.h
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314      if test $gl_cv_have_include_next = yes; then
41315        gl_cv_next_stdarg_h='<'stdarg.h'>'
41316      else
41317        { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
41318 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
41319 if test "${gl_cv_next_stdarg_h+set}" = set; then
41320   $as_echo_n "(cached) " >&6
41321 else
41322
41323           if test $ac_cv_header_stdarg_h = yes; then
41324             cat >conftest.$ac_ext <<_ACEOF
41325 /* confdefs.h.  */
41326 _ACEOF
41327 cat confdefs.h >>conftest.$ac_ext
41328 cat >>conftest.$ac_ext <<_ACEOF
41329 /* end confdefs.h.  */
41330 #include <stdarg.h>
41331
41332 _ACEOF
41333                                                                                                 case "$host_os" in
41334               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41335               *)    gl_absname_cpp="$ac_cpp" ;;
41336             esac
41337                                                 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41338                sed -n '\#/stdarg.h#{
41339                  s#.*"\(.*/stdarg.h\)".*#\1#
41340                  s#^/[^/]#//&#
41341                  p
41342                  q
41343                }'`'"'
41344           else
41345             gl_cv_next_stdarg_h='<'stdarg.h'>'
41346           fi
41347
41348 fi
41349 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
41350 $as_echo "$gl_cv_next_stdarg_h" >&6; }
41351      fi
41352      NEXT_STDARG_H=$gl_cv_next_stdarg_h
41353
41354      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41355        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41356        gl_next_as_first_directive='<'stdarg.h'>'
41357      else
41358        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41359        gl_next_as_first_directive=$gl_cv_next_stdarg_h
41360      fi
41361      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
41362
41363
41364
41365             if test "$gl_cv_next_stdarg_h" = '""'; then
41366         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
41367         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
41368       fi
41369     else
41370
41371   saved_as_echo_n="$as_echo_n"
41372   as_echo_n=':'
41373   if test "${gl_cv_func___va_copy+set}" = set; then
41374   $as_echo_n "(cached) " >&6
41375 else
41376
41377         cat >conftest.$ac_ext <<_ACEOF
41378 /* confdefs.h.  */
41379 _ACEOF
41380 cat confdefs.h >>conftest.$ac_ext
41381 cat >>conftest.$ac_ext <<_ACEOF
41382 /* end confdefs.h.  */
41383 #include <stdarg.h>
41384 int
41385 main ()
41386 {
41387
41388 #ifndef __va_copy
41389 error, bail out
41390 #endif
41391
41392   ;
41393   return 0;
41394 }
41395 _ACEOF
41396 rm -f conftest.$ac_objext
41397 if { (ac_try="$ac_compile"
41398 case "(($ac_try" in
41399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41400   *) ac_try_echo=$ac_try;;
41401 esac
41402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41403 $as_echo "$ac_try_echo") >&5
41404   (eval "$ac_compile") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest.$ac_objext; then
41414   gl_cv_func___va_copy=yes
41415 else
41416   $as_echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41418
41419         gl_cv_func___va_copy=no
41420 fi
41421
41422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41423 fi
41424
41425   as_echo_n="$saved_as_echo_n"
41426
41427       if test $gl_cv_func___va_copy = yes; then
41428
41429 cat >>confdefs.h <<\_ACEOF
41430 #define va_copy __va_copy
41431 _ACEOF
41432
41433       else
41434
41435
41436
41437 cat >>confdefs.h <<\_ACEOF
41438 #define va_copy gl_va_copy
41439 _ACEOF
41440
41441       fi
41442     fi
41443   fi
41444
41445   # Code from module stdbool:
41446
41447
41448
41449   # Define two additional variables used in the Makefile substitution.
41450
41451   if test "$ac_cv_header_stdbool_h" = yes; then
41452     STDBOOL_H=''
41453   else
41454     STDBOOL_H='stdbool.h'
41455   fi
41456
41457
41458   if test "$ac_cv_type__Bool" = yes; then
41459     HAVE__BOOL=1
41460   else
41461     HAVE__BOOL=0
41462   fi
41463
41464
41465   # Code from module stddef:
41466
41467
41468
41469   if test $gt_cv_c_wchar_t = no; then
41470     HAVE_WCHAR_T=0
41471     STDDEF_H=stddef.h
41472   fi
41473   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
41474 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
41475 if test "${gl_cv_decl_null_works+set}" = set; then
41476   $as_echo_n "(cached) " >&6
41477 else
41478   cat >conftest.$ac_ext <<_ACEOF
41479 /* confdefs.h.  */
41480 _ACEOF
41481 cat confdefs.h >>conftest.$ac_ext
41482 cat >>conftest.$ac_ext <<_ACEOF
41483 /* end confdefs.h.  */
41484 #include <stddef.h>
41485       int test[2 * (sizeof NULL == sizeof (void *)) -1];
41486
41487 int
41488 main ()
41489 {
41490
41491   ;
41492   return 0;
41493 }
41494 _ACEOF
41495 rm -f conftest.$ac_objext
41496 if { (ac_try="$ac_compile"
41497 case "(($ac_try" in
41498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41499   *) ac_try_echo=$ac_try;;
41500 esac
41501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41502 $as_echo "$ac_try_echo") >&5
41503   (eval "$ac_compile") 2>conftest.er1
41504   ac_status=$?
41505   grep -v '^ *+' conftest.er1 >conftest.err
41506   rm -f conftest.er1
41507   cat conftest.err >&5
41508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509   (exit $ac_status); } && {
41510          test -z "$ac_c_werror_flag" ||
41511          test ! -s conftest.err
41512        } && test -s conftest.$ac_objext; then
41513   gl_cv_decl_null_works=yes
41514 else
41515   $as_echo "$as_me: failed program was:" >&5
41516 sed 's/^/| /' conftest.$ac_ext >&5
41517
41518         gl_cv_decl_null_works=no
41519 fi
41520
41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41522 fi
41523 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
41524 $as_echo "$gl_cv_decl_null_works" >&6; }
41525   if test $gl_cv_decl_null_works = no; then
41526     REPLACE_NULL=1
41527     STDDEF_H=stddef.h
41528   fi
41529   if test -n "$STDDEF_H"; then
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541      if test $gl_cv_have_include_next = yes; then
41542        gl_cv_next_stddef_h='<'stddef.h'>'
41543      else
41544        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
41545 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
41546 if test "${gl_cv_next_stddef_h+set}" = set; then
41547   $as_echo_n "(cached) " >&6
41548 else
41549
41550           if test $ac_cv_header_stddef_h = yes; then
41551             cat >conftest.$ac_ext <<_ACEOF
41552 /* confdefs.h.  */
41553 _ACEOF
41554 cat confdefs.h >>conftest.$ac_ext
41555 cat >>conftest.$ac_ext <<_ACEOF
41556 /* end confdefs.h.  */
41557 #include <stddef.h>
41558
41559 _ACEOF
41560                                                                                                 case "$host_os" in
41561               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41562               *)    gl_absname_cpp="$ac_cpp" ;;
41563             esac
41564                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41565                sed -n '\#/stddef.h#{
41566                  s#.*"\(.*/stddef.h\)".*#\1#
41567                  s#^/[^/]#//&#
41568                  p
41569                  q
41570                }'`'"'
41571           else
41572             gl_cv_next_stddef_h='<'stddef.h'>'
41573           fi
41574
41575 fi
41576 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
41577 $as_echo "$gl_cv_next_stddef_h" >&6; }
41578      fi
41579      NEXT_STDDEF_H=$gl_cv_next_stddef_h
41580
41581      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41582        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41583        gl_next_as_first_directive='<'stddef.h'>'
41584      else
41585        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41586        gl_next_as_first_directive=$gl_cv_next_stddef_h
41587      fi
41588      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
41589
41590
41591
41592   fi
41593
41594   # Code from module stdint:
41595
41596
41597
41598   if test $ac_cv_type_long_long_int = yes; then
41599     HAVE_LONG_LONG_INT=1
41600   else
41601     HAVE_LONG_LONG_INT=0
41602   fi
41603
41604
41605   if test $ac_cv_type_unsigned_long_long_int = yes; then
41606     HAVE_UNSIGNED_LONG_LONG_INT=1
41607   else
41608     HAVE_UNSIGNED_LONG_LONG_INT=0
41609   fi
41610
41611
41612       if test $ac_cv_header_inttypes_h = yes; then
41613     HAVE_INTTYPES_H=1
41614   else
41615     HAVE_INTTYPES_H=0
41616   fi
41617
41618
41619       if test $ac_cv_header_sys_types_h = yes; then
41620     HAVE_SYS_TYPES_H=1
41621   else
41622     HAVE_SYS_TYPES_H=0
41623   fi
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637      if test $gl_cv_have_include_next = yes; then
41638        gl_cv_next_stdint_h='<'stdint.h'>'
41639      else
41640        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
41641 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
41642 if test "${gl_cv_next_stdint_h+set}" = set; then
41643   $as_echo_n "(cached) " >&6
41644 else
41645
41646           if test $ac_cv_header_stdint_h = yes; then
41647             cat >conftest.$ac_ext <<_ACEOF
41648 /* confdefs.h.  */
41649 _ACEOF
41650 cat confdefs.h >>conftest.$ac_ext
41651 cat >>conftest.$ac_ext <<_ACEOF
41652 /* end confdefs.h.  */
41653 #include <stdint.h>
41654
41655 _ACEOF
41656                                                                                                 case "$host_os" in
41657               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41658               *)    gl_absname_cpp="$ac_cpp" ;;
41659             esac
41660                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41661                sed -n '\#/stdint.h#{
41662                  s#.*"\(.*/stdint.h\)".*#\1#
41663                  s#^/[^/]#//&#
41664                  p
41665                  q
41666                }'`'"'
41667           else
41668             gl_cv_next_stdint_h='<'stdint.h'>'
41669           fi
41670
41671 fi
41672 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
41673 $as_echo "$gl_cv_next_stdint_h" >&6; }
41674      fi
41675      NEXT_STDINT_H=$gl_cv_next_stdint_h
41676
41677      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41678        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41679        gl_next_as_first_directive='<'stdint.h'>'
41680      else
41681        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41682        gl_next_as_first_directive=$gl_cv_next_stdint_h
41683      fi
41684      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
41685
41686
41687
41688   if test $ac_cv_header_stdint_h = yes; then
41689     HAVE_STDINT_H=1
41690   else
41691     HAVE_STDINT_H=0
41692   fi
41693
41694
41695     if test $ac_cv_header_stdint_h = yes; then
41696     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
41697 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
41698 if test "${gl_cv_header_working_stdint_h+set}" = set; then
41699   $as_echo_n "(cached) " >&6
41700 else
41701   gl_cv_header_working_stdint_h=no
41702        cat >conftest.$ac_ext <<_ACEOF
41703
41704          /* confdefs.h.  */
41705 _ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h.  */
41709
41710 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
41711 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
41712 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
41713 #include <stdint.h>
41714 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
41715 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
41716 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
41717 #endif
41718
41719
41720   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41721      included before <wchar.h>.  */
41722   #include <stddef.h>
41723   #include <signal.h>
41724   #if HAVE_WCHAR_H
41725   # include <stdio.h>
41726   # include <time.h>
41727   # include <wchar.h>
41728   #endif
41729
41730
41731 #ifdef INT8_MAX
41732 int8_t a1 = INT8_MAX;
41733 int8_t a1min = INT8_MIN;
41734 #endif
41735 #ifdef INT16_MAX
41736 int16_t a2 = INT16_MAX;
41737 int16_t a2min = INT16_MIN;
41738 #endif
41739 #ifdef INT32_MAX
41740 int32_t a3 = INT32_MAX;
41741 int32_t a3min = INT32_MIN;
41742 #endif
41743 #ifdef INT64_MAX
41744 int64_t a4 = INT64_MAX;
41745 int64_t a4min = INT64_MIN;
41746 #endif
41747 #ifdef UINT8_MAX
41748 uint8_t b1 = UINT8_MAX;
41749 #else
41750 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
41751 #endif
41752 #ifdef UINT16_MAX
41753 uint16_t b2 = UINT16_MAX;
41754 #endif
41755 #ifdef UINT32_MAX
41756 uint32_t b3 = UINT32_MAX;
41757 #endif
41758 #ifdef UINT64_MAX
41759 uint64_t b4 = UINT64_MAX;
41760 #endif
41761 int_least8_t c1 = INT8_C (0x7f);
41762 int_least8_t c1max = INT_LEAST8_MAX;
41763 int_least8_t c1min = INT_LEAST8_MIN;
41764 int_least16_t c2 = INT16_C (0x7fff);
41765 int_least16_t c2max = INT_LEAST16_MAX;
41766 int_least16_t c2min = INT_LEAST16_MIN;
41767 int_least32_t c3 = INT32_C (0x7fffffff);
41768 int_least32_t c3max = INT_LEAST32_MAX;
41769 int_least32_t c3min = INT_LEAST32_MIN;
41770 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
41771 int_least64_t c4max = INT_LEAST64_MAX;
41772 int_least64_t c4min = INT_LEAST64_MIN;
41773 uint_least8_t d1 = UINT8_C (0xff);
41774 uint_least8_t d1max = UINT_LEAST8_MAX;
41775 uint_least16_t d2 = UINT16_C (0xffff);
41776 uint_least16_t d2max = UINT_LEAST16_MAX;
41777 uint_least32_t d3 = UINT32_C (0xffffffff);
41778 uint_least32_t d3max = UINT_LEAST32_MAX;
41779 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
41780 uint_least64_t d4max = UINT_LEAST64_MAX;
41781 int_fast8_t e1 = INT_FAST8_MAX;
41782 int_fast8_t e1min = INT_FAST8_MIN;
41783 int_fast16_t e2 = INT_FAST16_MAX;
41784 int_fast16_t e2min = INT_FAST16_MIN;
41785 int_fast32_t e3 = INT_FAST32_MAX;
41786 int_fast32_t e3min = INT_FAST32_MIN;
41787 int_fast64_t e4 = INT_FAST64_MAX;
41788 int_fast64_t e4min = INT_FAST64_MIN;
41789 uint_fast8_t f1 = UINT_FAST8_MAX;
41790 uint_fast16_t f2 = UINT_FAST16_MAX;
41791 uint_fast32_t f3 = UINT_FAST32_MAX;
41792 uint_fast64_t f4 = UINT_FAST64_MAX;
41793 #ifdef INTPTR_MAX
41794 intptr_t g = INTPTR_MAX;
41795 intptr_t gmin = INTPTR_MIN;
41796 #endif
41797 #ifdef UINTPTR_MAX
41798 uintptr_t h = UINTPTR_MAX;
41799 #endif
41800 intmax_t i = INTMAX_MAX;
41801 uintmax_t j = UINTMAX_MAX;
41802
41803 #include <limits.h> /* for CHAR_BIT */
41804 #define TYPE_MINIMUM(t) \
41805   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
41806 #define TYPE_MAXIMUM(t) \
41807   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
41808 struct s {
41809   int check_PTRDIFF:
41810       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
41811       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
41812       ? 1 : -1;
41813   /* Detect bug in FreeBSD 6.0 / ia64.  */
41814   int check_SIG_ATOMIC:
41815       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
41816       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
41817       ? 1 : -1;
41818   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
41819   int check_WCHAR:
41820       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
41821       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
41822       ? 1 : -1;
41823   /* Detect bug in mingw.  */
41824   int check_WINT:
41825       WINT_MIN == TYPE_MINIMUM (wint_t)
41826       && WINT_MAX == TYPE_MAXIMUM (wint_t)
41827       ? 1 : -1;
41828
41829   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
41830   int check_UINT8_C:
41831         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
41832   int check_UINT16_C:
41833         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
41834
41835   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
41836 #ifdef UINT8_MAX
41837   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
41838 #endif
41839 #ifdef UINT16_MAX
41840   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
41841 #endif
41842 #ifdef UINT32_MAX
41843   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
41844 #endif
41845 #ifdef UINT64_MAX
41846   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
41847 #endif
41848   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
41849   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
41850   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
41851   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
41852   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
41853   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
41854   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
41855   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
41856   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
41857   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
41858   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
41859 };
41860
41861 int
41862 main ()
41863 {
41864
41865   ;
41866   return 0;
41867 }
41868 _ACEOF
41869 rm -f conftest.$ac_objext
41870 if { (ac_try="$ac_compile"
41871 case "(($ac_try" in
41872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41873   *) ac_try_echo=$ac_try;;
41874 esac
41875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41876 $as_echo "$ac_try_echo") >&5
41877   (eval "$ac_compile") 2>conftest.er1
41878   ac_status=$?
41879   grep -v '^ *+' conftest.er1 >conftest.err
41880   rm -f conftest.er1
41881   cat conftest.err >&5
41882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883   (exit $ac_status); } && {
41884          test -z "$ac_c_werror_flag" ||
41885          test ! -s conftest.err
41886        } && test -s conftest.$ac_objext; then
41887                                                     if test "$cross_compiling" = yes; then
41888                  gl_cv_header_working_stdint_h=yes
41889
41890 else
41891   cat >conftest.$ac_ext <<_ACEOF
41892
41893             /* confdefs.h.  */
41894 _ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h.  */
41898
41899 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
41900 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
41901 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
41902 #include <stdint.h>
41903
41904
41905   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41906      included before <wchar.h>.  */
41907   #include <stddef.h>
41908   #include <signal.h>
41909   #if HAVE_WCHAR_H
41910   # include <stdio.h>
41911   # include <time.h>
41912   # include <wchar.h>
41913   #endif
41914
41915
41916 #include <stdio.h>
41917 #include <string.h>
41918 #define MVAL(macro) MVAL1(macro)
41919 #define MVAL1(expression) #expression
41920 static const char *macro_values[] =
41921   {
41922 #ifdef INT8_MAX
41923     MVAL (INT8_MAX),
41924 #endif
41925 #ifdef INT16_MAX
41926     MVAL (INT16_MAX),
41927 #endif
41928 #ifdef INT32_MAX
41929     MVAL (INT32_MAX),
41930 #endif
41931 #ifdef INT64_MAX
41932     MVAL (INT64_MAX),
41933 #endif
41934 #ifdef UINT8_MAX
41935     MVAL (UINT8_MAX),
41936 #endif
41937 #ifdef UINT16_MAX
41938     MVAL (UINT16_MAX),
41939 #endif
41940 #ifdef UINT32_MAX
41941     MVAL (UINT32_MAX),
41942 #endif
41943 #ifdef UINT64_MAX
41944     MVAL (UINT64_MAX),
41945 #endif
41946     NULL
41947   };
41948
41949 int
41950 main ()
41951 {
41952
41953   const char **mv;
41954   for (mv = macro_values; *mv != NULL; mv++)
41955     {
41956       const char *value = *mv;
41957       /* Test whether it looks like a cast expression.  */
41958       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
41959           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
41960           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
41961           || strncmp (value, "((int)"/*)*/, 6) == 0
41962           || strncmp (value, "((signed short)"/*)*/, 15) == 0
41963           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
41964         return 1;
41965     }
41966   return 0;
41967
41968   ;
41969   return 0;
41970 }
41971 _ACEOF
41972 rm -f conftest$ac_exeext
41973 if { (ac_try="$ac_link"
41974 case "(($ac_try" in
41975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41976   *) ac_try_echo=$ac_try;;
41977 esac
41978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41979 $as_echo "$ac_try_echo") >&5
41980   (eval "$ac_link") 2>&5
41981   ac_status=$?
41982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41984   { (case "(($ac_try" in
41985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986   *) ac_try_echo=$ac_try;;
41987 esac
41988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41989 $as_echo "$ac_try_echo") >&5
41990   (eval "$ac_try") 2>&5
41991   ac_status=$?
41992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); }; }; then
41994   gl_cv_header_working_stdint_h=yes
41995 else
41996   $as_echo "$as_me: program exited with status $ac_status" >&5
41997 $as_echo "$as_me: failed program was:" >&5
41998 sed 's/^/| /' conftest.$ac_ext >&5
41999
42000 fi
42001 rm -rf conftest.dSYM
42002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42003 fi
42004
42005
42006
42007 else
42008   $as_echo "$as_me: failed program was:" >&5
42009 sed 's/^/| /' conftest.$ac_ext >&5
42010
42011
42012 fi
42013
42014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42015
42016 fi
42017 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
42018 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
42019   fi
42020   if test "$gl_cv_header_working_stdint_h" = yes; then
42021     STDINT_H=
42022   else
42023
42024
42025 for ac_header in sys/inttypes.h sys/bitypes.h
42026 do
42027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42029   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42030 $as_echo_n "checking for $ac_header... " >&6; }
42031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42032   $as_echo_n "(cached) " >&6
42033 fi
42034 ac_res=`eval 'as_val=${'$as_ac_Header'}
42035                  $as_echo "$as_val"'`
42036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42037 $as_echo "$ac_res" >&6; }
42038 else
42039   # Is the header compilable?
42040 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42041 $as_echo_n "checking $ac_header usability... " >&6; }
42042 cat >conftest.$ac_ext <<_ACEOF
42043 /* confdefs.h.  */
42044 _ACEOF
42045 cat confdefs.h >>conftest.$ac_ext
42046 cat >>conftest.$ac_ext <<_ACEOF
42047 /* end confdefs.h.  */
42048 $ac_includes_default
42049 #include <$ac_header>
42050 _ACEOF
42051 rm -f conftest.$ac_objext
42052 if { (ac_try="$ac_compile"
42053 case "(($ac_try" in
42054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42055   *) ac_try_echo=$ac_try;;
42056 esac
42057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42058 $as_echo "$ac_try_echo") >&5
42059   (eval "$ac_compile") 2>conftest.er1
42060   ac_status=$?
42061   grep -v '^ *+' conftest.er1 >conftest.err
42062   rm -f conftest.er1
42063   cat conftest.err >&5
42064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065   (exit $ac_status); } && {
42066          test -z "$ac_c_werror_flag" ||
42067          test ! -s conftest.err
42068        } && test -s conftest.$ac_objext; then
42069   ac_header_compiler=yes
42070 else
42071   $as_echo "$as_me: failed program was:" >&5
42072 sed 's/^/| /' conftest.$ac_ext >&5
42073
42074         ac_header_compiler=no
42075 fi
42076
42077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42079 $as_echo "$ac_header_compiler" >&6; }
42080
42081 # Is the header present?
42082 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42083 $as_echo_n "checking $ac_header presence... " >&6; }
42084 cat >conftest.$ac_ext <<_ACEOF
42085 /* confdefs.h.  */
42086 _ACEOF
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h.  */
42090 #include <$ac_header>
42091 _ACEOF
42092 if { (ac_try="$ac_cpp conftest.$ac_ext"
42093 case "(($ac_try" in
42094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42095   *) ac_try_echo=$ac_try;;
42096 esac
42097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42098 $as_echo "$ac_try_echo") >&5
42099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42100   ac_status=$?
42101   grep -v '^ *+' conftest.er1 >conftest.err
42102   rm -f conftest.er1
42103   cat conftest.err >&5
42104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); } >/dev/null && {
42106          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42107          test ! -s conftest.err
42108        }; then
42109   ac_header_preproc=yes
42110 else
42111   $as_echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42113
42114   ac_header_preproc=no
42115 fi
42116
42117 rm -f conftest.err conftest.$ac_ext
42118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42119 $as_echo "$ac_header_preproc" >&6; }
42120
42121 # So?  What about this header?
42122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42123   yes:no: )
42124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42125 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42128     ac_header_preproc=yes
42129     ;;
42130   no:yes:* )
42131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42132 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42134 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42136 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42138 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42142 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42143     ( cat <<\_ASBOX
42144 ## ------------------------------ ##
42145 ## Report this to bug-tar@gnu.org ##
42146 ## ------------------------------ ##
42147 _ASBOX
42148      ) | sed "s/^/$as_me: WARNING:     /" >&2
42149     ;;
42150 esac
42151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42152 $as_echo_n "checking for $ac_header... " >&6; }
42153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42154   $as_echo_n "(cached) " >&6
42155 else
42156   eval "$as_ac_Header=\$ac_header_preproc"
42157 fi
42158 ac_res=`eval 'as_val=${'$as_ac_Header'}
42159                  $as_echo "$as_val"'`
42160                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42161 $as_echo "$ac_res" >&6; }
42162
42163 fi
42164 as_val=`eval 'as_val=${'$as_ac_Header'}
42165                  $as_echo "$as_val"'`
42166    if test "x$as_val" = x""yes; then
42167   cat >>confdefs.h <<_ACEOF
42168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42169 _ACEOF
42170
42171 fi
42172
42173 done
42174
42175     if test $ac_cv_header_sys_inttypes_h = yes; then
42176       HAVE_SYS_INTTYPES_H=1
42177     else
42178       HAVE_SYS_INTTYPES_H=0
42179     fi
42180
42181     if test $ac_cv_header_sys_bitypes_h = yes; then
42182       HAVE_SYS_BITYPES_H=1
42183     else
42184       HAVE_SYS_BITYPES_H=0
42185     fi
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197   if test $APPLE_UNIVERSAL_BUILD = 0; then
42198
42199
42200
42201
42202   for gltype in ptrdiff_t size_t ; do
42203     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
42204 $as_echo_n "checking for bit size of $gltype... " >&6; }
42205 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
42206   $as_echo_n "(cached) " >&6
42207 else
42208   if test "$cross_compiling" = yes; then
42209   # Depending upon the size, compute the lo and hi bounds.
42210 cat >conftest.$ac_ext <<_ACEOF
42211 /* confdefs.h.  */
42212 _ACEOF
42213 cat confdefs.h >>conftest.$ac_ext
42214 cat >>conftest.$ac_ext <<_ACEOF
42215 /* end confdefs.h.  */
42216
42217   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42218      included before <wchar.h>.  */
42219   #include <stddef.h>
42220   #include <signal.h>
42221   #if HAVE_WCHAR_H
42222   # include <stdio.h>
42223   # include <time.h>
42224   # include <wchar.h>
42225   #endif
42226
42227 #include <limits.h>
42228 int
42229 main ()
42230 {
42231 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
42232 test_array [0] = 0
42233
42234   ;
42235   return 0;
42236 }
42237 _ACEOF
42238 rm -f conftest.$ac_objext
42239 if { (ac_try="$ac_compile"
42240 case "(($ac_try" in
42241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42242   *) ac_try_echo=$ac_try;;
42243 esac
42244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42245 $as_echo "$ac_try_echo") >&5
42246   (eval "$ac_compile") 2>conftest.er1
42247   ac_status=$?
42248   grep -v '^ *+' conftest.er1 >conftest.err
42249   rm -f conftest.er1
42250   cat conftest.err >&5
42251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42252   (exit $ac_status); } && {
42253          test -z "$ac_c_werror_flag" ||
42254          test ! -s conftest.err
42255        } && test -s conftest.$ac_objext; then
42256   ac_lo=0 ac_mid=0
42257   while :; do
42258     cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h.  */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h.  */
42264
42265   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42266      included before <wchar.h>.  */
42267   #include <stddef.h>
42268   #include <signal.h>
42269   #if HAVE_WCHAR_H
42270   # include <stdio.h>
42271   # include <time.h>
42272   # include <wchar.h>
42273   #endif
42274
42275 #include <limits.h>
42276 int
42277 main ()
42278 {
42279 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42280 test_array [0] = 0
42281
42282   ;
42283   return 0;
42284 }
42285 _ACEOF
42286 rm -f conftest.$ac_objext
42287 if { (ac_try="$ac_compile"
42288 case "(($ac_try" in
42289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42290   *) ac_try_echo=$ac_try;;
42291 esac
42292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42293 $as_echo "$ac_try_echo") >&5
42294   (eval "$ac_compile") 2>conftest.er1
42295   ac_status=$?
42296   grep -v '^ *+' conftest.er1 >conftest.err
42297   rm -f conftest.er1
42298   cat conftest.err >&5
42299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300   (exit $ac_status); } && {
42301          test -z "$ac_c_werror_flag" ||
42302          test ! -s conftest.err
42303        } && test -s conftest.$ac_objext; then
42304   ac_hi=$ac_mid; break
42305 else
42306   $as_echo "$as_me: failed program was:" >&5
42307 sed 's/^/| /' conftest.$ac_ext >&5
42308
42309         ac_lo=`expr $ac_mid + 1`
42310                         if test $ac_lo -le $ac_mid; then
42311                           ac_lo= ac_hi=
42312                           break
42313                         fi
42314                         ac_mid=`expr 2 '*' $ac_mid + 1`
42315 fi
42316
42317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42318   done
42319 else
42320   $as_echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323         cat >conftest.$ac_ext <<_ACEOF
42324 /* confdefs.h.  */
42325 _ACEOF
42326 cat confdefs.h >>conftest.$ac_ext
42327 cat >>conftest.$ac_ext <<_ACEOF
42328 /* end confdefs.h.  */
42329
42330   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42331      included before <wchar.h>.  */
42332   #include <stddef.h>
42333   #include <signal.h>
42334   #if HAVE_WCHAR_H
42335   # include <stdio.h>
42336   # include <time.h>
42337   # include <wchar.h>
42338   #endif
42339
42340 #include <limits.h>
42341 int
42342 main ()
42343 {
42344 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
42345 test_array [0] = 0
42346
42347   ;
42348   return 0;
42349 }
42350 _ACEOF
42351 rm -f conftest.$ac_objext
42352 if { (ac_try="$ac_compile"
42353 case "(($ac_try" in
42354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42355   *) ac_try_echo=$ac_try;;
42356 esac
42357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42358 $as_echo "$ac_try_echo") >&5
42359   (eval "$ac_compile") 2>conftest.er1
42360   ac_status=$?
42361   grep -v '^ *+' conftest.er1 >conftest.err
42362   rm -f conftest.er1
42363   cat conftest.err >&5
42364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365   (exit $ac_status); } && {
42366          test -z "$ac_c_werror_flag" ||
42367          test ! -s conftest.err
42368        } && test -s conftest.$ac_objext; then
42369   ac_hi=-1 ac_mid=-1
42370   while :; do
42371     cat >conftest.$ac_ext <<_ACEOF
42372 /* confdefs.h.  */
42373 _ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h.  */
42377
42378   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42379      included before <wchar.h>.  */
42380   #include <stddef.h>
42381   #include <signal.h>
42382   #if HAVE_WCHAR_H
42383   # include <stdio.h>
42384   # include <time.h>
42385   # include <wchar.h>
42386   #endif
42387
42388 #include <limits.h>
42389 int
42390 main ()
42391 {
42392 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
42393 test_array [0] = 0
42394
42395   ;
42396   return 0;
42397 }
42398 _ACEOF
42399 rm -f conftest.$ac_objext
42400 if { (ac_try="$ac_compile"
42401 case "(($ac_try" in
42402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42403   *) ac_try_echo=$ac_try;;
42404 esac
42405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42406 $as_echo "$ac_try_echo") >&5
42407   (eval "$ac_compile") 2>conftest.er1
42408   ac_status=$?
42409   grep -v '^ *+' conftest.er1 >conftest.err
42410   rm -f conftest.er1
42411   cat conftest.err >&5
42412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42413   (exit $ac_status); } && {
42414          test -z "$ac_c_werror_flag" ||
42415          test ! -s conftest.err
42416        } && test -s conftest.$ac_objext; then
42417   ac_lo=$ac_mid; break
42418 else
42419   $as_echo "$as_me: failed program was:" >&5
42420 sed 's/^/| /' conftest.$ac_ext >&5
42421
42422         ac_hi=`expr '(' $ac_mid ')' - 1`
42423                         if test $ac_mid -le $ac_hi; then
42424                           ac_lo= ac_hi=
42425                           break
42426                         fi
42427                         ac_mid=`expr 2 '*' $ac_mid`
42428 fi
42429
42430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42431   done
42432 else
42433   $as_echo "$as_me: failed program was:" >&5
42434 sed 's/^/| /' conftest.$ac_ext >&5
42435
42436         ac_lo= ac_hi=
42437 fi
42438
42439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42440 fi
42441
42442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42443 # Binary search between lo and hi bounds.
42444 while test "x$ac_lo" != "x$ac_hi"; do
42445   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42446   cat >conftest.$ac_ext <<_ACEOF
42447 /* confdefs.h.  */
42448 _ACEOF
42449 cat confdefs.h >>conftest.$ac_ext
42450 cat >>conftest.$ac_ext <<_ACEOF
42451 /* end confdefs.h.  */
42452
42453   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42454      included before <wchar.h>.  */
42455   #include <stddef.h>
42456   #include <signal.h>
42457   #if HAVE_WCHAR_H
42458   # include <stdio.h>
42459   # include <time.h>
42460   # include <wchar.h>
42461   #endif
42462
42463 #include <limits.h>
42464 int
42465 main ()
42466 {
42467 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42468 test_array [0] = 0
42469
42470   ;
42471   return 0;
42472 }
42473 _ACEOF
42474 rm -f conftest.$ac_objext
42475 if { (ac_try="$ac_compile"
42476 case "(($ac_try" in
42477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42478   *) ac_try_echo=$ac_try;;
42479 esac
42480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42481 $as_echo "$ac_try_echo") >&5
42482   (eval "$ac_compile") 2>conftest.er1
42483   ac_status=$?
42484   grep -v '^ *+' conftest.er1 >conftest.err
42485   rm -f conftest.er1
42486   cat conftest.err >&5
42487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488   (exit $ac_status); } && {
42489          test -z "$ac_c_werror_flag" ||
42490          test ! -s conftest.err
42491        } && test -s conftest.$ac_objext; then
42492   ac_hi=$ac_mid
42493 else
42494   $as_echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42496
42497         ac_lo=`expr '(' $ac_mid ')' + 1`
42498 fi
42499
42500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42501 done
42502 case $ac_lo in
42503 ?*) result=$ac_lo;;
42504 '') result=unknown ;;
42505 esac
42506 else
42507   cat >conftest.$ac_ext <<_ACEOF
42508 /* confdefs.h.  */
42509 _ACEOF
42510 cat confdefs.h >>conftest.$ac_ext
42511 cat >>conftest.$ac_ext <<_ACEOF
42512 /* end confdefs.h.  */
42513
42514   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42515      included before <wchar.h>.  */
42516   #include <stddef.h>
42517   #include <signal.h>
42518   #if HAVE_WCHAR_H
42519   # include <stdio.h>
42520   # include <time.h>
42521   # include <wchar.h>
42522   #endif
42523
42524 #include <limits.h>
42525 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
42526 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
42527 #include <stdio.h>
42528 #include <stdlib.h>
42529 int
42530 main ()
42531 {
42532
42533   FILE *f = fopen ("conftest.val", "w");
42534   if (! f)
42535     return 1;
42536   if ((sizeof ($gltype) * CHAR_BIT) < 0)
42537     {
42538       long int i = longval ();
42539       if (i != (sizeof ($gltype) * CHAR_BIT))
42540         return 1;
42541       fprintf (f, "%ld", i);
42542     }
42543   else
42544     {
42545       unsigned long int i = ulongval ();
42546       if (i != (sizeof ($gltype) * CHAR_BIT))
42547         return 1;
42548       fprintf (f, "%lu", i);
42549     }
42550   /* Do not output a trailing newline, as this causes \r\n confusion
42551      on some platforms.  */
42552   return ferror (f) || fclose (f) != 0;
42553
42554   ;
42555   return 0;
42556 }
42557 _ACEOF
42558 rm -f conftest$ac_exeext
42559 if { (ac_try="$ac_link"
42560 case "(($ac_try" in
42561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42562   *) ac_try_echo=$ac_try;;
42563 esac
42564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42565 $as_echo "$ac_try_echo") >&5
42566   (eval "$ac_link") 2>&5
42567   ac_status=$?
42568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42570   { (case "(($ac_try" in
42571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42572   *) ac_try_echo=$ac_try;;
42573 esac
42574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42575 $as_echo "$ac_try_echo") >&5
42576   (eval "$ac_try") 2>&5
42577   ac_status=$?
42578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579   (exit $ac_status); }; }; then
42580   result=`cat conftest.val`
42581 else
42582   $as_echo "$as_me: program exited with status $ac_status" >&5
42583 $as_echo "$as_me: failed program was:" >&5
42584 sed 's/^/| /' conftest.$ac_ext >&5
42585
42586 ( exit $ac_status )
42587 result=unknown
42588 fi
42589 rm -rf conftest.dSYM
42590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42591 fi
42592 rm -f conftest.val
42593        eval gl_cv_bitsizeof_${gltype}=\$result
42594
42595 fi
42596 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
42597                  $as_echo "$as_val"'`
42598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42599 $as_echo "$ac_res" >&6; }
42600     eval result=\$gl_cv_bitsizeof_${gltype}
42601     if test $result = unknown; then
42602                                                 result=0
42603     fi
42604     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
42605     cat >>confdefs.h <<_ACEOF
42606 #define BITSIZEOF_${GLTYPE} $result
42607 _ACEOF
42608
42609     eval BITSIZEOF_${GLTYPE}=\$result
42610   done
42611
42612
42613   fi
42614
42615
42616
42617
42618
42619   for gltype in sig_atomic_t wchar_t wint_t ; do
42620     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
42621 $as_echo_n "checking for bit size of $gltype... " >&6; }
42622 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
42623   $as_echo_n "(cached) " >&6
42624 else
42625   if test "$cross_compiling" = yes; then
42626   # Depending upon the size, compute the lo and hi bounds.
42627 cat >conftest.$ac_ext <<_ACEOF
42628 /* confdefs.h.  */
42629 _ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h.  */
42633
42634   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42635      included before <wchar.h>.  */
42636   #include <stddef.h>
42637   #include <signal.h>
42638   #if HAVE_WCHAR_H
42639   # include <stdio.h>
42640   # include <time.h>
42641   # include <wchar.h>
42642   #endif
42643
42644 #include <limits.h>
42645 int
42646 main ()
42647 {
42648 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
42649 test_array [0] = 0
42650
42651   ;
42652   return 0;
42653 }
42654 _ACEOF
42655 rm -f conftest.$ac_objext
42656 if { (ac_try="$ac_compile"
42657 case "(($ac_try" in
42658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42659   *) ac_try_echo=$ac_try;;
42660 esac
42661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42662 $as_echo "$ac_try_echo") >&5
42663   (eval "$ac_compile") 2>conftest.er1
42664   ac_status=$?
42665   grep -v '^ *+' conftest.er1 >conftest.err
42666   rm -f conftest.er1
42667   cat conftest.err >&5
42668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669   (exit $ac_status); } && {
42670          test -z "$ac_c_werror_flag" ||
42671          test ! -s conftest.err
42672        } && test -s conftest.$ac_objext; then
42673   ac_lo=0 ac_mid=0
42674   while :; do
42675     cat >conftest.$ac_ext <<_ACEOF
42676 /* confdefs.h.  */
42677 _ACEOF
42678 cat confdefs.h >>conftest.$ac_ext
42679 cat >>conftest.$ac_ext <<_ACEOF
42680 /* end confdefs.h.  */
42681
42682   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42683      included before <wchar.h>.  */
42684   #include <stddef.h>
42685   #include <signal.h>
42686   #if HAVE_WCHAR_H
42687   # include <stdio.h>
42688   # include <time.h>
42689   # include <wchar.h>
42690   #endif
42691
42692 #include <limits.h>
42693 int
42694 main ()
42695 {
42696 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42697 test_array [0] = 0
42698
42699   ;
42700   return 0;
42701 }
42702 _ACEOF
42703 rm -f conftest.$ac_objext
42704 if { (ac_try="$ac_compile"
42705 case "(($ac_try" in
42706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42707   *) ac_try_echo=$ac_try;;
42708 esac
42709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42710 $as_echo "$ac_try_echo") >&5
42711   (eval "$ac_compile") 2>conftest.er1
42712   ac_status=$?
42713   grep -v '^ *+' conftest.er1 >conftest.err
42714   rm -f conftest.er1
42715   cat conftest.err >&5
42716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717   (exit $ac_status); } && {
42718          test -z "$ac_c_werror_flag" ||
42719          test ! -s conftest.err
42720        } && test -s conftest.$ac_objext; then
42721   ac_hi=$ac_mid; break
42722 else
42723   $as_echo "$as_me: failed program was:" >&5
42724 sed 's/^/| /' conftest.$ac_ext >&5
42725
42726         ac_lo=`expr $ac_mid + 1`
42727                         if test $ac_lo -le $ac_mid; then
42728                           ac_lo= ac_hi=
42729                           break
42730                         fi
42731                         ac_mid=`expr 2 '*' $ac_mid + 1`
42732 fi
42733
42734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42735   done
42736 else
42737   $as_echo "$as_me: failed program was:" >&5
42738 sed 's/^/| /' conftest.$ac_ext >&5
42739
42740         cat >conftest.$ac_ext <<_ACEOF
42741 /* confdefs.h.  */
42742 _ACEOF
42743 cat confdefs.h >>conftest.$ac_ext
42744 cat >>conftest.$ac_ext <<_ACEOF
42745 /* end confdefs.h.  */
42746
42747   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42748      included before <wchar.h>.  */
42749   #include <stddef.h>
42750   #include <signal.h>
42751   #if HAVE_WCHAR_H
42752   # include <stdio.h>
42753   # include <time.h>
42754   # include <wchar.h>
42755   #endif
42756
42757 #include <limits.h>
42758 int
42759 main ()
42760 {
42761 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
42762 test_array [0] = 0
42763
42764   ;
42765   return 0;
42766 }
42767 _ACEOF
42768 rm -f conftest.$ac_objext
42769 if { (ac_try="$ac_compile"
42770 case "(($ac_try" in
42771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42772   *) ac_try_echo=$ac_try;;
42773 esac
42774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42775 $as_echo "$ac_try_echo") >&5
42776   (eval "$ac_compile") 2>conftest.er1
42777   ac_status=$?
42778   grep -v '^ *+' conftest.er1 >conftest.err
42779   rm -f conftest.er1
42780   cat conftest.err >&5
42781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782   (exit $ac_status); } && {
42783          test -z "$ac_c_werror_flag" ||
42784          test ! -s conftest.err
42785        } && test -s conftest.$ac_objext; then
42786   ac_hi=-1 ac_mid=-1
42787   while :; do
42788     cat >conftest.$ac_ext <<_ACEOF
42789 /* confdefs.h.  */
42790 _ACEOF
42791 cat confdefs.h >>conftest.$ac_ext
42792 cat >>conftest.$ac_ext <<_ACEOF
42793 /* end confdefs.h.  */
42794
42795   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42796      included before <wchar.h>.  */
42797   #include <stddef.h>
42798   #include <signal.h>
42799   #if HAVE_WCHAR_H
42800   # include <stdio.h>
42801   # include <time.h>
42802   # include <wchar.h>
42803   #endif
42804
42805 #include <limits.h>
42806 int
42807 main ()
42808 {
42809 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
42810 test_array [0] = 0
42811
42812   ;
42813   return 0;
42814 }
42815 _ACEOF
42816 rm -f conftest.$ac_objext
42817 if { (ac_try="$ac_compile"
42818 case "(($ac_try" in
42819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42820   *) ac_try_echo=$ac_try;;
42821 esac
42822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42823 $as_echo "$ac_try_echo") >&5
42824   (eval "$ac_compile") 2>conftest.er1
42825   ac_status=$?
42826   grep -v '^ *+' conftest.er1 >conftest.err
42827   rm -f conftest.er1
42828   cat conftest.err >&5
42829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830   (exit $ac_status); } && {
42831          test -z "$ac_c_werror_flag" ||
42832          test ! -s conftest.err
42833        } && test -s conftest.$ac_objext; then
42834   ac_lo=$ac_mid; break
42835 else
42836   $as_echo "$as_me: failed program was:" >&5
42837 sed 's/^/| /' conftest.$ac_ext >&5
42838
42839         ac_hi=`expr '(' $ac_mid ')' - 1`
42840                         if test $ac_mid -le $ac_hi; then
42841                           ac_lo= ac_hi=
42842                           break
42843                         fi
42844                         ac_mid=`expr 2 '*' $ac_mid`
42845 fi
42846
42847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42848   done
42849 else
42850   $as_echo "$as_me: failed program was:" >&5
42851 sed 's/^/| /' conftest.$ac_ext >&5
42852
42853         ac_lo= ac_hi=
42854 fi
42855
42856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42857 fi
42858
42859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42860 # Binary search between lo and hi bounds.
42861 while test "x$ac_lo" != "x$ac_hi"; do
42862   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42863   cat >conftest.$ac_ext <<_ACEOF
42864 /* confdefs.h.  */
42865 _ACEOF
42866 cat confdefs.h >>conftest.$ac_ext
42867 cat >>conftest.$ac_ext <<_ACEOF
42868 /* end confdefs.h.  */
42869
42870   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42871      included before <wchar.h>.  */
42872   #include <stddef.h>
42873   #include <signal.h>
42874   #if HAVE_WCHAR_H
42875   # include <stdio.h>
42876   # include <time.h>
42877   # include <wchar.h>
42878   #endif
42879
42880 #include <limits.h>
42881 int
42882 main ()
42883 {
42884 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
42885 test_array [0] = 0
42886
42887   ;
42888   return 0;
42889 }
42890 _ACEOF
42891 rm -f conftest.$ac_objext
42892 if { (ac_try="$ac_compile"
42893 case "(($ac_try" in
42894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42895   *) ac_try_echo=$ac_try;;
42896 esac
42897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42898 $as_echo "$ac_try_echo") >&5
42899   (eval "$ac_compile") 2>conftest.er1
42900   ac_status=$?
42901   grep -v '^ *+' conftest.er1 >conftest.err
42902   rm -f conftest.er1
42903   cat conftest.err >&5
42904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42905   (exit $ac_status); } && {
42906          test -z "$ac_c_werror_flag" ||
42907          test ! -s conftest.err
42908        } && test -s conftest.$ac_objext; then
42909   ac_hi=$ac_mid
42910 else
42911   $as_echo "$as_me: failed program was:" >&5
42912 sed 's/^/| /' conftest.$ac_ext >&5
42913
42914         ac_lo=`expr '(' $ac_mid ')' + 1`
42915 fi
42916
42917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42918 done
42919 case $ac_lo in
42920 ?*) result=$ac_lo;;
42921 '') result=unknown ;;
42922 esac
42923 else
42924   cat >conftest.$ac_ext <<_ACEOF
42925 /* confdefs.h.  */
42926 _ACEOF
42927 cat confdefs.h >>conftest.$ac_ext
42928 cat >>conftest.$ac_ext <<_ACEOF
42929 /* end confdefs.h.  */
42930
42931   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
42932      included before <wchar.h>.  */
42933   #include <stddef.h>
42934   #include <signal.h>
42935   #if HAVE_WCHAR_H
42936   # include <stdio.h>
42937   # include <time.h>
42938   # include <wchar.h>
42939   #endif
42940
42941 #include <limits.h>
42942 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
42943 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
42944 #include <stdio.h>
42945 #include <stdlib.h>
42946 int
42947 main ()
42948 {
42949
42950   FILE *f = fopen ("conftest.val", "w");
42951   if (! f)
42952     return 1;
42953   if ((sizeof ($gltype) * CHAR_BIT) < 0)
42954     {
42955       long int i = longval ();
42956       if (i != (sizeof ($gltype) * CHAR_BIT))
42957         return 1;
42958       fprintf (f, "%ld", i);
42959     }
42960   else
42961     {
42962       unsigned long int i = ulongval ();
42963       if (i != (sizeof ($gltype) * CHAR_BIT))
42964         return 1;
42965       fprintf (f, "%lu", i);
42966     }
42967   /* Do not output a trailing newline, as this causes \r\n confusion
42968      on some platforms.  */
42969   return ferror (f) || fclose (f) != 0;
42970
42971   ;
42972   return 0;
42973 }
42974 _ACEOF
42975 rm -f conftest$ac_exeext
42976 if { (ac_try="$ac_link"
42977 case "(($ac_try" in
42978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42979   *) ac_try_echo=$ac_try;;
42980 esac
42981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42982 $as_echo "$ac_try_echo") >&5
42983   (eval "$ac_link") 2>&5
42984   ac_status=$?
42985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42987   { (case "(($ac_try" in
42988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42989   *) ac_try_echo=$ac_try;;
42990 esac
42991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42992 $as_echo "$ac_try_echo") >&5
42993   (eval "$ac_try") 2>&5
42994   ac_status=$?
42995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42996   (exit $ac_status); }; }; then
42997   result=`cat conftest.val`
42998 else
42999   $as_echo "$as_me: program exited with status $ac_status" >&5
43000 $as_echo "$as_me: failed program was:" >&5
43001 sed 's/^/| /' conftest.$ac_ext >&5
43002
43003 ( exit $ac_status )
43004 result=unknown
43005 fi
43006 rm -rf conftest.dSYM
43007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43008 fi
43009 rm -f conftest.val
43010        eval gl_cv_bitsizeof_${gltype}=\$result
43011
43012 fi
43013 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
43014                  $as_echo "$as_val"'`
43015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43016 $as_echo "$ac_res" >&6; }
43017     eval result=\$gl_cv_bitsizeof_${gltype}
43018     if test $result = unknown; then
43019                                                 result=0
43020     fi
43021     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43022     cat >>confdefs.h <<_ACEOF
43023 #define BITSIZEOF_${GLTYPE} $result
43024 _ACEOF
43025
43026     eval BITSIZEOF_${GLTYPE}=\$result
43027   done
43028
43029
43030
43031
43032
43033
43034
43035   for gltype in sig_atomic_t wchar_t wint_t ; do
43036     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
43037 $as_echo_n "checking whether $gltype is signed... " >&6; }
43038 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
43039   $as_echo_n "(cached) " >&6
43040 else
43041   cat >conftest.$ac_ext <<_ACEOF
43042 /* confdefs.h.  */
43043 _ACEOF
43044 cat confdefs.h >>conftest.$ac_ext
43045 cat >>conftest.$ac_ext <<_ACEOF
43046 /* end confdefs.h.  */
43047
43048   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43049      included before <wchar.h>.  */
43050   #include <stddef.h>
43051   #include <signal.h>
43052   #if HAVE_WCHAR_H
43053   # include <stdio.h>
43054   # include <time.h>
43055   # include <wchar.h>
43056   #endif
43057
43058             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
43059 int
43060 main ()
43061 {
43062
43063   ;
43064   return 0;
43065 }
43066 _ACEOF
43067 rm -f conftest.$ac_objext
43068 if { (ac_try="$ac_compile"
43069 case "(($ac_try" in
43070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43071   *) ac_try_echo=$ac_try;;
43072 esac
43073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43074 $as_echo "$ac_try_echo") >&5
43075   (eval "$ac_compile") 2>conftest.er1
43076   ac_status=$?
43077   grep -v '^ *+' conftest.er1 >conftest.err
43078   rm -f conftest.er1
43079   cat conftest.err >&5
43080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); } && {
43082          test -z "$ac_c_werror_flag" ||
43083          test ! -s conftest.err
43084        } && test -s conftest.$ac_objext; then
43085   result=yes
43086 else
43087   $as_echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43089
43090         result=no
43091 fi
43092
43093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43094        eval gl_cv_type_${gltype}_signed=\$result
43095
43096 fi
43097 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
43098                  $as_echo "$as_val"'`
43099                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43100 $as_echo "$ac_res" >&6; }
43101     eval result=\$gl_cv_type_${gltype}_signed
43102     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43103     if test "$result" = yes; then
43104       cat >>confdefs.h <<_ACEOF
43105 #define HAVE_SIGNED_${GLTYPE} 1
43106 _ACEOF
43107
43108       eval HAVE_SIGNED_${GLTYPE}=1
43109     else
43110       eval HAVE_SIGNED_${GLTYPE}=0
43111     fi
43112   done
43113
43114
43115   gl_cv_type_ptrdiff_t_signed=yes
43116   gl_cv_type_size_t_signed=no
43117   if test $APPLE_UNIVERSAL_BUILD = 0; then
43118
43119
43120
43121
43122   for gltype in ptrdiff_t size_t ; do
43123     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
43124 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
43125 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
43126   $as_echo_n "(cached) " >&6
43127 else
43128   eval gl_cv_type_${gltype}_suffix=no
43129        eval result=\$gl_cv_type_${gltype}_signed
43130        if test "$result" = yes; then
43131          glsufu=
43132        else
43133          glsufu=u
43134        fi
43135        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
43136          case $glsuf in
43137            '')  gltype1='int';;
43138            l)   gltype1='long int';;
43139            ll)  gltype1='long long int';;
43140            i64) gltype1='__int64';;
43141            u)   gltype1='unsigned int';;
43142            ul)  gltype1='unsigned long int';;
43143            ull) gltype1='unsigned long long int';;
43144            ui64)gltype1='unsigned __int64';;
43145          esac
43146          cat >conftest.$ac_ext <<_ACEOF
43147 /* confdefs.h.  */
43148 _ACEOF
43149 cat confdefs.h >>conftest.$ac_ext
43150 cat >>conftest.$ac_ext <<_ACEOF
43151 /* end confdefs.h.  */
43152
43153   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43154      included before <wchar.h>.  */
43155   #include <stddef.h>
43156   #include <signal.h>
43157   #if HAVE_WCHAR_H
43158   # include <stdio.h>
43159   # include <time.h>
43160   # include <wchar.h>
43161   #endif
43162
43163               extern $gltype foo;
43164               extern $gltype1 foo;
43165 int
43166 main ()
43167 {
43168
43169   ;
43170   return 0;
43171 }
43172 _ACEOF
43173 rm -f conftest.$ac_objext
43174 if { (ac_try="$ac_compile"
43175 case "(($ac_try" in
43176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43177   *) ac_try_echo=$ac_try;;
43178 esac
43179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43180 $as_echo "$ac_try_echo") >&5
43181   (eval "$ac_compile") 2>conftest.er1
43182   ac_status=$?
43183   grep -v '^ *+' conftest.er1 >conftest.err
43184   rm -f conftest.er1
43185   cat conftest.err >&5
43186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187   (exit $ac_status); } && {
43188          test -z "$ac_c_werror_flag" ||
43189          test ! -s conftest.err
43190        } && test -s conftest.$ac_objext; then
43191   eval gl_cv_type_${gltype}_suffix=\$glsuf
43192 else
43193   $as_echo "$as_me: failed program was:" >&5
43194 sed 's/^/| /' conftest.$ac_ext >&5
43195
43196
43197 fi
43198
43199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43200          eval result=\$gl_cv_type_${gltype}_suffix
43201          test "$result" != no && break
43202        done
43203 fi
43204 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
43205                  $as_echo "$as_val"'`
43206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43207 $as_echo "$ac_res" >&6; }
43208     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43209     eval result=\$gl_cv_type_${gltype}_suffix
43210     test "$result" = no && result=
43211     eval ${GLTYPE}_SUFFIX=\$result
43212     cat >>confdefs.h <<_ACEOF
43213 #define ${GLTYPE}_SUFFIX $result
43214 _ACEOF
43215
43216   done
43217
43218
43219   fi
43220
43221
43222
43223
43224
43225   for gltype in sig_atomic_t wchar_t wint_t ; do
43226     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
43227 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
43228 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
43229   $as_echo_n "(cached) " >&6
43230 else
43231   eval gl_cv_type_${gltype}_suffix=no
43232        eval result=\$gl_cv_type_${gltype}_signed
43233        if test "$result" = yes; then
43234          glsufu=
43235        else
43236          glsufu=u
43237        fi
43238        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
43239          case $glsuf in
43240            '')  gltype1='int';;
43241            l)   gltype1='long int';;
43242            ll)  gltype1='long long int';;
43243            i64) gltype1='__int64';;
43244            u)   gltype1='unsigned int';;
43245            ul)  gltype1='unsigned long int';;
43246            ull) gltype1='unsigned long long int';;
43247            ui64)gltype1='unsigned __int64';;
43248          esac
43249          cat >conftest.$ac_ext <<_ACEOF
43250 /* confdefs.h.  */
43251 _ACEOF
43252 cat confdefs.h >>conftest.$ac_ext
43253 cat >>conftest.$ac_ext <<_ACEOF
43254 /* end confdefs.h.  */
43255
43256   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43257      included before <wchar.h>.  */
43258   #include <stddef.h>
43259   #include <signal.h>
43260   #if HAVE_WCHAR_H
43261   # include <stdio.h>
43262   # include <time.h>
43263   # include <wchar.h>
43264   #endif
43265
43266               extern $gltype foo;
43267               extern $gltype1 foo;
43268 int
43269 main ()
43270 {
43271
43272   ;
43273   return 0;
43274 }
43275 _ACEOF
43276 rm -f conftest.$ac_objext
43277 if { (ac_try="$ac_compile"
43278 case "(($ac_try" in
43279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43280   *) ac_try_echo=$ac_try;;
43281 esac
43282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43283 $as_echo "$ac_try_echo") >&5
43284   (eval "$ac_compile") 2>conftest.er1
43285   ac_status=$?
43286   grep -v '^ *+' conftest.er1 >conftest.err
43287   rm -f conftest.er1
43288   cat conftest.err >&5
43289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43290   (exit $ac_status); } && {
43291          test -z "$ac_c_werror_flag" ||
43292          test ! -s conftest.err
43293        } && test -s conftest.$ac_objext; then
43294   eval gl_cv_type_${gltype}_suffix=\$glsuf
43295 else
43296   $as_echo "$as_me: failed program was:" >&5
43297 sed 's/^/| /' conftest.$ac_ext >&5
43298
43299
43300 fi
43301
43302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43303          eval result=\$gl_cv_type_${gltype}_suffix
43304          test "$result" != no && break
43305        done
43306 fi
43307 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
43308                  $as_echo "$as_val"'`
43309                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43310 $as_echo "$ac_res" >&6; }
43311     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
43312     eval result=\$gl_cv_type_${gltype}_suffix
43313     test "$result" = no && result=
43314     eval ${GLTYPE}_SUFFIX=\$result
43315     cat >>confdefs.h <<_ACEOF
43316 #define ${GLTYPE}_SUFFIX $result
43317 _ACEOF
43318
43319   done
43320
43321
43322
43323     STDINT_H=stdint.h
43324   fi
43325
43326
43327   # Code from module stdio:
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343      if test $gl_cv_have_include_next = yes; then
43344        gl_cv_next_stdio_h='<'stdio.h'>'
43345      else
43346        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
43347 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
43348 if test "${gl_cv_next_stdio_h+set}" = set; then
43349   $as_echo_n "(cached) " >&6
43350 else
43351
43352           if test $ac_cv_header_stdio_h = yes; then
43353             cat >conftest.$ac_ext <<_ACEOF
43354 /* confdefs.h.  */
43355 _ACEOF
43356 cat confdefs.h >>conftest.$ac_ext
43357 cat >>conftest.$ac_ext <<_ACEOF
43358 /* end confdefs.h.  */
43359 #include <stdio.h>
43360
43361 _ACEOF
43362                                                                                                 case "$host_os" in
43363               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43364               *)    gl_absname_cpp="$ac_cpp" ;;
43365             esac
43366                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43367                sed -n '\#/stdio.h#{
43368                  s#.*"\(.*/stdio.h\)".*#\1#
43369                  s#^/[^/]#//&#
43370                  p
43371                  q
43372                }'`'"'
43373           else
43374             gl_cv_next_stdio_h='<'stdio.h'>'
43375           fi
43376
43377 fi
43378 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
43379 $as_echo "$gl_cv_next_stdio_h" >&6; }
43380      fi
43381      NEXT_STDIO_H=$gl_cv_next_stdio_h
43382
43383      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43384        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43385        gl_next_as_first_directive='<'stdio.h'>'
43386      else
43387        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43388        gl_next_as_first_directive=$gl_cv_next_stdio_h
43389      fi
43390      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
43391
43392
43393
43394       GNULIB_FPRINTF=1
43395   GNULIB_PRINTF=1
43396   GNULIB_VFPRINTF=1
43397   GNULIB_VPRINTF=1
43398   GNULIB_FPUTC=1
43399   GNULIB_PUTC=1
43400   GNULIB_PUTCHAR=1
43401   GNULIB_FPUTS=1
43402   GNULIB_PUTS=1
43403   GNULIB_FWRITE=1
43404
43405
43406
43407
43408
43409
43410
43411
43412
43413
43414
43415
43416
43417
43418
43419   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
43420     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43421     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43422 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43423 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43424   $as_echo_n "(cached) " >&6
43425 else
43426   cat >conftest.$ac_ext <<_ACEOF
43427 /* confdefs.h.  */
43428 _ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h.  */
43432 #include <stdio.h>
43433
43434 int
43435 main ()
43436 {
43437 #undef $gl_func
43438   (void) $gl_func;
43439   ;
43440   return 0;
43441 }
43442 _ACEOF
43443 rm -f conftest.$ac_objext
43444 if { (ac_try="$ac_compile"
43445 case "(($ac_try" in
43446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43447   *) ac_try_echo=$ac_try;;
43448 esac
43449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43450 $as_echo "$ac_try_echo") >&5
43451   (eval "$ac_compile") 2>conftest.er1
43452   ac_status=$?
43453   grep -v '^ *+' conftest.er1 >conftest.err
43454   rm -f conftest.er1
43455   cat conftest.err >&5
43456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43457   (exit $ac_status); } && {
43458          test -z "$ac_c_werror_flag" ||
43459          test ! -s conftest.err
43460        } && test -s conftest.$ac_objext; then
43461   eval "$as_gl_Symbol=yes"
43462 else
43463   $as_echo "$as_me: failed program was:" >&5
43464 sed 's/^/| /' conftest.$ac_ext >&5
43465
43466         eval "$as_gl_Symbol=no"
43467 fi
43468
43469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43470 fi
43471 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43472                  $as_echo "$as_val"'`
43473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43474 $as_echo "$ac_res" >&6; }
43475      as_val=`eval 'as_val=${'$as_gl_Symbol'}
43476                  $as_echo "$as_val"'`
43477    if test "x$as_val" = x""yes; then
43478   cat >>confdefs.h <<_ACEOF
43479 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43480 _ACEOF
43481
43482                      eval ac_cv_have_decl_$gl_func=yes
43483 fi
43484
43485       done
43486
43487
43488   # Code from module stdlib:
43489
43490
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502      if test $gl_cv_have_include_next = yes; then
43503        gl_cv_next_stdlib_h='<'stdlib.h'>'
43504      else
43505        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
43506 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
43507 if test "${gl_cv_next_stdlib_h+set}" = set; then
43508   $as_echo_n "(cached) " >&6
43509 else
43510
43511           if test $ac_cv_header_stdlib_h = yes; then
43512             cat >conftest.$ac_ext <<_ACEOF
43513 /* confdefs.h.  */
43514 _ACEOF
43515 cat confdefs.h >>conftest.$ac_ext
43516 cat >>conftest.$ac_ext <<_ACEOF
43517 /* end confdefs.h.  */
43518 #include <stdlib.h>
43519
43520 _ACEOF
43521                                                                                                 case "$host_os" in
43522               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43523               *)    gl_absname_cpp="$ac_cpp" ;;
43524             esac
43525                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43526                sed -n '\#/stdlib.h#{
43527                  s#.*"\(.*/stdlib.h\)".*#\1#
43528                  s#^/[^/]#//&#
43529                  p
43530                  q
43531                }'`'"'
43532           else
43533             gl_cv_next_stdlib_h='<'stdlib.h'>'
43534           fi
43535
43536 fi
43537 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
43538 $as_echo "$gl_cv_next_stdlib_h" >&6; }
43539      fi
43540      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
43541
43542      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43543        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43544        gl_next_as_first_directive='<'stdlib.h'>'
43545      else
43546        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43547        gl_next_as_first_directive=$gl_cv_next_stdlib_h
43548      fi
43549      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
43550
43551
43552
43553
43554 for ac_header in random.h
43555 do
43556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43557 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43558 $as_echo_n "checking for $ac_header... " >&6; }
43559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43560   $as_echo_n "(cached) " >&6
43561 else
43562   cat >conftest.$ac_ext <<_ACEOF
43563 /* confdefs.h.  */
43564 _ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h.  */
43568 $ac_includes_default
43569
43570 #include <$ac_header>
43571 _ACEOF
43572 rm -f conftest.$ac_objext
43573 if { (ac_try="$ac_compile"
43574 case "(($ac_try" in
43575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43576   *) ac_try_echo=$ac_try;;
43577 esac
43578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43579 $as_echo "$ac_try_echo") >&5
43580   (eval "$ac_compile") 2>conftest.er1
43581   ac_status=$?
43582   grep -v '^ *+' conftest.er1 >conftest.err
43583   rm -f conftest.er1
43584   cat conftest.err >&5
43585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586   (exit $ac_status); } && {
43587          test -z "$ac_c_werror_flag" ||
43588          test ! -s conftest.err
43589        } && test -s conftest.$ac_objext; then
43590   eval "$as_ac_Header=yes"
43591 else
43592   $as_echo "$as_me: failed program was:" >&5
43593 sed 's/^/| /' conftest.$ac_ext >&5
43594
43595         eval "$as_ac_Header=no"
43596 fi
43597
43598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43599 fi
43600 ac_res=`eval 'as_val=${'$as_ac_Header'}
43601                  $as_echo "$as_val"'`
43602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43603 $as_echo "$ac_res" >&6; }
43604 as_val=`eval 'as_val=${'$as_ac_Header'}
43605                  $as_echo "$as_val"'`
43606    if test "x$as_val" = x""yes; then
43607   cat >>confdefs.h <<_ACEOF
43608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43609 _ACEOF
43610
43611 fi
43612
43613 done
43614
43615   if test $ac_cv_header_random_h = yes; then
43616     HAVE_RANDOM_H=1
43617   else
43618     HAVE_RANDOM_H=0
43619   fi
43620
43621   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
43622 $as_echo_n "checking for struct random_data... " >&6; }
43623 if test "${ac_cv_type_struct_random_data+set}" = set; then
43624   $as_echo_n "(cached) " >&6
43625 else
43626   ac_cv_type_struct_random_data=no
43627 cat >conftest.$ac_ext <<_ACEOF
43628 /* confdefs.h.  */
43629 _ACEOF
43630 cat confdefs.h >>conftest.$ac_ext
43631 cat >>conftest.$ac_ext <<_ACEOF
43632 /* end confdefs.h.  */
43633 #include <stdlib.h>
43634       #if HAVE_RANDOM_H
43635       # include <random.h>
43636       #endif
43637
43638
43639 int
43640 main ()
43641 {
43642 if (sizeof (struct random_data))
43643        return 0;
43644   ;
43645   return 0;
43646 }
43647 _ACEOF
43648 rm -f conftest.$ac_objext
43649 if { (ac_try="$ac_compile"
43650 case "(($ac_try" in
43651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652   *) ac_try_echo=$ac_try;;
43653 esac
43654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43655 $as_echo "$ac_try_echo") >&5
43656   (eval "$ac_compile") 2>conftest.er1
43657   ac_status=$?
43658   grep -v '^ *+' conftest.er1 >conftest.err
43659   rm -f conftest.er1
43660   cat conftest.err >&5
43661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662   (exit $ac_status); } && {
43663          test -z "$ac_c_werror_flag" ||
43664          test ! -s conftest.err
43665        } && test -s conftest.$ac_objext; then
43666   cat >conftest.$ac_ext <<_ACEOF
43667 /* confdefs.h.  */
43668 _ACEOF
43669 cat confdefs.h >>conftest.$ac_ext
43670 cat >>conftest.$ac_ext <<_ACEOF
43671 /* end confdefs.h.  */
43672 #include <stdlib.h>
43673       #if HAVE_RANDOM_H
43674       # include <random.h>
43675       #endif
43676
43677
43678 int
43679 main ()
43680 {
43681 if (sizeof ((struct random_data)))
43682           return 0;
43683   ;
43684   return 0;
43685 }
43686 _ACEOF
43687 rm -f conftest.$ac_objext
43688 if { (ac_try="$ac_compile"
43689 case "(($ac_try" in
43690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691   *) ac_try_echo=$ac_try;;
43692 esac
43693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43694 $as_echo "$ac_try_echo") >&5
43695   (eval "$ac_compile") 2>conftest.er1
43696   ac_status=$?
43697   grep -v '^ *+' conftest.er1 >conftest.err
43698   rm -f conftest.er1
43699   cat conftest.err >&5
43700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701   (exit $ac_status); } && {
43702          test -z "$ac_c_werror_flag" ||
43703          test ! -s conftest.err
43704        } && test -s conftest.$ac_objext; then
43705   :
43706 else
43707   $as_echo "$as_me: failed program was:" >&5
43708 sed 's/^/| /' conftest.$ac_ext >&5
43709
43710         ac_cv_type_struct_random_data=yes
43711 fi
43712
43713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43714 else
43715   $as_echo "$as_me: failed program was:" >&5
43716 sed 's/^/| /' conftest.$ac_ext >&5
43717
43718
43719 fi
43720
43721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43722 fi
43723 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
43724 $as_echo "$ac_cv_type_struct_random_data" >&6; }
43725 if test "x$ac_cv_type_struct_random_data" = x""yes; then
43726
43727 cat >>confdefs.h <<_ACEOF
43728 #define HAVE_STRUCT_RANDOM_DATA 1
43729 _ACEOF
43730
43731
43732 else
43733   HAVE_STRUCT_RANDOM_DATA=0
43734 fi
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762   for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
43763     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43764     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43765 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43766 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43767   $as_echo_n "(cached) " >&6
43768 else
43769   cat >conftest.$ac_ext <<_ACEOF
43770 /* confdefs.h.  */
43771 _ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h.  */
43775 #include <stdlib.h>
43776 #if HAVE_SYS_LOADAVG_H
43777 # include <sys/loadavg.h>
43778 #endif
43779 #if HAVE_RANDOM_H
43780 # include <random.h>
43781 #endif
43782
43783 int
43784 main ()
43785 {
43786 #undef $gl_func
43787   (void) $gl_func;
43788   ;
43789   return 0;
43790 }
43791 _ACEOF
43792 rm -f conftest.$ac_objext
43793 if { (ac_try="$ac_compile"
43794 case "(($ac_try" in
43795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43796   *) ac_try_echo=$ac_try;;
43797 esac
43798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43799 $as_echo "$ac_try_echo") >&5
43800   (eval "$ac_compile") 2>conftest.er1
43801   ac_status=$?
43802   grep -v '^ *+' conftest.er1 >conftest.err
43803   rm -f conftest.er1
43804   cat conftest.err >&5
43805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806   (exit $ac_status); } && {
43807          test -z "$ac_c_werror_flag" ||
43808          test ! -s conftest.err
43809        } && test -s conftest.$ac_objext; then
43810   eval "$as_gl_Symbol=yes"
43811 else
43812   $as_echo "$as_me: failed program was:" >&5
43813 sed 's/^/| /' conftest.$ac_ext >&5
43814
43815         eval "$as_gl_Symbol=no"
43816 fi
43817
43818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43819 fi
43820 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43821                  $as_echo "$as_val"'`
43822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43823 $as_echo "$ac_res" >&6; }
43824      as_val=`eval 'as_val=${'$as_gl_Symbol'}
43825                  $as_echo "$as_val"'`
43826    if test "x$as_val" = x""yes; then
43827   cat >>confdefs.h <<_ACEOF
43828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43829 _ACEOF
43830
43831                      eval ac_cv_have_decl_$gl_func=yes
43832 fi
43833
43834       done
43835
43836
43837   # Code from module stpcpy:
43838
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851
43852
43853 for ac_func in stpcpy
43854 do
43855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43857 $as_echo_n "checking for $ac_func... " >&6; }
43858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43859   $as_echo_n "(cached) " >&6
43860 else
43861   cat >conftest.$ac_ext <<_ACEOF
43862 /* confdefs.h.  */
43863 _ACEOF
43864 cat confdefs.h >>conftest.$ac_ext
43865 cat >>conftest.$ac_ext <<_ACEOF
43866 /* end confdefs.h.  */
43867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43869 #define $ac_func innocuous_$ac_func
43870
43871 /* System header to define __stub macros and hopefully few prototypes,
43872     which can conflict with char $ac_func (); below.
43873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43874     <limits.h> exists even on freestanding compilers.  */
43875
43876 #ifdef __STDC__
43877 # include <limits.h>
43878 #else
43879 # include <assert.h>
43880 #endif
43881
43882 #undef $ac_func
43883
43884 /* Override any GCC internal prototype to avoid an error.
43885    Use char because int might match the return type of a GCC
43886    builtin and then its argument prototype would still apply.  */
43887 #ifdef __cplusplus
43888 extern "C"
43889 #endif
43890 char $ac_func ();
43891 /* The GNU C library defines this for functions which it implements
43892     to always fail with ENOSYS.  Some functions are actually named
43893     something starting with __ and the normal name is an alias.  */
43894 #if defined __stub_$ac_func || defined __stub___$ac_func
43895 choke me
43896 #endif
43897
43898 int
43899 main ()
43900 {
43901 return $ac_func ();
43902   ;
43903   return 0;
43904 }
43905 _ACEOF
43906 rm -f conftest.$ac_objext conftest$ac_exeext
43907 if { (ac_try="$ac_link"
43908 case "(($ac_try" in
43909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43910   *) ac_try_echo=$ac_try;;
43911 esac
43912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43913 $as_echo "$ac_try_echo") >&5
43914   (eval "$ac_link") 2>conftest.er1
43915   ac_status=$?
43916   grep -v '^ *+' conftest.er1 >conftest.err
43917   rm -f conftest.er1
43918   cat conftest.err >&5
43919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920   (exit $ac_status); } && {
43921          test -z "$ac_c_werror_flag" ||
43922          test ! -s conftest.err
43923        } && test -s conftest$ac_exeext && {
43924          test "$cross_compiling" = yes ||
43925          $as_test_x conftest$ac_exeext
43926        }; then
43927   eval "$as_ac_var=yes"
43928 else
43929   $as_echo "$as_me: failed program was:" >&5
43930 sed 's/^/| /' conftest.$ac_ext >&5
43931
43932         eval "$as_ac_var=no"
43933 fi
43934
43935 rm -rf conftest.dSYM
43936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43937       conftest$ac_exeext conftest.$ac_ext
43938 fi
43939 ac_res=`eval 'as_val=${'$as_ac_var'}
43940                  $as_echo "$as_val"'`
43941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43942 $as_echo "$ac_res" >&6; }
43943 as_val=`eval 'as_val=${'$as_ac_var'}
43944                  $as_echo "$as_val"'`
43945    if test "x$as_val" = x""yes; then
43946   cat >>confdefs.h <<_ACEOF
43947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43948 _ACEOF
43949
43950 else
43951
43952     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
43953
43954 fi
43955 done
43956
43957
43958   if test $ac_cv_func_stpcpy = no; then
43959     HAVE_STPCPY=0
43960
43961   :
43962
43963   fi
43964
43965
43966
43967
43968   GNULIB_STPCPY=1
43969
43970
43971
43972 cat >>confdefs.h <<\_ACEOF
43973 #define GNULIB_TEST_STPCPY 1
43974 _ACEOF
43975
43976
43977
43978   # Code from module strcase:
43979
43980
43981
43982
43983
43984
43985
43986
43987
43988
43989
43990
43991 for ac_func in strcasecmp
43992 do
43993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43995 $as_echo_n "checking for $ac_func... " >&6; }
43996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43997   $as_echo_n "(cached) " >&6
43998 else
43999   cat >conftest.$ac_ext <<_ACEOF
44000 /* confdefs.h.  */
44001 _ACEOF
44002 cat confdefs.h >>conftest.$ac_ext
44003 cat >>conftest.$ac_ext <<_ACEOF
44004 /* end confdefs.h.  */
44005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44007 #define $ac_func innocuous_$ac_func
44008
44009 /* System header to define __stub macros and hopefully few prototypes,
44010     which can conflict with char $ac_func (); below.
44011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44012     <limits.h> exists even on freestanding compilers.  */
44013
44014 #ifdef __STDC__
44015 # include <limits.h>
44016 #else
44017 # include <assert.h>
44018 #endif
44019
44020 #undef $ac_func
44021
44022 /* Override any GCC internal prototype to avoid an error.
44023    Use char because int might match the return type of a GCC
44024    builtin and then its argument prototype would still apply.  */
44025 #ifdef __cplusplus
44026 extern "C"
44027 #endif
44028 char $ac_func ();
44029 /* The GNU C library defines this for functions which it implements
44030     to always fail with ENOSYS.  Some functions are actually named
44031     something starting with __ and the normal name is an alias.  */
44032 #if defined __stub_$ac_func || defined __stub___$ac_func
44033 choke me
44034 #endif
44035
44036 int
44037 main ()
44038 {
44039 return $ac_func ();
44040   ;
44041   return 0;
44042 }
44043 _ACEOF
44044 rm -f conftest.$ac_objext conftest$ac_exeext
44045 if { (ac_try="$ac_link"
44046 case "(($ac_try" in
44047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44048   *) ac_try_echo=$ac_try;;
44049 esac
44050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44051 $as_echo "$ac_try_echo") >&5
44052   (eval "$ac_link") 2>conftest.er1
44053   ac_status=$?
44054   grep -v '^ *+' conftest.er1 >conftest.err
44055   rm -f conftest.er1
44056   cat conftest.err >&5
44057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058   (exit $ac_status); } && {
44059          test -z "$ac_c_werror_flag" ||
44060          test ! -s conftest.err
44061        } && test -s conftest$ac_exeext && {
44062          test "$cross_compiling" = yes ||
44063          $as_test_x conftest$ac_exeext
44064        }; then
44065   eval "$as_ac_var=yes"
44066 else
44067   $as_echo "$as_me: failed program was:" >&5
44068 sed 's/^/| /' conftest.$ac_ext >&5
44069
44070         eval "$as_ac_var=no"
44071 fi
44072
44073 rm -rf conftest.dSYM
44074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44075       conftest$ac_exeext conftest.$ac_ext
44076 fi
44077 ac_res=`eval 'as_val=${'$as_ac_var'}
44078                  $as_echo "$as_val"'`
44079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44080 $as_echo "$ac_res" >&6; }
44081 as_val=`eval 'as_val=${'$as_ac_var'}
44082                  $as_echo "$as_val"'`
44083    if test "x$as_val" = x""yes; then
44084   cat >>confdefs.h <<_ACEOF
44085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44086 _ACEOF
44087
44088 else
44089
44090     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44091
44092 fi
44093 done
44094
44095
44096   if test $ac_cv_func_strcasecmp = no; then
44097     HAVE_STRCASECMP=0
44098
44099   :
44100
44101   fi
44102
44103
44104
44105
44106
44107
44108
44109
44110
44111
44112
44113
44114 for ac_func in strncasecmp
44115 do
44116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44118 $as_echo_n "checking for $ac_func... " >&6; }
44119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44120   $as_echo_n "(cached) " >&6
44121 else
44122   cat >conftest.$ac_ext <<_ACEOF
44123 /* confdefs.h.  */
44124 _ACEOF
44125 cat confdefs.h >>conftest.$ac_ext
44126 cat >>conftest.$ac_ext <<_ACEOF
44127 /* end confdefs.h.  */
44128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44130 #define $ac_func innocuous_$ac_func
44131
44132 /* System header to define __stub macros and hopefully few prototypes,
44133     which can conflict with char $ac_func (); below.
44134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44135     <limits.h> exists even on freestanding compilers.  */
44136
44137 #ifdef __STDC__
44138 # include <limits.h>
44139 #else
44140 # include <assert.h>
44141 #endif
44142
44143 #undef $ac_func
44144
44145 /* Override any GCC internal prototype to avoid an error.
44146    Use char because int might match the return type of a GCC
44147    builtin and then its argument prototype would still apply.  */
44148 #ifdef __cplusplus
44149 extern "C"
44150 #endif
44151 char $ac_func ();
44152 /* The GNU C library defines this for functions which it implements
44153     to always fail with ENOSYS.  Some functions are actually named
44154     something starting with __ and the normal name is an alias.  */
44155 #if defined __stub_$ac_func || defined __stub___$ac_func
44156 choke me
44157 #endif
44158
44159 int
44160 main ()
44161 {
44162 return $ac_func ();
44163   ;
44164   return 0;
44165 }
44166 _ACEOF
44167 rm -f conftest.$ac_objext conftest$ac_exeext
44168 if { (ac_try="$ac_link"
44169 case "(($ac_try" in
44170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44171   *) ac_try_echo=$ac_try;;
44172 esac
44173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44174 $as_echo "$ac_try_echo") >&5
44175   (eval "$ac_link") 2>conftest.er1
44176   ac_status=$?
44177   grep -v '^ *+' conftest.er1 >conftest.err
44178   rm -f conftest.er1
44179   cat conftest.err >&5
44180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44181   (exit $ac_status); } && {
44182          test -z "$ac_c_werror_flag" ||
44183          test ! -s conftest.err
44184        } && test -s conftest$ac_exeext && {
44185          test "$cross_compiling" = yes ||
44186          $as_test_x conftest$ac_exeext
44187        }; then
44188   eval "$as_ac_var=yes"
44189 else
44190   $as_echo "$as_me: failed program was:" >&5
44191 sed 's/^/| /' conftest.$ac_ext >&5
44192
44193         eval "$as_ac_var=no"
44194 fi
44195
44196 rm -rf conftest.dSYM
44197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44198       conftest$ac_exeext conftest.$ac_ext
44199 fi
44200 ac_res=`eval 'as_val=${'$as_ac_var'}
44201                  $as_echo "$as_val"'`
44202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44203 $as_echo "$ac_res" >&6; }
44204 as_val=`eval 'as_val=${'$as_ac_var'}
44205                  $as_echo "$as_val"'`
44206    if test "x$as_val" = x""yes; then
44207   cat >>confdefs.h <<_ACEOF
44208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44209 _ACEOF
44210
44211 else
44212
44213     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44214
44215 fi
44216 done
44217
44218
44219   if test $ac_cv_func_strncasecmp = no; then
44220
44221   :
44222
44223   fi
44224   { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
44225 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
44226 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
44227   $as_echo_n "(cached) " >&6
44228 else
44229   cat >conftest.$ac_ext <<_ACEOF
44230 /* confdefs.h.  */
44231 _ACEOF
44232 cat confdefs.h >>conftest.$ac_ext
44233 cat >>conftest.$ac_ext <<_ACEOF
44234 /* end confdefs.h.  */
44235 $ac_includes_default
44236 int
44237 main ()
44238 {
44239 #ifndef strncasecmp
44240   (void) strncasecmp;
44241 #endif
44242
44243   ;
44244   return 0;
44245 }
44246 _ACEOF
44247 rm -f conftest.$ac_objext
44248 if { (ac_try="$ac_compile"
44249 case "(($ac_try" in
44250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44251   *) ac_try_echo=$ac_try;;
44252 esac
44253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44254 $as_echo "$ac_try_echo") >&5
44255   (eval "$ac_compile") 2>conftest.er1
44256   ac_status=$?
44257   grep -v '^ *+' conftest.er1 >conftest.err
44258   rm -f conftest.er1
44259   cat conftest.err >&5
44260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44261   (exit $ac_status); } && {
44262          test -z "$ac_c_werror_flag" ||
44263          test ! -s conftest.err
44264        } && test -s conftest.$ac_objext; then
44265   ac_cv_have_decl_strncasecmp=yes
44266 else
44267   $as_echo "$as_me: failed program was:" >&5
44268 sed 's/^/| /' conftest.$ac_ext >&5
44269
44270         ac_cv_have_decl_strncasecmp=no
44271 fi
44272
44273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44274 fi
44275 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
44276 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
44277 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
44278
44279 cat >>confdefs.h <<_ACEOF
44280 #define HAVE_DECL_STRNCASECMP 1
44281 _ACEOF
44282
44283
44284 else
44285   cat >>confdefs.h <<_ACEOF
44286 #define HAVE_DECL_STRNCASECMP 0
44287 _ACEOF
44288
44289
44290 fi
44291
44292
44293   if test $ac_cv_have_decl_strncasecmp = no; then
44294     HAVE_DECL_STRNCASECMP=0
44295   fi
44296
44297
44298   # Code from module strchrnul:
44299
44300
44301
44302
44303
44304
44305
44306
44307
44308
44309
44310
44311
44312 for ac_func in strchrnul
44313 do
44314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44316 $as_echo_n "checking for $ac_func... " >&6; }
44317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44318   $as_echo_n "(cached) " >&6
44319 else
44320   cat >conftest.$ac_ext <<_ACEOF
44321 /* confdefs.h.  */
44322 _ACEOF
44323 cat confdefs.h >>conftest.$ac_ext
44324 cat >>conftest.$ac_ext <<_ACEOF
44325 /* end confdefs.h.  */
44326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44328 #define $ac_func innocuous_$ac_func
44329
44330 /* System header to define __stub macros and hopefully few prototypes,
44331     which can conflict with char $ac_func (); below.
44332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44333     <limits.h> exists even on freestanding compilers.  */
44334
44335 #ifdef __STDC__
44336 # include <limits.h>
44337 #else
44338 # include <assert.h>
44339 #endif
44340
44341 #undef $ac_func
44342
44343 /* Override any GCC internal prototype to avoid an error.
44344    Use char because int might match the return type of a GCC
44345    builtin and then its argument prototype would still apply.  */
44346 #ifdef __cplusplus
44347 extern "C"
44348 #endif
44349 char $ac_func ();
44350 /* The GNU C library defines this for functions which it implements
44351     to always fail with ENOSYS.  Some functions are actually named
44352     something starting with __ and the normal name is an alias.  */
44353 #if defined __stub_$ac_func || defined __stub___$ac_func
44354 choke me
44355 #endif
44356
44357 int
44358 main ()
44359 {
44360 return $ac_func ();
44361   ;
44362   return 0;
44363 }
44364 _ACEOF
44365 rm -f conftest.$ac_objext conftest$ac_exeext
44366 if { (ac_try="$ac_link"
44367 case "(($ac_try" in
44368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44369   *) ac_try_echo=$ac_try;;
44370 esac
44371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44372 $as_echo "$ac_try_echo") >&5
44373   (eval "$ac_link") 2>conftest.er1
44374   ac_status=$?
44375   grep -v '^ *+' conftest.er1 >conftest.err
44376   rm -f conftest.er1
44377   cat conftest.err >&5
44378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379   (exit $ac_status); } && {
44380          test -z "$ac_c_werror_flag" ||
44381          test ! -s conftest.err
44382        } && test -s conftest$ac_exeext && {
44383          test "$cross_compiling" = yes ||
44384          $as_test_x conftest$ac_exeext
44385        }; then
44386   eval "$as_ac_var=yes"
44387 else
44388   $as_echo "$as_me: failed program was:" >&5
44389 sed 's/^/| /' conftest.$ac_ext >&5
44390
44391         eval "$as_ac_var=no"
44392 fi
44393
44394 rm -rf conftest.dSYM
44395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44396       conftest$ac_exeext conftest.$ac_ext
44397 fi
44398 ac_res=`eval 'as_val=${'$as_ac_var'}
44399                  $as_echo "$as_val"'`
44400                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44401 $as_echo "$ac_res" >&6; }
44402 as_val=`eval 'as_val=${'$as_ac_var'}
44403                  $as_echo "$as_val"'`
44404    if test "x$as_val" = x""yes; then
44405   cat >>confdefs.h <<_ACEOF
44406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44407 _ACEOF
44408
44409 else
44410
44411     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44412
44413 fi
44414 done
44415
44416
44417   if test $ac_cv_func_strchrnul = no; then
44418     HAVE_STRCHRNUL=0
44419     :
44420   fi
44421
44422
44423
44424
44425   GNULIB_STRCHRNUL=1
44426
44427
44428
44429 cat >>confdefs.h <<\_ACEOF
44430 #define GNULIB_TEST_STRCHRNUL 1
44431 _ACEOF
44432
44433
44434
44435   # Code from module strdup-posix:
44436
44437
44438
44439
44440
44441
44442
44443
44444
44445   if test $ac_cv_func_strdup = yes; then
44446     if test $gl_cv_func_malloc_posix != yes; then
44447       REPLACE_STRDUP=1
44448
44449
44450
44451
44452
44453
44454
44455
44456   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
44457
44458       :
44459     fi
44460   else
44461
44462
44463
44464
44465
44466
44467
44468
44469   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
44470
44471     :
44472   fi
44473
44474
44475
44476
44477   if test $ac_cv_have_decl_strdup = no; then
44478     HAVE_DECL_STRDUP=0
44479   fi
44480
44481
44482
44483
44484   GNULIB_STRDUP=1
44485
44486
44487
44488 cat >>confdefs.h <<\_ACEOF
44489 #define GNULIB_TEST_STRDUP 1
44490 _ACEOF
44491
44492
44493
44494   # Code from module streq:
44495   # Code from module strerror:
44496
44497
44498   if test $REPLACE_STRERROR = 1; then
44499
44500
44501
44502
44503
44504
44505
44506
44507   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
44508
44509
44510 cat >>confdefs.h <<_ACEOF
44511 #define REPLACE_STRERROR $REPLACE_STRERROR
44512 _ACEOF
44513
44514   fi
44515
44516
44517
44518
44519   GNULIB_STRERROR=1
44520
44521
44522
44523 cat >>confdefs.h <<\_ACEOF
44524 #define GNULIB_TEST_STRERROR 1
44525 _ACEOF
44526
44527
44528
44529   # Code from module string:
44530
44531
44532
44533   # Code from module strings:
44534
44535
44536
44537   # Code from module strndup:
44538
44539
44540
44541
44542
44543
44544
44545
44546
44547
44548
44549
44550
44551
44552   if test $ac_cv_have_decl_strndup = no; then
44553     HAVE_DECL_STRNDUP=0
44554   fi
44555
44556   if test $ac_cv_func_strndup = yes; then
44557     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
44558     { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
44559 $as_echo_n "checking for working strndup... " >&6; }
44560 if test "${gl_cv_func_strndup_works+set}" = set; then
44561   $as_echo_n "(cached) " >&6
44562 else
44563   if test "$cross_compiling" = yes; then
44564
44565           case $host_os in
44566             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
44567             *)               gl_cv_func_strndup_works="guessing yes";;
44568           esac
44569
44570 else
44571   cat >conftest.$ac_ext <<_ACEOF
44572
44573          /* confdefs.h.  */
44574 _ACEOF
44575 cat confdefs.h >>conftest.$ac_ext
44576 cat >>conftest.$ac_ext <<_ACEOF
44577 /* end confdefs.h.  */
44578 #include <string.h>
44579                            #include <stdlib.h>
44580 int
44581 main ()
44582 {
44583
44584 #ifndef HAVE_DECL_STRNDUP
44585   extern char *strndup (const char *, size_t);
44586 #endif
44587   char *s;
44588   s = strndup ("some longer string", 15);
44589   free (s);
44590   s = strndup ("shorter string", 13);
44591   return s[13] != '\0';
44592   ;
44593   return 0;
44594 }
44595 _ACEOF
44596 rm -f conftest$ac_exeext
44597 if { (ac_try="$ac_link"
44598 case "(($ac_try" in
44599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44600   *) ac_try_echo=$ac_try;;
44601 esac
44602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44603 $as_echo "$ac_try_echo") >&5
44604   (eval "$ac_link") 2>&5
44605   ac_status=$?
44606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44608   { (case "(($ac_try" in
44609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44610   *) ac_try_echo=$ac_try;;
44611 esac
44612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44613 $as_echo "$ac_try_echo") >&5
44614   (eval "$ac_try") 2>&5
44615   ac_status=$?
44616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44617   (exit $ac_status); }; }; then
44618   gl_cv_func_strndup_works=yes
44619 else
44620   $as_echo "$as_me: program exited with status $ac_status" >&5
44621 $as_echo "$as_me: failed program was:" >&5
44622 sed 's/^/| /' conftest.$ac_ext >&5
44623
44624 ( exit $ac_status )
44625 gl_cv_func_strndup_works=no
44626 fi
44627 rm -rf conftest.dSYM
44628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44629 fi
44630
44631
44632 fi
44633 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
44634 $as_echo "$gl_cv_func_strndup_works" >&6; }
44635     case $gl_cv_func_strndup_works in
44636       *no)
44637         REPLACE_STRNDUP=1
44638
44639
44640
44641
44642
44643
44644
44645
44646   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
44647
44648         ;;
44649     esac
44650   else
44651
44652
44653
44654
44655
44656
44657
44658
44659   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
44660
44661   fi
44662
44663
44664
44665
44666   GNULIB_STRNDUP=1
44667
44668
44669
44670 cat >>confdefs.h <<\_ACEOF
44671 #define GNULIB_TEST_STRNDUP 1
44672 _ACEOF
44673
44674
44675
44676   # Code from module strnlen:
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686   if test $ac_cv_have_decl_strnlen = no; then
44687     HAVE_DECL_STRNLEN=0
44688   else
44689     { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
44690 $as_echo_n "checking for working strnlen... " >&6; }
44691 if test "${ac_cv_func_strnlen_working+set}" = set; then
44692   $as_echo_n "(cached) " >&6
44693 else
44694   if test "$cross_compiling" = yes; then
44695   ac_cv_func_strnlen_working=no
44696 else
44697   cat >conftest.$ac_ext <<_ACEOF
44698 /* confdefs.h.  */
44699 _ACEOF
44700 cat confdefs.h >>conftest.$ac_ext
44701 cat >>conftest.$ac_ext <<_ACEOF
44702 /* end confdefs.h.  */
44703 $ac_includes_default
44704 int
44705 main ()
44706 {
44707
44708 #define S "foobar"
44709 #define S_LEN (sizeof S - 1)
44710
44711   /* At least one implementation is buggy: that of AIX 4.3 would
44712      give strnlen (S, 1) == 3.  */
44713
44714   int i;
44715   for (i = 0; i < S_LEN + 1; ++i)
44716     {
44717       int expected = i <= S_LEN ? i : S_LEN;
44718       if (strnlen (S, i) != expected)
44719         return 1;
44720     }
44721   return 0;
44722
44723   ;
44724   return 0;
44725 }
44726 _ACEOF
44727 rm -f conftest$ac_exeext
44728 if { (ac_try="$ac_link"
44729 case "(($ac_try" in
44730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44731   *) ac_try_echo=$ac_try;;
44732 esac
44733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44734 $as_echo "$ac_try_echo") >&5
44735   (eval "$ac_link") 2>&5
44736   ac_status=$?
44737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44739   { (case "(($ac_try" in
44740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44741   *) ac_try_echo=$ac_try;;
44742 esac
44743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44744 $as_echo "$ac_try_echo") >&5
44745   (eval "$ac_try") 2>&5
44746   ac_status=$?
44747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748   (exit $ac_status); }; }; then
44749   ac_cv_func_strnlen_working=yes
44750 else
44751   $as_echo "$as_me: program exited with status $ac_status" >&5
44752 $as_echo "$as_me: failed program was:" >&5
44753 sed 's/^/| /' conftest.$ac_ext >&5
44754
44755 ( exit $ac_status )
44756 ac_cv_func_strnlen_working=no
44757 fi
44758 rm -rf conftest.dSYM
44759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44760 fi
44761
44762
44763 fi
44764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
44765 $as_echo "$ac_cv_func_strnlen_working" >&6; }
44766 test $ac_cv_func_strnlen_working = no &&
44767
44768
44769
44770
44771
44772
44773
44774   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
44775
44776
44777         if test $ac_cv_func_strnlen_working = no; then
44778       REPLACE_STRNLEN=1
44779     fi
44780   fi
44781   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
44782
44783
44784
44785
44786
44787
44788
44789
44790   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
44791
44792     :
44793   fi
44794
44795
44796
44797
44798   GNULIB_STRNLEN=1
44799
44800
44801
44802 cat >>confdefs.h <<\_ACEOF
44803 #define GNULIB_TEST_STRNLEN 1
44804 _ACEOF
44805
44806
44807
44808   # Code from module strnlen1:
44809   # Code from module strtoimax:
44810
44811
44812
44813
44814   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
44815 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
44816 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
44817   $as_echo_n "(cached) " >&6
44818 else
44819   cat >conftest.$ac_ext <<_ACEOF
44820 /* confdefs.h.  */
44821 _ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h.  */
44825 #include <inttypes.h>
44826 #ifdef strtoimax
44827  inttypes_h_defines_strtoimax
44828 #endif
44829 _ACEOF
44830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44831   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
44832   gl_cv_func_strtoimax_macro=yes
44833 else
44834   gl_cv_func_strtoimax_macro=no
44835 fi
44836 rm -f conftest*
44837
44838 fi
44839 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
44840 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
44841
44842   if test "$gl_cv_func_strtoimax_macro" != yes; then
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852 for ac_func in strtoimax
44853 do
44854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44856 $as_echo_n "checking for $ac_func... " >&6; }
44857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44858   $as_echo_n "(cached) " >&6
44859 else
44860   cat >conftest.$ac_ext <<_ACEOF
44861 /* confdefs.h.  */
44862 _ACEOF
44863 cat confdefs.h >>conftest.$ac_ext
44864 cat >>conftest.$ac_ext <<_ACEOF
44865 /* end confdefs.h.  */
44866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44868 #define $ac_func innocuous_$ac_func
44869
44870 /* System header to define __stub macros and hopefully few prototypes,
44871     which can conflict with char $ac_func (); below.
44872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44873     <limits.h> exists even on freestanding compilers.  */
44874
44875 #ifdef __STDC__
44876 # include <limits.h>
44877 #else
44878 # include <assert.h>
44879 #endif
44880
44881 #undef $ac_func
44882
44883 /* Override any GCC internal prototype to avoid an error.
44884    Use char because int might match the return type of a GCC
44885    builtin and then its argument prototype would still apply.  */
44886 #ifdef __cplusplus
44887 extern "C"
44888 #endif
44889 char $ac_func ();
44890 /* The GNU C library defines this for functions which it implements
44891     to always fail with ENOSYS.  Some functions are actually named
44892     something starting with __ and the normal name is an alias.  */
44893 #if defined __stub_$ac_func || defined __stub___$ac_func
44894 choke me
44895 #endif
44896
44897 int
44898 main ()
44899 {
44900 return $ac_func ();
44901   ;
44902   return 0;
44903 }
44904 _ACEOF
44905 rm -f conftest.$ac_objext conftest$ac_exeext
44906 if { (ac_try="$ac_link"
44907 case "(($ac_try" in
44908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44909   *) ac_try_echo=$ac_try;;
44910 esac
44911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44912 $as_echo "$ac_try_echo") >&5
44913   (eval "$ac_link") 2>conftest.er1
44914   ac_status=$?
44915   grep -v '^ *+' conftest.er1 >conftest.err
44916   rm -f conftest.er1
44917   cat conftest.err >&5
44918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44919   (exit $ac_status); } && {
44920          test -z "$ac_c_werror_flag" ||
44921          test ! -s conftest.err
44922        } && test -s conftest$ac_exeext && {
44923          test "$cross_compiling" = yes ||
44924          $as_test_x conftest$ac_exeext
44925        }; then
44926   eval "$as_ac_var=yes"
44927 else
44928   $as_echo "$as_me: failed program was:" >&5
44929 sed 's/^/| /' conftest.$ac_ext >&5
44930
44931         eval "$as_ac_var=no"
44932 fi
44933
44934 rm -rf conftest.dSYM
44935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44936       conftest$ac_exeext conftest.$ac_ext
44937 fi
44938 ac_res=`eval 'as_val=${'$as_ac_var'}
44939                  $as_echo "$as_val"'`
44940                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44941 $as_echo "$ac_res" >&6; }
44942 as_val=`eval 'as_val=${'$as_ac_var'}
44943                  $as_echo "$as_val"'`
44944    if test "x$as_val" = x""yes; then
44945   cat >>confdefs.h <<_ACEOF
44946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44947 _ACEOF
44948
44949 else
44950
44951     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44952
44953 fi
44954 done
44955
44956
44957     if test $ac_cv_func_strtoimax = no; then
44958
44959   { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
44960 $as_echo_n "checking whether strtoll is declared... " >&6; }
44961 if test "${ac_cv_have_decl_strtoll+set}" = set; then
44962   $as_echo_n "(cached) " >&6
44963 else
44964   cat >conftest.$ac_ext <<_ACEOF
44965 /* confdefs.h.  */
44966 _ACEOF
44967 cat confdefs.h >>conftest.$ac_ext
44968 cat >>conftest.$ac_ext <<_ACEOF
44969 /* end confdefs.h.  */
44970 $ac_includes_default
44971 int
44972 main ()
44973 {
44974 #ifndef strtoll
44975   (void) strtoll;
44976 #endif
44977
44978   ;
44979   return 0;
44980 }
44981 _ACEOF
44982 rm -f conftest.$ac_objext
44983 if { (ac_try="$ac_compile"
44984 case "(($ac_try" in
44985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44986   *) ac_try_echo=$ac_try;;
44987 esac
44988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44989 $as_echo "$ac_try_echo") >&5
44990   (eval "$ac_compile") 2>conftest.er1
44991   ac_status=$?
44992   grep -v '^ *+' conftest.er1 >conftest.err
44993   rm -f conftest.er1
44994   cat conftest.err >&5
44995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44996   (exit $ac_status); } && {
44997          test -z "$ac_c_werror_flag" ||
44998          test ! -s conftest.err
44999        } && test -s conftest.$ac_objext; then
45000   ac_cv_have_decl_strtoll=yes
45001 else
45002   $as_echo "$as_me: failed program was:" >&5
45003 sed 's/^/| /' conftest.$ac_ext >&5
45004
45005         ac_cv_have_decl_strtoll=no
45006 fi
45007
45008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45009 fi
45010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
45011 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
45012 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
45013
45014 cat >>confdefs.h <<_ACEOF
45015 #define HAVE_DECL_STRTOLL 1
45016 _ACEOF
45017
45018
45019 else
45020   cat >>confdefs.h <<_ACEOF
45021 #define HAVE_DECL_STRTOLL 0
45022 _ACEOF
45023
45024
45025 fi
45026
45027
45028
45029
45030     fi
45031   fi
45032
45033
45034
45035
45036   GNULIB_STRTOIMAX=1
45037
45038
45039   # Code from module strtol:
45040
45041
45042
45043
45044
45045
45046
45047
45048
45049
45050 for ac_func in strtol
45051 do
45052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45054 $as_echo_n "checking for $ac_func... " >&6; }
45055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45056   $as_echo_n "(cached) " >&6
45057 else
45058   cat >conftest.$ac_ext <<_ACEOF
45059 /* confdefs.h.  */
45060 _ACEOF
45061 cat confdefs.h >>conftest.$ac_ext
45062 cat >>conftest.$ac_ext <<_ACEOF
45063 /* end confdefs.h.  */
45064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45066 #define $ac_func innocuous_$ac_func
45067
45068 /* System header to define __stub macros and hopefully few prototypes,
45069     which can conflict with char $ac_func (); below.
45070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45071     <limits.h> exists even on freestanding compilers.  */
45072
45073 #ifdef __STDC__
45074 # include <limits.h>
45075 #else
45076 # include <assert.h>
45077 #endif
45078
45079 #undef $ac_func
45080
45081 /* Override any GCC internal prototype to avoid an error.
45082    Use char because int might match the return type of a GCC
45083    builtin and then its argument prototype would still apply.  */
45084 #ifdef __cplusplus
45085 extern "C"
45086 #endif
45087 char $ac_func ();
45088 /* The GNU C library defines this for functions which it implements
45089     to always fail with ENOSYS.  Some functions are actually named
45090     something starting with __ and the normal name is an alias.  */
45091 #if defined __stub_$ac_func || defined __stub___$ac_func
45092 choke me
45093 #endif
45094
45095 int
45096 main ()
45097 {
45098 return $ac_func ();
45099   ;
45100   return 0;
45101 }
45102 _ACEOF
45103 rm -f conftest.$ac_objext conftest$ac_exeext
45104 if { (ac_try="$ac_link"
45105 case "(($ac_try" in
45106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45107   *) ac_try_echo=$ac_try;;
45108 esac
45109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45110 $as_echo "$ac_try_echo") >&5
45111   (eval "$ac_link") 2>conftest.er1
45112   ac_status=$?
45113   grep -v '^ *+' conftest.er1 >conftest.err
45114   rm -f conftest.er1
45115   cat conftest.err >&5
45116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45117   (exit $ac_status); } && {
45118          test -z "$ac_c_werror_flag" ||
45119          test ! -s conftest.err
45120        } && test -s conftest$ac_exeext && {
45121          test "$cross_compiling" = yes ||
45122          $as_test_x conftest$ac_exeext
45123        }; then
45124   eval "$as_ac_var=yes"
45125 else
45126   $as_echo "$as_me: failed program was:" >&5
45127 sed 's/^/| /' conftest.$ac_ext >&5
45128
45129         eval "$as_ac_var=no"
45130 fi
45131
45132 rm -rf conftest.dSYM
45133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45134       conftest$ac_exeext conftest.$ac_ext
45135 fi
45136 ac_res=`eval 'as_val=${'$as_ac_var'}
45137                  $as_echo "$as_val"'`
45138                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45139 $as_echo "$ac_res" >&6; }
45140 as_val=`eval 'as_val=${'$as_ac_var'}
45141                  $as_echo "$as_val"'`
45142    if test "x$as_val" = x""yes; then
45143   cat >>confdefs.h <<_ACEOF
45144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45145 _ACEOF
45146
45147 else
45148
45149     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45150
45151 fi
45152 done
45153
45154
45155
45156   # Code from module strtoll:
45157
45158
45159
45160   if test "$ac_cv_type_long_long_int" = yes; then
45161
45162
45163
45164
45165
45166
45167
45168
45169
45170 for ac_func in strtoll
45171 do
45172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45173 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45174 $as_echo_n "checking for $ac_func... " >&6; }
45175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45176   $as_echo_n "(cached) " >&6
45177 else
45178   cat >conftest.$ac_ext <<_ACEOF
45179 /* confdefs.h.  */
45180 _ACEOF
45181 cat confdefs.h >>conftest.$ac_ext
45182 cat >>conftest.$ac_ext <<_ACEOF
45183 /* end confdefs.h.  */
45184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45186 #define $ac_func innocuous_$ac_func
45187
45188 /* System header to define __stub macros and hopefully few prototypes,
45189     which can conflict with char $ac_func (); below.
45190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45191     <limits.h> exists even on freestanding compilers.  */
45192
45193 #ifdef __STDC__
45194 # include <limits.h>
45195 #else
45196 # include <assert.h>
45197 #endif
45198
45199 #undef $ac_func
45200
45201 /* Override any GCC internal prototype to avoid an error.
45202    Use char because int might match the return type of a GCC
45203    builtin and then its argument prototype would still apply.  */
45204 #ifdef __cplusplus
45205 extern "C"
45206 #endif
45207 char $ac_func ();
45208 /* The GNU C library defines this for functions which it implements
45209     to always fail with ENOSYS.  Some functions are actually named
45210     something starting with __ and the normal name is an alias.  */
45211 #if defined __stub_$ac_func || defined __stub___$ac_func
45212 choke me
45213 #endif
45214
45215 int
45216 main ()
45217 {
45218 return $ac_func ();
45219   ;
45220   return 0;
45221 }
45222 _ACEOF
45223 rm -f conftest.$ac_objext conftest$ac_exeext
45224 if { (ac_try="$ac_link"
45225 case "(($ac_try" in
45226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45227   *) ac_try_echo=$ac_try;;
45228 esac
45229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45230 $as_echo "$ac_try_echo") >&5
45231   (eval "$ac_link") 2>conftest.er1
45232   ac_status=$?
45233   grep -v '^ *+' conftest.er1 >conftest.err
45234   rm -f conftest.er1
45235   cat conftest.err >&5
45236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45237   (exit $ac_status); } && {
45238          test -z "$ac_c_werror_flag" ||
45239          test ! -s conftest.err
45240        } && test -s conftest$ac_exeext && {
45241          test "$cross_compiling" = yes ||
45242          $as_test_x conftest$ac_exeext
45243        }; then
45244   eval "$as_ac_var=yes"
45245 else
45246   $as_echo "$as_me: failed program was:" >&5
45247 sed 's/^/| /' conftest.$ac_ext >&5
45248
45249         eval "$as_ac_var=no"
45250 fi
45251
45252 rm -rf conftest.dSYM
45253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45254       conftest$ac_exeext conftest.$ac_ext
45255 fi
45256 ac_res=`eval 'as_val=${'$as_ac_var'}
45257                  $as_echo "$as_val"'`
45258                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45259 $as_echo "$ac_res" >&6; }
45260 as_val=`eval 'as_val=${'$as_ac_var'}
45261                  $as_echo "$as_val"'`
45262    if test "x$as_val" = x""yes; then
45263   cat >>confdefs.h <<_ACEOF
45264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45265 _ACEOF
45266
45267 else
45268
45269     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45270
45271 fi
45272 done
45273
45274
45275     if test $ac_cv_func_strtoll = no; then
45276       HAVE_STRTOLL=0
45277
45278   :
45279
45280     fi
45281   fi
45282
45283
45284
45285
45286   GNULIB_STRTOLL=1
45287
45288
45289
45290 cat >>confdefs.h <<\_ACEOF
45291 #define GNULIB_TEST_STRTOLL 1
45292 _ACEOF
45293
45294
45295
45296   # Code from module strtoul:
45297
45298
45299
45300
45301
45302
45303
45304
45305
45306
45307 for ac_func in strtoul
45308 do
45309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45311 $as_echo_n "checking for $ac_func... " >&6; }
45312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45313   $as_echo_n "(cached) " >&6
45314 else
45315   cat >conftest.$ac_ext <<_ACEOF
45316 /* confdefs.h.  */
45317 _ACEOF
45318 cat confdefs.h >>conftest.$ac_ext
45319 cat >>conftest.$ac_ext <<_ACEOF
45320 /* end confdefs.h.  */
45321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45323 #define $ac_func innocuous_$ac_func
45324
45325 /* System header to define __stub macros and hopefully few prototypes,
45326     which can conflict with char $ac_func (); below.
45327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45328     <limits.h> exists even on freestanding compilers.  */
45329
45330 #ifdef __STDC__
45331 # include <limits.h>
45332 #else
45333 # include <assert.h>
45334 #endif
45335
45336 #undef $ac_func
45337
45338 /* Override any GCC internal prototype to avoid an error.
45339    Use char because int might match the return type of a GCC
45340    builtin and then its argument prototype would still apply.  */
45341 #ifdef __cplusplus
45342 extern "C"
45343 #endif
45344 char $ac_func ();
45345 /* The GNU C library defines this for functions which it implements
45346     to always fail with ENOSYS.  Some functions are actually named
45347     something starting with __ and the normal name is an alias.  */
45348 #if defined __stub_$ac_func || defined __stub___$ac_func
45349 choke me
45350 #endif
45351
45352 int
45353 main ()
45354 {
45355 return $ac_func ();
45356   ;
45357   return 0;
45358 }
45359 _ACEOF
45360 rm -f conftest.$ac_objext conftest$ac_exeext
45361 if { (ac_try="$ac_link"
45362 case "(($ac_try" in
45363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45364   *) ac_try_echo=$ac_try;;
45365 esac
45366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45367 $as_echo "$ac_try_echo") >&5
45368   (eval "$ac_link") 2>conftest.er1
45369   ac_status=$?
45370   grep -v '^ *+' conftest.er1 >conftest.err
45371   rm -f conftest.er1
45372   cat conftest.err >&5
45373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374   (exit $ac_status); } && {
45375          test -z "$ac_c_werror_flag" ||
45376          test ! -s conftest.err
45377        } && test -s conftest$ac_exeext && {
45378          test "$cross_compiling" = yes ||
45379          $as_test_x conftest$ac_exeext
45380        }; then
45381   eval "$as_ac_var=yes"
45382 else
45383   $as_echo "$as_me: failed program was:" >&5
45384 sed 's/^/| /' conftest.$ac_ext >&5
45385
45386         eval "$as_ac_var=no"
45387 fi
45388
45389 rm -rf conftest.dSYM
45390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45391       conftest$ac_exeext conftest.$ac_ext
45392 fi
45393 ac_res=`eval 'as_val=${'$as_ac_var'}
45394                  $as_echo "$as_val"'`
45395                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45396 $as_echo "$ac_res" >&6; }
45397 as_val=`eval 'as_val=${'$as_ac_var'}
45398                  $as_echo "$as_val"'`
45399    if test "x$as_val" = x""yes; then
45400   cat >>confdefs.h <<_ACEOF
45401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45402 _ACEOF
45403
45404 else
45405
45406     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45407
45408 fi
45409 done
45410
45411
45412
45413   # Code from module strtoull:
45414
45415
45416
45417   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
45418
45419
45420
45421
45422
45423
45424
45425
45426
45427 for ac_func in strtoull
45428 do
45429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45431 $as_echo_n "checking for $ac_func... " >&6; }
45432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45433   $as_echo_n "(cached) " >&6
45434 else
45435   cat >conftest.$ac_ext <<_ACEOF
45436 /* confdefs.h.  */
45437 _ACEOF
45438 cat confdefs.h >>conftest.$ac_ext
45439 cat >>conftest.$ac_ext <<_ACEOF
45440 /* end confdefs.h.  */
45441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45443 #define $ac_func innocuous_$ac_func
45444
45445 /* System header to define __stub macros and hopefully few prototypes,
45446     which can conflict with char $ac_func (); below.
45447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45448     <limits.h> exists even on freestanding compilers.  */
45449
45450 #ifdef __STDC__
45451 # include <limits.h>
45452 #else
45453 # include <assert.h>
45454 #endif
45455
45456 #undef $ac_func
45457
45458 /* Override any GCC internal prototype to avoid an error.
45459    Use char because int might match the return type of a GCC
45460    builtin and then its argument prototype would still apply.  */
45461 #ifdef __cplusplus
45462 extern "C"
45463 #endif
45464 char $ac_func ();
45465 /* The GNU C library defines this for functions which it implements
45466     to always fail with ENOSYS.  Some functions are actually named
45467     something starting with __ and the normal name is an alias.  */
45468 #if defined __stub_$ac_func || defined __stub___$ac_func
45469 choke me
45470 #endif
45471
45472 int
45473 main ()
45474 {
45475 return $ac_func ();
45476   ;
45477   return 0;
45478 }
45479 _ACEOF
45480 rm -f conftest.$ac_objext conftest$ac_exeext
45481 if { (ac_try="$ac_link"
45482 case "(($ac_try" in
45483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45484   *) ac_try_echo=$ac_try;;
45485 esac
45486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45487 $as_echo "$ac_try_echo") >&5
45488   (eval "$ac_link") 2>conftest.er1
45489   ac_status=$?
45490   grep -v '^ *+' conftest.er1 >conftest.err
45491   rm -f conftest.er1
45492   cat conftest.err >&5
45493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494   (exit $ac_status); } && {
45495          test -z "$ac_c_werror_flag" ||
45496          test ! -s conftest.err
45497        } && test -s conftest$ac_exeext && {
45498          test "$cross_compiling" = yes ||
45499          $as_test_x conftest$ac_exeext
45500        }; then
45501   eval "$as_ac_var=yes"
45502 else
45503   $as_echo "$as_me: failed program was:" >&5
45504 sed 's/^/| /' conftest.$ac_ext >&5
45505
45506         eval "$as_ac_var=no"
45507 fi
45508
45509 rm -rf conftest.dSYM
45510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45511       conftest$ac_exeext conftest.$ac_ext
45512 fi
45513 ac_res=`eval 'as_val=${'$as_ac_var'}
45514                  $as_echo "$as_val"'`
45515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45516 $as_echo "$ac_res" >&6; }
45517 as_val=`eval 'as_val=${'$as_ac_var'}
45518                  $as_echo "$as_val"'`
45519    if test "x$as_val" = x""yes; then
45520   cat >>confdefs.h <<_ACEOF
45521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45522 _ACEOF
45523
45524 else
45525
45526     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45527
45528 fi
45529 done
45530
45531
45532     if test $ac_cv_func_strtoull = no; then
45533       HAVE_STRTOULL=0
45534
45535   :
45536
45537     fi
45538   fi
45539
45540
45541
45542
45543   GNULIB_STRTOULL=1
45544
45545
45546
45547 cat >>confdefs.h <<\_ACEOF
45548 #define GNULIB_TEST_STRTOULL 1
45549 _ACEOF
45550
45551
45552
45553   # Code from module strtoumax:
45554
45555
45556
45557
45558   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
45559 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
45560 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
45561   $as_echo_n "(cached) " >&6
45562 else
45563   cat >conftest.$ac_ext <<_ACEOF
45564 /* confdefs.h.  */
45565 _ACEOF
45566 cat confdefs.h >>conftest.$ac_ext
45567 cat >>conftest.$ac_ext <<_ACEOF
45568 /* end confdefs.h.  */
45569 #include <inttypes.h>
45570 #ifdef strtoumax
45571  inttypes_h_defines_strtoumax
45572 #endif
45573 _ACEOF
45574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45575   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
45576   gl_cv_func_strtoumax_macro=yes
45577 else
45578   gl_cv_func_strtoumax_macro=no
45579 fi
45580 rm -f conftest*
45581
45582 fi
45583 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
45584 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
45585
45586   if test "$gl_cv_func_strtoumax_macro" != yes; then
45587
45588
45589
45590
45591
45592
45593
45594
45595
45596 for ac_func in strtoumax
45597 do
45598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45600 $as_echo_n "checking for $ac_func... " >&6; }
45601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45602   $as_echo_n "(cached) " >&6
45603 else
45604   cat >conftest.$ac_ext <<_ACEOF
45605 /* confdefs.h.  */
45606 _ACEOF
45607 cat confdefs.h >>conftest.$ac_ext
45608 cat >>conftest.$ac_ext <<_ACEOF
45609 /* end confdefs.h.  */
45610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45612 #define $ac_func innocuous_$ac_func
45613
45614 /* System header to define __stub macros and hopefully few prototypes,
45615     which can conflict with char $ac_func (); below.
45616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45617     <limits.h> exists even on freestanding compilers.  */
45618
45619 #ifdef __STDC__
45620 # include <limits.h>
45621 #else
45622 # include <assert.h>
45623 #endif
45624
45625 #undef $ac_func
45626
45627 /* Override any GCC internal prototype to avoid an error.
45628    Use char because int might match the return type of a GCC
45629    builtin and then its argument prototype would still apply.  */
45630 #ifdef __cplusplus
45631 extern "C"
45632 #endif
45633 char $ac_func ();
45634 /* The GNU C library defines this for functions which it implements
45635     to always fail with ENOSYS.  Some functions are actually named
45636     something starting with __ and the normal name is an alias.  */
45637 #if defined __stub_$ac_func || defined __stub___$ac_func
45638 choke me
45639 #endif
45640
45641 int
45642 main ()
45643 {
45644 return $ac_func ();
45645   ;
45646   return 0;
45647 }
45648 _ACEOF
45649 rm -f conftest.$ac_objext conftest$ac_exeext
45650 if { (ac_try="$ac_link"
45651 case "(($ac_try" in
45652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45653   *) ac_try_echo=$ac_try;;
45654 esac
45655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45656 $as_echo "$ac_try_echo") >&5
45657   (eval "$ac_link") 2>conftest.er1
45658   ac_status=$?
45659   grep -v '^ *+' conftest.er1 >conftest.err
45660   rm -f conftest.er1
45661   cat conftest.err >&5
45662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45663   (exit $ac_status); } && {
45664          test -z "$ac_c_werror_flag" ||
45665          test ! -s conftest.err
45666        } && test -s conftest$ac_exeext && {
45667          test "$cross_compiling" = yes ||
45668          $as_test_x conftest$ac_exeext
45669        }; then
45670   eval "$as_ac_var=yes"
45671 else
45672   $as_echo "$as_me: failed program was:" >&5
45673 sed 's/^/| /' conftest.$ac_ext >&5
45674
45675         eval "$as_ac_var=no"
45676 fi
45677
45678 rm -rf conftest.dSYM
45679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45680       conftest$ac_exeext conftest.$ac_ext
45681 fi
45682 ac_res=`eval 'as_val=${'$as_ac_var'}
45683                  $as_echo "$as_val"'`
45684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45685 $as_echo "$ac_res" >&6; }
45686 as_val=`eval 'as_val=${'$as_ac_var'}
45687                  $as_echo "$as_val"'`
45688    if test "x$as_val" = x""yes; then
45689   cat >>confdefs.h <<_ACEOF
45690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45691 _ACEOF
45692
45693 else
45694
45695     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45696
45697 fi
45698 done
45699
45700
45701     if test $ac_cv_func_strtoumax = no; then
45702
45703   { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
45704 $as_echo_n "checking whether strtoull is declared... " >&6; }
45705 if test "${ac_cv_have_decl_strtoull+set}" = set; then
45706   $as_echo_n "(cached) " >&6
45707 else
45708   cat >conftest.$ac_ext <<_ACEOF
45709 /* confdefs.h.  */
45710 _ACEOF
45711 cat confdefs.h >>conftest.$ac_ext
45712 cat >>conftest.$ac_ext <<_ACEOF
45713 /* end confdefs.h.  */
45714 $ac_includes_default
45715 int
45716 main ()
45717 {
45718 #ifndef strtoull
45719   (void) strtoull;
45720 #endif
45721
45722   ;
45723   return 0;
45724 }
45725 _ACEOF
45726 rm -f conftest.$ac_objext
45727 if { (ac_try="$ac_compile"
45728 case "(($ac_try" in
45729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45730   *) ac_try_echo=$ac_try;;
45731 esac
45732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45733 $as_echo "$ac_try_echo") >&5
45734   (eval "$ac_compile") 2>conftest.er1
45735   ac_status=$?
45736   grep -v '^ *+' conftest.er1 >conftest.err
45737   rm -f conftest.er1
45738   cat conftest.err >&5
45739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45740   (exit $ac_status); } && {
45741          test -z "$ac_c_werror_flag" ||
45742          test ! -s conftest.err
45743        } && test -s conftest.$ac_objext; then
45744   ac_cv_have_decl_strtoull=yes
45745 else
45746   $as_echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45748
45749         ac_cv_have_decl_strtoull=no
45750 fi
45751
45752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45753 fi
45754 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
45755 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
45756 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
45757
45758 cat >>confdefs.h <<_ACEOF
45759 #define HAVE_DECL_STRTOULL 1
45760 _ACEOF
45761
45762
45763 else
45764   cat >>confdefs.h <<_ACEOF
45765 #define HAVE_DECL_STRTOULL 0
45766 _ACEOF
45767
45768
45769 fi
45770
45771
45772
45773
45774     fi
45775   fi
45776
45777
45778
45779
45780   GNULIB_STRTOUMAX=1
45781
45782
45783   # Code from module symlink:
45784
45785
45786
45787
45788
45789
45790
45791
45792         if test $ac_cv_func_symlink = no; then
45793     HAVE_SYMLINK=0
45794
45795
45796
45797
45798
45799
45800
45801
45802   gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
45803
45804   else
45805     { $as_echo "$as_me:$LINENO: checking whether symlink handles trailing slash correctly" >&5
45806 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
45807 if test "${gl_cv_func_symlink_works+set}" = set; then
45808   $as_echo_n "(cached) " >&6
45809 else
45810   if test "$cross_compiling" = yes; then
45811   gl_cv_func_symlink_works="guessing no"
45812 else
45813   cat >conftest.$ac_ext <<_ACEOF
45814 /* confdefs.h.  */
45815 _ACEOF
45816 cat confdefs.h >>conftest.$ac_ext
45817 cat >>conftest.$ac_ext <<_ACEOF
45818 /* end confdefs.h.  */
45819 #include <unistd.h>
45820
45821 int
45822 main ()
45823 {
45824 if (!symlink ("a", "conftest.link/")) return 1;
45825       if (symlink ("conftest.f", "conftest.lnk2")) return 2;
45826       if (!symlink ("a", "conftest.lnk2/")) return 3;
45827   ;
45828   return 0;
45829 }
45830 _ACEOF
45831 rm -f conftest$ac_exeext
45832 if { (ac_try="$ac_link"
45833 case "(($ac_try" in
45834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45835   *) ac_try_echo=$ac_try;;
45836 esac
45837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45838 $as_echo "$ac_try_echo") >&5
45839   (eval "$ac_link") 2>&5
45840   ac_status=$?
45841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45843   { (case "(($ac_try" in
45844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45845   *) ac_try_echo=$ac_try;;
45846 esac
45847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45848 $as_echo "$ac_try_echo") >&5
45849   (eval "$ac_try") 2>&5
45850   ac_status=$?
45851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45852   (exit $ac_status); }; }; then
45853   gl_cv_func_symlink_works=yes
45854 else
45855   $as_echo "$as_me: program exited with status $ac_status" >&5
45856 $as_echo "$as_me: failed program was:" >&5
45857 sed 's/^/| /' conftest.$ac_ext >&5
45858
45859 ( exit $ac_status )
45860 gl_cv_func_symlink_works=no
45861 fi
45862 rm -rf conftest.dSYM
45863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45864 fi
45865
45866
45867       rm -f conftest.f conftest.link conftest.lnk2
45868 fi
45869 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_symlink_works" >&5
45870 $as_echo "$gl_cv_func_symlink_works" >&6; }
45871     if test "$gl_cv_func_symlink_works" != yes; then
45872       REPLACE_SYMLINK=1
45873
45874
45875
45876
45877
45878
45879
45880
45881   gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
45882
45883     fi
45884   fi
45885
45886
45887
45888
45889   GNULIB_SYMLINK=1
45890
45891
45892
45893 cat >>confdefs.h <<\_ACEOF
45894 #define GNULIB_TEST_SYMLINK 1
45895 _ACEOF
45896
45897
45898
45899   # Code from module symlinkat:
45900
45901
45902
45903
45904
45905
45906
45907
45908
45909
45910   if test $ac_cv_func_symlinkat = no; then
45911     HAVE_SYMLINKAT=0
45912
45913
45914
45915
45916
45917
45918
45919
45920   gl_LIBOBJS="$gl_LIBOBJS symlinkat.$ac_objext"
45921
45922   fi
45923
45924
45925
45926
45927   GNULIB_SYMLINKAT=1
45928
45929
45930
45931 cat >>confdefs.h <<\_ACEOF
45932 #define GNULIB_TEST_SYMLINKAT 1
45933 _ACEOF
45934
45935
45936
45937   # Code from module sys_stat:
45938
45939
45940
45941
45942
45943
45944
45945
45946
45947
45948
45949
45950
45951
45952
45953
45954
45955
45956      if test $gl_cv_have_include_next = yes; then
45957        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
45958      else
45959        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
45960 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
45961 if test "${gl_cv_next_sys_stat_h+set}" = set; then
45962   $as_echo_n "(cached) " >&6
45963 else
45964
45965           if test $ac_cv_header_sys_stat_h = yes; then
45966             cat >conftest.$ac_ext <<_ACEOF
45967 /* confdefs.h.  */
45968 _ACEOF
45969 cat confdefs.h >>conftest.$ac_ext
45970 cat >>conftest.$ac_ext <<_ACEOF
45971 /* end confdefs.h.  */
45972 #include <sys/stat.h>
45973
45974 _ACEOF
45975                                                                                                 case "$host_os" in
45976               aix*) gl_absname_cpp="$ac_cpp -C" ;;
45977               *)    gl_absname_cpp="$ac_cpp" ;;
45978             esac
45979                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45980                sed -n '\#/sys/stat.h#{
45981                  s#.*"\(.*/sys/stat.h\)".*#\1#
45982                  s#^/[^/]#//&#
45983                  p
45984                  q
45985                }'`'"'
45986           else
45987             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
45988           fi
45989
45990 fi
45991 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
45992 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
45993      fi
45994      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
45995
45996      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45997        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45998        gl_next_as_first_directive='<'sys/stat.h'>'
45999      else
46000        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46001        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
46002      fi
46003      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
46004
46005
46006
46007
46008       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
46009 $as_echo_n "checking for nlink_t... " >&6; }
46010 if test "${ac_cv_type_nlink_t+set}" = set; then
46011   $as_echo_n "(cached) " >&6
46012 else
46013   ac_cv_type_nlink_t=no
46014 cat >conftest.$ac_ext <<_ACEOF
46015 /* confdefs.h.  */
46016 _ACEOF
46017 cat confdefs.h >>conftest.$ac_ext
46018 cat >>conftest.$ac_ext <<_ACEOF
46019 /* end confdefs.h.  */
46020 #include <sys/types.h>
46021      #include <sys/stat.h>
46022
46023 int
46024 main ()
46025 {
46026 if (sizeof (nlink_t))
46027        return 0;
46028   ;
46029   return 0;
46030 }
46031 _ACEOF
46032 rm -f conftest.$ac_objext
46033 if { (ac_try="$ac_compile"
46034 case "(($ac_try" in
46035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46036   *) ac_try_echo=$ac_try;;
46037 esac
46038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46039 $as_echo "$ac_try_echo") >&5
46040   (eval "$ac_compile") 2>conftest.er1
46041   ac_status=$?
46042   grep -v '^ *+' conftest.er1 >conftest.err
46043   rm -f conftest.er1
46044   cat conftest.err >&5
46045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046   (exit $ac_status); } && {
46047          test -z "$ac_c_werror_flag" ||
46048          test ! -s conftest.err
46049        } && test -s conftest.$ac_objext; then
46050   cat >conftest.$ac_ext <<_ACEOF
46051 /* confdefs.h.  */
46052 _ACEOF
46053 cat confdefs.h >>conftest.$ac_ext
46054 cat >>conftest.$ac_ext <<_ACEOF
46055 /* end confdefs.h.  */
46056 #include <sys/types.h>
46057      #include <sys/stat.h>
46058
46059 int
46060 main ()
46061 {
46062 if (sizeof ((nlink_t)))
46063           return 0;
46064   ;
46065   return 0;
46066 }
46067 _ACEOF
46068 rm -f conftest.$ac_objext
46069 if { (ac_try="$ac_compile"
46070 case "(($ac_try" in
46071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46072   *) ac_try_echo=$ac_try;;
46073 esac
46074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46075 $as_echo "$ac_try_echo") >&5
46076   (eval "$ac_compile") 2>conftest.er1
46077   ac_status=$?
46078   grep -v '^ *+' conftest.er1 >conftest.err
46079   rm -f conftest.er1
46080   cat conftest.err >&5
46081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46082   (exit $ac_status); } && {
46083          test -z "$ac_c_werror_flag" ||
46084          test ! -s conftest.err
46085        } && test -s conftest.$ac_objext; then
46086   :
46087 else
46088   $as_echo "$as_me: failed program was:" >&5
46089 sed 's/^/| /' conftest.$ac_ext >&5
46090
46091         ac_cv_type_nlink_t=yes
46092 fi
46093
46094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46095 else
46096   $as_echo "$as_me: failed program was:" >&5
46097 sed 's/^/| /' conftest.$ac_ext >&5
46098
46099
46100 fi
46101
46102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46103 fi
46104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
46105 $as_echo "$ac_cv_type_nlink_t" >&6; }
46106 if test "x$ac_cv_type_nlink_t" = x""yes; then
46107   :
46108 else
46109
46110 cat >>confdefs.h <<\_ACEOF
46111 #define nlink_t int
46112 _ACEOF
46113
46114 fi
46115
46116
46117
46118
46119
46120
46121
46122
46123
46124
46125
46126
46127
46128
46129
46130   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
46131     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46132     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
46133 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46134 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
46135   $as_echo_n "(cached) " >&6
46136 else
46137   cat >conftest.$ac_ext <<_ACEOF
46138 /* confdefs.h.  */
46139 _ACEOF
46140 cat confdefs.h >>conftest.$ac_ext
46141 cat >>conftest.$ac_ext <<_ACEOF
46142 /* end confdefs.h.  */
46143 #include <sys/stat.h>
46144
46145 int
46146 main ()
46147 {
46148 #undef $gl_func
46149   (void) $gl_func;
46150   ;
46151   return 0;
46152 }
46153 _ACEOF
46154 rm -f conftest.$ac_objext
46155 if { (ac_try="$ac_compile"
46156 case "(($ac_try" in
46157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46158   *) ac_try_echo=$ac_try;;
46159 esac
46160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46161 $as_echo "$ac_try_echo") >&5
46162   (eval "$ac_compile") 2>conftest.er1
46163   ac_status=$?
46164   grep -v '^ *+' conftest.er1 >conftest.err
46165   rm -f conftest.er1
46166   cat conftest.err >&5
46167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168   (exit $ac_status); } && {
46169          test -z "$ac_c_werror_flag" ||
46170          test ! -s conftest.err
46171        } && test -s conftest.$ac_objext; then
46172   eval "$as_gl_Symbol=yes"
46173 else
46174   $as_echo "$as_me: failed program was:" >&5
46175 sed 's/^/| /' conftest.$ac_ext >&5
46176
46177         eval "$as_gl_Symbol=no"
46178 fi
46179
46180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46181 fi
46182 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
46183                  $as_echo "$as_val"'`
46184                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46185 $as_echo "$ac_res" >&6; }
46186      as_val=`eval 'as_val=${'$as_gl_Symbol'}
46187                  $as_echo "$as_val"'`
46188    if test "x$as_val" = x""yes; then
46189   cat >>confdefs.h <<_ACEOF
46190 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46191 _ACEOF
46192
46193                      eval ac_cv_have_decl_$gl_func=yes
46194 fi
46195
46196       done
46197
46198
46199   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
46200 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
46201 if test -z "$MKDIR_P"; then
46202   if test "${ac_cv_path_mkdir+set}" = set; then
46203   $as_echo_n "(cached) " >&6
46204 else
46205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
46207 do
46208   IFS=$as_save_IFS
46209   test -z "$as_dir" && as_dir=.
46210   for ac_prog in mkdir gmkdir; do
46211          for ac_exec_ext in '' $ac_executable_extensions; do
46212            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
46213            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
46214              'mkdir (GNU coreutils) '* | \
46215              'mkdir (coreutils) '* | \
46216              'mkdir (fileutils) '4.1*)
46217                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
46218                break 3;;
46219            esac
46220          done
46221        done
46222 done
46223 IFS=$as_save_IFS
46224
46225 fi
46226
46227   if test "${ac_cv_path_mkdir+set}" = set; then
46228     MKDIR_P="$ac_cv_path_mkdir -p"
46229   else
46230     # As a last resort, use the slow shell script.  Don't cache a
46231     # value for MKDIR_P within a source directory, because that will
46232     # break other packages using the cache if that directory is
46233     # removed, or if the value is a relative name.
46234     test -d ./--version && rmdir ./--version
46235     MKDIR_P="$ac_install_sh -d"
46236   fi
46237 fi
46238 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
46239 $as_echo "$MKDIR_P" >&6; }
46240
46241
46242   # Code from module sys_time:
46243
46244
46245
46246   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
46247 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
46248 if test -z "$MKDIR_P"; then
46249   if test "${ac_cv_path_mkdir+set}" = set; then
46250   $as_echo_n "(cached) " >&6
46251 else
46252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46253 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
46254 do
46255   IFS=$as_save_IFS
46256   test -z "$as_dir" && as_dir=.
46257   for ac_prog in mkdir gmkdir; do
46258          for ac_exec_ext in '' $ac_executable_extensions; do
46259            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
46260            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
46261              'mkdir (GNU coreutils) '* | \
46262              'mkdir (coreutils) '* | \
46263              'mkdir (fileutils) '4.1*)
46264                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
46265                break 3;;
46266            esac
46267          done
46268        done
46269 done
46270 IFS=$as_save_IFS
46271
46272 fi
46273
46274   if test "${ac_cv_path_mkdir+set}" = set; then
46275     MKDIR_P="$ac_cv_path_mkdir -p"
46276   else
46277     # As a last resort, use the slow shell script.  Don't cache a
46278     # value for MKDIR_P within a source directory, because that will
46279     # break other packages using the cache if that directory is
46280     # removed, or if the value is a relative name.
46281     test -d ./--version && rmdir ./--version
46282     MKDIR_P="$ac_install_sh -d"
46283   fi
46284 fi
46285 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
46286 $as_echo "$MKDIR_P" >&6; }
46287
46288
46289   # Code from module sysexits:
46290
46291
46292
46293
46294
46295
46296
46297   if test $ac_cv_header_sysexits_h = yes; then
46298     HAVE_SYSEXITS_H=1
46299
46300
46301
46302
46303
46304
46305
46306
46307
46308
46309
46310      if test $gl_cv_have_include_next = yes; then
46311        gl_cv_next_sysexits_h='<'sysexits.h'>'
46312      else
46313        { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
46314 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
46315 if test "${gl_cv_next_sysexits_h+set}" = set; then
46316   $as_echo_n "(cached) " >&6
46317 else
46318
46319           if test $ac_cv_header_sysexits_h = yes; then
46320             cat >conftest.$ac_ext <<_ACEOF
46321 /* confdefs.h.  */
46322 _ACEOF
46323 cat confdefs.h >>conftest.$ac_ext
46324 cat >>conftest.$ac_ext <<_ACEOF
46325 /* end confdefs.h.  */
46326 #include <sysexits.h>
46327
46328 _ACEOF
46329                                                                                                 case "$host_os" in
46330               aix*) gl_absname_cpp="$ac_cpp -C" ;;
46331               *)    gl_absname_cpp="$ac_cpp" ;;
46332             esac
46333                                                 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46334                sed -n '\#/sysexits.h#{
46335                  s#.*"\(.*/sysexits.h\)".*#\1#
46336                  s#^/[^/]#//&#
46337                  p
46338                  q
46339                }'`'"'
46340           else
46341             gl_cv_next_sysexits_h='<'sysexits.h'>'
46342           fi
46343
46344 fi
46345 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
46346 $as_echo "$gl_cv_next_sysexits_h" >&6; }
46347      fi
46348      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
46349
46350      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46351        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46352        gl_next_as_first_directive='<'sysexits.h'>'
46353      else
46354        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46355        gl_next_as_first_directive=$gl_cv_next_sysexits_h
46356      fi
46357      NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
46358
46359
46360
46361     cat >conftest.$ac_ext <<_ACEOF
46362 /* confdefs.h.  */
46363 _ACEOF
46364 cat confdefs.h >>conftest.$ac_ext
46365 cat >>conftest.$ac_ext <<_ACEOF
46366 /* end confdefs.h.  */
46367 #include <sysexits.h>
46368 int
46369 main ()
46370 {
46371 switch (0)
46372           {
46373           case EX_OK:
46374           case EX_USAGE:
46375           case EX_DATAERR:
46376           case EX_NOINPUT:
46377           case EX_NOUSER:
46378           case EX_NOHOST:
46379           case EX_UNAVAILABLE:
46380           case EX_SOFTWARE:
46381           case EX_OSERR:
46382           case EX_OSFILE:
46383           case EX_CANTCREAT:
46384           case EX_IOERR:
46385           case EX_TEMPFAIL:
46386           case EX_PROTOCOL:
46387           case EX_NOPERM:
46388           case EX_CONFIG:
46389             break;
46390           }
46391
46392   ;
46393   return 0;
46394 }
46395 _ACEOF
46396 rm -f conftest.$ac_objext
46397 if { (ac_try="$ac_compile"
46398 case "(($ac_try" in
46399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46400   *) ac_try_echo=$ac_try;;
46401 esac
46402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46403 $as_echo "$ac_try_echo") >&5
46404   (eval "$ac_compile") 2>conftest.er1
46405   ac_status=$?
46406   grep -v '^ *+' conftest.er1 >conftest.err
46407   rm -f conftest.er1
46408   cat conftest.err >&5
46409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46410   (exit $ac_status); } && {
46411          test -z "$ac_c_werror_flag" ||
46412          test ! -s conftest.err
46413        } && test -s conftest.$ac_objext; then
46414   SYSEXITS_H=
46415 else
46416   $as_echo "$as_me: failed program was:" >&5
46417 sed 's/^/| /' conftest.$ac_ext >&5
46418
46419         SYSEXITS_H=sysexits.h
46420 fi
46421
46422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46423   else
46424     HAVE_SYSEXITS_H=0
46425     SYSEXITS_H=sysexits.h
46426   fi
46427
46428
46429
46430   # Code from module tempname:
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
46443
46444
46445   :
46446
46447
46448   # Code from module time:
46449
46450
46451
46452   # Code from module time_r:
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465   if test $ac_cv_func_localtime_r = yes; then
46466     { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
46467 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
46468 if test "${gl_cv_time_r_posix+set}" = set; then
46469   $as_echo_n "(cached) " >&6
46470 else
46471   cat >conftest.$ac_ext <<_ACEOF
46472 /* confdefs.h.  */
46473 _ACEOF
46474 cat confdefs.h >>conftest.$ac_ext
46475 cat >>conftest.$ac_ext <<_ACEOF
46476 /* end confdefs.h.  */
46477 #include <time.h>
46478 int
46479 main ()
46480 {
46481 /* We don't need to append 'restrict's to the argument types,
46482                  even though the POSIX signature has the 'restrict's,
46483                  since C99 says they can't affect type compatibility.  */
46484               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
46485               if (ptr) return 0;
46486               /* Check the return type is a pointer.
46487                  On HP-UX 10 it is 'int'.  */
46488               *localtime_r (0, 0);
46489   ;
46490   return 0;
46491 }
46492
46493 _ACEOF
46494 rm -f conftest.$ac_objext
46495 if { (ac_try="$ac_compile"
46496 case "(($ac_try" in
46497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46498   *) ac_try_echo=$ac_try;;
46499 esac
46500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46501 $as_echo "$ac_try_echo") >&5
46502   (eval "$ac_compile") 2>conftest.er1
46503   ac_status=$?
46504   grep -v '^ *+' conftest.er1 >conftest.err
46505   rm -f conftest.er1
46506   cat conftest.err >&5
46507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508   (exit $ac_status); } && {
46509          test -z "$ac_c_werror_flag" ||
46510          test ! -s conftest.err
46511        } && test -s conftest.$ac_objext; then
46512   gl_cv_time_r_posix=yes
46513 else
46514   $as_echo "$as_me: failed program was:" >&5
46515 sed 's/^/| /' conftest.$ac_ext >&5
46516
46517         gl_cv_time_r_posix=no
46518 fi
46519
46520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46521
46522 fi
46523 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
46524 $as_echo "$gl_cv_time_r_posix" >&6; }
46525     if test $gl_cv_time_r_posix = yes; then
46526       REPLACE_LOCALTIME_R=0
46527     else
46528       REPLACE_LOCALTIME_R=1
46529     fi
46530   else
46531     HAVE_LOCALTIME_R=0
46532   fi
46533   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
46534
46535
46536
46537
46538
46539
46540
46541
46542   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
46543
46544
46545   :
46546
46547   fi
46548
46549
46550
46551
46552   GNULIB_TIME_R=1
46553
46554
46555
46556 cat >>confdefs.h <<\_ACEOF
46557 #define GNULIB_TEST_TIME_R 1
46558 _ACEOF
46559
46560
46561
46562   # Code from module timespec:
46563
46564
46565
46566   # Code from module unistd:
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
46579
46580
46581
46582      if test $gl_cv_have_include_next = yes; then
46583        gl_cv_next_unistd_h='<'unistd.h'>'
46584      else
46585        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
46586 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
46587 if test "${gl_cv_next_unistd_h+set}" = set; then
46588   $as_echo_n "(cached) " >&6
46589 else
46590
46591           if test $ac_cv_header_unistd_h = yes; then
46592             cat >conftest.$ac_ext <<_ACEOF
46593 /* confdefs.h.  */
46594 _ACEOF
46595 cat confdefs.h >>conftest.$ac_ext
46596 cat >>conftest.$ac_ext <<_ACEOF
46597 /* end confdefs.h.  */
46598 #include <unistd.h>
46599
46600 _ACEOF
46601                                                                                                 case "$host_os" in
46602               aix*) gl_absname_cpp="$ac_cpp -C" ;;
46603               *)    gl_absname_cpp="$ac_cpp" ;;
46604             esac
46605                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46606                sed -n '\#/unistd.h#{
46607                  s#.*"\(.*/unistd.h\)".*#\1#
46608                  s#^/[^/]#//&#
46609                  p
46610                  q
46611                }'`'"'
46612           else
46613             gl_cv_next_unistd_h='<'unistd.h'>'
46614           fi
46615
46616 fi
46617 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
46618 $as_echo "$gl_cv_next_unistd_h" >&6; }
46619      fi
46620      NEXT_UNISTD_H=$gl_cv_next_unistd_h
46621
46622      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46623        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46624        gl_next_as_first_directive='<'unistd.h'>'
46625      else
46626        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46627        gl_next_as_first_directive=$gl_cv_next_unistd_h
46628      fi
46629      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
46630
46631
46632
46633
46634
46635
46636
46637
46638
46639
46640   if test $ac_cv_header_unistd_h = yes; then
46641     HAVE_UNISTD_H=1
46642   else
46643     HAVE_UNISTD_H=0
46644   fi
46645
46646
46647
46648
46649
46650
46651
46652
46653
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678
46679
46680
46681
46682
46683
46684
46685
46686   for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
46687     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46688     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
46689 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46690 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
46691   $as_echo_n "(cached) " >&6
46692 else
46693   cat >conftest.$ac_ext <<_ACEOF
46694 /* confdefs.h.  */
46695 _ACEOF
46696 cat confdefs.h >>conftest.$ac_ext
46697 cat >>conftest.$ac_ext <<_ACEOF
46698 /* end confdefs.h.  */
46699 #include <unistd.h>
46700 /* Some systems declare various items in the wrong headers.  */
46701 #ifndef __GLIBC__
46702 # include <fcntl.h>
46703 # include <stdio.h>
46704 # include <stdlib.h>
46705 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
46706 #  include <io.h>
46707 # endif
46708 #endif
46709
46710 int
46711 main ()
46712 {
46713 #undef $gl_func
46714   (void) $gl_func;
46715   ;
46716   return 0;
46717 }
46718 _ACEOF
46719 rm -f conftest.$ac_objext
46720 if { (ac_try="$ac_compile"
46721 case "(($ac_try" in
46722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46723   *) ac_try_echo=$ac_try;;
46724 esac
46725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46726 $as_echo "$ac_try_echo") >&5
46727   (eval "$ac_compile") 2>conftest.er1
46728   ac_status=$?
46729   grep -v '^ *+' conftest.er1 >conftest.err
46730   rm -f conftest.er1
46731   cat conftest.err >&5
46732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46733   (exit $ac_status); } && {
46734          test -z "$ac_c_werror_flag" ||
46735          test ! -s conftest.err
46736        } && test -s conftest.$ac_objext; then
46737   eval "$as_gl_Symbol=yes"
46738 else
46739   $as_echo "$as_me: failed program was:" >&5
46740 sed 's/^/| /' conftest.$ac_ext >&5
46741
46742         eval "$as_gl_Symbol=no"
46743 fi
46744
46745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46746 fi
46747 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
46748                  $as_echo "$as_val"'`
46749                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46750 $as_echo "$ac_res" >&6; }
46751      as_val=`eval 'as_val=${'$as_gl_Symbol'}
46752                  $as_echo "$as_val"'`
46753    if test "x$as_val" = x""yes; then
46754   cat >>confdefs.h <<_ACEOF
46755 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46756 _ACEOF
46757
46758                      eval ac_cv_have_decl_$gl_func=yes
46759 fi
46760
46761       done
46762
46763
46764   # Code from module unistd-safer:
46765
46766
46767
46768
46769
46770
46771
46772
46773
46774
46775
46776
46777
46778
46779
46780   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
46781
46782
46783
46784
46785
46786
46787
46788
46789
46790   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
46791
46792
46793
46794
46795
46796
46797
46798
46799
46800   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
46801
46802
46803   # Code from module unitypes:
46804
46805
46806       if  { test "$HAVE_LIBUNISTRING" != yes \
46807     || {
46808
46809
46810
46811             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46812             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46813                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46814                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46815                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46816                          }
46817                     }
46818                }
46819
46820
46821
46822
46823        }
46824   }; then
46825     LIBUNISTRING_UNITYPES_H='unitypes.h'
46826   else
46827     LIBUNISTRING_UNITYPES_H=
46828   fi
46829
46830
46831   # Code from module uniwidth/base:
46832
46833
46834       if  { test "$HAVE_LIBUNISTRING" != yes \
46835     || {
46836
46837
46838
46839             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46840             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46841                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46842                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46843                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46844                          }
46845                     }
46846                }
46847
46848
46849
46850
46851        }
46852   }; then
46853     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
46854   else
46855     LIBUNISTRING_UNIWIDTH_H=
46856   fi
46857
46858
46859   # Code from module uniwidth/width:
46860
46861
46862        if  { test "$HAVE_LIBUNISTRING" != yes \
46863     || {
46864
46865
46866
46867             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46868             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46869                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46870                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46871                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46872                          }
46873                     }
46874                }
46875
46876
46877
46878
46879        }
46880   }; then
46881   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
46882   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
46883 else
46884   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
46885   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
46886 fi
46887
46888
46889   # Code from module unlink:
46890
46891
46892
46893
46894     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
46895 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
46896 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
46897   $as_echo_n "(cached) " >&6
46898 else
46899   touch conftest.file
46900      # Assume that if we have lstat, we can also check symlinks.
46901      if test $ac_cv_func_lstat = yes; then
46902        ln -s conftest.file conftest.lnk
46903      fi
46904      if test "$cross_compiling" = yes; then
46905   gl_cv_func_unlink_honors_slashes="guessing no"
46906 else
46907   cat >conftest.$ac_ext <<_ACEOF
46908 /* confdefs.h.  */
46909 _ACEOF
46910 cat confdefs.h >>conftest.$ac_ext
46911 cat >>conftest.$ac_ext <<_ACEOF
46912 /* end confdefs.h.  */
46913 #include <unistd.h>
46914            #include <errno.h>
46915
46916 int
46917 main ()
46918 {
46919 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
46920 #if HAVE_LSTAT
46921       if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
46922 #endif
46923
46924   ;
46925   return 0;
46926 }
46927 _ACEOF
46928 rm -f conftest$ac_exeext
46929 if { (ac_try="$ac_link"
46930 case "(($ac_try" in
46931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46932   *) ac_try_echo=$ac_try;;
46933 esac
46934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46935 $as_echo "$ac_try_echo") >&5
46936   (eval "$ac_link") 2>&5
46937   ac_status=$?
46938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46940   { (case "(($ac_try" in
46941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46942   *) ac_try_echo=$ac_try;;
46943 esac
46944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46945 $as_echo "$ac_try_echo") >&5
46946   (eval "$ac_try") 2>&5
46947   ac_status=$?
46948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46949   (exit $ac_status); }; }; then
46950   gl_cv_func_unlink_honors_slashes=yes
46951 else
46952   $as_echo "$as_me: program exited with status $ac_status" >&5
46953 $as_echo "$as_me: failed program was:" >&5
46954 sed 's/^/| /' conftest.$ac_ext >&5
46955
46956 ( exit $ac_status )
46957 gl_cv_func_unlink_honors_slashes=no
46958 fi
46959 rm -rf conftest.dSYM
46960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46961 fi
46962
46963
46964      rm -f conftest.file conftest.lnk
46965 fi
46966 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
46967 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
46968       { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails is it should" >&5
46969 $as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
46970 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
46971   $as_echo_n "(cached) " >&6
46972 else
46973   case "$host_os" in
46974        darwin*)
46975                                                       if {
46976               # Use the mktemp program if available. If not available, hide the error
46977               # message.
46978               tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
46979               test -n "$tmp" && test -d "$tmp"
46980             } ||
46981             {
46982               # Use a simple mkdir command. It is guaranteed to fail if the directory
46983               # already exists.  $RANDOM is bash specific and expands to empty in shells
46984               # other than bash, ksh and zsh.  Its use does not increase security;
46985               # rather, it minimizes the probability of failure in a very cluttered /tmp
46986               # directory.
46987               tmp=/tmp/gt$$-$RANDOM
46988               (umask 077 && mkdir "$tmp")
46989             }; then
46990            mkdir "$tmp/subdir"
46991            GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
46992            export GL_SUBDIR_FOR_UNLINK
46993            if test "$cross_compiling" = yes; then
46994   gl_cv_func_unlink_parent_fails="guessing no"
46995 else
46996   cat >conftest.$ac_ext <<_ACEOF
46997 /* confdefs.h.  */
46998 _ACEOF
46999 cat confdefs.h >>conftest.$ac_ext
47000 cat >>conftest.$ac_ext <<_ACEOF
47001 /* end confdefs.h.  */
47002
47003                 #include <stdlib.h>
47004                 #include <unistd.h>
47005                 int main ()
47006                 {
47007                   if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
47008                     return 1;
47009                   return unlink ("..") == 0;
47010                 }
47011
47012 _ACEOF
47013 rm -f conftest$ac_exeext
47014 if { (ac_try="$ac_link"
47015 case "(($ac_try" in
47016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47017   *) ac_try_echo=$ac_try;;
47018 esac
47019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47020 $as_echo "$ac_try_echo") >&5
47021   (eval "$ac_link") 2>&5
47022   ac_status=$?
47023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47025   { (case "(($ac_try" in
47026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47027   *) ac_try_echo=$ac_try;;
47028 esac
47029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47030 $as_echo "$ac_try_echo") >&5
47031   (eval "$ac_try") 2>&5
47032   ac_status=$?
47033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47034   (exit $ac_status); }; }; then
47035   gl_cv_func_unlink_parent_fails=yes
47036 else
47037   $as_echo "$as_me: program exited with status $ac_status" >&5
47038 $as_echo "$as_me: failed program was:" >&5
47039 sed 's/^/| /' conftest.$ac_ext >&5
47040
47041 ( exit $ac_status )
47042 gl_cv_func_unlink_parent_fails=no
47043 fi
47044 rm -rf conftest.dSYM
47045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47046 fi
47047
47048
47049            unset GL_SUBDIR_FOR_UNLINK
47050            rm -rf "$tmp"
47051          else
47052            gl_cv_func_unlink_parent_fails="guessing no"
47053          fi
47054          ;;
47055        *)
47056          gl_cv_func_unlink_parent_fails="guessing yes"
47057          ;;
47058      esac
47059
47060 fi
47061 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
47062 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
47063   case "$gl_cv_func_unlink_parent_fails" in
47064     *no)
47065
47066 cat >>confdefs.h <<\_ACEOF
47067 #define UNLINK_PARENT_BUG 1
47068 _ACEOF
47069
47070       ;;
47071   esac
47072   if test "$gl_cv_func_unlink_honors_slashes" != yes \
47073      || { case "$gl_cv_func_unlink_parent_fails" in
47074             *yes) false;;
47075             *no) true;;
47076           esac
47077         }; then
47078     REPLACE_UNLINK=1
47079
47080
47081
47082
47083
47084
47085
47086
47087   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
47088
47089   fi
47090
47091
47092
47093
47094   GNULIB_UNLINK=1
47095
47096
47097
47098 cat >>confdefs.h <<\_ACEOF
47099 #define GNULIB_TEST_UNLINK 1
47100 _ACEOF
47101
47102
47103
47104   # Code from module unlinkdir:
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
47123
47124
47125   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
47126   # Cygwin, and mingw never let anyone (even root) unlink directories.
47127   # If anyone knows of another system for which unlink can never
47128   # remove a directory, please report it to <bug-coreutils@gnu.org>.
47129   # Unfortunately this is difficult to test for, since it requires root access
47130   # and might create garbage in the file system,
47131   # so the code below simply relies on the kernel name and version number.
47132   case $host_os in
47133   gnu[0-9]* | \
47134   linux-* | linux | \
47135   freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
47136   cygwin | \
47137   mingw*)
47138
47139 cat >>confdefs.h <<\_ACEOF
47140 #define UNLINK_CANNOT_UNLINK_DIR 1
47141 _ACEOF
47142 ;;
47143   esac
47144
47145   # Code from module unlocked-io:
47146
47147
47148 cat >>confdefs.h <<\_ACEOF
47149 #define USE_UNLOCKED_IO 1
47150 _ACEOF
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208   # Code from module unsetenv:
47209
47210
47211
47212 for ac_func in unsetenv
47213 do
47214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47216 $as_echo_n "checking for $ac_func... " >&6; }
47217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47218   $as_echo_n "(cached) " >&6
47219 else
47220   cat >conftest.$ac_ext <<_ACEOF
47221 /* confdefs.h.  */
47222 _ACEOF
47223 cat confdefs.h >>conftest.$ac_ext
47224 cat >>conftest.$ac_ext <<_ACEOF
47225 /* end confdefs.h.  */
47226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47228 #define $ac_func innocuous_$ac_func
47229
47230 /* System header to define __stub macros and hopefully few prototypes,
47231     which can conflict with char $ac_func (); below.
47232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47233     <limits.h> exists even on freestanding compilers.  */
47234
47235 #ifdef __STDC__
47236 # include <limits.h>
47237 #else
47238 # include <assert.h>
47239 #endif
47240
47241 #undef $ac_func
47242
47243 /* Override any GCC internal prototype to avoid an error.
47244    Use char because int might match the return type of a GCC
47245    builtin and then its argument prototype would still apply.  */
47246 #ifdef __cplusplus
47247 extern "C"
47248 #endif
47249 char $ac_func ();
47250 /* The GNU C library defines this for functions which it implements
47251     to always fail with ENOSYS.  Some functions are actually named
47252     something starting with __ and the normal name is an alias.  */
47253 #if defined __stub_$ac_func || defined __stub___$ac_func
47254 choke me
47255 #endif
47256
47257 int
47258 main ()
47259 {
47260 return $ac_func ();
47261   ;
47262   return 0;
47263 }
47264 _ACEOF
47265 rm -f conftest.$ac_objext conftest$ac_exeext
47266 if { (ac_try="$ac_link"
47267 case "(($ac_try" in
47268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47269   *) ac_try_echo=$ac_try;;
47270 esac
47271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47272 $as_echo "$ac_try_echo") >&5
47273   (eval "$ac_link") 2>conftest.er1
47274   ac_status=$?
47275   grep -v '^ *+' conftest.er1 >conftest.err
47276   rm -f conftest.er1
47277   cat conftest.err >&5
47278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279   (exit $ac_status); } && {
47280          test -z "$ac_c_werror_flag" ||
47281          test ! -s conftest.err
47282        } && test -s conftest$ac_exeext && {
47283          test "$cross_compiling" = yes ||
47284          $as_test_x conftest$ac_exeext
47285        }; then
47286   eval "$as_ac_var=yes"
47287 else
47288   $as_echo "$as_me: failed program was:" >&5
47289 sed 's/^/| /' conftest.$ac_ext >&5
47290
47291         eval "$as_ac_var=no"
47292 fi
47293
47294 rm -rf conftest.dSYM
47295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47296       conftest$ac_exeext conftest.$ac_ext
47297 fi
47298 ac_res=`eval 'as_val=${'$as_ac_var'}
47299                  $as_echo "$as_val"'`
47300                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47301 $as_echo "$ac_res" >&6; }
47302 as_val=`eval 'as_val=${'$as_ac_var'}
47303                  $as_echo "$as_val"'`
47304    if test "x$as_val" = x""yes; then
47305   cat >>confdefs.h <<_ACEOF
47306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47307 _ACEOF
47308
47309 fi
47310 done
47311
47312   if test $ac_cv_func_unsetenv = no; then
47313     HAVE_UNSETENV=0
47314
47315
47316
47317
47318
47319
47320
47321
47322   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333   else
47334         { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
47335 $as_echo_n "checking for unsetenv() return type... " >&6; }
47336 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
47337   $as_echo_n "(cached) " >&6
47338 else
47339   cat >conftest.$ac_ext <<_ACEOF
47340 /* confdefs.h.  */
47341 _ACEOF
47342 cat confdefs.h >>conftest.$ac_ext
47343 cat >>conftest.$ac_ext <<_ACEOF
47344 /* end confdefs.h.  */
47345
47346 #include <stdlib.h>
47347 extern
47348 #ifdef __cplusplus
47349 "C"
47350 #endif
47351 #if defined(__STDC__) || defined(__cplusplus)
47352 int unsetenv (const char *name);
47353 #else
47354 int unsetenv();
47355 #endif
47356
47357 int
47358 main ()
47359 {
47360
47361   ;
47362   return 0;
47363 }
47364 _ACEOF
47365 rm -f conftest.$ac_objext
47366 if { (ac_try="$ac_compile"
47367 case "(($ac_try" in
47368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47369   *) ac_try_echo=$ac_try;;
47370 esac
47371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47372 $as_echo "$ac_try_echo") >&5
47373   (eval "$ac_compile") 2>conftest.er1
47374   ac_status=$?
47375   grep -v '^ *+' conftest.er1 >conftest.err
47376   rm -f conftest.er1
47377   cat conftest.err >&5
47378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47379   (exit $ac_status); } && {
47380          test -z "$ac_c_werror_flag" ||
47381          test ! -s conftest.err
47382        } && test -s conftest.$ac_objext; then
47383   gt_cv_func_unsetenv_ret='int'
47384 else
47385   $as_echo "$as_me: failed program was:" >&5
47386 sed 's/^/| /' conftest.$ac_ext >&5
47387
47388         gt_cv_func_unsetenv_ret='void'
47389 fi
47390
47391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47392 fi
47393 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
47394 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
47395     if test $gt_cv_func_unsetenv_ret = 'void'; then
47396
47397 cat >>confdefs.h <<\_ACEOF
47398 #define VOID_UNSETENV 1
47399 _ACEOF
47400
47401       REPLACE_UNSETENV=1
47402
47403
47404
47405
47406
47407
47408
47409
47410   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47411
47412     fi
47413
47414             { $as_echo "$as_me:$LINENO: checking whether unsetenv obeys POSIX" >&5
47415 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
47416 if test "${gl_cv_func_unsetenv_works+set}" = set; then
47417   $as_echo_n "(cached) " >&6
47418 else
47419   if test "$cross_compiling" = yes; then
47420   gl_cv_func_unsetenv_works="guessing no"
47421 else
47422   cat >conftest.$ac_ext <<_ACEOF
47423 /* confdefs.h.  */
47424 _ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h.  */
47428
47429        #include <stdlib.h>
47430        #include <errno.h>
47431
47432 int
47433 main ()
47434 {
47435
47436        char entry[] = "b=2";
47437        if (putenv ((char *) "a=1")) return 1;
47438        if (putenv (entry)) return 2;
47439        entry[0] = 'a';
47440        unsetenv ("a");
47441        if (getenv ("a")) return 3;
47442        if (!unsetenv ("") || errno != EINVAL) return 4;
47443
47444   ;
47445   return 0;
47446 }
47447 _ACEOF
47448 rm -f conftest$ac_exeext
47449 if { (ac_try="$ac_link"
47450 case "(($ac_try" in
47451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47452   *) ac_try_echo=$ac_try;;
47453 esac
47454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47455 $as_echo "$ac_try_echo") >&5
47456   (eval "$ac_link") 2>&5
47457   ac_status=$?
47458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47460   { (case "(($ac_try" in
47461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47462   *) ac_try_echo=$ac_try;;
47463 esac
47464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47465 $as_echo "$ac_try_echo") >&5
47466   (eval "$ac_try") 2>&5
47467   ac_status=$?
47468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47469   (exit $ac_status); }; }; then
47470   gl_cv_func_unsetenv_works=yes
47471 else
47472   $as_echo "$as_me: program exited with status $ac_status" >&5
47473 $as_echo "$as_me: failed program was:" >&5
47474 sed 's/^/| /' conftest.$ac_ext >&5
47475
47476 ( exit $ac_status )
47477 gl_cv_func_unsetenv_works=no
47478 fi
47479 rm -rf conftest.dSYM
47480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47481 fi
47482
47483
47484 fi
47485 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
47486 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
47487     if test "$gl_cv_func_unsetenv_works" != yes; then
47488       REPLACE_UNSETENV=1
47489
47490
47491
47492
47493
47494
47495
47496
47497   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47498
47499     fi
47500   fi
47501
47502
47503
47504
47505   GNULIB_UNSETENV=1
47506
47507
47508
47509 cat >>confdefs.h <<\_ACEOF
47510 #define GNULIB_TEST_UNSETENV 1
47511 _ACEOF
47512
47513
47514
47515   # Code from module utimens:
47516
47517
47518
47519
47520
47521
47522
47523
47524
47525   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
47526
47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
47547                 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
47548 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
47549 if test "${gl_cv_func_futimesat_works+set}" = set; then
47550   $as_echo_n "(cached) " >&6
47551 else
47552   touch conftest.file
47553        if test "$cross_compiling" = yes; then
47554   gl_cv_func_futimesat_works="guessing no"
47555 else
47556   cat >conftest.$ac_ext <<_ACEOF
47557 /* confdefs.h.  */
47558 _ACEOF
47559 cat confdefs.h >>conftest.$ac_ext
47560 cat >>conftest.$ac_ext <<_ACEOF
47561 /* end confdefs.h.  */
47562
47563 #include <stddef.h>
47564 #include <sys/times.h>
47565
47566 int
47567 main ()
47568 {
47569     int fd = open ("conftest.file", O_RDWR);
47570           if (fd < 0) return 1;
47571           if (futimesat (fd, NULL, NULL)) return 2;
47572
47573   ;
47574   return 0;
47575 }
47576 _ACEOF
47577 rm -f conftest$ac_exeext
47578 if { (ac_try="$ac_link"
47579 case "(($ac_try" in
47580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47581   *) ac_try_echo=$ac_try;;
47582 esac
47583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47584 $as_echo "$ac_try_echo") >&5
47585   (eval "$ac_link") 2>&5
47586   ac_status=$?
47587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47589   { (case "(($ac_try" in
47590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47591   *) ac_try_echo=$ac_try;;
47592 esac
47593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47594 $as_echo "$ac_try_echo") >&5
47595   (eval "$ac_try") 2>&5
47596   ac_status=$?
47597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598   (exit $ac_status); }; }; then
47599   gl_cv_func_futimesat_works=yes
47600 else
47601   $as_echo "$as_me: program exited with status $ac_status" >&5
47602 $as_echo "$as_me: failed program was:" >&5
47603 sed 's/^/| /' conftest.$ac_ext >&5
47604
47605 ( exit $ac_status )
47606 gl_cv_func_futimesat_works=no
47607 fi
47608 rm -rf conftest.dSYM
47609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47610 fi
47611
47612
47613       rm -f conftest.file
47614 fi
47615 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
47616 $as_echo "$gl_cv_func_futimesat_works" >&6; }
47617     if test "$gl_cv_func_futimesat_works" != yes; then
47618
47619 cat >>confdefs.h <<\_ACEOF
47620 #define FUTIMESAT_NULL_BUG 1
47621 _ACEOF
47622
47623     fi
47624   fi
47625
47626   # Code from module utimensat:
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636   if test $ac_cv_func_utimensat = no; then
47637     HAVE_UTIMENSAT=0
47638
47639
47640
47641
47642
47643
47644
47645
47646   gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
47647
47648   else
47649     { $as_echo "$as_me:$LINENO: checking whether utimensat works" >&5
47650 $as_echo_n "checking whether utimensat works... " >&6; }
47651 if test "${gl_cv_func_utimensat_works+set}" = set; then
47652   $as_echo_n "(cached) " >&6
47653 else
47654   if test "$cross_compiling" = yes; then
47655   gl_cv_func_utimensat_works="guessing no"
47656 else
47657   cat >conftest.$ac_ext <<_ACEOF
47658 /* confdefs.h.  */
47659 _ACEOF
47660 cat confdefs.h >>conftest.$ac_ext
47661 cat >>conftest.$ac_ext <<_ACEOF
47662 /* end confdefs.h.  */
47663
47664 #include <fcntl.h>
47665 #include <sys/stat.h>
47666 #include <unistd.h>
47667
47668 int
47669 main ()
47670 {
47671 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
47672       struct stat st;
47673       const char *f = "conftest.file";
47674       if (close (creat (f, 0600))) return 1;
47675       if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW)) return 2;
47676       if (utimensat (AT_FDCWD, f, ts, 0)) return 3;
47677       sleep (1);
47678       ts[0].tv_nsec = UTIME_NOW;
47679       ts[1].tv_nsec = UTIME_OMIT;
47680       if (utimensat (AT_FDCWD, f, ts, 0)) return 4;
47681       if (stat (f, &st)) return 5;
47682       if (st.st_ctime < st.st_atime) return 6;
47683   ;
47684   return 0;
47685 }
47686 _ACEOF
47687 rm -f conftest$ac_exeext
47688 if { (ac_try="$ac_link"
47689 case "(($ac_try" in
47690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47691   *) ac_try_echo=$ac_try;;
47692 esac
47693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47694 $as_echo "$ac_try_echo") >&5
47695   (eval "$ac_link") 2>&5
47696   ac_status=$?
47697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47699   { (case "(($ac_try" in
47700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47701   *) ac_try_echo=$ac_try;;
47702 esac
47703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47704 $as_echo "$ac_try_echo") >&5
47705   (eval "$ac_try") 2>&5
47706   ac_status=$?
47707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708   (exit $ac_status); }; }; then
47709            cat >conftest.$ac_ext <<_ACEOF
47710 /* confdefs.h.  */
47711 _ACEOF
47712 cat confdefs.h >>conftest.$ac_ext
47713 cat >>conftest.$ac_ext <<_ACEOF
47714 /* end confdefs.h.  */
47715
47716 #ifdef __linux__
47717 /* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
47718    in several file systems as recently as 2.6.32.  Always replace utimensat
47719    to support older kernels.  */
47720 choke me
47721 #endif
47722
47723 int
47724 main ()
47725 {
47726
47727   ;
47728   return 0;
47729 }
47730 _ACEOF
47731 rm -f conftest.$ac_objext
47732 if { (ac_try="$ac_compile"
47733 case "(($ac_try" in
47734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47735   *) ac_try_echo=$ac_try;;
47736 esac
47737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47738 $as_echo "$ac_try_echo") >&5
47739   (eval "$ac_compile") 2>conftest.er1
47740   ac_status=$?
47741   grep -v '^ *+' conftest.er1 >conftest.err
47742   rm -f conftest.er1
47743   cat conftest.err >&5
47744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47745   (exit $ac_status); } && {
47746          test -z "$ac_c_werror_flag" ||
47747          test ! -s conftest.err
47748        } && test -s conftest.$ac_objext; then
47749   gl_cv_func_utimensat_works=yes
47750 else
47751   $as_echo "$as_me: failed program was:" >&5
47752 sed 's/^/| /' conftest.$ac_ext >&5
47753
47754         gl_cv_func_utimensat_works="needs runtime check"
47755 fi
47756
47757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47758 else
47759   $as_echo "$as_me: program exited with status $ac_status" >&5
47760 $as_echo "$as_me: failed program was:" >&5
47761 sed 's/^/| /' conftest.$ac_ext >&5
47762
47763 ( exit $ac_status )
47764 gl_cv_func_utimensat_works=no
47765 fi
47766 rm -rf conftest.dSYM
47767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47768 fi
47769
47770
47771 fi
47772 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_utimensat_works" >&5
47773 $as_echo "$gl_cv_func_utimensat_works" >&6; }
47774     if test "$gl_cv_func_utimensat_works" != yes; then
47775       REPLACE_UTIMENSAT=1
47776
47777
47778
47779
47780
47781
47782
47783
47784   gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
47785
47786     fi
47787   fi
47788
47789
47790
47791
47792   GNULIB_UTIMENSAT=1
47793
47794
47795
47796 cat >>confdefs.h <<\_ACEOF
47797 #define GNULIB_TEST_UTIMENSAT 1
47798 _ACEOF
47799
47800
47801
47802   # Code from module vasnprintf:
47803
47804
47805
47806
47807
47808
47809
47810   if test $ac_cv_func_vasnprintf = no; then
47811
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823
47824
47825
47826   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
47827
47828
47829
47830
47831
47832
47833
47834
47835
47836   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
47857
47858   if test $ac_cv_func_vasnprintf = yes; then
47859
47860 cat >>confdefs.h <<\_ACEOF
47861 #define REPLACE_VASNPRINTF 1
47862 _ACEOF
47863
47864   fi
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47876 $as_echo_n "checking for ptrdiff_t... " >&6; }
47877 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47878   $as_echo_n "(cached) " >&6
47879 else
47880   ac_cv_type_ptrdiff_t=no
47881 cat >conftest.$ac_ext <<_ACEOF
47882 /* confdefs.h.  */
47883 _ACEOF
47884 cat confdefs.h >>conftest.$ac_ext
47885 cat >>conftest.$ac_ext <<_ACEOF
47886 /* end confdefs.h.  */
47887 $ac_includes_default
47888 int
47889 main ()
47890 {
47891 if (sizeof (ptrdiff_t))
47892        return 0;
47893   ;
47894   return 0;
47895 }
47896 _ACEOF
47897 rm -f conftest.$ac_objext
47898 if { (ac_try="$ac_compile"
47899 case "(($ac_try" in
47900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47901   *) ac_try_echo=$ac_try;;
47902 esac
47903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47904 $as_echo "$ac_try_echo") >&5
47905   (eval "$ac_compile") 2>conftest.er1
47906   ac_status=$?
47907   grep -v '^ *+' conftest.er1 >conftest.err
47908   rm -f conftest.er1
47909   cat conftest.err >&5
47910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47911   (exit $ac_status); } && {
47912          test -z "$ac_c_werror_flag" ||
47913          test ! -s conftest.err
47914        } && test -s conftest.$ac_objext; then
47915   cat >conftest.$ac_ext <<_ACEOF
47916 /* confdefs.h.  */
47917 _ACEOF
47918 cat confdefs.h >>conftest.$ac_ext
47919 cat >>conftest.$ac_ext <<_ACEOF
47920 /* end confdefs.h.  */
47921 $ac_includes_default
47922 int
47923 main ()
47924 {
47925 if (sizeof ((ptrdiff_t)))
47926           return 0;
47927   ;
47928   return 0;
47929 }
47930 _ACEOF
47931 rm -f conftest.$ac_objext
47932 if { (ac_try="$ac_compile"
47933 case "(($ac_try" in
47934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47935   *) ac_try_echo=$ac_try;;
47936 esac
47937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47938 $as_echo "$ac_try_echo") >&5
47939   (eval "$ac_compile") 2>conftest.er1
47940   ac_status=$?
47941   grep -v '^ *+' conftest.er1 >conftest.err
47942   rm -f conftest.er1
47943   cat conftest.err >&5
47944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47945   (exit $ac_status); } && {
47946          test -z "$ac_c_werror_flag" ||
47947          test ! -s conftest.err
47948        } && test -s conftest.$ac_objext; then
47949   :
47950 else
47951   $as_echo "$as_me: failed program was:" >&5
47952 sed 's/^/| /' conftest.$ac_ext >&5
47953
47954         ac_cv_type_ptrdiff_t=yes
47955 fi
47956
47957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47958 else
47959   $as_echo "$as_me: failed program was:" >&5
47960 sed 's/^/| /' conftest.$ac_ext >&5
47961
47962
47963 fi
47964
47965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47966 fi
47967 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47968 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
47969 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
47970   :
47971 else
47972
47973 cat >>confdefs.h <<\_ACEOF
47974 #define ptrdiff_t long
47975 _ACEOF
47976
47977
47978 fi
47979
47980
47981
47982
47983
47984
47985
47986   fi
47987
47988   # Code from module vasprintf:
47989
47990
47991 for ac_func in vasprintf
47992 do
47993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47995 $as_echo_n "checking for $ac_func... " >&6; }
47996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47997   $as_echo_n "(cached) " >&6
47998 else
47999   cat >conftest.$ac_ext <<_ACEOF
48000 /* confdefs.h.  */
48001 _ACEOF
48002 cat confdefs.h >>conftest.$ac_ext
48003 cat >>conftest.$ac_ext <<_ACEOF
48004 /* end confdefs.h.  */
48005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48007 #define $ac_func innocuous_$ac_func
48008
48009 /* System header to define __stub macros and hopefully few prototypes,
48010     which can conflict with char $ac_func (); below.
48011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48012     <limits.h> exists even on freestanding compilers.  */
48013
48014 #ifdef __STDC__
48015 # include <limits.h>
48016 #else
48017 # include <assert.h>
48018 #endif
48019
48020 #undef $ac_func
48021
48022 /* Override any GCC internal prototype to avoid an error.
48023    Use char because int might match the return type of a GCC
48024    builtin and then its argument prototype would still apply.  */
48025 #ifdef __cplusplus
48026 extern "C"
48027 #endif
48028 char $ac_func ();
48029 /* The GNU C library defines this for functions which it implements
48030     to always fail with ENOSYS.  Some functions are actually named
48031     something starting with __ and the normal name is an alias.  */
48032 #if defined __stub_$ac_func || defined __stub___$ac_func
48033 choke me
48034 #endif
48035
48036 int
48037 main ()
48038 {
48039 return $ac_func ();
48040   ;
48041   return 0;
48042 }
48043 _ACEOF
48044 rm -f conftest.$ac_objext conftest$ac_exeext
48045 if { (ac_try="$ac_link"
48046 case "(($ac_try" in
48047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48048   *) ac_try_echo=$ac_try;;
48049 esac
48050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48051 $as_echo "$ac_try_echo") >&5
48052   (eval "$ac_link") 2>conftest.er1
48053   ac_status=$?
48054   grep -v '^ *+' conftest.er1 >conftest.err
48055   rm -f conftest.er1
48056   cat conftest.err >&5
48057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058   (exit $ac_status); } && {
48059          test -z "$ac_c_werror_flag" ||
48060          test ! -s conftest.err
48061        } && test -s conftest$ac_exeext && {
48062          test "$cross_compiling" = yes ||
48063          $as_test_x conftest$ac_exeext
48064        }; then
48065   eval "$as_ac_var=yes"
48066 else
48067   $as_echo "$as_me: failed program was:" >&5
48068 sed 's/^/| /' conftest.$ac_ext >&5
48069
48070         eval "$as_ac_var=no"
48071 fi
48072
48073 rm -rf conftest.dSYM
48074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48075       conftest$ac_exeext conftest.$ac_ext
48076 fi
48077 ac_res=`eval 'as_val=${'$as_ac_var'}
48078                  $as_echo "$as_val"'`
48079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48080 $as_echo "$ac_res" >&6; }
48081 as_val=`eval 'as_val=${'$as_ac_var'}
48082                  $as_echo "$as_val"'`
48083    if test "x$as_val" = x""yes; then
48084   cat >>confdefs.h <<_ACEOF
48085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48086 _ACEOF
48087
48088 fi
48089 done
48090
48091   if test $ac_cv_func_vasprintf = no; then
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
48112
48113
48114   if test $ac_cv_func_vasprintf = yes; then
48115     REPLACE_VASPRINTF=1
48116   else
48117     HAVE_VASPRINTF=0
48118   fi
48119
48120
48121
48122
48123
48124
48125
48126
48127   fi
48128
48129
48130
48131
48132   GNULIB_VASPRINTF=1
48133
48134
48135
48136 cat >>confdefs.h <<\_ACEOF
48137 #define GNULIB_TEST_VASPRINTF 1
48138 _ACEOF
48139
48140
48141
48142
48143
48144   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
48145
48146
48147
48148   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
48149
48150   # Code from module verify:
48151   # Code from module version-etc:
48152
48153 # Check whether --with-packager was given.
48154 if test "${with_packager+set}" = set; then
48155   withval=$with_packager;       case $withval in
48156         yes|no) ;;
48157         *)
48158 cat >>confdefs.h <<_ACEOF
48159 #define PACKAGE_PACKAGER "$withval"
48160 _ACEOF
48161  ;;
48162       esac
48163
48164 fi
48165
48166
48167
48168 # Check whether --with-packager-version was given.
48169 if test "${with_packager_version+set}" = set; then
48170   withval=$with_packager_version;       case $withval in
48171         yes|no) ;;
48172         *)
48173 cat >>confdefs.h <<_ACEOF
48174 #define PACKAGE_PACKAGER_VERSION "$withval"
48175 _ACEOF
48176  ;;
48177       esac
48178
48179 fi
48180
48181
48182
48183 # Check whether --with-packager-bug-reports was given.
48184 if test "${with_packager_bug_reports+set}" = set; then
48185   withval=$with_packager_bug_reports;       case $withval in
48186         yes|no) ;;
48187         *)
48188 cat >>confdefs.h <<_ACEOF
48189 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
48190 _ACEOF
48191  ;;
48192       esac
48193
48194 fi
48195
48196
48197   if test "X$with_packager" = "X" && \
48198      test "X$with_packager_version$with_packager_bug_reports" != "X"
48199   then
48200     { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
48201 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
48202    { (exit 1); exit 1; }; }
48203   fi
48204
48205   # Code from module version-etc-fsf:
48206   # Code from module vsnprintf:
48207
48208
48209   gl_cv_func_vsnprintf_usable=no
48210
48211 for ac_func in vsnprintf
48212 do
48213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48215 $as_echo_n "checking for $ac_func... " >&6; }
48216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48217   $as_echo_n "(cached) " >&6
48218 else
48219   cat >conftest.$ac_ext <<_ACEOF
48220 /* confdefs.h.  */
48221 _ACEOF
48222 cat confdefs.h >>conftest.$ac_ext
48223 cat >>conftest.$ac_ext <<_ACEOF
48224 /* end confdefs.h.  */
48225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48227 #define $ac_func innocuous_$ac_func
48228
48229 /* System header to define __stub macros and hopefully few prototypes,
48230     which can conflict with char $ac_func (); below.
48231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48232     <limits.h> exists even on freestanding compilers.  */
48233
48234 #ifdef __STDC__
48235 # include <limits.h>
48236 #else
48237 # include <assert.h>
48238 #endif
48239
48240 #undef $ac_func
48241
48242 /* Override any GCC internal prototype to avoid an error.
48243    Use char because int might match the return type of a GCC
48244    builtin and then its argument prototype would still apply.  */
48245 #ifdef __cplusplus
48246 extern "C"
48247 #endif
48248 char $ac_func ();
48249 /* The GNU C library defines this for functions which it implements
48250     to always fail with ENOSYS.  Some functions are actually named
48251     something starting with __ and the normal name is an alias.  */
48252 #if defined __stub_$ac_func || defined __stub___$ac_func
48253 choke me
48254 #endif
48255
48256 int
48257 main ()
48258 {
48259 return $ac_func ();
48260   ;
48261   return 0;
48262 }
48263 _ACEOF
48264 rm -f conftest.$ac_objext conftest$ac_exeext
48265 if { (ac_try="$ac_link"
48266 case "(($ac_try" in
48267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48268   *) ac_try_echo=$ac_try;;
48269 esac
48270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48271 $as_echo "$ac_try_echo") >&5
48272   (eval "$ac_link") 2>conftest.er1
48273   ac_status=$?
48274   grep -v '^ *+' conftest.er1 >conftest.err
48275   rm -f conftest.er1
48276   cat conftest.err >&5
48277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278   (exit $ac_status); } && {
48279          test -z "$ac_c_werror_flag" ||
48280          test ! -s conftest.err
48281        } && test -s conftest$ac_exeext && {
48282          test "$cross_compiling" = yes ||
48283          $as_test_x conftest$ac_exeext
48284        }; then
48285   eval "$as_ac_var=yes"
48286 else
48287   $as_echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48289
48290         eval "$as_ac_var=no"
48291 fi
48292
48293 rm -rf conftest.dSYM
48294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48295       conftest$ac_exeext conftest.$ac_ext
48296 fi
48297 ac_res=`eval 'as_val=${'$as_ac_var'}
48298                  $as_echo "$as_val"'`
48299                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48300 $as_echo "$ac_res" >&6; }
48301 as_val=`eval 'as_val=${'$as_ac_var'}
48302                  $as_echo "$as_val"'`
48303    if test "x$as_val" = x""yes; then
48304   cat >>confdefs.h <<_ACEOF
48305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48306 _ACEOF
48307
48308 fi
48309 done
48310
48311   if test $ac_cv_func_vsnprintf = yes; then
48312
48313
48314   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
48315 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
48316 if test "${gl_cv_func_snprintf_size1+set}" = set; then
48317   $as_echo_n "(cached) " >&6
48318 else
48319
48320       if test "$cross_compiling" = yes; then
48321   gl_cv_func_snprintf_size1="guessing yes"
48322 else
48323   cat >conftest.$ac_ext <<_ACEOF
48324 /* confdefs.h.  */
48325 _ACEOF
48326 cat confdefs.h >>conftest.$ac_ext
48327 cat >>conftest.$ac_ext <<_ACEOF
48328 /* end confdefs.h.  */
48329
48330 #include <stdio.h>
48331 int main()
48332 {
48333   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
48334   snprintf (buf, 1, "%d", 12345);
48335   return buf[1] != 'E';
48336 }
48337 _ACEOF
48338 rm -f conftest$ac_exeext
48339 if { (ac_try="$ac_link"
48340 case "(($ac_try" in
48341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48342   *) ac_try_echo=$ac_try;;
48343 esac
48344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48345 $as_echo "$ac_try_echo") >&5
48346   (eval "$ac_link") 2>&5
48347   ac_status=$?
48348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48350   { (case "(($ac_try" in
48351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48352   *) ac_try_echo=$ac_try;;
48353 esac
48354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48355 $as_echo "$ac_try_echo") >&5
48356   (eval "$ac_try") 2>&5
48357   ac_status=$?
48358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48359   (exit $ac_status); }; }; then
48360   gl_cv_func_snprintf_size1=yes
48361 else
48362   $as_echo "$as_me: program exited with status $ac_status" >&5
48363 $as_echo "$as_me: failed program was:" >&5
48364 sed 's/^/| /' conftest.$ac_ext >&5
48365
48366 ( exit $ac_status )
48367 gl_cv_func_snprintf_size1=no
48368 fi
48369 rm -rf conftest.dSYM
48370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48371 fi
48372
48373
48374
48375 fi
48376 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
48377 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
48378
48379     case "$gl_cv_func_snprintf_size1" in
48380       *yes)
48381         gl_cv_func_vsnprintf_usable=yes
48382         ;;
48383     esac
48384   fi
48385   if test $gl_cv_func_vsnprintf_usable = no; then
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
48397
48398   if test $ac_cv_func_vsnprintf = yes; then
48399     REPLACE_VSNPRINTF=1
48400   fi
48401   :
48402
48403   fi
48404
48405
48406
48407
48408   if test $ac_cv_have_decl_vsnprintf = no; then
48409     HAVE_DECL_VSNPRINTF=0
48410   fi
48411
48412
48413
48414
48415   GNULIB_VSNPRINTF=1
48416
48417
48418
48419 cat >>confdefs.h <<\_ACEOF
48420 #define GNULIB_TEST_VSNPRINTF 1
48421 _ACEOF
48422
48423
48424
48425   # Code from module warn-on-use:
48426   # Code from module wchar:
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447      if test $gl_cv_have_include_next = yes; then
48448        gl_cv_next_wchar_h='<'wchar.h'>'
48449      else
48450        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
48451 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
48452 if test "${gl_cv_next_wchar_h+set}" = set; then
48453   $as_echo_n "(cached) " >&6
48454 else
48455
48456           if test $ac_cv_header_wchar_h = yes; then
48457             cat >conftest.$ac_ext <<_ACEOF
48458 /* confdefs.h.  */
48459 _ACEOF
48460 cat confdefs.h >>conftest.$ac_ext
48461 cat >>conftest.$ac_ext <<_ACEOF
48462 /* end confdefs.h.  */
48463 #include <wchar.h>
48464
48465 _ACEOF
48466                                                                                                 case "$host_os" in
48467               aix*) gl_absname_cpp="$ac_cpp -C" ;;
48468               *)    gl_absname_cpp="$ac_cpp" ;;
48469             esac
48470                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48471                sed -n '\#/wchar.h#{
48472                  s#.*"\(.*/wchar.h\)".*#\1#
48473                  s#^/[^/]#//&#
48474                  p
48475                  q
48476                }'`'"'
48477           else
48478             gl_cv_next_wchar_h='<'wchar.h'>'
48479           fi
48480
48481 fi
48482 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
48483 $as_echo "$gl_cv_next_wchar_h" >&6; }
48484      fi
48485      NEXT_WCHAR_H=$gl_cv_next_wchar_h
48486
48487      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48488        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48489        gl_next_as_first_directive='<'wchar.h'>'
48490      else
48491        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48492        gl_next_as_first_directive=$gl_cv_next_wchar_h
48493      fi
48494      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
48495
48496
48497
48498   if test $ac_cv_header_wchar_h = yes; then
48499     HAVE_WCHAR_H=1
48500   else
48501     HAVE_WCHAR_H=0
48502   fi
48503
48504
48505
48506   if test $gt_cv_c_wint_t = yes; then
48507     HAVE_WINT_T=1
48508   else
48509     HAVE_WINT_T=0
48510   fi
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
48526     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48527     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
48528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
48530   $as_echo_n "(cached) " >&6
48531 else
48532   cat >conftest.$ac_ext <<_ACEOF
48533 /* confdefs.h.  */
48534 _ACEOF
48535 cat confdefs.h >>conftest.$ac_ext
48536 cat >>conftest.$ac_ext <<_ACEOF
48537 /* end confdefs.h.  */
48538
48539 /* Some systems require additional headers.  */
48540 #ifndef __GLIBC__
48541 # include <stddef.h>
48542 # include <stdio.h>
48543 # include <time.h>
48544 #endif
48545 #include <wchar.h>
48546
48547 int
48548 main ()
48549 {
48550 #undef $gl_func
48551   (void) $gl_func;
48552   ;
48553   return 0;
48554 }
48555 _ACEOF
48556 rm -f conftest.$ac_objext
48557 if { (ac_try="$ac_compile"
48558 case "(($ac_try" in
48559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48560   *) ac_try_echo=$ac_try;;
48561 esac
48562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48563 $as_echo "$ac_try_echo") >&5
48564   (eval "$ac_compile") 2>conftest.er1
48565   ac_status=$?
48566   grep -v '^ *+' conftest.er1 >conftest.err
48567   rm -f conftest.er1
48568   cat conftest.err >&5
48569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48570   (exit $ac_status); } && {
48571          test -z "$ac_c_werror_flag" ||
48572          test ! -s conftest.err
48573        } && test -s conftest.$ac_objext; then
48574   eval "$as_gl_Symbol=yes"
48575 else
48576   $as_echo "$as_me: failed program was:" >&5
48577 sed 's/^/| /' conftest.$ac_ext >&5
48578
48579         eval "$as_gl_Symbol=no"
48580 fi
48581
48582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48583 fi
48584 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
48585                  $as_echo "$as_val"'`
48586                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48587 $as_echo "$ac_res" >&6; }
48588      as_val=`eval 'as_val=${'$as_gl_Symbol'}
48589                  $as_echo "$as_val"'`
48590    if test "x$as_val" = x""yes; then
48591   cat >>confdefs.h <<_ACEOF
48592 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48593 _ACEOF
48594
48595                      eval ac_cv_have_decl_$gl_func=yes
48596 fi
48597
48598       done
48599
48600
48601   # Code from module wcrtomb:
48602
48603
48604
48605
48606
48607
48608
48609
48610
48611
48612
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48623
48624
48625
48626      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
48627 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48628 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
48629   $as_echo_n "(cached) " >&6
48630 else
48631
48632                   case "$host_os" in
48633                      # Guess no on AIX and OSF/1.
48634         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48635                      # Guess yes otherwise.
48636         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48637       esac
48638       if test $LOCALE_JA != none; then
48639         if test "$cross_compiling" = yes; then
48640   :
48641 else
48642   cat >conftest.$ac_ext <<_ACEOF
48643 /* confdefs.h.  */
48644 _ACEOF
48645 cat confdefs.h >>conftest.$ac_ext
48646 cat >>conftest.$ac_ext <<_ACEOF
48647 /* end confdefs.h.  */
48648
48649 #include <locale.h>
48650 #include <string.h>
48651 #include <wchar.h>
48652 int main ()
48653 {
48654   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48655     {
48656       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48657       mbstate_t state;
48658       wchar_t wc;
48659
48660       memset (&state, '\0', sizeof (mbstate_t));
48661       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48662         if (mbsinit (&state))
48663           return 1;
48664     }
48665   return 0;
48666 }
48667 _ACEOF
48668 rm -f conftest$ac_exeext
48669 if { (ac_try="$ac_link"
48670 case "(($ac_try" in
48671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48672   *) ac_try_echo=$ac_try;;
48673 esac
48674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48675 $as_echo "$ac_try_echo") >&5
48676   (eval "$ac_link") 2>&5
48677   ac_status=$?
48678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48680   { (case "(($ac_try" in
48681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48682   *) ac_try_echo=$ac_try;;
48683 esac
48684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48685 $as_echo "$ac_try_echo") >&5
48686   (eval "$ac_try") 2>&5
48687   ac_status=$?
48688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48689   (exit $ac_status); }; }; then
48690   gl_cv_func_mbrtowc_incomplete_state=yes
48691 else
48692   $as_echo "$as_me: program exited with status $ac_status" >&5
48693 $as_echo "$as_me: failed program was:" >&5
48694 sed 's/^/| /' conftest.$ac_ext >&5
48695
48696 ( exit $ac_status )
48697 gl_cv_func_mbrtowc_incomplete_state=no
48698 fi
48699 rm -rf conftest.dSYM
48700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48701 fi
48702
48703
48704       fi
48705
48706 fi
48707 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48708 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48709
48710
48711
48712
48713      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
48714 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48715 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
48716   $as_echo_n "(cached) " >&6
48717 else
48718
48719                   case "$host_os" in
48720                     # Guess no on Solaris 8.
48721         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48722                     # Guess yes otherwise.
48723         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48724       esac
48725       if test $LOCALE_ZH_CN != none; then
48726         if test "$cross_compiling" = yes; then
48727   :
48728 else
48729   cat >conftest.$ac_ext <<_ACEOF
48730 /* confdefs.h.  */
48731 _ACEOF
48732 cat confdefs.h >>conftest.$ac_ext
48733 cat >>conftest.$ac_ext <<_ACEOF
48734 /* end confdefs.h.  */
48735
48736 #include <locale.h>
48737 #include <stdlib.h>
48738 #include <string.h>
48739 #include <wchar.h>
48740 int main ()
48741 {
48742   /* This fails on Solaris 8:
48743      mbrtowc returns 2, and sets wc to 0x00F0.
48744      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
48745   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48746     {
48747       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48748       mbstate_t state;
48749       wchar_t wc;
48750
48751       memset (&state, '\0', sizeof (mbstate_t));
48752       if (mbrtowc (&wc, input + 3, 6, &state) != 4
48753           && mbtowc (&wc, input + 3, 6) == 4)
48754         return 1;
48755     }
48756   return 0;
48757 }
48758 _ACEOF
48759 rm -f conftest$ac_exeext
48760 if { (ac_try="$ac_link"
48761 case "(($ac_try" in
48762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48763   *) ac_try_echo=$ac_try;;
48764 esac
48765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48766 $as_echo "$ac_try_echo") >&5
48767   (eval "$ac_link") 2>&5
48768   ac_status=$?
48769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48771   { (case "(($ac_try" in
48772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48773   *) ac_try_echo=$ac_try;;
48774 esac
48775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48776 $as_echo "$ac_try_echo") >&5
48777   (eval "$ac_try") 2>&5
48778   ac_status=$?
48779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48780   (exit $ac_status); }; }; then
48781   gl_cv_func_mbrtowc_sanitycheck=yes
48782 else
48783   $as_echo "$as_me: program exited with status $ac_status" >&5
48784 $as_echo "$as_me: failed program was:" >&5
48785 sed 's/^/| /' conftest.$ac_ext >&5
48786
48787 ( exit $ac_status )
48788 gl_cv_func_mbrtowc_sanitycheck=no
48789 fi
48790 rm -rf conftest.dSYM
48791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48792 fi
48793
48794
48795       fi
48796
48797 fi
48798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48799 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48800
48801     REPLACE_MBSTATE_T=0
48802     case "$gl_cv_func_mbrtowc_incomplete_state" in
48803       *yes) ;;
48804       *) REPLACE_MBSTATE_T=1 ;;
48805     esac
48806     case "$gl_cv_func_mbrtowc_sanitycheck" in
48807       *yes) ;;
48808       *) REPLACE_MBSTATE_T=1 ;;
48809     esac
48810   else
48811     REPLACE_MBSTATE_T=1
48812   fi
48813   if test $REPLACE_MBSTATE_T = 1; then
48814
48815     :
48816
48817   fi
48818
48819
48820
48821
48822
48823
48824
48825
48826   if test $ac_cv_func_wcrtomb = no; then
48827     HAVE_WCRTOMB=0
48828   else
48829     if test $REPLACE_MBSTATE_T = 1; then
48830       REPLACE_WCRTOMB=1
48831     else
48832
48833
48834
48835
48836
48837              { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
48838 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
48839 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
48840   $as_echo_n "(cached) " >&6
48841 else
48842
48843                               case "$host_os" in
48844                                      # Guess no on AIX 4, OSF/1 and Solaris.
48845             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
48846                                      # Guess yes otherwise.
48847             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
48848           esac
48849           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
48850             if test "$cross_compiling" = yes; then
48851   :
48852 else
48853   cat >conftest.$ac_ext <<_ACEOF
48854 /* confdefs.h.  */
48855 _ACEOF
48856 cat confdefs.h >>conftest.$ac_ext
48857 cat >>conftest.$ac_ext <<_ACEOF
48858 /* end confdefs.h.  */
48859
48860 #include <locale.h>
48861 #include <stdio.h>
48862 #include <string.h>
48863 #include <wchar.h>
48864 int main ()
48865 {
48866   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
48867     {
48868       if (wcrtomb (NULL, 0, NULL) != 1)
48869         return 1;
48870     }
48871   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48872     {
48873       if (wcrtomb (NULL, 0, NULL) != 1)
48874         return 1;
48875     }
48876   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48877     {
48878       if (wcrtomb (NULL, 0, NULL) != 1)
48879         return 1;
48880     }
48881   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48882     {
48883       if (wcrtomb (NULL, 0, NULL) != 1)
48884         return 1;
48885     }
48886   return 0;
48887 }
48888 _ACEOF
48889 rm -f conftest$ac_exeext
48890 if { (ac_try="$ac_link"
48891 case "(($ac_try" in
48892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48893   *) ac_try_echo=$ac_try;;
48894 esac
48895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48896 $as_echo "$ac_try_echo") >&5
48897   (eval "$ac_link") 2>&5
48898   ac_status=$?
48899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48901   { (case "(($ac_try" in
48902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48903   *) ac_try_echo=$ac_try;;
48904 esac
48905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48906 $as_echo "$ac_try_echo") >&5
48907   (eval "$ac_try") 2>&5
48908   ac_status=$?
48909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910   (exit $ac_status); }; }; then
48911   gl_cv_func_wcrtomb_retval=yes
48912 else
48913   $as_echo "$as_me: program exited with status $ac_status" >&5
48914 $as_echo "$as_me: failed program was:" >&5
48915 sed 's/^/| /' conftest.$ac_ext >&5
48916
48917 ( exit $ac_status )
48918 gl_cv_func_wcrtomb_retval=no
48919 fi
48920 rm -rf conftest.dSYM
48921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48922 fi
48923
48924
48925           fi
48926
48927 fi
48928 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
48929 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
48930       case "$gl_cv_func_wcrtomb_retval" in
48931         *yes) ;;
48932         *) REPLACE_WCRTOMB=1 ;;
48933       esac
48934     fi
48935   fi
48936   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
48937
48938     :
48939
48940
48941
48942
48943
48944
48945
48946
48947
48948   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
48949
48950
48951   :
48952
48953   fi
48954
48955
48956
48957
48958   GNULIB_WCRTOMB=1
48959
48960
48961
48962 cat >>confdefs.h <<\_ACEOF
48963 #define GNULIB_TEST_WCRTOMB 1
48964 _ACEOF
48965
48966
48967
48968   # Code from module wctype:
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978   if test $ac_cv_func_iswcntrl = yes; then
48979     HAVE_ISWCNTRL=1
48980   else
48981     HAVE_ISWCNTRL=0
48982   fi
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994   if test $ac_cv_func_iswblank = yes; then
48995     HAVE_ISWBLANK=1
48996     REPLACE_ISWBLANK=0
48997   else
48998     HAVE_ISWBLANK=0
48999     if test $ac_cv_have_decl_iswblank = yes; then
49000       REPLACE_ISWBLANK=1
49001     else
49002       REPLACE_ISWBLANK=0
49003     fi
49004   fi
49005
49006
49007
49008
49009
49010
49011
49012
49013
49014
49015
49016
49017   if test $gt_cv_c_wint_t = yes; then
49018     HAVE_WINT_T=1
49019   else
49020     HAVE_WINT_T=0
49021   fi
49022
49023
49024   if test $ac_cv_header_wctype_h = yes; then
49025     if test $ac_cv_func_iswcntrl = yes; then
49026                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
49027 $as_echo_n "checking whether iswcntrl works... " >&6; }
49028 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
49029   $as_echo_n "(cached) " >&6
49030 else
49031
49032           if test "$cross_compiling" = yes; then
49033   cat >conftest.$ac_ext <<_ACEOF
49034 /* confdefs.h.  */
49035 _ACEOF
49036 cat confdefs.h >>conftest.$ac_ext
49037 cat >>conftest.$ac_ext <<_ACEOF
49038 /* end confdefs.h.  */
49039 #include <stdlib.h>
49040                           #if __GNU_LIBRARY__ == 1
49041                           Linux libc5 i18n is broken.
49042                           #endif
49043 int
49044 main ()
49045 {
49046
49047   ;
49048   return 0;
49049 }
49050 _ACEOF
49051 rm -f conftest.$ac_objext
49052 if { (ac_try="$ac_compile"
49053 case "(($ac_try" in
49054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49055   *) ac_try_echo=$ac_try;;
49056 esac
49057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49058 $as_echo "$ac_try_echo") >&5
49059   (eval "$ac_compile") 2>conftest.er1
49060   ac_status=$?
49061   grep -v '^ *+' conftest.er1 >conftest.err
49062   rm -f conftest.er1
49063   cat conftest.err >&5
49064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49065   (exit $ac_status); } && {
49066          test -z "$ac_c_werror_flag" ||
49067          test ! -s conftest.err
49068        } && test -s conftest.$ac_objext; then
49069   gl_cv_func_iswcntrl_works=yes
49070 else
49071   $as_echo "$as_me: failed program was:" >&5
49072 sed 's/^/| /' conftest.$ac_ext >&5
49073
49074         gl_cv_func_iswcntrl_works=no
49075 fi
49076
49077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49078
49079 else
49080   cat >conftest.$ac_ext <<_ACEOF
49081 /* confdefs.h.  */
49082 _ACEOF
49083 cat confdefs.h >>conftest.$ac_ext
49084 cat >>conftest.$ac_ext <<_ACEOF
49085 /* end confdefs.h.  */
49086
49087                             #include <stddef.h>
49088                             #include <stdio.h>
49089                             #include <time.h>
49090                             #include <wchar.h>
49091                             #include <wctype.h>
49092                             int main () { return iswprint ('x') == 0; }
49093 _ACEOF
49094 rm -f conftest$ac_exeext
49095 if { (ac_try="$ac_link"
49096 case "(($ac_try" in
49097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49098   *) ac_try_echo=$ac_try;;
49099 esac
49100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49101 $as_echo "$ac_try_echo") >&5
49102   (eval "$ac_link") 2>&5
49103   ac_status=$?
49104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49106   { (case "(($ac_try" in
49107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49108   *) ac_try_echo=$ac_try;;
49109 esac
49110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49111 $as_echo "$ac_try_echo") >&5
49112   (eval "$ac_try") 2>&5
49113   ac_status=$?
49114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49115   (exit $ac_status); }; }; then
49116   gl_cv_func_iswcntrl_works=yes
49117 else
49118   $as_echo "$as_me: program exited with status $ac_status" >&5
49119 $as_echo "$as_me: failed program was:" >&5
49120 sed 's/^/| /' conftest.$ac_ext >&5
49121
49122 ( exit $ac_status )
49123 gl_cv_func_iswcntrl_works=no
49124 fi
49125 rm -rf conftest.dSYM
49126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49127 fi
49128
49129
49130
49131 fi
49132 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
49133 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
49134     fi
49135
49136
49137
49138
49139
49140
49141
49142
49143
49144
49145
49146      if test $gl_cv_have_include_next = yes; then
49147        gl_cv_next_wctype_h='<'wctype.h'>'
49148      else
49149        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
49150 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
49151 if test "${gl_cv_next_wctype_h+set}" = set; then
49152   $as_echo_n "(cached) " >&6
49153 else
49154
49155           if test $ac_cv_header_wctype_h = yes; then
49156             cat >conftest.$ac_ext <<_ACEOF
49157 /* confdefs.h.  */
49158 _ACEOF
49159 cat confdefs.h >>conftest.$ac_ext
49160 cat >>conftest.$ac_ext <<_ACEOF
49161 /* end confdefs.h.  */
49162 #include <wctype.h>
49163
49164 _ACEOF
49165                                                                                                 case "$host_os" in
49166               aix*) gl_absname_cpp="$ac_cpp -C" ;;
49167               *)    gl_absname_cpp="$ac_cpp" ;;
49168             esac
49169                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49170                sed -n '\#/wctype.h#{
49171                  s#.*"\(.*/wctype.h\)".*#\1#
49172                  s#^/[^/]#//&#
49173                  p
49174                  q
49175                }'`'"'
49176           else
49177             gl_cv_next_wctype_h='<'wctype.h'>'
49178           fi
49179
49180 fi
49181 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
49182 $as_echo "$gl_cv_next_wctype_h" >&6; }
49183      fi
49184      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
49185
49186      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49187        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49188        gl_next_as_first_directive='<'wctype.h'>'
49189      else
49190        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49191        gl_next_as_first_directive=$gl_cv_next_wctype_h
49192      fi
49193      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
49194
49195
49196
49197     HAVE_WCTYPE_H=1
49198   else
49199     HAVE_WCTYPE_H=0
49200   fi
49201
49202
49203   if test "$gl_cv_func_iswcntrl_works" = no; then
49204     REPLACE_ISWCNTRL=1
49205   else
49206     REPLACE_ISWCNTRL=0
49207   fi
49208
49209
49210   # Code from module wcwidth:
49211
49212
49213
49214
49215
49216
49217
49218
49219
49220
49221
49222
49223
49224
49225
49226
49227
49228
49229
49230
49231
49232   { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
49233 $as_echo_n "checking whether wcwidth is declared... " >&6; }
49234 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
49235   $as_echo_n "(cached) " >&6
49236 else
49237   cat >conftest.$ac_ext <<_ACEOF
49238 /* confdefs.h.  */
49239 _ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h.  */
49243
49244 /* AIX 3.2.5 declares wcwidth in <string.h>. */
49245 #include <string.h>
49246 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
49247    <wchar.h>.
49248    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
49249    before <wchar.h>.  */
49250 #include <stddef.h>
49251 #include <stdio.h>
49252 #include <time.h>
49253 #include <wchar.h>
49254
49255
49256 int
49257 main ()
49258 {
49259 #ifndef wcwidth
49260   (void) wcwidth;
49261 #endif
49262
49263   ;
49264   return 0;
49265 }
49266 _ACEOF
49267 rm -f conftest.$ac_objext
49268 if { (ac_try="$ac_compile"
49269 case "(($ac_try" in
49270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49271   *) ac_try_echo=$ac_try;;
49272 esac
49273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49274 $as_echo "$ac_try_echo") >&5
49275   (eval "$ac_compile") 2>conftest.er1
49276   ac_status=$?
49277   grep -v '^ *+' conftest.er1 >conftest.err
49278   rm -f conftest.er1
49279   cat conftest.err >&5
49280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49281   (exit $ac_status); } && {
49282          test -z "$ac_c_werror_flag" ||
49283          test ! -s conftest.err
49284        } && test -s conftest.$ac_objext; then
49285   ac_cv_have_decl_wcwidth=yes
49286 else
49287   $as_echo "$as_me: failed program was:" >&5
49288 sed 's/^/| /' conftest.$ac_ext >&5
49289
49290         ac_cv_have_decl_wcwidth=no
49291 fi
49292
49293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49294 fi
49295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
49296 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
49297 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
49298
49299 cat >>confdefs.h <<_ACEOF
49300 #define HAVE_DECL_WCWIDTH 1
49301 _ACEOF
49302
49303
49304 else
49305   cat >>confdefs.h <<_ACEOF
49306 #define HAVE_DECL_WCWIDTH 0
49307 _ACEOF
49308
49309
49310 fi
49311
49312
49313   if test $ac_cv_have_decl_wcwidth != yes; then
49314     HAVE_DECL_WCWIDTH=0
49315   fi
49316
49317   if test $ac_cv_func_wcwidth = yes; then
49318                 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
49319 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
49320 if test "${gl_cv_func_wcwidth_works+set}" = set; then
49321   $as_echo_n "(cached) " >&6
49322 else
49323
49324         if test "$cross_compiling" = yes; then
49325
49326            case "$host_os" in
49327                      # Guess yes on glibc and AIX 7 systems.
49328              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
49329              *)                  gl_cv_func_wcwidth_works="guessing no";;
49330            esac
49331
49332 else
49333   cat >conftest.$ac_ext <<_ACEOF
49334 /* confdefs.h.  */
49335 _ACEOF
49336 cat confdefs.h >>conftest.$ac_ext
49337 cat >>conftest.$ac_ext <<_ACEOF
49338 /* end confdefs.h.  */
49339
49340 #include <locale.h>
49341 /* AIX 3.2.5 declares wcwidth in <string.h>. */
49342 #include <string.h>
49343 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
49344    <wchar.h>.
49345    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
49346    before <wchar.h>.  */
49347 #include <stddef.h>
49348 #include <stdio.h>
49349 #include <time.h>
49350 #include <wchar.h>
49351 #if !HAVE_DECL_WCWIDTH
49352 extern
49353 # ifdef __cplusplus
49354 "C"
49355 # endif
49356 int wcwidth (int);
49357 #endif
49358 int main ()
49359 {
49360   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
49361     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
49362       return 1;
49363   return 0;
49364 }
49365 _ACEOF
49366 rm -f conftest$ac_exeext
49367 if { (ac_try="$ac_link"
49368 case "(($ac_try" in
49369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49370   *) ac_try_echo=$ac_try;;
49371 esac
49372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49373 $as_echo "$ac_try_echo") >&5
49374   (eval "$ac_link") 2>&5
49375   ac_status=$?
49376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49378   { (case "(($ac_try" in
49379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49380   *) ac_try_echo=$ac_try;;
49381 esac
49382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49383 $as_echo "$ac_try_echo") >&5
49384   (eval "$ac_try") 2>&5
49385   ac_status=$?
49386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49387   (exit $ac_status); }; }; then
49388   gl_cv_func_wcwidth_works=yes
49389 else
49390   $as_echo "$as_me: program exited with status $ac_status" >&5
49391 $as_echo "$as_me: failed program was:" >&5
49392 sed 's/^/| /' conftest.$ac_ext >&5
49393
49394 ( exit $ac_status )
49395 gl_cv_func_wcwidth_works=no
49396 fi
49397 rm -rf conftest.dSYM
49398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49399 fi
49400
49401
49402
49403 fi
49404 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
49405 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
49406     case "$gl_cv_func_wcwidth_works" in
49407       *yes) ;;
49408       *no) REPLACE_WCWIDTH=1 ;;
49409     esac
49410   fi
49411   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
49412
49413
49414
49415
49416
49417
49418
49419
49420   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
49421
49422   fi
49423   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
49424      || test $HAVE_DECL_WCWIDTH = 0; then
49425
49426     :
49427
49428   fi
49429
49430
49431
49432
49433   GNULIB_WCWIDTH=1
49434
49435
49436
49437 cat >>confdefs.h <<\_ACEOF
49438 #define GNULIB_TEST_WCWIDTH 1
49439 _ACEOF
49440
49441
49442
49443   # Code from module write:
49444
49445
49446
49447
49448
49449
49450
49451   GNULIB_WRITE=1
49452
49453
49454
49455 cat >>confdefs.h <<\_ACEOF
49456 #define GNULIB_TEST_WRITE 1
49457 _ACEOF
49458
49459
49460
49461   # Code from module xalloc:
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
49472
49473
49474
49475
49476   :
49477
49478
49479   :
49480
49481
49482   # Code from module xalloc-die:
49483   # Code from module xgetcwd:
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
49494
49495
49496
49497
49498   # Code from module xsize:
49499
49500
49501
49502
49503 for ac_header in stdint.h
49504 do
49505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49507   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49508 $as_echo_n "checking for $ac_header... " >&6; }
49509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49510   $as_echo_n "(cached) " >&6
49511 fi
49512 ac_res=`eval 'as_val=${'$as_ac_Header'}
49513                  $as_echo "$as_val"'`
49514                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49515 $as_echo "$ac_res" >&6; }
49516 else
49517   # Is the header compilable?
49518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49519 $as_echo_n "checking $ac_header usability... " >&6; }
49520 cat >conftest.$ac_ext <<_ACEOF
49521 /* confdefs.h.  */
49522 _ACEOF
49523 cat confdefs.h >>conftest.$ac_ext
49524 cat >>conftest.$ac_ext <<_ACEOF
49525 /* end confdefs.h.  */
49526 $ac_includes_default
49527 #include <$ac_header>
49528 _ACEOF
49529 rm -f conftest.$ac_objext
49530 if { (ac_try="$ac_compile"
49531 case "(($ac_try" in
49532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49533   *) ac_try_echo=$ac_try;;
49534 esac
49535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49536 $as_echo "$ac_try_echo") >&5
49537   (eval "$ac_compile") 2>conftest.er1
49538   ac_status=$?
49539   grep -v '^ *+' conftest.er1 >conftest.err
49540   rm -f conftest.er1
49541   cat conftest.err >&5
49542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49543   (exit $ac_status); } && {
49544          test -z "$ac_c_werror_flag" ||
49545          test ! -s conftest.err
49546        } && test -s conftest.$ac_objext; then
49547   ac_header_compiler=yes
49548 else
49549   $as_echo "$as_me: failed program was:" >&5
49550 sed 's/^/| /' conftest.$ac_ext >&5
49551
49552         ac_header_compiler=no
49553 fi
49554
49555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49557 $as_echo "$ac_header_compiler" >&6; }
49558
49559 # Is the header present?
49560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49561 $as_echo_n "checking $ac_header presence... " >&6; }
49562 cat >conftest.$ac_ext <<_ACEOF
49563 /* confdefs.h.  */
49564 _ACEOF
49565 cat confdefs.h >>conftest.$ac_ext
49566 cat >>conftest.$ac_ext <<_ACEOF
49567 /* end confdefs.h.  */
49568 #include <$ac_header>
49569 _ACEOF
49570 if { (ac_try="$ac_cpp conftest.$ac_ext"
49571 case "(($ac_try" in
49572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49573   *) ac_try_echo=$ac_try;;
49574 esac
49575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49576 $as_echo "$ac_try_echo") >&5
49577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49578   ac_status=$?
49579   grep -v '^ *+' conftest.er1 >conftest.err
49580   rm -f conftest.er1
49581   cat conftest.err >&5
49582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49583   (exit $ac_status); } >/dev/null && {
49584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49585          test ! -s conftest.err
49586        }; then
49587   ac_header_preproc=yes
49588 else
49589   $as_echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49591
49592   ac_header_preproc=no
49593 fi
49594
49595 rm -f conftest.err conftest.$ac_ext
49596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49597 $as_echo "$ac_header_preproc" >&6; }
49598
49599 # So?  What about this header?
49600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49601   yes:no: )
49602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49606     ac_header_preproc=yes
49607     ;;
49608   no:yes:* )
49609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49612 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49616 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49617     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49619     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49621     ( cat <<\_ASBOX
49622 ## ------------------------------ ##
49623 ## Report this to bug-tar@gnu.org ##
49624 ## ------------------------------ ##
49625 _ASBOX
49626      ) | sed "s/^/$as_me: WARNING:     /" >&2
49627     ;;
49628 esac
49629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49630 $as_echo_n "checking for $ac_header... " >&6; }
49631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49632   $as_echo_n "(cached) " >&6
49633 else
49634   eval "$as_ac_Header=\$ac_header_preproc"
49635 fi
49636 ac_res=`eval 'as_val=${'$as_ac_Header'}
49637                  $as_echo "$as_val"'`
49638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49639 $as_echo "$ac_res" >&6; }
49640
49641 fi
49642 as_val=`eval 'as_val=${'$as_ac_Header'}
49643                  $as_echo "$as_val"'`
49644    if test "x$as_val" = x""yes; then
49645   cat >>confdefs.h <<_ACEOF
49646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49647 _ACEOF
49648
49649 fi
49650
49651 done
49652
49653
49654   # Code from module xstrndup:
49655
49656
49657   :
49658
49659
49660   # Code from module xstrtol:
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
49691
49692
49693   # Code from module xstrtoumax:
49694   # Code from module xvasprintf:
49695
49696
49697
49698
49699
49700   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
49701
49702   # End of code from modules
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712   gltests_libdeps=
49713   gltests_ltlibdeps=
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723   gl_source_base='tests'
49724   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
49725
49726   gl_module_indicator_condition=$gltests_WITNESS
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736   LIBGNU_LIBDEPS="$gl_libdeps"
49737
49738   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
49739
49740
49741 # paxutils modules
49742
49743
49744
49745
49746
49747
49748
49749
49750 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
49751 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
49752 if test "${ac_cv_header_time+set}" = set; then
49753   $as_echo_n "(cached) " >&6
49754 else
49755   cat >conftest.$ac_ext <<_ACEOF
49756 /* confdefs.h.  */
49757 _ACEOF
49758 cat confdefs.h >>conftest.$ac_ext
49759 cat >>conftest.$ac_ext <<_ACEOF
49760 /* end confdefs.h.  */
49761 #include <sys/types.h>
49762 #include <sys/time.h>
49763 #include <time.h>
49764
49765 int
49766 main ()
49767 {
49768 if ((struct tm *) 0)
49769 return 0;
49770   ;
49771   return 0;
49772 }
49773 _ACEOF
49774 rm -f conftest.$ac_objext
49775 if { (ac_try="$ac_compile"
49776 case "(($ac_try" in
49777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49778   *) ac_try_echo=$ac_try;;
49779 esac
49780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49781 $as_echo "$ac_try_echo") >&5
49782   (eval "$ac_compile") 2>conftest.er1
49783   ac_status=$?
49784   grep -v '^ *+' conftest.er1 >conftest.err
49785   rm -f conftest.er1
49786   cat conftest.err >&5
49787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49788   (exit $ac_status); } && {
49789          test -z "$ac_c_werror_flag" ||
49790          test ! -s conftest.err
49791        } && test -s conftest.$ac_objext; then
49792   ac_cv_header_time=yes
49793 else
49794   $as_echo "$as_me: failed program was:" >&5
49795 sed 's/^/| /' conftest.$ac_ext >&5
49796
49797         ac_cv_header_time=no
49798 fi
49799
49800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49801 fi
49802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
49803 $as_echo "$ac_cv_header_time" >&6; }
49804 if test $ac_cv_header_time = yes; then
49805
49806 cat >>confdefs.h <<\_ACEOF
49807 #define TIME_WITH_SYS_TIME 1
49808 _ACEOF
49809
49810 fi
49811
49812 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
49813 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
49814 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
49815   $as_echo_n "(cached) " >&6
49816 else
49817   cat >conftest.$ac_ext <<_ACEOF
49818 /* confdefs.h.  */
49819 _ACEOF
49820 cat confdefs.h >>conftest.$ac_ext
49821 cat >>conftest.$ac_ext <<_ACEOF
49822 /* end confdefs.h.  */
49823 $ac_includes_default
49824 int
49825 main ()
49826 {
49827 static struct stat ac_aggr;
49828 if (ac_aggr.st_blksize)
49829 return 0;
49830   ;
49831   return 0;
49832 }
49833 _ACEOF
49834 rm -f conftest.$ac_objext
49835 if { (ac_try="$ac_compile"
49836 case "(($ac_try" in
49837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49838   *) ac_try_echo=$ac_try;;
49839 esac
49840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49841 $as_echo "$ac_try_echo") >&5
49842   (eval "$ac_compile") 2>conftest.er1
49843   ac_status=$?
49844   grep -v '^ *+' conftest.er1 >conftest.err
49845   rm -f conftest.er1
49846   cat conftest.err >&5
49847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848   (exit $ac_status); } && {
49849          test -z "$ac_c_werror_flag" ||
49850          test ! -s conftest.err
49851        } && test -s conftest.$ac_objext; then
49852   ac_cv_member_struct_stat_st_blksize=yes
49853 else
49854   $as_echo "$as_me: failed program was:" >&5
49855 sed 's/^/| /' conftest.$ac_ext >&5
49856
49857         cat >conftest.$ac_ext <<_ACEOF
49858 /* confdefs.h.  */
49859 _ACEOF
49860 cat confdefs.h >>conftest.$ac_ext
49861 cat >>conftest.$ac_ext <<_ACEOF
49862 /* end confdefs.h.  */
49863 $ac_includes_default
49864 int
49865 main ()
49866 {
49867 static struct stat ac_aggr;
49868 if (sizeof ac_aggr.st_blksize)
49869 return 0;
49870   ;
49871   return 0;
49872 }
49873 _ACEOF
49874 rm -f conftest.$ac_objext
49875 if { (ac_try="$ac_compile"
49876 case "(($ac_try" in
49877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49878   *) ac_try_echo=$ac_try;;
49879 esac
49880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49881 $as_echo "$ac_try_echo") >&5
49882   (eval "$ac_compile") 2>conftest.er1
49883   ac_status=$?
49884   grep -v '^ *+' conftest.er1 >conftest.err
49885   rm -f conftest.er1
49886   cat conftest.err >&5
49887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49888   (exit $ac_status); } && {
49889          test -z "$ac_c_werror_flag" ||
49890          test ! -s conftest.err
49891        } && test -s conftest.$ac_objext; then
49892   ac_cv_member_struct_stat_st_blksize=yes
49893 else
49894   $as_echo "$as_me: failed program was:" >&5
49895 sed 's/^/| /' conftest.$ac_ext >&5
49896
49897         ac_cv_member_struct_stat_st_blksize=no
49898 fi
49899
49900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49901 fi
49902
49903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49904 fi
49905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
49906 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
49907 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
49908
49909 cat >>confdefs.h <<_ACEOF
49910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
49911 _ACEOF
49912
49913
49914 cat >>confdefs.h <<\_ACEOF
49915 #define HAVE_ST_BLKSIZE 1
49916 _ACEOF
49917
49918 fi
49919
49920
49921
49922
49923
49924
49925   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
49926   pu_save_LIBS=$LIBS
49927   LIB_SETSOCKOPT=
49928   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
49929 $as_echo_n "checking for library containing setsockopt... " >&6; }
49930 if test "${ac_cv_search_setsockopt+set}" = set; then
49931   $as_echo_n "(cached) " >&6
49932 else
49933   ac_func_search_save_LIBS=$LIBS
49934 cat >conftest.$ac_ext <<_ACEOF
49935 /* confdefs.h.  */
49936 _ACEOF
49937 cat confdefs.h >>conftest.$ac_ext
49938 cat >>conftest.$ac_ext <<_ACEOF
49939 /* end confdefs.h.  */
49940
49941 /* Override any GCC internal prototype to avoid an error.
49942    Use char because int might match the return type of a GCC
49943    builtin and then its argument prototype would still apply.  */
49944 #ifdef __cplusplus
49945 extern "C"
49946 #endif
49947 char setsockopt ();
49948 int
49949 main ()
49950 {
49951 return setsockopt ();
49952   ;
49953   return 0;
49954 }
49955 _ACEOF
49956 for ac_lib in '' socket; do
49957   if test -z "$ac_lib"; then
49958     ac_res="none required"
49959   else
49960     ac_res=-l$ac_lib
49961     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49962   fi
49963   rm -f conftest.$ac_objext conftest$ac_exeext
49964 if { (ac_try="$ac_link"
49965 case "(($ac_try" in
49966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49967   *) ac_try_echo=$ac_try;;
49968 esac
49969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49970 $as_echo "$ac_try_echo") >&5
49971   (eval "$ac_link") 2>conftest.er1
49972   ac_status=$?
49973   grep -v '^ *+' conftest.er1 >conftest.err
49974   rm -f conftest.er1
49975   cat conftest.err >&5
49976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49977   (exit $ac_status); } && {
49978          test -z "$ac_c_werror_flag" ||
49979          test ! -s conftest.err
49980        } && test -s conftest$ac_exeext && {
49981          test "$cross_compiling" = yes ||
49982          $as_test_x conftest$ac_exeext
49983        }; then
49984   ac_cv_search_setsockopt=$ac_res
49985 else
49986   $as_echo "$as_me: failed program was:" >&5
49987 sed 's/^/| /' conftest.$ac_ext >&5
49988
49989
49990 fi
49991
49992 rm -rf conftest.dSYM
49993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49994       conftest$ac_exeext
49995   if test "${ac_cv_search_setsockopt+set}" = set; then
49996   break
49997 fi
49998 done
49999 if test "${ac_cv_search_setsockopt+set}" = set; then
50000   :
50001 else
50002   ac_cv_search_setsockopt=no
50003 fi
50004 rm conftest.$ac_ext
50005 LIBS=$ac_func_search_save_LIBS
50006 fi
50007 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50008 $as_echo "$ac_cv_search_setsockopt" >&6; }
50009 ac_res=$ac_cv_search_setsockopt
50010 if test "$ac_res" != no; then
50011   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50012
50013 else
50014   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
50015 $as_echo_n "checking for library containing setsockopt... " >&6; }
50016 if test "${ac_cv_search_setsockopt+set}" = set; then
50017   $as_echo_n "(cached) " >&6
50018 else
50019   ac_func_search_save_LIBS=$LIBS
50020 cat >conftest.$ac_ext <<_ACEOF
50021 /* confdefs.h.  */
50022 _ACEOF
50023 cat confdefs.h >>conftest.$ac_ext
50024 cat >>conftest.$ac_ext <<_ACEOF
50025 /* end confdefs.h.  */
50026
50027 /* Override any GCC internal prototype to avoid an error.
50028    Use char because int might match the return type of a GCC
50029    builtin and then its argument prototype would still apply.  */
50030 #ifdef __cplusplus
50031 extern "C"
50032 #endif
50033 char setsockopt ();
50034 int
50035 main ()
50036 {
50037 return setsockopt ();
50038   ;
50039   return 0;
50040 }
50041 _ACEOF
50042 for ac_lib in '' socket; do
50043   if test -z "$ac_lib"; then
50044     ac_res="none required"
50045   else
50046     ac_res=-l$ac_lib
50047     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
50048   fi
50049   rm -f conftest.$ac_objext conftest$ac_exeext
50050 if { (ac_try="$ac_link"
50051 case "(($ac_try" in
50052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50053   *) ac_try_echo=$ac_try;;
50054 esac
50055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50056 $as_echo "$ac_try_echo") >&5
50057   (eval "$ac_link") 2>conftest.er1
50058   ac_status=$?
50059   grep -v '^ *+' conftest.er1 >conftest.err
50060   rm -f conftest.er1
50061   cat conftest.err >&5
50062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50063   (exit $ac_status); } && {
50064          test -z "$ac_c_werror_flag" ||
50065          test ! -s conftest.err
50066        } && test -s conftest$ac_exeext && {
50067          test "$cross_compiling" = yes ||
50068          $as_test_x conftest$ac_exeext
50069        }; then
50070   ac_cv_search_setsockopt=$ac_res
50071 else
50072   $as_echo "$as_me: failed program was:" >&5
50073 sed 's/^/| /' conftest.$ac_ext >&5
50074
50075
50076 fi
50077
50078 rm -rf conftest.dSYM
50079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50080       conftest$ac_exeext
50081   if test "${ac_cv_search_setsockopt+set}" = set; then
50082   break
50083 fi
50084 done
50085 if test "${ac_cv_search_setsockopt+set}" = set; then
50086   :
50087 else
50088   ac_cv_search_setsockopt=no
50089 fi
50090 rm conftest.$ac_ext
50091 LIBS=$ac_func_search_save_LIBS
50092 fi
50093 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50094 $as_echo "$ac_cv_search_setsockopt" >&6; }
50095 ac_res=$ac_cv_search_setsockopt
50096 if test "$ac_res" != no; then
50097   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50098
50099 fi
50100
50101 fi
50102
50103   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
50104 $as_echo_n "checking for library containing setsockopt... " >&6; }
50105 if test "${ac_cv_search_setsockopt+set}" = set; then
50106   $as_echo_n "(cached) " >&6
50107 else
50108   ac_func_search_save_LIBS=$LIBS
50109 cat >conftest.$ac_ext <<_ACEOF
50110 /* confdefs.h.  */
50111 _ACEOF
50112 cat confdefs.h >>conftest.$ac_ext
50113 cat >>conftest.$ac_ext <<_ACEOF
50114 /* end confdefs.h.  */
50115
50116 /* Override any GCC internal prototype to avoid an error.
50117    Use char because int might match the return type of a GCC
50118    builtin and then its argument prototype would still apply.  */
50119 #ifdef __cplusplus
50120 extern "C"
50121 #endif
50122 char setsockopt ();
50123 int
50124 main ()
50125 {
50126 return setsockopt ();
50127   ;
50128   return 0;
50129 }
50130 _ACEOF
50131 for ac_lib in '' nsl; do
50132   if test -z "$ac_lib"; then
50133     ac_res="none required"
50134   else
50135     ac_res=-l$ac_lib
50136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
50137   fi
50138   rm -f conftest.$ac_objext conftest$ac_exeext
50139 if { (ac_try="$ac_link"
50140 case "(($ac_try" in
50141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50142   *) ac_try_echo=$ac_try;;
50143 esac
50144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50145 $as_echo "$ac_try_echo") >&5
50146   (eval "$ac_link") 2>conftest.er1
50147   ac_status=$?
50148   grep -v '^ *+' conftest.er1 >conftest.err
50149   rm -f conftest.er1
50150   cat conftest.err >&5
50151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152   (exit $ac_status); } && {
50153          test -z "$ac_c_werror_flag" ||
50154          test ! -s conftest.err
50155        } && test -s conftest$ac_exeext && {
50156          test "$cross_compiling" = yes ||
50157          $as_test_x conftest$ac_exeext
50158        }; then
50159   ac_cv_search_setsockopt=$ac_res
50160 else
50161   $as_echo "$as_me: failed program was:" >&5
50162 sed 's/^/| /' conftest.$ac_ext >&5
50163
50164
50165 fi
50166
50167 rm -rf conftest.dSYM
50168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50169       conftest$ac_exeext
50170   if test "${ac_cv_search_setsockopt+set}" = set; then
50171   break
50172 fi
50173 done
50174 if test "${ac_cv_search_setsockopt+set}" = set; then
50175   :
50176 else
50177   ac_cv_search_setsockopt=no
50178 fi
50179 rm conftest.$ac_ext
50180 LIBS=$ac_func_search_save_LIBS
50181 fi
50182 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
50183 $as_echo "$ac_cv_search_setsockopt" >&6; }
50184 ac_res=$ac_cv_search_setsockopt
50185 if test "$ac_res" != no; then
50186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50187
50188 fi
50189
50190
50191   case "$ac_cv_search_setsockopt" in
50192     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
50193   esac
50194
50195   LIBS=$pu_save_LIBS
50196
50197   enable_rmt() {
50198     if test $ac_cv_header_sys_mtio_h = yes; then
50199       { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
50200 $as_echo_n "checking for remote tape header files... " >&6; }
50201 if test "${pu_cv_header_rmt+set}" = set; then
50202   $as_echo_n "(cached) " >&6
50203 else
50204   cat >conftest.$ac_ext <<_ACEOF
50205 /* confdefs.h.  */
50206 _ACEOF
50207 cat confdefs.h >>conftest.$ac_ext
50208 cat >>conftest.$ac_ext <<_ACEOF
50209 /* end confdefs.h.  */
50210
50211 #if HAVE_SGTTY_H
50212 # include <sgtty.h>
50213 #endif
50214 #include <sys/socket.h>
50215 _ACEOF
50216 if { (ac_try="$ac_cpp conftest.$ac_ext"
50217 case "(($ac_try" in
50218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50219   *) ac_try_echo=$ac_try;;
50220 esac
50221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50222 $as_echo "$ac_try_echo") >&5
50223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50224   ac_status=$?
50225   grep -v '^ *+' conftest.er1 >conftest.err
50226   rm -f conftest.er1
50227   cat conftest.err >&5
50228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50229   (exit $ac_status); } >/dev/null && {
50230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50231          test ! -s conftest.err
50232        }; then
50233   pu_cv_header_rmt=yes
50234 else
50235   $as_echo "$as_me: failed program was:" >&5
50236 sed 's/^/| /' conftest.$ac_ext >&5
50237
50238   pu_cv_header_rmt=no
50239 fi
50240
50241 rm -f conftest.err conftest.$ac_ext
50242 fi
50243 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
50244 $as_echo "$pu_cv_header_rmt" >&6; }
50245       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
50246
50247     fi
50248   }
50249
50250
50251 for ac_header in sys/mtio.h
50252 do
50253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50255   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50256 $as_echo_n "checking for $ac_header... " >&6; }
50257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50258   $as_echo_n "(cached) " >&6
50259 fi
50260 ac_res=`eval 'as_val=${'$as_ac_Header'}
50261                  $as_echo "$as_val"'`
50262                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50263 $as_echo "$ac_res" >&6; }
50264 else
50265   # Is the header compilable?
50266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
50267 $as_echo_n "checking $ac_header usability... " >&6; }
50268 cat >conftest.$ac_ext <<_ACEOF
50269 /* confdefs.h.  */
50270 _ACEOF
50271 cat confdefs.h >>conftest.$ac_ext
50272 cat >>conftest.$ac_ext <<_ACEOF
50273 /* end confdefs.h.  */
50274 $ac_includes_default
50275 #include <$ac_header>
50276 _ACEOF
50277 rm -f conftest.$ac_objext
50278 if { (ac_try="$ac_compile"
50279 case "(($ac_try" in
50280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50281   *) ac_try_echo=$ac_try;;
50282 esac
50283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50284 $as_echo "$ac_try_echo") >&5
50285   (eval "$ac_compile") 2>conftest.er1
50286   ac_status=$?
50287   grep -v '^ *+' conftest.er1 >conftest.err
50288   rm -f conftest.er1
50289   cat conftest.err >&5
50290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50291   (exit $ac_status); } && {
50292          test -z "$ac_c_werror_flag" ||
50293          test ! -s conftest.err
50294        } && test -s conftest.$ac_objext; then
50295   ac_header_compiler=yes
50296 else
50297   $as_echo "$as_me: failed program was:" >&5
50298 sed 's/^/| /' conftest.$ac_ext >&5
50299
50300         ac_header_compiler=no
50301 fi
50302
50303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50305 $as_echo "$ac_header_compiler" >&6; }
50306
50307 # Is the header present?
50308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
50309 $as_echo_n "checking $ac_header presence... " >&6; }
50310 cat >conftest.$ac_ext <<_ACEOF
50311 /* confdefs.h.  */
50312 _ACEOF
50313 cat confdefs.h >>conftest.$ac_ext
50314 cat >>conftest.$ac_ext <<_ACEOF
50315 /* end confdefs.h.  */
50316 #include <$ac_header>
50317 _ACEOF
50318 if { (ac_try="$ac_cpp conftest.$ac_ext"
50319 case "(($ac_try" in
50320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50321   *) ac_try_echo=$ac_try;;
50322 esac
50323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50324 $as_echo "$ac_try_echo") >&5
50325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50326   ac_status=$?
50327   grep -v '^ *+' conftest.er1 >conftest.err
50328   rm -f conftest.er1
50329   cat conftest.err >&5
50330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50331   (exit $ac_status); } >/dev/null && {
50332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50333          test ! -s conftest.err
50334        }; then
50335   ac_header_preproc=yes
50336 else
50337   $as_echo "$as_me: failed program was:" >&5
50338 sed 's/^/| /' conftest.$ac_ext >&5
50339
50340   ac_header_preproc=no
50341 fi
50342
50343 rm -f conftest.err conftest.$ac_ext
50344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50345 $as_echo "$ac_header_preproc" >&6; }
50346
50347 # So?  What about this header?
50348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50349   yes:no: )
50350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50354     ac_header_preproc=yes
50355     ;;
50356   no:yes:* )
50357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50360 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50364 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50369     ( cat <<\_ASBOX
50370 ## ------------------------------ ##
50371 ## Report this to bug-tar@gnu.org ##
50372 ## ------------------------------ ##
50373 _ASBOX
50374      ) | sed "s/^/$as_me: WARNING:     /" >&2
50375     ;;
50376 esac
50377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50378 $as_echo_n "checking for $ac_header... " >&6; }
50379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50380   $as_echo_n "(cached) " >&6
50381 else
50382   eval "$as_ac_Header=\$ac_header_preproc"
50383 fi
50384 ac_res=`eval 'as_val=${'$as_ac_Header'}
50385                  $as_echo "$as_val"'`
50386                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50387 $as_echo "$ac_res" >&6; }
50388
50389 fi
50390 as_val=`eval 'as_val=${'$as_ac_Header'}
50391                  $as_echo "$as_val"'`
50392    if test "x$as_val" = x""yes; then
50393   cat >>confdefs.h <<_ACEOF
50394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50395 _ACEOF
50396
50397 fi
50398
50399 done
50400
50401   { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
50402 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
50403 if test "${pu_cv_header_mtio_check_field+set}" = set; then
50404   $as_echo_n "(cached) " >&6
50405 else
50406   cat >conftest.$ac_ext <<_ACEOF
50407 /* confdefs.h.  */
50408 _ACEOF
50409 cat confdefs.h >>conftest.$ac_ext
50410 cat >>conftest.$ac_ext <<_ACEOF
50411 /* end confdefs.h.  */
50412 #include <sys/mtio.h>
50413
50414 _ACEOF
50415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50416   $EGREP "mt_model" >/dev/null 2>&1; then
50417   pu_cv_header_mtio_check_field=mt_model
50418 else
50419   pu_cv_header_mtio_check_field=mt_type
50420 fi
50421 rm -f conftest*
50422
50423 fi
50424 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
50425 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
50426
50427 cat >>confdefs.h <<_ACEOF
50428 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
50429 _ACEOF
50430
50431
50432
50433
50434   if test "x$DEFAULT_RMT_DIR" != x; then
50435         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
50436   else
50437         DEFAULT_RMT_DIR='$(libexecdir)'
50438   fi
50439
50440   { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
50441 $as_echo_n "checking whether to build rmt... " >&6; }
50442
50443 # Check whether --with-rmt was given.
50444 if test "${with_rmt+set}" = set; then
50445   withval=$with_rmt; case $withval in
50446                yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
50447 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
50448    { (exit 1); exit 1; }; };;
50449                /*)     DEFAULT_RMT_COMMAND=$withval
50450                        { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
50451 $as_echo "no, use $withval instead" >&6; };;
50452                *)      { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
50453 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
50454    { (exit 1); exit 1; }; };;
50455                esac
50456 else
50457   { $as_echo "$as_me:$LINENO: result: yes" >&5
50458 $as_echo "yes" >&6; }
50459                 enable_rmt
50460                 if test "$PU_RMT_PROG" = ""; then
50461                   { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
50462 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
50463                 fi
50464 fi
50465
50466
50467
50468   if test "x$DEFAULT_RMT_COMMAND" != x; then
50469
50470 cat >>confdefs.h <<_ACEOF
50471 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
50472 _ACEOF
50473
50474   fi
50475
50476
50477
50478
50479
50480
50481
50482
50483
50484
50485
50486
50487
50488
50489
50490
50491
50492
50493
50494
50495
50496
50497
50498
50499
50500
50501
50502
50503
50504
50505
50506
50507
50508
50509
50510
50511
50512
50513
50514
50515
50516
50517
50518
50519
50520
50521
50522
50523
50524
50525
50526
50527 for ac_header in sys/buf.h
50528 do
50529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50531 $as_echo_n "checking for $ac_header... " >&6; }
50532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50533   $as_echo_n "(cached) " >&6
50534 else
50535   cat >conftest.$ac_ext <<_ACEOF
50536 /* confdefs.h.  */
50537 _ACEOF
50538 cat confdefs.h >>conftest.$ac_ext
50539 cat >>conftest.$ac_ext <<_ACEOF
50540 /* end confdefs.h.  */
50541 #if HAVE_SYS_PARAM_H
50542 #include <sys/param.h>
50543 #endif
50544
50545 #include <$ac_header>
50546 _ACEOF
50547 rm -f conftest.$ac_objext
50548 if { (ac_try="$ac_compile"
50549 case "(($ac_try" in
50550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50551   *) ac_try_echo=$ac_try;;
50552 esac
50553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50554 $as_echo "$ac_try_echo") >&5
50555   (eval "$ac_compile") 2>conftest.er1
50556   ac_status=$?
50557   grep -v '^ *+' conftest.er1 >conftest.err
50558   rm -f conftest.er1
50559   cat conftest.err >&5
50560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50561   (exit $ac_status); } && {
50562          test -z "$ac_c_werror_flag" ||
50563          test ! -s conftest.err
50564        } && test -s conftest.$ac_objext; then
50565   eval "$as_ac_Header=yes"
50566 else
50567   $as_echo "$as_me: failed program was:" >&5
50568 sed 's/^/| /' conftest.$ac_ext >&5
50569
50570         eval "$as_ac_Header=no"
50571 fi
50572
50573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50574 fi
50575 ac_res=`eval 'as_val=${'$as_ac_Header'}
50576                  $as_echo "$as_val"'`
50577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50578 $as_echo "$ac_res" >&6; }
50579 as_val=`eval 'as_val=${'$as_ac_Header'}
50580                  $as_echo "$as_val"'`
50581    if test "x$as_val" = x""yes; then
50582   cat >>confdefs.h <<_ACEOF
50583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50584 _ACEOF
50585
50586 fi
50587
50588 done
50589
50590
50591
50592
50593   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
50594 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
50595 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
50596   $as_echo_n "(cached) " >&6
50597 else
50598   cat >conftest.$ac_ext <<_ACEOF
50599 /* confdefs.h.  */
50600 _ACEOF
50601 cat confdefs.h >>conftest.$ac_ext
50602 cat >>conftest.$ac_ext <<_ACEOF
50603 /* end confdefs.h.  */
50604 $ac_includes_default
50605 int
50606 main ()
50607 {
50608 static struct stat ac_aggr;
50609 if (ac_aggr.st_blksize)
50610 return 0;
50611   ;
50612   return 0;
50613 }
50614 _ACEOF
50615 rm -f conftest.$ac_objext
50616 if { (ac_try="$ac_compile"
50617 case "(($ac_try" in
50618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50619   *) ac_try_echo=$ac_try;;
50620 esac
50621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50622 $as_echo "$ac_try_echo") >&5
50623   (eval "$ac_compile") 2>conftest.er1
50624   ac_status=$?
50625   grep -v '^ *+' conftest.er1 >conftest.err
50626   rm -f conftest.er1
50627   cat conftest.err >&5
50628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50629   (exit $ac_status); } && {
50630          test -z "$ac_c_werror_flag" ||
50631          test ! -s conftest.err
50632        } && test -s conftest.$ac_objext; then
50633   ac_cv_member_struct_stat_st_blksize=yes
50634 else
50635   $as_echo "$as_me: failed program was:" >&5
50636 sed 's/^/| /' conftest.$ac_ext >&5
50637
50638         cat >conftest.$ac_ext <<_ACEOF
50639 /* confdefs.h.  */
50640 _ACEOF
50641 cat confdefs.h >>conftest.$ac_ext
50642 cat >>conftest.$ac_ext <<_ACEOF
50643 /* end confdefs.h.  */
50644 $ac_includes_default
50645 int
50646 main ()
50647 {
50648 static struct stat ac_aggr;
50649 if (sizeof ac_aggr.st_blksize)
50650 return 0;
50651   ;
50652   return 0;
50653 }
50654 _ACEOF
50655 rm -f conftest.$ac_objext
50656 if { (ac_try="$ac_compile"
50657 case "(($ac_try" in
50658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50659   *) ac_try_echo=$ac_try;;
50660 esac
50661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50662 $as_echo "$ac_try_echo") >&5
50663   (eval "$ac_compile") 2>conftest.er1
50664   ac_status=$?
50665   grep -v '^ *+' conftest.er1 >conftest.err
50666   rm -f conftest.er1
50667   cat conftest.err >&5
50668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50669   (exit $ac_status); } && {
50670          test -z "$ac_c_werror_flag" ||
50671          test ! -s conftest.err
50672        } && test -s conftest.$ac_objext; then
50673   ac_cv_member_struct_stat_st_blksize=yes
50674 else
50675   $as_echo "$as_me: failed program was:" >&5
50676 sed 's/^/| /' conftest.$ac_ext >&5
50677
50678         ac_cv_member_struct_stat_st_blksize=no
50679 fi
50680
50681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50682 fi
50683
50684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50685 fi
50686 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
50687 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
50688 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
50689
50690 cat >>confdefs.h <<_ACEOF
50691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
50692 _ACEOF
50693
50694
50695 fi
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710
50711
50712   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
50713 $as_echo_n "checking for library containing gethostbyname... " >&6; }
50714 if test "${ac_cv_search_gethostbyname+set}" = set; then
50715   $as_echo_n "(cached) " >&6
50716 else
50717   ac_func_search_save_LIBS=$LIBS
50718 cat >conftest.$ac_ext <<_ACEOF
50719 /* confdefs.h.  */
50720 _ACEOF
50721 cat confdefs.h >>conftest.$ac_ext
50722 cat >>conftest.$ac_ext <<_ACEOF
50723 /* end confdefs.h.  */
50724
50725 /* Override any GCC internal prototype to avoid an error.
50726    Use char because int might match the return type of a GCC
50727    builtin and then its argument prototype would still apply.  */
50728 #ifdef __cplusplus
50729 extern "C"
50730 #endif
50731 char gethostbyname ();
50732 int
50733 main ()
50734 {
50735 return gethostbyname ();
50736   ;
50737   return 0;
50738 }
50739 _ACEOF
50740 for ac_lib in '' nsl; do
50741   if test -z "$ac_lib"; then
50742     ac_res="none required"
50743   else
50744     ac_res=-l$ac_lib
50745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
50746   fi
50747   rm -f conftest.$ac_objext conftest$ac_exeext
50748 if { (ac_try="$ac_link"
50749 case "(($ac_try" in
50750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50751   *) ac_try_echo=$ac_try;;
50752 esac
50753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50754 $as_echo "$ac_try_echo") >&5
50755   (eval "$ac_link") 2>conftest.er1
50756   ac_status=$?
50757   grep -v '^ *+' conftest.er1 >conftest.err
50758   rm -f conftest.er1
50759   cat conftest.err >&5
50760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50761   (exit $ac_status); } && {
50762          test -z "$ac_c_werror_flag" ||
50763          test ! -s conftest.err
50764        } && test -s conftest$ac_exeext && {
50765          test "$cross_compiling" = yes ||
50766          $as_test_x conftest$ac_exeext
50767        }; then
50768   ac_cv_search_gethostbyname=$ac_res
50769 else
50770   $as_echo "$as_me: failed program was:" >&5
50771 sed 's/^/| /' conftest.$ac_ext >&5
50772
50773
50774 fi
50775
50776 rm -rf conftest.dSYM
50777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50778       conftest$ac_exeext
50779   if test "${ac_cv_search_gethostbyname+set}" = set; then
50780   break
50781 fi
50782 done
50783 if test "${ac_cv_search_gethostbyname+set}" = set; then
50784   :
50785 else
50786   ac_cv_search_gethostbyname=no
50787 fi
50788 rm conftest.$ac_ext
50789 LIBS=$ac_func_search_save_LIBS
50790 fi
50791 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
50792 $as_echo "$ac_cv_search_gethostbyname" >&6; }
50793 ac_res=$ac_cv_search_gethostbyname
50794 if test "$ac_res" != no; then
50795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50796
50797 fi
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
50825 $as_echo_n "checking whether getgrgid is declared... " >&6; }
50826 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
50827   $as_echo_n "(cached) " >&6
50828 else
50829   cat >conftest.$ac_ext <<_ACEOF
50830 /* confdefs.h.  */
50831 _ACEOF
50832 cat confdefs.h >>conftest.$ac_ext
50833 cat >>conftest.$ac_ext <<_ACEOF
50834 /* end confdefs.h.  */
50835 #include <grp.h>
50836
50837 int
50838 main ()
50839 {
50840 #ifndef getgrgid
50841   (void) getgrgid;
50842 #endif
50843
50844   ;
50845   return 0;
50846 }
50847 _ACEOF
50848 rm -f conftest.$ac_objext
50849 if { (ac_try="$ac_compile"
50850 case "(($ac_try" in
50851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50852   *) ac_try_echo=$ac_try;;
50853 esac
50854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50855 $as_echo "$ac_try_echo") >&5
50856   (eval "$ac_compile") 2>conftest.er1
50857   ac_status=$?
50858   grep -v '^ *+' conftest.er1 >conftest.err
50859   rm -f conftest.er1
50860   cat conftest.err >&5
50861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50862   (exit $ac_status); } && {
50863          test -z "$ac_c_werror_flag" ||
50864          test ! -s conftest.err
50865        } && test -s conftest.$ac_objext; then
50866   ac_cv_have_decl_getgrgid=yes
50867 else
50868   $as_echo "$as_me: failed program was:" >&5
50869 sed 's/^/| /' conftest.$ac_ext >&5
50870
50871         ac_cv_have_decl_getgrgid=no
50872 fi
50873
50874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50875 fi
50876 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
50877 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
50878 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
50879
50880 cat >>confdefs.h <<_ACEOF
50881 #define HAVE_DECL_GETGRGID 1
50882 _ACEOF
50883
50884
50885 else
50886   cat >>confdefs.h <<_ACEOF
50887 #define HAVE_DECL_GETGRGID 0
50888 _ACEOF
50889
50890
50891 fi
50892
50893
50894 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
50895 $as_echo_n "checking whether getpwuid is declared... " >&6; }
50896 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
50897   $as_echo_n "(cached) " >&6
50898 else
50899   cat >conftest.$ac_ext <<_ACEOF
50900 /* confdefs.h.  */
50901 _ACEOF
50902 cat confdefs.h >>conftest.$ac_ext
50903 cat >>conftest.$ac_ext <<_ACEOF
50904 /* end confdefs.h.  */
50905 #include <pwd.h>
50906
50907 int
50908 main ()
50909 {
50910 #ifndef getpwuid
50911   (void) getpwuid;
50912 #endif
50913
50914   ;
50915   return 0;
50916 }
50917 _ACEOF
50918 rm -f conftest.$ac_objext
50919 if { (ac_try="$ac_compile"
50920 case "(($ac_try" in
50921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50922   *) ac_try_echo=$ac_try;;
50923 esac
50924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50925 $as_echo "$ac_try_echo") >&5
50926   (eval "$ac_compile") 2>conftest.er1
50927   ac_status=$?
50928   grep -v '^ *+' conftest.er1 >conftest.err
50929   rm -f conftest.er1
50930   cat conftest.err >&5
50931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50932   (exit $ac_status); } && {
50933          test -z "$ac_c_werror_flag" ||
50934          test ! -s conftest.err
50935        } && test -s conftest.$ac_objext; then
50936   ac_cv_have_decl_getpwuid=yes
50937 else
50938   $as_echo "$as_me: failed program was:" >&5
50939 sed 's/^/| /' conftest.$ac_ext >&5
50940
50941         ac_cv_have_decl_getpwuid=no
50942 fi
50943
50944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50945 fi
50946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
50947 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
50948 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
50949
50950 cat >>confdefs.h <<_ACEOF
50951 #define HAVE_DECL_GETPWUID 1
50952 _ACEOF
50953
50954
50955 else
50956   cat >>confdefs.h <<_ACEOF
50957 #define HAVE_DECL_GETPWUID 0
50958 _ACEOF
50959
50960
50961 fi
50962
50963
50964 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
50965 $as_echo_n "checking whether time is declared... " >&6; }
50966 if test "${ac_cv_have_decl_time+set}" = set; then
50967   $as_echo_n "(cached) " >&6
50968 else
50969   cat >conftest.$ac_ext <<_ACEOF
50970 /* confdefs.h.  */
50971 _ACEOF
50972 cat confdefs.h >>conftest.$ac_ext
50973 cat >>conftest.$ac_ext <<_ACEOF
50974 /* end confdefs.h.  */
50975 #include <time.h>
50976
50977 int
50978 main ()
50979 {
50980 #ifndef time
50981   (void) time;
50982 #endif
50983
50984   ;
50985   return 0;
50986 }
50987 _ACEOF
50988 rm -f conftest.$ac_objext
50989 if { (ac_try="$ac_compile"
50990 case "(($ac_try" in
50991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50992   *) ac_try_echo=$ac_try;;
50993 esac
50994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50995 $as_echo "$ac_try_echo") >&5
50996   (eval "$ac_compile") 2>conftest.er1
50997   ac_status=$?
50998   grep -v '^ *+' conftest.er1 >conftest.err
50999   rm -f conftest.er1
51000   cat conftest.err >&5
51001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51002   (exit $ac_status); } && {
51003          test -z "$ac_c_werror_flag" ||
51004          test ! -s conftest.err
51005        } && test -s conftest.$ac_objext; then
51006   ac_cv_have_decl_time=yes
51007 else
51008   $as_echo "$as_me: failed program was:" >&5
51009 sed 's/^/| /' conftest.$ac_ext >&5
51010
51011         ac_cv_have_decl_time=no
51012 fi
51013
51014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51015 fi
51016 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
51017 $as_echo "$ac_cv_have_decl_time" >&6; }
51018 if test "x$ac_cv_have_decl_time" = x""yes; then
51019
51020 cat >>confdefs.h <<_ACEOF
51021 #define HAVE_DECL_TIME 1
51022 _ACEOF
51023
51024
51025 else
51026   cat >>confdefs.h <<_ACEOF
51027 #define HAVE_DECL_TIME 0
51028 _ACEOF
51029
51030
51031 fi
51032
51033
51034
51035
51036 for ac_func in waitpid
51037 do
51038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51039 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51040 $as_echo_n "checking for $ac_func... " >&6; }
51041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51042   $as_echo_n "(cached) " >&6
51043 else
51044   cat >conftest.$ac_ext <<_ACEOF
51045 /* confdefs.h.  */
51046 _ACEOF
51047 cat confdefs.h >>conftest.$ac_ext
51048 cat >>conftest.$ac_ext <<_ACEOF
51049 /* end confdefs.h.  */
51050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51052 #define $ac_func innocuous_$ac_func
51053
51054 /* System header to define __stub macros and hopefully few prototypes,
51055     which can conflict with char $ac_func (); below.
51056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51057     <limits.h> exists even on freestanding compilers.  */
51058
51059 #ifdef __STDC__
51060 # include <limits.h>
51061 #else
51062 # include <assert.h>
51063 #endif
51064
51065 #undef $ac_func
51066
51067 /* Override any GCC internal prototype to avoid an error.
51068    Use char because int might match the return type of a GCC
51069    builtin and then its argument prototype would still apply.  */
51070 #ifdef __cplusplus
51071 extern "C"
51072 #endif
51073 char $ac_func ();
51074 /* The GNU C library defines this for functions which it implements
51075     to always fail with ENOSYS.  Some functions are actually named
51076     something starting with __ and the normal name is an alias.  */
51077 #if defined __stub_$ac_func || defined __stub___$ac_func
51078 choke me
51079 #endif
51080
51081 int
51082 main ()
51083 {
51084 return $ac_func ();
51085   ;
51086   return 0;
51087 }
51088 _ACEOF
51089 rm -f conftest.$ac_objext conftest$ac_exeext
51090 if { (ac_try="$ac_link"
51091 case "(($ac_try" in
51092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51093   *) ac_try_echo=$ac_try;;
51094 esac
51095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51096 $as_echo "$ac_try_echo") >&5
51097   (eval "$ac_link") 2>conftest.er1
51098   ac_status=$?
51099   grep -v '^ *+' conftest.er1 >conftest.err
51100   rm -f conftest.er1
51101   cat conftest.err >&5
51102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51103   (exit $ac_status); } && {
51104          test -z "$ac_c_werror_flag" ||
51105          test ! -s conftest.err
51106        } && test -s conftest$ac_exeext && {
51107          test "$cross_compiling" = yes ||
51108          $as_test_x conftest$ac_exeext
51109        }; then
51110   eval "$as_ac_var=yes"
51111 else
51112   $as_echo "$as_me: failed program was:" >&5
51113 sed 's/^/| /' conftest.$ac_ext >&5
51114
51115         eval "$as_ac_var=no"
51116 fi
51117
51118 rm -rf conftest.dSYM
51119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51120       conftest$ac_exeext conftest.$ac_ext
51121 fi
51122 ac_res=`eval 'as_val=${'$as_ac_var'}
51123                  $as_echo "$as_val"'`
51124                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51125 $as_echo "$ac_res" >&6; }
51126 as_val=`eval 'as_val=${'$as_ac_var'}
51127                  $as_echo "$as_val"'`
51128    if test "x$as_val" = x""yes; then
51129   cat >>confdefs.h <<_ACEOF
51130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51131 _ACEOF
51132
51133 else
51134   case " $LIBOBJS " in
51135   *" $ac_func.$ac_objext "* ) ;;
51136   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
51137  ;;
51138 esac
51139
51140 fi
51141 done
51142
51143
51144
51145 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
51146 $as_echo_n "checking for remote shell... " >&6; }
51147 if test "${tar_cv_path_RSH+set}" = set; then
51148   $as_echo_n "(cached) " >&6
51149 else
51150   if test -n "$RSH"; then
51151     tar_cv_path_RSH=$RSH
51152   else
51153     tar_cv_path_RSH=no
51154     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
51155         /usr/bin/nsh /usr/bin/rcmd
51156     do
51157       # Prefer a non-symlink rsh to a symlink one, so that binaries built
51158       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
51159       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
51160       if test -f $ac_file; then
51161         if (test -h $ac_file) 2>/dev/null; then
51162           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
51163         else
51164           tar_cv_path_RSH=$ac_file
51165           break
51166         fi
51167       fi
51168     done
51169   fi
51170 fi
51171 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
51172 $as_echo "$tar_cv_path_RSH" >&6; }
51173 if test $tar_cv_path_RSH = no; then
51174
51175 for ac_header in netdb.h
51176 do
51177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51179   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51180 $as_echo_n "checking for $ac_header... " >&6; }
51181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51182   $as_echo_n "(cached) " >&6
51183 fi
51184 ac_res=`eval 'as_val=${'$as_ac_Header'}
51185                  $as_echo "$as_val"'`
51186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51187 $as_echo "$ac_res" >&6; }
51188 else
51189   # Is the header compilable?
51190 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51191 $as_echo_n "checking $ac_header usability... " >&6; }
51192 cat >conftest.$ac_ext <<_ACEOF
51193 /* confdefs.h.  */
51194 _ACEOF
51195 cat confdefs.h >>conftest.$ac_ext
51196 cat >>conftest.$ac_ext <<_ACEOF
51197 /* end confdefs.h.  */
51198 $ac_includes_default
51199 #include <$ac_header>
51200 _ACEOF
51201 rm -f conftest.$ac_objext
51202 if { (ac_try="$ac_compile"
51203 case "(($ac_try" in
51204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51205   *) ac_try_echo=$ac_try;;
51206 esac
51207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51208 $as_echo "$ac_try_echo") >&5
51209   (eval "$ac_compile") 2>conftest.er1
51210   ac_status=$?
51211   grep -v '^ *+' conftest.er1 >conftest.err
51212   rm -f conftest.er1
51213   cat conftest.err >&5
51214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215   (exit $ac_status); } && {
51216          test -z "$ac_c_werror_flag" ||
51217          test ! -s conftest.err
51218        } && test -s conftest.$ac_objext; then
51219   ac_header_compiler=yes
51220 else
51221   $as_echo "$as_me: failed program was:" >&5
51222 sed 's/^/| /' conftest.$ac_ext >&5
51223
51224         ac_header_compiler=no
51225 fi
51226
51227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51229 $as_echo "$ac_header_compiler" >&6; }
51230
51231 # Is the header present?
51232 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51233 $as_echo_n "checking $ac_header presence... " >&6; }
51234 cat >conftest.$ac_ext <<_ACEOF
51235 /* confdefs.h.  */
51236 _ACEOF
51237 cat confdefs.h >>conftest.$ac_ext
51238 cat >>conftest.$ac_ext <<_ACEOF
51239 /* end confdefs.h.  */
51240 #include <$ac_header>
51241 _ACEOF
51242 if { (ac_try="$ac_cpp conftest.$ac_ext"
51243 case "(($ac_try" in
51244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51245   *) ac_try_echo=$ac_try;;
51246 esac
51247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51248 $as_echo "$ac_try_echo") >&5
51249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51250   ac_status=$?
51251   grep -v '^ *+' conftest.er1 >conftest.err
51252   rm -f conftest.er1
51253   cat conftest.err >&5
51254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51255   (exit $ac_status); } >/dev/null && {
51256          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51257          test ! -s conftest.err
51258        }; then
51259   ac_header_preproc=yes
51260 else
51261   $as_echo "$as_me: failed program was:" >&5
51262 sed 's/^/| /' conftest.$ac_ext >&5
51263
51264   ac_header_preproc=no
51265 fi
51266
51267 rm -f conftest.err conftest.$ac_ext
51268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51269 $as_echo "$ac_header_preproc" >&6; }
51270
51271 # So?  What about this header?
51272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51273   yes:no: )
51274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51275 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51278     ac_header_preproc=yes
51279     ;;
51280   no:yes:* )
51281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51282 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51284 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51286 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51288 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51289     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51292 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51293     ( cat <<\_ASBOX
51294 ## ------------------------------ ##
51295 ## Report this to bug-tar@gnu.org ##
51296 ## ------------------------------ ##
51297 _ASBOX
51298      ) | sed "s/^/$as_me: WARNING:     /" >&2
51299     ;;
51300 esac
51301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51302 $as_echo_n "checking for $ac_header... " >&6; }
51303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51304   $as_echo_n "(cached) " >&6
51305 else
51306   eval "$as_ac_Header=\$ac_header_preproc"
51307 fi
51308 ac_res=`eval 'as_val=${'$as_ac_Header'}
51309                  $as_echo "$as_val"'`
51310                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51311 $as_echo "$ac_res" >&6; }
51312
51313 fi
51314 as_val=`eval 'as_val=${'$as_ac_Header'}
51315                  $as_echo "$as_val"'`
51316    if test "x$as_val" = x""yes; then
51317   cat >>confdefs.h <<_ACEOF
51318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51319 _ACEOF
51320
51321 fi
51322
51323 done
51324
51325 else
51326
51327 cat >>confdefs.h <<_ACEOF
51328 #define REMOTE_SHELL "$tar_cv_path_RSH"
51329 _ACEOF
51330
51331 fi
51332
51333
51334
51335
51336
51337 # Check whether --with-compress was given.
51338 if test "${with_compress+set}" = set; then
51339   withval=$with_compress; tar_cv_compressor_compress=${withval}
51340 else
51341   tar_cv_compressor_compress=compress
51342 fi
51343
51344
51345 cat >>confdefs.h <<_ACEOF
51346 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
51347 _ACEOF
51348
51349
51350
51351
51352
51353 # Check whether --with-gzip was given.
51354 if test "${with_gzip+set}" = set; then
51355   withval=$with_gzip; tar_cv_compressor_gzip=${withval}
51356 else
51357   tar_cv_compressor_gzip=gzip
51358 fi
51359
51360
51361 cat >>confdefs.h <<_ACEOF
51362 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
51363 _ACEOF
51364
51365
51366
51367
51368
51369 # Check whether --with-bzip2 was given.
51370 if test "${with_bzip2+set}" = set; then
51371   withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
51372 else
51373   tar_cv_compressor_bzip2=bzip2
51374 fi
51375
51376
51377 cat >>confdefs.h <<_ACEOF
51378 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
51379 _ACEOF
51380
51381
51382
51383
51384
51385 # Check whether --with-lzip was given.
51386 if test "${with_lzip+set}" = set; then
51387   withval=$with_lzip; tar_cv_compressor_lzip=${withval}
51388 else
51389   tar_cv_compressor_lzip=lzip
51390 fi
51391
51392
51393 cat >>confdefs.h <<_ACEOF
51394 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
51395 _ACEOF
51396
51397
51398
51399
51400
51401 # Check whether --with-lzma was given.
51402 if test "${with_lzma+set}" = set; then
51403   withval=$with_lzma; tar_cv_compressor_lzma=${withval}
51404 else
51405   tar_cv_compressor_lzma=lzma
51406 fi
51407
51408
51409 cat >>confdefs.h <<_ACEOF
51410 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
51411 _ACEOF
51412
51413
51414
51415
51416
51417 # Check whether --with-lzop was given.
51418 if test "${with_lzop+set}" = set; then
51419   withval=$with_lzop; tar_cv_compressor_lzop=${withval}
51420 else
51421   tar_cv_compressor_lzop=lzop
51422 fi
51423
51424
51425 cat >>confdefs.h <<_ACEOF
51426 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
51427 _ACEOF
51428
51429
51430
51431
51432
51433 # Check whether --with-xz was given.
51434 if test "${with_xz+set}" = set; then
51435   withval=$with_xz; tar_cv_compressor_xz=${withval}
51436 else
51437   tar_cv_compressor_xz=xz
51438 fi
51439
51440
51441 cat >>confdefs.h <<_ACEOF
51442 #define XZ_PROGRAM "$tar_cv_compressor_xz"
51443 _ACEOF
51444
51445
51446 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
51447 $as_echo_n "checking for default archive format... " >&6; }
51448
51449
51450
51451 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
51452   DEFAULT_ARCHIVE_FORMAT="GNU"
51453 fi
51454 case $DEFAULT_ARCHIVE_FORMAT in
51455   V7|OLDGNU|USTAR|POSIX|GNU) ;;
51456   *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
51457 $as_echo "$as_me: error: Invalid format name" >&2;}
51458    { (exit 1); exit 1; }; };;
51459 esac
51460
51461 cat >>confdefs.h <<_ACEOF
51462 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
51463 _ACEOF
51464
51465 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
51466 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
51467
51468 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
51469 $as_echo_n "checking for default archive... " >&6; }
51470
51471
51472 if test -z "$DEFAULT_ARCHIVE"; then
51473   DEFAULT_ARCHIVE=-
51474 else
51475   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
51476     { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
51477 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
51478   fi
51479   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
51480   # FIXME: Let DEVICE_PREFIX be configured from the environment.
51481   # FIXME: Rearrange, here.
51482   case $DEFAULT_ARCHIVE in
51483     *[0-7][lmh])
51484
51485 cat >>confdefs.h <<\_ACEOF
51486 #define DENSITY_LETTER 1
51487 _ACEOF
51488
51489       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
51490       ;;
51491     *[0-7])
51492       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
51493       ;;
51494     *)
51495       device_prefix=
51496       ;;
51497   esac
51498   case "$device_prefix" in
51499     ?*)
51500
51501 cat >>confdefs.h <<_ACEOF
51502 #define DEVICE_PREFIX "$device_prefix"
51503 _ACEOF
51504
51505       ;;
51506   esac
51507 fi
51508
51509 cat >>confdefs.h <<_ACEOF
51510 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
51511 _ACEOF
51512
51513 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
51514 $as_echo "$DEFAULT_ARCHIVE" >&6; }
51515
51516
51517 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
51518 $as_echo_n "checking for default blocking... " >&6; }
51519 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
51520
51521 cat >>confdefs.h <<_ACEOF
51522 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
51523 _ACEOF
51524
51525 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
51526 $as_echo "$DEFAULT_BLOCKING" >&6; }
51527
51528 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
51529 $as_echo_n "checking for default quoting style... " >&6; }
51530
51531
51532 DEFAULT_QUOTING_STYLE="escape"
51533
51534
51535 case $DEFAULT_QUOTING_STYLE in
51536           literal|shell|shell-always|c|escape|locale|clocale) ;;
51537 *)  { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
51538 $as_echo "$as_me: error: Invalid quoting style" >&2;}
51539    { (exit 1); exit 1; }; };;
51540 esac
51541 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
51542 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
51543 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
51544
51545 cat >>confdefs.h <<_ACEOF
51546 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
51547 _ACEOF
51548
51549
51550 # Iconv
51551
51552       if test "X$prefix" = "XNONE"; then
51553     acl_final_prefix="$ac_default_prefix"
51554   else
51555     acl_final_prefix="$prefix"
51556   fi
51557   if test "X$exec_prefix" = "XNONE"; then
51558     acl_final_exec_prefix='${prefix}'
51559   else
51560     acl_final_exec_prefix="$exec_prefix"
51561   fi
51562   acl_save_prefix="$prefix"
51563   prefix="$acl_final_prefix"
51564   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
51565   prefix="$acl_save_prefix"
51566
51567
51568 # Check whether --with-gnu-ld was given.
51569 if test "${with_gnu_ld+set}" = set; then
51570   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
51571 else
51572   with_gnu_ld=no
51573 fi
51574
51575 # Prepare PATH_SEPARATOR.
51576 # The user is always right.
51577 if test "${PATH_SEPARATOR+set}" != set; then
51578   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
51579   # contains only /bin. Note that ksh looks also at the FPATH variable,
51580   # so we have to set that as well for the test.
51581   PATH_SEPARATOR=:
51582   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
51583     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
51584            || PATH_SEPARATOR=';'
51585        }
51586 fi
51587 ac_prog=ld
51588 if test "$GCC" = yes; then
51589   # Check if gcc -print-prog-name=ld gives a path.
51590   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
51591 $as_echo_n "checking for ld used by GCC... " >&6; }
51592   case $host in
51593   *-*-mingw*)
51594     # gcc leaves a trailing carriage return which upsets mingw
51595     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51596   *)
51597     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
51598   esac
51599   case $ac_prog in
51600     # Accept absolute paths.
51601     [\\/]* | [A-Za-z]:[\\/]*)
51602       re_direlt='/[^/][^/]*/\.\./'
51603       # Canonicalize the path of ld
51604       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
51605       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
51606         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
51607       done
51608       test -z "$LD" && LD="$ac_prog"
51609       ;;
51610   "")
51611     # If it fails, then pretend we aren't using GCC.
51612     ac_prog=ld
51613     ;;
51614   *)
51615     # If it is relative, then search for the first ld in PATH.
51616     with_gnu_ld=unknown
51617     ;;
51618   esac
51619 elif test "$with_gnu_ld" = yes; then
51620   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
51621 $as_echo_n "checking for GNU ld... " >&6; }
51622 else
51623   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
51624 $as_echo_n "checking for non-GNU ld... " >&6; }
51625 fi
51626 if test "${acl_cv_path_LD+set}" = set; then
51627   $as_echo_n "(cached) " >&6
51628 else
51629   if test -z "$LD"; then
51630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
51631   for ac_dir in $PATH; do
51632     test -z "$ac_dir" && ac_dir=.
51633     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
51634       acl_cv_path_LD="$ac_dir/$ac_prog"
51635       # Check to see if the program is GNU ld.  I'd rather use --version,
51636       # but apparently some GNU ld's only accept -v.
51637       # Break only if it was the GNU/non-GNU ld that we prefer.
51638       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
51639       *GNU* | *'with BFD'*)
51640         test "$with_gnu_ld" != no && break ;;
51641       *)
51642         test "$with_gnu_ld" != yes && break ;;
51643       esac
51644     fi
51645   done
51646   IFS="$ac_save_ifs"
51647 else
51648   acl_cv_path_LD="$LD" # Let the user override the test with a path.
51649 fi
51650 fi
51651
51652 LD="$acl_cv_path_LD"
51653 if test -n "$LD"; then
51654   { $as_echo "$as_me:$LINENO: result: $LD" >&5
51655 $as_echo "$LD" >&6; }
51656 else
51657   { $as_echo "$as_me:$LINENO: result: no" >&5
51658 $as_echo "no" >&6; }
51659 fi
51660 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
51661 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
51662    { (exit 1); exit 1; }; }
51663 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
51664 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
51665 if test "${acl_cv_prog_gnu_ld+set}" = set; then
51666   $as_echo_n "(cached) " >&6
51667 else
51668   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
51669 case `$LD -v 2>&1 </dev/null` in
51670 *GNU* | *'with BFD'*)
51671   acl_cv_prog_gnu_ld=yes ;;
51672 *)
51673   acl_cv_prog_gnu_ld=no ;;
51674 esac
51675 fi
51676 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
51677 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
51678 with_gnu_ld=$acl_cv_prog_gnu_ld
51679
51680
51681
51682
51683                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
51684 $as_echo_n "checking for shared library run path origin... " >&6; }
51685 if test "${acl_cv_rpath+set}" = set; then
51686   $as_echo_n "(cached) " >&6
51687 else
51688
51689     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
51690     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
51691     . ./conftest.sh
51692     rm -f ./conftest.sh
51693     acl_cv_rpath=done
51694
51695 fi
51696 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
51697 $as_echo "$acl_cv_rpath" >&6; }
51698   wl="$acl_cv_wl"
51699   acl_libext="$acl_cv_libext"
51700   acl_shlibext="$acl_cv_shlibext"
51701   acl_libname_spec="$acl_cv_libname_spec"
51702   acl_library_names_spec="$acl_cv_library_names_spec"
51703   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
51704   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
51705   acl_hardcode_direct="$acl_cv_hardcode_direct"
51706   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
51707     # Check whether --enable-rpath was given.
51708 if test "${enable_rpath+set}" = set; then
51709   enableval=$enable_rpath; :
51710 else
51711   enable_rpath=yes
51712 fi
51713
51714
51715
51716
51717   acl_libdirstem=lib
51718   acl_libdirstem2=
51719   case "$host_os" in
51720     solaris*)
51721                                     { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
51722 $as_echo_n "checking for 64-bit host... " >&6; }
51723 if test "${gl_cv_solaris_64bit+set}" = set; then
51724   $as_echo_n "(cached) " >&6
51725 else
51726   cat >conftest.$ac_ext <<_ACEOF
51727 /* confdefs.h.  */
51728 _ACEOF
51729 cat confdefs.h >>conftest.$ac_ext
51730 cat >>conftest.$ac_ext <<_ACEOF
51731 /* end confdefs.h.  */
51732
51733 #ifdef _LP64
51734 sixtyfour bits
51735 #endif
51736
51737 _ACEOF
51738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51739   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
51740   gl_cv_solaris_64bit=yes
51741 else
51742   gl_cv_solaris_64bit=no
51743 fi
51744 rm -f conftest*
51745
51746
51747 fi
51748 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
51749 $as_echo "$gl_cv_solaris_64bit" >&6; }
51750       if test $gl_cv_solaris_64bit = yes; then
51751         acl_libdirstem=lib/64
51752         case "$host_cpu" in
51753           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
51754           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
51755         esac
51756       fi
51757       ;;
51758     *)
51759       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
51760       if test -n "$searchpath"; then
51761         acl_save_IFS="${IFS=    }"; IFS=":"
51762         for searchdir in $searchpath; do
51763           if test -d "$searchdir"; then
51764             case "$searchdir" in
51765               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
51766               */../ | */.. )
51767                 # Better ignore directories of this form. They are misleading.
51768                 ;;
51769               *) searchdir=`cd "$searchdir" && pwd`
51770                  case "$searchdir" in
51771                    */lib64 ) acl_libdirstem=lib64 ;;
51772                  esac ;;
51773             esac
51774           fi
51775         done
51776         IFS="$acl_save_IFS"
51777       fi
51778       ;;
51779   esac
51780   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793     use_additional=yes
51794
51795   acl_save_prefix="$prefix"
51796   prefix="$acl_final_prefix"
51797   acl_save_exec_prefix="$exec_prefix"
51798   exec_prefix="$acl_final_exec_prefix"
51799
51800     eval additional_includedir=\"$includedir\"
51801     eval additional_libdir=\"$libdir\"
51802
51803   exec_prefix="$acl_save_exec_prefix"
51804   prefix="$acl_save_prefix"
51805
51806
51807 # Check whether --with-libiconv-prefix was given.
51808 if test "${with_libiconv_prefix+set}" = set; then
51809   withval=$with_libiconv_prefix;
51810     if test "X$withval" = "Xno"; then
51811       use_additional=no
51812     else
51813       if test "X$withval" = "X"; then
51814
51815   acl_save_prefix="$prefix"
51816   prefix="$acl_final_prefix"
51817   acl_save_exec_prefix="$exec_prefix"
51818   exec_prefix="$acl_final_exec_prefix"
51819
51820           eval additional_includedir=\"$includedir\"
51821           eval additional_libdir=\"$libdir\"
51822
51823   exec_prefix="$acl_save_exec_prefix"
51824   prefix="$acl_save_prefix"
51825
51826       else
51827         additional_includedir="$withval/include"
51828         additional_libdir="$withval/$acl_libdirstem"
51829         if test "$acl_libdirstem2" != "$acl_libdirstem" \
51830            && ! test -d "$withval/$acl_libdirstem"; then
51831           additional_libdir="$withval/$acl_libdirstem2"
51832         fi
51833       fi
51834     fi
51835
51836 fi
51837
51838       LIBICONV=
51839   LTLIBICONV=
51840   INCICONV=
51841   LIBICONV_PREFIX=
51842       HAVE_LIBICONV=
51843   rpathdirs=
51844   ltrpathdirs=
51845   names_already_handled=
51846   names_next_round='iconv '
51847   while test -n "$names_next_round"; do
51848     names_this_round="$names_next_round"
51849     names_next_round=
51850     for name in $names_this_round; do
51851       already_handled=
51852       for n in $names_already_handled; do
51853         if test "$n" = "$name"; then
51854           already_handled=yes
51855           break
51856         fi
51857       done
51858       if test -z "$already_handled"; then
51859         names_already_handled="$names_already_handled $name"
51860                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
51861         eval value=\"\$HAVE_LIB$uppername\"
51862         if test -n "$value"; then
51863           if test "$value" = yes; then
51864             eval value=\"\$LIB$uppername\"
51865             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
51866             eval value=\"\$LTLIB$uppername\"
51867             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
51868           else
51869                                     :
51870           fi
51871         else
51872                               found_dir=
51873           found_la=
51874           found_so=
51875           found_a=
51876           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
51877           if test -n "$acl_shlibext"; then
51878             shrext=".$acl_shlibext"             # typically: shrext=.so
51879           else
51880             shrext=
51881           fi
51882           if test $use_additional = yes; then
51883             dir="$additional_libdir"
51884                                     if test -n "$acl_shlibext"; then
51885               if test -f "$dir/$libname$shrext"; then
51886                 found_dir="$dir"
51887                 found_so="$dir/$libname$shrext"
51888               else
51889                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
51890                   ver=`(cd "$dir" && \
51891                         for f in "$libname$shrext".*; do echo "$f"; done \
51892                         | sed -e "s,^$libname$shrext\\\\.,," \
51893                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
51894                         | sed 1q ) 2>/dev/null`
51895                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
51896                     found_dir="$dir"
51897                     found_so="$dir/$libname$shrext.$ver"
51898                   fi
51899                 else
51900                   eval library_names=\"$acl_library_names_spec\"
51901                   for f in $library_names; do
51902                     if test -f "$dir/$f"; then
51903                       found_dir="$dir"
51904                       found_so="$dir/$f"
51905                       break
51906                     fi
51907                   done
51908                 fi
51909               fi
51910             fi
51911                         if test "X$found_dir" = "X"; then
51912               if test -f "$dir/$libname.$acl_libext"; then
51913                 found_dir="$dir"
51914                 found_a="$dir/$libname.$acl_libext"
51915               fi
51916             fi
51917             if test "X$found_dir" != "X"; then
51918               if test -f "$dir/$libname.la"; then
51919                 found_la="$dir/$libname.la"
51920               fi
51921             fi
51922           fi
51923           if test "X$found_dir" = "X"; then
51924             for x in $LDFLAGS $LTLIBICONV; do
51925
51926   acl_save_prefix="$prefix"
51927   prefix="$acl_final_prefix"
51928   acl_save_exec_prefix="$exec_prefix"
51929   exec_prefix="$acl_final_exec_prefix"
51930   eval x=\"$x\"
51931   exec_prefix="$acl_save_exec_prefix"
51932   prefix="$acl_save_prefix"
51933
51934               case "$x" in
51935                 -L*)
51936                   dir=`echo "X$x" | sed -e 's/^X-L//'`
51937                                     if test -n "$acl_shlibext"; then
51938                     if test -f "$dir/$libname$shrext"; then
51939                       found_dir="$dir"
51940                       found_so="$dir/$libname$shrext"
51941                     else
51942                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
51943                         ver=`(cd "$dir" && \
51944                               for f in "$libname$shrext".*; do echo "$f"; done \
51945                               | sed -e "s,^$libname$shrext\\\\.,," \
51946                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
51947                               | sed 1q ) 2>/dev/null`
51948                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
51949                           found_dir="$dir"
51950                           found_so="$dir/$libname$shrext.$ver"
51951                         fi
51952                       else
51953                         eval library_names=\"$acl_library_names_spec\"
51954                         for f in $library_names; do
51955                           if test -f "$dir/$f"; then
51956                             found_dir="$dir"
51957                             found_so="$dir/$f"
51958                             break
51959                           fi
51960                         done
51961                       fi
51962                     fi
51963                   fi
51964                                     if test "X$found_dir" = "X"; then
51965                     if test -f "$dir/$libname.$acl_libext"; then
51966                       found_dir="$dir"
51967                       found_a="$dir/$libname.$acl_libext"
51968                     fi
51969                   fi
51970                   if test "X$found_dir" != "X"; then
51971                     if test -f "$dir/$libname.la"; then
51972                       found_la="$dir/$libname.la"
51973                     fi
51974                   fi
51975                   ;;
51976               esac
51977               if test "X$found_dir" != "X"; then
51978                 break
51979               fi
51980             done
51981           fi
51982           if test "X$found_dir" != "X"; then
51983                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
51984             if test "X$found_so" != "X"; then
51985                                                         if test "$enable_rpath" = no \
51986                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
51987                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
51988                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51989               else
51990                                                                                 haveit=
51991                 for x in $ltrpathdirs; do
51992                   if test "X$x" = "X$found_dir"; then
51993                     haveit=yes
51994                     break
51995                   fi
51996                 done
51997                 if test -z "$haveit"; then
51998                   ltrpathdirs="$ltrpathdirs $found_dir"
51999                 fi
52000                                 if test "$acl_hardcode_direct" = yes; then
52001                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52002                 else
52003                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
52004                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52005                                                             haveit=
52006                     for x in $rpathdirs; do
52007                       if test "X$x" = "X$found_dir"; then
52008                         haveit=yes
52009                         break
52010                       fi
52011                     done
52012                     if test -z "$haveit"; then
52013                       rpathdirs="$rpathdirs $found_dir"
52014                     fi
52015                   else
52016                                                                                 haveit=
52017                     for x in $LDFLAGS $LIBICONV; do
52018
52019   acl_save_prefix="$prefix"
52020   prefix="$acl_final_prefix"
52021   acl_save_exec_prefix="$exec_prefix"
52022   exec_prefix="$acl_final_exec_prefix"
52023   eval x=\"$x\"
52024   exec_prefix="$acl_save_exec_prefix"
52025   prefix="$acl_save_prefix"
52026
52027                       if test "X$x" = "X-L$found_dir"; then
52028                         haveit=yes
52029                         break
52030                       fi
52031                     done
52032                     if test -z "$haveit"; then
52033                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
52034                     fi
52035                     if test "$acl_hardcode_minus_L" != no; then
52036                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
52037                     else
52038                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
52039                     fi
52040                   fi
52041                 fi
52042               fi
52043             else
52044               if test "X$found_a" != "X"; then
52045                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
52046               else
52047                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
52048               fi
52049             fi
52050                         additional_includedir=
52051             case "$found_dir" in
52052               */$acl_libdirstem | */$acl_libdirstem/)
52053                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
52054                 if test "$name" = 'iconv'; then
52055                   LIBICONV_PREFIX="$basedir"
52056                 fi
52057                 additional_includedir="$basedir/include"
52058                 ;;
52059               */$acl_libdirstem2 | */$acl_libdirstem2/)
52060                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
52061                 if test "$name" = 'iconv'; then
52062                   LIBICONV_PREFIX="$basedir"
52063                 fi
52064                 additional_includedir="$basedir/include"
52065                 ;;
52066             esac
52067             if test "X$additional_includedir" != "X"; then
52068                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
52069                 haveit=
52070                 if test "X$additional_includedir" = "X/usr/local/include"; then
52071                   if test -n "$GCC"; then
52072                     case $host_os in
52073                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52074                     esac
52075                   fi
52076                 fi
52077                 if test -z "$haveit"; then
52078                   for x in $CPPFLAGS $INCICONV; do
52079
52080   acl_save_prefix="$prefix"
52081   prefix="$acl_final_prefix"
52082   acl_save_exec_prefix="$exec_prefix"
52083   exec_prefix="$acl_final_exec_prefix"
52084   eval x=\"$x\"
52085   exec_prefix="$acl_save_exec_prefix"
52086   prefix="$acl_save_prefix"
52087
52088                     if test "X$x" = "X-I$additional_includedir"; then
52089                       haveit=yes
52090                       break
52091                     fi
52092                   done
52093                   if test -z "$haveit"; then
52094                     if test -d "$additional_includedir"; then
52095                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
52096                     fi
52097                   fi
52098                 fi
52099               fi
52100             fi
52101                         if test -n "$found_la"; then
52102                                                         save_libdir="$libdir"
52103               case "$found_la" in
52104                 */* | *\\*) . "$found_la" ;;
52105                 *) . "./$found_la" ;;
52106               esac
52107               libdir="$save_libdir"
52108                             for dep in $dependency_libs; do
52109                 case "$dep" in
52110                   -L*)
52111                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
52112                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
52113                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
52114                       haveit=
52115                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
52116                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
52117                         if test -n "$GCC"; then
52118                           case $host_os in
52119                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
52120                           esac
52121                         fi
52122                       fi
52123                       if test -z "$haveit"; then
52124                         haveit=
52125                         for x in $LDFLAGS $LIBICONV; do
52126
52127   acl_save_prefix="$prefix"
52128   prefix="$acl_final_prefix"
52129   acl_save_exec_prefix="$exec_prefix"
52130   exec_prefix="$acl_final_exec_prefix"
52131   eval x=\"$x\"
52132   exec_prefix="$acl_save_exec_prefix"
52133   prefix="$acl_save_prefix"
52134
52135                           if test "X$x" = "X-L$additional_libdir"; then
52136                             haveit=yes
52137                             break
52138                           fi
52139                         done
52140                         if test -z "$haveit"; then
52141                           if test -d "$additional_libdir"; then
52142                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
52143                           fi
52144                         fi
52145                         haveit=
52146                         for x in $LDFLAGS $LTLIBICONV; do
52147
52148   acl_save_prefix="$prefix"
52149   prefix="$acl_final_prefix"
52150   acl_save_exec_prefix="$exec_prefix"
52151   exec_prefix="$acl_final_exec_prefix"
52152   eval x=\"$x\"
52153   exec_prefix="$acl_save_exec_prefix"
52154   prefix="$acl_save_prefix"
52155
52156                           if test "X$x" = "X-L$additional_libdir"; then
52157                             haveit=yes
52158                             break
52159                           fi
52160                         done
52161                         if test -z "$haveit"; then
52162                           if test -d "$additional_libdir"; then
52163                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
52164                           fi
52165                         fi
52166                       fi
52167                     fi
52168                     ;;
52169                   -R*)
52170                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
52171                     if test "$enable_rpath" != no; then
52172                                                                   haveit=
52173                       for x in $rpathdirs; do
52174                         if test "X$x" = "X$dir"; then
52175                           haveit=yes
52176                           break
52177                         fi
52178                       done
52179                       if test -z "$haveit"; then
52180                         rpathdirs="$rpathdirs $dir"
52181                       fi
52182                                                                   haveit=
52183                       for x in $ltrpathdirs; do
52184                         if test "X$x" = "X$dir"; then
52185                           haveit=yes
52186                           break
52187                         fi
52188                       done
52189                       if test -z "$haveit"; then
52190                         ltrpathdirs="$ltrpathdirs $dir"
52191                       fi
52192                     fi
52193                     ;;
52194                   -l*)
52195                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
52196                     ;;
52197                   *.la)
52198                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
52199                     ;;
52200                   *)
52201                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
52202                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
52203                     ;;
52204                 esac
52205               done
52206             fi
52207           else
52208                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
52209             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
52210           fi
52211         fi
52212       fi
52213     done
52214   done
52215   if test "X$rpathdirs" != "X"; then
52216     if test -n "$acl_hardcode_libdir_separator"; then
52217                         alldirs=
52218       for found_dir in $rpathdirs; do
52219         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
52220       done
52221             acl_save_libdir="$libdir"
52222       libdir="$alldirs"
52223       eval flag=\"$acl_hardcode_libdir_flag_spec\"
52224       libdir="$acl_save_libdir"
52225       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52226     else
52227             for found_dir in $rpathdirs; do
52228         acl_save_libdir="$libdir"
52229         libdir="$found_dir"
52230         eval flag=\"$acl_hardcode_libdir_flag_spec\"
52231         libdir="$acl_save_libdir"
52232         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
52233       done
52234     fi
52235   fi
52236   if test "X$ltrpathdirs" != "X"; then
52237             for found_dir in $ltrpathdirs; do
52238       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
52239     done
52240   fi
52241
52242
52243
52244
52245
52246
52247
52248
52249
52250
52251
52252
52253           am_save_CPPFLAGS="$CPPFLAGS"
52254
52255   for element in $INCICONV; do
52256     haveit=
52257     for x in $CPPFLAGS; do
52258
52259   acl_save_prefix="$prefix"
52260   prefix="$acl_final_prefix"
52261   acl_save_exec_prefix="$exec_prefix"
52262   exec_prefix="$acl_final_exec_prefix"
52263   eval x=\"$x\"
52264   exec_prefix="$acl_save_exec_prefix"
52265   prefix="$acl_save_prefix"
52266
52267       if test "X$x" = "X$element"; then
52268         haveit=yes
52269         break
52270       fi
52271     done
52272     if test -z "$haveit"; then
52273       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
52274     fi
52275   done
52276
52277
52278   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
52279 $as_echo_n "checking for iconv... " >&6; }
52280 if test "${am_cv_func_iconv+set}" = set; then
52281   $as_echo_n "(cached) " >&6
52282 else
52283
52284     am_cv_func_iconv="no, consider installing GNU libiconv"
52285     am_cv_lib_iconv=no
52286     cat >conftest.$ac_ext <<_ACEOF
52287 /* confdefs.h.  */
52288 _ACEOF
52289 cat confdefs.h >>conftest.$ac_ext
52290 cat >>conftest.$ac_ext <<_ACEOF
52291 /* end confdefs.h.  */
52292
52293 #include <stdlib.h>
52294 #include <iconv.h>
52295
52296 int
52297 main ()
52298 {
52299 iconv_t cd = iconv_open("","");
52300            iconv(cd,NULL,NULL,NULL,NULL);
52301            iconv_close(cd);
52302   ;
52303   return 0;
52304 }
52305 _ACEOF
52306 rm -f conftest.$ac_objext conftest$ac_exeext
52307 if { (ac_try="$ac_link"
52308 case "(($ac_try" in
52309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52310   *) ac_try_echo=$ac_try;;
52311 esac
52312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52313 $as_echo "$ac_try_echo") >&5
52314   (eval "$ac_link") 2>conftest.er1
52315   ac_status=$?
52316   grep -v '^ *+' conftest.er1 >conftest.err
52317   rm -f conftest.er1
52318   cat conftest.err >&5
52319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52320   (exit $ac_status); } && {
52321          test -z "$ac_c_werror_flag" ||
52322          test ! -s conftest.err
52323        } && test -s conftest$ac_exeext && {
52324          test "$cross_compiling" = yes ||
52325          $as_test_x conftest$ac_exeext
52326        }; then
52327   am_cv_func_iconv=yes
52328 else
52329   $as_echo "$as_me: failed program was:" >&5
52330 sed 's/^/| /' conftest.$ac_ext >&5
52331
52332
52333 fi
52334
52335 rm -rf conftest.dSYM
52336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52337       conftest$ac_exeext conftest.$ac_ext
52338     if test "$am_cv_func_iconv" != yes; then
52339       am_save_LIBS="$LIBS"
52340       LIBS="$LIBS $LIBICONV"
52341       cat >conftest.$ac_ext <<_ACEOF
52342 /* confdefs.h.  */
52343 _ACEOF
52344 cat confdefs.h >>conftest.$ac_ext
52345 cat >>conftest.$ac_ext <<_ACEOF
52346 /* end confdefs.h.  */
52347
52348 #include <stdlib.h>
52349 #include <iconv.h>
52350
52351 int
52352 main ()
52353 {
52354 iconv_t cd = iconv_open("","");
52355              iconv(cd,NULL,NULL,NULL,NULL);
52356              iconv_close(cd);
52357   ;
52358   return 0;
52359 }
52360 _ACEOF
52361 rm -f conftest.$ac_objext conftest$ac_exeext
52362 if { (ac_try="$ac_link"
52363 case "(($ac_try" in
52364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52365   *) ac_try_echo=$ac_try;;
52366 esac
52367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52368 $as_echo "$ac_try_echo") >&5
52369   (eval "$ac_link") 2>conftest.er1
52370   ac_status=$?
52371   grep -v '^ *+' conftest.er1 >conftest.err
52372   rm -f conftest.er1
52373   cat conftest.err >&5
52374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52375   (exit $ac_status); } && {
52376          test -z "$ac_c_werror_flag" ||
52377          test ! -s conftest.err
52378        } && test -s conftest$ac_exeext && {
52379          test "$cross_compiling" = yes ||
52380          $as_test_x conftest$ac_exeext
52381        }; then
52382   am_cv_lib_iconv=yes
52383         am_cv_func_iconv=yes
52384 else
52385   $as_echo "$as_me: failed program was:" >&5
52386 sed 's/^/| /' conftest.$ac_ext >&5
52387
52388
52389 fi
52390
52391 rm -rf conftest.dSYM
52392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52393       conftest$ac_exeext conftest.$ac_ext
52394       LIBS="$am_save_LIBS"
52395     fi
52396
52397 fi
52398 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
52399 $as_echo "$am_cv_func_iconv" >&6; }
52400   if test "$am_cv_func_iconv" = yes; then
52401     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
52402 $as_echo_n "checking for working iconv... " >&6; }
52403 if test "${am_cv_func_iconv_works+set}" = set; then
52404   $as_echo_n "(cached) " >&6
52405 else
52406
52407                   am_save_LIBS="$LIBS"
52408       if test $am_cv_lib_iconv = yes; then
52409         LIBS="$LIBS $LIBICONV"
52410       fi
52411       if test "$cross_compiling" = yes; then
52412
52413          case "$host_os" in
52414            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
52415            *)            am_cv_func_iconv_works="guessing yes" ;;
52416          esac
52417
52418 else
52419   cat >conftest.$ac_ext <<_ACEOF
52420 /* confdefs.h.  */
52421 _ACEOF
52422 cat confdefs.h >>conftest.$ac_ext
52423 cat >>conftest.$ac_ext <<_ACEOF
52424 /* end confdefs.h.  */
52425
52426 #include <iconv.h>
52427 #include <string.h>
52428 int main ()
52429 {
52430   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
52431      returns.  */
52432   {
52433     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
52434     if (cd_utf8_to_88591 != (iconv_t)(-1))
52435       {
52436         static const char input[] = "\342\202\254"; /* EURO SIGN */
52437         char buf[10];
52438         const char *inptr = input;
52439         size_t inbytesleft = strlen (input);
52440         char *outptr = buf;
52441         size_t outbytesleft = sizeof (buf);
52442         size_t res = iconv (cd_utf8_to_88591,
52443                             (char **) &inptr, &inbytesleft,
52444                             &outptr, &outbytesleft);
52445         if (res == 0)
52446           return 1;
52447       }
52448   }
52449   /* Test against Solaris 10 bug: Failures are not distinguishable from
52450      successful returns.  */
52451   {
52452     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
52453     if (cd_ascii_to_88591 != (iconv_t)(-1))
52454       {
52455         static const char input[] = "\263";
52456         char buf[10];
52457         const char *inptr = input;
52458         size_t inbytesleft = strlen (input);
52459         char *outptr = buf;
52460         size_t outbytesleft = sizeof (buf);
52461         size_t res = iconv (cd_ascii_to_88591,
52462                             (char **) &inptr, &inbytesleft,
52463                             &outptr, &outbytesleft);
52464         if (res == 0)
52465           return 1;
52466       }
52467   }
52468   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
52469   {
52470     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
52471     if (cd_88591_to_utf8 != (iconv_t)(-1))
52472       {
52473         static const char input[] = "\304";
52474         static char buf[2] = { (char)0xDE, (char)0xAD };
52475         const char *inptr = input;
52476         size_t inbytesleft = 1;
52477         char *outptr = buf;
52478         size_t outbytesleft = 1;
52479         size_t res = iconv (cd_88591_to_utf8,
52480                             (char **) &inptr, &inbytesleft,
52481                             &outptr, &outbytesleft);
52482         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
52483           return 1;
52484       }
52485   }
52486 #if 0 /* This bug could be worked around by the caller.  */
52487   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
52488   {
52489     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
52490     if (cd_88591_to_utf8 != (iconv_t)(-1))
52491       {
52492         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
52493         char buf[50];
52494         const char *inptr = input;
52495         size_t inbytesleft = strlen (input);
52496         char *outptr = buf;
52497         size_t outbytesleft = sizeof (buf);
52498         size_t res = iconv (cd_88591_to_utf8,
52499                             (char **) &inptr, &inbytesleft,
52500                             &outptr, &outbytesleft);
52501         if ((int)res > 0)
52502           return 1;
52503       }
52504   }
52505 #endif
52506   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
52507      provided.  */
52508   if (/* Try standardized names.  */
52509       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
52510       /* Try IRIX, OSF/1 names.  */
52511       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
52512       /* Try AIX names.  */
52513       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
52514       /* Try HP-UX names.  */
52515       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
52516     return 1;
52517   return 0;
52518 }
52519 _ACEOF
52520 rm -f conftest$ac_exeext
52521 if { (ac_try="$ac_link"
52522 case "(($ac_try" in
52523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52524   *) ac_try_echo=$ac_try;;
52525 esac
52526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52527 $as_echo "$ac_try_echo") >&5
52528   (eval "$ac_link") 2>&5
52529   ac_status=$?
52530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52532   { (case "(($ac_try" in
52533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52534   *) ac_try_echo=$ac_try;;
52535 esac
52536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52537 $as_echo "$ac_try_echo") >&5
52538   (eval "$ac_try") 2>&5
52539   ac_status=$?
52540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52541   (exit $ac_status); }; }; then
52542   am_cv_func_iconv_works=yes
52543 else
52544   $as_echo "$as_me: program exited with status $ac_status" >&5
52545 $as_echo "$as_me: failed program was:" >&5
52546 sed 's/^/| /' conftest.$ac_ext >&5
52547
52548 ( exit $ac_status )
52549 am_cv_func_iconv_works=no
52550 fi
52551 rm -rf conftest.dSYM
52552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52553 fi
52554
52555
52556       LIBS="$am_save_LIBS"
52557
52558 fi
52559 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
52560 $as_echo "$am_cv_func_iconv_works" >&6; }
52561     case "$am_cv_func_iconv_works" in
52562       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
52563       *)   am_func_iconv=yes ;;
52564     esac
52565   else
52566     am_func_iconv=no am_cv_lib_iconv=no
52567   fi
52568   if test "$am_func_iconv" = yes; then
52569
52570 cat >>confdefs.h <<\_ACEOF
52571 #define HAVE_ICONV 1
52572 _ACEOF
52573
52574   fi
52575   if test "$am_cv_lib_iconv" = yes; then
52576     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
52577 $as_echo_n "checking how to link with libiconv... " >&6; }
52578     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
52579 $as_echo "$LIBICONV" >&6; }
52580   else
52581             CPPFLAGS="$am_save_CPPFLAGS"
52582     LIBICONV=
52583     LTLIBICONV=
52584   fi
52585
52586
52587
52588   if test "$am_cv_func_iconv" = yes; then
52589     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
52590 $as_echo_n "checking for iconv declaration... " >&6; }
52591     if test "${am_cv_proto_iconv+set}" = set; then
52592   $as_echo_n "(cached) " >&6
52593 else
52594
52595       cat >conftest.$ac_ext <<_ACEOF
52596 /* confdefs.h.  */
52597 _ACEOF
52598 cat confdefs.h >>conftest.$ac_ext
52599 cat >>conftest.$ac_ext <<_ACEOF
52600 /* end confdefs.h.  */
52601
52602 #include <stdlib.h>
52603 #include <iconv.h>
52604 extern
52605 #ifdef __cplusplus
52606 "C"
52607 #endif
52608 #if defined(__STDC__) || defined(__cplusplus)
52609 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
52610 #else
52611 size_t iconv();
52612 #endif
52613
52614 int
52615 main ()
52616 {
52617
52618   ;
52619   return 0;
52620 }
52621 _ACEOF
52622 rm -f conftest.$ac_objext
52623 if { (ac_try="$ac_compile"
52624 case "(($ac_try" in
52625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52626   *) ac_try_echo=$ac_try;;
52627 esac
52628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52629 $as_echo "$ac_try_echo") >&5
52630   (eval "$ac_compile") 2>conftest.er1
52631   ac_status=$?
52632   grep -v '^ *+' conftest.er1 >conftest.err
52633   rm -f conftest.er1
52634   cat conftest.err >&5
52635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52636   (exit $ac_status); } && {
52637          test -z "$ac_c_werror_flag" ||
52638          test ! -s conftest.err
52639        } && test -s conftest.$ac_objext; then
52640   am_cv_proto_iconv_arg1=""
52641 else
52642   $as_echo "$as_me: failed program was:" >&5
52643 sed 's/^/| /' conftest.$ac_ext >&5
52644
52645         am_cv_proto_iconv_arg1="const"
52646 fi
52647
52648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52649       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);"
52650 fi
52651
52652     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
52653     { $as_echo "$as_me:$LINENO: result:
52654          $am_cv_proto_iconv" >&5
52655 $as_echo "
52656          $am_cv_proto_iconv" >&6; }
52657
52658 cat >>confdefs.h <<_ACEOF
52659 #define ICONV_CONST $am_cv_proto_iconv_arg1
52660 _ACEOF
52661
52662   fi
52663
52664
52665
52666 for ac_header in iconv.h
52667 do
52668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52670   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52671 $as_echo_n "checking for $ac_header... " >&6; }
52672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52673   $as_echo_n "(cached) " >&6
52674 fi
52675 ac_res=`eval 'as_val=${'$as_ac_Header'}
52676                  $as_echo "$as_val"'`
52677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52678 $as_echo "$ac_res" >&6; }
52679 else
52680   # Is the header compilable?
52681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52682 $as_echo_n "checking $ac_header usability... " >&6; }
52683 cat >conftest.$ac_ext <<_ACEOF
52684 /* confdefs.h.  */
52685 _ACEOF
52686 cat confdefs.h >>conftest.$ac_ext
52687 cat >>conftest.$ac_ext <<_ACEOF
52688 /* end confdefs.h.  */
52689 $ac_includes_default
52690 #include <$ac_header>
52691 _ACEOF
52692 rm -f conftest.$ac_objext
52693 if { (ac_try="$ac_compile"
52694 case "(($ac_try" in
52695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52696   *) ac_try_echo=$ac_try;;
52697 esac
52698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52699 $as_echo "$ac_try_echo") >&5
52700   (eval "$ac_compile") 2>conftest.er1
52701   ac_status=$?
52702   grep -v '^ *+' conftest.er1 >conftest.err
52703   rm -f conftest.er1
52704   cat conftest.err >&5
52705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52706   (exit $ac_status); } && {
52707          test -z "$ac_c_werror_flag" ||
52708          test ! -s conftest.err
52709        } && test -s conftest.$ac_objext; then
52710   ac_header_compiler=yes
52711 else
52712   $as_echo "$as_me: failed program was:" >&5
52713 sed 's/^/| /' conftest.$ac_ext >&5
52714
52715         ac_header_compiler=no
52716 fi
52717
52718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52720 $as_echo "$ac_header_compiler" >&6; }
52721
52722 # Is the header present?
52723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52724 $as_echo_n "checking $ac_header presence... " >&6; }
52725 cat >conftest.$ac_ext <<_ACEOF
52726 /* confdefs.h.  */
52727 _ACEOF
52728 cat confdefs.h >>conftest.$ac_ext
52729 cat >>conftest.$ac_ext <<_ACEOF
52730 /* end confdefs.h.  */
52731 #include <$ac_header>
52732 _ACEOF
52733 if { (ac_try="$ac_cpp conftest.$ac_ext"
52734 case "(($ac_try" in
52735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52736   *) ac_try_echo=$ac_try;;
52737 esac
52738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52739 $as_echo "$ac_try_echo") >&5
52740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52741   ac_status=$?
52742   grep -v '^ *+' conftest.er1 >conftest.err
52743   rm -f conftest.er1
52744   cat conftest.err >&5
52745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52746   (exit $ac_status); } >/dev/null && {
52747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52748          test ! -s conftest.err
52749        }; then
52750   ac_header_preproc=yes
52751 else
52752   $as_echo "$as_me: failed program was:" >&5
52753 sed 's/^/| /' conftest.$ac_ext >&5
52754
52755   ac_header_preproc=no
52756 fi
52757
52758 rm -f conftest.err conftest.$ac_ext
52759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52760 $as_echo "$ac_header_preproc" >&6; }
52761
52762 # So?  What about this header?
52763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52764   yes:no: )
52765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52769     ac_header_preproc=yes
52770     ;;
52771   no:yes:* )
52772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52775 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52779 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52780     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52782     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52784     ( cat <<\_ASBOX
52785 ## ------------------------------ ##
52786 ## Report this to bug-tar@gnu.org ##
52787 ## ------------------------------ ##
52788 _ASBOX
52789      ) | sed "s/^/$as_me: WARNING:     /" >&2
52790     ;;
52791 esac
52792 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52793 $as_echo_n "checking for $ac_header... " >&6; }
52794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52795   $as_echo_n "(cached) " >&6
52796 else
52797   eval "$as_ac_Header=\$ac_header_preproc"
52798 fi
52799 ac_res=`eval 'as_val=${'$as_ac_Header'}
52800                  $as_echo "$as_val"'`
52801                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52802 $as_echo "$ac_res" >&6; }
52803
52804 fi
52805 as_val=`eval 'as_val=${'$as_ac_Header'}
52806                  $as_echo "$as_val"'`
52807    if test "x$as_val" = x""yes; then
52808   cat >>confdefs.h <<_ACEOF
52809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52810 _ACEOF
52811
52812 fi
52813
52814 done
52815
52816 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
52817 $as_echo_n "checking for iconv_t... " >&6; }
52818 if test "${ac_cv_type_iconv_t+set}" = set; then
52819   $as_echo_n "(cached) " >&6
52820 else
52821   ac_cv_type_iconv_t=no
52822 cat >conftest.$ac_ext <<_ACEOF
52823 /* confdefs.h.  */
52824 _ACEOF
52825 cat confdefs.h >>conftest.$ac_ext
52826 cat >>conftest.$ac_ext <<_ACEOF
52827 /* end confdefs.h.  */
52828
52829 #ifdef HAVE_ICONV_H
52830 # include <iconv.h>
52831 #endif
52832
52833
52834 int
52835 main ()
52836 {
52837 if (sizeof (iconv_t))
52838        return 0;
52839   ;
52840   return 0;
52841 }
52842 _ACEOF
52843 rm -f conftest.$ac_objext
52844 if { (ac_try="$ac_compile"
52845 case "(($ac_try" in
52846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52847   *) ac_try_echo=$ac_try;;
52848 esac
52849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52850 $as_echo "$ac_try_echo") >&5
52851   (eval "$ac_compile") 2>conftest.er1
52852   ac_status=$?
52853   grep -v '^ *+' conftest.er1 >conftest.err
52854   rm -f conftest.er1
52855   cat conftest.err >&5
52856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52857   (exit $ac_status); } && {
52858          test -z "$ac_c_werror_flag" ||
52859          test ! -s conftest.err
52860        } && test -s conftest.$ac_objext; then
52861   cat >conftest.$ac_ext <<_ACEOF
52862 /* confdefs.h.  */
52863 _ACEOF
52864 cat confdefs.h >>conftest.$ac_ext
52865 cat >>conftest.$ac_ext <<_ACEOF
52866 /* end confdefs.h.  */
52867
52868 #ifdef HAVE_ICONV_H
52869 # include <iconv.h>
52870 #endif
52871
52872
52873 int
52874 main ()
52875 {
52876 if (sizeof ((iconv_t)))
52877           return 0;
52878   ;
52879   return 0;
52880 }
52881 _ACEOF
52882 rm -f conftest.$ac_objext
52883 if { (ac_try="$ac_compile"
52884 case "(($ac_try" in
52885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52886   *) ac_try_echo=$ac_try;;
52887 esac
52888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52889 $as_echo "$ac_try_echo") >&5
52890   (eval "$ac_compile") 2>conftest.er1
52891   ac_status=$?
52892   grep -v '^ *+' conftest.er1 >conftest.err
52893   rm -f conftest.er1
52894   cat conftest.err >&5
52895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896   (exit $ac_status); } && {
52897          test -z "$ac_c_werror_flag" ||
52898          test ! -s conftest.err
52899        } && test -s conftest.$ac_objext; then
52900   :
52901 else
52902   $as_echo "$as_me: failed program was:" >&5
52903 sed 's/^/| /' conftest.$ac_ext >&5
52904
52905         ac_cv_type_iconv_t=yes
52906 fi
52907
52908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52909 else
52910   $as_echo "$as_me: failed program was:" >&5
52911 sed 's/^/| /' conftest.$ac_ext >&5
52912
52913
52914 fi
52915
52916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52917 fi
52918 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
52919 $as_echo "$ac_cv_type_iconv_t" >&6; }
52920 if test "x$ac_cv_type_iconv_t" = x""yes; then
52921   :
52922 else
52923
52924 cat >>confdefs.h <<\_ACEOF
52925 #define iconv_t int
52926 _ACEOF
52927
52928 fi
52929
52930
52931 # Gettext.
52932
52933   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
52934 $as_echo_n "checking whether NLS is requested... " >&6; }
52935     # Check whether --enable-nls was given.
52936 if test "${enable_nls+set}" = set; then
52937   enableval=$enable_nls; USE_NLS=$enableval
52938 else
52939   USE_NLS=yes
52940 fi
52941
52942   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
52943 $as_echo "$USE_NLS" >&6; }
52944
52945
52946
52947
52948       GETTEXT_MACRO_VERSION=0.18
52949
52950
52951
52952
52953 # Prepare PATH_SEPARATOR.
52954 # The user is always right.
52955 if test "${PATH_SEPARATOR+set}" != set; then
52956   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
52957   # contains only /bin. Note that ksh looks also at the FPATH variable,
52958   # so we have to set that as well for the test.
52959   PATH_SEPARATOR=:
52960   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
52961     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
52962            || PATH_SEPARATOR=';'
52963        }
52964 fi
52965
52966 # Find out how to test for executable files. Don't use a zero-byte file,
52967 # as systems may use methods other than mode bits to determine executability.
52968 cat >conf$$.file <<_ASEOF
52969 #! /bin/sh
52970 exit 0
52971 _ASEOF
52972 chmod +x conf$$.file
52973 if test -x conf$$.file >/dev/null 2>&1; then
52974   ac_executable_p="test -x"
52975 else
52976   ac_executable_p="test -f"
52977 fi
52978 rm -f conf$$.file
52979
52980 # Extract the first word of "msgfmt", so it can be a program name with args.
52981 set dummy msgfmt; ac_word=$2
52982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52983 $as_echo_n "checking for $ac_word... " >&6; }
52984 if test "${ac_cv_path_MSGFMT+set}" = set; then
52985   $as_echo_n "(cached) " >&6
52986 else
52987   case "$MSGFMT" in
52988   [\\/]* | ?:[\\/]*)
52989     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
52990     ;;
52991   *)
52992     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
52993     for ac_dir in $PATH; do
52994       IFS="$ac_save_IFS"
52995       test -z "$ac_dir" && ac_dir=.
52996       for ac_exec_ext in '' $ac_executable_extensions; do
52997         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
52998           echo "$as_me: trying $ac_dir/$ac_word..." >&5
52999           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
53000      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
53001             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
53002             break 2
53003           fi
53004         fi
53005       done
53006     done
53007     IFS="$ac_save_IFS"
53008   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
53009     ;;
53010 esac
53011 fi
53012 MSGFMT="$ac_cv_path_MSGFMT"
53013 if test "$MSGFMT" != ":"; then
53014   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
53015 $as_echo "$MSGFMT" >&6; }
53016 else
53017   { $as_echo "$as_me:$LINENO: result: no" >&5
53018 $as_echo "no" >&6; }
53019 fi
53020
53021   # Extract the first word of "gmsgfmt", so it can be a program name with args.
53022 set dummy gmsgfmt; ac_word=$2
53023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53024 $as_echo_n "checking for $ac_word... " >&6; }
53025 if test "${ac_cv_path_GMSGFMT+set}" = set; then
53026   $as_echo_n "(cached) " >&6
53027 else
53028   case $GMSGFMT in
53029   [\\/]* | ?:[\\/]*)
53030   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
53031   ;;
53032   *)
53033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53034 for as_dir in $PATH
53035 do
53036   IFS=$as_save_IFS
53037   test -z "$as_dir" && as_dir=.
53038   for ac_exec_ext in '' $ac_executable_extensions; do
53039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53040     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
53041     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53042     break 2
53043   fi
53044 done
53045 done
53046 IFS=$as_save_IFS
53047
53048   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
53049   ;;
53050 esac
53051 fi
53052 GMSGFMT=$ac_cv_path_GMSGFMT
53053 if test -n "$GMSGFMT"; then
53054   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
53055 $as_echo "$GMSGFMT" >&6; }
53056 else
53057   { $as_echo "$as_me:$LINENO: result: no" >&5
53058 $as_echo "no" >&6; }
53059 fi
53060
53061
53062
53063     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53064     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
53065     *) MSGFMT_015=$MSGFMT ;;
53066   esac
53067
53068   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53069     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
53070     *) GMSGFMT_015=$GMSGFMT ;;
53071   esac
53072
53073
53074
53075 # Prepare PATH_SEPARATOR.
53076 # The user is always right.
53077 if test "${PATH_SEPARATOR+set}" != set; then
53078   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53079   # contains only /bin. Note that ksh looks also at the FPATH variable,
53080   # so we have to set that as well for the test.
53081   PATH_SEPARATOR=:
53082   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53083     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53084            || PATH_SEPARATOR=';'
53085        }
53086 fi
53087
53088 # Find out how to test for executable files. Don't use a zero-byte file,
53089 # as systems may use methods other than mode bits to determine executability.
53090 cat >conf$$.file <<_ASEOF
53091 #! /bin/sh
53092 exit 0
53093 _ASEOF
53094 chmod +x conf$$.file
53095 if test -x conf$$.file >/dev/null 2>&1; then
53096   ac_executable_p="test -x"
53097 else
53098   ac_executable_p="test -f"
53099 fi
53100 rm -f conf$$.file
53101
53102 # Extract the first word of "xgettext", so it can be a program name with args.
53103 set dummy xgettext; ac_word=$2
53104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53105 $as_echo_n "checking for $ac_word... " >&6; }
53106 if test "${ac_cv_path_XGETTEXT+set}" = set; then
53107   $as_echo_n "(cached) " >&6
53108 else
53109   case "$XGETTEXT" in
53110   [\\/]* | ?:[\\/]*)
53111     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
53112     ;;
53113   *)
53114     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53115     for ac_dir in $PATH; do
53116       IFS="$ac_save_IFS"
53117       test -z "$ac_dir" && ac_dir=.
53118       for ac_exec_ext in '' $ac_executable_extensions; do
53119         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53120           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53121           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
53122      (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
53123             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
53124             break 2
53125           fi
53126         fi
53127       done
53128     done
53129     IFS="$ac_save_IFS"
53130   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
53131     ;;
53132 esac
53133 fi
53134 XGETTEXT="$ac_cv_path_XGETTEXT"
53135 if test "$XGETTEXT" != ":"; then
53136   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
53137 $as_echo "$XGETTEXT" >&6; }
53138 else
53139   { $as_echo "$as_me:$LINENO: result: no" >&5
53140 $as_echo "no" >&6; }
53141 fi
53142
53143     rm -f messages.po
53144
53145     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
53146     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
53147     *) XGETTEXT_015=$XGETTEXT ;;
53148   esac
53149
53150
53151
53152 # Prepare PATH_SEPARATOR.
53153 # The user is always right.
53154 if test "${PATH_SEPARATOR+set}" != set; then
53155   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53156   # contains only /bin. Note that ksh looks also at the FPATH variable,
53157   # so we have to set that as well for the test.
53158   PATH_SEPARATOR=:
53159   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53160     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53161            || PATH_SEPARATOR=';'
53162        }
53163 fi
53164
53165 # Find out how to test for executable files. Don't use a zero-byte file,
53166 # as systems may use methods other than mode bits to determine executability.
53167 cat >conf$$.file <<_ASEOF
53168 #! /bin/sh
53169 exit 0
53170 _ASEOF
53171 chmod +x conf$$.file
53172 if test -x conf$$.file >/dev/null 2>&1; then
53173   ac_executable_p="test -x"
53174 else
53175   ac_executable_p="test -f"
53176 fi
53177 rm -f conf$$.file
53178
53179 # Extract the first word of "msgmerge", so it can be a program name with args.
53180 set dummy msgmerge; ac_word=$2
53181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
53182 $as_echo_n "checking for $ac_word... " >&6; }
53183 if test "${ac_cv_path_MSGMERGE+set}" = set; then
53184   $as_echo_n "(cached) " >&6
53185 else
53186   case "$MSGMERGE" in
53187   [\\/]* | ?:[\\/]*)
53188     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
53189     ;;
53190   *)
53191     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
53192     for ac_dir in $PATH; do
53193       IFS="$ac_save_IFS"
53194       test -z "$ac_dir" && ac_dir=.
53195       for ac_exec_ext in '' $ac_executable_extensions; do
53196         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
53197           echo "$as_me: trying $ac_dir/$ac_word..." >&5
53198           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
53199             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
53200             break 2
53201           fi
53202         fi
53203       done
53204     done
53205     IFS="$ac_save_IFS"
53206   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
53207     ;;
53208 esac
53209 fi
53210 MSGMERGE="$ac_cv_path_MSGMERGE"
53211 if test "$MSGMERGE" != ":"; then
53212   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
53213 $as_echo "$MSGMERGE" >&6; }
53214 else
53215   { $as_echo "$as_me:$LINENO: result: no" >&5
53216 $as_echo "no" >&6; }
53217 fi
53218
53219
53220         test -n "$localedir" || localedir='${datadir}/locale'
53221
53222
53223     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
53224
53225
53226   ac_config_commands="$ac_config_commands po-directories"
53227
53228
53229
53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
53241
53242
53243
53244
53245
53246
53247
53248
53249
53250
53251
53252
53253     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
53254 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
53255 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
53256   $as_echo_n "(cached) " >&6
53257 else
53258   gt_save_LIBS="$LIBS"
53259      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53260      cat >conftest.$ac_ext <<_ACEOF
53261 /* confdefs.h.  */
53262 _ACEOF
53263 cat confdefs.h >>conftest.$ac_ext
53264 cat >>conftest.$ac_ext <<_ACEOF
53265 /* end confdefs.h.  */
53266 #include <CoreFoundation/CFPreferences.h>
53267 int
53268 main ()
53269 {
53270 CFPreferencesCopyAppValue(NULL, NULL)
53271   ;
53272   return 0;
53273 }
53274 _ACEOF
53275 rm -f conftest.$ac_objext conftest$ac_exeext
53276 if { (ac_try="$ac_link"
53277 case "(($ac_try" in
53278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53279   *) ac_try_echo=$ac_try;;
53280 esac
53281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53282 $as_echo "$ac_try_echo") >&5
53283   (eval "$ac_link") 2>conftest.er1
53284   ac_status=$?
53285   grep -v '^ *+' conftest.er1 >conftest.err
53286   rm -f conftest.er1
53287   cat conftest.err >&5
53288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53289   (exit $ac_status); } && {
53290          test -z "$ac_c_werror_flag" ||
53291          test ! -s conftest.err
53292        } && test -s conftest$ac_exeext && {
53293          test "$cross_compiling" = yes ||
53294          $as_test_x conftest$ac_exeext
53295        }; then
53296   gt_cv_func_CFPreferencesCopyAppValue=yes
53297 else
53298   $as_echo "$as_me: failed program was:" >&5
53299 sed 's/^/| /' conftest.$ac_ext >&5
53300
53301         gt_cv_func_CFPreferencesCopyAppValue=no
53302 fi
53303
53304 rm -rf conftest.dSYM
53305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53306       conftest$ac_exeext conftest.$ac_ext
53307      LIBS="$gt_save_LIBS"
53308 fi
53309 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
53310 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
53311   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
53312
53313 cat >>confdefs.h <<\_ACEOF
53314 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
53315 _ACEOF
53316
53317   fi
53318     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
53319 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
53320 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
53321   $as_echo_n "(cached) " >&6
53322 else
53323   gt_save_LIBS="$LIBS"
53324      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
53325      cat >conftest.$ac_ext <<_ACEOF
53326 /* confdefs.h.  */
53327 _ACEOF
53328 cat confdefs.h >>conftest.$ac_ext
53329 cat >>conftest.$ac_ext <<_ACEOF
53330 /* end confdefs.h.  */
53331 #include <CoreFoundation/CFLocale.h>
53332 int
53333 main ()
53334 {
53335 CFLocaleCopyCurrent();
53336   ;
53337   return 0;
53338 }
53339 _ACEOF
53340 rm -f conftest.$ac_objext conftest$ac_exeext
53341 if { (ac_try="$ac_link"
53342 case "(($ac_try" in
53343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53344   *) ac_try_echo=$ac_try;;
53345 esac
53346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53347 $as_echo "$ac_try_echo") >&5
53348   (eval "$ac_link") 2>conftest.er1
53349   ac_status=$?
53350   grep -v '^ *+' conftest.er1 >conftest.err
53351   rm -f conftest.er1
53352   cat conftest.err >&5
53353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354   (exit $ac_status); } && {
53355          test -z "$ac_c_werror_flag" ||
53356          test ! -s conftest.err
53357        } && test -s conftest$ac_exeext && {
53358          test "$cross_compiling" = yes ||
53359          $as_test_x conftest$ac_exeext
53360        }; then
53361   gt_cv_func_CFLocaleCopyCurrent=yes
53362 else
53363   $as_echo "$as_me: failed program was:" >&5
53364 sed 's/^/| /' conftest.$ac_ext >&5
53365
53366         gt_cv_func_CFLocaleCopyCurrent=no
53367 fi
53368
53369 rm -rf conftest.dSYM
53370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53371       conftest$ac_exeext conftest.$ac_ext
53372      LIBS="$gt_save_LIBS"
53373 fi
53374 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
53375 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
53376   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53377
53378 cat >>confdefs.h <<\_ACEOF
53379 #define HAVE_CFLOCALECOPYCURRENT 1
53380 _ACEOF
53381
53382   fi
53383   INTL_MACOSX_LIBS=
53384   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
53385     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
53386   fi
53387
53388
53389
53390
53391
53392
53393   LIBINTL=
53394   LTLIBINTL=
53395   POSUB=
53396
53397     case " $gt_needs " in
53398     *" need-formatstring-macros "*) gt_api_version=3 ;;
53399     *" need-ngettext "*) gt_api_version=2 ;;
53400     *) gt_api_version=1 ;;
53401   esac
53402   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
53403   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
53404
53405     if test "$USE_NLS" = "yes"; then
53406     gt_use_preinstalled_gnugettext=no
53407
53408
53409         if test $gt_api_version -ge 3; then
53410           gt_revision_test_code='
53411 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
53412 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
53413 #endif
53414 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
53415 '
53416         else
53417           gt_revision_test_code=
53418         fi
53419         if test $gt_api_version -ge 2; then
53420           gt_expression_test_code=' + * ngettext ("", "", 0)'
53421         else
53422           gt_expression_test_code=
53423         fi
53424
53425         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
53426 $as_echo_n "checking for GNU gettext in libc... " >&6; }
53427 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
53428   $as_echo_n "(cached) " >&6
53429 else
53430   cat >conftest.$ac_ext <<_ACEOF
53431 /* confdefs.h.  */
53432 _ACEOF
53433 cat confdefs.h >>conftest.$ac_ext
53434 cat >>conftest.$ac_ext <<_ACEOF
53435 /* end confdefs.h.  */
53436
53437 #include <libintl.h>
53438 $gt_revision_test_code
53439 extern int _nl_msg_cat_cntr;
53440 extern int *_nl_domain_bindings;
53441
53442 int
53443 main ()
53444 {
53445
53446 bindtextdomain ("", "");
53447 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
53448
53449   ;
53450   return 0;
53451 }
53452 _ACEOF
53453 rm -f conftest.$ac_objext conftest$ac_exeext
53454 if { (ac_try="$ac_link"
53455 case "(($ac_try" in
53456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53457   *) ac_try_echo=$ac_try;;
53458 esac
53459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53460 $as_echo "$ac_try_echo") >&5
53461   (eval "$ac_link") 2>conftest.er1
53462   ac_status=$?
53463   grep -v '^ *+' conftest.er1 >conftest.err
53464   rm -f conftest.er1
53465   cat conftest.err >&5
53466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53467   (exit $ac_status); } && {
53468          test -z "$ac_c_werror_flag" ||
53469          test ! -s conftest.err
53470        } && test -s conftest$ac_exeext && {
53471          test "$cross_compiling" = yes ||
53472          $as_test_x conftest$ac_exeext
53473        }; then
53474   eval "$gt_func_gnugettext_libc=yes"
53475 else
53476   $as_echo "$as_me: failed program was:" >&5
53477 sed 's/^/| /' conftest.$ac_ext >&5
53478
53479         eval "$gt_func_gnugettext_libc=no"
53480 fi
53481
53482 rm -rf conftest.dSYM
53483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53484       conftest$ac_exeext conftest.$ac_ext
53485 fi
53486 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
53487                  $as_echo "$as_val"'`
53488                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53489 $as_echo "$ac_res" >&6; }
53490
53491         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
53492
53493
53494
53495
53496
53497           am_save_CPPFLAGS="$CPPFLAGS"
53498
53499   for element in $INCICONV; do
53500     haveit=
53501     for x in $CPPFLAGS; do
53502
53503   acl_save_prefix="$prefix"
53504   prefix="$acl_final_prefix"
53505   acl_save_exec_prefix="$exec_prefix"
53506   exec_prefix="$acl_final_exec_prefix"
53507   eval x=\"$x\"
53508   exec_prefix="$acl_save_exec_prefix"
53509   prefix="$acl_save_prefix"
53510
53511       if test "X$x" = "X$element"; then
53512         haveit=yes
53513         break
53514       fi
53515     done
53516     if test -z "$haveit"; then
53517       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
53518     fi
53519   done
53520
53521
53522   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
53523 $as_echo_n "checking for iconv... " >&6; }
53524 if test "${am_cv_func_iconv+set}" = set; then
53525   $as_echo_n "(cached) " >&6
53526 else
53527
53528     am_cv_func_iconv="no, consider installing GNU libiconv"
53529     am_cv_lib_iconv=no
53530     cat >conftest.$ac_ext <<_ACEOF
53531 /* confdefs.h.  */
53532 _ACEOF
53533 cat confdefs.h >>conftest.$ac_ext
53534 cat >>conftest.$ac_ext <<_ACEOF
53535 /* end confdefs.h.  */
53536
53537 #include <stdlib.h>
53538 #include <iconv.h>
53539
53540 int
53541 main ()
53542 {
53543 iconv_t cd = iconv_open("","");
53544            iconv(cd,NULL,NULL,NULL,NULL);
53545            iconv_close(cd);
53546   ;
53547   return 0;
53548 }
53549 _ACEOF
53550 rm -f conftest.$ac_objext conftest$ac_exeext
53551 if { (ac_try="$ac_link"
53552 case "(($ac_try" in
53553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53554   *) ac_try_echo=$ac_try;;
53555 esac
53556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53557 $as_echo "$ac_try_echo") >&5
53558   (eval "$ac_link") 2>conftest.er1
53559   ac_status=$?
53560   grep -v '^ *+' conftest.er1 >conftest.err
53561   rm -f conftest.er1
53562   cat conftest.err >&5
53563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53564   (exit $ac_status); } && {
53565          test -z "$ac_c_werror_flag" ||
53566          test ! -s conftest.err
53567        } && test -s conftest$ac_exeext && {
53568          test "$cross_compiling" = yes ||
53569          $as_test_x conftest$ac_exeext
53570        }; then
53571   am_cv_func_iconv=yes
53572 else
53573   $as_echo "$as_me: failed program was:" >&5
53574 sed 's/^/| /' conftest.$ac_ext >&5
53575
53576
53577 fi
53578
53579 rm -rf conftest.dSYM
53580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53581       conftest$ac_exeext conftest.$ac_ext
53582     if test "$am_cv_func_iconv" != yes; then
53583       am_save_LIBS="$LIBS"
53584       LIBS="$LIBS $LIBICONV"
53585       cat >conftest.$ac_ext <<_ACEOF
53586 /* confdefs.h.  */
53587 _ACEOF
53588 cat confdefs.h >>conftest.$ac_ext
53589 cat >>conftest.$ac_ext <<_ACEOF
53590 /* end confdefs.h.  */
53591
53592 #include <stdlib.h>
53593 #include <iconv.h>
53594
53595 int
53596 main ()
53597 {
53598 iconv_t cd = iconv_open("","");
53599              iconv(cd,NULL,NULL,NULL,NULL);
53600              iconv_close(cd);
53601   ;
53602   return 0;
53603 }
53604 _ACEOF
53605 rm -f conftest.$ac_objext conftest$ac_exeext
53606 if { (ac_try="$ac_link"
53607 case "(($ac_try" in
53608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53609   *) ac_try_echo=$ac_try;;
53610 esac
53611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53612 $as_echo "$ac_try_echo") >&5
53613   (eval "$ac_link") 2>conftest.er1
53614   ac_status=$?
53615   grep -v '^ *+' conftest.er1 >conftest.err
53616   rm -f conftest.er1
53617   cat conftest.err >&5
53618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53619   (exit $ac_status); } && {
53620          test -z "$ac_c_werror_flag" ||
53621          test ! -s conftest.err
53622        } && test -s conftest$ac_exeext && {
53623          test "$cross_compiling" = yes ||
53624          $as_test_x conftest$ac_exeext
53625        }; then
53626   am_cv_lib_iconv=yes
53627         am_cv_func_iconv=yes
53628 else
53629   $as_echo "$as_me: failed program was:" >&5
53630 sed 's/^/| /' conftest.$ac_ext >&5
53631
53632
53633 fi
53634
53635 rm -rf conftest.dSYM
53636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53637       conftest$ac_exeext conftest.$ac_ext
53638       LIBS="$am_save_LIBS"
53639     fi
53640
53641 fi
53642 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
53643 $as_echo "$am_cv_func_iconv" >&6; }
53644   if test "$am_cv_func_iconv" = yes; then
53645     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
53646 $as_echo_n "checking for working iconv... " >&6; }
53647 if test "${am_cv_func_iconv_works+set}" = set; then
53648   $as_echo_n "(cached) " >&6
53649 else
53650
53651                   am_save_LIBS="$LIBS"
53652       if test $am_cv_lib_iconv = yes; then
53653         LIBS="$LIBS $LIBICONV"
53654       fi
53655       if test "$cross_compiling" = yes; then
53656
53657          case "$host_os" in
53658            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
53659            *)            am_cv_func_iconv_works="guessing yes" ;;
53660          esac
53661
53662 else
53663   cat >conftest.$ac_ext <<_ACEOF
53664 /* confdefs.h.  */
53665 _ACEOF
53666 cat confdefs.h >>conftest.$ac_ext
53667 cat >>conftest.$ac_ext <<_ACEOF
53668 /* end confdefs.h.  */
53669
53670 #include <iconv.h>
53671 #include <string.h>
53672 int main ()
53673 {
53674   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
53675      returns.  */
53676   {
53677     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
53678     if (cd_utf8_to_88591 != (iconv_t)(-1))
53679       {
53680         static const char input[] = "\342\202\254"; /* EURO SIGN */
53681         char buf[10];
53682         const char *inptr = input;
53683         size_t inbytesleft = strlen (input);
53684         char *outptr = buf;
53685         size_t outbytesleft = sizeof (buf);
53686         size_t res = iconv (cd_utf8_to_88591,
53687                             (char **) &inptr, &inbytesleft,
53688                             &outptr, &outbytesleft);
53689         if (res == 0)
53690           return 1;
53691       }
53692   }
53693   /* Test against Solaris 10 bug: Failures are not distinguishable from
53694      successful returns.  */
53695   {
53696     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
53697     if (cd_ascii_to_88591 != (iconv_t)(-1))
53698       {
53699         static const char input[] = "\263";
53700         char buf[10];
53701         const char *inptr = input;
53702         size_t inbytesleft = strlen (input);
53703         char *outptr = buf;
53704         size_t outbytesleft = sizeof (buf);
53705         size_t res = iconv (cd_ascii_to_88591,
53706                             (char **) &inptr, &inbytesleft,
53707                             &outptr, &outbytesleft);
53708         if (res == 0)
53709           return 1;
53710       }
53711   }
53712   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
53713   {
53714     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
53715     if (cd_88591_to_utf8 != (iconv_t)(-1))
53716       {
53717         static const char input[] = "\304";
53718         static char buf[2] = { (char)0xDE, (char)0xAD };
53719         const char *inptr = input;
53720         size_t inbytesleft = 1;
53721         char *outptr = buf;
53722         size_t outbytesleft = 1;
53723         size_t res = iconv (cd_88591_to_utf8,
53724                             (char **) &inptr, &inbytesleft,
53725                             &outptr, &outbytesleft);
53726         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
53727           return 1;
53728       }
53729   }
53730 #if 0 /* This bug could be worked around by the caller.  */
53731   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
53732   {
53733     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
53734     if (cd_88591_to_utf8 != (iconv_t)(-1))
53735       {
53736         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
53737         char buf[50];
53738         const char *inptr = input;
53739         size_t inbytesleft = strlen (input);
53740         char *outptr = buf;
53741         size_t outbytesleft = sizeof (buf);
53742         size_t res = iconv (cd_88591_to_utf8,
53743                             (char **) &inptr, &inbytesleft,
53744                             &outptr, &outbytesleft);
53745         if ((int)res > 0)
53746           return 1;
53747       }
53748   }
53749 #endif
53750   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
53751      provided.  */
53752   if (/* Try standardized names.  */
53753       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
53754       /* Try IRIX, OSF/1 names.  */
53755       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
53756       /* Try AIX names.  */
53757       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
53758       /* Try HP-UX names.  */
53759       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
53760     return 1;
53761   return 0;
53762 }
53763 _ACEOF
53764 rm -f conftest$ac_exeext
53765 if { (ac_try="$ac_link"
53766 case "(($ac_try" in
53767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53768   *) ac_try_echo=$ac_try;;
53769 esac
53770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53771 $as_echo "$ac_try_echo") >&5
53772   (eval "$ac_link") 2>&5
53773   ac_status=$?
53774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53776   { (case "(($ac_try" in
53777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53778   *) ac_try_echo=$ac_try;;
53779 esac
53780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53781 $as_echo "$ac_try_echo") >&5
53782   (eval "$ac_try") 2>&5
53783   ac_status=$?
53784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53785   (exit $ac_status); }; }; then
53786   am_cv_func_iconv_works=yes
53787 else
53788   $as_echo "$as_me: program exited with status $ac_status" >&5
53789 $as_echo "$as_me: failed program was:" >&5
53790 sed 's/^/| /' conftest.$ac_ext >&5
53791
53792 ( exit $ac_status )
53793 am_cv_func_iconv_works=no
53794 fi
53795 rm -rf conftest.dSYM
53796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53797 fi
53798
53799
53800       LIBS="$am_save_LIBS"
53801
53802 fi
53803 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
53804 $as_echo "$am_cv_func_iconv_works" >&6; }
53805     case "$am_cv_func_iconv_works" in
53806       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
53807       *)   am_func_iconv=yes ;;
53808     esac
53809   else
53810     am_func_iconv=no am_cv_lib_iconv=no
53811   fi
53812   if test "$am_func_iconv" = yes; then
53813
53814 cat >>confdefs.h <<\_ACEOF
53815 #define HAVE_ICONV 1
53816 _ACEOF
53817
53818   fi
53819   if test "$am_cv_lib_iconv" = yes; then
53820     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
53821 $as_echo_n "checking how to link with libiconv... " >&6; }
53822     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
53823 $as_echo "$LIBICONV" >&6; }
53824   else
53825             CPPFLAGS="$am_save_CPPFLAGS"
53826     LIBICONV=
53827     LTLIBICONV=
53828   fi
53829
53830
53831
53832
53833
53834
53835
53836
53837
53838
53839
53840     use_additional=yes
53841
53842   acl_save_prefix="$prefix"
53843   prefix="$acl_final_prefix"
53844   acl_save_exec_prefix="$exec_prefix"
53845   exec_prefix="$acl_final_exec_prefix"
53846
53847     eval additional_includedir=\"$includedir\"
53848     eval additional_libdir=\"$libdir\"
53849
53850   exec_prefix="$acl_save_exec_prefix"
53851   prefix="$acl_save_prefix"
53852
53853
53854 # Check whether --with-libintl-prefix was given.
53855 if test "${with_libintl_prefix+set}" = set; then
53856   withval=$with_libintl_prefix;
53857     if test "X$withval" = "Xno"; then
53858       use_additional=no
53859     else
53860       if test "X$withval" = "X"; then
53861
53862   acl_save_prefix="$prefix"
53863   prefix="$acl_final_prefix"
53864   acl_save_exec_prefix="$exec_prefix"
53865   exec_prefix="$acl_final_exec_prefix"
53866
53867           eval additional_includedir=\"$includedir\"
53868           eval additional_libdir=\"$libdir\"
53869
53870   exec_prefix="$acl_save_exec_prefix"
53871   prefix="$acl_save_prefix"
53872
53873       else
53874         additional_includedir="$withval/include"
53875         additional_libdir="$withval/$acl_libdirstem"
53876         if test "$acl_libdirstem2" != "$acl_libdirstem" \
53877            && ! test -d "$withval/$acl_libdirstem"; then
53878           additional_libdir="$withval/$acl_libdirstem2"
53879         fi
53880       fi
53881     fi
53882
53883 fi
53884
53885       LIBINTL=
53886   LTLIBINTL=
53887   INCINTL=
53888   LIBINTL_PREFIX=
53889       HAVE_LIBINTL=
53890   rpathdirs=
53891   ltrpathdirs=
53892   names_already_handled=
53893   names_next_round='intl '
53894   while test -n "$names_next_round"; do
53895     names_this_round="$names_next_round"
53896     names_next_round=
53897     for name in $names_this_round; do
53898       already_handled=
53899       for n in $names_already_handled; do
53900         if test "$n" = "$name"; then
53901           already_handled=yes
53902           break
53903         fi
53904       done
53905       if test -z "$already_handled"; then
53906         names_already_handled="$names_already_handled $name"
53907                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
53908         eval value=\"\$HAVE_LIB$uppername\"
53909         if test -n "$value"; then
53910           if test "$value" = yes; then
53911             eval value=\"\$LIB$uppername\"
53912             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
53913             eval value=\"\$LTLIB$uppername\"
53914             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
53915           else
53916                                     :
53917           fi
53918         else
53919                               found_dir=
53920           found_la=
53921           found_so=
53922           found_a=
53923           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
53924           if test -n "$acl_shlibext"; then
53925             shrext=".$acl_shlibext"             # typically: shrext=.so
53926           else
53927             shrext=
53928           fi
53929           if test $use_additional = yes; then
53930             dir="$additional_libdir"
53931                                     if test -n "$acl_shlibext"; then
53932               if test -f "$dir/$libname$shrext"; then
53933                 found_dir="$dir"
53934                 found_so="$dir/$libname$shrext"
53935               else
53936                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53937                   ver=`(cd "$dir" && \
53938                         for f in "$libname$shrext".*; do echo "$f"; done \
53939                         | sed -e "s,^$libname$shrext\\\\.,," \
53940                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53941                         | sed 1q ) 2>/dev/null`
53942                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53943                     found_dir="$dir"
53944                     found_so="$dir/$libname$shrext.$ver"
53945                   fi
53946                 else
53947                   eval library_names=\"$acl_library_names_spec\"
53948                   for f in $library_names; do
53949                     if test -f "$dir/$f"; then
53950                       found_dir="$dir"
53951                       found_so="$dir/$f"
53952                       break
53953                     fi
53954                   done
53955                 fi
53956               fi
53957             fi
53958                         if test "X$found_dir" = "X"; then
53959               if test -f "$dir/$libname.$acl_libext"; then
53960                 found_dir="$dir"
53961                 found_a="$dir/$libname.$acl_libext"
53962               fi
53963             fi
53964             if test "X$found_dir" != "X"; then
53965               if test -f "$dir/$libname.la"; then
53966                 found_la="$dir/$libname.la"
53967               fi
53968             fi
53969           fi
53970           if test "X$found_dir" = "X"; then
53971             for x in $LDFLAGS $LTLIBINTL; do
53972
53973   acl_save_prefix="$prefix"
53974   prefix="$acl_final_prefix"
53975   acl_save_exec_prefix="$exec_prefix"
53976   exec_prefix="$acl_final_exec_prefix"
53977   eval x=\"$x\"
53978   exec_prefix="$acl_save_exec_prefix"
53979   prefix="$acl_save_prefix"
53980
53981               case "$x" in
53982                 -L*)
53983                   dir=`echo "X$x" | sed -e 's/^X-L//'`
53984                                     if test -n "$acl_shlibext"; then
53985                     if test -f "$dir/$libname$shrext"; then
53986                       found_dir="$dir"
53987                       found_so="$dir/$libname$shrext"
53988                     else
53989                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53990                         ver=`(cd "$dir" && \
53991                               for f in "$libname$shrext".*; do echo "$f"; done \
53992                               | sed -e "s,^$libname$shrext\\\\.,," \
53993                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53994                               | sed 1q ) 2>/dev/null`
53995                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53996                           found_dir="$dir"
53997                           found_so="$dir/$libname$shrext.$ver"
53998                         fi
53999                       else
54000                         eval library_names=\"$acl_library_names_spec\"
54001                         for f in $library_names; do
54002                           if test -f "$dir/$f"; then
54003                             found_dir="$dir"
54004                             found_so="$dir/$f"
54005                             break
54006                           fi
54007                         done
54008                       fi
54009                     fi
54010                   fi
54011                                     if test "X$found_dir" = "X"; then
54012                     if test -f "$dir/$libname.$acl_libext"; then
54013                       found_dir="$dir"
54014                       found_a="$dir/$libname.$acl_libext"
54015                     fi
54016                   fi
54017                   if test "X$found_dir" != "X"; then
54018                     if test -f "$dir/$libname.la"; then
54019                       found_la="$dir/$libname.la"
54020                     fi
54021                   fi
54022                   ;;
54023               esac
54024               if test "X$found_dir" != "X"; then
54025                 break
54026               fi
54027             done
54028           fi
54029           if test "X$found_dir" != "X"; then
54030                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
54031             if test "X$found_so" != "X"; then
54032                                                         if test "$enable_rpath" = no \
54033                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
54034                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
54035                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54036               else
54037                                                                                 haveit=
54038                 for x in $ltrpathdirs; do
54039                   if test "X$x" = "X$found_dir"; then
54040                     haveit=yes
54041                     break
54042                   fi
54043                 done
54044                 if test -z "$haveit"; then
54045                   ltrpathdirs="$ltrpathdirs $found_dir"
54046                 fi
54047                                 if test "$acl_hardcode_direct" = yes; then
54048                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54049                 else
54050                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
54051                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54052                                                             haveit=
54053                     for x in $rpathdirs; do
54054                       if test "X$x" = "X$found_dir"; then
54055                         haveit=yes
54056                         break
54057                       fi
54058                     done
54059                     if test -z "$haveit"; then
54060                       rpathdirs="$rpathdirs $found_dir"
54061                     fi
54062                   else
54063                                                                                 haveit=
54064                     for x in $LDFLAGS $LIBINTL; do
54065
54066   acl_save_prefix="$prefix"
54067   prefix="$acl_final_prefix"
54068   acl_save_exec_prefix="$exec_prefix"
54069   exec_prefix="$acl_final_exec_prefix"
54070   eval x=\"$x\"
54071   exec_prefix="$acl_save_exec_prefix"
54072   prefix="$acl_save_prefix"
54073
54074                       if test "X$x" = "X-L$found_dir"; then
54075                         haveit=yes
54076                         break
54077                       fi
54078                     done
54079                     if test -z "$haveit"; then
54080                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
54081                     fi
54082                     if test "$acl_hardcode_minus_L" != no; then
54083                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
54084                     else
54085                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54086                     fi
54087                   fi
54088                 fi
54089               fi
54090             else
54091               if test "X$found_a" != "X"; then
54092                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
54093               else
54094                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
54095               fi
54096             fi
54097                         additional_includedir=
54098             case "$found_dir" in
54099               */$acl_libdirstem | */$acl_libdirstem/)
54100                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54101                 if test "$name" = 'intl'; then
54102                   LIBINTL_PREFIX="$basedir"
54103                 fi
54104                 additional_includedir="$basedir/include"
54105                 ;;
54106               */$acl_libdirstem2 | */$acl_libdirstem2/)
54107                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
54108                 if test "$name" = 'intl'; then
54109                   LIBINTL_PREFIX="$basedir"
54110                 fi
54111                 additional_includedir="$basedir/include"
54112                 ;;
54113             esac
54114             if test "X$additional_includedir" != "X"; then
54115                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
54116                 haveit=
54117                 if test "X$additional_includedir" = "X/usr/local/include"; then
54118                   if test -n "$GCC"; then
54119                     case $host_os in
54120                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54121                     esac
54122                   fi
54123                 fi
54124                 if test -z "$haveit"; then
54125                   for x in $CPPFLAGS $INCINTL; do
54126
54127   acl_save_prefix="$prefix"
54128   prefix="$acl_final_prefix"
54129   acl_save_exec_prefix="$exec_prefix"
54130   exec_prefix="$acl_final_exec_prefix"
54131   eval x=\"$x\"
54132   exec_prefix="$acl_save_exec_prefix"
54133   prefix="$acl_save_prefix"
54134
54135                     if test "X$x" = "X-I$additional_includedir"; then
54136                       haveit=yes
54137                       break
54138                     fi
54139                   done
54140                   if test -z "$haveit"; then
54141                     if test -d "$additional_includedir"; then
54142                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
54143                     fi
54144                   fi
54145                 fi
54146               fi
54147             fi
54148                         if test -n "$found_la"; then
54149                                                         save_libdir="$libdir"
54150               case "$found_la" in
54151                 */* | *\\*) . "$found_la" ;;
54152                 *) . "./$found_la" ;;
54153               esac
54154               libdir="$save_libdir"
54155                             for dep in $dependency_libs; do
54156                 case "$dep" in
54157                   -L*)
54158                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54159                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
54160                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
54161                       haveit=
54162                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
54163                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
54164                         if test -n "$GCC"; then
54165                           case $host_os in
54166                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54167                           esac
54168                         fi
54169                       fi
54170                       if test -z "$haveit"; then
54171                         haveit=
54172                         for x in $LDFLAGS $LIBINTL; do
54173
54174   acl_save_prefix="$prefix"
54175   prefix="$acl_final_prefix"
54176   acl_save_exec_prefix="$exec_prefix"
54177   exec_prefix="$acl_final_exec_prefix"
54178   eval x=\"$x\"
54179   exec_prefix="$acl_save_exec_prefix"
54180   prefix="$acl_save_prefix"
54181
54182                           if test "X$x" = "X-L$additional_libdir"; then
54183                             haveit=yes
54184                             break
54185                           fi
54186                         done
54187                         if test -z "$haveit"; then
54188                           if test -d "$additional_libdir"; then
54189                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
54190                           fi
54191                         fi
54192                         haveit=
54193                         for x in $LDFLAGS $LTLIBINTL; do
54194
54195   acl_save_prefix="$prefix"
54196   prefix="$acl_final_prefix"
54197   acl_save_exec_prefix="$exec_prefix"
54198   exec_prefix="$acl_final_exec_prefix"
54199   eval x=\"$x\"
54200   exec_prefix="$acl_save_exec_prefix"
54201   prefix="$acl_save_prefix"
54202
54203                           if test "X$x" = "X-L$additional_libdir"; then
54204                             haveit=yes
54205                             break
54206                           fi
54207                         done
54208                         if test -z "$haveit"; then
54209                           if test -d "$additional_libdir"; then
54210                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
54211                           fi
54212                         fi
54213                       fi
54214                     fi
54215                     ;;
54216                   -R*)
54217                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
54218                     if test "$enable_rpath" != no; then
54219                                                                   haveit=
54220                       for x in $rpathdirs; do
54221                         if test "X$x" = "X$dir"; then
54222                           haveit=yes
54223                           break
54224                         fi
54225                       done
54226                       if test -z "$haveit"; then
54227                         rpathdirs="$rpathdirs $dir"
54228                       fi
54229                                                                   haveit=
54230                       for x in $ltrpathdirs; do
54231                         if test "X$x" = "X$dir"; then
54232                           haveit=yes
54233                           break
54234                         fi
54235                       done
54236                       if test -z "$haveit"; then
54237                         ltrpathdirs="$ltrpathdirs $dir"
54238                       fi
54239                     fi
54240                     ;;
54241                   -l*)
54242                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54243                     ;;
54244                   *.la)
54245                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54246                     ;;
54247                   *)
54248                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
54249                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
54250                     ;;
54251                 esac
54252               done
54253             fi
54254           else
54255                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
54256             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
54257           fi
54258         fi
54259       fi
54260     done
54261   done
54262   if test "X$rpathdirs" != "X"; then
54263     if test -n "$acl_hardcode_libdir_separator"; then
54264                         alldirs=
54265       for found_dir in $rpathdirs; do
54266         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54267       done
54268             acl_save_libdir="$libdir"
54269       libdir="$alldirs"
54270       eval flag=\"$acl_hardcode_libdir_flag_spec\"
54271       libdir="$acl_save_libdir"
54272       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54273     else
54274             for found_dir in $rpathdirs; do
54275         acl_save_libdir="$libdir"
54276         libdir="$found_dir"
54277         eval flag=\"$acl_hardcode_libdir_flag_spec\"
54278         libdir="$acl_save_libdir"
54279         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
54280       done
54281     fi
54282   fi
54283   if test "X$ltrpathdirs" != "X"; then
54284             for found_dir in $ltrpathdirs; do
54285       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
54286     done
54287   fi
54288
54289
54290
54291
54292
54293
54294           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
54295 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
54296 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
54297   $as_echo_n "(cached) " >&6
54298 else
54299   gt_save_CPPFLAGS="$CPPFLAGS"
54300             CPPFLAGS="$CPPFLAGS $INCINTL"
54301             gt_save_LIBS="$LIBS"
54302             LIBS="$LIBS $LIBINTL"
54303                         cat >conftest.$ac_ext <<_ACEOF
54304 /* confdefs.h.  */
54305 _ACEOF
54306 cat confdefs.h >>conftest.$ac_ext
54307 cat >>conftest.$ac_ext <<_ACEOF
54308 /* end confdefs.h.  */
54309
54310 #include <libintl.h>
54311 $gt_revision_test_code
54312 extern int _nl_msg_cat_cntr;
54313 extern
54314 #ifdef __cplusplus
54315 "C"
54316 #endif
54317 const char *_nl_expand_alias (const char *);
54318
54319 int
54320 main ()
54321 {
54322
54323 bindtextdomain ("", "");
54324 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54325
54326   ;
54327   return 0;
54328 }
54329 _ACEOF
54330 rm -f conftest.$ac_objext conftest$ac_exeext
54331 if { (ac_try="$ac_link"
54332 case "(($ac_try" in
54333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54334   *) ac_try_echo=$ac_try;;
54335 esac
54336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54337 $as_echo "$ac_try_echo") >&5
54338   (eval "$ac_link") 2>conftest.er1
54339   ac_status=$?
54340   grep -v '^ *+' conftest.er1 >conftest.err
54341   rm -f conftest.er1
54342   cat conftest.err >&5
54343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54344   (exit $ac_status); } && {
54345          test -z "$ac_c_werror_flag" ||
54346          test ! -s conftest.err
54347        } && test -s conftest$ac_exeext && {
54348          test "$cross_compiling" = yes ||
54349          $as_test_x conftest$ac_exeext
54350        }; then
54351   eval "$gt_func_gnugettext_libintl=yes"
54352 else
54353   $as_echo "$as_me: failed program was:" >&5
54354 sed 's/^/| /' conftest.$ac_ext >&5
54355
54356         eval "$gt_func_gnugettext_libintl=no"
54357 fi
54358
54359 rm -rf conftest.dSYM
54360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54361       conftest$ac_exeext conftest.$ac_ext
54362                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
54363               LIBS="$LIBS $LIBICONV"
54364               cat >conftest.$ac_ext <<_ACEOF
54365 /* confdefs.h.  */
54366 _ACEOF
54367 cat confdefs.h >>conftest.$ac_ext
54368 cat >>conftest.$ac_ext <<_ACEOF
54369 /* end confdefs.h.  */
54370
54371 #include <libintl.h>
54372 $gt_revision_test_code
54373 extern int _nl_msg_cat_cntr;
54374 extern
54375 #ifdef __cplusplus
54376 "C"
54377 #endif
54378 const char *_nl_expand_alias (const char *);
54379
54380 int
54381 main ()
54382 {
54383
54384 bindtextdomain ("", "");
54385 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
54386
54387   ;
54388   return 0;
54389 }
54390 _ACEOF
54391 rm -f conftest.$ac_objext conftest$ac_exeext
54392 if { (ac_try="$ac_link"
54393 case "(($ac_try" in
54394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54395   *) ac_try_echo=$ac_try;;
54396 esac
54397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54398 $as_echo "$ac_try_echo") >&5
54399   (eval "$ac_link") 2>conftest.er1
54400   ac_status=$?
54401   grep -v '^ *+' conftest.er1 >conftest.err
54402   rm -f conftest.er1
54403   cat conftest.err >&5
54404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54405   (exit $ac_status); } && {
54406          test -z "$ac_c_werror_flag" ||
54407          test ! -s conftest.err
54408        } && test -s conftest$ac_exeext && {
54409          test "$cross_compiling" = yes ||
54410          $as_test_x conftest$ac_exeext
54411        }; then
54412   LIBINTL="$LIBINTL $LIBICONV"
54413                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
54414                  eval "$gt_func_gnugettext_libintl=yes"
54415
54416 else
54417   $as_echo "$as_me: failed program was:" >&5
54418 sed 's/^/| /' conftest.$ac_ext >&5
54419
54420
54421 fi
54422
54423 rm -rf conftest.dSYM
54424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54425       conftest$ac_exeext conftest.$ac_ext
54426             fi
54427             CPPFLAGS="$gt_save_CPPFLAGS"
54428             LIBS="$gt_save_LIBS"
54429 fi
54430 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
54431                  $as_echo "$as_val"'`
54432                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54433 $as_echo "$ac_res" >&6; }
54434         fi
54435
54436                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
54437            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
54438                 && test "$PACKAGE" != gettext-runtime \
54439                 && test "$PACKAGE" != gettext-tools; }; then
54440           gt_use_preinstalled_gnugettext=yes
54441         else
54442                     LIBINTL=
54443           LTLIBINTL=
54444           INCINTL=
54445         fi
54446
54447
54448
54449     if test -n "$INTL_MACOSX_LIBS"; then
54450       if test "$gt_use_preinstalled_gnugettext" = "yes" \
54451          || test "$nls_cv_use_gnu_gettext" = "yes"; then
54452                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
54453         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
54454       fi
54455     fi
54456
54457     if test "$gt_use_preinstalled_gnugettext" = "yes" \
54458        || test "$nls_cv_use_gnu_gettext" = "yes"; then
54459
54460 cat >>confdefs.h <<\_ACEOF
54461 #define ENABLE_NLS 1
54462 _ACEOF
54463
54464     else
54465       USE_NLS=no
54466     fi
54467   fi
54468
54469   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
54470 $as_echo_n "checking whether to use NLS... " >&6; }
54471   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54472 $as_echo "$USE_NLS" >&6; }
54473   if test "$USE_NLS" = "yes"; then
54474     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
54475 $as_echo_n "checking where the gettext function comes from... " >&6; }
54476     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54477       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54478         gt_source="external libintl"
54479       else
54480         gt_source="libc"
54481       fi
54482     else
54483       gt_source="included intl directory"
54484     fi
54485     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
54486 $as_echo "$gt_source" >&6; }
54487   fi
54488
54489   if test "$USE_NLS" = "yes"; then
54490
54491     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
54492       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54493         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
54494 $as_echo_n "checking how to link with libintl... " >&6; }
54495         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
54496 $as_echo "$LIBINTL" >&6; }
54497
54498   for element in $INCINTL; do
54499     haveit=
54500     for x in $CPPFLAGS; do
54501
54502   acl_save_prefix="$prefix"
54503   prefix="$acl_final_prefix"
54504   acl_save_exec_prefix="$exec_prefix"
54505   exec_prefix="$acl_final_exec_prefix"
54506   eval x=\"$x\"
54507   exec_prefix="$acl_save_exec_prefix"
54508   prefix="$acl_save_prefix"
54509
54510       if test "X$x" = "X$element"; then
54511         haveit=yes
54512         break
54513       fi
54514     done
54515     if test -z "$haveit"; then
54516       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54517     fi
54518   done
54519
54520       fi
54521
54522
54523 cat >>confdefs.h <<\_ACEOF
54524 #define HAVE_GETTEXT 1
54525 _ACEOF
54526
54527
54528 cat >>confdefs.h <<\_ACEOF
54529 #define HAVE_DCGETTEXT 1
54530 _ACEOF
54531
54532     fi
54533
54534         POSUB=po
54535   fi
54536
54537
54538
54539     INTLLIBS="$LIBINTL"
54540
54541
54542
54543
54544
54545
54546
54547
54548 # Initialize the test suite.
54549 ac_config_commands="$ac_config_commands tests/atconfig"
54550
54551
54552 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
54553  # FIXME: tests/preset?
54554
54555 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
54556
54557
54558
54559
54560 # Check whether --enable-backup-scripts was given.
54561 if test "${enable_backup_scripts+set}" = set; then
54562   enableval=$enable_backup_scripts; case $enableval in
54563                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
54564                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
54565                     ;;
54566                esac
54567 fi
54568
54569
54570
54571 if date +%Y-%m-%d 2>/dev/null >&2; then
54572         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
54573 else
54574         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
54575 fi
54576
54577 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
54578
54579 cat >confcache <<\_ACEOF
54580 # This file is a shell script that caches the results of configure
54581 # tests run on this system so they can be shared between configure
54582 # scripts and configure runs, see configure's option --config-cache.
54583 # It is not useful on other systems.  If it contains results you don't
54584 # want to keep, you may remove or edit it.
54585 #
54586 # config.status only pays attention to the cache file if you give it
54587 # the --recheck option to rerun configure.
54588 #
54589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
54590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
54591 # following values.
54592
54593 _ACEOF
54594
54595 # The following way of writing the cache mishandles newlines in values,
54596 # but we know of no workaround that is simple, portable, and efficient.
54597 # So, we kill variables containing newlines.
54598 # Ultrix sh set writes to stderr and can't be redirected directly,
54599 # and sets the high bit in the cache file unless we assign to the vars.
54600 (
54601   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54602     eval ac_val=\$$ac_var
54603     case $ac_val in #(
54604     *${as_nl}*)
54605       case $ac_var in #(
54606       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
54607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
54608       esac
54609       case $ac_var in #(
54610       _ | IFS | as_nl) ;; #(
54611       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54612       *) $as_unset $ac_var ;;
54613       esac ;;
54614     esac
54615   done
54616
54617   (set) 2>&1 |
54618     case $as_nl`(ac_space=' '; set) 2>&1` in #(
54619     *${as_nl}ac_space=\ *)
54620       # `set' does not quote correctly, so add quotes (double-quote
54621       # substitution turns \\\\ into \\, and sed turns \\ into \).
54622       sed -n \
54623         "s/'/'\\\\''/g;
54624           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54625       ;; #(
54626     *)
54627       # `set' quotes correctly as required by POSIX, so do not add quotes.
54628       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54629       ;;
54630     esac |
54631     sort
54632 ) |
54633   sed '
54634      /^ac_cv_env_/b end
54635      t clear
54636      :clear
54637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
54638      t end
54639      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
54640      :end' >>confcache
54641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
54642   if test -w "$cache_file"; then
54643     test "x$cache_file" != "x/dev/null" &&
54644       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
54645 $as_echo "$as_me: updating cache $cache_file" >&6;}
54646     cat confcache >$cache_file
54647   else
54648     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
54649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
54650   fi
54651 fi
54652 rm -f confcache
54653
54654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
54655 # Let make expand exec_prefix.
54656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
54657
54658 DEFS=-DHAVE_CONFIG_H
54659
54660 ac_libobjs=
54661 ac_ltlibobjs=
54662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
54663   # 1. Remove the extension, and $U if already installed.
54664   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54665   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
54666   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
54667   #    will be set to the directory where LIBOBJS objects are built.
54668   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54669   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
54670 done
54671 LIBOBJS=$ac_libobjs
54672
54673 LTLIBOBJS=$ac_ltlibobjs
54674
54675
54676  if test -n "$EXEEXT"; then
54677   am__EXEEXT_TRUE=
54678   am__EXEEXT_FALSE='#'
54679 else
54680   am__EXEEXT_TRUE='#'
54681   am__EXEEXT_FALSE=
54682 fi
54683
54684 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54685   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54686 Usually this means the macro was only invoked conditionally." >&5
54687 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
54688 Usually this means the macro was only invoked conditionally." >&2;}
54689    { (exit 1); exit 1; }; }
54690 fi
54691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54692   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54693 Usually this means the macro was only invoked conditionally." >&5
54694 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54695 Usually this means the macro was only invoked conditionally." >&2;}
54696    { (exit 1); exit 1; }; }
54697 fi
54698 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
54699   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54700 Usually this means the macro was only invoked conditionally." >&5
54701 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
54702 Usually this means the macro was only invoked conditionally." >&2;}
54703    { (exit 1); exit 1; }; }
54704 fi
54705 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
54706   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
54707 Usually this means the macro was only invoked conditionally." >&5
54708 $as_echo "$as_me: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
54709 Usually this means the macro was only invoked conditionally." >&2;}
54710    { (exit 1); exit 1; }; }
54711 fi
54712
54713     gl_libobjs=
54714     gl_ltlibobjs=
54715     if test -n "$gl_LIBOBJS"; then
54716       # Remove the extension.
54717       sed_drop_objext='s/\.o$//;s/\.obj$//'
54718       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
54719         gl_libobjs="$gl_libobjs $i.$ac_objext"
54720         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
54721       done
54722     fi
54723     gl_LIBOBJS=$gl_libobjs
54724
54725     gl_LTLIBOBJS=$gl_ltlibobjs
54726
54727
54728
54729     gltests_libobjs=
54730     gltests_ltlibobjs=
54731     if test -n "$gltests_LIBOBJS"; then
54732       # Remove the extension.
54733       sed_drop_objext='s/\.o$//;s/\.obj$//'
54734       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
54735         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
54736         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
54737       done
54738     fi
54739     gltests_LIBOBJS=$gltests_libobjs
54740
54741     gltests_LTLIBOBJS=$gltests_ltlibobjs
54742
54743
54744
54745 : ${CONFIG_STATUS=./config.status}
54746 ac_write_fail=0
54747 ac_clean_files_save=$ac_clean_files
54748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54749 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
54750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54751 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54752 #! $SHELL
54753 # Generated by $as_me.
54754 # Run this file to recreate the current configuration.
54755 # Compiler output produced by configure, useful for debugging
54756 # configure, is in config.log if it exists.
54757
54758 debug=false
54759 ac_cs_recheck=false
54760 ac_cs_silent=false
54761 SHELL=\${CONFIG_SHELL-$SHELL}
54762 _ACEOF
54763
54764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54765 ## --------------------- ##
54766 ## M4sh Initialization.  ##
54767 ## --------------------- ##
54768
54769 # Be more Bourne compatible
54770 DUALCASE=1; export DUALCASE # for MKS sh
54771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54772   emulate sh
54773   NULLCMD=:
54774   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
54775   # is contrary to our usage.  Disable this feature.
54776   alias -g '${1+"$@"}'='"$@"'
54777   setopt NO_GLOB_SUBST
54778 else
54779   case `(set -o) 2>/dev/null` in
54780   *posix*) set -o posix ;;
54781 esac
54782
54783 fi
54784
54785
54786
54787
54788 # PATH needs CR
54789 # Avoid depending upon Character Ranges.
54790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
54791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
54793 as_cr_digits='0123456789'
54794 as_cr_alnum=$as_cr_Letters$as_cr_digits
54795
54796 as_nl='
54797 '
54798 export as_nl
54799 # Printing a long string crashes Solaris 7 /usr/bin/printf.
54800 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54802 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
54803 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54804   as_echo='printf %s\n'
54805   as_echo_n='printf %s'
54806 else
54807   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54808     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54809     as_echo_n='/usr/ucb/echo -n'
54810   else
54811     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54812     as_echo_n_body='eval
54813       arg=$1;
54814       case $arg in
54815       *"$as_nl"*)
54816         expr "X$arg" : "X\\(.*\\)$as_nl";
54817         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
54818       esac;
54819       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
54820     '
54821     export as_echo_n_body
54822     as_echo_n='sh -c $as_echo_n_body as_echo'
54823   fi
54824   export as_echo_body
54825   as_echo='sh -c $as_echo_body as_echo'
54826 fi
54827
54828 # The user is always right.
54829 if test "${PATH_SEPARATOR+set}" != set; then
54830   PATH_SEPARATOR=:
54831   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
54832     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
54833       PATH_SEPARATOR=';'
54834   }
54835 fi
54836
54837 # Support unset when possible.
54838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54839   as_unset=unset
54840 else
54841   as_unset=false
54842 fi
54843
54844
54845 # IFS
54846 # We need space, tab and new line, in precisely that order.  Quoting is
54847 # there to prevent editors from complaining about space-tab.
54848 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54849 # splitting by setting IFS to empty value.)
54850 IFS=" ""        $as_nl"
54851
54852 # Find who we are.  Look in the path if we contain no directory separator.
54853 case $0 in
54854   *[\\/]* ) as_myself=$0 ;;
54855   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54856 for as_dir in $PATH
54857 do
54858   IFS=$as_save_IFS
54859   test -z "$as_dir" && as_dir=.
54860   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54861 done
54862 IFS=$as_save_IFS
54863
54864      ;;
54865 esac
54866 # We did not find ourselves, most probably we were run as `sh COMMAND'
54867 # in which case we are not to be found in the path.
54868 if test "x$as_myself" = x; then
54869   as_myself=$0
54870 fi
54871 if test ! -f "$as_myself"; then
54872   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
54873   { (exit 1); exit 1; }
54874 fi
54875
54876 # Work around bugs in pre-3.0 UWIN ksh.
54877 for as_var in ENV MAIL MAILPATH
54878 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54879 done
54880 PS1='$ '
54881 PS2='> '
54882 PS4='+ '
54883
54884 # NLS nuisances.
54885 LC_ALL=C
54886 export LC_ALL
54887 LANGUAGE=C
54888 export LANGUAGE
54889
54890 # Required to use basename.
54891 if expr a : '\(a\)' >/dev/null 2>&1 &&
54892    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54893   as_expr=expr
54894 else
54895   as_expr=false
54896 fi
54897
54898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54899   as_basename=basename
54900 else
54901   as_basename=false
54902 fi
54903
54904
54905 # Name of the executable.
54906 as_me=`$as_basename -- "$0" ||
54907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54908          X"$0" : 'X\(//\)$' \| \
54909          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54910 $as_echo X/"$0" |
54911     sed '/^.*\/\([^/][^/]*\)\/*$/{
54912             s//\1/
54913             q
54914           }
54915           /^X\/\(\/\/\)$/{
54916             s//\1/
54917             q
54918           }
54919           /^X\/\(\/\).*/{
54920             s//\1/
54921             q
54922           }
54923           s/.*/./; q'`
54924
54925 # CDPATH.
54926 $as_unset CDPATH
54927
54928
54929
54930   as_lineno_1=$LINENO
54931   as_lineno_2=$LINENO
54932   test "x$as_lineno_1" != "x$as_lineno_2" &&
54933   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54934
54935   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54936   # uniformly replaced by the line number.  The first 'sed' inserts a
54937   # line-number line after each line using $LINENO; the second 'sed'
54938   # does the real work.  The second script uses 'N' to pair each
54939   # line-number line with the line containing $LINENO, and appends
54940   # trailing '-' during substitution so that $LINENO is not a special
54941   # case at line end.
54942   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
54943   # scripts with optimization help from Paolo Bonzini.  Blame Lee
54944   # E. McMahon (1931-1989) for sed's syntax.  :-)
54945   sed -n '
54946     p
54947     /[$]LINENO/=
54948   ' <$as_myself |
54949     sed '
54950       s/[$]LINENO.*/&-/
54951       t lineno
54952       b
54953       :lineno
54954       N
54955       :loop
54956       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54957       t loop
54958       s/-\n.*//
54959     ' >$as_me.lineno &&
54960   chmod +x "$as_me.lineno" ||
54961     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54962    { (exit 1); exit 1; }; }
54963
54964   # Don't try to exec as it changes $[0], causing all sort of problems
54965   # (the dirname of $[0] is not the place where we might find the
54966   # original and so on.  Autoconf is especially sensitive to this).
54967   . "./$as_me.lineno"
54968   # Exit status is that of the last command.
54969   exit
54970 }
54971
54972
54973 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
54974   as_dirname=dirname
54975 else
54976   as_dirname=false
54977 fi
54978
54979 ECHO_C= ECHO_N= ECHO_T=
54980 case `echo -n x` in
54981 -n*)
54982   case `echo 'x\c'` in
54983   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
54984   *)   ECHO_C='\c';;
54985   esac;;
54986 *)
54987   ECHO_N='-n';;
54988 esac
54989 if expr a : '\(a\)' >/dev/null 2>&1 &&
54990    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54991   as_expr=expr
54992 else
54993   as_expr=false
54994 fi
54995
54996 rm -f conf$$ conf$$.exe conf$$.file
54997 if test -d conf$$.dir; then
54998   rm -f conf$$.dir/conf$$.file
54999 else
55000   rm -f conf$$.dir
55001   mkdir conf$$.dir 2>/dev/null
55002 fi
55003 if (echo >conf$$.file) 2>/dev/null; then
55004   if ln -s conf$$.file conf$$ 2>/dev/null; then
55005     as_ln_s='ln -s'
55006     # ... but there are two gotchas:
55007     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
55008     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
55009     # In both cases, we have to default to `cp -p'.
55010     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55011       as_ln_s='cp -p'
55012   elif ln conf$$.file conf$$ 2>/dev/null; then
55013     as_ln_s=ln
55014   else
55015     as_ln_s='cp -p'
55016   fi
55017 else
55018   as_ln_s='cp -p'
55019 fi
55020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
55021 rmdir conf$$.dir 2>/dev/null
55022
55023 if mkdir -p . 2>/dev/null; then
55024   as_mkdir_p=:
55025 else
55026   test -d ./-p && rmdir ./-p
55027   as_mkdir_p=false
55028 fi
55029
55030 if test -x / >/dev/null 2>&1; then
55031   as_test_x='test -x'
55032 else
55033   if ls -dL / >/dev/null 2>&1; then
55034     as_ls_L_option=L
55035   else
55036     as_ls_L_option=
55037   fi
55038   as_test_x='
55039     eval sh -c '\''
55040       if test -d "$1"; then
55041         test -d "$1/.";
55042       else
55043         case $1 in
55044         -*)set "./$1";;
55045         esac;
55046         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
55047         ???[sx]*):;;*)false;;esac;fi
55048     '\'' sh
55049   '
55050 fi
55051 as_executable_p=$as_test_x
55052
55053 # Sed expression to map a string onto a valid CPP name.
55054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55055
55056 # Sed expression to map a string onto a valid variable name.
55057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55058
55059
55060 exec 6>&1
55061
55062 # Save the log message, to keep $[0] and so on meaningful, and to
55063 # report actual input values of CONFIG_FILES etc. instead of their
55064 # values after options handling.
55065 ac_log="
55066 This file was extended by GNU tar $as_me 1.24, which was
55067 generated by GNU Autoconf 2.63.  Invocation command line was
55068
55069   CONFIG_FILES    = $CONFIG_FILES
55070   CONFIG_HEADERS  = $CONFIG_HEADERS
55071   CONFIG_LINKS    = $CONFIG_LINKS
55072   CONFIG_COMMANDS = $CONFIG_COMMANDS
55073   $ $0 $@
55074
55075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
55076 "
55077
55078 _ACEOF
55079
55080 case $ac_config_files in *"
55081 "*) set x $ac_config_files; shift; ac_config_files=$*;;
55082 esac
55083
55084 case $ac_config_headers in *"
55085 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
55086 esac
55087
55088
55089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55090 # Files that config.status was made for.
55091 config_files="$ac_config_files"
55092 config_headers="$ac_config_headers"
55093 config_commands="$ac_config_commands"
55094
55095 _ACEOF
55096
55097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55098 ac_cs_usage="\
55099 \`$as_me' instantiates files from templates according to the
55100 current configuration.
55101
55102 Usage: $0 [OPTION]... [FILE]...
55103
55104   -h, --help       print this help, then exit
55105   -V, --version    print version number and configuration settings, then exit
55106   -q, --quiet, --silent
55107                    do not print progress messages
55108   -d, --debug      don't remove temporary files
55109       --recheck    update $as_me by reconfiguring in the same conditions
55110       --file=FILE[:TEMPLATE]
55111                    instantiate the configuration file FILE
55112       --header=FILE[:TEMPLATE]
55113                    instantiate the configuration header FILE
55114
55115 Configuration files:
55116 $config_files
55117
55118 Configuration headers:
55119 $config_headers
55120
55121 Configuration commands:
55122 $config_commands
55123
55124 Report bugs to <bug-autoconf@gnu.org>."
55125
55126 _ACEOF
55127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55128 ac_cs_version="\\
55129 GNU tar config.status 1.24
55130 configured by $0, generated by GNU Autoconf 2.63,
55131   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
55132
55133 Copyright (C) 2008 Free Software Foundation, Inc.
55134 This config.status script is free software; the Free Software Foundation
55135 gives unlimited permission to copy, distribute and modify it."
55136
55137 ac_pwd='$ac_pwd'
55138 srcdir='$srcdir'
55139 INSTALL='$INSTALL'
55140 MKDIR_P='$MKDIR_P'
55141 AWK='$AWK'
55142 test -n "\$AWK" || AWK=awk
55143 _ACEOF
55144
55145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55146 # The default lists apply if the user does not specify any file.
55147 ac_need_defaults=:
55148 while test $# != 0
55149 do
55150   case $1 in
55151   --*=*)
55152     ac_option=`expr "X$1" : 'X\([^=]*\)='`
55153     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55154     ac_shift=:
55155     ;;
55156   *)
55157     ac_option=$1
55158     ac_optarg=$2
55159     ac_shift=shift
55160     ;;
55161   esac
55162
55163   case $ac_option in
55164   # Handling of the options.
55165   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55166     ac_cs_recheck=: ;;
55167   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
55168     $as_echo "$ac_cs_version"; exit ;;
55169   --debug | --debu | --deb | --de | --d | -d )
55170     debug=: ;;
55171   --file | --fil | --fi | --f )
55172     $ac_shift
55173     case $ac_optarg in
55174     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55175     esac
55176     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
55177     ac_need_defaults=false;;
55178   --header | --heade | --head | --hea )
55179     $ac_shift
55180     case $ac_optarg in
55181     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55182     esac
55183     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
55184     ac_need_defaults=false;;
55185   --he | --h)
55186     # Conflict between --help and --header
55187     { $as_echo "$as_me: error: ambiguous option: $1
55188 Try \`$0 --help' for more information." >&2
55189    { (exit 1); exit 1; }; };;
55190   --help | --hel | -h )
55191     $as_echo "$ac_cs_usage"; exit ;;
55192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55193   | -silent | --silent | --silen | --sile | --sil | --si | --s)
55194     ac_cs_silent=: ;;
55195
55196   # This is an error.
55197   -*) { $as_echo "$as_me: error: unrecognized option: $1
55198 Try \`$0 --help' for more information." >&2
55199    { (exit 1); exit 1; }; } ;;
55200
55201   *) ac_config_targets="$ac_config_targets $1"
55202      ac_need_defaults=false ;;
55203
55204   esac
55205   shift
55206 done
55207
55208 ac_configure_extra_args=
55209
55210 if $ac_cs_silent; then
55211   exec 6>/dev/null
55212   ac_configure_extra_args="$ac_configure_extra_args --silent"
55213 fi
55214
55215 _ACEOF
55216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55217 if \$ac_cs_recheck; then
55218   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55219   shift
55220   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
55221   CONFIG_SHELL='$SHELL'
55222   export CONFIG_SHELL
55223   exec "\$@"
55224 fi
55225
55226 _ACEOF
55227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55228 exec 5>>config.log
55229 {
55230   echo
55231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55232 ## Running $as_me. ##
55233 _ASBOX
55234   $as_echo "$ac_log"
55235 } >&5
55236
55237 _ACEOF
55238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55239 #
55240 # INIT-COMMANDS
55241 #
55242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
55243 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
55244     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
55245     # from automake < 1.5.
55246     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
55247     # Capture the value of LINGUAS because we need it to compute CATALOGS.
55248     LINGUAS="${LINGUAS-%UNSET%}"
55249
55250
55251 _ACEOF
55252
55253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55254
55255 # Handling of arguments.
55256 for ac_config_target in $ac_config_targets
55257 do
55258   case $ac_config_target in
55259     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
55260     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55261     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
55262     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
55263     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
55264     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
55265     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55266     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
55267     "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
55268     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
55269     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
55270     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
55271     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
55272     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
55273
55274   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
55275 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
55276    { (exit 1); exit 1; }; };;
55277   esac
55278 done
55279
55280
55281 # If the user did not use the arguments to specify the items to instantiate,
55282 # then the envvar interface is used.  Set only those that are not.
55283 # We use the long form for the default assignment because of an extremely
55284 # bizarre bug on SunOS 4.1.3.
55285 if $ac_need_defaults; then
55286   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55287   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55288   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55289 fi
55290
55291 # Have a temporary directory for convenience.  Make it in the build tree
55292 # simply because there is no reason against having it here, and in addition,
55293 # creating and moving files from /tmp can sometimes cause problems.
55294 # Hook for its removal unless debugging.
55295 # Note that there is a small window in which the directory will not be cleaned:
55296 # after its creation but before its name has been assigned to `$tmp'.
55297 $debug ||
55298 {
55299   tmp=
55300   trap 'exit_status=$?
55301   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
55302 ' 0
55303   trap '{ (exit 1); exit 1; }' 1 2 13 15
55304 }
55305 # Create a (secure) tmp directory for tmp files.
55306
55307 {
55308   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55309   test -n "$tmp" && test -d "$tmp"
55310 }  ||
55311 {
55312   tmp=./conf$$-$RANDOM
55313   (umask 077 && mkdir "$tmp")
55314 } ||
55315 {
55316    $as_echo "$as_me: cannot create a temporary directory in ." >&2
55317    { (exit 1); exit 1; }
55318 }
55319
55320 # Set up the scripts for CONFIG_FILES section.
55321 # No need to generate them if there are no CONFIG_FILES.
55322 # This happens for instance with `./config.status config.h'.
55323 if test -n "$CONFIG_FILES"; then
55324
55325
55326 ac_cr='\r'
55327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
55328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
55329   ac_cs_awk_cr='\\r'
55330 else
55331   ac_cs_awk_cr=$ac_cr
55332 fi
55333
55334 echo 'BEGIN {' >"$tmp/subs1.awk" &&
55335 _ACEOF
55336
55337
55338 {
55339   echo "cat >conf$$subs.awk <<_ACEOF" &&
55340   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
55341   echo "_ACEOF"
55342 } >conf$$subs.sh ||
55343   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55344 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55345    { (exit 1); exit 1; }; }
55346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
55347 ac_delim='%!_!# '
55348 for ac_last_try in false false false false false :; do
55349   . ./conf$$subs.sh ||
55350     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55351 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55352    { (exit 1); exit 1; }; }
55353
55354   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
55355   if test $ac_delim_n = $ac_delim_num; then
55356     break
55357   elif $ac_last_try; then
55358     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55359 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55360    { (exit 1); exit 1; }; }
55361   else
55362     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55363   fi
55364 done
55365 rm -f conf$$subs.sh
55366
55367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
55369 _ACEOF
55370 sed -n '
55371 h
55372 s/^/S["/; s/!.*/"]=/
55373 p
55374 g
55375 s/^[^!]*!//
55376 :repl
55377 t repl
55378 s/'"$ac_delim"'$//
55379 t delim
55380 :nl
55381 h
55382 s/\(.\{148\}\).*/\1/
55383 t more1
55384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
55385 p
55386 n
55387 b repl
55388 :more1
55389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55390 p
55391 g
55392 s/.\{148\}//
55393 t nl
55394 :delim
55395 h
55396 s/\(.\{148\}\).*/\1/
55397 t more2
55398 s/["\\]/\\&/g; s/^/"/; s/$/"/
55399 p
55400 b
55401 :more2
55402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
55403 p
55404 g
55405 s/.\{148\}//
55406 t delim
55407 ' <conf$$subs.awk | sed '
55408 /^[^""]/{
55409   N
55410   s/\n//
55411 }
55412 ' >>$CONFIG_STATUS || ac_write_fail=1
55413 rm -f conf$$subs.awk
55414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55415 _ACAWK
55416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
55417   for (key in S) S_is_set[key] = 1
55418   FS = "\a"
55419
55420 }
55421 {
55422   line = $ 0
55423   nfields = split(line, field, "@")
55424   substed = 0
55425   len = length(field[1])
55426   for (i = 2; i < nfields; i++) {
55427     key = field[i]
55428     keylen = length(key)
55429     if (S_is_set[key]) {
55430       value = S[key]
55431       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
55432       len += length(value) + length(field[++i])
55433       substed = 1
55434     } else
55435       len += 1 + keylen
55436   }
55437
55438   print line
55439 }
55440
55441 _ACAWK
55442 _ACEOF
55443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
55445   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
55446 else
55447   cat
55448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
55449   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
55450 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
55451    { (exit 1); exit 1; }; }
55452 _ACEOF
55453
55454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55456 # trailing colons and then remove the whole line if VPATH becomes empty
55457 # (actually we leave an empty line to preserve line numbers).
55458 if test "x$srcdir" = x.; then
55459   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55460 s/:*\$(srcdir):*/:/
55461 s/:*\${srcdir}:*/:/
55462 s/:*@srcdir@:*/:/
55463 s/^\([^=]*=[     ]*\):*/\1/
55464 s/:*$//
55465 s/^[^=]*=[       ]*$//
55466 }'
55467 fi
55468
55469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55470 fi # test -n "$CONFIG_FILES"
55471
55472 # Set up the scripts for CONFIG_HEADERS section.
55473 # No need to generate them if there are no CONFIG_HEADERS.
55474 # This happens for instance with `./config.status Makefile'.
55475 if test -n "$CONFIG_HEADERS"; then
55476 cat >"$tmp/defines.awk" <<\_ACAWK ||
55477 BEGIN {
55478 _ACEOF
55479
55480 # Transform confdefs.h into an awk script `defines.awk', embedded as
55481 # here-document in config.status, that substitutes the proper values into
55482 # config.h.in to produce config.h.
55483
55484 # Create a delimiter string that does not exist in confdefs.h, to ease
55485 # handling of long lines.
55486 ac_delim='%!_!# '
55487 for ac_last_try in false false :; do
55488   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
55489   if test -z "$ac_t"; then
55490     break
55491   elif $ac_last_try; then
55492     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
55493 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
55494    { (exit 1); exit 1; }; }
55495   else
55496     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55497   fi
55498 done
55499
55500 # For the awk script, D is an array of macro values keyed by name,
55501 # likewise P contains macro parameters if any.  Preserve backslash
55502 # newline sequences.
55503
55504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55505 sed -n '
55506 s/.\{148\}/&'"$ac_delim"'/g
55507 t rset
55508 :rset
55509 s/^[     ]*#[    ]*define[       ][      ]*/ /
55510 t def
55511 d
55512 :def
55513 s/\\$//
55514 t bsnl
55515 s/["\\]/\\&/g
55516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
55517 D["\1"]=" \3"/p
55518 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
55519 d
55520 :bsnl
55521 s/["\\]/\\&/g
55522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
55523 D["\1"]=" \3\\\\\\n"\\/p
55524 t cont
55525 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
55526 t cont
55527 d
55528 :cont
55529 n
55530 s/.\{148\}/&'"$ac_delim"'/g
55531 t clear
55532 :clear
55533 s/\\$//
55534 t bsnlc
55535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
55536 d
55537 :bsnlc
55538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
55539 b cont
55540 ' <confdefs.h | sed '
55541 s/'"$ac_delim"'/"\\\
55542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
55543
55544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55545   for (key in D) D_is_set[key] = 1
55546   FS = "\a"
55547 }
55548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
55549   line = \$ 0
55550   split(line, arg, " ")
55551   if (arg[1] == "#") {
55552     defundef = arg[2]
55553     mac1 = arg[3]
55554   } else {
55555     defundef = substr(arg[1], 2)
55556     mac1 = arg[2]
55557   }
55558   split(mac1, mac2, "(") #)
55559   macro = mac2[1]
55560   prefix = substr(line, 1, index(line, defundef) - 1)
55561   if (D_is_set[macro]) {
55562     # Preserve the white space surrounding the "#".
55563     print prefix "define", macro P[macro] D[macro]
55564     next
55565   } else {
55566     # Replace #undef with comments.  This is necessary, for example,
55567     # in the case of _POSIX_SOURCE, which is predefined and required
55568     # on some systems where configure will not decide to define it.
55569     if (defundef == "undef") {
55570       print "/*", prefix defundef, macro, "*/"
55571       next
55572     }
55573   }
55574 }
55575 { print }
55576 _ACAWK
55577 _ACEOF
55578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55579   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
55580 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
55581    { (exit 1); exit 1; }; }
55582 fi # test -n "$CONFIG_HEADERS"
55583
55584
55585 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
55586 shift
55587 for ac_tag
55588 do
55589   case $ac_tag in
55590   :[FHLC]) ac_mode=$ac_tag; continue;;
55591   esac
55592   case $ac_mode$ac_tag in
55593   :[FHL]*:*);;
55594   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
55595 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
55596    { (exit 1); exit 1; }; };;
55597   :[FH]-) ac_tag=-:-;;
55598   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55599   esac
55600   ac_save_IFS=$IFS
55601   IFS=:
55602   set x $ac_tag
55603   IFS=$ac_save_IFS
55604   shift
55605   ac_file=$1
55606   shift
55607
55608   case $ac_mode in
55609   :L) ac_source=$1;;
55610   :[FH])
55611     ac_file_inputs=
55612     for ac_f
55613     do
55614       case $ac_f in
55615       -) ac_f="$tmp/stdin";;
55616       *) # Look for the file first in the build tree, then in the source tree
55617          # (if the path is not absolute).  The absolute path cannot be DOS-style,
55618          # because $ac_f cannot contain `:'.
55619          test -f "$ac_f" ||
55620            case $ac_f in
55621            [\\/$]*) false;;
55622            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55623            esac ||
55624            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55625 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55626    { (exit 1); exit 1; }; };;
55627       esac
55628       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
55629       ac_file_inputs="$ac_file_inputs '$ac_f'"
55630     done
55631
55632     # Let's still pretend it is `configure' which instantiates (i.e., don't
55633     # use $as_me), people would be surprised to read:
55634     #    /* config.h.  Generated by config.status.  */
55635     configure_input='Generated from '`
55636           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
55637         `' by configure.'
55638     if test x"$ac_file" != x-; then
55639       configure_input="$ac_file.  $configure_input"
55640       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
55641 $as_echo "$as_me: creating $ac_file" >&6;}
55642     fi
55643     # Neutralize special characters interpreted by sed in replacement strings.
55644     case $configure_input in #(
55645     *\&* | *\|* | *\\* )
55646        ac_sed_conf_input=`$as_echo "$configure_input" |
55647        sed 's/[\\\\&|]/\\\\&/g'`;; #(
55648     *) ac_sed_conf_input=$configure_input;;
55649     esac
55650
55651     case $ac_tag in
55652     *:-:* | *:-) cat >"$tmp/stdin" \
55653       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55655    { (exit 1); exit 1; }; } ;;
55656     esac
55657     ;;
55658   esac
55659
55660   ac_dir=`$as_dirname -- "$ac_file" ||
55661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55662          X"$ac_file" : 'X\(//\)[^/]' \| \
55663          X"$ac_file" : 'X\(//\)$' \| \
55664          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55665 $as_echo X"$ac_file" |
55666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55667             s//\1/
55668             q
55669           }
55670           /^X\(\/\/\)[^/].*/{
55671             s//\1/
55672             q
55673           }
55674           /^X\(\/\/\)$/{
55675             s//\1/
55676             q
55677           }
55678           /^X\(\/\).*/{
55679             s//\1/
55680             q
55681           }
55682           s/.*/./; q'`
55683   { as_dir="$ac_dir"
55684   case $as_dir in #(
55685   -*) as_dir=./$as_dir;;
55686   esac
55687   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55688     as_dirs=
55689     while :; do
55690       case $as_dir in #(
55691       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
55692       *) as_qdir=$as_dir;;
55693       esac
55694       as_dirs="'$as_qdir' $as_dirs"
55695       as_dir=`$as_dirname -- "$as_dir" ||
55696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55697          X"$as_dir" : 'X\(//\)[^/]' \| \
55698          X"$as_dir" : 'X\(//\)$' \| \
55699          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55700 $as_echo X"$as_dir" |
55701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55702             s//\1/
55703             q
55704           }
55705           /^X\(\/\/\)[^/].*/{
55706             s//\1/
55707             q
55708           }
55709           /^X\(\/\/\)$/{
55710             s//\1/
55711             q
55712           }
55713           /^X\(\/\).*/{
55714             s//\1/
55715             q
55716           }
55717           s/.*/./; q'`
55718       test -d "$as_dir" && break
55719     done
55720     test -z "$as_dirs" || eval "mkdir $as_dirs"
55721   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55722 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
55723    { (exit 1); exit 1; }; }; }
55724   ac_builddir=.
55725
55726 case "$ac_dir" in
55727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55728 *)
55729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
55730   # A ".." for each directory in $ac_dir_suffix.
55731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
55732   case $ac_top_builddir_sub in
55733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55735   esac ;;
55736 esac
55737 ac_abs_top_builddir=$ac_pwd
55738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55739 # for backward compatibility:
55740 ac_top_builddir=$ac_top_build_prefix
55741
55742 case $srcdir in
55743   .)  # We are building in place.
55744     ac_srcdir=.
55745     ac_top_srcdir=$ac_top_builddir_sub
55746     ac_abs_top_srcdir=$ac_pwd ;;
55747   [\\/]* | ?:[\\/]* )  # Absolute name.
55748     ac_srcdir=$srcdir$ac_dir_suffix;
55749     ac_top_srcdir=$srcdir
55750     ac_abs_top_srcdir=$srcdir ;;
55751   *) # Relative name.
55752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55753     ac_top_srcdir=$ac_top_build_prefix$srcdir
55754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55755 esac
55756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55757
55758
55759   case $ac_mode in
55760   :F)
55761   #
55762   # CONFIG_FILE
55763   #
55764
55765   case $INSTALL in
55766   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55767   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55768   esac
55769   ac_MKDIR_P=$MKDIR_P
55770   case $MKDIR_P in
55771   [\\/$]* | ?:[\\/]* ) ;;
55772   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
55773   esac
55774 _ACEOF
55775
55776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55777 # If the template does not know about datarootdir, expand it.
55778 # FIXME: This hack should be removed a few years after 2.60.
55779 ac_datarootdir_hack=; ac_datarootdir_seen=
55780
55781 ac_sed_dataroot='
55782 /datarootdir/ {
55783   p
55784   q
55785 }
55786 /@datadir@/p
55787 /@docdir@/p
55788 /@infodir@/p
55789 /@localedir@/p
55790 /@mandir@/p
55791 '
55792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
55793 *datarootdir*) ac_datarootdir_seen=yes;;
55794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55795   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55797 _ACEOF
55798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55799   ac_datarootdir_hack='
55800   s&@datadir@&$datadir&g
55801   s&@docdir@&$docdir&g
55802   s&@infodir@&$infodir&g
55803   s&@localedir@&$localedir&g
55804   s&@mandir@&$mandir&g
55805     s&\\\${datarootdir}&$datarootdir&g' ;;
55806 esac
55807 _ACEOF
55808
55809 # Neutralize VPATH when `$srcdir' = `.'.
55810 # Shell code in configure.ac might set extrasub.
55811 # FIXME: do we really want to maintain this feature?
55812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55813 ac_sed_extra="$ac_vpsub
55814 $extrasub
55815 _ACEOF
55816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55817 :t
55818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55819 s|@configure_input@|$ac_sed_conf_input|;t t
55820 s&@top_builddir@&$ac_top_builddir_sub&;t t
55821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
55822 s&@srcdir@&$ac_srcdir&;t t
55823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55824 s&@top_srcdir@&$ac_top_srcdir&;t t
55825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55826 s&@builddir@&$ac_builddir&;t t
55827 s&@abs_builddir@&$ac_abs_builddir&;t t
55828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55829 s&@INSTALL@&$ac_INSTALL&;t t
55830 s&@MKDIR_P@&$ac_MKDIR_P&;t t
55831 $ac_datarootdir_hack
55832 "
55833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
55834   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55836    { (exit 1); exit 1; }; }
55837
55838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55839   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55840   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55841   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55842 which seems to be undefined.  Please make sure it is defined." >&5
55843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55844 which seems to be undefined.  Please make sure it is defined." >&2;}
55845
55846   rm -f "$tmp/stdin"
55847   case $ac_file in
55848   -) cat "$tmp/out" && rm -f "$tmp/out";;
55849   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
55850   esac \
55851   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55853    { (exit 1); exit 1; }; }
55854  ;;
55855   :H)
55856   #
55857   # CONFIG_HEADER
55858   #
55859   if test x"$ac_file" != x-; then
55860     {
55861       $as_echo "/* $configure_input  */" \
55862       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
55863     } >"$tmp/config.h" \
55864       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55865 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55866    { (exit 1); exit 1; }; }
55867     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
55868       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
55870     else
55871       rm -f "$ac_file"
55872       mv "$tmp/config.h" "$ac_file" \
55873         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
55874 $as_echo "$as_me: error: could not create $ac_file" >&2;}
55875    { (exit 1); exit 1; }; }
55876     fi
55877   else
55878     $as_echo "/* $configure_input  */" \
55879       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
55880       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
55881 $as_echo "$as_me: error: could not create -" >&2;}
55882    { (exit 1); exit 1; }; }
55883   fi
55884 # Compute "$ac_file"'s index in $config_headers.
55885 _am_arg="$ac_file"
55886 _am_stamp_count=1
55887 for _am_header in $config_headers :; do
55888   case $_am_header in
55889     $_am_arg | $_am_arg:* )
55890       break ;;
55891     * )
55892       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
55893   esac
55894 done
55895 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
55896 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55897          X"$_am_arg" : 'X\(//\)[^/]' \| \
55898          X"$_am_arg" : 'X\(//\)$' \| \
55899          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
55900 $as_echo X"$_am_arg" |
55901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55902             s//\1/
55903             q
55904           }
55905           /^X\(\/\/\)[^/].*/{
55906             s//\1/
55907             q
55908           }
55909           /^X\(\/\/\)$/{
55910             s//\1/
55911             q
55912           }
55913           /^X\(\/\).*/{
55914             s//\1/
55915             q
55916           }
55917           s/.*/./; q'`/stamp-h$_am_stamp_count
55918  ;;
55919
55920   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
55921 $as_echo "$as_me: executing $ac_file commands" >&6;}
55922  ;;
55923   esac
55924
55925
55926   case $ac_file$ac_mode in
55927     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
55928   # Autoconf 2.62 quotes --file arguments for eval, but not when files
55929   # are listed without --file.  Let's play safe and only enable the eval
55930   # if we detect the quoting.
55931   case $CONFIG_FILES in
55932   *\'*) eval set x "$CONFIG_FILES" ;;
55933   *)   set x $CONFIG_FILES ;;
55934   esac
55935   shift
55936   for mf
55937   do
55938     # Strip MF so we end up with the name of the file.
55939     mf=`echo "$mf" | sed -e 's/:.*$//'`
55940     # Check whether this is an Automake generated Makefile or not.
55941     # We used to match only the files named `Makefile.in', but
55942     # some people rename them; so instead we look at the file content.
55943     # Grep'ing the first line is not enough: some people post-process
55944     # each Makefile.in and add a new line on top of each file to say so.
55945     # Grep'ing the whole file is not good either: AIX grep has a line
55946     # limit of 2048, but all sed's we know have understand at least 4000.
55947     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
55948       dirpart=`$as_dirname -- "$mf" ||
55949 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55950          X"$mf" : 'X\(//\)[^/]' \| \
55951          X"$mf" : 'X\(//\)$' \| \
55952          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
55953 $as_echo X"$mf" |
55954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55955             s//\1/
55956             q
55957           }
55958           /^X\(\/\/\)[^/].*/{
55959             s//\1/
55960             q
55961           }
55962           /^X\(\/\/\)$/{
55963             s//\1/
55964             q
55965           }
55966           /^X\(\/\).*/{
55967             s//\1/
55968             q
55969           }
55970           s/.*/./; q'`
55971     else
55972       continue
55973     fi
55974     # Extract the definition of DEPDIR, am__include, and am__quote
55975     # from the Makefile without running `make'.
55976     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
55977     test -z "$DEPDIR" && continue
55978     am__include=`sed -n 's/^am__include = //p' < "$mf"`
55979     test -z "am__include" && continue
55980     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
55981     # When using ansi2knr, U may be empty or an underscore; expand it
55982     U=`sed -n 's/^U = //p' < "$mf"`
55983     # Find all dependency output files, they are included files with
55984     # $(DEPDIR) in their names.  We invoke sed twice because it is the
55985     # simplest approach to changing $(DEPDIR) to its actual value in the
55986     # expansion.
55987     for file in `sed -n "
55988       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
55989          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
55990       # Make sure the directory exists.
55991       test -f "$dirpart/$file" && continue
55992       fdir=`$as_dirname -- "$file" ||
55993 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55994          X"$file" : 'X\(//\)[^/]' \| \
55995          X"$file" : 'X\(//\)$' \| \
55996          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
55997 $as_echo X"$file" |
55998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55999             s//\1/
56000             q
56001           }
56002           /^X\(\/\/\)[^/].*/{
56003             s//\1/
56004             q
56005           }
56006           /^X\(\/\/\)$/{
56007             s//\1/
56008             q
56009           }
56010           /^X\(\/\).*/{
56011             s//\1/
56012             q
56013           }
56014           s/.*/./; q'`
56015       { as_dir=$dirpart/$fdir
56016   case $as_dir in #(
56017   -*) as_dir=./$as_dir;;
56018   esac
56019   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
56020     as_dirs=
56021     while :; do
56022       case $as_dir in #(
56023       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
56024       *) as_qdir=$as_dir;;
56025       esac
56026       as_dirs="'$as_qdir' $as_dirs"
56027       as_dir=`$as_dirname -- "$as_dir" ||
56028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56029          X"$as_dir" : 'X\(//\)[^/]' \| \
56030          X"$as_dir" : 'X\(//\)$' \| \
56031          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56032 $as_echo X"$as_dir" |
56033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56034             s//\1/
56035             q
56036           }
56037           /^X\(\/\/\)[^/].*/{
56038             s//\1/
56039             q
56040           }
56041           /^X\(\/\/\)$/{
56042             s//\1/
56043             q
56044           }
56045           /^X\(\/\).*/{
56046             s//\1/
56047             q
56048           }
56049           s/.*/./; q'`
56050       test -d "$as_dir" && break
56051     done
56052     test -z "$as_dirs" || eval "mkdir $as_dirs"
56053   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
56054 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
56055    { (exit 1); exit 1; }; }; }
56056       # echo "creating $dirpart/$file"
56057       echo '# dummy' > "$dirpart/$file"
56058     done
56059   done
56060 }
56061  ;;
56062     "po-directories":C)
56063     for ac_file in $CONFIG_FILES; do
56064       # Support "outfile[:infile[:infile...]]"
56065       case "$ac_file" in
56066         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
56067       esac
56068       # PO directories have a Makefile.in generated from Makefile.in.in.
56069       case "$ac_file" in */Makefile.in)
56070         # Adjust a relative srcdir.
56071         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
56072         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
56073         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
56074         # In autoconf-2.13 it is called $ac_given_srcdir.
56075         # In autoconf-2.50 it is called $srcdir.
56076         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
56077         case "$ac_given_srcdir" in
56078           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
56079           /*) top_srcdir="$ac_given_srcdir" ;;
56080           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
56081         esac
56082         # Treat a directory as a PO directory if and only if it has a
56083         # POTFILES.in file. This allows packages to have multiple PO
56084         # directories under different names or in different locations.
56085         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
56086           rm -f "$ac_dir/POTFILES"
56087           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
56088           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
56089           POMAKEFILEDEPS="POTFILES.in"
56090           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
56091           # on $ac_dir but don't depend on user-specified configuration
56092           # parameters.
56093           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
56094             # The LINGUAS file contains the set of available languages.
56095             if test -n "$OBSOLETE_ALL_LINGUAS"; then
56096               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
56097             fi
56098             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
56099             # Hide the ALL_LINGUAS assigment from automake < 1.5.
56100             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
56101             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
56102           else
56103             # The set of available languages was given in configure.in.
56104             # Hide the ALL_LINGUAS assigment from automake < 1.5.
56105             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
56106           fi
56107           # Compute POFILES
56108           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
56109           # Compute UPDATEPOFILES
56110           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
56111           # Compute DUMMYPOFILES
56112           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
56113           # Compute GMOFILES
56114           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
56115           case "$ac_given_srcdir" in
56116             .) srcdirpre= ;;
56117             *) srcdirpre='$(srcdir)/' ;;
56118           esac
56119           POFILES=
56120           UPDATEPOFILES=
56121           DUMMYPOFILES=
56122           GMOFILES=
56123           for lang in $ALL_LINGUAS; do
56124             POFILES="$POFILES $srcdirpre$lang.po"
56125             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
56126             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
56127             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
56128           done
56129           # CATALOGS depends on both $ac_dir and the user's LINGUAS
56130           # environment variable.
56131           INST_LINGUAS=
56132           if test -n "$ALL_LINGUAS"; then
56133             for presentlang in $ALL_LINGUAS; do
56134               useit=no
56135               if test "%UNSET%" != "$LINGUAS"; then
56136                 desiredlanguages="$LINGUAS"
56137               else
56138                 desiredlanguages="$ALL_LINGUAS"
56139               fi
56140               for desiredlang in $desiredlanguages; do
56141                 # Use the presentlang catalog if desiredlang is
56142                 #   a. equal to presentlang, or
56143                 #   b. a variant of presentlang (because in this case,
56144                 #      presentlang can be used as a fallback for messages
56145                 #      which are not translated in the desiredlang catalog).
56146                 case "$desiredlang" in
56147                   "$presentlang"*) useit=yes;;
56148                 esac
56149               done
56150               if test $useit = yes; then
56151                 INST_LINGUAS="$INST_LINGUAS $presentlang"
56152               fi
56153             done
56154           fi
56155           CATALOGS=
56156           if test -n "$INST_LINGUAS"; then
56157             for lang in $INST_LINGUAS; do
56158               CATALOGS="$CATALOGS $lang.gmo"
56159             done
56160           fi
56161           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
56162           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"
56163           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
56164             if test -f "$f"; then
56165               case "$f" in
56166                 *.orig | *.bak | *~) ;;
56167                 *) cat "$f" >> "$ac_dir/Makefile" ;;
56168               esac
56169             fi
56170           done
56171         fi
56172         ;;
56173       esac
56174     done ;;
56175     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
56176 # Configurable variable values for building test suites.
56177 # Generated by $0.
56178 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
56179
56180 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
56181 at_testdir='tests'
56182 abs_builddir='$ac_abs_builddir'
56183 at_srcdir='$ac_srcdir'
56184 abs_srcdir='$ac_abs_srcdir'
56185 at_top_srcdir='$ac_top_srcdir'
56186 abs_top_srcdir='$ac_abs_top_srcdir'
56187 at_top_build_prefix='$ac_top_build_prefix'
56188 abs_top_builddir='$ac_abs_top_builddir'
56189
56190 # Backward compatibility with Autotest <= 2.59b:
56191 at_top_builddir=\$at_top_build_prefix
56192
56193 AUTOTEST_PATH='tests'
56194
56195 SHELL=\${CONFIG_SHELL-'$SHELL'}
56196 ATEOF
56197  ;;
56198
56199   esac
56200 done # for ac_tag
56201
56202
56203 { (exit 0); exit 0; }
56204 _ACEOF
56205 chmod +x $CONFIG_STATUS
56206 ac_clean_files=$ac_clean_files_save
56207
56208 test $ac_write_fail = 0 ||
56209   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
56210 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
56211    { (exit 1); exit 1; }; }
56212
56213
56214 # configure is writing to config.log, and then calls config.status.
56215 # config.status does its own redirection, appending to config.log.
56216 # Unfortunately, on DOS this fails, as config.log is still kept open
56217 # by configure, so config.status won't be able to write to it; its
56218 # output is simply discarded.  So we exec the FD to /dev/null,
56219 # effectively closing config.log, so it can be properly (re)opened and
56220 # appended to by config.status.  When coming back to configure, we
56221 # need to make the FD available again.
56222 if test "$no_create" != yes; then
56223   ac_cs_success=:
56224   ac_config_status_args=
56225   test "$silent" = yes &&
56226     ac_config_status_args="$ac_config_status_args --quiet"
56227   exec 5>/dev/null
56228   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
56229   exec 5>>config.log
56230   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
56231   # would make configure fail if this is the last instruction.
56232   $ac_cs_success || { (exit 1); exit 1; }
56233 fi
56234 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
56235   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
56236 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
56237 fi
56238