Imported Upstream version 1.3.14
[debian/gzip] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.69-81c80 for gzip 1.3.14.
4 #
5 # Report bugs to <bug-gzip@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gzip@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='gzip'
554 PACKAGE_TARNAME='gzip'
555 PACKAGE_VERSION='1.3.14'
556 PACKAGE_STRING='gzip 1.3.14'
557 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
558 PACKAGE_URL=''
559
560 ac_unique_file="gzip.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_func_list=
598 ac_header_list=
599 gl_getopt_required=POSIX
600 gl_getopt_required=POSIX
601 ac_subst_vars='gltests_LTLIBOBJS
602 gltests_LIBOBJS
603 gl_LTLIBOBJS
604 gl_LIBOBJS
605 am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 ASFLAGS_config
609 LIBOBJS
610 ASCPPFLAGS
611 ASCPPPOST
612 LIBGZIP_LTLIBDEPS
613 LIBGZIP_LIBDEPS
614 REPLACE_ISWCNTRL
615 WCTYPE_H
616 HAVE_WCTYPE_H
617 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
618 NEXT_WCTYPE_H
619 HAVE_ISWCNTRL
620 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
621 NEXT_WCHAR_H
622 HAVE_WCHAR_H
623 HAVE_WINT_T
624 HAVE_UNISTD_H
625 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
626 NEXT_UNISTD_H
627 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
628 TIME_H_DEFINES_STRUCT_TIMESPEC
629 NEXT_AS_FIRST_DIRECTIVE_TIME_H
630 NEXT_TIME_H
631 REPLACE_TIMEGM
632 REPLACE_STRPTIME
633 REPLACE_NANOSLEEP
634 REPLACE_MKTIME
635 REPLACE_LOCALTIME_R
636 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
637 NEXT_SYS_STAT_H
638 NEXT_AS_FIRST_DIRECTIVE_STRING_H
639 NEXT_STRING_H
640 HAVE_RANDOM_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
642 NEXT_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
644 NEXT_STDIO_H
645 STDINT_H
646 WINT_T_SUFFIX
647 WCHAR_T_SUFFIX
648 SIG_ATOMIC_T_SUFFIX
649 SIZE_T_SUFFIX
650 PTRDIFF_T_SUFFIX
651 HAVE_SIGNED_WINT_T
652 HAVE_SIGNED_WCHAR_T
653 HAVE_SIGNED_SIG_ATOMIC_T
654 BITSIZEOF_WINT_T
655 BITSIZEOF_WCHAR_T
656 BITSIZEOF_SIG_ATOMIC_T
657 BITSIZEOF_SIZE_T
658 BITSIZEOF_PTRDIFF_T
659 HAVE_SYS_BITYPES_H
660 HAVE_SYS_INTTYPES_H
661 HAVE_STDINT_H
662 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
663 NEXT_STDINT_H
664 HAVE_SYS_TYPES_H
665 HAVE_INTTYPES_H
666 HAVE_UNSIGNED_LONG_LONG_INT
667 HAVE_LONG_LONG_INT
668 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
669 NEXT_STDDEF_H
670 STDDEF_H
671 HAVE_WCHAR_T
672 REPLACE_NULL
673 HAVE__BOOL
674 STDBOOL_H
675 UNDEFINE_STRTOK_R
676 REPLACE_STRTOK_R
677 REPLACE_STRSIGNAL
678 REPLACE_STRNDUP
679 REPLACE_STRERROR
680 REPLACE_STRCASESTR
681 REPLACE_STRSTR
682 REPLACE_STRDUP
683 REPLACE_MEMMEM
684 REPLACE_MEMCHR
685 HAVE_STRVERSCMP
686 HAVE_DECL_STRSIGNAL
687 HAVE_DECL_STRERROR
688 HAVE_DECL_STRTOK_R
689 HAVE_STRCASESTR
690 HAVE_STRSEP
691 HAVE_STRPBRK
692 HAVE_DECL_STRNLEN
693 HAVE_DECL_STRNDUP
694 HAVE_DECL_STRDUP
695 HAVE_STRCHRNUL
696 HAVE_STPNCPY
697 HAVE_STPCPY
698 HAVE_RAWMEMCHR
699 HAVE_DECL_MEMRCHR
700 HAVE_MEMPCPY
701 HAVE_DECL_MEMMEM
702 GNULIB_STRVERSCMP
703 GNULIB_STRSIGNAL
704 GNULIB_STRERROR
705 GNULIB_MBSTOK_R
706 GNULIB_MBSSEP
707 GNULIB_MBSSPN
708 GNULIB_MBSPBRK
709 GNULIB_MBSCSPN
710 GNULIB_MBSCASESTR
711 GNULIB_MBSPCASECMP
712 GNULIB_MBSNCASECMP
713 GNULIB_MBSCASECMP
714 GNULIB_MBSSTR
715 GNULIB_MBSRCHR
716 GNULIB_MBSCHR
717 GNULIB_MBSNLEN
718 GNULIB_MBSLEN
719 GNULIB_STRTOK_R
720 GNULIB_STRCASESTR
721 GNULIB_STRSTR
722 GNULIB_STRSEP
723 GNULIB_STRPBRK
724 GNULIB_STRNLEN
725 GNULIB_STRNDUP
726 GNULIB_STRDUP
727 GNULIB_STRCHRNUL
728 GNULIB_STPNCPY
729 GNULIB_STPCPY
730 GNULIB_RAWMEMCHR
731 GNULIB_MEMRCHR
732 GNULIB_MEMPCPY
733 GNULIB_MEMMEM
734 GNULIB_MEMCHR
735 LOCALE_FR_UTF8
736 LOCALE_ZH_CN
737 LOCALE_JA
738 WCHAR_H
739 REPLACE_WCWIDTH
740 REPLACE_WCSNRTOMBS
741 REPLACE_WCSRTOMBS
742 REPLACE_WCRTOMB
743 REPLACE_MBSNRTOWCS
744 REPLACE_MBSRTOWCS
745 REPLACE_MBRLEN
746 REPLACE_MBRTOWC
747 REPLACE_MBSINIT
748 REPLACE_WCTOB
749 REPLACE_BTOWC
750 REPLACE_MBSTATE_T
751 HAVE_DECL_WCWIDTH
752 HAVE_DECL_WCTOB
753 HAVE_WCSNRTOMBS
754 HAVE_WCSRTOMBS
755 HAVE_WCRTOMB
756 HAVE_MBSNRTOWCS
757 HAVE_MBSRTOWCS
758 HAVE_MBRLEN
759 HAVE_MBRTOWC
760 HAVE_MBSINIT
761 HAVE_BTOWC
762 GNULIB_WCWIDTH
763 GNULIB_WCSNRTOMBS
764 GNULIB_WCSRTOMBS
765 GNULIB_WCRTOMB
766 GNULIB_MBSNRTOWCS
767 GNULIB_MBSRTOWCS
768 GNULIB_MBRLEN
769 GNULIB_MBRTOWC
770 GNULIB_MBSINIT
771 GNULIB_WCTOB
772 GNULIB_BTOWC
773 NEXT_AS_FIRST_DIRECTIVE_MATH_H
774 NEXT_MATH_H
775 REPLACE_UTIMENSAT
776 REPLACE_STAT
777 REPLACE_MKDIR
778 REPLACE_LSTAT
779 REPLACE_FUTIMENS
780 REPLACE_FSTATAT
781 REPLACE_FSTAT
782 HAVE_UTIMENSAT
783 HAVE_MKNODAT
784 HAVE_MKFIFOAT
785 HAVE_MKDIRAT
786 HAVE_LSTAT
787 HAVE_LCHMOD
788 HAVE_FUTIMENS
789 HAVE_FSTATAT
790 HAVE_FCHMODAT
791 GNULIB_UTIMENSAT
792 GNULIB_STAT
793 GNULIB_MKNODAT
794 GNULIB_MKFIFOAT
795 GNULIB_MKDIRAT
796 GNULIB_LSTAT
797 GNULIB_LCHMOD
798 GNULIB_FUTIMENS
799 GNULIB_FSTATAT
800 GNULIB_FCHMODAT
801 LOCALCHARSET_TESTS_ENVIRONMENT
802 GLIBC21
803 GNU_MAKE_FALSE
804 GNU_MAKE_TRUE
805 SYS_TIME_H
806 REPLACE_GETTIMEOFDAY
807 HAVE_STRUCT_TIMEVAL
808 HAVE_SYS_TIME_H
809 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
810 NEXT_SYS_TIME_H
811 LTLIBINTL
812 LIBINTL
813 GETOPT_H
814 HAVE_GETOPT_H
815 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
816 NEXT_GETOPT_H
817 REPLACE_TRUNCL
818 REPLACE_SIGNBIT_USING_GCC
819 REPLACE_SIGNBIT
820 REPLACE_ROUNDL
821 REPLACE_ROUNDF
822 REPLACE_ROUND
823 REPLACE_NAN
824 REPLACE_LDEXPL
825 REPLACE_ISNAN
826 REPLACE_ISINF
827 REPLACE_ISFINITE
828 REPLACE_HUGE_VAL
829 REPLACE_FREXPL
830 REPLACE_FREXP
831 REPLACE_FLOORL
832 REPLACE_FLOORF
833 REPLACE_CEILL
834 REPLACE_CEILF
835 HAVE_DECL_TRUNCF
836 HAVE_DECL_TRUNC
837 HAVE_DECL_TANL
838 HAVE_DECL_SQRTL
839 HAVE_DECL_SINL
840 HAVE_DECL_LOGL
841 HAVE_DECL_LDEXPL
842 HAVE_DECL_FREXPL
843 HAVE_DECL_EXPL
844 HAVE_DECL_COSL
845 HAVE_DECL_ATANL
846 HAVE_DECL_ASINL
847 HAVE_DECL_ACOSL
848 HAVE_ISNANL
849 HAVE_ISNAND
850 HAVE_ISNANF
851 GNULIB_TRUNCL
852 GNULIB_TRUNCF
853 GNULIB_TRUNC
854 GNULIB_SIGNBIT
855 GNULIB_ROUNDL
856 GNULIB_ROUNDF
857 GNULIB_ROUND
858 GNULIB_MATHL
859 GNULIB_LDEXPL
860 GNULIB_ISNANL
861 GNULIB_ISNAND
862 GNULIB_ISNANF
863 GNULIB_ISNAN
864 GNULIB_ISINF
865 GNULIB_ISFINITE
866 GNULIB_FREXPL
867 GNULIB_FREXP
868 GNULIB_FLOORL
869 GNULIB_FLOORF
870 GNULIB_CEILL
871 GNULIB_CEILF
872 APPLE_UNIVERSAL_BUILD
873 FLOAT_H
874 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
875 NEXT_FLOAT_H
876 FCNTL_H
877 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
878 NEXT_FCNTL_H
879 REPLACE_OPENAT
880 REPLACE_OPEN
881 HAVE_OPENAT
882 GNULIB_OPENAT
883 GNULIB_OPEN
884 REPLACE_VSPRINTF
885 REPLACE_VSNPRINTF
886 REPLACE_VPRINTF
887 REPLACE_VFPRINTF
888 REPLACE_VDPRINTF
889 REPLACE_VASPRINTF
890 REPLACE_STDIO_WRITE_FUNCS
891 REPLACE_SPRINTF
892 REPLACE_SNPRINTF
893 REPLACE_RENAMEAT
894 REPLACE_RENAME
895 REPLACE_REMOVE
896 REPLACE_PRINTF
897 REPLACE_POPEN
898 REPLACE_PERROR
899 REPLACE_OBSTACK_PRINTF
900 REPLACE_GETLINE
901 REPLACE_FTELLO
902 REPLACE_FTELL
903 REPLACE_FSEEKO
904 REPLACE_FSEEK
905 REPLACE_FREOPEN
906 REPLACE_FPURGE
907 REPLACE_FPRINTF
908 REPLACE_FOPEN
909 REPLACE_FFLUSH
910 REPLACE_FCLOSE
911 REPLACE_DPRINTF
912 HAVE_VDPRINTF
913 HAVE_VASPRINTF
914 HAVE_RENAMEAT
915 HAVE_FTELLO
916 HAVE_FSEEKO
917 HAVE_DPRINTF
918 HAVE_DECL_VSNPRINTF
919 HAVE_DECL_SNPRINTF
920 HAVE_DECL_OBSTACK_PRINTF
921 HAVE_DECL_GETLINE
922 HAVE_DECL_GETDELIM
923 HAVE_DECL_FPURGE
924 GNULIB_VSPRINTF_POSIX
925 GNULIB_VSNPRINTF
926 GNULIB_VPRINTF_POSIX
927 GNULIB_VPRINTF
928 GNULIB_VFPRINTF_POSIX
929 GNULIB_VFPRINTF
930 GNULIB_VDPRINTF
931 GNULIB_VASPRINTF
932 GNULIB_STDIO_H_SIGPIPE
933 GNULIB_SPRINTF_POSIX
934 GNULIB_SNPRINTF
935 GNULIB_RENAMEAT
936 GNULIB_RENAME
937 GNULIB_REMOVE
938 GNULIB_PUTS
939 GNULIB_PUTCHAR
940 GNULIB_PUTC
941 GNULIB_PRINTF_POSIX
942 GNULIB_PRINTF
943 GNULIB_POPEN
944 GNULIB_PERROR
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
947 GNULIB_GETLINE
948 GNULIB_GETDELIM
949 GNULIB_FWRITE
950 GNULIB_FTELLO
951 GNULIB_FTELL
952 GNULIB_FSEEKO
953 GNULIB_FSEEK
954 GNULIB_FREOPEN
955 GNULIB_FPUTS
956 GNULIB_FPUTC
957 GNULIB_FPURGE
958 GNULIB_FPRINTF_POSIX
959 GNULIB_FPRINTF
960 GNULIB_FOPEN
961 GNULIB_FFLUSH
962 GNULIB_FCLOSE
963 GNULIB_DPRINTF
964 EOVERFLOW_VALUE
965 EOVERFLOW_HIDDEN
966 ENOLINK_VALUE
967 ENOLINK_HIDDEN
968 EMULTIHOP_VALUE
969 EMULTIHOP_HIDDEN
970 ERRNO_H
971 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
972 NEXT_ERRNO_H
973 PRAGMA_SYSTEM_HEADER
974 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
975 INCLUDE_NEXT
976 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
977 UNISTD_H_HAVE_WINSOCK2_H
978 REPLACE_WRITE
979 REPLACE_UNLINKAT
980 REPLACE_UNLINK
981 REPLACE_SYMLINK
982 REPLACE_RMDIR
983 REPLACE_READLINK
984 REPLACE_LSEEK
985 REPLACE_LINKAT
986 REPLACE_LINK
987 REPLACE_LCHOWN
988 REPLACE_GETPAGESIZE
989 REPLACE_GETCWD
990 REPLACE_FCHOWNAT
991 REPLACE_FCHDIR
992 REPLACE_DUP2
993 REPLACE_DUP
994 REPLACE_CLOSE
995 REPLACE_CHOWN
996 HAVE_UNLINKAT
997 HAVE_SYS_PARAM_H
998 HAVE_OS_H
999 HAVE_DECL_GETLOGIN_R
1000 HAVE_DECL_ENVIRON
1001 HAVE_SYMLINKAT
1002 HAVE_SYMLINK
1003 HAVE_SLEEP
1004 HAVE_READLINKAT
1005 HAVE_READLINK
1006 HAVE_PIPE2
1007 HAVE_LINKAT
1008 HAVE_LINK
1009 HAVE_GETUSERSHELL
1010 HAVE_GETPAGESIZE
1011 HAVE_GETHOSTNAME
1012 HAVE_GETDTABLESIZE
1013 HAVE_GETDOMAINNAME
1014 HAVE_FTRUNCATE
1015 HAVE_FSYNC
1016 HAVE_FCHOWNAT
1017 HAVE_FACCESSAT
1018 HAVE_EUIDACCESS
1019 HAVE_DUP3
1020 HAVE_DUP2
1021 GNULIB_WRITE
1022 GNULIB_UNLINKAT
1023 GNULIB_UNLINK
1024 GNULIB_UNISTD_H_SIGPIPE
1025 GNULIB_UNISTD_H_GETOPT
1026 GNULIB_SYMLINKAT
1027 GNULIB_SYMLINK
1028 GNULIB_SLEEP
1029 GNULIB_RMDIR
1030 GNULIB_READLINKAT
1031 GNULIB_READLINK
1032 GNULIB_PIPE2
1033 GNULIB_LSEEK
1034 GNULIB_LINKAT
1035 GNULIB_LINK
1036 GNULIB_LCHOWN
1037 GNULIB_GETUSERSHELL
1038 GNULIB_GETPAGESIZE
1039 GNULIB_GETLOGIN_R
1040 GNULIB_GETHOSTNAME
1041 GNULIB_GETDTABLESIZE
1042 GNULIB_GETDOMAINNAME
1043 GNULIB_GETCWD
1044 GNULIB_FTRUNCATE
1045 GNULIB_FSYNC
1046 GNULIB_FCHOWNAT
1047 GNULIB_FCHDIR
1048 GNULIB_FACCESSAT
1049 GNULIB_EUIDACCESS
1050 GNULIB_ENVIRON
1051 GNULIB_DUP3
1052 GNULIB_DUP2
1053 GNULIB_CLOSE
1054 GNULIB_CHOWN
1055 LIB_CLOCK_GETTIME
1056 VOID_UNSETENV
1057 REPLACE_STRTOD
1058 REPLACE_REALPATH
1059 REPLACE_PUTENV
1060 REPLACE_MKSTEMP
1061 REPLACE_CANONICALIZE_FILE_NAME
1062 HAVE_UNSETENV
1063 HAVE_SYS_LOADAVG_H
1064 HAVE_STRUCT_RANDOM_DATA
1065 HAVE_STRTOULL
1066 HAVE_STRTOLL
1067 HAVE_STRTOD
1068 HAVE_SETENV
1069 HAVE_RPMATCH
1070 HAVE_REALPATH
1071 HAVE_REALLOC_POSIX
1072 HAVE_RANDOM_R
1073 HAVE_MKOSTEMP
1074 HAVE_MKDTEMP
1075 HAVE_MALLOC_POSIX
1076 HAVE_GETSUBOPT
1077 HAVE_DECL_GETLOADAVG
1078 HAVE_CANONICALIZE_FILE_NAME
1079 HAVE_ATOLL
1080 GNULIB_UNSETENV
1081 GNULIB_STRTOULL
1082 GNULIB_STRTOLL
1083 GNULIB_STRTOD
1084 GNULIB_SETENV
1085 GNULIB_RPMATCH
1086 GNULIB_REALPATH
1087 GNULIB_REALLOC_POSIX
1088 GNULIB_RANDOM_R
1089 GNULIB_PUTENV
1090 GNULIB_MKSTEMP
1091 GNULIB_MKOSTEMP
1092 GNULIB_MKDTEMP
1093 GNULIB_MALLOC_POSIX
1094 GNULIB_GETSUBOPT
1095 GNULIB_GETLOADAVG
1096 GNULIB_CANONICALIZE_FILE_NAME
1097 GNULIB_CALLOC_POSIX
1098 GNULIB_ATOLL
1099 HAVE_CALLOC_POSIX
1100 ALLOCA_H
1101 ALLOCA
1102 GL_COND_LIBTOOL_FALSE
1103 GL_COND_LIBTOOL_TRUE
1104 EGREP
1105 GREP
1106 host_os
1107 host_vendor
1108 host_cpu
1109 host
1110 build_os
1111 build_vendor
1112 build_cpu
1113 build
1114 RANLIB
1115 LN_S
1116 NM
1117 CPP
1118 am__fastdepCC_FALSE
1119 am__fastdepCC_TRUE
1120 CCDEPMODE
1121 AMDEPBACKSLASH
1122 AMDEP_FALSE
1123 AMDEP_TRUE
1124 am__quote
1125 am__include
1126 DEPDIR
1127 OBJEXT
1128 EXEEXT
1129 ac_ct_CC
1130 CPPFLAGS
1131 LDFLAGS
1132 CFLAGS
1133 CC
1134 AM_BACKSLASH
1135 AM_DEFAULT_VERBOSITY
1136 am__untar
1137 am__tar
1138 AMTAR
1139 am__leading_dot
1140 SET_MAKE
1141 AWK
1142 mkdir_p
1143 MKDIR_P
1144 INSTALL_STRIP_PROGRAM
1145 STRIP
1146 install_sh
1147 MAKEINFO
1148 AUTOHEADER
1149 AUTOMAKE
1150 AUTOCONF
1151 ACLOCAL
1152 VERSION
1153 PACKAGE
1154 CYGPATH_W
1155 am__isrc
1156 INSTALL_DATA
1157 INSTALL_SCRIPT
1158 INSTALL_PROGRAM
1159 target_alias
1160 host_alias
1161 build_alias
1162 LIBS
1163 ECHO_T
1164 ECHO_N
1165 ECHO_C
1166 DEFS
1167 mandir
1168 localedir
1169 libdir
1170 psdir
1171 pdfdir
1172 dvidir
1173 htmldir
1174 infodir
1175 docdir
1176 oldincludedir
1177 includedir
1178 localstatedir
1179 sharedstatedir
1180 sysconfdir
1181 datadir
1182 datarootdir
1183 libexecdir
1184 sbindir
1185 bindir
1186 program_transform_name
1187 prefix
1188 exec_prefix
1189 PACKAGE_URL
1190 PACKAGE_BUGREPORT
1191 PACKAGE_STRING
1192 PACKAGE_VERSION
1193 PACKAGE_TARNAME
1194 PACKAGE_NAME
1195 PATH_SEPARATOR
1196 SHELL'
1197 ac_subst_files=''
1198 ac_user_opts='
1199 enable_option_checking
1200 enable_silent_rules
1201 enable_dependency_tracking
1202 enable_largefile
1203 '
1204       ac_precious_vars='build_alias
1205 host_alias
1206 target_alias
1207 CC
1208 CFLAGS
1209 LDFLAGS
1210 LIBS
1211 CPPFLAGS
1212 CPP'
1213
1214
1215 # Initialize some variables set by options.
1216 ac_init_help=
1217 ac_init_version=false
1218 ac_unrecognized_opts=
1219 ac_unrecognized_sep=
1220 # The variables have the same names as the options, with
1221 # dashes changed to underlines.
1222 cache_file=/dev/null
1223 exec_prefix=NONE
1224 no_create=
1225 no_recursion=
1226 prefix=NONE
1227 program_prefix=NONE
1228 program_suffix=NONE
1229 program_transform_name=s,x,x,
1230 silent=
1231 site=
1232 srcdir=
1233 verbose=
1234 x_includes=NONE
1235 x_libraries=NONE
1236
1237 # Installation directory options.
1238 # These are left unexpanded so users can "make install exec_prefix=/foo"
1239 # and all the variables that are supposed to be based on exec_prefix
1240 # by default will actually change.
1241 # Use braces instead of parens because sh, perl, etc. also accept them.
1242 # (The list follows the same order as the GNU Coding Standards.)
1243 bindir='${exec_prefix}/bin'
1244 sbindir='${exec_prefix}/sbin'
1245 libexecdir='${exec_prefix}/libexec'
1246 datarootdir='${prefix}/share'
1247 datadir='${datarootdir}'
1248 sysconfdir='${prefix}/etc'
1249 sharedstatedir='${prefix}/com'
1250 localstatedir='${prefix}/var'
1251 includedir='${prefix}/include'
1252 oldincludedir='/usr/include'
1253 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1254 infodir='${datarootdir}/info'
1255 htmldir='${docdir}'
1256 dvidir='${docdir}'
1257 pdfdir='${docdir}'
1258 psdir='${docdir}'
1259 libdir='${exec_prefix}/lib'
1260 localedir='${datarootdir}/locale'
1261 mandir='${datarootdir}/man'
1262
1263 ac_prev=
1264 ac_dashdash=
1265 for ac_option
1266 do
1267   # If the previous option needs an argument, assign it.
1268   if test -n "$ac_prev"; then
1269     eval $ac_prev=\$ac_option
1270     ac_prev=
1271     continue
1272   fi
1273
1274   case $ac_option in
1275   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1276   *)    ac_optarg=yes ;;
1277   esac
1278
1279   # Accept the important Cygnus configure options, so we can diagnose typos.
1280
1281   case $ac_dashdash$ac_option in
1282   --)
1283     ac_dashdash=yes ;;
1284
1285   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1286     ac_prev=bindir ;;
1287   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288     bindir=$ac_optarg ;;
1289
1290   -build | --build | --buil | --bui | --bu)
1291     ac_prev=build_alias ;;
1292   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293     build_alias=$ac_optarg ;;
1294
1295   -cache-file | --cache-file | --cache-fil | --cache-fi \
1296   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297     ac_prev=cache_file ;;
1298   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300     cache_file=$ac_optarg ;;
1301
1302   --config-cache | -C)
1303     cache_file=config.cache ;;
1304
1305   -datadir | --datadir | --datadi | --datad)
1306     ac_prev=datadir ;;
1307   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308     datadir=$ac_optarg ;;
1309
1310   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311   | --dataroo | --dataro | --datar)
1312     ac_prev=datarootdir ;;
1313   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315     datarootdir=$ac_optarg ;;
1316
1317   -disable-* | --disable-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error "invalid feature name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "enable_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval enable_$ac_useropt=no ;;
1332
1333   -docdir | --docdir | --docdi | --doc | --do)
1334     ac_prev=docdir ;;
1335   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336     docdir=$ac_optarg ;;
1337
1338   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1339     ac_prev=dvidir ;;
1340   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341     dvidir=$ac_optarg ;;
1342
1343   -enable-* | --enable-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error "invalid feature name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "enable_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval enable_$ac_useropt=\$ac_optarg ;;
1358
1359   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361   | --exec | --exe | --ex)
1362     ac_prev=exec_prefix ;;
1363   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365   | --exec=* | --exe=* | --ex=*)
1366     exec_prefix=$ac_optarg ;;
1367
1368   -gas | --gas | --ga | --g)
1369     # Obsolete; use --with-gas.
1370     with_gas=yes ;;
1371
1372   -help | --help | --hel | --he | -h)
1373     ac_init_help=long ;;
1374   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375     ac_init_help=recursive ;;
1376   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377     ac_init_help=short ;;
1378
1379   -host | --host | --hos | --ho)
1380     ac_prev=host_alias ;;
1381   -host=* | --host=* | --hos=* | --ho=*)
1382     host_alias=$ac_optarg ;;
1383
1384   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1385     ac_prev=htmldir ;;
1386   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1387   | --ht=*)
1388     htmldir=$ac_optarg ;;
1389
1390   -includedir | --includedir | --includedi | --included | --include \
1391   | --includ | --inclu | --incl | --inc)
1392     ac_prev=includedir ;;
1393   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394   | --includ=* | --inclu=* | --incl=* | --inc=*)
1395     includedir=$ac_optarg ;;
1396
1397   -infodir | --infodir | --infodi | --infod | --info | --inf)
1398     ac_prev=infodir ;;
1399   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400     infodir=$ac_optarg ;;
1401
1402   -libdir | --libdir | --libdi | --libd)
1403     ac_prev=libdir ;;
1404   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405     libdir=$ac_optarg ;;
1406
1407   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408   | --libexe | --libex | --libe)
1409     ac_prev=libexecdir ;;
1410   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411   | --libexe=* | --libex=* | --libe=*)
1412     libexecdir=$ac_optarg ;;
1413
1414   -localedir | --localedir | --localedi | --localed | --locale)
1415     ac_prev=localedir ;;
1416   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417     localedir=$ac_optarg ;;
1418
1419   -localstatedir | --localstatedir | --localstatedi | --localstated \
1420   | --localstate | --localstat | --localsta | --localst | --locals)
1421     ac_prev=localstatedir ;;
1422   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424     localstatedir=$ac_optarg ;;
1425
1426   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1427     ac_prev=mandir ;;
1428   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429     mandir=$ac_optarg ;;
1430
1431   -nfp | --nfp | --nf)
1432     # Obsolete; use --without-fp.
1433     with_fp=no ;;
1434
1435   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436   | --no-cr | --no-c | -n)
1437     no_create=yes ;;
1438
1439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1441     no_recursion=yes ;;
1442
1443   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445   | --oldin | --oldi | --old | --ol | --o)
1446     ac_prev=oldincludedir ;;
1447   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450     oldincludedir=$ac_optarg ;;
1451
1452   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1453     ac_prev=prefix ;;
1454   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455     prefix=$ac_optarg ;;
1456
1457   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458   | --program-pre | --program-pr | --program-p)
1459     ac_prev=program_prefix ;;
1460   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462     program_prefix=$ac_optarg ;;
1463
1464   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465   | --program-suf | --program-su | --program-s)
1466     ac_prev=program_suffix ;;
1467   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469     program_suffix=$ac_optarg ;;
1470
1471   -program-transform-name | --program-transform-name \
1472   | --program-transform-nam | --program-transform-na \
1473   | --program-transform-n | --program-transform- \
1474   | --program-transform | --program-transfor \
1475   | --program-transfo | --program-transf \
1476   | --program-trans | --program-tran \
1477   | --progr-tra | --program-tr | --program-t)
1478     ac_prev=program_transform_name ;;
1479   -program-transform-name=* | --program-transform-name=* \
1480   | --program-transform-nam=* | --program-transform-na=* \
1481   | --program-transform-n=* | --program-transform-=* \
1482   | --program-transform=* | --program-transfor=* \
1483   | --program-transfo=* | --program-transf=* \
1484   | --program-trans=* | --program-tran=* \
1485   | --progr-tra=* | --program-tr=* | --program-t=*)
1486     program_transform_name=$ac_optarg ;;
1487
1488   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1489     ac_prev=pdfdir ;;
1490   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491     pdfdir=$ac_optarg ;;
1492
1493   -psdir | --psdir | --psdi | --psd | --ps)
1494     ac_prev=psdir ;;
1495   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1496     psdir=$ac_optarg ;;
1497
1498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499   | -silent | --silent | --silen | --sile | --sil)
1500     silent=yes ;;
1501
1502   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1503     ac_prev=sbindir ;;
1504   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1505   | --sbi=* | --sb=*)
1506     sbindir=$ac_optarg ;;
1507
1508   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1509   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1510   | --sharedst | --shareds | --shared | --share | --shar \
1511   | --sha | --sh)
1512     ac_prev=sharedstatedir ;;
1513   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1514   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1515   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1516   | --sha=* | --sh=*)
1517     sharedstatedir=$ac_optarg ;;
1518
1519   -site | --site | --sit)
1520     ac_prev=site ;;
1521   -site=* | --site=* | --sit=*)
1522     site=$ac_optarg ;;
1523
1524   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1525     ac_prev=srcdir ;;
1526   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1527     srcdir=$ac_optarg ;;
1528
1529   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1530   | --syscon | --sysco | --sysc | --sys | --sy)
1531     ac_prev=sysconfdir ;;
1532   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1533   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1534     sysconfdir=$ac_optarg ;;
1535
1536   -target | --target | --targe | --targ | --tar | --ta | --t)
1537     ac_prev=target_alias ;;
1538   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1539     target_alias=$ac_optarg ;;
1540
1541   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1542     verbose=yes ;;
1543
1544   -version | --version | --versio | --versi | --vers | -V)
1545     ac_init_version=: ;;
1546
1547   -with-* | --with-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=\$ac_optarg ;;
1562
1563   -without-* | --without-*)
1564     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1565     # Reject names that are not valid shell variable names.
1566     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567       as_fn_error "invalid package name: $ac_useropt"
1568     ac_useropt_orig=$ac_useropt
1569     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1570     case $ac_user_opts in
1571       *"
1572 "with_$ac_useropt"
1573 "*) ;;
1574       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1575          ac_unrecognized_sep=', ';;
1576     esac
1577     eval with_$ac_useropt=no ;;
1578
1579   --x)
1580     # Obsolete; use --with-x.
1581     with_x=yes ;;
1582
1583   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1584   | --x-incl | --x-inc | --x-in | --x-i)
1585     ac_prev=x_includes ;;
1586   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1587   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1588     x_includes=$ac_optarg ;;
1589
1590   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1591   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1592     ac_prev=x_libraries ;;
1593   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1594   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1595     x_libraries=$ac_optarg ;;
1596
1597   -*) as_fn_error "unrecognized option: \`$ac_option'
1598 Try \`$0 --help' for more information."
1599     ;;
1600
1601   *=*)
1602     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1603     # Reject names that are not valid shell variable names.
1604     case $ac_envvar in #(
1605       '' | [0-9]* | *[!_$as_cr_alnum]* )
1606       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1607     esac
1608     eval $ac_envvar=\$ac_optarg
1609     export $ac_envvar ;;
1610
1611   *)
1612     # FIXME: should be removed in autoconf 3.0.
1613     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1614     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1615       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1616     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1617     ;;
1618
1619   esac
1620 done
1621
1622 if test -n "$ac_prev"; then
1623   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1624   as_fn_error "missing argument to $ac_option"
1625 fi
1626
1627 if test -n "$ac_unrecognized_opts"; then
1628   case $enable_option_checking in
1629     no) ;;
1630     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1631     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1632   esac
1633 fi
1634
1635 # Check all directory arguments for consistency.
1636 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1637                 datadir sysconfdir sharedstatedir localstatedir includedir \
1638                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1639                 libdir localedir mandir
1640 do
1641   eval ac_val=\$$ac_var
1642   # Remove trailing slashes.
1643   case $ac_val in
1644     */ )
1645       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1646       eval $ac_var=\$ac_val;;
1647   esac
1648   # Be sure to have absolute directory names.
1649   case $ac_val in
1650     [\\/$]* | ?:[\\/]* )  continue;;
1651     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1652   esac
1653   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1654 done
1655
1656 # There might be people who depend on the old broken behavior: `$host'
1657 # used to hold the argument of --host etc.
1658 # FIXME: To remove some day.
1659 build=$build_alias
1660 host=$host_alias
1661 target=$target_alias
1662
1663 # FIXME: To remove some day.
1664 if test "x$host_alias" != x; then
1665   if test "x$build_alias" = x; then
1666     cross_compiling=maybe
1667     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1668     If a cross compiler is detected then cross compile mode will be used." >&2
1669   elif test "x$build_alias" != "x$host_alias"; then
1670     cross_compiling=yes
1671   fi
1672 fi
1673
1674 ac_tool_prefix=
1675 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1676
1677 test "$silent" = yes && exec 6>/dev/null
1678
1679
1680 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1681 ac_ls_di=`ls -di .` &&
1682 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1683   as_fn_error "working directory cannot be determined"
1684 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1685   as_fn_error "pwd does not report name of working directory"
1686
1687
1688 # Find the source files, if location was not specified.
1689 if test -z "$srcdir"; then
1690   ac_srcdir_defaulted=yes
1691   # Try the directory containing this script, then the parent directory.
1692   ac_confdir=`$as_dirname -- "$as_myself" ||
1693 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1694          X"$as_myself" : 'X\(//\)[^/]' \| \
1695          X"$as_myself" : 'X\(//\)$' \| \
1696          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1697 $as_echo X"$as_myself" |
1698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1699             s//\1/
1700             q
1701           }
1702           /^X\(\/\/\)[^/].*/{
1703             s//\1/
1704             q
1705           }
1706           /^X\(\/\/\)$/{
1707             s//\1/
1708             q
1709           }
1710           /^X\(\/\).*/{
1711             s//\1/
1712             q
1713           }
1714           s/.*/./; q'`
1715   srcdir=$ac_confdir
1716   if test ! -r "$srcdir/$ac_unique_file"; then
1717     srcdir=..
1718   fi
1719 else
1720   ac_srcdir_defaulted=no
1721 fi
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1724   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1725 fi
1726 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1727 ac_abs_confdir=`(
1728         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1729         pwd)`
1730 # When building in place, set srcdir=.
1731 if test "$ac_abs_confdir" = "$ac_pwd"; then
1732   srcdir=.
1733 fi
1734 # Remove unnecessary trailing slashes from srcdir.
1735 # Double slashes in file names in object file debugging info
1736 # mess up M-x gdb in Emacs.
1737 case $srcdir in
1738 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1739 esac
1740 for ac_var in $ac_precious_vars; do
1741   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1742   eval ac_env_${ac_var}_value=\$${ac_var}
1743   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1744   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1745 done
1746
1747 #
1748 # Report the --help message.
1749 #
1750 if test "$ac_init_help" = "long"; then
1751   # Omit some internal or obsolete options to make the list less imposing.
1752   # This message is too long to be a string in the A/UX 3.1 sh.
1753   cat <<_ACEOF
1754 \`configure' configures gzip 1.3.14 to adapt to many kinds of systems.
1755
1756 Usage: $0 [OPTION]... [VAR=VALUE]...
1757
1758 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1759 VAR=VALUE.  See below for descriptions of some of the useful variables.
1760
1761 Defaults for the options are specified in brackets.
1762
1763 Configuration:
1764   -h, --help              display this help and exit
1765       --help=short        display options specific to this package
1766       --help=recursive    display the short help of all the included packages
1767   -V, --version           display version information and exit
1768   -q, --quiet, --silent   do not print \`checking...' messages
1769       --cache-file=FILE   cache test results in FILE [disabled]
1770   -C, --config-cache      alias for \`--cache-file=config.cache'
1771   -n, --no-create         do not create output files
1772       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1773
1774 Installation directories:
1775   --prefix=PREFIX         install architecture-independent files in PREFIX
1776                           [$ac_default_prefix]
1777   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1778                           [PREFIX]
1779
1780 By default, \`make install' will install all the files in
1781 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1782 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1783 for instance \`--prefix=\$HOME'.
1784
1785 For better control, use the options below.
1786
1787 Fine tuning of the installation directories:
1788   --bindir=DIR            user executables [EPREFIX/bin]
1789   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1790   --libexecdir=DIR        program executables [EPREFIX/libexec]
1791   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1792   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1793   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1794   --libdir=DIR            object code libraries [EPREFIX/lib]
1795   --includedir=DIR        C header files [PREFIX/include]
1796   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1797   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1798   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1799   --infodir=DIR           info documentation [DATAROOTDIR/info]
1800   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1801   --mandir=DIR            man documentation [DATAROOTDIR/man]
1802   --docdir=DIR            documentation root [DATAROOTDIR/doc/gzip]
1803   --htmldir=DIR           html documentation [DOCDIR]
1804   --dvidir=DIR            dvi documentation [DOCDIR]
1805   --pdfdir=DIR            pdf documentation [DOCDIR]
1806   --psdir=DIR             ps documentation [DOCDIR]
1807 _ACEOF
1808
1809   cat <<\_ACEOF
1810
1811 Program names:
1812   --program-prefix=PREFIX            prepend PREFIX to installed program names
1813   --program-suffix=SUFFIX            append SUFFIX to installed program names
1814   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1815
1816 System types:
1817   --build=BUILD     configure for building on BUILD [guessed]
1818   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1819 _ACEOF
1820 fi
1821
1822 if test -n "$ac_init_help"; then
1823   case $ac_init_help in
1824      short | recursive ) echo "Configuration of gzip 1.3.14:";;
1825    esac
1826   cat <<\_ACEOF
1827
1828 Optional Features:
1829   --disable-option-checking  ignore unrecognized --enable/--with options
1830   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1831   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1832   --enable-silent-rules          less verbose build output (undo: `make V=1')
1833   --disable-silent-rules         verbose build output (undo: `make V=0')
1834   --disable-dependency-tracking  speeds up one-time build
1835   --enable-dependency-tracking   do not reject slow dependency extractors
1836   --disable-largefile     omit support for large files
1837
1838 Some influential environment variables:
1839   CC          C compiler command
1840   CFLAGS      C compiler flags
1841   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1842               nonstandard directory <lib dir>
1843   LIBS        libraries to pass to the linker, e.g. -l<library>
1844   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1845               you have headers in a nonstandard directory <include dir>
1846   CPP         C preprocessor
1847
1848 Use these variables to override the choices made by `configure' or to help
1849 it to find libraries and programs with nonstandard names/locations.
1850
1851 Report bugs to <bug-gzip@gnu.org>.
1852 _ACEOF
1853 ac_status=$?
1854 fi
1855
1856 if test "$ac_init_help" = "recursive"; then
1857   # If there are subdirs, report their specific --help.
1858   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1859     test -d "$ac_dir" ||
1860       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1861       continue
1862     ac_builddir=.
1863
1864 case "$ac_dir" in
1865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1866 *)
1867   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1868   # A ".." for each directory in $ac_dir_suffix.
1869   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1870   case $ac_top_builddir_sub in
1871   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1872   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1873   esac ;;
1874 esac
1875 ac_abs_top_builddir=$ac_pwd
1876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1877 # for backward compatibility:
1878 ac_top_builddir=$ac_top_build_prefix
1879
1880 case $srcdir in
1881   .)  # We are building in place.
1882     ac_srcdir=.
1883     ac_top_srcdir=$ac_top_builddir_sub
1884     ac_abs_top_srcdir=$ac_pwd ;;
1885   [\\/]* | ?:[\\/]* )  # Absolute name.
1886     ac_srcdir=$srcdir$ac_dir_suffix;
1887     ac_top_srcdir=$srcdir
1888     ac_abs_top_srcdir=$srcdir ;;
1889   *) # Relative name.
1890     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1891     ac_top_srcdir=$ac_top_build_prefix$srcdir
1892     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1893 esac
1894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1895
1896     cd "$ac_dir" || { ac_status=$?; continue; }
1897     # Check for guested configure.
1898     if test -f "$ac_srcdir/configure.gnu"; then
1899       echo &&
1900       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1901     elif test -f "$ac_srcdir/configure"; then
1902       echo &&
1903       $SHELL "$ac_srcdir/configure" --help=recursive
1904     else
1905       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1906     fi || ac_status=$?
1907     cd "$ac_pwd" || { ac_status=$?; break; }
1908   done
1909 fi
1910
1911 test -n "$ac_init_help" && exit $ac_status
1912 if $ac_init_version; then
1913   cat <<\_ACEOF
1914 gzip configure 1.3.14
1915 generated by GNU Autoconf 2.64.69-81c80
1916
1917 Copyright (C) 2009 Free Software Foundation, Inc.
1918 This configure script is free software; the Free Software Foundation
1919 gives unlimited permission to copy, distribute and modify it.
1920 _ACEOF
1921   exit
1922 fi
1923
1924 ## ------------------------ ##
1925 ## Autoconf initialization. ##
1926 ## ------------------------ ##
1927
1928 # ac_fn_c_try_compile LINENO
1929 # --------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_compile ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   rm -f conftest.$ac_objext
1935   if { { ac_try="$ac_compile"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_compile") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && {
1951          test -z "$ac_c_werror_flag" ||
1952          test ! -s conftest.err
1953        } && test -s conftest.$ac_objext; then :
1954   ac_retval=0
1955 else
1956   $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959         ac_retval=1
1960 fi
1961   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_compile
1965
1966 # ac_fn_c_try_cpp LINENO
1967 # ----------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_c_try_cpp ()
1970 {
1971   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972   if { { ac_try="$ac_cpp conftest.$ac_ext"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980   ac_status=$?
1981   if test -s conftest.err; then
1982     grep -v '^ *+' conftest.err >conftest.er1
1983     cat conftest.er1 >&5
1984     mv -f conftest.er1 conftest.err
1985   fi
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; } >/dev/null && {
1988          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1989          test ! -s conftest.err
1990        }; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996     ac_retval=1
1997 fi
1998   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999   as_fn_set_status $ac_retval
2000
2001 } # ac_fn_c_try_cpp
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015   $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021   # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   ac_header_compiler=yes
2031 else
2032   ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046   ac_header_preproc=yes
2047 else
2048   ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So?  What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056   yes:no: )
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061     ;;
2062   no:yes:* )
2063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( cat <<\_ASBOX
2074 ## ------------------------------- ##
2075 ## Report this to bug-gzip@gnu.org ##
2076 ## ------------------------------- ##
2077 _ASBOX
2078      ) | sed "s/^/$as_me: WARNING:     /" >&2
2079     ;;
2080 esac
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084   $as_echo_n "(cached) " >&6
2085 else
2086   eval "$3=\$ac_header_compiler"
2087 fi
2088 eval ac_res=\$$3
2089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 fi
2092   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094 } # ac_fn_c_check_header_mongrel
2095
2096 # ac_fn_c_try_run LINENO
2097 # ----------------------
2098 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2099 # that executables *can* be run.
2100 ac_fn_c_try_run ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   if { { ac_try="$ac_link"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_link") 2>&5
2111   ac_status=$?
2112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2114   { { case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120   (eval "$ac_try") 2>&5
2121   ac_status=$?
2122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123   test $ac_status = 0; }; }; then :
2124   ac_retval=0
2125 else
2126   $as_echo "$as_me: program exited with status $ac_status" >&5
2127        $as_echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130        ac_retval=$ac_status
2131 fi
2132   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134   as_fn_set_status $ac_retval
2135
2136 } # ac_fn_c_try_run
2137
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166
2167 } # ac_fn_c_check_header_compile
2168
2169 # ac_fn_c_try_link LINENO
2170 # -----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_c_try_link ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   rm -f conftest.$ac_objext conftest$ac_exeext
2176   if { { ac_try="$ac_link"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183   (eval "$ac_link") 2>conftest.err
2184   ac_status=$?
2185   if test -s conftest.err; then
2186     grep -v '^ *+' conftest.err >conftest.er1
2187     cat conftest.er1 >&5
2188     mv -f conftest.er1 conftest.err
2189   fi
2190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191   test $ac_status = 0; } && {
2192          test -z "$ac_c_werror_flag" ||
2193          test ! -s conftest.err
2194        } && test -s conftest$ac_exeext && {
2195          test "$cross_compiling" = yes ||
2196          $as_test_x conftest$ac_exeext
2197        }; then :
2198   ac_retval=0
2199 else
2200   $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203         ac_retval=1
2204 fi
2205   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2206   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2207   # interfere with the next link command; also delete a directory that is
2208   # left behind by Apple's compiler.  We do this before executing the actions.
2209   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2210   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211   as_fn_set_status $ac_retval
2212
2213 } # ac_fn_c_try_link
2214
2215 # ac_fn_c_check_func LINENO FUNC VAR
2216 # ----------------------------------
2217 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2218 ac_fn_c_check_func ()
2219 {
2220   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224   $as_echo_n "(cached) " >&6
2225 else
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2230 #define $2 innocuous_$2
2231
2232 /* System header to define __stub macros and hopefully few prototypes,
2233     which can conflict with char $2 (); below.
2234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2235     <limits.h> exists even on freestanding compilers.  */
2236
2237 #ifdef __STDC__
2238 # include <limits.h>
2239 #else
2240 # include <assert.h>
2241 #endif
2242
2243 #undef $2
2244
2245 /* Override any GCC internal prototype to avoid an error.
2246    Use char because int might match the return type of a GCC
2247    builtin and then its argument prototype would still apply.  */
2248 #ifdef __cplusplus
2249 extern "C"
2250 #endif
2251 char $2 ();
2252 /* The GNU C library defines this for functions which it implements
2253     to always fail with ENOSYS.  Some functions are actually named
2254     something starting with __ and the normal name is an alias.  */
2255 #if defined __stub_$2 || defined __stub___$2
2256 choke me
2257 #endif
2258
2259 int
2260 main ()
2261 {
2262 return $2 ();
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_link "$LINENO"; then :
2268   eval "$3=yes"
2269 else
2270   eval "$3=no"
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext \
2273     conftest$ac_exeext conftest.$ac_ext
2274 fi
2275 eval ac_res=\$$3
2276                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279
2280 } # ac_fn_c_check_func
2281
2282 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2283 # -------------------------------------------
2284 # Tests whether TYPE exists after having included INCLUDES, setting cache
2285 # variable VAR accordingly.
2286 ac_fn_c_check_type ()
2287 {
2288   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290 $as_echo_n "checking for $2... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292   $as_echo_n "(cached) " >&6
2293 else
2294   eval "$3=no"
2295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 int
2299 main ()
2300 {
2301 if (sizeof ($2))
2302          return 0;
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 int
2312 main ()
2313 {
2314 if (sizeof (($2)))
2315             return 0;
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321
2322 else
2323   eval "$3=yes"
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 eval ac_res=\$$3
2330                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333
2334 } # ac_fn_c_check_type
2335
2336 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2337 # --------------------------------------------
2338 # Tries to find the compile-time value of EXPR in a program that includes
2339 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2340 # computed
2341 ac_fn_c_compute_int ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   if test "$cross_compiling" = yes; then
2345     # Depending upon the size, compute the lo and hi bounds.
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 $4
2349 int
2350 main ()
2351 {
2352 static int test_array [1 - 2 * !(($2) >= 0)];
2353 test_array [0] = 0
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   ac_lo=0 ac_mid=0
2361   while :; do
2362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 $4
2365 int
2366 main ()
2367 {
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2369 test_array [0] = 0
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 if ac_fn_c_try_compile "$LINENO"; then :
2376   ac_hi=$ac_mid; break
2377 else
2378   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2379                         if test $ac_lo -le $ac_mid; then
2380                           ac_lo= ac_hi=
2381                           break
2382                         fi
2383                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386   done
2387 else
2388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h.  */
2390 $4
2391 int
2392 main ()
2393 {
2394 static int test_array [1 - 2 * !(($2) < 0)];
2395 test_array [0] = 0
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402   ac_hi=-1 ac_mid=-1
2403   while :; do
2404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2411 test_array [0] = 0
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418   ac_lo=$ac_mid; break
2419 else
2420   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2421                         if test $ac_mid -le $ac_hi; then
2422                           ac_lo= ac_hi=
2423                           break
2424                         fi
2425                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428   done
2429 else
2430   ac_lo= ac_hi=
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 # Binary search between lo and hi bounds.
2436 while test "x$ac_lo" != "x$ac_hi"; do
2437   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 $4
2441 int
2442 main ()
2443 {
2444 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2445 test_array [0] = 0
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452   ac_hi=$ac_mid
2453 else
2454   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 done
2458 case $ac_lo in #((
2459 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2460 '') ac_retval=1 ;;
2461 esac
2462   else
2463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465 $4
2466 static long int longval () { return $2; }
2467 static unsigned long int ulongval () { return $2; }
2468 #include <stdio.h>
2469 #include <stdlib.h>
2470 int
2471 main ()
2472 {
2473
2474   FILE *f = fopen ("conftest.val", "w");
2475   if (! f)
2476     return 1;
2477   if (($2) < 0)
2478     {
2479       long int i = longval ();
2480       if (i != ($2))
2481         return 1;
2482       fprintf (f, "%ld", i);
2483     }
2484   else
2485     {
2486       unsigned long int i = ulongval ();
2487       if (i != ($2))
2488         return 1;
2489       fprintf (f, "%lu", i);
2490     }
2491   /* Do not output a trailing newline, as this causes \r\n confusion
2492      on some platforms.  */
2493   return ferror (f) || fclose (f) != 0;
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_run "$LINENO"; then :
2500   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2501 else
2502   ac_retval=1
2503 fi
2504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2505   conftest.$ac_objext conftest.beam conftest.$ac_ext
2506 rm -f conftest.val
2507
2508   fi
2509   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510   as_fn_set_status $ac_retval
2511
2512 } # ac_fn_c_compute_int
2513
2514 # ac_fn_c_check_decl LINENO SYMBOL VAR
2515 # ------------------------------------
2516 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2517 ac_fn_c_check_decl ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2521 $as_echo_n "checking whether $2 is declared... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 #ifndef $2
2532   (void) $2;
2533 #endif
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540   eval "$3=yes"
2541 else
2542   eval "$3=no"
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 fi
2546 eval ac_res=\$$3
2547                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550
2551 } # ac_fn_c_check_decl
2552
2553 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2554 # ----------------------------------------------------
2555 # Tries to find if the field MEMBER exists in type AGGR, after including
2556 # INCLUDES, setting cache variable VAR accordingly.
2557 ac_fn_c_check_member ()
2558 {
2559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2561 $as_echo_n "checking for $2.$3... " >&6; }
2562 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h.  */
2567 $5
2568 int
2569 main ()
2570 {
2571 static $2 ac_aggr;
2572 if (ac_aggr.$3)
2573 return 0;
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   eval "$4=yes"
2580 else
2581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h.  */
2583 $5
2584 int
2585 main ()
2586 {
2587 static $2 ac_aggr;
2588 if (sizeof ac_aggr.$3)
2589 return 0;
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595   eval "$4=yes"
2596 else
2597   eval "$4=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$4
2604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_member
2609 cat >config.log <<_ACEOF
2610 This file contains any messages produced by compilers while
2611 running configure, to aid debugging if configure makes a mistake.
2612
2613 It was created by gzip $as_me 1.3.14, which was
2614 generated by GNU Autoconf 2.64.69-81c80.  Invocation command line was
2615
2616   $ $0 $@
2617
2618 _ACEOF
2619 exec 5>>config.log
2620 {
2621 cat <<_ASUNAME
2622 ## --------- ##
2623 ## Platform. ##
2624 ## --------- ##
2625
2626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2631
2632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2633 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2634
2635 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2636 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2638 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2639 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2640 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2641 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2642
2643 _ASUNAME
2644
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     $as_echo "PATH: $as_dir"
2651   done
2652 IFS=$as_save_IFS
2653
2654 } >&5
2655
2656 cat >&5 <<_ACEOF
2657
2658
2659 ## ----------- ##
2660 ## Core tests. ##
2661 ## ----------- ##
2662
2663 _ACEOF
2664
2665
2666 # Keep a trace of the command line.
2667 # Strip out --no-create and --no-recursion so they do not pile up.
2668 # Strip out --silent because we don't want to record it for future runs.
2669 # Also quote any args containing shell meta-characters.
2670 # Make two passes to allow for proper duplicate-argument suppression.
2671 ac_configure_args=
2672 ac_configure_args0=
2673 ac_configure_args1=
2674 ac_must_keep_next=false
2675 for ac_pass in 1 2
2676 do
2677   for ac_arg
2678   do
2679     case $ac_arg in
2680     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2681     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2682     | -silent | --silent | --silen | --sile | --sil)
2683       continue ;;
2684     *\'*)
2685       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2686     esac
2687     case $ac_pass in
2688     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2689     2)
2690       as_fn_append ac_configure_args1 " '$ac_arg'"
2691       if test $ac_must_keep_next = true; then
2692         ac_must_keep_next=false # Got value, back to normal.
2693       else
2694         case $ac_arg in
2695           *=* | --config-cache | -C | -disable-* | --disable-* \
2696           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2697           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2698           | -with-* | --with-* | -without-* | --without-* | --x)
2699             case "$ac_configure_args0 " in
2700               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701             esac
2702             ;;
2703           -* ) ac_must_keep_next=true ;;
2704         esac
2705       fi
2706       as_fn_append ac_configure_args " '$ac_arg'"
2707       ;;
2708     esac
2709   done
2710 done
2711 { ac_configure_args0=; unset ac_configure_args0;}
2712 { ac_configure_args1=; unset ac_configure_args1;}
2713
2714 # When interrupted or exit'd, cleanup temporary files, and complete
2715 # config.log.  We remove comments because anyway the quotes in there
2716 # would cause problems or look ugly.
2717 # WARNING: Use '\'' to represent an apostrophe within the trap.
2718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2719 trap 'exit_status=$?
2720   # Save into config.log some information that might help in debugging.
2721   {
2722     echo
2723
2724     cat <<\_ASBOX
2725 ## ---------------- ##
2726 ## Cache variables. ##
2727 ## ---------------- ##
2728 _ASBOX
2729     echo
2730     # The following way of writing the cache mishandles newlines in values,
2731 (
2732   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2733     eval ac_val=\$$ac_var
2734     case $ac_val in #(
2735     *${as_nl}*)
2736       case $ac_var in #(
2737       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2739       esac
2740       case $ac_var in #(
2741       _ | IFS | as_nl) ;; #(
2742       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2743       *) { eval $ac_var=; unset $ac_var;} ;;
2744       esac ;;
2745     esac
2746   done
2747   (set) 2>&1 |
2748     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2749     *${as_nl}ac_space=\ *)
2750       sed -n \
2751         "s/'\''/'\''\\\\'\'''\''/g;
2752           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2753       ;; #(
2754     *)
2755       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2756       ;;
2757     esac |
2758     sort
2759 )
2760     echo
2761
2762     cat <<\_ASBOX
2763 ## ----------------- ##
2764 ## Output variables. ##
2765 ## ----------------- ##
2766 _ASBOX
2767     echo
2768     for ac_var in $ac_subst_vars
2769     do
2770       eval ac_val=\$$ac_var
2771       case $ac_val in
2772       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2773       esac
2774       $as_echo "$ac_var='\''$ac_val'\''"
2775     done | sort
2776     echo
2777
2778     if test -n "$ac_subst_files"; then
2779       cat <<\_ASBOX
2780 ## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##
2783 _ASBOX
2784       echo
2785       for ac_var in $ac_subst_files
2786       do
2787         eval ac_val=\$$ac_var
2788         case $ac_val in
2789         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2790         esac
2791         $as_echo "$ac_var='\''$ac_val'\''"
2792       done | sort
2793       echo
2794     fi
2795
2796     if test -s confdefs.h; then
2797       cat <<\_ASBOX
2798 ## ----------- ##
2799 ## confdefs.h. ##
2800 ## ----------- ##
2801 _ASBOX
2802       echo
2803       cat confdefs.h
2804       echo
2805     fi
2806     test "$ac_signal" != 0 &&
2807       $as_echo "$as_me: caught signal $ac_signal"
2808     $as_echo "$as_me: exit $exit_status"
2809   } >&5
2810   rm -f core *.core core.conftest.* &&
2811     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2812     exit $exit_status
2813 ' 0
2814 for ac_signal in 1 2 13 15; do
2815   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2816 done
2817 ac_signal=0
2818
2819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2820 rm -f -r conftest* confdefs.h
2821
2822 $as_echo "/* confdefs.h */" > confdefs.h
2823
2824 # Predefined preprocessor variables.
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_NAME "$PACKAGE_NAME"
2828 _ACEOF
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_STRING "$PACKAGE_STRING"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_URL "$PACKAGE_URL"
2848 _ACEOF
2849
2850
2851 # Let the site file select an alternate cache file if it wants to.
2852 # Prefer an explicitly selected file to automatically selected ones.
2853 ac_site_file1=NONE
2854 ac_site_file2=NONE
2855 if test -n "$CONFIG_SITE"; then
2856   ac_site_file1=$CONFIG_SITE
2857 elif test "x$prefix" != xNONE; then
2858   ac_site_file1=$prefix/share/config.site
2859   ac_site_file2=$prefix/etc/config.site
2860 else
2861   ac_site_file1=$ac_default_prefix/share/config.site
2862   ac_site_file2=$ac_default_prefix/etc/config.site
2863 fi
2864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2865 do
2866   test "x$ac_site_file" = xNONE && continue
2867   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2868     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2870     sed 's/^/| /' "$ac_site_file" >&5
2871     . "$ac_site_file"
2872   fi
2873 done
2874
2875 if test -r "$cache_file"; then
2876   # Some versions of bash will fail to source /dev/null (special files
2877   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2878   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2879     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2880 $as_echo "$as_me: loading cache $cache_file" >&6;}
2881     case $cache_file in
2882       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2883       *)                      . "./$cache_file";;
2884     esac
2885   fi
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2888 $as_echo "$as_me: creating cache $cache_file" >&6;}
2889   >$cache_file
2890 fi
2891
2892 as_fn_append ac_func_list " dup2"
2893 as_fn_append ac_header_list " errno.h"
2894 as_fn_append ac_header_list " fcntl.h"
2895 as_fn_append ac_header_list " float.h"
2896 as_fn_append ac_header_list " stdio_ext.h"
2897 as_fn_append ac_func_list " __fpending"
2898 as_fn_append ac_func_list " vasnprintf"
2899 as_fn_append ac_func_list " fpurge"
2900 as_fn_append ac_func_list " __fpurge"
2901 as_fn_append ac_func_list " __freading"
2902 gl_getopt_required=GNU
2903 as_fn_append ac_header_list " getopt.h"
2904 as_fn_append ac_func_list " gettimeofday"
2905 as_fn_append ac_func_list " nanotime"
2906 as_fn_append ac_header_list " sys/time.h"
2907 as_fn_append ac_func_list " lstat"
2908 as_fn_append ac_header_list " math.h"
2909 as_fn_append ac_func_list " mbsinit"
2910 as_fn_append ac_func_list " mbrtowc"
2911 as_fn_append ac_header_list " sys/mman.h"
2912 as_fn_append ac_func_list " mprotect"
2913 gl_printf_safe=yes
2914 as_fn_append ac_header_list " stddef.h"
2915 as_fn_append ac_header_list " stdint.h"
2916 as_fn_append ac_header_list " wchar.h"
2917 as_fn_append ac_header_list " stdio.h"
2918 as_fn_append ac_header_list " stdlib.h"
2919 as_fn_append ac_header_list " sys/socket.h"
2920 as_fn_append ac_header_list " string.h"
2921 as_fn_append ac_header_list " sys/stat.h"
2922 as_fn_append ac_header_list " time.h"
2923 as_fn_append ac_header_list " unistd.h"
2924 as_fn_append ac_func_list " pipe"
2925 as_fn_append ac_header_list " utime.h"
2926 as_fn_append ac_func_list " futimes"
2927 as_fn_append ac_func_list " futimesat"
2928 as_fn_append ac_func_list " futimens"
2929 as_fn_append ac_func_list " utimensat"
2930 as_fn_append ac_func_list " lutimes"
2931 as_fn_append ac_func_list " iswcntrl"
2932 as_fn_append ac_header_list " wctype.h"
2933 as_fn_append ac_header_list " limits.h"
2934 as_fn_append ac_header_list " memory.h"
2935 as_fn_append ac_func_list " chown"
2936 as_fn_append ac_func_list " fchmod"
2937 as_fn_append ac_func_list " fchown"
2938 as_fn_append ac_func_list " fdopendir"
2939 as_fn_append ac_func_list " siginterrupt"
2940 # Check that the precious variables saved in the cache have kept the same
2941 # value.
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945   eval ac_new_set=\$ac_env_${ac_var}_set
2946   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947   eval ac_new_val=\$ac_env_${ac_var}_value
2948   case $ac_old_set,$ac_new_set in
2949     set,)
2950       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952       ac_cache_corrupted=: ;;
2953     ,set)
2954       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2956       ac_cache_corrupted=: ;;
2957     ,);;
2958     *)
2959       if test "x$ac_old_val" != "x$ac_new_val"; then
2960         # differences in whitespace do not lead to failure.
2961         ac_old_val_w=`echo x $ac_old_val`
2962         ac_new_val_w=`echo x $ac_new_val`
2963         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2966           ac_cache_corrupted=:
2967         else
2968           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970           eval $ac_var=\$ac_old_val
2971         fi
2972         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2973 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2974         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2976       fi;;
2977   esac
2978   # Pass precious variables to config.status.
2979   if test "$ac_new_set" = set; then
2980     case $ac_new_val in
2981     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2982     *) ac_arg=$ac_var=$ac_new_val ;;
2983     esac
2984     case " $ac_configure_args " in
2985       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2986       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987     esac
2988   fi
2989 done
2990 if $ac_cache_corrupted; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 fi
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007
3008
3009
3010 ac_aux_dir=
3011 for ac_dir in build-aux "$srcdir"/build-aux; do
3012   for ac_t in install-sh install.sh shtool; do
3013     if test -f "$ac_dir/$ac_t"; then
3014       ac_aux_dir=$ac_dir
3015       ac_install_sh="$ac_aux_dir/$ac_t -c"
3016       break 2
3017     fi
3018   done
3019 done
3020 if test -z "$ac_aux_dir"; then
3021   as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3022 fi
3023
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3031
3032
3033 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
3034
3035 am__api_version='1.11a'
3036
3037 # Find a good install program.  We prefer a C program (faster),
3038 # so one script is as good as another.  But avoid the broken or
3039 # incompatible versions:
3040 # SysV /etc/install, /usr/sbin/install
3041 # SunOS /usr/etc/install
3042 # IRIX /sbin/install
3043 # AIX /bin/install
3044 # AmigaOS /C/install, which installs bootblocks on floppy discs
3045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3048 # OS/2's system install, which has a completely different semantic
3049 # ./install, which can be erroneously created by make from ./install.sh.
3050 # Reject install programs that cannot install multiple files.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3053 if test -z "$INSTALL"; then
3054 if test "${ac_cv_path_install+set}" = set; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     # Account for people who put trailing slashes in PATH elements.
3063 case $as_dir/ in #((
3064   ./ | .// | /[cC]/* | \
3065   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3066   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3067   /usr/ucb/* ) ;;
3068   *)
3069     # OSF1 and SCO ODT 3.0 have their own names for install.
3070     # Don't use installbsd from OSF since it installs stuff as root
3071     # by default.
3072     for ac_prog in ginstall scoinst install; do
3073       for ac_exec_ext in '' $ac_executable_extensions; do
3074         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3075           if test $ac_prog = install &&
3076             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077             # AIX install.  It has an incompatible calling convention.
3078             :
3079           elif test $ac_prog = install &&
3080             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3081             # program-specific install script used by HP pwplus--don't use.
3082             :
3083           else
3084             rm -rf conftest.one conftest.two conftest.dir
3085             echo one > conftest.one
3086             echo two > conftest.two
3087             mkdir conftest.dir
3088             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3089               test -s conftest.one && test -s conftest.two &&
3090               test -s conftest.dir/conftest.one &&
3091               test -s conftest.dir/conftest.two
3092             then
3093               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3094               break 3
3095             fi
3096           fi
3097         fi
3098       done
3099     done
3100     ;;
3101 esac
3102
3103   done
3104 IFS=$as_save_IFS
3105
3106 rm -rf conftest.one conftest.two conftest.dir
3107
3108 fi
3109   if test "${ac_cv_path_install+set}" = set; then
3110     INSTALL=$ac_cv_path_install
3111   else
3112     # As a last resort, use the slow shell script.  Don't cache a
3113     # value for INSTALL within a source directory, because that will
3114     # break other packages using the cache if that directory is
3115     # removed, or if the value is a relative name.
3116     INSTALL=$ac_install_sh
3117   fi
3118 fi
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3120 $as_echo "$INSTALL" >&6; }
3121
3122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3123 # It thinks the first close brace ends the variable substitution.
3124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3125
3126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3127
3128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3131 $as_echo_n "checking whether build environment is sane... " >&6; }
3132 # Reject unsafe characters in $srcdir or the absolute working directory
3133 # name.  Accept space and tab only in the latter.
3134 am_lf='
3135 '
3136 case `pwd` in
3137   *[\\\"\#\$\&\'\`$am_lf]*)
3138     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3139 esac
3140 case $srcdir in
3141   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3142     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3143 esac
3144
3145 # Do `set' in a subshell so we don't clobber the current shell's
3146 # arguments.  Must try -L first in case configure is actually a
3147 # symlink; some systems play weird games with the mod time of symlinks
3148 # (eg FreeBSD returns the mod time of the symlink's containing
3149 # directory).
3150 if (
3151    for am_try in 1 2; do
3152      echo timestamp > conftest.file
3153      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154      if test "$*" = "X"; then
3155         # -L didn't work.
3156         set X `ls -t "$srcdir/configure" conftest.file`
3157      fi
3158      rm -f conftest.file
3159      if test "$*" != "X $srcdir/configure conftest.file" \
3160         && test "$*" != "X conftest.file $srcdir/configure"; then
3161
3162         # If neither matched, then we have a broken ls.  This can happen
3163         # if, for instance, CONFIG_SHELL is bash and it inherits a
3164         # broken ls alias from the environment.  This has actually
3165         # happened.  Such a system could not be considered "sane".
3166         as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3167   alias in your environment" "$LINENO" 5
3168      fi
3169      if test "$2" = conftest.file || test $am_try -eq 2; then
3170        break
3171      fi
3172      # Just in case.
3173      sleep 1
3174    done
3175    test "$2" = conftest.file
3176    )
3177 then
3178    # Ok.
3179    :
3180 else
3181    as_fn_error "newly created file is older than distributed files!
3182 Check your system clock" "$LINENO" 5
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 test "$program_prefix" != NONE &&
3187   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3188 # Use a double $ so make ignores it.
3189 test "$program_suffix" != NONE &&
3190   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3191 # Double any \ or $.
3192 # By default was `s,x,x', remove it if useless.
3193 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3194 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3195
3196 # expand $ac_aux_dir to an absolute path
3197 am_aux_dir=`cd $ac_aux_dir && pwd`
3198
3199 if test x"${MISSING+set}" != xset; then
3200   case $am_aux_dir in
3201   *\ * | *\     *)
3202     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3203   *)
3204     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3205   esac
3206 fi
3207 # Use eval to expand $SHELL
3208 if eval "$MISSING --run true"; then
3209   am_missing_run="$MISSING --run "
3210 else
3211   am_missing_run=
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3213 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3214 fi
3215
3216 if test x"${install_sh}" != xset; then
3217   case $am_aux_dir in
3218   *\ * | *\     *)
3219     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3220   *)
3221     install_sh="\${SHELL} $am_aux_dir/install-sh"
3222   esac
3223 fi
3224
3225 # Installed binaries are usually stripped using `strip' when the user
3226 # run `make install-strip'.  However `strip' might not be the right
3227 # tool to use in cross-compilation environments, therefore Automake
3228 # will honor the `STRIP' environment variable to overrule this program.
3229 if test "$cross_compiling" != no; then
3230   if test -n "$ac_tool_prefix"; then
3231   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}strip; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_STRIP+set}" = set; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$STRIP"; then
3239   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 STRIP=$ac_cv_prog_STRIP
3259 if test -n "$STRIP"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3261 $as_echo "$STRIP" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$ac_cv_prog_STRIP"; then
3270   ac_ct_STRIP=$STRIP
3271   # Extract the first word of "strip", so it can be a program name with args.
3272 set dummy strip; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$ac_ct_STRIP"; then
3279   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288     ac_cv_prog_ac_ct_STRIP="strip"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3299 if test -n "$ac_ct_STRIP"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3301 $as_echo "$ac_ct_STRIP" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307   if test "x$ac_ct_STRIP" = x; then
3308     STRIP=":"
3309   else
3310     case $cross_compiling:$ac_tool_warned in
3311 yes:)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3315 esac
3316     STRIP=$ac_ct_STRIP
3317   fi
3318 else
3319   STRIP="$ac_cv_prog_STRIP"
3320 fi
3321
3322 fi
3323 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3326 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3327 if test -z "$MKDIR_P"; then
3328   if test "${ac_cv_path_mkdir+set}" = set; then :
3329   $as_echo_n "(cached) " >&6
3330 else
3331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336     for ac_prog in mkdir gmkdir; do
3337          for ac_exec_ext in '' $ac_executable_extensions; do
3338            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3339            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3340              'mkdir (GNU coreutils) '* | \
3341              'mkdir (coreutils) '* | \
3342              'mkdir (fileutils) '4.1*)
3343                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3344                break 3;;
3345            esac
3346          done
3347        done
3348   done
3349 IFS=$as_save_IFS
3350
3351 fi
3352
3353   test -d ./--version && rmdir ./--version
3354   if test "${ac_cv_path_mkdir+set}" = set; then
3355     MKDIR_P="$ac_cv_path_mkdir -p"
3356   else
3357     # As a last resort, use the slow shell script.  Don't cache a
3358     # value for MKDIR_P within a source directory, because that will
3359     # break other packages using the cache if that directory is
3360     # removed, or if the value is a relative name.
3361     MKDIR_P="$ac_install_sh -d"
3362   fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3365 $as_echo "$MKDIR_P" >&6; }
3366
3367 mkdir_p="$MKDIR_P"
3368 case $mkdir_p in
3369   [\\/$]* | ?:[\\/]*) ;;
3370   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3371 esac
3372
3373 for ac_prog in gawk mawk nawk awk
3374 do
3375   # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_AWK+set}" = set; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$AWK"; then
3383   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_AWK="$ac_prog"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 AWK=$ac_cv_prog_AWK
3403 if test -n "$AWK"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3405 $as_echo "$AWK" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412   test -n "$AWK" && break
3413 done
3414
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3416 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3417 set x ${MAKE-make}
3418 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3419 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   cat >conftest.make <<\_ACEOF
3423 SHELL = /bin/sh
3424 all:
3425         @echo '@@@%%%=$(MAKE)=@@@%%%'
3426 _ACEOF
3427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3429   *@@@%%%=?*=@@@%%%*)
3430     eval ac_cv_prog_make_${ac_make}_set=yes;;
3431   *)
3432     eval ac_cv_prog_make_${ac_make}_set=no;;
3433 esac
3434 rm -f conftest.make
3435 fi
3436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3439   SET_MAKE=
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443   SET_MAKE="MAKE=${MAKE-make}"
3444 fi
3445
3446 rm -rf .tst 2>/dev/null
3447 mkdir .tst 2>/dev/null
3448 if test -d .tst; then
3449   am__leading_dot=.
3450 else
3451   am__leading_dot=_
3452 fi
3453 rmdir .tst 2>/dev/null
3454
3455 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3456   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3457   # is not polluted with repeated "-I."
3458   am__isrc=' -I$(srcdir)'
3459   # test to see if srcdir already configured
3460   if test -f $srcdir/config.status; then
3461     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3462   fi
3463 fi
3464
3465 # test whether we have cygpath
3466 if test -z "$CYGPATH_W"; then
3467   if (cygpath --version) >/dev/null 2>/dev/null; then
3468     CYGPATH_W='cygpath -w'
3469   else
3470     CYGPATH_W=echo
3471   fi
3472 fi
3473
3474
3475 # Define the identity of the package.
3476  PACKAGE='gzip'
3477  VERSION='1.3.14'
3478
3479
3480 cat >>confdefs.h <<_ACEOF
3481 #define PACKAGE "$PACKAGE"
3482 _ACEOF
3483
3484
3485 cat >>confdefs.h <<_ACEOF
3486 #define VERSION "$VERSION"
3487 _ACEOF
3488
3489 # Some tools Automake needs.
3490
3491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3492
3493
3494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3495
3496
3497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3498
3499
3500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3501
3502
3503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3504
3505 # We need awk for the "check" target.  The system "awk" is bad on
3506 # some platforms.
3507 # Always define AMTAR for backward compatibility.
3508
3509 AMTAR=${AMTAR-"${am_missing_run}tar"}
3510
3511 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3512
3513
3514
3515
3516
3517 # Check whether --enable-silent-rules was given.
3518 if test "${enable_silent_rules+set}" = set; then :
3519   enableval=$enable_silent_rules;
3520 fi
3521
3522 case $enable_silent_rules in
3523 yes) AM_DEFAULT_VERBOSITY=0;;
3524 no)  AM_DEFAULT_VERBOSITY=1;;
3525 *)   AM_DEFAULT_VERBOSITY=0;;
3526 esac
3527 AM_BACKSLASH='\'
3528  # make --enable-silent-rules the default.
3529
3530 DEPDIR="${am__leading_dot}deps"
3531
3532 ac_config_commands="$ac_config_commands depfiles"
3533
3534
3535 am_make=${MAKE-make}
3536 cat > confinc << 'END'
3537 am__doit:
3538         @echo this is the am__doit target
3539 .PHONY: am__doit
3540 END
3541 # If we don't find an include directive, just comment out the code.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3543 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3544 am__include="#"
3545 am__quote=
3546 _am_result=none
3547 # First try GNU make style include.
3548 echo "include confinc" > confmf
3549 # Ignore all kinds of additional output from `make'.
3550 case `$am_make -s -f confmf 2> /dev/null` in #(
3551 *the\ am__doit\ target*)
3552   am__include=include
3553   am__quote=
3554   _am_result=GNU
3555   ;;
3556 esac
3557 # Now try BSD make style include.
3558 if test "$am__include" = "#"; then
3559    echo '.include "confinc"' > confmf
3560    case `$am_make -s -f confmf 2> /dev/null` in #(
3561    *the\ am__doit\ target*)
3562      am__include=.include
3563      am__quote="\""
3564      _am_result=BSD
3565      ;;
3566    esac
3567 fi
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3571 $as_echo "$_am_result" >&6; }
3572 rm -f confinc confmf
3573
3574 # Check whether --enable-dependency-tracking was given.
3575 if test "${enable_dependency_tracking+set}" = set; then :
3576   enableval=$enable_dependency_tracking;
3577 fi
3578
3579 if test "x$enable_dependency_tracking" != xno; then
3580   am_depcomp="$ac_aux_dir/depcomp"
3581   AMDEPBACKSLASH='\'
3582 fi
3583  if test "x$enable_dependency_tracking" != xno; then
3584   AMDEP_TRUE=
3585   AMDEP_FALSE='#'
3586 else
3587   AMDEP_TRUE='#'
3588   AMDEP_FALSE=
3589 fi
3590
3591
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 if test -n "$ac_tool_prefix"; then
3598   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_CC+set}" = set; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -n "$CC"; then
3606   ac_cv_prog_CC="$CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_exec_ext in '' $ac_executable_extensions; do
3614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 CC=$ac_cv_prog_CC
3626 if test -n "$CC"; then
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3629 else
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 fi
3636 if test -z "$ac_cv_prog_CC"; then
3637   ac_ct_CC=$CC
3638   # Extract the first word of "gcc", so it can be a program name with args.
3639 set dummy gcc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -n "$ac_ct_CC"; then
3646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_exec_ext in '' $ac_executable_extensions; do
3654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655     ac_cv_prog_ac_ct_CC="gcc"
3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660   done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668 $as_echo "$ac_ct_CC" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674   if test "x$ac_ct_CC" = x; then
3675     CC=""
3676   else
3677     case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683     CC=$ac_ct_CC
3684   fi
3685 else
3686   CC="$ac_cv_prog_CC"
3687 fi
3688
3689 if test -z "$CC"; then
3690           if test -n "$ac_tool_prefix"; then
3691     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}cc; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then :
3696   $as_echo_n "(cached) " >&6
3697 else
3698   if test -n "$CC"; then
3699   ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706     for ac_exec_ext in '' $ac_executable_extensions; do
3707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708     ac_cv_prog_CC="${ac_tool_prefix}cc"
3709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713   done
3714 IFS=$as_save_IFS
3715
3716 fi
3717 fi
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3722 else
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727
3728   fi
3729 fi
3730 if test -z "$CC"; then
3731   # Extract the first word of "cc", so it can be a program name with args.
3732 set dummy cc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_CC+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$CC"; then
3739   ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741   ac_prog_rejected=no
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3750        ac_prog_rejected=yes
3751        continue
3752      fi
3753     ac_cv_prog_CC="cc"
3754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758   done
3759 IFS=$as_save_IFS
3760
3761 if test $ac_prog_rejected = yes; then
3762   # We found a bogon in the path, so make sure we never use it.
3763   set dummy $ac_cv_prog_CC
3764   shift
3765   if test $# != 0; then
3766     # We chose a different compiler from the bogus one.
3767     # However, it has the same basename, so the bogon will be chosen
3768     # first if we set CC to just the basename; use the full file name.
3769     shift
3770     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3771   fi
3772 fi
3773 fi
3774 fi
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 fi
3783
3784
3785 fi
3786 if test -z "$CC"; then
3787   if test -n "$ac_tool_prefix"; then
3788   for ac_prog in cl.exe
3789   do
3790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if test "${ac_cv_prog_CC+set}" = set; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$CC"; then
3798   ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 CC=$ac_cv_prog_CC
3818 if test -n "$CC"; then
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827     test -n "$CC" && break
3828   done
3829 fi
3830 if test -z "$CC"; then
3831   ac_ct_CC=$CC
3832   for ac_prog in cl.exe
3833 do
3834   # Extract the first word of "$ac_prog", so it can be a program name with args.
3835 set dummy $ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   if test -n "$ac_ct_CC"; then
3842   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851     ac_cv_prog_ac_ct_CC="$ac_prog"
3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862 if test -n "$ac_ct_CC"; then
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3864 $as_echo "$ac_ct_CC" >&6; }
3865 else
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870
3871   test -n "$ac_ct_CC" && break
3872 done
3873
3874   if test "x$ac_ct_CC" = x; then
3875     CC=""
3876   else
3877     case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883     CC=$ac_ct_CC
3884   fi
3885 fi
3886
3887 fi
3888
3889
3890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error "no acceptable C compiler found in \$PATH
3893 See \`config.log' for more details." "$LINENO" 5; }
3894
3895 # Provide some information about the compiler.
3896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3897 set X $ac_compile
3898 ac_compiler=$2
3899 for ac_option in --version -v -V -qversion; do
3900   { { ac_try="$ac_compiler $ac_option >&5"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3908   ac_status=$?
3909   if test -s conftest.err; then
3910     sed '10a\
3911 ... rest of stderr output deleted ...
3912          10q' conftest.err >conftest.er1
3913     cat conftest.er1 >&5
3914     rm -f conftest.er1 conftest.err
3915   fi
3916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917   test $ac_status = 0; }
3918 done
3919
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 ac_clean_files_save=$ac_clean_files
3932 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3933 # Try to create an executable without -o first, disregard a.out.
3934 # It will help us diagnose broken compilers, and finding out an intuition
3935 # of exeext.
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3937 $as_echo_n "checking whether the C compiler works... " >&6; }
3938 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3939
3940 # The possible output files:
3941 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3942
3943 ac_rmfiles=
3944 for ac_file in $ac_files
3945 do
3946   case $ac_file in
3947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3948     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3949   esac
3950 done
3951 rm -f $ac_rmfiles
3952
3953 if { { ac_try="$ac_link_default"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960   (eval "$ac_link_default") 2>&5
3961   ac_status=$?
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }; then :
3964   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3965 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3966 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3967 # so that the user can short-circuit this test for compilers unknown to
3968 # Autoconf.
3969 for ac_file in $ac_files ''
3970 do
3971   test -f "$ac_file" || continue
3972   case $ac_file in
3973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3974         ;;
3975     [ab].out )
3976         # We found the default executable, but exeext='' is most
3977         # certainly right.
3978         break;;
3979     *.* )
3980         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3981         then :; else
3982            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983         fi
3984         # We set ac_cv_exeext here because the later test for it is not
3985         # safe: cross compilers may not add the suffix if given an `-o'
3986         # argument, so we may need to know it at that point already.
3987         # Even if this section looks crufty: it has the advantage of
3988         # actually working.
3989         break;;
3990     * )
3991         break;;
3992   esac
3993 done
3994 test "$ac_cv_exeext" = no && ac_cv_exeext=
3995
3996 else
3997   ac_file=''
3998 fi
3999 if test -z "$ac_file"; then :
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 { as_fn_set_status 77
4008 as_fn_error "C compiler cannot create executables
4009 See \`config.log' for more details." "$LINENO" 5; }; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 $as_echo "yes" >&6; }
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4015 $as_echo_n "checking for C compiler default output file name... " >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4017 $as_echo "$ac_file" >&6; }
4018 ac_exeext=$ac_cv_exeext
4019
4020 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4021 ac_clean_files=$ac_clean_files_save
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4023 $as_echo_n "checking for suffix of executables... " >&6; }
4024 if { { ac_try="$ac_link"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031   (eval "$ac_link") 2>&5
4032   ac_status=$?
4033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034   test $ac_status = 0; }; then :
4035   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4036 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4037 # work properly (i.e., refer to `conftest.exe'), while it won't with
4038 # `rm'.
4039 for ac_file in conftest.exe conftest conftest.*; do
4040   test -f "$ac_file" || continue
4041   case $ac_file in
4042     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4043     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4044           break;;
4045     * ) break;;
4046   esac
4047 done
4048 else
4049   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error "cannot compute suffix of executables: cannot compile and link
4052 See \`config.log' for more details." "$LINENO" 5; }
4053 fi
4054 rm -f conftest conftest$ac_cv_exeext
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4056 $as_echo "$ac_cv_exeext" >&6; }
4057
4058 rm -f conftest.$ac_ext
4059 EXEEXT=$ac_cv_exeext
4060 ac_exeext=$EXEEXT
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063 #include <stdio.h>
4064 int
4065 main ()
4066 {
4067 FILE *f = fopen ("conftest.out", "w");
4068  return ferror (f) || fclose (f) != 0;
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 ac_clean_files="$ac_clean_files conftest.out"
4075 # Check that the compiler produces executables we can run.  If not, either
4076 # the compiler is broken, or we cross compile.
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4078 $as_echo_n "checking whether we are cross compiling... " >&6; }
4079 if test "$cross_compiling" != yes; then
4080   { { ac_try="$ac_link"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087   (eval "$ac_link") 2>&5
4088   ac_status=$?
4089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090   test $ac_status = 0; }
4091   if { ac_try='./conftest$ac_cv_exeext'
4092   { { case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098   (eval "$ac_try") 2>&5
4099   ac_status=$?
4100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101   test $ac_status = 0; }; }; then
4102     cross_compiling=no
4103   else
4104     if test "$cross_compiling" = maybe; then
4105         cross_compiling=yes
4106     else
4107         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error "cannot run C compiled programs.
4110 If you meant to cross compile, use \`--host'.
4111 See \`config.log' for more details." "$LINENO" 5; }
4112     fi
4113   fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4116 $as_echo "$cross_compiling" >&6; }
4117
4118 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4121 $as_echo_n "checking for suffix of object files... " >&6; }
4122 if test "${ac_cv_objext+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.o conftest.obj
4137 if { { ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144   (eval "$ac_compile") 2>&5
4145   ac_status=$?
4146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147   test $ac_status = 0; }; then :
4148   for ac_file in conftest.o conftest.obj conftest.*; do
4149   test -f "$ac_file" || continue;
4150   case $ac_file in
4151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4152     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4153        break;;
4154   esac
4155 done
4156 else
4157   $as_echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error "cannot compute suffix of object files: cannot compile
4163 See \`config.log' for more details." "$LINENO" 5; }
4164 fi
4165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4168 $as_echo "$ac_cv_objext" >&6; }
4169 OBJEXT=$ac_cv_objext
4170 ac_objext=$OBJEXT
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4173 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h.  */
4178
4179 int
4180 main ()
4181 {
4182 #ifndef __GNUC__
4183        choke me
4184 #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_compiler_gnu=yes
4192 else
4193   ac_compiler_gnu=no
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4197
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4201 if test $ac_compiler_gnu = yes; then
4202   GCC=yes
4203 else
4204   GCC=
4205 fi
4206 ac_test_CFLAGS=${CFLAGS+set}
4207 ac_save_CFLAGS=$CFLAGS
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4210 if test "${ac_cv_prog_cc_g+set}" = set; then :
4211   $as_echo_n "(cached) " >&6
4212 else
4213   ac_save_c_werror_flag=$ac_c_werror_flag
4214    ac_c_werror_flag=yes
4215    ac_cv_prog_cc_g=no
4216    CFLAGS="-g"
4217    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h.  */
4219
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229   ac_cv_prog_cc_g=yes
4230 else
4231   CFLAGS=""
4232       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234
4235 int
4236 main ()
4237 {
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244
4245 else
4246   ac_c_werror_flag=$ac_save_c_werror_flag
4247          CFLAGS="-g"
4248          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260   ac_cv_prog_cc_g=yes
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267    ac_c_werror_flag=$ac_save_c_werror_flag
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4270 $as_echo "$ac_cv_prog_cc_g" >&6; }
4271 if test "$ac_test_CFLAGS" = set; then
4272   CFLAGS=$ac_save_CFLAGS
4273 elif test $ac_cv_prog_cc_g = yes; then
4274   if test "$GCC" = yes; then
4275     CFLAGS="-g -O2"
4276   else
4277     CFLAGS="-g"
4278   fi
4279 else
4280   if test "$GCC" = yes; then
4281     CFLAGS="-O2"
4282   else
4283     CFLAGS=
4284   fi
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4288 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   ac_cv_prog_cc_c89=no
4292 ac_save_CC=$CC
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295 #include <stdarg.h>
4296 #include <stdio.h>
4297 #include <sys/types.h>
4298 #include <sys/stat.h>
4299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4300 struct buf { int x; };
4301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4302 static char *e (p, i)
4303      char **p;
4304      int i;
4305 {
4306   return p[i];
4307 }
4308 static char *f (char * (*g) (char **, int), char **p, ...)
4309 {
4310   char *s;
4311   va_list v;
4312   va_start (v,p);
4313   s = g (p, va_arg (v,int));
4314   va_end (v);
4315   return s;
4316 }
4317
4318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4319    function prototypes and stuff, but not '\xHH' hex character constants.
4320    These don't provoke an error unfortunately, instead are silently treated
4321    as 'x'.  The following induces an error, until -std is added to get
4322    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4323    array size at least.  It's necessary to write '\x00'==0 to get something
4324    that's true only with -std.  */
4325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4326
4327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4328    inside strings and character constants.  */
4329 #define FOO(x) 'x'
4330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4331
4332 int test (int i, double x);
4333 struct s1 {int (*f) (int a);};
4334 struct s2 {int (*f) (double a);};
4335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4336 int argc;
4337 char **argv;
4338 int
4339 main ()
4340 {
4341 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4342   ;
4343   return 0;
4344 }
4345 _ACEOF
4346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4347         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4348 do
4349   CC="$ac_save_CC $ac_arg"
4350   if ac_fn_c_try_compile "$LINENO"; then :
4351   ac_cv_prog_cc_c89=$ac_arg
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext
4354   test "x$ac_cv_prog_cc_c89" != "xno" && break
4355 done
4356 rm -f conftest.$ac_ext
4357 CC=$ac_save_CC
4358
4359 fi
4360 # AC_CACHE_VAL
4361 case "x$ac_cv_prog_cc_c89" in
4362   x)
4363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364 $as_echo "none needed" >&6; } ;;
4365   xno)
4366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4367 $as_echo "unsupported" >&6; } ;;
4368   *)
4369     CC="$CC $ac_cv_prog_cc_c89"
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4372 esac
4373 if test "x$ac_cv_prog_cc_c89" != xno; then :
4374
4375 fi
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 depcc="$CC"   am_compiler_list=
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 $as_echo_n "checking dependency style of $depcc... " >&6; }
4387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391   # We make a subdir and do the tests there.  Otherwise we can end up
4392   # making bogus files that we don't know about and never remove.  For
4393   # instance it was reported that on HP-UX the gcc test will end up
4394   # making a dummy file named `D' -- because `-MD' means `put the output
4395   # in D'.
4396   mkdir conftest.dir
4397   # Copy depcomp to subdir because otherwise we won't find it if we're
4398   # using a relative directory.
4399   cp "$am_depcomp" conftest.dir
4400   cd conftest.dir
4401   # We will build objects and dependencies in a subdirectory because
4402   # it helps to detect inapplicable dependency modes.  For instance
4403   # both Tru64's cc and ICC support -MD to output dependencies as a
4404   # side effect of compilation, but ICC will put the dependencies in
4405   # the current directory while Tru64 will put them in the object
4406   # directory.
4407   mkdir sub
4408
4409   am_cv_CC_dependencies_compiler_type=none
4410   if test "$am_compiler_list" = ""; then
4411      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4412   fi
4413   am__universal=false
4414   case " $depcc " in #(
4415      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4416      esac
4417
4418   for depmode in $am_compiler_list; do
4419     # Setup a source with many dependencies, because some compilers
4420     # like to wrap large dependency lists on column 80 (with \), and
4421     # we should not choose a depcomp mode which is confused by this.
4422     #
4423     # We need to recreate these files for each test, as the compiler may
4424     # overwrite some of them when testing with obscure command lines.
4425     # This happens at least with the AIX C compiler.
4426     : > sub/conftest.c
4427     for i in 1 2 3 4 5 6; do
4428       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430       # Solaris 8's {/usr,}/bin/sh.
4431       touch sub/conftst$i.h
4432     done
4433     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4434
4435     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4436     # mode.  It turns out that the SunPro C++ compiler does not properly
4437     # handle `-M -o', and we need to detect this.  Also, some Intel
4438     # versions had trouble with output in subdirs
4439     am__obj=sub/conftest.${OBJEXT-o}
4440     am__minus_obj="-o $am__obj"
4441     case $depmode in
4442     gcc)
4443       # This depmode causes a compiler race in universal mode.
4444       test "$am__universal" = false || continue
4445       ;;
4446     nosideeffect)
4447       # after this tag, mechanisms are not by side-effect, so they'll
4448       # only be used when explicitly requested
4449       if test "x$enable_dependency_tracking" = xyes; then
4450         continue
4451       else
4452         break
4453       fi
4454       ;;
4455     msvisualcpp | msvcmsys)
4456       # This compiler won't grok `-c -o', but also, the minuso test has
4457       # not run yet.  These depmodes are late enough in the game, and
4458       # so weak that their functioning should not be impacted.
4459       am__obj=conftest.${OBJEXT-o}
4460       am__minus_obj=
4461       ;;
4462     none) break ;;
4463     esac
4464     if depmode=$depmode \
4465        source=sub/conftest.c object=$am__obj \
4466        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4467        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4468          >/dev/null 2>conftest.err &&
4469        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4470        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4471        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4472        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4473       # icc doesn't choke on unknown options, it will just issue warnings
4474       # or remarks (even with -Werror).  So we grep stderr for any message
4475       # that says an option was ignored or not supported.
4476       # When given -MP, icc 7.0 and 7.1 complain thusly:
4477       #   icc: Command line warning: ignoring option '-M'; no argument required
4478       # The diagnosis changed in icc 8.0:
4479       #   icc: Command line remark: option '-MP' not supported
4480       if (grep 'ignoring option' conftest.err ||
4481           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4482         am_cv_CC_dependencies_compiler_type=$depmode
4483         break
4484       fi
4485     fi
4486   done
4487
4488   cd ..
4489   rm -rf conftest.dir
4490 else
4491   am_cv_CC_dependencies_compiler_type=none
4492 fi
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4498
4499  if
4500   test "x$enable_dependency_tracking" != xno \
4501   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4502   am__fastdepCC_TRUE=
4503   am__fastdepCC_FALSE='#'
4504 else
4505   am__fastdepCC_TRUE='#'
4506   am__fastdepCC_FALSE=
4507 fi
4508
4509
4510    case $ac_cv_prog_cc_stdc in #(
4511   no) :
4512     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4513   *) :
4514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4515 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4516 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   ac_cv_prog_cc_c99=no
4520 ac_save_CC=$CC
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h.  */
4523 #include <stdarg.h>
4524 #include <stdbool.h>
4525 #include <stdlib.h>
4526 #include <wchar.h>
4527 #include <stdio.h>
4528
4529 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4530 #define debug(...) fprintf (stderr, __VA_ARGS__)
4531 #define showlist(...) puts (#__VA_ARGS__)
4532 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4533 static void
4534 test_varargs_macros (void)
4535 {
4536   int x = 1234;
4537   int y = 5678;
4538   debug ("Flag");
4539   debug ("X = %d\n", x);
4540   showlist (The first, second, and third items.);
4541   report (x>y, "x is %d but y is %d", x, y);
4542 }
4543
4544 // Check long long types.
4545 #define BIG64 18446744073709551615ull
4546 #define BIG32 4294967295ul
4547 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4548 #if !BIG_OK
4549   your preprocessor is broken;
4550 #endif
4551 #if BIG_OK
4552 #else
4553   your preprocessor is broken;
4554 #endif
4555 static long long int bignum = -9223372036854775807LL;
4556 static unsigned long long int ubignum = BIG64;
4557
4558 struct incomplete_array
4559 {
4560   int datasize;
4561   double data[];
4562 };
4563
4564 struct named_init {
4565   int number;
4566   const wchar_t *name;
4567   double average;
4568 };
4569
4570 typedef const char *ccp;
4571
4572 static inline int
4573 test_restrict (ccp restrict text)
4574 {
4575   // See if C++-style comments work.
4576   // Iterate through items via the restricted pointer.
4577   // Also check for declarations in for loops.
4578   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4579     continue;
4580   return 0;
4581 }
4582
4583 // Check varargs and va_copy.
4584 static void
4585 test_varargs (const char *format, ...)
4586 {
4587   va_list args;
4588   va_start (args, format);
4589   va_list args_copy;
4590   va_copy (args_copy, args);
4591
4592   const char *str;
4593   int number;
4594   float fnumber;
4595
4596   while (*format)
4597     {
4598       switch (*format++)
4599         {
4600         case 's': // string
4601           str = va_arg (args_copy, const char *);
4602           break;
4603         case 'd': // int
4604           number = va_arg (args_copy, int);
4605           break;
4606         case 'f': // float
4607           fnumber = va_arg (args_copy, double);
4608           break;
4609         default:
4610           break;
4611         }
4612     }
4613   va_end (args_copy);
4614   va_end (args);
4615 }
4616
4617 int
4618 main ()
4619 {
4620
4621   // Check bool.
4622   _Bool success = false;
4623
4624   // Check restrict.
4625   if (test_restrict ("String literal") == 0)
4626     success = true;
4627   char *restrict newvar = "Another string";
4628
4629   // Check varargs.
4630   test_varargs ("s, d' f .", "string", 65, 34.234);
4631   test_varargs_macros ();
4632
4633   // Check flexible array members.
4634   struct incomplete_array *ia =
4635     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4636   ia->datasize = 10;
4637   for (int i = 0; i < ia->datasize; ++i)
4638     ia->data[i] = i * 1.234;
4639
4640   // Check named initializers.
4641   struct named_init ni = {
4642     .number = 34,
4643     .name = L"Test wide string",
4644     .average = 543.34343,
4645   };
4646
4647   ni.number = 58;
4648
4649   int dynamic_array[ni.number];
4650   dynamic_array[ni.number - 1] = 543;
4651
4652   // work around unused variable warnings
4653   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4654           || dynamic_array[ni.number - 1] != 543);
4655
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4661 do
4662   CC="$ac_save_CC $ac_arg"
4663   if ac_fn_c_try_compile "$LINENO"; then :
4664   ac_cv_prog_cc_c99=$ac_arg
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext
4667   test "x$ac_cv_prog_cc_c99" != "xno" && break
4668 done
4669 rm -f conftest.$ac_ext
4670 CC=$ac_save_CC
4671
4672 fi
4673 # AC_CACHE_VAL
4674 case "x$ac_cv_prog_cc_c99" in
4675   x)
4676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677 $as_echo "none needed" >&6; } ;;
4678   xno)
4679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4680 $as_echo "unsupported" >&6; } ;;
4681   *)
4682     CC="$CC $ac_cv_prog_cc_c99"
4683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4684 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4685 esac
4686 if test "x$ac_cv_prog_cc_c99" != xno; then :
4687   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4688 else
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   ac_cv_prog_cc_c89=no
4695 ac_save_CC=$CC
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <stdarg.h>
4699 #include <stdio.h>
4700 #include <sys/types.h>
4701 #include <sys/stat.h>
4702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4703 struct buf { int x; };
4704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4705 static char *e (p, i)
4706      char **p;
4707      int i;
4708 {
4709   return p[i];
4710 }
4711 static char *f (char * (*g) (char **, int), char **p, ...)
4712 {
4713   char *s;
4714   va_list v;
4715   va_start (v,p);
4716   s = g (p, va_arg (v,int));
4717   va_end (v);
4718   return s;
4719 }
4720
4721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4722    function prototypes and stuff, but not '\xHH' hex character constants.
4723    These don't provoke an error unfortunately, instead are silently treated
4724    as 'x'.  The following induces an error, until -std is added to get
4725    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4726    array size at least.  It's necessary to write '\x00'==0 to get something
4727    that's true only with -std.  */
4728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729
4730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4731    inside strings and character constants.  */
4732 #define FOO(x) 'x'
4733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734
4735 int test (int i, double x);
4736 struct s1 {int (*f) (int a);};
4737 struct s2 {int (*f) (double a);};
4738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4739 int argc;
4740 char **argv;
4741 int
4742 main ()
4743 {
4744 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4750         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 do
4752   CC="$ac_save_CC $ac_arg"
4753   if ac_fn_c_try_compile "$LINENO"; then :
4754   ac_cv_prog_cc_c89=$ac_arg
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext
4757   test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 done
4759 rm -f conftest.$ac_ext
4760 CC=$ac_save_CC
4761
4762 fi
4763 # AC_CACHE_VAL
4764 case "x$ac_cv_prog_cc_c89" in
4765   x)
4766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4767 $as_echo "none needed" >&6; } ;;
4768   xno)
4769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 $as_echo "unsupported" >&6; } ;;
4771   *)
4772     CC="$CC $ac_cv_prog_cc_c89"
4773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 esac
4776 if test "x$ac_cv_prog_cc_c89" != xno; then :
4777   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4778 else
4779   ac_cv_prog_cc_stdc=no
4780 fi
4781
4782 fi
4783  ;;
4784 esac
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4786 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4787   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4788   $as_echo_n "(cached) " >&6
4789 fi
4790
4791   case $ac_cv_prog_cc_stdc in #(
4792   no) :
4793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4794 $as_echo "unsupported" >&6; } ;; #(
4795   '') :
4796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4797 $as_echo "none needed" >&6; } ;; #(
4798   *) :
4799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4800 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4801 esac
4802
4803 if test "x$CC" != xcc; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4805 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4808 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4809 fi
4810 set dummy $CC; ac_cc=`$as_echo "$2" |
4811                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4812 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h.  */
4817
4818 int
4819 main ()
4820 {
4821
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 # Make sure it works both with $CC and with simple cc.
4827 # We do the test twice because some compilers refuse to overwrite an
4828 # existing .o file with -o, though they will create one.
4829 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4830 rm -f conftest2.*
4831 if { { case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837   (eval "$ac_try") 2>&5
4838   ac_status=$?
4839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840   test $ac_status = 0; } &&
4841    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847   (eval "$ac_try") 2>&5
4848   ac_status=$?
4849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850   test $ac_status = 0; };
4851 then
4852   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4853   if test "x$CC" != xcc; then
4854     # Test first that cc exists at all.
4855     if { ac_try='cc -c conftest.$ac_ext >&5'
4856   { { case "(($ac_try" in
4857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858   *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861 $as_echo "$ac_try_echo"; } >&5
4862   (eval "$ac_try") 2>&5
4863   ac_status=$?
4864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865   test $ac_status = 0; }; }; then
4866       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4867       rm -f conftest2.*
4868       if { { case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874   (eval "$ac_try") 2>&5
4875   ac_status=$?
4876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877   test $ac_status = 0; } &&
4878          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880   *) ac_try_echo=$ac_try;;
4881 esac
4882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4883 $as_echo "$ac_try_echo"; } >&5
4884   (eval "$ac_try") 2>&5
4885   ac_status=$?
4886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887   test $ac_status = 0; };
4888       then
4889         # cc works too.
4890         :
4891       else
4892         # cc exists but doesn't like -o.
4893         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4894       fi
4895     fi
4896   fi
4897 else
4898   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4899 fi
4900 rm -f core conftest*
4901
4902 fi
4903 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 $as_echo "yes" >&6; }
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909
4910 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4911
4912 fi
4913
4914 # FIXME: we rely on the cache variable name because
4915 # there is no other way.
4916 set dummy $CC
4917 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4918 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4919 if test "$am_t" != yes; then
4920    # Losing compiler, so override with the script.
4921    # FIXME: It is wrong to rewrite CC.
4922    # But if we don't then we get into trouble of one sort or another.
4923    # A longer-term fix would be to have automake use am__CC in this case,
4924    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4925    CC="$am_aux_dir/compile $CC"
4926 fi
4927
4928
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4936 # On Suns, sometimes $CPP names a directory.
4937 if test -n "$CPP" && test -d "$CPP"; then
4938   CPP=
4939 fi
4940 if test -z "$CPP"; then
4941   if test "${ac_cv_prog_CPP+set}" = set; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944       # Double quotes because CPP needs to be expanded
4945     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4946     do
4947       ac_preproc_ok=false
4948 for ac_c_preproc_warn_flag in '' yes
4949 do
4950   # Use a header file that comes with gcc, so configuring glibc
4951   # with a fresh cross-compiler works.
4952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953   # <limits.h> exists even on freestanding compilers.
4954   # On the NeXT, cc -E runs the code through the compiler's parser,
4955   # not just through cpp. "Syntax error" is here to catch this case.
4956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h.  */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963                      Syntax error
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4966
4967 else
4968   # Broken: fails on valid input.
4969 continue
4970 fi
4971 rm -f conftest.err conftest.$ac_ext
4972
4973   # OK, works on sane cases.  Now check whether nonexistent headers
4974   # can be detected and how.
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980   # Broken: success on invalid input.
4981 continue
4982 else
4983   # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4986 fi
4987 rm -f conftest.err conftest.$ac_ext
4988
4989 done
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
4993   break
4994 fi
4995
4996     done
4997     ac_cv_prog_CPP=$CPP
4998
4999 fi
5000   CPP=$ac_cv_prog_CPP
5001 else
5002   ac_cv_prog_CPP=$CPP
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5005 $as_echo "$CPP" >&6; }
5006 ac_preproc_ok=false
5007 for ac_c_preproc_warn_flag in '' yes
5008 do
5009   # Use a header file that comes with gcc, so configuring glibc
5010   # with a fresh cross-compiler works.
5011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012   # <limits.h> exists even on freestanding compilers.
5013   # On the NeXT, cc -E runs the code through the compiler's parser,
5014   # not just through cpp. "Syntax error" is here to catch this case.
5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022                      Syntax error
5023 _ACEOF
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5025
5026 else
5027   # Broken: fails on valid input.
5028 continue
5029 fi
5030 rm -f conftest.err conftest.$ac_ext
5031
5032   # OK, works on sane cases.  Now check whether nonexistent headers
5033   # can be detected and how.
5034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h.  */
5036 #include <ac_nonexistent.h>
5037 _ACEOF
5038 if ac_fn_c_try_cpp "$LINENO"; then :
5039   # Broken: success on invalid input.
5040 continue
5041 else
5042   # Passes both tests.
5043 ac_preproc_ok=:
5044 break
5045 fi
5046 rm -f conftest.err conftest.$ac_ext
5047
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then :
5052
5053 else
5054   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5057 See \`config.log' for more details." "$LINENO" 5; }
5058 fi
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066 if test -n "$ac_tool_prefix"; then
5067   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}nm; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_NM+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   if test -n "$NM"; then
5075   ac_cv_prog_NM="$NM" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_prog_NM="${ac_tool_prefix}nm"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 NM=$ac_cv_prog_NM
5095 if test -n "$NM"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5097 $as_echo "$NM" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104 fi
5105 if test -z "$ac_cv_prog_NM"; then
5106   ac_ct_NM=$NM
5107   # Extract the first word of "nm", so it can be a program name with args.
5108 set dummy nm; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   if test -n "$ac_ct_NM"; then
5115   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124     ac_cv_prog_ac_ct_NM="nm"
5125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5135 if test -n "$ac_ct_NM"; then
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5137 $as_echo "$ac_ct_NM" >&6; }
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143   if test "x$ac_ct_NM" = x; then
5144     NM="nm"
5145   else
5146     case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152     NM=$ac_ct_NM
5153   fi
5154 else
5155   NM="$ac_cv_prog_NM"
5156 fi
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5159 $as_echo_n "checking whether ln -s works... " >&6; }
5160 LN_S=$as_ln_s
5161 if test "$LN_S" = "ln -s"; then
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163 $as_echo "yes" >&6; }
5164 else
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5166 $as_echo "no, using $LN_S" >&6; }
5167 fi
5168
5169 if test -n "$ac_tool_prefix"; then
5170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   if test -n "$RANLIB"; then
5178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 RANLIB=$ac_cv_prog_RANLIB
5198 if test -n "$RANLIB"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5200 $as_echo "$RANLIB" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_RANLIB"; then
5209   ac_ct_RANLIB=$RANLIB
5210   # Extract the first word of "ranlib", so it can be a program name with args.
5211 set dummy ranlib; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$ac_ct_RANLIB"; then
5218   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_prog_ac_ct_RANLIB="ranlib"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5238 if test -n "$ac_ct_RANLIB"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5240 $as_echo "$ac_ct_RANLIB" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246   if test "x$ac_ct_RANLIB" = x; then
5247     RANLIB=":"
5248   else
5249     case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255     RANLIB=$ac_ct_RANLIB
5256   fi
5257 else
5258   RANLIB="$ac_cv_prog_RANLIB"
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compliant shell" >&5
5262 $as_echo_n "checking for a POSIX-compliant shell... " >&6; }
5263    if test "${ac_cv_path_shell+set}" = set; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   ac_command='
5267         # Test the noclobber option, using the portable POSIX.2 syntax.
5268         set -C
5269         rm -f conftest.c
5270         >conftest.c || exit
5271         >|conftest.c || exit
5272         !>conftest.c || exit
5273         # Test that $(...) works.
5274         test "$(expr 3 + 4)" -eq 7 || exit
5275       '
5276       ac_cv_path_shell=no
5277
5278       case $SHELL in
5279       (/*)
5280         rm -f conftest.c
5281         if ("$SHELL" -c "$ac_command") 2>/dev/null; then
5282           ac_cv_path_shell=$SHELL
5283         fi
5284       esac
5285
5286       case $ac_cv_path_shell in
5287       (no)
5288         # Prefer shells that are more likely to be installed in the
5289         # same place on all hosts of this platform.  Therefore, prefer
5290         # shells in /bin and /usr/bin to shells in the installer's
5291         # PATH.  Also, loop through PATH first and then through
5292         # shells, since less-"nice" shells in /bin and /usr/bin are
5293         # more likely to be installed than "nicer" shells elsewhere.
5294         as_save_IFS=$IFS; IFS=:
5295         for as_dir in /bin /usr/bin $PATH
5296         do
5297           IFS=$as_save_IFS
5298           case $as_dir in
5299           (/*)
5300             for ac_base in sh bash ksh sh5; do
5301               rm -f conftest.c
5302               if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
5303                 ac_cv_path_shell=$as_dir/$ac_base
5304                 break
5305               fi
5306             done
5307             case $ac_cv_path_shell in
5308             (/*) break
5309             esac
5310           esac
5311         done
5312         rm -f conftest.c
5313       esac
5314 fi
5315
5316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_shell" >&5
5317 $as_echo "$ac_cv_path_shell" >&6; }
5318    SHELL=$ac_cv_path_shell
5319    if test "$SHELL" = no; then
5320      SHELL=/bin/sh
5321      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
5322 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
5323    fi
5324
5325
5326 # Make sure we can run config.sub.
5327 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5328   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5331 $as_echo_n "checking build system type... " >&6; }
5332 if test "${ac_cv_build+set}" = set; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   ac_build_alias=$build_alias
5336 test "x$ac_build_alias" = x &&
5337   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5338 test "x$ac_build_alias" = x &&
5339   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5340 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5341   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5342
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5345 $as_echo "$ac_cv_build" >&6; }
5346 case $ac_cv_build in
5347 *-*-*) ;;
5348 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5349 esac
5350 build=$ac_cv_build
5351 ac_save_IFS=$IFS; IFS='-'
5352 set x $ac_cv_build
5353 shift
5354 build_cpu=$1
5355 build_vendor=$2
5356 shift; shift
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5359 build_os=$*
5360 IFS=$ac_save_IFS
5361 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5365 $as_echo_n "checking host system type... " >&6; }
5366 if test "${ac_cv_host+set}" = set; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   if test "x$host_alias" = x; then
5370   ac_cv_host=$ac_cv_build
5371 else
5372   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5373     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5374 fi
5375
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5378 $as_echo "$ac_cv_host" >&6; }
5379 case $ac_cv_host in
5380 *-*-*) ;;
5381 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5382 esac
5383 host=$ac_cv_host
5384 ac_save_IFS=$IFS; IFS='-'
5385 set x $ac_cv_host
5386 shift
5387 host_cpu=$1
5388 host_vendor=$2
5389 shift; shift
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5392 host_os=$*
5393 IFS=$ac_save_IFS
5394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5395
5396
5397
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5400 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401 if test "${ac_cv_path_GREP+set}" = set; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   if test -z "$GREP"; then
5405   ac_path_GREP_found=false
5406   # Loop through the user's path and test for each of PROGNAME-LIST
5407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_prog in grep ggrep; do
5413     for ac_exec_ext in '' $ac_executable_extensions; do
5414       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5416 # Check for GNU ac_path_GREP and select it if it is found.
5417   # Check for GNU $ac_path_GREP
5418 case `"$ac_path_GREP" --version 2>&1` in
5419 *GNU*)
5420   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5421 *)
5422   ac_count=0
5423   $as_echo_n 0123456789 >"conftest.in"
5424   while :
5425   do
5426     cat "conftest.in" "conftest.in" >"conftest.tmp"
5427     mv "conftest.tmp" "conftest.in"
5428     cp "conftest.in" "conftest.nl"
5429     $as_echo 'GREP' >> "conftest.nl"
5430     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432     as_fn_arith $ac_count + 1 && ac_count=$as_val
5433     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434       # Best one so far, save it but keep looking for a better one
5435       ac_cv_path_GREP="$ac_path_GREP"
5436       ac_path_GREP_max=$ac_count
5437     fi
5438     # 10*(2^10) chars as input seems more than enough
5439     test $ac_count -gt 10 && break
5440   done
5441   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5442 esac
5443
5444       $ac_path_GREP_found && break 3
5445     done
5446   done
5447   done
5448 IFS=$as_save_IFS
5449   if test -z "$ac_cv_path_GREP"; then
5450     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5451   fi
5452 else
5453   ac_cv_path_GREP=$GREP
5454 fi
5455
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5458 $as_echo "$ac_cv_path_GREP" >&6; }
5459  GREP="$ac_cv_path_GREP"
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5463 $as_echo_n "checking for egrep... " >&6; }
5464 if test "${ac_cv_path_EGREP+set}" = set; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5468    then ac_cv_path_EGREP="$GREP -E"
5469    else
5470      if test -z "$EGREP"; then
5471   ac_path_EGREP_found=false
5472   # Loop through the user's path and test for each of PROGNAME-LIST
5473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_prog in egrep; do
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5481       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5482 # Check for GNU ac_path_EGREP and select it if it is found.
5483   # Check for GNU $ac_path_EGREP
5484 case `"$ac_path_EGREP" --version 2>&1` in
5485 *GNU*)
5486   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5487 *)
5488   ac_count=0
5489   $as_echo_n 0123456789 >"conftest.in"
5490   while :
5491   do
5492     cat "conftest.in" "conftest.in" >"conftest.tmp"
5493     mv "conftest.tmp" "conftest.in"
5494     cp "conftest.in" "conftest.nl"
5495     $as_echo 'EGREP' >> "conftest.nl"
5496     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498     as_fn_arith $ac_count + 1 && ac_count=$as_val
5499     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5500       # Best one so far, save it but keep looking for a better one
5501       ac_cv_path_EGREP="$ac_path_EGREP"
5502       ac_path_EGREP_max=$ac_count
5503     fi
5504     # 10*(2^10) chars as input seems more than enough
5505     test $ac_count -gt 10 && break
5506   done
5507   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5509
5510       $ac_path_EGREP_found && break 3
5511     done
5512   done
5513   done
5514 IFS=$as_save_IFS
5515   if test -z "$ac_cv_path_EGREP"; then
5516     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5517   fi
5518 else
5519   ac_cv_path_EGREP=$EGREP
5520 fi
5521
5522    fi
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5525 $as_echo "$ac_cv_path_EGREP" >&6; }
5526  EGREP="$ac_cv_path_EGREP"
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5530 $as_echo_n "checking for ANSI C header files... " >&6; }
5531 if test "${ac_cv_header_stdc+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536 #include <stdlib.h>
5537 #include <stdarg.h>
5538 #include <string.h>
5539 #include <float.h>
5540
5541 int
5542 main ()
5543 {
5544
5545   ;
5546   return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550   ac_cv_header_stdc=yes
5551 else
5552   ac_cv_header_stdc=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555
5556 if test $ac_cv_header_stdc = yes; then
5557   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h.  */
5560 #include <string.h>
5561
5562 _ACEOF
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564   $EGREP "memchr" >/dev/null 2>&1; then :
5565
5566 else
5567   ac_cv_header_stdc=no
5568 fi
5569 rm -f conftest*
5570
5571 fi
5572
5573 if test $ac_cv_header_stdc = yes; then
5574   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577 #include <stdlib.h>
5578
5579 _ACEOF
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581   $EGREP "free" >/dev/null 2>&1; then :
5582
5583 else
5584   ac_cv_header_stdc=no
5585 fi
5586 rm -f conftest*
5587
5588 fi
5589
5590 if test $ac_cv_header_stdc = yes; then
5591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5592   if test "$cross_compiling" = yes; then :
5593   :
5594 else
5595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597 #include <ctype.h>
5598 #include <stdlib.h>
5599 #if ((' ' & 0x0FF) == 0x020)
5600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5602 #else
5603 # define ISLOWER(c) \
5604                    (('a' <= (c) && (c) <= 'i') \
5605                      || ('j' <= (c) && (c) <= 'r') \
5606                      || ('s' <= (c) && (c) <= 'z'))
5607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5608 #endif
5609
5610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5611 int
5612 main ()
5613 {
5614   int i;
5615   for (i = 0; i < 256; i++)
5616     if (XOR (islower (i), ISLOWER (i))
5617         || toupper (i) != TOUPPER (i))
5618       return 2;
5619   return 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_run "$LINENO"; then :
5623
5624 else
5625   ac_cv_header_stdc=no
5626 fi
5627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5628   conftest.$ac_objext conftest.beam conftest.$ac_ext
5629 fi
5630
5631 fi
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5634 $as_echo "$ac_cv_header_stdc" >&6; }
5635 if test $ac_cv_header_stdc = yes; then
5636
5637 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5638
5639 fi
5640
5641 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5643                   inttypes.h stdint.h unistd.h
5644 do :
5645   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5646 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5647 "
5648 eval as_val=\$$as_ac_Header
5649    if test "x$as_val" = x""yes; then :
5650   cat >>confdefs.h <<_ACEOF
5651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 _ACEOF
5653
5654 fi
5655
5656 done
5657
5658
5659
5660
5661
5662   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5663 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5664   MINIX=yes
5665 else
5666   MINIX=
5667 fi
5668
5669
5670   if test "$MINIX" = yes; then
5671
5672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5673
5674
5675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5676
5677
5678 $as_echo "#define _MINIX 1" >>confdefs.h
5679
5680   fi
5681
5682         case "$host_os" in
5683     hpux*)
5684
5685 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5686
5687       ;;
5688   esac
5689
5690
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5692 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5693 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698
5699 #         define __EXTENSIONS__ 1
5700           $ac_includes_default
5701 int
5702 main ()
5703 {
5704
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710   ac_cv_safe_to_define___extensions__=yes
5711 else
5712   ac_cv_safe_to_define___extensions__=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5717 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5718   test $ac_cv_safe_to_define___extensions__ = yes &&
5719     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5720
5721   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5722
5723   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5724
5725   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5726
5727   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5728
5729
5730
5731
5732
5733
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5737 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_largefile_source+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   while :; do
5742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h.  */
5744 #include <sys/types.h> /* for off_t */
5745      #include <stdio.h>
5746 int
5747 main ()
5748 {
5749 int (*fp) (FILE *, off_t, int) = fseeko;
5750      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"; then :
5756   ac_cv_sys_largefile_source=no; break
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759     conftest$ac_exeext conftest.$ac_ext
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 #define _LARGEFILE_SOURCE 1
5763 #include <sys/types.h> /* for off_t */
5764      #include <stdio.h>
5765 int
5766 main ()
5767 {
5768 int (*fp) (FILE *, off_t, int) = fseeko;
5769      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 if ac_fn_c_try_link "$LINENO"; then :
5775   ac_cv_sys_largefile_source=1; break
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778     conftest$ac_exeext conftest.$ac_ext
5779   ac_cv_sys_largefile_source=unknown
5780   break
5781 done
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5784 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5785 case $ac_cv_sys_largefile_source in #(
5786   no | unknown) ;;
5787   *)
5788 cat >>confdefs.h <<_ACEOF
5789 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5790 _ACEOF
5791 ;;
5792 esac
5793 rm -rf conftest*
5794
5795 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5796 # in glibc 2.1.3, but that breaks too many other things.
5797 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5798 if test $ac_cv_sys_largefile_source != unknown; then
5799
5800 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5801
5802 fi
5803
5804
5805
5806
5807   # IEEE behaviour is the default on all CPUs except Alpha and SH
5808   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5809   # and the GCC 4.1.2 manual).
5810   case "$host_cpu" in
5811     alpha*)
5812       # On Alpha systems, a compiler option provides the behaviour.
5813       # See the ieee(3) manual page, also available at
5814       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5815       if test -n "$GCC"; then
5816         # GCC has the option -mieee.
5817         CPPFLAGS="$CPPFLAGS -mieee"
5818       else
5819         # Compaq (ex-DEC) C has the option -ieee.
5820         CPPFLAGS="$CPPFLAGS -ieee"
5821       fi
5822       ;;
5823     sh*)
5824       if test -n "$GCC"; then
5825         # GCC has the option -mieee.
5826         CPPFLAGS="$CPPFLAGS -mieee"
5827       fi
5828       ;;
5829   esac
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 # Check whether --enable-largefile was given.
5840 if test "${enable_largefile+set}" = set; then :
5841   enableval=$enable_largefile;
5842 fi
5843
5844 if test "$enable_largefile" != no; then
5845
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5848 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   ac_cv_sys_largefile_CC=no
5852      if test "$GCC" != yes; then
5853        ac_save_CC=$CC
5854        while :; do
5855          # IRIX 6.2 and later do not support large files by default,
5856          # so use the C compiler's -n32 option if that helps.
5857          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h.  */
5859 #include <sys/types.h>
5860  /* Check that off_t can represent 2**63 - 1 correctly.
5861     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5862     since some C++ compilers masquerading as C compilers
5863     incorrectly reject 9223372036854775807.  */
5864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5865   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5866                        && LARGE_OFF_T % 2147483647 == 1)
5867                       ? 1 : -1];
5868 int
5869 main ()
5870 {
5871
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
5876          if ac_fn_c_try_compile "$LINENO"; then :
5877   break
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext
5880          CC="$CC -n32"
5881          if ac_fn_c_try_compile "$LINENO"; then :
5882   ac_cv_sys_largefile_CC=' -n32'; break
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext
5885          break
5886        done
5887        CC=$ac_save_CC
5888        rm -f conftest.$ac_ext
5889     fi
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5893   if test "$ac_cv_sys_largefile_CC" != no; then
5894     CC=$CC$ac_cv_sys_largefile_CC
5895   fi
5896
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5899 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   while :; do
5903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 #include <sys/types.h>
5906  /* Check that off_t can represent 2**63 - 1 correctly.
5907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908     since some C++ compilers masquerading as C compilers
5909     incorrectly reject 9223372036854775807.  */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912                        && LARGE_OFF_T % 2147483647 == 1)
5913                       ? 1 : -1];
5914 int
5915 main ()
5916 {
5917
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923   ac_cv_sys_file_offset_bits=no; break
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928 #define _FILE_OFFSET_BITS 64
5929 #include <sys/types.h>
5930  /* Check that off_t can represent 2**63 - 1 correctly.
5931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5932     since some C++ compilers masquerading as C compilers
5933     incorrectly reject 9223372036854775807.  */
5934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5936                        && LARGE_OFF_T % 2147483647 == 1)
5937                       ? 1 : -1];
5938 int
5939 main ()
5940 {
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947   ac_cv_sys_file_offset_bits=64; break
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950   ac_cv_sys_file_offset_bits=unknown
5951   break
5952 done
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5956 case $ac_cv_sys_file_offset_bits in #(
5957   no | unknown) ;;
5958   *)
5959 cat >>confdefs.h <<_ACEOF
5960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5961 _ACEOF
5962 ;;
5963 esac
5964 rm -rf conftest*
5965   if test $ac_cv_sys_file_offset_bits = unknown; then
5966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5968 if test "${ac_cv_sys_large_files+set}" = set; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   while :; do
5972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h.  */
5974 #include <sys/types.h>
5975  /* Check that off_t can represent 2**63 - 1 correctly.
5976     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5977     since some C++ compilers masquerading as C compilers
5978     incorrectly reject 9223372036854775807.  */
5979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5980   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5981                        && LARGE_OFF_T % 2147483647 == 1)
5982                       ? 1 : -1];
5983 int
5984 main ()
5985 {
5986
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992   ac_cv_sys_large_files=no; break
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h.  */
5997 #define _LARGE_FILES 1
5998 #include <sys/types.h>
5999  /* Check that off_t can represent 2**63 - 1 correctly.
6000     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6001     since some C++ compilers masquerading as C compilers
6002     incorrectly reject 9223372036854775807.  */
6003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6004   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6005                        && LARGE_OFF_T % 2147483647 == 1)
6006                       ? 1 : -1];
6007 int
6008 main ()
6009 {
6010
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016   ac_cv_sys_large_files=1; break
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019   ac_cv_sys_large_files=unknown
6020   break
6021 done
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6024 $as_echo "$ac_cv_sys_large_files" >&6; }
6025 case $ac_cv_sys_large_files in #(
6026   no | unknown) ;;
6027   *)
6028 cat >>confdefs.h <<_ACEOF
6029 #define _LARGE_FILES $ac_cv_sys_large_files
6030 _ACEOF
6031 ;;
6032 esac
6033 rm -rf conftest*
6034   fi
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6044 # for constant arguments.  Useless!
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6046 $as_echo_n "checking for working alloca.h... " >&6; }
6047 if test "${ac_cv_working_alloca_h+set}" = set; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h.  */
6052 #include <alloca.h>
6053 int
6054 main ()
6055 {
6056 char *p = (char *) alloca (2 * sizeof (int));
6057                           if (p) return 0;
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_c_try_link "$LINENO"; then :
6063   ac_cv_working_alloca_h=yes
6064 else
6065   ac_cv_working_alloca_h=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068     conftest$ac_exeext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6071 $as_echo "$ac_cv_working_alloca_h" >&6; }
6072 if test $ac_cv_working_alloca_h = yes; then
6073
6074 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6075
6076 fi
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6079 $as_echo_n "checking for alloca... " >&6; }
6080 if test "${ac_cv_func_alloca_works+set}" = set; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h.  */
6085 #ifdef __GNUC__
6086 # define alloca __builtin_alloca
6087 #else
6088 # ifdef _MSC_VER
6089 #  include <malloc.h>
6090 #  define alloca _alloca
6091 # else
6092 #  ifdef HAVE_ALLOCA_H
6093 #   include <alloca.h>
6094 #  else
6095 #   ifdef _AIX
6096  #pragma alloca
6097 #   else
6098 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6099 char *alloca ();
6100 #    endif
6101 #   endif
6102 #  endif
6103 # endif
6104 #endif
6105
6106 int
6107 main ()
6108 {
6109 char *p = (char *) alloca (1);
6110                                     if (p) return 0;
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"; then :
6116   ac_cv_func_alloca_works=yes
6117 else
6118   ac_cv_func_alloca_works=no
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext \
6121     conftest$ac_exeext conftest.$ac_ext
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6124 $as_echo "$ac_cv_func_alloca_works" >&6; }
6125
6126 if test $ac_cv_func_alloca_works = yes; then
6127
6128 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6129
6130 else
6131   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6132 # that cause trouble.  Some versions do not even contain alloca or
6133 # contain a buggy version.  If you still want to use their alloca,
6134 # use ar to extract alloca.o from them instead of compiling alloca.c.
6135
6136
6137
6138
6139
6140 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6141
6142 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6146 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6147 if test "${ac_cv_os_cray+set}" = set; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h.  */
6152 #if defined CRAY && ! defined CRAY2
6153 webecray
6154 #else
6155 wenotbecray
6156 #endif
6157
6158 _ACEOF
6159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160   $EGREP "webecray" >/dev/null 2>&1; then :
6161   ac_cv_os_cray=yes
6162 else
6163   ac_cv_os_cray=no
6164 fi
6165 rm -f conftest*
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6169 $as_echo "$ac_cv_os_cray" >&6; }
6170 if test $ac_cv_os_cray = yes; then
6171   for ac_func in _getb67 GETB67 getb67; do
6172     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6174 eval as_val=\$$as_ac_var
6175    if test "x$as_val" = x""yes; then :
6176
6177 cat >>confdefs.h <<_ACEOF
6178 #define CRAY_STACKSEG_END $ac_func
6179 _ACEOF
6180
6181     break
6182 fi
6183
6184   done
6185 fi
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6188 $as_echo_n "checking stack direction for C alloca... " >&6; }
6189 if test "${ac_cv_c_stack_direction+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test "$cross_compiling" = yes; then :
6193   ac_cv_c_stack_direction=0
6194 else
6195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h.  */
6197 $ac_includes_default
6198 int
6199 find_stack_direction ()
6200 {
6201   static char *addr = 0;
6202   auto char dummy;
6203   if (addr == 0)
6204     {
6205       addr = &dummy;
6206       return find_stack_direction ();
6207     }
6208   else
6209     return (&dummy > addr) ? 1 : -1;
6210 }
6211
6212 int
6213 main ()
6214 {
6215   return find_stack_direction () < 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_run "$LINENO"; then :
6219   ac_cv_c_stack_direction=1
6220 else
6221   ac_cv_c_stack_direction=-1
6222 fi
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6224   conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 fi
6226
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6229 $as_echo "$ac_cv_c_stack_direction" >&6; }
6230 cat >>confdefs.h <<_ACEOF
6231 #define STACK_DIRECTION $ac_cv_c_stack_direction
6232 _ACEOF
6233
6234
6235 fi
6236
6237 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_size_t" = x""yes; then :
6239
6240 else
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define size_t unsigned int
6244 _ACEOF
6245
6246 fi
6247
6248
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
6250 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
6251 if test "${gl_cv_func_malloc_posix+set}" = set; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254
6255                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h.  */
6257
6258 int
6259 main ()
6260 {
6261 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6262          choke me
6263          #endif
6264
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270   gl_cv_func_malloc_posix=yes
6271 else
6272   gl_cv_func_malloc_posix=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275
6276 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
6278 $as_echo "$gl_cv_func_malloc_posix" >&6; }
6279
6280
6281   GNULIB_ATOLL=0;
6282   GNULIB_CALLOC_POSIX=0;
6283   GNULIB_CANONICALIZE_FILE_NAME=0;
6284   GNULIB_GETLOADAVG=0;
6285   GNULIB_GETSUBOPT=0;
6286   GNULIB_MALLOC_POSIX=0;
6287   GNULIB_MKDTEMP=0;
6288   GNULIB_MKOSTEMP=0;
6289   GNULIB_MKSTEMP=0;
6290   GNULIB_PUTENV=0;
6291   GNULIB_RANDOM_R=0;
6292   GNULIB_REALLOC_POSIX=0;
6293   GNULIB_REALPATH=0;
6294   GNULIB_RPMATCH=0;
6295   GNULIB_SETENV=0;
6296   GNULIB_STRTOD=0;
6297   GNULIB_STRTOLL=0;
6298   GNULIB_STRTOULL=0;
6299   GNULIB_UNSETENV=0;
6300     HAVE_ATOLL=1;
6301   HAVE_CALLOC_POSIX=1;
6302   HAVE_CANONICALIZE_FILE_NAME=1;
6303   HAVE_DECL_GETLOADAVG=1;
6304   HAVE_GETSUBOPT=1;
6305   HAVE_MALLOC_POSIX=1;
6306   HAVE_MKDTEMP=1;
6307   HAVE_MKOSTEMP=1;
6308   HAVE_RANDOM_R=1;
6309   HAVE_REALLOC_POSIX=1;
6310   HAVE_REALPATH=1;
6311   HAVE_RPMATCH=1;
6312   HAVE_SETENV=1;
6313   HAVE_STRTOD=1;
6314   HAVE_STRTOLL=1;
6315   HAVE_STRTOULL=1;
6316   HAVE_STRUCT_RANDOM_DATA=1;
6317   HAVE_SYS_LOADAVG_H=0;
6318   HAVE_UNSETENV=1;
6319   REPLACE_CANONICALIZE_FILE_NAME=0;
6320   REPLACE_MKSTEMP=0;
6321   REPLACE_PUTENV=0;
6322   REPLACE_REALPATH=0;
6323   REPLACE_STRTOD=0;
6324   VOID_UNSETENV=0;
6325
6326
6327   GNULIB_CHOWN=0;
6328   GNULIB_CLOSE=0;
6329   GNULIB_DUP2=0;
6330   GNULIB_DUP3=0;
6331   GNULIB_ENVIRON=0;
6332   GNULIB_EUIDACCESS=0;
6333   GNULIB_FACCESSAT=0;
6334   GNULIB_FCHDIR=0;
6335   GNULIB_FCHOWNAT=0;
6336   GNULIB_FSYNC=0;
6337   GNULIB_FTRUNCATE=0;
6338   GNULIB_GETCWD=0;
6339   GNULIB_GETDOMAINNAME=0;
6340   GNULIB_GETDTABLESIZE=0;
6341   GNULIB_GETHOSTNAME=0;
6342   GNULIB_GETLOGIN_R=0;
6343   GNULIB_GETPAGESIZE=0;
6344   GNULIB_GETUSERSHELL=0;
6345   GNULIB_LCHOWN=0;
6346   GNULIB_LINK=0;
6347   GNULIB_LINKAT=0;
6348   GNULIB_LSEEK=0;
6349   GNULIB_PIPE2=0;
6350   GNULIB_READLINK=0;
6351   GNULIB_READLINKAT=0;
6352   GNULIB_RMDIR=0;
6353   GNULIB_SLEEP=0;
6354   GNULIB_SYMLINK=0;
6355   GNULIB_SYMLINKAT=0;
6356   GNULIB_UNISTD_H_GETOPT=0;
6357   GNULIB_UNISTD_H_SIGPIPE=0;
6358   GNULIB_UNLINK=0;
6359   GNULIB_UNLINKAT=0;
6360   GNULIB_WRITE=0;
6361     HAVE_DUP2=1;
6362   HAVE_DUP3=1;
6363   HAVE_EUIDACCESS=1;
6364   HAVE_FACCESSAT=1;
6365   HAVE_FCHOWNAT=1;
6366   HAVE_FSYNC=1;
6367   HAVE_FTRUNCATE=1;
6368   HAVE_GETDOMAINNAME=1;
6369   HAVE_GETDTABLESIZE=1;
6370   HAVE_GETHOSTNAME=1;
6371   HAVE_GETPAGESIZE=1;
6372   HAVE_GETUSERSHELL=1;
6373   HAVE_LINK=1;
6374   HAVE_LINKAT=1;
6375   HAVE_PIPE2=1;
6376   HAVE_READLINK=1;
6377   HAVE_READLINKAT=1;
6378   HAVE_SLEEP=1;
6379   HAVE_SYMLINK=1;
6380   HAVE_SYMLINKAT=1;
6381   HAVE_DECL_ENVIRON=1;
6382   HAVE_DECL_GETLOGIN_R=1;
6383   HAVE_OS_H=0;
6384   HAVE_SYS_PARAM_H=0;
6385   HAVE_UNLINKAT=1;
6386   REPLACE_CHOWN=0;
6387   REPLACE_CLOSE=0;
6388   REPLACE_DUP=0;
6389   REPLACE_DUP2=0;
6390   REPLACE_FCHDIR=0;
6391   REPLACE_FCHOWNAT=0;
6392   REPLACE_GETCWD=0;
6393   REPLACE_GETPAGESIZE=0;
6394   REPLACE_LCHOWN=0;
6395   REPLACE_LINK=0;
6396   REPLACE_LINKAT=0;
6397   REPLACE_LSEEK=0;
6398   REPLACE_READLINK=0;
6399   REPLACE_RMDIR=0;
6400   REPLACE_SYMLINK=0;
6401   REPLACE_UNLINK=0;
6402   REPLACE_UNLINKAT=0;
6403   REPLACE_WRITE=0;
6404   UNISTD_H_HAVE_WINSOCK2_H=0;
6405   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6406
6407
6408
6409
6410
6411   for ac_func in $ac_func_list
6412 do :
6413   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6415 eval as_val=\$$as_ac_var
6416    if test "x$as_val" = x""yes; then :
6417   cat >>confdefs.h <<_ACEOF
6418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6419 _ACEOF
6420
6421 fi
6422 done
6423
6424
6425
6426
6427
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6429 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6430 if test "${gl_cv_have_include_next+set}" = set; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   rm -rf conftestd1a conftestd1b conftestd2
6434      mkdir conftestd1a conftestd1b conftestd2
6435                                                   cat <<EOF > conftestd1a/conftest.h
6436 #define DEFINED_IN_CONFTESTD1
6437 #include_next <conftest.h>
6438 #ifdef DEFINED_IN_CONFTESTD2
6439 int foo;
6440 #else
6441 #error "include_next doesn't work"
6442 #endif
6443 EOF
6444      cat <<EOF > conftestd1b/conftest.h
6445 #define DEFINED_IN_CONFTESTD1
6446 #include <stdio.h>
6447 #include_next <conftest.h>
6448 #ifdef DEFINED_IN_CONFTESTD2
6449 int foo;
6450 #else
6451 #error "include_next doesn't work"
6452 #endif
6453 EOF
6454      cat <<EOF > conftestd2/conftest.h
6455 #ifndef DEFINED_IN_CONFTESTD1
6456 #error "include_next test doesn't work"
6457 #endif
6458 #define DEFINED_IN_CONFTESTD2
6459 EOF
6460      gl_save_CPPFLAGS="$CPPFLAGS"
6461      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h.  */
6464 #include <conftest.h>
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467   gl_cv_have_include_next=yes
6468 else
6469   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h.  */
6472 #include <conftest.h>
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475   gl_cv_have_include_next=buggy
6476 else
6477   gl_cv_have_include_next=no
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483      CPPFLAGS="$gl_save_CPPFLAGS"
6484      rm -rf conftestd1a conftestd1b conftestd2
6485
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6488 $as_echo "$gl_cv_have_include_next" >&6; }
6489   PRAGMA_SYSTEM_HEADER=
6490   if test $gl_cv_have_include_next = yes; then
6491     INCLUDE_NEXT=include_next
6492     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6493     if test -n "$GCC"; then
6494       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6495     fi
6496   else
6497     if test $gl_cv_have_include_next = buggy; then
6498       INCLUDE_NEXT=include
6499       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6500     else
6501       INCLUDE_NEXT=include
6502       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6503     fi
6504   fi
6505
6506
6507
6508
6509
6510
6511
6512   for ac_header in $ac_header_list
6513 do :
6514   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6516 "
6517 eval as_val=\$$as_ac_Header
6518    if test "x$as_val" = x""yes; then :
6519   cat >>confdefs.h <<_ACEOF
6520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 _ACEOF
6522
6523 fi
6524
6525 done
6526
6527
6528
6529
6530
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6532 $as_echo_n "checking for complete errno.h... " >&6; }
6533 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536
6537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h.  */
6539
6540 #include <errno.h>
6541 #if !defined ENOMSG
6542 booboo
6543 #endif
6544 #if !defined EIDRM
6545 booboo
6546 #endif
6547 #if !defined ENOLINK
6548 booboo
6549 #endif
6550 #if !defined EPROTO
6551 booboo
6552 #endif
6553 #if !defined EMULTIHOP
6554 booboo
6555 #endif
6556 #if !defined EBADMSG
6557 booboo
6558 #endif
6559 #if !defined EOVERFLOW
6560 booboo
6561 #endif
6562 #if !defined ENOTSUP
6563 booboo
6564 #endif
6565 #if !defined ESTALE
6566 booboo
6567 #endif
6568 #if !defined ECANCELED
6569 booboo
6570 #endif
6571
6572 _ACEOF
6573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6574   $EGREP "booboo" >/dev/null 2>&1; then :
6575   gl_cv_header_errno_h_complete=no
6576 else
6577   gl_cv_header_errno_h_complete=yes
6578 fi
6579 rm -f conftest*
6580
6581
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6584 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6585   if test $gl_cv_header_errno_h_complete = yes; then
6586     ERRNO_H=''
6587   else
6588
6589
6590
6591
6592
6593
6594      if test $gl_cv_have_include_next = yes; then
6595        gl_cv_next_errno_h='<'errno.h'>'
6596      else
6597        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6598 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6599 if test "${gl_cv_next_errno_h+set}" = set; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602
6603           if test $ac_cv_header_errno_h = yes; then
6604             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h.  */
6606 #include <errno.h>
6607
6608 _ACEOF
6609                                                                     case "$host_os" in
6610               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6611               *)    gl_absname_cpp="$ac_cpp" ;;
6612             esac
6613                                     gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6614                sed -n '\#/errno.h#{
6615                  s#.*"\(.*/errno.h\)".*#\1#
6616                  s#^/[^/]#//&#
6617                  p
6618                  q
6619                }'`'"'
6620           else
6621             gl_cv_next_errno_h='<'errno.h'>'
6622           fi
6623
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6626 $as_echo "$gl_cv_next_errno_h" >&6; }
6627      fi
6628      NEXT_ERRNO_H=$gl_cv_next_errno_h
6629
6630      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6631        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6632        gl_next_as_first_directive='<'errno.h'>'
6633      else
6634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6635        gl_next_as_first_directive=$gl_cv_next_errno_h
6636      fi
6637      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6638
6639
6640
6641     ERRNO_H='errno.h'
6642   fi
6643
6644
6645   if test -n "$ERRNO_H"; then
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6647 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6648 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651
6652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h.  */
6654
6655 #include <errno.h>
6656 #ifdef EMULTIHOP
6657 yes
6658 #endif
6659
6660 _ACEOF
6661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662   $EGREP "yes" >/dev/null 2>&1; then :
6663   gl_cv_header_errno_h_EMULTIHOP=yes
6664 else
6665   gl_cv_header_errno_h_EMULTIHOP=no
6666 fi
6667 rm -f conftest*
6668
6669       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6670         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h.  */
6672
6673 #define _XOPEN_SOURCE_EXTENDED 1
6674 #include <errno.h>
6675 #ifdef EMULTIHOP
6676 yes
6677 #endif
6678
6679 _ACEOF
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681   $EGREP "yes" >/dev/null 2>&1; then :
6682   gl_cv_header_errno_h_EMULTIHOP=hidden
6683 fi
6684 rm -f conftest*
6685
6686         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6687                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
6688 #define _XOPEN_SOURCE_EXTENDED 1
6689 #include <errno.h>
6690 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6691 #include <stdio.h>
6692 #include <stdlib.h>
6693 "; then :
6694
6695 fi
6696
6697         fi
6698       fi
6699
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6702 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6703     case $gl_cv_header_errno_h_EMULTIHOP in
6704       yes | no)
6705         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6706         ;;
6707       *)
6708         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6709         ;;
6710     esac
6711
6712
6713   fi
6714
6715
6716   if test -n "$ERRNO_H"; then
6717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6718 $as_echo_n "checking for ENOLINK value... " >&6; }
6719 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722
6723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h.  */
6725
6726 #include <errno.h>
6727 #ifdef ENOLINK
6728 yes
6729 #endif
6730
6731 _ACEOF
6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733   $EGREP "yes" >/dev/null 2>&1; then :
6734   gl_cv_header_errno_h_ENOLINK=yes
6735 else
6736   gl_cv_header_errno_h_ENOLINK=no
6737 fi
6738 rm -f conftest*
6739
6740       if test $gl_cv_header_errno_h_ENOLINK = no; then
6741         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743
6744 #define _XOPEN_SOURCE_EXTENDED 1
6745 #include <errno.h>
6746 #ifdef ENOLINK
6747 yes
6748 #endif
6749
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752   $EGREP "yes" >/dev/null 2>&1; then :
6753   gl_cv_header_errno_h_ENOLINK=hidden
6754 fi
6755 rm -f conftest*
6756
6757         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6758                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
6759 #define _XOPEN_SOURCE_EXTENDED 1
6760 #include <errno.h>
6761 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6762 #include <stdio.h>
6763 #include <stdlib.h>
6764 "; then :
6765
6766 fi
6767
6768         fi
6769       fi
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6773 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6774     case $gl_cv_header_errno_h_ENOLINK in
6775       yes | no)
6776         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6777         ;;
6778       *)
6779         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6780         ;;
6781     esac
6782
6783
6784   fi
6785
6786
6787   if test -n "$ERRNO_H"; then
6788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6789 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6790 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793
6794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796
6797 #include <errno.h>
6798 #ifdef EOVERFLOW
6799 yes
6800 #endif
6801
6802 _ACEOF
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804   $EGREP "yes" >/dev/null 2>&1; then :
6805   gl_cv_header_errno_h_EOVERFLOW=yes
6806 else
6807   gl_cv_header_errno_h_EOVERFLOW=no
6808 fi
6809 rm -f conftest*
6810
6811       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6812         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h.  */
6814
6815 #define _XOPEN_SOURCE_EXTENDED 1
6816 #include <errno.h>
6817 #ifdef EOVERFLOW
6818 yes
6819 #endif
6820
6821 _ACEOF
6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823   $EGREP "yes" >/dev/null 2>&1; then :
6824   gl_cv_header_errno_h_EOVERFLOW=hidden
6825 fi
6826 rm -f conftest*
6827
6828         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6829                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
6830 #define _XOPEN_SOURCE_EXTENDED 1
6831 #include <errno.h>
6832 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6833 #include <stdio.h>
6834 #include <stdlib.h>
6835 "; then :
6836
6837 fi
6838
6839         fi
6840       fi
6841
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6844 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6845     case $gl_cv_header_errno_h_EOVERFLOW in
6846       yes | no)
6847         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6848         ;;
6849       *)
6850         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6851         ;;
6852     esac
6853
6854
6855   fi
6856
6857
6858 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
6859 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
6860   ac_have_decl=1
6861 else
6862   ac_have_decl=0
6863 fi
6864
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_DECL_STRERROR_R $ac_have_decl
6867 _ACEOF
6868
6869 for ac_func in strerror_r
6870 do :
6871   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
6872 if test "x$ac_cv_func_strerror_r" = x""yes; then :
6873   cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STRERROR_R 1
6875 _ACEOF
6876
6877 fi
6878 done
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
6881 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
6882 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885
6886     ac_cv_func_strerror_r_char_p=no
6887     if test $ac_cv_have_decl_strerror_r = yes; then
6888       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h.  */
6890 $ac_includes_default
6891 int
6892 main ()
6893 {
6894
6895           char buf[100];
6896           char x = *strerror_r (0, buf, sizeof buf);
6897           char *p = strerror_r (0, buf, sizeof buf);
6898           return !p || x;
6899
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905   ac_cv_func_strerror_r_char_p=yes
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908     else
6909       # strerror_r is not declared.  Choose between
6910       # systems that have relatively inaccessible declarations for the
6911       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
6912       # former has a strerror_r that returns char*, while the latter
6913       # has a strerror_r that returns `int'.
6914       # This test should segfault on the DEC system.
6915       if test "$cross_compiling" = yes; then :
6916   :
6917 else
6918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h.  */
6920 $ac_includes_default
6921         extern char *strerror_r ();
6922 int
6923 main ()
6924 {
6925 char buf[100];
6926           char x = *strerror_r (0, buf, sizeof buf);
6927           return ! isalpha (x);
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_run "$LINENO"; then :
6933   ac_cv_func_strerror_r_char_p=yes
6934 fi
6935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6936   conftest.$ac_objext conftest.beam conftest.$ac_ext
6937 fi
6938
6939     fi
6940
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
6943 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
6944 if test $ac_cv_func_strerror_r_char_p = yes; then
6945
6946 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
6947
6948 fi
6949
6950
6951   XGETTEXT_EXTRA_OPTIONS=
6952
6953
6954   GNULIB_DPRINTF=0;
6955   GNULIB_FCLOSE=0;
6956   GNULIB_FFLUSH=0;
6957   GNULIB_FOPEN=0;
6958   GNULIB_FPRINTF=0;
6959   GNULIB_FPRINTF_POSIX=0;
6960   GNULIB_FPURGE=0;
6961   GNULIB_FPUTC=0;
6962   GNULIB_FPUTS=0;
6963   GNULIB_FREOPEN=0;
6964   GNULIB_FSEEK=0;
6965   GNULIB_FSEEKO=0;
6966   GNULIB_FTELL=0;
6967   GNULIB_FTELLO=0;
6968   GNULIB_FWRITE=0;
6969   GNULIB_GETDELIM=0;
6970   GNULIB_GETLINE=0;
6971   GNULIB_OBSTACK_PRINTF=0;
6972   GNULIB_OBSTACK_PRINTF_POSIX=0;
6973   GNULIB_PERROR=0;
6974   GNULIB_POPEN=0;
6975   GNULIB_PRINTF=0;
6976   GNULIB_PRINTF_POSIX=0;
6977   GNULIB_PUTC=0;
6978   GNULIB_PUTCHAR=0;
6979   GNULIB_PUTS=0;
6980   GNULIB_REMOVE=0;
6981   GNULIB_RENAME=0;
6982   GNULIB_RENAMEAT=0;
6983   GNULIB_SNPRINTF=0;
6984   GNULIB_SPRINTF_POSIX=0;
6985   GNULIB_STDIO_H_SIGPIPE=0;
6986   GNULIB_VASPRINTF=0;
6987   GNULIB_VDPRINTF=0;
6988   GNULIB_VFPRINTF=0;
6989   GNULIB_VFPRINTF_POSIX=0;
6990   GNULIB_VPRINTF=0;
6991   GNULIB_VPRINTF_POSIX=0;
6992   GNULIB_VSNPRINTF=0;
6993   GNULIB_VSPRINTF_POSIX=0;
6994     HAVE_DECL_FPURGE=1;
6995   HAVE_DECL_GETDELIM=1;
6996   HAVE_DECL_GETLINE=1;
6997   HAVE_DECL_OBSTACK_PRINTF=1;
6998   HAVE_DECL_SNPRINTF=1;
6999   HAVE_DECL_VSNPRINTF=1;
7000   HAVE_DPRINTF=1;
7001   HAVE_FSEEKO=1;
7002   HAVE_FTELLO=1;
7003   HAVE_RENAMEAT=1;
7004   HAVE_VASPRINTF=1;
7005   HAVE_VDPRINTF=1;
7006   REPLACE_DPRINTF=0;
7007   REPLACE_FCLOSE=0;
7008   REPLACE_FFLUSH=0;
7009   REPLACE_FOPEN=0;
7010   REPLACE_FPRINTF=0;
7011   REPLACE_FPURGE=0;
7012   REPLACE_FREOPEN=0;
7013   REPLACE_FSEEK=0;
7014   REPLACE_FSEEKO=0;
7015   REPLACE_FTELL=0;
7016   REPLACE_FTELLO=0;
7017   REPLACE_GETLINE=0;
7018   REPLACE_OBSTACK_PRINTF=0;
7019   REPLACE_PERROR=0;
7020   REPLACE_POPEN=0;
7021   REPLACE_PRINTF=0;
7022   REPLACE_REMOVE=0;
7023   REPLACE_RENAME=0;
7024   REPLACE_RENAMEAT=0;
7025   REPLACE_SNPRINTF=0;
7026   REPLACE_SPRINTF=0;
7027   REPLACE_STDIO_WRITE_FUNCS=0;
7028   REPLACE_VASPRINTF=0;
7029   REPLACE_VDPRINTF=0;
7030   REPLACE_VFPRINTF=0;
7031   REPLACE_VPRINTF=0;
7032   REPLACE_VSNPRINTF=0;
7033   REPLACE_VSPRINTF=0;
7034
7035
7036   GNULIB_OPEN=0;
7037   GNULIB_OPENAT=0;
7038     HAVE_OPENAT=1;
7039   REPLACE_OPEN=0;
7040   REPLACE_OPENAT=0;
7041
7042
7043
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7045 $as_echo_n "checking for working fcntl.h... " >&6; }
7046 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test "$cross_compiling" = yes; then :
7050   gl_cv_header_working_fcntl_h=cross-compiling
7051 else
7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054 #include <sys/types.h>
7055            #include <sys/stat.h>
7056            #include <unistd.h>
7057            #include <fcntl.h>
7058            #ifndef O_NOATIME
7059             #define O_NOATIME 0
7060            #endif
7061            #ifndef O_NOFOLLOW
7062             #define O_NOFOLLOW 0
7063            #endif
7064            static int const constants[] =
7065             {
7066               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7067               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7068             };
7069
7070 int
7071 main ()
7072 {
7073
7074             int status = !constants;
7075             {
7076               static char const sym[] = "conftest.sym";
7077               if (symlink (".", sym) != 0
7078                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
7079                 status |= 32;
7080               unlink (sym);
7081             }
7082             {
7083               static char const file[] = "confdefs.h";
7084               int fd = open (file, O_RDONLY | O_NOATIME);
7085               char c;
7086               struct stat st0, st1;
7087               if (fd < 0
7088                   || fstat (fd, &st0) != 0
7089                   || sleep (1) != 0
7090                   || read (fd, &c, 1) != 1
7091                   || close (fd) != 0
7092                   || stat (file, &st1) != 0
7093                   || st0.st_atime != st1.st_atime)
7094                 status |= 64;
7095             }
7096             return status;
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_run "$LINENO"; then :
7102   gl_cv_header_working_fcntl_h=yes
7103 else
7104   case $? in #(
7105         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7106         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7107         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7108          *) gl_cv_header_working_fcntl_h='no';;
7109         esac
7110 fi
7111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7112   conftest.$ac_objext conftest.beam conftest.$ac_ext
7113 fi
7114
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7117 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7118
7119   case $gl_cv_header_working_fcntl_h in #(
7120   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7121   *) ac_val=1;;
7122   esac
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define HAVE_WORKING_O_NOATIME $ac_val
7126 _ACEOF
7127
7128
7129   case $gl_cv_header_working_fcntl_h in #(
7130   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7131   *) ac_val=1;;
7132   esac
7133
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7136 _ACEOF
7137
7138
7139
7140
7141 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7142 if test "x$ac_cv_type_mode_t" = x""yes; then :
7143
7144 else
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define mode_t int
7148 _ACEOF
7149
7150 fi
7151
7152
7153
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
7155 $as_echo_n "checking for promoted mode_t type... " >&6; }
7156 if test "${gl_cv_promoted_mode_t+set}" = set; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159
7160                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h.  */
7162 #include <sys/types.h>
7163 int
7164 main ()
7165 {
7166 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172   gl_cv_promoted_mode_t='int'
7173 else
7174   gl_cv_promoted_mode_t='mode_t'
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
7180 $as_echo "$gl_cv_promoted_mode_t" >&6; }
7181
7182 cat >>confdefs.h <<_ACEOF
7183 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
7184 _ACEOF
7185
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7188 $as_echo_n "checking for inline... " >&6; }
7189 if test "${ac_cv_c_inline+set}" = set; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   ac_cv_c_inline=no
7193 for ac_kw in inline __inline__ __inline; do
7194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h.  */
7196 #ifndef __cplusplus
7197 typedef int foo_t;
7198 static $ac_kw foo_t static_foo () {return 0; }
7199 $ac_kw foo_t foo () {return 0; }
7200 #endif
7201
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204   ac_cv_c_inline=$ac_kw
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207   test "$ac_cv_c_inline" != no && break
7208 done
7209
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7212 $as_echo "$ac_cv_c_inline" >&6; }
7213
7214 case $ac_cv_c_inline in
7215   inline | yes) ;;
7216   *)
7217     case $ac_cv_c_inline in
7218       no) ac_val=;;
7219       *) ac_val=$ac_cv_c_inline;;
7220     esac
7221     cat >>confdefs.h <<_ACEOF
7222 #ifndef __cplusplus
7223 #define inline $ac_val
7224 #endif
7225 _ACEOF
7226     ;;
7227 esac
7228
7229
7230
7231
7232
7233
7234
7235
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7237 $as_echo_n "checking for stdint.h... " >&6; }
7238 if test "${gl_cv_header_stdint_h+set}" = set; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h.  */
7243 #include <sys/types.h>
7244 #include <stdint.h>
7245 int
7246 main ()
7247 {
7248 uintmax_t i = (uintmax_t) -1; return !i;
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254   gl_cv_header_stdint_h=yes
7255 else
7256   gl_cv_header_stdint_h=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7261 $as_echo "$gl_cv_header_stdint_h" >&6; }
7262   if test $gl_cv_header_stdint_h = yes; then
7263
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_STDINT_H_WITH_UINTMAX 1
7266 _ACEOF
7267
7268   fi
7269
7270
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7272 $as_echo_n "checking for inttypes.h... " >&6; }
7273 if test "${gl_cv_header_inttypes_h+set}" = set; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <sys/types.h>
7279 #include <inttypes.h>
7280 int
7281 main ()
7282 {
7283 uintmax_t i = (uintmax_t) -1; return !i;
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289   gl_cv_header_inttypes_h=yes
7290 else
7291   gl_cv_header_inttypes_h=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7296 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7297   if test $gl_cv_header_inttypes_h = yes; then
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7301 _ACEOF
7302
7303   fi
7304
7305
7306
7307
7308
7309      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
7310 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
7311 if test "${gl_cv_func_printf_sizes_c99+set}" = set; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314
7315       if test "$cross_compiling" = yes; then :
7316
7317        case "$host_os" in
7318                                # Guess yes on glibc systems.
7319          *-gnu*)               gl_cv_func_printf_sizes_c99="guessing yes";;
7320                                # Guess yes on FreeBSD >= 5.
7321          freebsd[1-4]*)        gl_cv_func_printf_sizes_c99="guessing no";;
7322          freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7323                                # Guess yes on MacOS X >= 10.3.
7324          darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
7325          darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
7326                                # Guess yes on OpenBSD >= 3.9.
7327          openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
7328                                gl_cv_func_printf_sizes_c99="guessing no";;
7329          openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
7330                                # Guess yes on Solaris >= 2.10.
7331          solaris2.[0-9]*)      gl_cv_func_printf_sizes_c99="guessing no";;
7332          solaris*)             gl_cv_func_printf_sizes_c99="guessing yes";;
7333                                # Guess yes on NetBSD >= 3.
7334          netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7335                                gl_cv_func_printf_sizes_c99="guessing no";;
7336          netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
7337                                # If we don't know, assume the worst.
7338          *)                    gl_cv_func_printf_sizes_c99="guessing no";;
7339        esac
7340
7341 else
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344
7345 #include <stddef.h>
7346 #include <stdio.h>
7347 #include <string.h>
7348 #include <sys/types.h>
7349 #if HAVE_STDINT_H_WITH_UINTMAX
7350 # include <stdint.h>
7351 #endif
7352 #if HAVE_INTTYPES_H_WITH_UINTMAX
7353 # include <inttypes.h>
7354 #endif
7355 static char buf[100];
7356 int main ()
7357 {
7358 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
7359   buf[0] = '\0';
7360   if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
7361       || strcmp (buf, "12345671 33") != 0)
7362     return 1;
7363 #endif
7364   buf[0] = '\0';
7365   if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
7366       || strcmp (buf, "12345672 33") != 0)
7367     return 1;
7368   buf[0] = '\0';
7369   if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
7370       || strcmp (buf, "12345673 33") != 0)
7371     return 1;
7372   buf[0] = '\0';
7373   if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
7374       || strcmp (buf, "1.5 33") != 0)
7375     return 1;
7376   return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_run "$LINENO"; then :
7380   gl_cv_func_printf_sizes_c99=yes
7381 else
7382   gl_cv_func_printf_sizes_c99=no
7383 fi
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385   conftest.$ac_objext conftest.beam conftest.$ac_ext
7386 fi
7387
7388
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
7391 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
7392
7393
7394
7395      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
7396 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
7397 if test "${gl_cv_func_printf_long_double+set}" = set; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400
7401       if test "$cross_compiling" = yes; then :
7402
7403        case "$host_os" in
7404          beos*)        gl_cv_func_printf_long_double="guessing no";;
7405          mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
7406          *)            gl_cv_func_printf_long_double="guessing yes";;
7407        esac
7408
7409 else
7410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412
7413 #include <stdio.h>
7414 #include <string.h>
7415 static char buf[10000];
7416 int main ()
7417 {
7418   buf[0] = '\0';
7419   if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
7420       || strcmp (buf, "1.750000 33") != 0)
7421     return 1;
7422   buf[0] = '\0';
7423   if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
7424       || strcmp (buf, "1.750000e+00 33") != 0)
7425     return 1;
7426   buf[0] = '\0';
7427   if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
7428       || strcmp (buf, "1.75 33") != 0)
7429     return 1;
7430   return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_run "$LINENO"; then :
7434   gl_cv_func_printf_long_double=yes
7435 else
7436   gl_cv_func_printf_long_double=no
7437 fi
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439   conftest.$ac_objext conftest.beam conftest.$ac_ext
7440 fi
7441
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
7445 $as_echo "$gl_cv_func_printf_long_double" >&6; }
7446
7447
7448
7449      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
7450 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
7451 if test "${gl_cv_func_printf_infinite+set}" = set; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454
7455       if test "$cross_compiling" = yes; then :
7456
7457        case "$host_os" in
7458                                # Guess yes on glibc systems.
7459          *-gnu*)               gl_cv_func_printf_infinite="guessing yes";;
7460                                # Guess yes on FreeBSD >= 6.
7461          freebsd[1-5]*)        gl_cv_func_printf_infinite="guessing no";;
7462          freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
7463                                # Guess yes on MacOS X >= 10.3.
7464          darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
7465          darwin*)              gl_cv_func_printf_infinite="guessing yes";;
7466                                # Guess yes on HP-UX >= 11.
7467          hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
7468          hpux*)                gl_cv_func_printf_infinite="guessing yes";;
7469                                # Guess yes on NetBSD >= 3.
7470          netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7471                                gl_cv_func_printf_infinite="guessing no";;
7472          netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
7473                                # Guess yes on BeOS.
7474          beos*)                gl_cv_func_printf_infinite="guessing yes";;
7475                                # If we don't know, assume the worst.
7476          *)                    gl_cv_func_printf_infinite="guessing no";;
7477        esac
7478
7479 else
7480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482
7483 #include <stdio.h>
7484 #include <string.h>
7485 static int
7486 strisnan (const char *string, size_t start_index, size_t end_index)
7487 {
7488   if (start_index < end_index)
7489     {
7490       if (string[start_index] == '-')
7491         start_index++;
7492       if (start_index + 3 <= end_index
7493           && memcmp (string + start_index, "nan", 3) == 0)
7494         {
7495           start_index += 3;
7496           if (start_index == end_index
7497               || (string[start_index] == '(' && string[end_index - 1] == ')'))
7498             return 1;
7499         }
7500     }
7501   return 0;
7502 }
7503 static int
7504 have_minus_zero ()
7505 {
7506   static double plus_zero = 0.0;
7507   double minus_zero = - plus_zero;
7508   return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
7509 }
7510 static char buf[10000];
7511 static double zero = 0.0;
7512 int main ()
7513 {
7514   if (sprintf (buf, "%f", 1.0 / 0.0) < 0
7515       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7516     return 1;
7517   if (sprintf (buf, "%f", -1.0 / 0.0) < 0
7518       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7519     return 1;
7520   if (sprintf (buf, "%f", zero / zero) < 0
7521       || !strisnan (buf, 0, strlen (buf)))
7522     return 1;
7523   if (sprintf (buf, "%e", 1.0 / 0.0) < 0
7524       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7525     return 1;
7526   if (sprintf (buf, "%e", -1.0 / 0.0) < 0
7527       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7528     return 1;
7529   if (sprintf (buf, "%e", zero / zero) < 0
7530       || !strisnan (buf, 0, strlen (buf)))
7531     return 1;
7532   if (sprintf (buf, "%g", 1.0 / 0.0) < 0
7533       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7534     return 1;
7535   if (sprintf (buf, "%g", -1.0 / 0.0) < 0
7536       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7537     return 1;
7538   if (sprintf (buf, "%g", zero / zero) < 0
7539       || !strisnan (buf, 0, strlen (buf)))
7540     return 1;
7541   /* This test fails on HP-UX 10.20.  */
7542   if (have_minus_zero ())
7543     if (sprintf (buf, "%g", - zero) < 0
7544         || strcmp (buf, "-0") != 0)
7545     return 1;
7546   return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_run "$LINENO"; then :
7550   gl_cv_func_printf_infinite=yes
7551 else
7552   gl_cv_func_printf_infinite=no
7553 fi
7554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7555   conftest.$ac_objext conftest.beam conftest.$ac_ext
7556 fi
7557
7558
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
7561 $as_echo "$gl_cv_func_printf_infinite" >&6; }
7562
7563
7564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7565 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7566 if test "${ac_cv_c_bigendian+set}" = set; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   ac_cv_c_bigendian=unknown
7570     # See if we're dealing with a universal compiler.
7571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h.  */
7573 #ifndef __APPLE_CC__
7574                not a universal capable compiler
7575              #endif
7576              typedef int dummy;
7577
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580
7581         # Check for potential -arch flags.  It is not universal unless
7582         # there are at least two -arch flags with different values.
7583         ac_arch=
7584         ac_prev=
7585         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7586          if test -n "$ac_prev"; then
7587            case $ac_word in
7588              i?86 | x86_64 | ppc | ppc64)
7589                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7590                  ac_arch=$ac_word
7591                else
7592                  ac_cv_c_bigendian=universal
7593                  break
7594                fi
7595                ;;
7596            esac
7597            ac_prev=
7598          elif test "x$ac_word" = "x-arch"; then
7599            ac_prev=arch
7600          fi
7601        done
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604     if test $ac_cv_c_bigendian = unknown; then
7605       # See if sys/param.h defines the BYTE_ORDER macro.
7606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h.  */
7608 #include <sys/types.h>
7609              #include <sys/param.h>
7610
7611 int
7612 main ()
7613 {
7614 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7615                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7616                      && LITTLE_ENDIAN)
7617               bogus endian macros
7618              #endif
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625   # It does; now see whether it defined to BIG_ENDIAN or not.
7626          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h.  */
7628 #include <sys/types.h>
7629                 #include <sys/param.h>
7630
7631 int
7632 main ()
7633 {
7634 #if BYTE_ORDER != BIG_ENDIAN
7635                  not big endian
7636                 #endif
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643   ac_cv_c_bigendian=yes
7644 else
7645   ac_cv_c_bigendian=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650     fi
7651     if test $ac_cv_c_bigendian = unknown; then
7652       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #include <limits.h>
7656
7657 int
7658 main ()
7659 {
7660 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7661               bogus endian macros
7662              #endif
7663
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669   # It does; now see whether it defined to _BIG_ENDIAN or not.
7670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h.  */
7672 #include <limits.h>
7673
7674 int
7675 main ()
7676 {
7677 #ifndef _BIG_ENDIAN
7678                  not big endian
7679                 #endif
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686   ac_cv_c_bigendian=yes
7687 else
7688   ac_cv_c_bigendian=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693     fi
7694     if test $ac_cv_c_bigendian = unknown; then
7695       # Compile a test program.
7696       if test "$cross_compiling" = yes; then :
7697   # Try to guess by grepping values from an object file.
7698          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700 short int ascii_mm[] =
7701                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7702                 short int ascii_ii[] =
7703                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7704                 int use_ascii (int i) {
7705                   return ascii_mm[i] + ascii_ii[i];
7706                 }
7707                 short int ebcdic_ii[] =
7708                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7709                 short int ebcdic_mm[] =
7710                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7711                 int use_ebcdic (int i) {
7712                   return ebcdic_mm[i] + ebcdic_ii[i];
7713                 }
7714                 extern int foo;
7715
7716 int
7717 main ()
7718 {
7719 return use_ascii (foo) == use_ebcdic (foo);
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7726               ac_cv_c_bigendian=yes
7727             fi
7728             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7729               if test "$ac_cv_c_bigendian" = unknown; then
7730                 ac_cv_c_bigendian=no
7731               else
7732                 # finding both strings is unlikely to happen, but who knows?
7733                 ac_cv_c_bigendian=unknown
7734               fi
7735             fi
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 else
7739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h.  */
7741 $ac_includes_default
7742 int
7743 main ()
7744 {
7745
7746              /* Are we little or big endian?  From Harbison&Steele.  */
7747              union
7748              {
7749                long int l;
7750                char c[sizeof (long int)];
7751              } u;
7752              u.l = 1;
7753              return u.c[sizeof (long int) - 1] == 1;
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_run "$LINENO"; then :
7760   ac_cv_c_bigendian=no
7761 else
7762   ac_cv_c_bigendian=yes
7763 fi
7764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7765   conftest.$ac_objext conftest.beam conftest.$ac_ext
7766 fi
7767
7768     fi
7769 fi
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7771 $as_echo "$ac_cv_c_bigendian" >&6; }
7772  case $ac_cv_c_bigendian in #(
7773    yes)
7774      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7775 ;; #(
7776    no)
7777       ;; #(
7778    universal)
7779
7780 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7781
7782      ;; #(
7783    *)
7784      as_fn_error "unknown endianness
7785  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7786  esac
7787
7788
7789
7790
7791
7792
7793          if test -n "$gl_printf_safe"; then
7794
7795 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
7796
7797   fi
7798   case "$gl_cv_func_printf_long_double" in
7799     *yes)
7800       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
7801 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
7802 if test "${gl_cv_func_printf_infinite_long_double+set}" = set; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805
7806           if test "$cross_compiling" = yes; then :
7807
7808            case "$host_cpu" in
7809                                    # Guess no on ia64, x86_64, i386.
7810              ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
7811              *)
7812                case "$host_os" in
7813                                        # Guess yes on glibc systems.
7814                  *-gnu*)               gl_cv_func_printf_infinite_long_double="guessing yes";;
7815                                        # Guess yes on FreeBSD >= 6.
7816                  freebsd[1-5]*)        gl_cv_func_printf_infinite_long_double="guessing no";;
7817                  freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7818                                        # Guess yes on MacOS X >= 10.3.
7819                  darwin[1-6].*)        gl_cv_func_printf_infinite_long_double="guessing no";;
7820                  darwin*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
7821                                        # Guess yes on HP-UX >= 11.
7822                  hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
7823                  hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
7824                                        # Guess yes on NetBSD >= 3.
7825                  netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7826                                        gl_cv_func_printf_infinite_long_double="guessing no";;
7827                  netbsd*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
7828                                        # If we don't know, assume the worst.
7829                  *)                    gl_cv_func_printf_infinite_long_double="guessing no";;
7830                esac
7831                ;;
7832            esac
7833
7834 else
7835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837
7838
7839 #include <stdlib.h>
7840 #if defined __MACH__ && defined __APPLE__
7841 /* Avoid a crash on MacOS X.  */
7842 #include <mach/mach.h>
7843 #include <mach/mach_error.h>
7844 #include <mach/thread_status.h>
7845 #include <mach/exception.h>
7846 #include <mach/task.h>
7847 #include <pthread.h>
7848 /* The exception port on which our thread listens.  */
7849 static mach_port_t our_exception_port;
7850 /* The main function of the thread listening for exceptions of type
7851    EXC_BAD_ACCESS.  */
7852 static void *
7853 mach_exception_thread (void *arg)
7854 {
7855   /* Buffer for a message to be received.  */
7856   struct {
7857     mach_msg_header_t head;
7858     mach_msg_body_t msgh_body;
7859     char data[1024];
7860   } msg;
7861   mach_msg_return_t retval;
7862   /* Wait for a message on the exception port.  */
7863   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7864                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7865   if (retval != MACH_MSG_SUCCESS)
7866     abort ();
7867   exit (1);
7868 }
7869 static void
7870 nocrash_init (void)
7871 {
7872   mach_port_t self = mach_task_self ();
7873   /* Allocate a port on which the thread shall listen for exceptions.  */
7874   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7875       == KERN_SUCCESS) {
7876     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
7877     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7878                                 MACH_MSG_TYPE_MAKE_SEND)
7879         == KERN_SUCCESS) {
7880       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
7881          for us.  */
7882       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7883       /* Create the thread listening on the exception port.  */
7884       pthread_attr_t attr;
7885       pthread_t thread;
7886       if (pthread_attr_init (&attr) == 0
7887           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7888           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7889         pthread_attr_destroy (&attr);
7890         /* Replace the exception port info for these exceptions with our own.
7891            Note that we replace the exception port for the entire task, not only
7892            for a particular thread.  This has the effect that when our exception
7893            port gets the message, the thread specific exception port has already
7894            been asked, and we don't need to bother about it.
7895            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
7896         task_set_exception_ports (self, mask, our_exception_port,
7897                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7898       }
7899     }
7900   }
7901 }
7902 #else
7903 /* Avoid a crash on POSIX systems.  */
7904 #include <signal.h>
7905 /* A POSIX signal handler.  */
7906 static void
7907 exception_handler (int sig)
7908 {
7909   exit (1);
7910 }
7911 static void
7912 nocrash_init (void)
7913 {
7914 #ifdef SIGSEGV
7915   signal (SIGSEGV, exception_handler);
7916 #endif
7917 #ifdef SIGBUS
7918   signal (SIGBUS, exception_handler);
7919 #endif
7920 }
7921 #endif
7922
7923 #include <float.h>
7924 #include <stdio.h>
7925 #include <string.h>
7926 static int
7927 strisnan (const char *string, size_t start_index, size_t end_index)
7928 {
7929   if (start_index < end_index)
7930     {
7931       if (string[start_index] == '-')
7932         start_index++;
7933       if (start_index + 3 <= end_index
7934           && memcmp (string + start_index, "nan", 3) == 0)
7935         {
7936           start_index += 3;
7937           if (start_index == end_index
7938               || (string[start_index] == '(' && string[end_index - 1] == ')'))
7939             return 1;
7940         }
7941     }
7942   return 0;
7943 }
7944 static char buf[10000];
7945 static long double zeroL = 0.0L;
7946 int main ()
7947 {
7948   nocrash_init();
7949   if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
7950       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7951     return 1;
7952   if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
7953       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7954     return 1;
7955   if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
7956       || !strisnan (buf, 0, strlen (buf)))
7957     return 1;
7958   if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
7959       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7960     return 1;
7961   if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
7962       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7963     return 1;
7964   if (sprintf (buf, "%Le", zeroL / zeroL) < 0
7965       || !strisnan (buf, 0, strlen (buf)))
7966     return 1;
7967   if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
7968       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7969     return 1;
7970   if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
7971       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7972     return 1;
7973   if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
7974       || !strisnan (buf, 0, strlen (buf)))
7975     return 1;
7976 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
7977 /* Representation of an 80-bit 'long double' as an initializer for a sequence
7978    of 'unsigned int' words.  */
7979 # ifdef WORDS_BIGENDIAN
7980 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
7981      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
7982        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
7983        (unsigned int) (mantlo) << 16                                        \
7984      }
7985 # else
7986 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
7987      { mantlo, manthi, exponent }
7988 # endif
7989   { /* Quiet NaN.  */
7990     static union { unsigned int word[4]; long double value; } x =
7991       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
7992     if (sprintf (buf, "%Lf", x.value) < 0
7993         || !strisnan (buf, 0, strlen (buf)))
7994       return 1;
7995     if (sprintf (buf, "%Le", x.value) < 0
7996         || !strisnan (buf, 0, strlen (buf)))
7997       return 1;
7998     if (sprintf (buf, "%Lg", x.value) < 0
7999         || !strisnan (buf, 0, strlen (buf)))
8000       return 1;
8001   }
8002   {
8003     /* Signalling NaN.  */
8004     static union { unsigned int word[4]; long double value; } x =
8005       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
8006     if (sprintf (buf, "%Lf", x.value) < 0
8007         || !strisnan (buf, 0, strlen (buf)))
8008       return 1;
8009     if (sprintf (buf, "%Le", x.value) < 0
8010         || !strisnan (buf, 0, strlen (buf)))
8011       return 1;
8012     if (sprintf (buf, "%Lg", x.value) < 0
8013         || !strisnan (buf, 0, strlen (buf)))
8014       return 1;
8015   }
8016   { /* Pseudo-NaN.  */
8017     static union { unsigned int word[4]; long double value; } x =
8018       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
8019     if (sprintf (buf, "%Lf", x.value) < 0
8020         || !strisnan (buf, 0, strlen (buf)))
8021       return 1;
8022     if (sprintf (buf, "%Le", x.value) < 0
8023         || !strisnan (buf, 0, strlen (buf)))
8024       return 1;
8025     if (sprintf (buf, "%Lg", x.value) < 0
8026         || !strisnan (buf, 0, strlen (buf)))
8027       return 1;
8028   }
8029   { /* Pseudo-Infinity.  */
8030     static union { unsigned int word[4]; long double value; } x =
8031       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
8032     if (sprintf (buf, "%Lf", x.value) < 0
8033         || !strisnan (buf, 0, strlen (buf)))
8034       return 1;
8035     if (sprintf (buf, "%Le", x.value) < 0
8036         || !strisnan (buf, 0, strlen (buf)))
8037       return 1;
8038     if (sprintf (buf, "%Lg", x.value) < 0
8039         || !strisnan (buf, 0, strlen (buf)))
8040       return 1;
8041   }
8042   { /* Pseudo-Zero.  */
8043     static union { unsigned int word[4]; long double value; } x =
8044       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
8045     if (sprintf (buf, "%Lf", x.value) < 0
8046         || !strisnan (buf, 0, strlen (buf)))
8047       return 1;
8048     if (sprintf (buf, "%Le", x.value) < 0
8049         || !strisnan (buf, 0, strlen (buf)))
8050       return 1;
8051     if (sprintf (buf, "%Lg", x.value) < 0
8052         || !strisnan (buf, 0, strlen (buf)))
8053       return 1;
8054   }
8055   { /* Unnormalized number.  */
8056     static union { unsigned int word[4]; long double value; } x =
8057       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
8058     if (sprintf (buf, "%Lf", x.value) < 0
8059         || !strisnan (buf, 0, strlen (buf)))
8060       return 1;
8061     if (sprintf (buf, "%Le", x.value) < 0
8062         || !strisnan (buf, 0, strlen (buf)))
8063       return 1;
8064     if (sprintf (buf, "%Lg", x.value) < 0
8065         || !strisnan (buf, 0, strlen (buf)))
8066       return 1;
8067   }
8068   { /* Pseudo-Denormal.  */
8069     static union { unsigned int word[4]; long double value; } x =
8070       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
8071     if (sprintf (buf, "%Lf", x.value) < 0
8072         || !strisnan (buf, 0, strlen (buf)))
8073       return 1;
8074     if (sprintf (buf, "%Le", x.value) < 0
8075         || !strisnan (buf, 0, strlen (buf)))
8076       return 1;
8077     if (sprintf (buf, "%Lg", x.value) < 0
8078         || !strisnan (buf, 0, strlen (buf)))
8079       return 1;
8080   }
8081 #endif
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_run "$LINENO"; then :
8086   gl_cv_func_printf_infinite_long_double=yes
8087 else
8088   gl_cv_func_printf_infinite_long_double=no
8089 fi
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091   conftest.$ac_objext conftest.beam conftest.$ac_ext
8092 fi
8093
8094
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
8097 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
8098       ;;
8099     *)
8100       gl_cv_func_printf_infinite_long_double="irrelevant"
8101       ;;
8102   esac
8103
8104
8105
8106      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
8107 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
8108 if test "${gl_cv_func_printf_directive_a+set}" = set; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111
8112       if test "$cross_compiling" = yes; then :
8113
8114        case "$host_os" in
8115                                # Guess yes on glibc >= 2.5 systems.
8116          *-gnu*)
8117            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h.  */
8119
8120              #include <features.h>
8121              #ifdef __GNU_LIBRARY__
8122               #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)
8123                BZ2908
8124               #endif
8125              #endif
8126
8127 _ACEOF
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129   $EGREP "BZ2908" >/dev/null 2>&1; then :
8130   gl_cv_func_printf_directive_a="guessing yes"
8131 else
8132   gl_cv_func_printf_directive_a="guessing no"
8133 fi
8134 rm -f conftest*
8135
8136            ;;
8137                                # If we don't know, assume the worst.
8138          *)                    gl_cv_func_printf_directive_a="guessing no";;
8139        esac
8140
8141 else
8142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h.  */
8144
8145 #include <stdio.h>
8146 #include <string.h>
8147 static char buf[100];
8148 int main ()
8149 {
8150   if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
8151       || (strcmp (buf, "0x1.922p+1 33") != 0
8152           && strcmp (buf, "0x3.244p+0 33") != 0
8153           && strcmp (buf, "0x6.488p-1 33") != 0
8154           && strcmp (buf, "0xc.91p-2 33") != 0))
8155     return 1;
8156   if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
8157       || (strcmp (buf, "-0X1.922P+1 33") != 0
8158           && strcmp (buf, "-0X3.244P+0 33") != 0
8159           && strcmp (buf, "-0X6.488P-1 33") != 0
8160           && strcmp (buf, "-0XC.91P-2 33") != 0))
8161     return 1;
8162   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
8163   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
8164       || (strcmp (buf, "0x1.83p+0 33") != 0
8165           && strcmp (buf, "0x3.05p-1 33") != 0
8166           && strcmp (buf, "0x6.0ap-2 33") != 0
8167           && strcmp (buf, "0xc.14p-3 33") != 0))
8168     return 1;
8169   /* This catches a FreeBSD 6.1 bug.  See
8170      <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
8171   if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
8172       || buf[0] == '0')
8173     return 1;
8174   /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug.  */
8175   if (sprintf (buf, "%.1a", 1.999) < 0
8176       || (strcmp (buf, "0x1.0p+1") != 0
8177           && strcmp (buf, "0x2.0p+0") != 0
8178           && strcmp (buf, "0x4.0p-1") != 0
8179           && strcmp (buf, "0x8.0p-2") != 0))
8180     return 1;
8181   /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
8182      glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
8183   if (sprintf (buf, "%.1La", 1.999L) < 0
8184       || (strcmp (buf, "0x1.0p+1") != 0
8185           && strcmp (buf, "0x2.0p+0") != 0
8186           && strcmp (buf, "0x4.0p-1") != 0
8187           && strcmp (buf, "0x8.0p-2") != 0))
8188     return 1;
8189   return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_run "$LINENO"; then :
8193   gl_cv_func_printf_directive_a=yes
8194 else
8195   gl_cv_func_printf_directive_a=no
8196 fi
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8198   conftest.$ac_objext conftest.beam conftest.$ac_ext
8199 fi
8200
8201
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
8204 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
8205
8206
8207
8208      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
8209 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
8210 if test "${gl_cv_func_printf_directive_f+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213
8214       if test "$cross_compiling" = yes; then :
8215
8216        case "$host_os" in
8217                                # Guess yes on glibc systems.
8218          *-gnu*)               gl_cv_func_printf_directive_f="guessing yes";;
8219                                # Guess yes on FreeBSD >= 6.
8220          freebsd[1-5]*)        gl_cv_func_printf_directive_f="guessing no";;
8221          freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
8222                                # Guess yes on MacOS X >= 10.3.
8223          darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
8224          darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
8225                                # Guess yes on Solaris >= 2.10.
8226          solaris2.[0-9]*)      gl_cv_func_printf_directive_f="guessing no";;
8227          solaris*)             gl_cv_func_printf_directive_f="guessing yes";;
8228                                # If we don't know, assume the worst.
8229          *)                    gl_cv_func_printf_directive_f="guessing no";;
8230        esac
8231
8232 else
8233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h.  */
8235
8236 #include <stdio.h>
8237 #include <string.h>
8238 static char buf[100];
8239 int main ()
8240 {
8241   if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
8242       || strcmp (buf, "1234567.000000 33") != 0)
8243     return 1;
8244   if (sprintf (buf, "%F", 1.0 / 0.0) < 0
8245       || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
8246     return 1;
8247   /* This catches a Cygwin 1.5.x bug.  */
8248   if (sprintf (buf, "%.F", 1234.0) < 0
8249       || strcmp (buf, "1234") != 0)
8250     return 1;
8251   return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_run "$LINENO"; then :
8255   gl_cv_func_printf_directive_f=yes
8256 else
8257   gl_cv_func_printf_directive_f=no
8258 fi
8259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8260   conftest.$ac_objext conftest.beam conftest.$ac_ext
8261 fi
8262
8263
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
8266 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
8267
8268
8269
8270      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
8271 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
8272 if test "${gl_cv_func_printf_directive_n+set}" = set; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275
8276       if test "$cross_compiling" = yes; then :
8277
8278        case "$host_os" in
8279          *)     gl_cv_func_printf_directive_n="guessing yes";;
8280        esac
8281
8282 else
8283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h.  */
8285
8286 #include <stdio.h>
8287 #include <string.h>
8288 static char fmtstring[10];
8289 static char buf[100];
8290 int main ()
8291 {
8292   int count = -1;
8293   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
8294      support %n in format strings in read-only memory but not in writable
8295      memory.  */
8296   strcpy (fmtstring, "%d %n");
8297   if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
8298       || strcmp (buf, "123 ") != 0
8299       || count != 4)
8300     return 1;
8301   return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_run "$LINENO"; then :
8305   gl_cv_func_printf_directive_n=yes
8306 else
8307   gl_cv_func_printf_directive_n=no
8308 fi
8309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8310   conftest.$ac_objext conftest.beam conftest.$ac_ext
8311 fi
8312
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
8316 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
8317
8318
8319
8320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
8321 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
8322 if test "${gl_cv_func_printf_directive_ls+set}" = set; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325
8326       if test "$cross_compiling" = yes; then :
8327
8328        case "$host_os" in
8329          openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
8330          irix*)           gl_cv_func_printf_directive_ls="guessing no";;
8331          solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
8332          cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
8333          beos* | haiku*)  gl_cv_func_printf_directive_ls="guessing no";;
8334          *)               gl_cv_func_printf_directive_ls="guessing yes";;
8335        esac
8336
8337 else
8338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h.  */
8340
8341 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8342    <wchar.h>.
8343    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8344    included before <wchar.h>.  */
8345 #include <stddef.h>
8346 #include <stdio.h>
8347 #include <time.h>
8348 #include <wchar.h>
8349 #include <string.h>
8350 int main ()
8351 {
8352   char buf[100];
8353   /* Test whether %ls works at all.
8354      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
8355      Cygwin 1.5.  */
8356   {
8357     static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
8358     buf[0] = '\0';
8359     if (sprintf (buf, "%ls", wstring) < 0
8360         || strcmp (buf, "abc") != 0)
8361       return 1;
8362   }
8363   /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
8364      assertion failure inside libc), but not on OpenBSD 4.0.  */
8365   {
8366     static const wchar_t wstring[] = { 'a', 0 };
8367     buf[0] = '\0';
8368     if (sprintf (buf, "%ls", wstring) < 0
8369         || strcmp (buf, "a") != 0)
8370       return 1;
8371   }
8372   /* Test whether precisions in %ls are supported as specified in ISO C 99
8373      section 7.19.6.1:
8374        "If a precision is specified, no more than that many bytes are written
8375         (including shift sequences, if any), and the array shall contain a
8376         null wide character if, to equal the multibyte character sequence
8377         length given by the precision, the function would need to access a
8378         wide character one past the end of the array."
8379      This test fails on Solaris 10.  */
8380   {
8381     static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
8382     buf[0] = '\0';
8383     if (sprintf (buf, "%.2ls", wstring) < 0
8384         || strcmp (buf, "ab") != 0)
8385       return 1;
8386   }
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_run "$LINENO"; then :
8391   gl_cv_func_printf_directive_ls=yes
8392 else
8393   gl_cv_func_printf_directive_ls=no
8394 fi
8395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8396   conftest.$ac_objext conftest.beam conftest.$ac_ext
8397 fi
8398
8399
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
8402 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
8403
8404
8405
8406      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
8407 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
8408 if test "${gl_cv_func_printf_positions+set}" = set; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411
8412       if test "$cross_compiling" = yes; then :
8413
8414        case "$host_os" in
8415          netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
8416                        gl_cv_func_printf_positions="guessing no";;
8417          beos*)        gl_cv_func_printf_positions="guessing no";;
8418          mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
8419          *)            gl_cv_func_printf_positions="guessing yes";;
8420        esac
8421
8422 else
8423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h.  */
8425
8426 #include <stdio.h>
8427 #include <string.h>
8428 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8429    dollar expansion (possibly an autoconf bug).  */
8430 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8431 static char buf[100];
8432 int main ()
8433 {
8434   sprintf (buf, format, 33, 55);
8435   return (strcmp (buf, "55 33") != 0);
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_run "$LINENO"; then :
8439   gl_cv_func_printf_positions=yes
8440 else
8441   gl_cv_func_printf_positions=no
8442 fi
8443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8444   conftest.$ac_objext conftest.beam conftest.$ac_ext
8445 fi
8446
8447
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
8450 $as_echo "$gl_cv_func_printf_positions" >&6; }
8451
8452
8453
8454      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
8455 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
8456 if test "${gl_cv_func_printf_flag_grouping+set}" = set; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459
8460       if test "$cross_compiling" = yes; then :
8461
8462        case "$host_os" in
8463          cygwin*)      gl_cv_func_printf_flag_grouping="guessing no";;
8464          netbsd*)      gl_cv_func_printf_flag_grouping="guessing no";;
8465          mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
8466          *)            gl_cv_func_printf_flag_grouping="guessing yes";;
8467        esac
8468
8469 else
8470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h.  */
8472
8473 #include <stdio.h>
8474 #include <string.h>
8475 static char buf[100];
8476 int main ()
8477 {
8478   if (sprintf (buf, "%'d %d", 1234567, 99) < 0
8479       || buf[strlen (buf) - 1] != '9')
8480     return 1;
8481   return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_run "$LINENO"; then :
8485   gl_cv_func_printf_flag_grouping=yes
8486 else
8487   gl_cv_func_printf_flag_grouping=no
8488 fi
8489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8490   conftest.$ac_objext conftest.beam conftest.$ac_ext
8491 fi
8492
8493
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
8496 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
8497
8498
8499
8500      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
8501 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
8502 if test "${gl_cv_func_printf_flag_leftadjust+set}" = set; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505
8506       if test "$cross_compiling" = yes; then :
8507
8508          case "$host_os" in
8509                     # Guess yes on HP-UX 11.
8510            hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
8511                     # Guess no on HP-UX 10 and older.
8512            hpux*)   gl_cv_func_printf_flag_leftadjust="guessing no";;
8513                     # Guess yes otherwise.
8514            *)       gl_cv_func_printf_flag_leftadjust="guessing yes";;
8515          esac
8516
8517 else
8518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520
8521 #include <stdio.h>
8522 #include <string.h>
8523 static char buf[100];
8524 int main ()
8525 {
8526   /* Check that a '-' flag is not annihilated by a negative width.  */
8527   if (sprintf (buf, "a%-*sc", -3, "b") < 0
8528       || strcmp (buf, "ab  c") != 0)
8529     return 1;
8530   return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_run "$LINENO"; then :
8534   gl_cv_func_printf_flag_leftadjust=yes
8535 else
8536   gl_cv_func_printf_flag_leftadjust=no
8537 fi
8538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8539   conftest.$ac_objext conftest.beam conftest.$ac_ext
8540 fi
8541
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
8545 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
8546
8547
8548
8549      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
8550 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
8551 if test "${gl_cv_func_printf_flag_zero+set}" = set; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554
8555       if test "$cross_compiling" = yes; then :
8556
8557        case "$host_os" in
8558                  # Guess yes on glibc systems.
8559          *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
8560                  # Guess yes on BeOS.
8561          beos*)  gl_cv_func_printf_flag_zero="guessing yes";;
8562                  # If we don't know, assume the worst.
8563          *)      gl_cv_func_printf_flag_zero="guessing no";;
8564        esac
8565
8566 else
8567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h.  */
8569
8570 #include <stdio.h>
8571 #include <string.h>
8572 static char buf[100];
8573 int main ()
8574 {
8575   if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
8576       || (strcmp (buf, "       inf") != 0
8577           && strcmp (buf, "  infinity") != 0))
8578     return 1;
8579   return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_run "$LINENO"; then :
8583   gl_cv_func_printf_flag_zero=yes
8584 else
8585   gl_cv_func_printf_flag_zero=no
8586 fi
8587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8588   conftest.$ac_objext conftest.beam conftest.$ac_ext
8589 fi
8590
8591
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
8594 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
8595
8596
8597
8598      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
8599 $as_echo_n "checking whether printf supports large precisions... " >&6; }
8600 if test "${gl_cv_func_printf_precision+set}" = set; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603
8604       if test "$cross_compiling" = yes; then :
8605
8606        case "$host_os" in
8607          # Guess no only on native Win32 and BeOS systems.
8608          mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
8609          beos*)        gl_cv_func_printf_precision="guessing no" ;;
8610          *)            gl_cv_func_printf_precision="guessing yes" ;;
8611        esac
8612
8613 else
8614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h.  */
8616
8617 #include <stdio.h>
8618 #include <string.h>
8619 static char buf[5000];
8620 int main ()
8621 {
8622 #ifdef __BEOS__
8623   /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
8624   return 1;
8625 #endif
8626   if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
8627     return 1;
8628   return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_run "$LINENO"; then :
8632   gl_cv_func_printf_precision=yes
8633 else
8634   gl_cv_func_printf_precision=no
8635 fi
8636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637   conftest.$ac_objext conftest.beam conftest.$ac_ext
8638 fi
8639
8640
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
8643 $as_echo "$gl_cv_func_printf_precision" >&6; }
8644
8645
8646     gl_cv_c_multiarch=no
8647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h.  */
8649 #ifndef __APPLE_CC__
8650          not a universal capable compiler
8651         #endif
8652         typedef int dummy;
8653
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"; then :
8656
8657                arch=
8658      prev=
8659      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8660        if test -n "$prev"; then
8661          case $word in
8662            i?86 | x86_64 | ppc | ppc64)
8663              if test -z "$arch" || test "$arch" = "$word"; then
8664                arch="$word"
8665              else
8666                gl_cv_c_multiarch=yes
8667              fi
8668              ;;
8669          esac
8670          prev=
8671        else
8672          if test "x$word" = "x-arch"; then
8673            prev=arch
8674          fi
8675        fi
8676      done
8677
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680   if test $gl_cv_c_multiarch = yes; then
8681
8682 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8683
8684     APPLE_UNIVERSAL_BUILD=1
8685   else
8686     APPLE_UNIVERSAL_BUILD=0
8687   fi
8688
8689
8690
8691
8692
8693      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
8694 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
8695 if test "${gl_cv_func_printf_enomem+set}" = set; then :
8696   $as_echo_n "(cached) " >&6
8697 else
8698
8699       gl_cv_func_printf_enomem="guessing no"
8700       if test "$cross_compiling" = no; then
8701         if test $APPLE_UNIVERSAL_BUILD = 0; then
8702           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h.  */
8704
8705
8706 #include <stdlib.h>
8707 #if defined __MACH__ && defined __APPLE__
8708 /* Avoid a crash on MacOS X.  */
8709 #include <mach/mach.h>
8710 #include <mach/mach_error.h>
8711 #include <mach/thread_status.h>
8712 #include <mach/exception.h>
8713 #include <mach/task.h>
8714 #include <pthread.h>
8715 /* The exception port on which our thread listens.  */
8716 static mach_port_t our_exception_port;
8717 /* The main function of the thread listening for exceptions of type
8718    EXC_BAD_ACCESS.  */
8719 static void *
8720 mach_exception_thread (void *arg)
8721 {
8722   /* Buffer for a message to be received.  */
8723   struct {
8724     mach_msg_header_t head;
8725     mach_msg_body_t msgh_body;
8726     char data1024;
8727   } msg;
8728   mach_msg_return_t retval;
8729   /* Wait for a message on the exception port.  */
8730   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8731                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8732   if (retval != MACH_MSG_SUCCESS)
8733     abort ();
8734   exit (1);
8735 }
8736 static void
8737 nocrash_init (void)
8738 {
8739   mach_port_t self = mach_task_self ();
8740   /* Allocate a port on which the thread shall listen for exceptions.  */
8741   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8742       == KERN_SUCCESS) {
8743     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
8744     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8745                                 MACH_MSG_TYPE_MAKE_SEND)
8746         == KERN_SUCCESS) {
8747       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
8748          for us.  */
8749       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8750       /* Create the thread listening on the exception port.  */
8751       pthread_attr_t attr;
8752       pthread_t thread;
8753       if (pthread_attr_init (&attr) == 0
8754           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8755           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8756         pthread_attr_destroy (&attr);
8757         /* Replace the exception port info for these exceptions with our own.
8758            Note that we replace the exception port for the entire task, not only
8759            for a particular thread.  This has the effect that when our exception
8760            port gets the message, the thread specific exception port has already
8761            been asked, and we don't need to bother about it.
8762            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
8763         task_set_exception_ports (self, mask, our_exception_port,
8764                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8765       }
8766     }
8767   }
8768 }
8769 #else
8770 /* Avoid a crash on POSIX systems.  */
8771 #include <signal.h>
8772 /* A POSIX signal handler.  */
8773 static void
8774 exception_handler (int sig)
8775 {
8776   exit (1);
8777 }
8778 static void
8779 nocrash_init (void)
8780 {
8781 #ifdef SIGSEGV
8782   signal (SIGSEGV, exception_handler);
8783 #endif
8784 #ifdef SIGBUS
8785   signal (SIGBUS, exception_handler);
8786 #endif
8787 }
8788 #endif
8789
8790 #include <stdio.h>
8791 #include <sys/types.h>
8792 #include <sys/time.h>
8793 #include <sys/resource.h>
8794 #include <errno.h>
8795 int main()
8796 {
8797   struct rlimit limit;
8798   int ret;
8799   nocrash_init ();
8800   /* Some printf implementations allocate temporary space with malloc.  */
8801   /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
8802 #ifdef RLIMIT_DATA
8803   if (getrlimit (RLIMIT_DATA, &limit) < 0)
8804     return 77;
8805   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8806     limit.rlim_max = 5000000;
8807   limit.rlim_cur = limit.rlim_max;
8808   if (setrlimit (RLIMIT_DATA, &limit) < 0)
8809     return 77;
8810 #endif
8811   /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
8812 #ifdef RLIMIT_AS
8813   if (getrlimit (RLIMIT_AS, &limit) < 0)
8814     return 77;
8815   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8816     limit.rlim_max = 5000000;
8817   limit.rlim_cur = limit.rlim_max;
8818   if (setrlimit (RLIMIT_AS, &limit) < 0)
8819     return 77;
8820 #endif
8821   /* Some printf implementations allocate temporary space on the stack.  */
8822 #ifdef RLIMIT_STACK
8823   if (getrlimit (RLIMIT_STACK, &limit) < 0)
8824     return 77;
8825   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8826     limit.rlim_max = 5000000;
8827   limit.rlim_cur = limit.rlim_max;
8828   if (setrlimit (RLIMIT_STACK, &limit) < 0)
8829     return 77;
8830 #endif
8831   ret = printf ("%.5000000f", 1.0);
8832   return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
8833 }
8834
8835 _ACEOF
8836           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8837   (eval $ac_link) 2>&5
8838   ac_status=$?
8839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8841             (./conftest
8842              result=$?
8843              if test $result != 0 && test $result != 77; then result=1; fi
8844              exit $result
8845             ) >/dev/null 2>/dev/null
8846             case $? in
8847               0) gl_cv_func_printf_enomem="yes" ;;
8848               77) gl_cv_func_printf_enomem="guessing no" ;;
8849               *) gl_cv_func_printf_enomem="no" ;;
8850             esac
8851           else
8852             gl_cv_func_printf_enomem="guessing no"
8853           fi
8854           rm -fr conftest*
8855         else
8856                                         gl_cv_func_printf_enomem="guessing no"
8857         fi
8858       fi
8859       if test "$gl_cv_func_printf_enomem" = "guessing no"; then
8860         case "$host_os" in
8861                     # Guess yes on glibc systems.
8862           *-gnu*)   gl_cv_func_printf_enomem="guessing yes";;
8863                     # Guess yes on Solaris.
8864           solaris*) gl_cv_func_printf_enomem="guessing yes";;
8865                     # Guess yes on AIX.
8866           aix*)     gl_cv_func_printf_enomem="guessing yes";;
8867                     # Guess yes on HP-UX/hppa.
8868           hpux*)    case "$host_cpu" in
8869                       hppa*) gl_cv_func_printf_enomem="guessing yes";;
8870                       *)     gl_cv_func_printf_enomem="guessing no";;
8871                     esac
8872                     ;;
8873                     # Guess yes on IRIX.
8874           irix*)    gl_cv_func_printf_enomem="guessing yes";;
8875                     # Guess yes on OSF/1.
8876           osf*)     gl_cv_func_printf_enomem="guessing yes";;
8877                     # Guess yes on BeOS.
8878           beos*)    gl_cv_func_printf_enomem="guessing yes";;
8879                     # Guess yes on Haiku.
8880           haiku*)   gl_cv_func_printf_enomem="guessing yes";;
8881                     # If we don't know, assume the worst.
8882           *)        gl_cv_func_printf_enomem="guessing no";;
8883         esac
8884       fi
8885
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
8888 $as_echo "$gl_cv_func_printf_enomem" >&6; }
8889
8890
8891
8892   case "$gl_cv_func_printf_long_double" in
8893     *yes)
8894       ;;
8895     *)
8896
8897 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
8898
8899       ;;
8900   esac
8901
8902
8903
8904
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8906 $as_echo_n "checking for long long int... " >&6; }
8907 if test "${ac_cv_type_long_long_int+set}" = set; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h.  */
8912
8913   /* For now, do not test the preprocessor; as of 2007 there are too many
8914          implementations with broken preprocessors.  Perhaps this can
8915          be revisited in 2012.  In the meantime, code should not expect
8916          #if to work with literals wider than 32 bits.  */
8917       /* Test literals.  */
8918       long long int ll = 9223372036854775807ll;
8919       long long int nll = -9223372036854775807LL;
8920       unsigned long long int ull = 18446744073709551615ULL;
8921       /* Test constant expressions.   */
8922       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8923                      ? 1 : -1)];
8924       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8925                      ? 1 : -1)];
8926       int i = 63;
8927 int
8928 main ()
8929 {
8930 /* Test availability of runtime routines for shift and division.  */
8931       long long int llmax = 9223372036854775807ll;
8932       unsigned long long int ullmax = 18446744073709551615ull;
8933       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8934               | (llmax / ll) | (llmax % ll)
8935               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8936               | (ullmax / ull) | (ullmax % ull));
8937   ;
8938   return 0;
8939 }
8940
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943                         if test "$cross_compiling" = yes; then :
8944   ac_cv_type_long_long_int=yes
8945 else
8946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h.  */
8948 #include <limits.h>
8949                #ifndef LLONG_MAX
8950                # define HALF \
8951                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8952                # define LLONG_MAX (HALF - 1 + HALF)
8953                #endif
8954 int
8955 main ()
8956 {
8957 long long int n = 1;
8958                int i;
8959                for (i = 0; ; i++)
8960                  {
8961                    long long int m = n << i;
8962                    if (m >> i != n)
8963                      return 1;
8964                    if (LLONG_MAX / 2 < m)
8965                      break;
8966                  }
8967                return 0;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 if ac_fn_c_try_run "$LINENO"; then :
8973   ac_cv_type_long_long_int=yes
8974 else
8975   ac_cv_type_long_long_int=no
8976 fi
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8978   conftest.$ac_objext conftest.beam conftest.$ac_ext
8979 fi
8980
8981 else
8982   ac_cv_type_long_long_int=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985     conftest$ac_exeext conftest.$ac_ext
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8988 $as_echo "$ac_cv_type_long_long_int" >&6; }
8989   if test $ac_cv_type_long_long_int = yes; then
8990
8991 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8992
8993   fi
8994
8995
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8997 $as_echo_n "checking for wchar_t... " >&6; }
8998 if test "${gt_cv_c_wchar_t+set}" = set; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h.  */
9003 #include <stddef.h>
9004        wchar_t foo = (wchar_t)'\0';
9005 int
9006 main ()
9007 {
9008
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014   gt_cv_c_wchar_t=yes
9015 else
9016   gt_cv_c_wchar_t=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9021 $as_echo "$gt_cv_c_wchar_t" >&6; }
9022   if test $gt_cv_c_wchar_t = yes; then
9023
9024 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9025
9026   fi
9027
9028
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9030 $as_echo_n "checking for wint_t... " >&6; }
9031 if test "${gt_cv_c_wint_t+set}" = set; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h.  */
9036
9037 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9038    <wchar.h>.
9039    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9040    before <wchar.h>.  */
9041 #include <stddef.h>
9042 #include <stdio.h>
9043 #include <time.h>
9044 #include <wchar.h>
9045        wint_t foo = (wchar_t)'\0';
9046 int
9047 main ()
9048 {
9049
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055   gt_cv_c_wint_t=yes
9056 else
9057   gt_cv_c_wint_t=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9062 $as_echo "$gt_cv_c_wint_t" >&6; }
9063   if test $gt_cv_c_wint_t = yes; then
9064
9065 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9066
9067   fi
9068
9069
9070
9071
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9073 $as_echo_n "checking for intmax_t... " >&6; }
9074 if test "${gt_cv_c_intmax_t+set}" = set; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h.  */
9079
9080 #include <stddef.h>
9081 #include <stdlib.h>
9082 #if HAVE_STDINT_H_WITH_UINTMAX
9083 #include <stdint.h>
9084 #endif
9085 #if HAVE_INTTYPES_H_WITH_UINTMAX
9086 #include <inttypes.h>
9087 #endif
9088
9089 int
9090 main ()
9091 {
9092 intmax_t x = -1; return !x;
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098   gt_cv_c_intmax_t=yes
9099 else
9100   gt_cv_c_intmax_t=no
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9105 $as_echo "$gt_cv_c_intmax_t" >&6; }
9106   if test $gt_cv_c_intmax_t = yes; then
9107
9108 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9109
9110   else
9111
9112     test $ac_cv_type_long_long_int = yes \
9113       && ac_type='long long' \
9114       || ac_type='long'
9115
9116 cat >>confdefs.h <<_ACEOF
9117 #define intmax_t $ac_type
9118 _ACEOF
9119
9120   fi
9121
9122
9123
9124
9125
9126
9127   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
9128 do :
9129   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9131 eval as_val=\$$as_ac_var
9132    if test "x$as_val" = x""yes; then :
9133   cat >>confdefs.h <<_ACEOF
9134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9135 _ACEOF
9136
9137 fi
9138 done
9139
9140       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
9141 "
9142 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
9143   ac_have_decl=1
9144 else
9145   ac_have_decl=0
9146 fi
9147
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL__SNPRINTF $ac_have_decl
9150 _ACEOF
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160   GNULIB_CEILF=0;
9161   GNULIB_CEILL=0;
9162   GNULIB_FLOORF=0;
9163   GNULIB_FLOORL=0;
9164   GNULIB_FREXP=0;
9165   GNULIB_FREXPL=0;
9166   GNULIB_ISFINITE=0;
9167   GNULIB_ISINF=0;
9168   GNULIB_ISNAN=0;
9169   GNULIB_ISNANF=0;
9170   GNULIB_ISNAND=0;
9171   GNULIB_ISNANL=0;
9172   GNULIB_LDEXPL=0;
9173   GNULIB_MATHL=0;
9174   GNULIB_ROUND=0;
9175   GNULIB_ROUNDF=0;
9176   GNULIB_ROUNDL=0;
9177   GNULIB_SIGNBIT=0;
9178   GNULIB_TRUNC=0;
9179   GNULIB_TRUNCF=0;
9180   GNULIB_TRUNCL=0;
9181     HAVE_ISNANF=1;
9182   HAVE_ISNAND=1;
9183   HAVE_ISNANL=1;
9184   HAVE_DECL_ACOSL=1;
9185   HAVE_DECL_ASINL=1;
9186   HAVE_DECL_ATANL=1;
9187   HAVE_DECL_COSL=1;
9188   HAVE_DECL_EXPL=1;
9189   HAVE_DECL_FREXPL=1;
9190   HAVE_DECL_LDEXPL=1;
9191   HAVE_DECL_LOGL=1;
9192   HAVE_DECL_SINL=1;
9193   HAVE_DECL_SQRTL=1;
9194   HAVE_DECL_TANL=1;
9195   HAVE_DECL_TRUNC=1;
9196   HAVE_DECL_TRUNCF=1;
9197   REPLACE_CEILF=0;
9198   REPLACE_CEILL=0;
9199   REPLACE_FLOORF=0;
9200   REPLACE_FLOORL=0;
9201   REPLACE_FREXP=0;
9202   REPLACE_FREXPL=0;
9203   REPLACE_HUGE_VAL=0;
9204   REPLACE_ISFINITE=0;
9205   REPLACE_ISINF=0;
9206   REPLACE_ISNAN=0;
9207   REPLACE_LDEXPL=0;
9208   REPLACE_NAN=0;
9209   REPLACE_ROUND=0;
9210   REPLACE_ROUNDF=0;
9211   REPLACE_ROUNDL=0;
9212   REPLACE_SIGNBIT=0;
9213   REPLACE_SIGNBIT_USING_GCC=0;
9214   REPLACE_TRUNCL=0;
9215
9216
9217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
9218 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9219 if test "${gl_cv_var_stdin_large_offset+set}" = set; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h.  */
9224 #include <stdio.h>
9225 int
9226 main ()
9227 {
9228 #if defined __SL64 && defined __SCLE /* cygwin */
9229   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9230      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
9231      it is easier to do a version check than building a runtime test.  */
9232 # include <cygwin/version.h>
9233 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9234   choke me
9235 # endif
9236 #endif
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242   gl_cv_var_stdin_large_offset=yes
9243 else
9244   gl_cv_var_stdin_large_offset=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247     conftest$ac_exeext conftest.$ac_ext
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
9250 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264      if test $gl_cv_have_include_next = yes; then
9265        gl_cv_next_getopt_h='<'getopt.h'>'
9266      else
9267        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9268 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9269 if test "${gl_cv_next_getopt_h+set}" = set; then :
9270   $as_echo_n "(cached) " >&6
9271 else
9272
9273           if test $ac_cv_header_getopt_h = yes; then
9274             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h.  */
9276 #include <getopt.h>
9277
9278 _ACEOF
9279                                                                     case "$host_os" in
9280               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9281               *)    gl_absname_cpp="$ac_cpp" ;;
9282             esac
9283                                     gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9284                sed -n '\#/getopt.h#{
9285                  s#.*"\(.*/getopt.h\)".*#\1#
9286                  s#^/[^/]#//&#
9287                  p
9288                  q
9289                }'`'"'
9290           else
9291             gl_cv_next_getopt_h='<'getopt.h'>'
9292           fi
9293
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9296 $as_echo "$gl_cv_next_getopt_h" >&6; }
9297      fi
9298      NEXT_GETOPT_H=$gl_cv_next_getopt_h
9299
9300      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9301        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9302        gl_next_as_first_directive='<'getopt.h'>'
9303      else
9304        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9305        gl_next_as_first_directive=$gl_cv_next_getopt_h
9306      fi
9307      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9308
9309
9310
9311
9312   if test $ac_cv_header_getopt_h = yes; then
9313     HAVE_GETOPT_H=1
9314   else
9315     HAVE_GETOPT_H=0
9316   fi
9317
9318
9319   gl_replace_getopt=
9320
9321     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9322     for ac_header in getopt.h
9323 do :
9324   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9325 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9326   cat >>confdefs.h <<_ACEOF
9327 #define HAVE_GETOPT_H 1
9328 _ACEOF
9329
9330 else
9331   gl_replace_getopt=yes
9332 fi
9333
9334 done
9335
9336   fi
9337
9338     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9339     for ac_func in getopt_long_only
9340 do :
9341   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9342 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9343   cat >>confdefs.h <<_ACEOF
9344 #define HAVE_GETOPT_LONG_ONLY 1
9345 _ACEOF
9346
9347 else
9348   gl_replace_getopt=yes
9349 fi
9350 done
9351
9352   fi
9353
9354       if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9355     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
9356 "
9357 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
9358   gl_replace_getopt=yes
9359 fi
9360
9361   fi
9362
9363           if test -z "$gl_replace_getopt"; then
9364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9365 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9366 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369
9370                 if test "$cross_compiling" = yes; then :
9371   case "$host_os" in
9372              mingw*) gl_cv_func_getopt_posix="guessing no";;
9373              *)      gl_cv_func_getopt_posix="guessing yes";;
9374            esac
9375
9376 else
9377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h.  */
9379
9380 #include <unistd.h>
9381 #include <stdlib.h>
9382 #include <string.h>
9383
9384 /* The glibc implementation of getopt supports setting optind = 0 as a means
9385    of clearing the internal state, but other implementations don't.  */
9386 #if (__GLIBC__ >= 2)
9387 # define OPTIND_MIN 0
9388 #else
9389 # define OPTIND_MIN 1
9390 #endif
9391
9392 int
9393 main ()
9394 {
9395   {
9396     int argc = 0;
9397     char *argv[10];
9398     int c;
9399
9400     argv[argc++] = "program";
9401     argv[argc++] = "-a";
9402     argv[argc++] = "foo";
9403     argv[argc++] = "bar";
9404     optind = OPTIND_MIN;
9405     opterr = 0;
9406
9407     c = getopt (argc, argv, "ab");
9408     if (!(c == 'a'))
9409       return 1;
9410     c = getopt (argc, argv, "ab");
9411     if (!(c == -1))
9412       return 2;
9413     if (!(optind == 2))
9414       return 3;
9415   }
9416   /* Some internal state exists at this point.  */
9417   {
9418     int argc = 0;
9419     char *argv[10];
9420     int c;
9421
9422     argv[argc++] = "program";
9423     argv[argc++] = "donald";
9424     argv[argc++] = "-p";
9425     argv[argc++] = "billy";
9426     argv[argc++] = "duck";
9427     argv[argc++] = "-a";
9428     argv[argc++] = "bar";
9429     optind = OPTIND_MIN;
9430     opterr = 0;
9431
9432     c = getopt (argc, argv, "+abp:q:");
9433     if (!(c == -1))
9434       return 4;
9435     if (!(strcmp (argv[0], "program") == 0))
9436       return 5;
9437     if (!(strcmp (argv[1], "donald") == 0))
9438       return 6;
9439     if (!(strcmp (argv[2], "-p") == 0))
9440       return 7;
9441     if (!(strcmp (argv[3], "billy") == 0))
9442       return 8;
9443     if (!(strcmp (argv[4], "duck") == 0))
9444       return 9;
9445     if (!(strcmp (argv[5], "-a") == 0))
9446       return 10;
9447     if (!(strcmp (argv[6], "bar") == 0))
9448       return 11;
9449     if (!(optind == 1))
9450       return 12;
9451   }
9452
9453   return 0;
9454 }
9455
9456 _ACEOF
9457 if ac_fn_c_try_run "$LINENO"; then :
9458   gl_cv_func_getopt_posix=yes
9459 else
9460   gl_cv_func_getopt_posix=no
9461 fi
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9463   conftest.$ac_objext conftest.beam conftest.$ac_ext
9464 fi
9465
9466
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9469 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9470     case "$gl_cv_func_getopt_posix" in
9471       *no) gl_replace_getopt=yes ;;
9472     esac
9473   fi
9474
9475   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9477 $as_echo_n "checking for working GNU getopt function... " >&6; }
9478 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   if test "$cross_compiling" = yes; then :
9482            case "$host_os" in
9483            *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
9484            *)               gl_cv_func_getopt_gnu=yes;;
9485          esac
9486
9487 else
9488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h.  */
9490 #include <getopt.h>
9491                            #include <stddef.h>
9492                            #include <string.h>
9493 int
9494 main ()
9495 {
9496
9497              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9498                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9499                 OSF/1 5.1, Solaris 10.  */
9500              {
9501                char *myargv[3];
9502                myargv[0] = "conftest";
9503                myargv[1] = "-+";
9504                myargv[2] = 0;
9505                opterr = 0;
9506                if (getopt (2, myargv, "+a") != '?')
9507                  return 1;
9508              }
9509              /* This code succeeds on glibc 2.8, mingw,
9510                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9511                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin.  */
9512              {
9513                char *argv[] = { "program", "-p", "foo", "bar" };
9514
9515                optind = 1;
9516                if (getopt (4, argv, "p::") != 'p')
9517                  return 2;
9518                if (optarg != NULL)
9519                  return 3;
9520                if (getopt (4, argv, "p::") != -1)
9521                  return 4;
9522                if (optind != 2)
9523                  return 5;
9524              }
9525              return 0;
9526
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_run "$LINENO"; then :
9532   gl_cv_func_getopt_gnu=yes
9533 else
9534   gl_cv_func_getopt_gnu=no
9535 fi
9536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9537   conftest.$ac_objext conftest.beam conftest.$ac_ext
9538 fi
9539
9540
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9543 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9544     if test "$gl_cv_func_getopt_gnu" = "no"; then
9545       gl_replace_getopt=yes
9546     fi
9547   fi
9548
9549 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9550 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9551   ac_have_decl=1
9552 else
9553   ac_have_decl=0
9554 fi
9555
9556 cat >>confdefs.h <<_ACEOF
9557 #define HAVE_DECL_GETENV $ac_have_decl
9558 _ACEOF
9559
9560
9561
9562
9563
9564
9565   if test -n "$gl_replace_getopt"; then :
9566
9567
9568
9569   GETOPT_H=getopt.h
9570
9571 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9572
9573
9574
9575     GNULIB_UNISTD_H_GETOPT=1
9576
9577
9578
9579
9580
9581
9582
9583
9584   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9595
9596
9597
9598
9599
9600
9601 fi
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9612 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9613 if test "${ac_cv_c_restrict+set}" = set; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   ac_cv_c_restrict=no
9617    # The order here caters to the fact that C++ does not require restrict.
9618    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h.  */
9621 typedef int * int_ptr;
9622         int foo (int_ptr $ac_kw ip) {
9623         return ip[0];
9624        }
9625 int
9626 main ()
9627 {
9628 int s[1];
9629         int * $ac_kw t = s;
9630         t[0] = 0;
9631         return foo(t)
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 if ac_fn_c_try_compile "$LINENO"; then :
9637   ac_cv_c_restrict=$ac_kw
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640      test "$ac_cv_c_restrict" != no && break
9641    done
9642
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9645 $as_echo "$ac_cv_c_restrict" >&6; }
9646
9647  case $ac_cv_c_restrict in
9648    restrict) ;;
9649    no) $as_echo "#define restrict /**/" >>confdefs.h
9650  ;;
9651    *)  cat >>confdefs.h <<_ACEOF
9652 #define restrict $ac_cv_c_restrict
9653 _ACEOF
9654  ;;
9655  esac
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667      if test $gl_cv_have_include_next = yes; then
9668        gl_cv_next_sys_time_h='<'sys/time.h'>'
9669      else
9670        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9671 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9672 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675
9676           if test $ac_cv_header_sys_time_h = yes; then
9677             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h.  */
9679 #include <sys/time.h>
9680
9681 _ACEOF
9682                                                                     case "$host_os" in
9683               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9684               *)    gl_absname_cpp="$ac_cpp" ;;
9685             esac
9686                                     gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9687                sed -n '\#/sys/time.h#{
9688                  s#.*"\(.*/sys/time.h\)".*#\1#
9689                  s#^/[^/]#//&#
9690                  p
9691                  q
9692                }'`'"'
9693           else
9694             gl_cv_next_sys_time_h='<'sys/time.h'>'
9695           fi
9696
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9699 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9700      fi
9701      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9702
9703      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9704        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9705        gl_next_as_first_directive='<'sys/time.h'>'
9706      else
9707        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9708        gl_next_as_first_directive=$gl_cv_next_sys_time_h
9709      fi
9710      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9711
9712
9713
9714
9715   if test $ac_cv_header_sys_time_h = yes; then
9716     HAVE_SYS_TIME_H=1
9717   else
9718     HAVE_SYS_TIME_H=0
9719   fi
9720
9721
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9723 $as_echo_n "checking for struct timeval... " >&6; }
9724 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729 #if HAVE_SYS_TIME_H
9730              #include <sys/time.h>
9731             #endif
9732             #include <time.h>
9733
9734 int
9735 main ()
9736 {
9737 static struct timeval x; x.tv_sec = x.tv_usec;
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743   gl_cv_sys_struct_timeval=yes
9744 else
9745   gl_cv_sys_struct_timeval=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9750 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9751   if test $gl_cv_sys_struct_timeval = yes; then
9752     HAVE_STRUCT_TIMEVAL=1
9753   else
9754     HAVE_STRUCT_TIMEVAL=0
9755   fi
9756
9757
9758     REPLACE_GETTIMEOFDAY=0
9759
9760   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
9761     SYS_TIME_H=sys/time.h
9762   else
9763     SYS_TIME_H=
9764   fi
9765
9766
9767
9768
9769
9770
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
9772 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
9773 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776
9777       if test "$cross_compiling" = yes; then :
9778   gl_cv_cc_float_expbit0="word 0 bit 23"
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782
9783 #include <float.h>
9784 #include <stddef.h>
9785 #include <stdio.h>
9786 #include <string.h>
9787 #define NWORDS \
9788   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9789 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
9790 static unsigned int ored_words[NWORDS];
9791 static unsigned int anded_words[NWORDS];
9792 static void add_to_ored_words (float x)
9793 {
9794   memory_float m;
9795   size_t i;
9796   /* Clear it first, in case
9797      sizeof (float) < sizeof (memory_float).  */
9798   memset (&m, 0, sizeof (memory_float));
9799   m.value = x;
9800   for (i = 0; i < NWORDS; i++)
9801     {
9802       ored_words[i] |= m.word[i];
9803       anded_words[i] &= m.word[i];
9804     }
9805 }
9806 int main ()
9807 {
9808   size_t j;
9809   FILE *fp = fopen ("conftest.out", "w");
9810   if (fp == NULL)
9811     return 1;
9812   for (j = 0; j < NWORDS; j++)
9813     anded_words[j] = ~ (unsigned int) 0;
9814   add_to_ored_words (0.25f);
9815   add_to_ored_words (0.5f);
9816   add_to_ored_words (1.0f);
9817   add_to_ored_words (2.0f);
9818   add_to_ored_words (4.0f);
9819   /* Remove bits that are common (e.g. if representation of the first mantissa
9820      bit is explicit).  */
9821   for (j = 0; j < NWORDS; j++)
9822     ored_words[j] &= ~anded_words[j];
9823   /* Now find the nonzero word.  */
9824   for (j = 0; j < NWORDS; j++)
9825     if (ored_words[j] != 0)
9826       break;
9827   if (j < NWORDS)
9828     {
9829       size_t i;
9830       for (i = j + 1; i < NWORDS; i++)
9831         if (ored_words[i] != 0)
9832           {
9833             fprintf (fp, "unknown");
9834             return (fclose (fp) != 0);
9835           }
9836       for (i = 0; ; i++)
9837         if ((ored_words[j] >> i) & 1)
9838           {
9839             fprintf (fp, "word %d bit %d", (int) j, (int) i);
9840             return (fclose (fp) != 0);
9841           }
9842     }
9843   fprintf (fp, "unknown");
9844   return (fclose (fp) != 0);
9845 }
9846
9847 _ACEOF
9848 if ac_fn_c_try_run "$LINENO"; then :
9849   gl_cv_cc_float_expbit0=`cat conftest.out`
9850 else
9851   gl_cv_cc_float_expbit0="unknown"
9852 fi
9853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9854   conftest.$ac_objext conftest.beam conftest.$ac_ext
9855 fi
9856
9857       rm -f conftest.out
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
9861 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
9862   case "$gl_cv_cc_float_expbit0" in
9863     word*bit*)
9864       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9865       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
9866
9867 cat >>confdefs.h <<_ACEOF
9868 #define FLT_EXPBIT0_WORD $word
9869 _ACEOF
9870
9871
9872 cat >>confdefs.h <<_ACEOF
9873 #define FLT_EXPBIT0_BIT $bit
9874 _ACEOF
9875
9876       ;;
9877   esac
9878
9879
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9881 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9882 if test "${am_cv_langinfo_codeset+set}" = set; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887 #include <langinfo.h>
9888 int
9889 main ()
9890 {
9891 char* cs = nl_langinfo(CODESET); return !cs;
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897   am_cv_langinfo_codeset=yes
9898 else
9899   am_cv_langinfo_codeset=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902     conftest$ac_exeext conftest.$ac_ext
9903
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9906 $as_echo "$am_cv_langinfo_codeset" >&6; }
9907   if test $am_cv_langinfo_codeset = yes; then
9908
9909 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9910
9911   fi
9912
9913 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9914 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9915   ac_have_decl=1
9916 else
9917   ac_have_decl=0
9918 fi
9919
9920 cat >>confdefs.h <<_ACEOF
9921 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9922 _ACEOF
9923
9924
9925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9926 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9927 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h.  */
9932
9933 #include <features.h>
9934 #ifdef __GNU_LIBRARY__
9935  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9936   Lucky GNU user
9937  #endif
9938 #endif
9939
9940 _ACEOF
9941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9942   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9943   ac_cv_gnu_library_2_1=yes
9944 else
9945   ac_cv_gnu_library_2_1=no
9946 fi
9947 rm -f conftest*
9948
9949
9950
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9953 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9954
9955     GLIBC21="$ac_cv_gnu_library_2_1"
9956
9957
9958
9959      GNULIB_FCHMODAT=0;
9960   GNULIB_FSTATAT=0;
9961   GNULIB_FUTIMENS=0;
9962   GNULIB_LCHMOD=0;
9963   GNULIB_LSTAT=0;
9964   GNULIB_MKDIRAT=0;
9965   GNULIB_MKFIFOAT=0;
9966   GNULIB_MKNODAT=0;
9967   GNULIB_STAT=0;
9968   GNULIB_UTIMENSAT=0;
9969     HAVE_FCHMODAT=1;
9970   HAVE_FSTATAT=1;
9971   HAVE_FUTIMENS=1;
9972   HAVE_LCHMOD=1;
9973   HAVE_LSTAT=1;
9974   HAVE_MKDIRAT=1;
9975   HAVE_MKFIFOAT=1;
9976   HAVE_MKNODAT=1;
9977   HAVE_UTIMENSAT=1;
9978   REPLACE_FSTAT=0;
9979   REPLACE_FSTATAT=0;
9980   REPLACE_FUTIMENS=0;
9981   REPLACE_LSTAT=0;
9982   REPLACE_MKDIR=0;
9983   REPLACE_STAT=0;
9984   REPLACE_UTIMENSAT=0;
9985
9986
9987
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9989 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9990 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993   rm -f conftest.sym conftest.file
9994 echo >conftest.file
9995 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9996   if test "$cross_compiling" = yes; then :
9997   ac_cv_func_lstat_dereferences_slashed_symlink=no
9998 else
9999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h.  */
10001 $ac_includes_default
10002 int
10003 main ()
10004 {
10005 struct stat sbuf;
10006      /* Linux will dereference the symlink and fail, as required by POSIX.
10007         That is better in the sense that it means we will not
10008         have to compile and use the lstat wrapper.  */
10009      return lstat ("conftest.sym/", &sbuf) == 0;
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_run "$LINENO"; then :
10015   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10016 else
10017   ac_cv_func_lstat_dereferences_slashed_symlink=no
10018 fi
10019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10020   conftest.$ac_objext conftest.beam conftest.$ac_ext
10021 fi
10022
10023 else
10024   # If the `ln -s' command failed, then we probably don't even
10025   # have an lstat function.
10026   ac_cv_func_lstat_dereferences_slashed_symlink=no
10027 fi
10028 rm -f conftest.sym conftest.file
10029
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10032 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10033
10034 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10035
10036 cat >>confdefs.h <<_ACEOF
10037 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10038 _ACEOF
10039
10040
10041 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10042
10043
10044
10045
10046
10047
10048
10049
10050   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10051
10052 fi
10053
10054
10055
10056
10057   GNULIB_BTOWC=0;
10058   GNULIB_WCTOB=0;
10059   GNULIB_MBSINIT=0;
10060   GNULIB_MBRTOWC=0;
10061   GNULIB_MBRLEN=0;
10062   GNULIB_MBSRTOWCS=0;
10063   GNULIB_MBSNRTOWCS=0;
10064   GNULIB_WCRTOMB=0;
10065   GNULIB_WCSRTOMBS=0;
10066   GNULIB_WCSNRTOMBS=0;
10067   GNULIB_WCWIDTH=0;
10068     HAVE_BTOWC=1;
10069   HAVE_MBSINIT=1;
10070   HAVE_MBRTOWC=1;
10071   HAVE_MBRLEN=1;
10072   HAVE_MBSRTOWCS=1;
10073   HAVE_MBSNRTOWCS=1;
10074   HAVE_WCRTOMB=1;
10075   HAVE_WCSRTOMBS=1;
10076   HAVE_WCSNRTOMBS=1;
10077   HAVE_DECL_WCTOB=1;
10078   HAVE_DECL_WCWIDTH=1;
10079   REPLACE_MBSTATE_T=0;
10080   REPLACE_BTOWC=0;
10081   REPLACE_WCTOB=0;
10082   REPLACE_MBSINIT=0;
10083   REPLACE_MBRTOWC=0;
10084   REPLACE_MBRLEN=0;
10085   REPLACE_MBSRTOWCS=0;
10086   REPLACE_MBSNRTOWCS=0;
10087   REPLACE_WCRTOMB=0;
10088   REPLACE_WCSRTOMBS=0;
10089   REPLACE_WCSNRTOMBS=0;
10090   REPLACE_WCWIDTH=0;
10091   WCHAR_H='';
10092
10093
10094
10095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10096 $as_echo_n "checking for mbstate_t... " >&6; }
10097 if test "${ac_cv_type_mbstate_t+set}" = set; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h.  */
10102 $ac_includes_default
10103 #           include <wchar.h>
10104 int
10105 main ()
10106 {
10107 mbstate_t x; return sizeof x;
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113   ac_cv_type_mbstate_t=yes
10114 else
10115   ac_cv_type_mbstate_t=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10120 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10121    if test $ac_cv_type_mbstate_t = yes; then
10122
10123 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10124
10125    else
10126
10127 $as_echo "#define mbstate_t int" >>confdefs.h
10128
10129    fi
10130
10131
10132
10133
10134
10135
10136
10137
10138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10139 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10140 if test "${gt_cv_locale_ja+set}" = set; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143
10144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h.  */
10146
10147 #include <locale.h>
10148 #include <time.h>
10149 #if HAVE_LANGINFO_CODESET
10150 # include <langinfo.h>
10151 #endif
10152 #include <stdlib.h>
10153 #include <string.h>
10154 struct tm t;
10155 char buf[16];
10156 int main ()
10157 {
10158   const char *p;
10159   /* Check whether the given locale name is recognized by the system.  */
10160   if (setlocale (LC_ALL, "") == NULL) return 1;
10161   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10162      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10163      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10164      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10165      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10166      some unit tests fail.  */
10167 #if HAVE_LANGINFO_CODESET
10168   {
10169     const char *cs = nl_langinfo (CODESET);
10170     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10171       return 1;
10172   }
10173 #endif
10174 #ifdef __CYGWIN__
10175   /* On Cygwin, avoid locale names without encoding suffix, because the
10176      locale_charset() function relies on the encoding suffix.  Note that
10177      LC_ALL is set on the command line.  */
10178   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10179 #endif
10180   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
10181      on Cygwin 1.5.x.  */
10182   if (MB_CUR_MAX == 1)
10183     return 1;
10184   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10185      This excludes the UTF-8 encoding.  */
10186   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10187   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10188   for (p = buf; *p != '\0'; p++)
10189     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10190       return 1;
10191   return 0;
10192 }
10193
10194 _ACEOF
10195     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10196   (eval $ac_link) 2>&5
10197   ac_status=$?
10198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10200       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10201       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10202       # configure script would override the LC_ALL setting. Likewise for
10203       # LC_CTYPE, which is also set at the beginning of the configure script.
10204       # Test for the AIX locale name.
10205       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206         gt_cv_locale_ja=ja_JP
10207       else
10208         # Test for the locale name with explicit encoding suffix.
10209         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210           gt_cv_locale_ja=ja_JP.EUC-JP
10211         else
10212           # Test for the HP-UX, OSF/1, NetBSD locale name.
10213           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214             gt_cv_locale_ja=ja_JP.eucJP
10215           else
10216             # Test for the IRIX, FreeBSD locale name.
10217             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10218               gt_cv_locale_ja=ja_JP.EUC
10219             else
10220               # Test for the Solaris 7 locale name.
10221               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10222                 gt_cv_locale_ja=ja
10223               else
10224                 # Special test for NetBSD 1.6.
10225                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10226                   gt_cv_locale_ja=ja_JP.eucJP
10227                 else
10228                   # None found.
10229                   gt_cv_locale_ja=none
10230                 fi
10231               fi
10232             fi
10233           fi
10234         fi
10235       fi
10236     fi
10237     rm -fr conftest*
10238
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10241 $as_echo "$gt_cv_locale_ja" >&6; }
10242   LOCALE_JA=$gt_cv_locale_ja
10243
10244
10245
10246
10247
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10249 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10250 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10251   $as_echo_n "(cached) " >&6
10252 else
10253
10254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h.  */
10256
10257 #include <locale.h>
10258 #include <stdlib.h>
10259 #include <time.h>
10260 #if HAVE_LANGINFO_CODESET
10261 # include <langinfo.h>
10262 #endif
10263 #include <stdlib.h>
10264 #include <string.h>
10265 struct tm t;
10266 char buf[16];
10267 int main ()
10268 {
10269   const char *p;
10270   /* Check whether the given locale name is recognized by the system.  */
10271   if (setlocale (LC_ALL, "") == NULL) return 1;
10272   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10273      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10274      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10275      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10276      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10277      some unit tests fail.  */
10278 #if HAVE_LANGINFO_CODESET
10279   {
10280     const char *cs = nl_langinfo (CODESET);
10281     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10282       return 1;
10283   }
10284 #endif
10285 #ifdef __CYGWIN__
10286   /* On Cygwin, avoid locale names without encoding suffix, because the
10287      locale_charset() function relies on the encoding suffix.  Note that
10288      LC_ALL is set on the command line.  */
10289   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10290 #endif
10291   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10292      This excludes the UTF-8 encoding.  */
10293   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10294   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10295   for (p = buf; *p != '\0'; p++)
10296     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10297       return 1;
10298   /* Check whether a typical GB18030 multibyte sequence is recognized as a
10299      single wide character.  This excludes the GB2312 and GBK encodings.  */
10300   if (mblen ("\203\062\332\066", 5) != 4)
10301     return 1;
10302   return 0;
10303 }
10304
10305 _ACEOF
10306     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10307   (eval $ac_link) 2>&5
10308   ac_status=$?
10309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10311       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10312       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10313       # configure script would override the LC_ALL setting. Likewise for
10314       # LC_CTYPE, which is also set at the beginning of the configure script.
10315       # Test for the locale name without encoding suffix.
10316       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10317         gt_cv_locale_zh_CN=zh_CN
10318       else
10319         # Test for the locale name with explicit encoding suffix.
10320         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10321           gt_cv_locale_zh_CN=zh_CN.GB18030
10322         else
10323           # None found.
10324           gt_cv_locale_zh_CN=none
10325         fi
10326       fi
10327     else
10328       # If there was a link error, due to mblen(), the system is so old that
10329       # it certainly doesn't have a chinese locale.
10330       gt_cv_locale_zh_CN=none
10331     fi
10332     rm -fr conftest*
10333
10334 fi
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10336 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10337   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10338
10339
10340
10341
10342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10343 $as_echo_n "checking for a french Unicode locale... " >&6; }
10344 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347
10348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h.  */
10350
10351 #include <locale.h>
10352 #include <time.h>
10353 #if HAVE_LANGINFO_CODESET
10354 # include <langinfo.h>
10355 #endif
10356 #include <stdlib.h>
10357 #include <string.h>
10358 struct tm t;
10359 char buf[16];
10360 int main () {
10361   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
10362      imitates locale dependent behaviour by looking at the environment
10363      variables, and all locales use the UTF-8 encoding.  */
10364 #if !(defined __BEOS__ || defined __HAIKU__)
10365   /* Check whether the given locale name is recognized by the system.  */
10366   if (setlocale (LC_ALL, "") == NULL) return 1;
10367   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10368      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10369      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10370      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10371      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10372      some unit tests fail.  */
10373 # if HAVE_LANGINFO_CODESET
10374   {
10375     const char *cs = nl_langinfo (CODESET);
10376     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10377       return 1;
10378   }
10379 # endif
10380 # ifdef __CYGWIN__
10381   /* On Cygwin, avoid locale names without encoding suffix, because the
10382      locale_charset() function relies on the encoding suffix.  Note that
10383      LC_ALL is set on the command line.  */
10384   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10385 # endif
10386   /* Check whether in the abbreviation of the second month, the second
10387      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10388      two bytes long, with UTF-8 encoding.  */
10389   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10390   if (strftime (buf, sizeof (buf), "%b", &t) < 4
10391       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10392     return 1;
10393 #endif
10394   /* Check whether the decimal separator is a comma.
10395      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10396      are nl_langinfo(RADIXCHAR) are both ".".  */
10397   if (localeconv () ->decimal_point[0] != ',') return 1;
10398   return 0;
10399 }
10400
10401 _ACEOF
10402     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10403   (eval $ac_link) 2>&5
10404   ac_status=$?
10405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10407       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10408       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10409       # configure script would override the LC_ALL setting. Likewise for
10410       # LC_CTYPE, which is also set at the beginning of the configure script.
10411       # Test for the usual locale name.
10412       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10413         gt_cv_locale_fr_utf8=fr_FR
10414       else
10415         # Test for the locale name with explicit encoding suffix.
10416         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10417           gt_cv_locale_fr_utf8=fr_FR.UTF-8
10418         else
10419           # Test for the Solaris 7 locale name.
10420           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10421             gt_cv_locale_fr_utf8=fr.UTF-8
10422           else
10423             # None found.
10424             gt_cv_locale_fr_utf8=none
10425           fi
10426         fi
10427       fi
10428     fi
10429     rm -fr conftest*
10430
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10433 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10434   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10435
10436
10437
10438
10439
10440
10441
10442   GNULIB_MEMCHR=0;
10443   GNULIB_MEMMEM=0;
10444   GNULIB_MEMPCPY=0;
10445   GNULIB_MEMRCHR=0;
10446   GNULIB_RAWMEMCHR=0;
10447   GNULIB_STPCPY=0;
10448   GNULIB_STPNCPY=0;
10449   GNULIB_STRCHRNUL=0;
10450   GNULIB_STRDUP=0;
10451   GNULIB_STRNDUP=0;
10452   GNULIB_STRNLEN=0;
10453   GNULIB_STRPBRK=0;
10454   GNULIB_STRSEP=0;
10455   GNULIB_STRSTR=0;
10456   GNULIB_STRCASESTR=0;
10457   GNULIB_STRTOK_R=0;
10458   GNULIB_MBSLEN=0;
10459   GNULIB_MBSNLEN=0;
10460   GNULIB_MBSCHR=0;
10461   GNULIB_MBSRCHR=0;
10462   GNULIB_MBSSTR=0;
10463   GNULIB_MBSCASECMP=0;
10464   GNULIB_MBSNCASECMP=0;
10465   GNULIB_MBSPCASECMP=0;
10466   GNULIB_MBSCASESTR=0;
10467   GNULIB_MBSCSPN=0;
10468   GNULIB_MBSPBRK=0;
10469   GNULIB_MBSSPN=0;
10470   GNULIB_MBSSEP=0;
10471   GNULIB_MBSTOK_R=0;
10472   GNULIB_STRERROR=0;
10473   GNULIB_STRSIGNAL=0;
10474   GNULIB_STRVERSCMP=0;
10475     HAVE_DECL_MEMMEM=1;
10476   HAVE_MEMPCPY=1;
10477   HAVE_DECL_MEMRCHR=1;
10478   HAVE_RAWMEMCHR=1;
10479   HAVE_STPCPY=1;
10480   HAVE_STPNCPY=1;
10481   HAVE_STRCHRNUL=1;
10482   HAVE_DECL_STRDUP=1;
10483   HAVE_DECL_STRNDUP=1;
10484   HAVE_DECL_STRNLEN=1;
10485   HAVE_STRPBRK=1;
10486   HAVE_STRSEP=1;
10487   HAVE_STRCASESTR=1;
10488   HAVE_DECL_STRTOK_R=1;
10489   HAVE_DECL_STRERROR=1;
10490   HAVE_DECL_STRSIGNAL=1;
10491   HAVE_STRVERSCMP=1;
10492   REPLACE_MEMCHR=0;
10493   REPLACE_MEMMEM=0;
10494   REPLACE_STRDUP=0;
10495   REPLACE_STRSTR=0;
10496   REPLACE_STRCASESTR=0;
10497   REPLACE_STRERROR=0;
10498   REPLACE_STRNDUP=0;
10499   REPLACE_STRSIGNAL=0;
10500   REPLACE_STRTOK_R=0;
10501   UNDEFINE_STRTOK_R=0;
10502
10503
10504
10505
10506
10507
10508
10509
10510   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10511   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10512   # irrelevant for anonymous mappings.
10513   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10514 if test "x$ac_cv_func_mmap" = x""yes; then :
10515   gl_have_mmap=yes
10516 else
10517   gl_have_mmap=no
10518 fi
10519
10520
10521   # Try to allow MAP_ANONYMOUS.
10522   gl_have_mmap_anonymous=no
10523   if test $gl_have_mmap = yes; then
10524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10525 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h.  */
10528
10529 #include <sys/mman.h>
10530 #ifdef MAP_ANONYMOUS
10531     I cant identify this map.
10532 #endif
10533
10534 _ACEOF
10535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10536   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10537   gl_have_mmap_anonymous=yes
10538 fi
10539 rm -f conftest*
10540
10541     if test $gl_have_mmap_anonymous != yes; then
10542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h.  */
10544
10545 #include <sys/mman.h>
10546 #ifdef MAP_ANON
10547     I cant identify this map.
10548 #endif
10549
10550 _ACEOF
10551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10552   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10553
10554 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10555
10556          gl_have_mmap_anonymous=yes
10557 fi
10558 rm -f conftest*
10559
10560     fi
10561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10562 $as_echo "$gl_have_mmap_anonymous" >&6; }
10563     if test $gl_have_mmap_anonymous = yes; then
10564
10565 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10566
10567     fi
10568   fi
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582   for ac_func in memchr
10583 do :
10584   ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
10585 if test "x$ac_cv_func_memchr" = x""yes; then :
10586   cat >>confdefs.h <<_ACEOF
10587 #define HAVE_MEMCHR 1
10588 _ACEOF
10589
10590 else
10591
10592     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10593
10594 fi
10595 done
10596
10597
10598   if test $ac_cv_func_memchr = no; then
10599
10600   for ac_header in bp-sym.h
10601 do :
10602   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10603 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10604   cat >>confdefs.h <<_ACEOF
10605 #define HAVE_BP_SYM_H 1
10606 _ACEOF
10607
10608 fi
10609
10610 done
10611
10612
10613     REPLACE_MEMCHR=1
10614   fi
10615
10616   if test $ac_cv_func_memchr = yes; then
10617     # Detect platform-specific bugs in some versions of glibc:
10618     # memchr should not dereference anything with length 0
10619     #   http://bugzilla.redhat.com/499689
10620     # memchr should not dereference overestimated length after a match
10621     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10622     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10623     # Assume that memchr works on platforms that lack mprotect.
10624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10625 $as_echo_n "checking whether memchr works... " >&6; }
10626 if test "${gl_cv_func_memchr_works+set}" = set; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   if test "$cross_compiling" = yes; then :
10630          gl_cv_func_memchr_works="guessing no"
10631 else
10632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h.  */
10634
10635 #include <string.h>
10636 #if HAVE_SYS_MMAN_H
10637 # include <fcntl.h>
10638 # include <unistd.h>
10639 # include <sys/types.h>
10640 # include <sys/mman.h>
10641 # ifndef MAP_FILE
10642 #  define MAP_FILE 0
10643 # endif
10644 #endif
10645
10646 int
10647 main ()
10648 {
10649
10650   char *fence = NULL;
10651 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10652 # if HAVE_MAP_ANONYMOUS
10653   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10654   const int fd = -1;
10655 # else /* !HAVE_MAP_ANONYMOUS */
10656   const int flags = MAP_FILE | MAP_PRIVATE;
10657   int fd = open ("/dev/zero", O_RDONLY, 0666);
10658   if (fd >= 0)
10659 # endif
10660     {
10661       int pagesize = getpagesize ();
10662       char *two_pages =
10663         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10664                        flags, fd, 0);
10665       if (two_pages != (char *)(-1)
10666           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10667         fence = two_pages + pagesize;
10668     }
10669 #endif
10670   if (fence)
10671     {
10672       if (memchr (fence, 0, 0))
10673         return 1;
10674       strcpy (fence - 9, "12345678");
10675       if (memchr (fence - 9, 0, 79) != fence - 1)
10676         return 2;
10677     }
10678   return 0;
10679
10680   ;
10681   return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_run "$LINENO"; then :
10685   gl_cv_func_memchr_works=yes
10686 else
10687   gl_cv_func_memchr_works=no
10688 fi
10689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10690   conftest.$ac_objext conftest.beam conftest.$ac_ext
10691 fi
10692
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10695 $as_echo "$gl_cv_func_memchr_works" >&6; }
10696     if test "$gl_cv_func_memchr_works" != yes; then
10697
10698   for ac_header in bp-sym.h
10699 do :
10700   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10701 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10702   cat >>confdefs.h <<_ACEOF
10703 #define HAVE_BP_SYM_H 1
10704 _ACEOF
10705
10706 fi
10707
10708 done
10709
10710
10711       REPLACE_MEMCHR=1
10712
10713
10714
10715
10716
10717
10718
10719
10720   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10721
10722     fi
10723   fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740   gl_cv_func_vfprintf_posix=no
10741   case "$gl_cv_func_printf_sizes_c99" in
10742     *yes)
10743       case "$gl_cv_func_printf_long_double" in
10744         *yes)
10745           case "$gl_cv_func_printf_infinite" in
10746             *yes)
10747               case "$gl_cv_func_printf_infinite_long_double" in
10748                 *yes)
10749                   case "$gl_cv_func_printf_directive_a" in
10750                     *yes)
10751                       case "$gl_cv_func_printf_directive_f" in
10752                         *yes)
10753                           case "$gl_cv_func_printf_directive_n" in
10754                             *yes)
10755                               case "$gl_cv_func_printf_directive_ls" in
10756                                 *yes)
10757                                   case "$gl_cv_func_printf_positions" in
10758                                     *yes)
10759                                       case "$gl_cv_func_printf_flag_grouping" in
10760                                         *yes)
10761                                           case "$gl_cv_func_printf_flag_leftadjust" in
10762                                             *yes)
10763                                               case "$gl_cv_func_printf_flag_zero" in
10764                                                 *yes)
10765                                                   case "$gl_cv_func_printf_precision" in
10766                                                     *yes)
10767                                                       case "$gl_cv_func_printf_enomem" in
10768                                                         *yes)
10769                                                           # vfprintf exists and is
10770                                                           # already POSIX compliant.
10771                                                           gl_cv_func_vfprintf_posix=yes
10772                                                           ;;
10773                                                       esac
10774                                                       ;;
10775                                                   esac
10776                                                   ;;
10777                                               esac
10778                                               ;;
10779                                           esac
10780                                           ;;
10781                                       esac
10782                                       ;;
10783                                   esac
10784                                   ;;
10785                               esac
10786                               ;;
10787                           esac
10788                           ;;
10789                       esac
10790                       ;;
10791                   esac
10792                   ;;
10793               esac
10794               ;;
10795           esac
10796           ;;
10797       esac
10798       ;;
10799   esac
10800   if test $gl_cv_func_vfprintf_posix = no; then
10801
10802
10803
10804   case "$gl_cv_func_printf_infinite" in
10805     *yes)
10806       ;;
10807     *)
10808
10809 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
10810
10811       ;;
10812   esac
10813
10814
10815
10816
10817   case "$gl_cv_func_printf_long_double" in
10818     *yes)
10819       case "$gl_cv_func_printf_infinite_long_double" in
10820         *yes)
10821           ;;
10822         *)
10823
10824 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
10825
10826           ;;
10827       esac
10828       ;;
10829   esac
10830
10831
10832
10833   case "$gl_cv_func_printf_directive_a" in
10834     *yes)
10835       ;;
10836     *)
10837
10838 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
10839
10840       for ac_func in nl_langinfo
10841 do :
10842   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
10843 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
10844   cat >>confdefs.h <<_ACEOF
10845 #define HAVE_NL_LANGINFO 1
10846 _ACEOF
10847
10848 fi
10849 done
10850
10851       ;;
10852   esac
10853
10854
10855
10856   case "$gl_cv_func_printf_directive_f" in
10857     *yes)
10858       ;;
10859     *)
10860
10861 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
10862
10863       ;;
10864   esac
10865
10866
10867
10868   case "$gl_cv_func_printf_directive_ls" in
10869     *yes)
10870       ;;
10871     *)
10872
10873 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
10874
10875       ;;
10876   esac
10877
10878
10879
10880   case "$gl_cv_func_printf_flag_grouping" in
10881     *yes)
10882       ;;
10883     *)
10884
10885 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
10886
10887       ;;
10888   esac
10889
10890
10891
10892   case "$gl_cv_func_printf_flag_leftadjust" in
10893     *yes)
10894       ;;
10895     *)
10896
10897 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
10898
10899       ;;
10900   esac
10901
10902
10903
10904   case "$gl_cv_func_printf_flag_zero" in
10905     *yes)
10906       ;;
10907     *)
10908
10909 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
10910
10911       ;;
10912   esac
10913
10914
10915
10916   case "$gl_cv_func_printf_precision" in
10917     *yes)
10918       ;;
10919     *)
10920
10921 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
10922
10923
10924 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
10925
10926
10927 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
10928
10929       ;;
10930   esac
10931
10932
10933
10934   case "$gl_cv_func_printf_enomem" in
10935     *yes)
10936       ;;
10937     *)
10938
10939 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
10940
10941
10942 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
10943
10944
10945 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
10946
10947       ;;
10948   esac
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
10991
10992   if test $ac_cv_func_vasnprintf = yes; then
10993
10994 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
10995
10996   fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11008 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11009
11010 else
11011
11012 $as_echo "#define ptrdiff_t long" >>confdefs.h
11013
11014
11015 fi
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
11034
11035   REPLACE_VFPRINTF=1
11036
11037 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
11038
11039   :
11040
11041   fi
11042
11043
11044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11045 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11046 if test "${ac_cv_win_or_dos+set}" = set; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049
11050         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h.  */
11052
11053 int
11054 main ()
11055 {
11056
11057 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11058 neither MSDOS nor Windows
11059 #endif
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_compile "$LINENO"; then :
11065   ac_cv_win_or_dos=yes
11066 else
11067   ac_cv_win_or_dos=no
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11073 $as_echo "$ac_cv_win_or_dos" >&6; }
11074
11075     if test x"$ac_cv_win_or_dos" = xyes; then
11076       ac_fs_accepts_drive_letter_prefix=1
11077       ac_fs_backslash_is_file_name_separator=1
11078       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11079 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11080 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
11081   $as_echo_n "(cached) " >&6
11082 else
11083
11084           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h.  */
11086
11087 int
11088 main ()
11089 {
11090
11091 #if defined __CYGWIN__
11092 drive letters are always absolute
11093 #endif
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 if ac_fn_c_try_compile "$LINENO"; then :
11099   ac_cv_drive_letter_can_be_relative=yes
11100 else
11101   ac_cv_drive_letter_can_be_relative=no
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11107 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11108       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11109         ac_fs_drive_letter_can_be_relative=1
11110       else
11111         ac_fs_drive_letter_can_be_relative=0
11112       fi
11113     else
11114       ac_fs_accepts_drive_letter_prefix=0
11115       ac_fs_backslash_is_file_name_separator=0
11116       ac_fs_drive_letter_can_be_relative=0
11117     fi
11118
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11122 _ACEOF
11123
11124
11125
11126
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11130 _ACEOF
11131
11132
11133
11134 cat >>confdefs.h <<_ACEOF
11135 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11136 _ACEOF
11137
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11140 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11141 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11142   $as_echo_n "(cached) " >&6
11143 else
11144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h.  */
11146
11147           #include <stdbool.h>
11148           #ifndef bool
11149            "error: bool is not defined"
11150           #endif
11151           #ifndef false
11152            "error: false is not defined"
11153           #endif
11154           #if false
11155            "error: false is not 0"
11156           #endif
11157           #ifndef true
11158            "error: true is not defined"
11159           #endif
11160           #if true != 1
11161            "error: true is not 1"
11162           #endif
11163           #ifndef __bool_true_false_are_defined
11164            "error: __bool_true_false_are_defined is not defined"
11165           #endif
11166
11167           struct s { _Bool s: 1; _Bool t; } s;
11168
11169           char a[true == 1 ? 1 : -1];
11170           char b[false == 0 ? 1 : -1];
11171           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11172           char d[(bool) 0.5 == true ? 1 : -1];
11173           bool e = &s;
11174           char f[(_Bool) 0.0 == false ? 1 : -1];
11175           char g[true];
11176           char h[sizeof (_Bool)];
11177           char i[sizeof s.t];
11178           enum { j = false, k = true, l = false * true, m = true * 256 };
11179           _Bool n[m];
11180           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11181           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11182           #if defined __xlc__ || defined __GNUC__
11183            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11184               reported by James Lemley on 2005-10-05; see
11185               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11186               This test is not quite right, since xlc is allowed to
11187               reject this program, as the initializer for xlcbug is
11188               not one of the forms that C requires support for.
11189               However, doing the test right would require a run-time
11190               test, and that would make cross-compilation harder.
11191               Let us hope that IBM fixes the xlc bug, and also adds
11192               support for this kind of constant expression.  In the
11193               meantime, this test will reject xlc, which is OK, since
11194               our stdbool.h substitute should suffice.  We also test
11195               this with GCC, where it should work, to detect more
11196               quickly whether someone messes up the test in the
11197               future.  */
11198            char digs[] = "0123456789";
11199            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11200           #endif
11201           /* Catch a bug in an HP-UX C compiler.  See
11202              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11203              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11204            */
11205           _Bool q = true;
11206           _Bool *pq = &q;
11207
11208 int
11209 main ()
11210 {
11211
11212           *pq |= q;
11213           *pq |= ! q;
11214           /* Refer to every declared value, to avoid compiler optimizations.  */
11215           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11216                   + !m + !n + !o + !p + !q + !pq);
11217
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_compile "$LINENO"; then :
11223   ac_cv_header_stdbool_h=yes
11224 else
11225   ac_cv_header_stdbool_h=no
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11230 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11231    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11232 if test "x$ac_cv_type__Bool" = x""yes; then :
11233
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE__BOOL 1
11236 _ACEOF
11237
11238
11239 fi
11240
11241    if test $ac_cv_header_stdbool_h = yes; then
11242
11243 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11244
11245    fi
11246
11247     REPLACE_NULL=0;
11248   HAVE_WCHAR_T=1;
11249   STDDEF_H='';
11250
11251
11252
11253
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11255 $as_echo_n "checking for unsigned long long int... " >&6; }
11256 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h.  */
11261
11262   /* For now, do not test the preprocessor; as of 2007 there are too many
11263          implementations with broken preprocessors.  Perhaps this can
11264          be revisited in 2012.  In the meantime, code should not expect
11265          #if to work with literals wider than 32 bits.  */
11266       /* Test literals.  */
11267       long long int ll = 9223372036854775807ll;
11268       long long int nll = -9223372036854775807LL;
11269       unsigned long long int ull = 18446744073709551615ULL;
11270       /* Test constant expressions.   */
11271       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11272                      ? 1 : -1)];
11273       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11274                      ? 1 : -1)];
11275       int i = 63;
11276 int
11277 main ()
11278 {
11279 /* Test availability of runtime routines for shift and division.  */
11280       long long int llmax = 9223372036854775807ll;
11281       unsigned long long int ullmax = 18446744073709551615ull;
11282       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11283               | (llmax / ll) | (llmax % ll)
11284               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11285               | (ullmax / ull) | (ullmax % ull));
11286   ;
11287   return 0;
11288 }
11289
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292   ac_cv_type_unsigned_long_long_int=yes
11293 else
11294   ac_cv_type_unsigned_long_long_int=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11300 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11301   if test $ac_cv_type_unsigned_long_long_int = yes; then
11302
11303 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11304
11305   fi
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320   if test -z "$ERRNO_H"; then
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
11322 $as_echo_n "checking for working strerror function... " >&6; }
11323 if test "${gl_cv_func_working_strerror+set}" = set; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   if test "$cross_compiling" = yes; then :
11327            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h.  */
11329 #include <string.h>
11330
11331 int
11332 main ()
11333 {
11334 return !*strerror (-2);
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_compile "$LINENO"; then :
11340   gl_cv_func_working_strerror=yes
11341 else
11342   gl_cv_func_working_strerror=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345
11346 else
11347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h.  */
11349 #include <string.h>
11350
11351 int
11352 main ()
11353 {
11354 return !*strerror (-2);
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_run "$LINENO"; then :
11360   gl_cv_func_working_strerror=yes
11361 else
11362   gl_cv_func_working_strerror=no
11363 fi
11364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11365   conftest.$ac_objext conftest.beam conftest.$ac_ext
11366 fi
11367
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
11371 $as_echo "$gl_cv_func_working_strerror" >&6; }
11372     if test $gl_cv_func_working_strerror = no; then
11373                   REPLACE_STRERROR=1
11374     fi
11375   else
11376             REPLACE_STRERROR=1
11377   fi
11378   if test $REPLACE_STRERROR = 1; then
11379
11380   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11381 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11382   ac_have_decl=1
11383 else
11384   ac_have_decl=0
11385 fi
11386
11387 cat >>confdefs.h <<_ACEOF
11388 #define HAVE_DECL_STRERROR $ac_have_decl
11389 _ACEOF
11390
11391
11392   if test $ac_cv_header_sys_socket_h != yes; then
11393                     for ac_header in winsock2.h
11394 do :
11395   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11396 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11397   cat >>confdefs.h <<_ACEOF
11398 #define HAVE_WINSOCK2_H 1
11399 _ACEOF
11400
11401 fi
11402
11403 done
11404
11405   fi
11406
11407   fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420      if test $gl_cv_have_include_next = yes; then
11421        gl_cv_next_string_h='<'string.h'>'
11422      else
11423        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11424 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11425 if test "${gl_cv_next_string_h+set}" = set; then :
11426   $as_echo_n "(cached) " >&6
11427 else
11428
11429           if test $ac_cv_header_string_h = yes; then
11430             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h.  */
11432 #include <string.h>
11433
11434 _ACEOF
11435                                                                     case "$host_os" in
11436               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11437               *)    gl_absname_cpp="$ac_cpp" ;;
11438             esac
11439                                     gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11440                sed -n '\#/string.h#{
11441                  s#.*"\(.*/string.h\)".*#\1#
11442                  s#^/[^/]#//&#
11443                  p
11444                  q
11445                }'`'"'
11446           else
11447             gl_cv_next_string_h='<'string.h'>'
11448           fi
11449
11450 fi
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11452 $as_echo "$gl_cv_next_string_h" >&6; }
11453      fi
11454      NEXT_STRING_H=$gl_cv_next_string_h
11455
11456      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11457        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11458        gl_next_as_first_directive='<'string.h'>'
11459      else
11460        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11461        gl_next_as_first_directive=$gl_cv_next_string_h
11462      fi
11463      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11464
11465
11466
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11469 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11470 if test "${ac_cv_header_stat_broken+set}" = set; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h.  */
11475 #include <sys/types.h>
11476 #include <sys/stat.h>
11477
11478 #if defined S_ISBLK && defined S_IFDIR
11479 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11480 #endif
11481
11482 #if defined S_ISBLK && defined S_IFCHR
11483 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11484 #endif
11485
11486 #if defined S_ISLNK && defined S_IFREG
11487 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11488 #endif
11489
11490 #if defined S_ISSOCK && defined S_IFREG
11491 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11492 #endif
11493
11494 _ACEOF
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496   ac_cv_header_stat_broken=no
11497 else
11498   ac_cv_header_stat_broken=yes
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11503 $as_echo "$ac_cv_header_stat_broken" >&6; }
11504 if test $ac_cv_header_stat_broken = yes; then
11505
11506 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11507
11508 fi
11509
11510
11511
11512
11513         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11514   REPLACE_MKTIME=GNULIB_PORTCHECK;
11515   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11516   REPLACE_STRPTIME=GNULIB_PORTCHECK;
11517   REPLACE_TIMEGM=GNULIB_PORTCHECK;
11518
11519
11520
11521
11522
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11524 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11525 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h.  */
11530 #include <time.h>
11531
11532 int
11533 main ()
11534 {
11535 static struct timespec x; x.tv_sec = x.tv_nsec;
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_compile "$LINENO"; then :
11541   gl_cv_sys_struct_timespec_in_time_h=yes
11542 else
11543   gl_cv_sys_struct_timespec_in_time_h=no
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11548 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11549
11550   TIME_H_DEFINES_STRUCT_TIMESPEC=0
11551   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11552   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11553     TIME_H_DEFINES_STRUCT_TIMESPEC=1
11554   else
11555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11556 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11557 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11558   $as_echo_n "(cached) " >&6
11559 else
11560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562 #include <sys/time.h>
11563
11564 int
11565 main ()
11566 {
11567 static struct timespec x; x.tv_sec = x.tv_nsec;
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573   gl_cv_sys_struct_timespec_in_sys_time_h=yes
11574 else
11575   gl_cv_sys_struct_timespec_in_sys_time_h=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11580 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11581     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11582       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11583     fi
11584   fi
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597      if test $gl_cv_have_include_next = yes; then
11598        gl_cv_next_time_h='<'time.h'>'
11599      else
11600        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11601 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11602 if test "${gl_cv_next_time_h+set}" = set; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605
11606           if test $ac_cv_header_time_h = yes; then
11607             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h.  */
11609 #include <time.h>
11610
11611 _ACEOF
11612                                                                     case "$host_os" in
11613               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11614               *)    gl_absname_cpp="$ac_cpp" ;;
11615             esac
11616                                     gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11617                sed -n '\#/time.h#{
11618                  s#.*"\(.*/time.h\)".*#\1#
11619                  s#^/[^/]#//&#
11620                  p
11621                  q
11622                }'`'"'
11623           else
11624             gl_cv_next_time_h='<'time.h'>'
11625           fi
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11629 $as_echo "$gl_cv_next_time_h" >&6; }
11630      fi
11631      NEXT_TIME_H=$gl_cv_next_time_h
11632
11633      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11635        gl_next_as_first_directive='<'time.h'>'
11636      else
11637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11638        gl_next_as_first_directive=$gl_cv_next_time_h
11639      fi
11640      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking determine whether the utimes function works" >&5
11652 $as_echo_n "checking determine whether the utimes function works... " >&6; }
11653 if test "${gl_cv_func_working_utimes+set}" = set; then :
11654   $as_echo_n "(cached) " >&6
11655 else
11656
11657   if test "$cross_compiling" = yes; then :
11658   gl_cv_func_working_utimes=no
11659 else
11660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h.  */
11662
11663 #include <sys/types.h>
11664 #include <sys/stat.h>
11665 #include <fcntl.h>
11666 #include <sys/time.h>
11667 #include <time.h>
11668 #include <unistd.h>
11669 #include <stdlib.h>
11670 #include <stdio.h>
11671 #include <utime.h>
11672
11673 int
11674 main ()
11675 {
11676   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
11677   struct stat sbuf;
11678   char const *file = "conftest.utimes";
11679   FILE *f;
11680   time_t now;
11681   int fd;
11682
11683   int ok = ((f = fopen (file, "w"))
11684             && fclose (f) == 0
11685             && utimes (file, timeval) == 0
11686             && lstat (file, &sbuf) == 0
11687             && sbuf.st_atime == timeval[0].tv_sec
11688             && sbuf.st_mtime == timeval[1].tv_sec);
11689   unlink (file);
11690   if (!ok)
11691     exit (1);
11692
11693   ok =
11694     ((f = fopen (file, "w"))
11695      && fclose (f) == 0
11696      && time (&now) != (time_t)-1
11697      && utimes (file, NULL) == 0
11698      && lstat (file, &sbuf) == 0
11699      && now - sbuf.st_atime <= 2
11700      && now - sbuf.st_mtime <= 2);
11701   unlink (file);
11702   if (!ok)
11703     exit (1);
11704
11705   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
11706               && close (fd) == 0
11707               && utimes (file, NULL) == 0);
11708   unlink (file);
11709
11710   exit (!ok);
11711 }
11712
11713 _ACEOF
11714 if ac_fn_c_try_run "$LINENO"; then :
11715   gl_cv_func_working_utimes=yes
11716 else
11717   gl_cv_func_working_utimes=no
11718 fi
11719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11720   conftest.$ac_objext conftest.beam conftest.$ac_ext
11721 fi
11722
11723 fi
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
11725 $as_echo "$gl_cv_func_working_utimes" >&6; }
11726
11727   if test $gl_cv_func_working_utimes = yes; then
11728
11729 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
11730
11731   fi
11732
11733
11734
11735
11736
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
11738 $as_echo_n "checking for struct utimbuf... " >&6; }
11739 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h.  */
11744 #if HAVE_SYS_TIME_H
11745              #include <sys/time.h>
11746             #endif
11747             #include <time.h>
11748             #ifdef HAVE_UTIME_H
11749              #include <utime.h>
11750             #endif
11751
11752 int
11753 main ()
11754 {
11755 static struct utimbuf x; x.actime = x.modtime;
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_compile "$LINENO"; then :
11761   gl_cv_sys_struct_utimbuf=yes
11762 else
11763   gl_cv_sys_struct_utimbuf=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
11768 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
11769
11770   if test $gl_cv_sys_struct_utimbuf = yes; then
11771
11772 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
11773
11774   fi
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791    if false; then
11792   GL_COND_LIBTOOL_TRUE=
11793   GL_COND_LIBTOOL_FALSE='#'
11794 else
11795   GL_COND_LIBTOOL_TRUE='#'
11796   GL_COND_LIBTOOL_FALSE=
11797 fi
11798
11799   gl_cond_libtool=false
11800   gl_libdeps=
11801   gl_ltlibdeps=
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811   gl_source_base='lib'
11812
11813
11814
11815
11816
11817   if test $ac_cv_func_alloca_works = no; then
11818     :
11819   fi
11820
11821   # Define an additional variable used in the Makefile substitution.
11822   if test $ac_cv_working_alloca_h = yes; then
11823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11824 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11825 if test "${gl_cv_rpl_alloca+set}" = set; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828
11829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h.  */
11831
11832 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11833         Need own alloca
11834 #endif
11835
11836 _ACEOF
11837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11838   $EGREP "Need own alloca" >/dev/null 2>&1; then :
11839   gl_cv_rpl_alloca=yes
11840 else
11841   gl_cv_rpl_alloca=no
11842 fi
11843 rm -f conftest*
11844
11845
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11848 $as_echo "$gl_cv_rpl_alloca" >&6; }
11849     if test $gl_cv_rpl_alloca = yes; then
11850
11851 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11852
11853       ALLOCA_H=alloca.h
11854     else
11855                   ALLOCA_H=
11856     fi
11857   else
11858     ALLOCA_H=alloca.h
11859   fi
11860
11861
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible calloc" >&5
11863 $as_echo_n "checking for GNU libc compatible calloc... " >&6; }
11864 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   if test "$cross_compiling" = yes; then :
11868   ac_cv_func_calloc_0_nonnull=no
11869 else
11870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h.  */
11872 $ac_includes_default
11873 int
11874 main ()
11875 {
11876 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_c_try_run "$LINENO"; then :
11882   ac_cv_func_calloc_0_nonnull=yes
11883 else
11884   ac_cv_func_calloc_0_nonnull=no
11885 fi
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11887   conftest.$ac_objext conftest.beam conftest.$ac_ext
11888 fi
11889
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
11892 $as_echo "$ac_cv_func_calloc_0_nonnull" >&6; }
11893 if test $ac_cv_func_calloc_0_nonnull = yes; then :
11894
11895 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
11896
11897 else
11898   $as_echo "#define HAVE_CALLOC 0" >>confdefs.h
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908   gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
11909
11910
11911 $as_echo "#define calloc rpl_calloc" >>confdefs.h
11912
11913 fi
11914
11915
11916
11917
11918   if test $gl_cv_func_malloc_posix = yes; then
11919     HAVE_CALLOC_POSIX=1
11920
11921 $as_echo "#define HAVE_CALLOC_POSIX 1" >>confdefs.h
11922
11923   else
11924
11925
11926
11927
11928
11929
11930
11931
11932   gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
11933
11934     HAVE_CALLOC_POSIX=0
11935   fi
11936
11937
11938
11939
11940   GNULIB_CALLOC_POSIX=1
11941
11942
11943
11944
11945   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11946   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11947
11948   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
11949   # programs in the package would end up linked with that potentially-shared
11950   # library, inducing unnecessary run-time overhead.
11951   LIB_CLOCK_GETTIME=
11952
11953   gl_saved_libs=$LIBS
11954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11955 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11956 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   ac_func_search_save_LIBS=$LIBS
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h.  */
11962
11963 /* Override any GCC internal prototype to avoid an error.
11964    Use char because int might match the return type of a GCC
11965    builtin and then its argument prototype would still apply.  */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char clock_gettime ();
11970 int
11971 main ()
11972 {
11973 return clock_gettime ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 for ac_lib in '' rt posix4; do
11979   if test -z "$ac_lib"; then
11980     ac_res="none required"
11981   else
11982     ac_res=-l$ac_lib
11983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11984   fi
11985   if ac_fn_c_try_link "$LINENO"; then :
11986   ac_cv_search_clock_gettime=$ac_res
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989     conftest$ac_exeext
11990   if test "${ac_cv_search_clock_gettime+set}" = set; then :
11991   break
11992 fi
11993 done
11994 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11995
11996 else
11997   ac_cv_search_clock_gettime=no
11998 fi
11999 rm conftest.$ac_ext
12000 LIBS=$ac_func_search_save_LIBS
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12003 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12004 ac_res=$ac_cv_search_clock_gettime
12005 if test "$ac_res" != no; then :
12006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12007   test "$ac_cv_search_clock_gettime" = "none required" ||
12008                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12009 fi
12010
12011     for ac_func in clock_gettime clock_settime
12012 do :
12013   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12015 eval as_val=\$$as_ac_var
12016    if test "x$as_val" = x""yes; then :
12017   cat >>confdefs.h <<_ACEOF
12018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12019 _ACEOF
12020
12021 fi
12022 done
12023
12024   LIBS=$gl_saved_libs
12025
12026
12027
12028
12029
12030
12031   GNULIB_CLOSE=1
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
12043
12044
12045     :
12046
12047
12048
12049 $as_echo "#define GNULIB_CLOSE_STREAM 1" >>confdefs.h
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061   gl_LIBOBJS="$gl_LIBOBJS closein.$ac_objext"
12062
12063
12064     :
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
12076
12077
12078     :
12079
12080
12081
12082
12083
12084   if test $ac_cv_func_dup2 = no; then
12085     HAVE_DUP2=0
12086
12087
12088
12089
12090
12091
12092
12093
12094   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12095
12096   else
12097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12098 $as_echo_n "checking whether dup2 works... " >&6; }
12099 if test "${gl_cv_func_dup2_works+set}" = set; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   if test "$cross_compiling" = yes; then :
12103   case "$host_os" in
12104            mingw*) # on this platform, dup2 always returns 0 for success
12105              gl_cv_func_dup2_works=no;;
12106            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12107              gl_cv_func_dup2_works=no;;
12108            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12109                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12110              gl_cv_func_dup2_works=no;;
12111            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12112              gl_cv_func_dup2_works=no;;
12113            *) gl_cv_func_dup2_works=yes;;
12114          esac
12115 else
12116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h.  */
12118
12119          #include <unistd.h>
12120 #include <errno.h>
12121 int
12122 main ()
12123 {
12124 if (dup2 (1, 1) == 0)
12125               return 1;
12126             close (0);
12127             if (dup2 (0, 0) != -1)
12128               return 2;
12129             /* Many gnulib modules require POSIX conformance of EBADF.  */
12130             if (dup2 (1, 1000000) == -1 && errno != EBADF)
12131               return 3;
12132             return 0;
12133
12134   ;
12135   return 0;
12136 }
12137
12138 _ACEOF
12139 if ac_fn_c_try_run "$LINENO"; then :
12140   gl_cv_func_dup2_works=yes
12141 else
12142   gl_cv_func_dup2_works=no
12143 fi
12144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12145   conftest.$ac_objext conftest.beam conftest.$ac_ext
12146 fi
12147
12148
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12151 $as_echo "$gl_cv_func_dup2_works" >&6; }
12152     if test "$gl_cv_func_dup2_works" = no; then
12153
12154
12155   REPLACE_DUP2=1
12156
12157
12158
12159
12160
12161
12162
12163
12164   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12165
12166
12167     fi
12168   fi
12169
12170 cat >>confdefs.h <<_ACEOF
12171 #define REPLACE_DUP2 $REPLACE_DUP2
12172 _ACEOF
12173
12174
12175
12176
12177   GNULIB_DUP2=1
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
12194 $as_echo_n "checking for error_at_line... " >&6; }
12195 if test "${ac_cv_lib_error_at_line+set}" = set; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h.  */
12200 #include <error.h>
12201 int
12202 main ()
12203 {
12204 error_at_line (0, 0, "", 0, "an error occurred");
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"; then :
12210   ac_cv_lib_error_at_line=yes
12211 else
12212   ac_cv_lib_error_at_line=no
12213 fi
12214 rm -f core conftest.err conftest.$ac_objext \
12215     conftest$ac_exeext conftest.$ac_ext
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
12218 $as_echo "$ac_cv_lib_error_at_line" >&6; }
12219 if test $ac_cv_lib_error_at_line = no; then
12220
12221
12222
12223
12224
12225
12226
12227
12228   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
12229
12230 fi
12231
12232
12233
12234   :
12235
12236
12237
12238
12239   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
12240
12241
12242
12243   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
12255
12256
12257     :
12258
12259
12260
12261
12262
12263   GNULIB_FCLOSE=1
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274      if test $gl_cv_have_include_next = yes; then
12275        gl_cv_next_fcntl_h='<'fcntl.h'>'
12276      else
12277        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
12278 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
12279 if test "${gl_cv_next_fcntl_h+set}" = set; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282
12283           if test $ac_cv_header_fcntl_h = yes; then
12284             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h.  */
12286 #include <fcntl.h>
12287
12288 _ACEOF
12289                                                                     case "$host_os" in
12290               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12291               *)    gl_absname_cpp="$ac_cpp" ;;
12292             esac
12293                                     gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12294                sed -n '\#/fcntl.h#{
12295                  s#.*"\(.*/fcntl.h\)".*#\1#
12296                  s#^/[^/]#//&#
12297                  p
12298                  q
12299                }'`'"'
12300           else
12301             gl_cv_next_fcntl_h='<'fcntl.h'>'
12302           fi
12303
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
12306 $as_echo "$gl_cv_next_fcntl_h" >&6; }
12307      fi
12308      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
12309
12310      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12311        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12312        gl_next_as_first_directive='<'fcntl.h'>'
12313      else
12314        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12315        gl_next_as_first_directive=$gl_cv_next_fcntl_h
12316      fi
12317      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
12318
12319
12320
12321   FCNTL_H='fcntl.h'
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333   gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343   gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
12344
12345   # Prerequisites of lib/open-safer.c.
12346
12347
12348
12349
12350 $as_echo "#define GNULIB_FCNTL_SAFER 1" >>confdefs.h
12351
12352
12353
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
12355 $as_echo_n "checking whether fflush works on input streams... " >&6; }
12356 if test "${gl_cv_func_fflush_stdin+set}" = set; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   echo hello world > conftest.txt
12360      if test "$cross_compiling" = yes; then :
12361         gl_cv_func_fflush_stdin=no
12362 else
12363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h.  */
12365
12366 #include <stdio.h>
12367 #include <unistd.h>
12368
12369 int
12370 main ()
12371 {
12372 FILE *f = fopen ("conftest.txt", "r");
12373          char buffer[10];
12374          int fd;
12375          int c;
12376          if (f == NULL)
12377            return 1;
12378          fd = fileno (f);
12379          if (fd < 0 || fread (buffer, 1, 5, f) != 5)
12380            return 2;
12381          /* For deterministic results, ensure f read a bigger buffer.  */
12382          if (lseek (fd, 0, SEEK_CUR) == 5)
12383            return 3;
12384          /* POSIX requires fflush-fseek to set file offset of fd.  This fails
12385             on BSD systems and on mingw.  */
12386          if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
12387            return 4;
12388          if (lseek (fd, 0, SEEK_CUR) != 5)
12389            return 5;
12390          /* Verify behaviour of fflush after ungetc. See
12391             <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
12392          /* Verify behaviour of fflush after a backup ungetc.  This fails on
12393             mingw.  */
12394          c = fgetc (f);
12395          ungetc (c, f);
12396          fflush (f);
12397          if (fgetc (f) != c)
12398            return 6;
12399          /* Verify behaviour of fflush after a non-backup ungetc.  This fails
12400             on glibc 2.8 and on BSD systems.  */
12401          c = fgetc (f);
12402          ungetc ('@', f);
12403          fflush (f);
12404          if (fgetc (f) != c)
12405            return 7;
12406          return 0;
12407
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 if ac_fn_c_try_run "$LINENO"; then :
12413   gl_cv_func_fflush_stdin=yes
12414 else
12415   gl_cv_func_fflush_stdin=no
12416 fi
12417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12418   conftest.$ac_objext conftest.beam conftest.$ac_ext
12419 fi
12420
12421      rm conftest.txt
12422
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
12425 $as_echo "$gl_cv_func_fflush_stdin" >&6; }
12426   if test $gl_cv_func_fflush_stdin = no; then
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436   gl_LIBOBJS="$gl_LIBOBJS fflush.$ac_objext"
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
12447
12448
12449   REPLACE_FFLUSH=1
12450   REPLACE_FSEEKO=1
12451
12452
12453   :
12454
12455
12456   fi
12457
12458
12459
12460   GNULIB_FFLUSH=1
12461
12462
12463
12464
12465   FLOAT_H=
12466   case "$host_os" in
12467     beos* | openbsd*)
12468       FLOAT_H=float.h
12469
12470
12471
12472
12473
12474
12475      if test $gl_cv_have_include_next = yes; then
12476        gl_cv_next_float_h='<'float.h'>'
12477      else
12478        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12479 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12480 if test "${gl_cv_next_float_h+set}" = set; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483
12484           if test $ac_cv_header_float_h = yes; then
12485             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #include <float.h>
12488
12489 _ACEOF
12490                                                                     case "$host_os" in
12491               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12492               *)    gl_absname_cpp="$ac_cpp" ;;
12493             esac
12494                                     gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12495                sed -n '\#/float.h#{
12496                  s#.*"\(.*/float.h\)".*#\1#
12497                  s#^/[^/]#//&#
12498                  p
12499                  q
12500                }'`'"'
12501           else
12502             gl_cv_next_float_h='<'float.h'>'
12503           fi
12504
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12507 $as_echo "$gl_cv_next_float_h" >&6; }
12508      fi
12509      NEXT_FLOAT_H=$gl_cv_next_float_h
12510
12511      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12512        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12513        gl_next_as_first_directive='<'float.h'>'
12514      else
12515        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12516        gl_next_as_first_directive=$gl_cv_next_float_h
12517      fi
12518      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12519
12520
12521
12522       ;;
12523   esac
12524
12525
12526
12527
12528
12529   fp_headers='
12530 #     include <stdio.h>
12531 #     if HAVE_STDIO_EXT_H
12532 #      include <stdio_ext.h>
12533 #     endif
12534 '
12535   ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
12536 "
12537 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
12538   ac_have_decl=1
12539 else
12540   ac_have_decl=0
12541 fi
12542
12543 cat >>confdefs.h <<_ACEOF
12544 #define HAVE_DECL___FPENDING $ac_have_decl
12545 _ACEOF
12546
12547   if test $ac_cv_func___fpending = no; then
12548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
12549 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
12550 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553
12554         for ac_expr in                                                    \
12555                                                                           \
12556             '# glibc2'                                                    \
12557             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
12558                                                                           \
12559             '# traditional Unix'                                          \
12560             'fp->_ptr - fp->_base'                                        \
12561                                                                           \
12562             '# BSD'                                                       \
12563             'fp->_p - fp->_bf._base'                                      \
12564                                                                           \
12565             '# SCO, Unixware'                                             \
12566             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
12567                                                                           \
12568             '# QNX'                                                       \
12569             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
12570                                                                           \
12571             '# old glibc?'                                                \
12572             'fp->__bufp - fp->__buffer'                                   \
12573                                                                           \
12574             '# old glibc iostream?'                                       \
12575             'fp->_pptr - fp->_pbase'                                      \
12576                                                                           \
12577             '# emx+gcc'                                                   \
12578             'fp->_ptr - fp->_buffer'                                      \
12579                                                                           \
12580             '# VMS'                                                       \
12581             '(*fp)->_ptr - (*fp)->_base'                                  \
12582                                                                           \
12583             '# e.g., DGUX R4.11; the info is not available'               \
12584             1                                                             \
12585             ; do
12586
12587           # Skip each embedded comment.
12588           case "$ac_expr" in '#'*) continue;; esac
12589
12590           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592 #include <stdio.h>
12593 int
12594 main ()
12595 {
12596 FILE *fp = stdin; (void) ($ac_expr);
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602   fp_done=yes
12603
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606           test "$fp_done" = yes && break
12607         done
12608
12609         ac_cv_sys_pending_output_n_bytes=$ac_expr
12610
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
12614 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
12618 _ACEOF
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
12629
12630   fi
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647   gl_cv_func_fprintf_posix=no
12648   case "$gl_cv_func_printf_sizes_c99" in
12649     *yes)
12650       case "$gl_cv_func_printf_long_double" in
12651         *yes)
12652           case "$gl_cv_func_printf_infinite" in
12653             *yes)
12654               case "$gl_cv_func_printf_infinite_long_double" in
12655                 *yes)
12656                   case "$gl_cv_func_printf_directive_a" in
12657                     *yes)
12658                       case "$gl_cv_func_printf_directive_f" in
12659                         *yes)
12660                           case "$gl_cv_func_printf_directive_n" in
12661                             *yes)
12662                               case "$gl_cv_func_printf_directive_ls" in
12663                                 *yes)
12664                                   case "$gl_cv_func_printf_positions" in
12665                                     *yes)
12666                                       case "$gl_cv_func_printf_flag_grouping" in
12667                                         *yes)
12668                                           case "$gl_cv_func_printf_flag_leftadjust" in
12669                                             *yes)
12670                                               case "$gl_cv_func_printf_flag_zero" in
12671                                                 *yes)
12672                                                   case "$gl_cv_func_printf_precision" in
12673                                                     *yes)
12674                                                       case "$gl_cv_func_printf_enomem" in
12675                                                         *yes)
12676                                                           # fprintf exists and is
12677                                                           # already POSIX compliant.
12678                                                           gl_cv_func_fprintf_posix=yes
12679                                                           ;;
12680                                                       esac
12681                                                       ;;
12682                                                   esac
12683                                                   ;;
12684                                               esac
12685                                               ;;
12686                                           esac
12687                                           ;;
12688                                       esac
12689                                       ;;
12690                                   esac
12691                                   ;;
12692                               esac
12693                               ;;
12694                           esac
12695                           ;;
12696                       esac
12697                       ;;
12698                   esac
12699                   ;;
12700               esac
12701               ;;
12702           esac
12703           ;;
12704       esac
12705       ;;
12706   esac
12707   if test $gl_cv_func_fprintf_posix = no; then
12708
12709
12710
12711   case "$gl_cv_func_printf_infinite" in
12712     *yes)
12713       ;;
12714     *)
12715
12716 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
12717
12718       ;;
12719   esac
12720
12721
12722
12723
12724   case "$gl_cv_func_printf_long_double" in
12725     *yes)
12726       case "$gl_cv_func_printf_infinite_long_double" in
12727         *yes)
12728           ;;
12729         *)
12730
12731 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
12732
12733           ;;
12734       esac
12735       ;;
12736   esac
12737
12738
12739
12740   case "$gl_cv_func_printf_directive_a" in
12741     *yes)
12742       ;;
12743     *)
12744
12745 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
12746
12747       for ac_func in nl_langinfo
12748 do :
12749   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
12750 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
12751   cat >>confdefs.h <<_ACEOF
12752 #define HAVE_NL_LANGINFO 1
12753 _ACEOF
12754
12755 fi
12756 done
12757
12758       ;;
12759   esac
12760
12761
12762
12763   case "$gl_cv_func_printf_directive_f" in
12764     *yes)
12765       ;;
12766     *)
12767
12768 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
12769
12770       ;;
12771   esac
12772
12773
12774
12775   case "$gl_cv_func_printf_directive_ls" in
12776     *yes)
12777       ;;
12778     *)
12779
12780 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
12781
12782       ;;
12783   esac
12784
12785
12786
12787   case "$gl_cv_func_printf_flag_grouping" in
12788     *yes)
12789       ;;
12790     *)
12791
12792 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
12793
12794       ;;
12795   esac
12796
12797
12798
12799   case "$gl_cv_func_printf_flag_leftadjust" in
12800     *yes)
12801       ;;
12802     *)
12803
12804 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
12805
12806       ;;
12807   esac
12808
12809
12810
12811   case "$gl_cv_func_printf_flag_zero" in
12812     *yes)
12813       ;;
12814     *)
12815
12816 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
12817
12818       ;;
12819   esac
12820
12821
12822
12823   case "$gl_cv_func_printf_precision" in
12824     *yes)
12825       ;;
12826     *)
12827
12828 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
12829
12830
12831 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
12832
12833
12834 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
12835
12836       ;;
12837   esac
12838
12839
12840
12841   case "$gl_cv_func_printf_enomem" in
12842     *yes)
12843       ;;
12844     *)
12845
12846 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
12847
12848
12849 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
12850
12851
12852 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
12853
12854       ;;
12855   esac
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
12898
12899   if test $ac_cv_func_vasnprintf = yes; then
12900
12901 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
12902
12903   fi
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12915 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
12916
12917 else
12918
12919 $as_echo "#define ptrdiff_t long" >>confdefs.h
12920
12921
12922 fi
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940   gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
12941
12942   REPLACE_FPRINTF=1
12943
12944 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
12945
12946   :
12947
12948   fi
12949
12950
12951
12952   GNULIB_FPRINTF_POSIX=1
12953
12954
12955
12956
12957
12958   ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
12959 "
12960 if test "x$ac_cv_have_decl_fpurge" = x""yes; then :
12961   ac_have_decl=1
12962 else
12963   ac_have_decl=0
12964 fi
12965
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_DECL_FPURGE $ac_have_decl
12968 _ACEOF
12969
12970   if test "x$ac_cv_func_fpurge" = xyes; then
12971     # Detect BSD bug.  Only cygwin 1.7 is known to be immune.
12972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5
12973 $as_echo_n "checking whether fpurge works... " >&6; }
12974 if test "${gl_cv_func_fpurge_works+set}" = set; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   if test "$cross_compiling" = yes; then :
12978   gl_cv_func_fpurge_works='guessing no'
12979 else
12980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982 #include <stdio.h>
12983
12984 int
12985 main ()
12986 {
12987 FILE *f = fopen ("conftest.txt", "w+");
12988         if (!f) return 1;
12989         if (fputc ('a', f) != 'a') return 2;
12990         rewind (f);
12991         if (fgetc (f) != 'a') return 3;
12992         if (fgetc (f) != EOF) return 4;
12993         if (fpurge (f) != 0) return 5;
12994         if (putc ('b', f) != 'b') return 6;
12995         if (fclose (f) != 0) return 7;
12996         if ((f = fopen ("conftest.txt", "r")) == NULL) return 8;
12997         if (fgetc (f) != 'a') return 9;
12998         if (fgetc (f) != 'b') return 10;
12999         if (fgetc (f) != EOF) return 11;
13000         if (fclose (f) != 0) return 12;
13001         if (remove ("conftest.txt") != 0) return 13;
13002         return 0;
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_run "$LINENO"; then :
13008   gl_cv_func_fpurge_works=yes
13009 else
13010   gl_cv_func_fpurge_works=no
13011 fi
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13013   conftest.$ac_objext conftest.beam conftest.$ac_ext
13014 fi
13015
13016 fi
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5
13018 $as_echo "$gl_cv_func_fpurge_works" >&6; }
13019     if test "x$gl_cv_func_fpurge_works" != xyes; then
13020       REPLACE_FPURGE=1
13021
13022
13023
13024
13025
13026
13027
13028
13029   gl_LIBOBJS="$gl_LIBOBJS fpurge.$ac_objext"
13030
13031     fi
13032   else
13033
13034
13035
13036
13037
13038
13039
13040
13041   gl_LIBOBJS="$gl_LIBOBJS fpurge.$ac_objext"
13042
13043   fi
13044   if test "x$ac_cv_have_decl_fpurge" = xno; then
13045     HAVE_DECL_FPURGE=0
13046   fi
13047
13048
13049
13050   GNULIB_FPURGE=1
13051
13052
13053
13054
13055
13056
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
13058 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
13059 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
13060   $as_echo_n "(cached) " >&6
13061 else
13062
13063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065 #include <math.h>
13066                    double x;
13067 int
13068 main ()
13069 {
13070 int e; return frexp (x, &e) > 0;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076   gl_cv_func_frexp_no_libm=yes
13077 else
13078   gl_cv_func_frexp_no_libm=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081     conftest$ac_exeext conftest.$ac_ext
13082
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
13085 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
13086   if test $gl_cv_func_frexp_no_libm = yes; then
13087
13088
13089      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13090 $as_echo_n "checking whether frexp works... " >&6; }
13091 if test "${gl_cv_func_frexp_works+set}" = set; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094
13095       if test "$cross_compiling" = yes; then :
13096   case "$host_os" in
13097          netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13098          *)                        gl_cv_func_frexp_works="guessing yes";;
13099        esac
13100
13101 else
13102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h.  */
13104
13105 #include <float.h>
13106 #include <math.h>
13107 #include <string.h>
13108 int main()
13109 {
13110   int i;
13111   volatile double x;
13112 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13113    So we use -zero instead.  */
13114   double zero = 0.0;
13115   /* Test on denormalized numbers.  */
13116   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13117     ;
13118   if (x > 0.0)
13119     {
13120       int exp;
13121       double y = frexp (x, &exp);
13122       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13123          On NetBSD: y = 0.75. Correct: y = 0.5.  */
13124       if (y != 0.5)
13125         return 1;
13126     }
13127   /* Test on infinite numbers.  */
13128   x = 1.0 / 0.0;
13129   {
13130     int exp;
13131     double y = frexp (x, &exp);
13132     if (y != x)
13133       return 1;
13134   }
13135   /* Test on negative zero.  */
13136   x = -zero;
13137   {
13138     int exp;
13139     double y = frexp (x, &exp);
13140     if (memcmp (&y, &x, sizeof x))
13141       return 1;
13142   }
13143   return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_run "$LINENO"; then :
13147   gl_cv_func_frexp_works=yes
13148 else
13149   gl_cv_func_frexp_works=no
13150 fi
13151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13152   conftest.$ac_objext conftest.beam conftest.$ac_ext
13153 fi
13154
13155
13156 fi
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13158 $as_echo "$gl_cv_func_frexp_works" >&6; }
13159
13160     case "$gl_cv_func_frexp_works" in
13161       *yes) gl_func_frexp_no_libm=yes ;;
13162       *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
13163     esac
13164   else
13165     gl_func_frexp_no_libm=no
13166         REPLACE_FREXP=1
13167   fi
13168   if test $gl_func_frexp_no_libm = yes; then
13169
13170 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
13171
13172   else
13173
13174
13175
13176
13177
13178
13179
13180
13181   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13182
13183   fi
13184
13185
13186
13187   GNULIB_FREXP=1
13188
13189
13190
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13192 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13193 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196
13197       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199 #include <math.h>
13200                    long double x;
13201 int
13202 main ()
13203 {
13204 int e; return frexpl (x, &e) > 0;
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210   gl_cv_func_frexpl_no_libm=yes
13211 else
13212   gl_cv_func_frexpl_no_libm=no
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext \
13215     conftest$ac_exeext conftest.$ac_ext
13216
13217 fi
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13219 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13220   if test $gl_cv_func_frexpl_no_libm = yes; then
13221
13222
13223      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13224 $as_echo_n "checking whether frexpl works... " >&6; }
13225 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228
13229       if test "$cross_compiling" = yes; then :
13230   case "$host_os" in
13231          aix* | beos* | darwin* | irix* | mingw* | pw*)
13232             gl_cv_func_frexpl_works="guessing no";;
13233          *) gl_cv_func_frexpl_works="guessing yes";;
13234        esac
13235
13236 else
13237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h.  */
13239
13240 #include <float.h>
13241 #include <math.h>
13242 /* Override the values of <float.h>, like done in float.in.h.  */
13243 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13244 # undef LDBL_MIN_EXP
13245 # define LDBL_MIN_EXP    (-16381)
13246 #endif
13247 extern long double frexpl (long double, int *);
13248 int main()
13249 {
13250   volatile long double x;
13251   /* Test on finite numbers that fails on AIX 5.1.  */
13252   x = 16.0L;
13253   {
13254     int exp = -9999;
13255     frexpl (x, &exp);
13256     if (exp != 5)
13257       return 1;
13258   }
13259   /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
13260      function returns an invalid (incorrectly normalized) value: it returns
13261                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13262      but the correct result is
13263           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
13264   x = 1.01L;
13265   {
13266     int exp = -9999;
13267     long double y = frexpl (x, &exp);
13268     if (!(exp == 1 && y == 0.505L))
13269       return 1;
13270   }
13271   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
13272      LDBL_MAX_EXP = 16384.
13273      In the loop end test, we test x against Infinity, rather than comparing
13274      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
13275   {
13276     int i;
13277     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13278       {
13279         int exp = -9999;
13280         frexpl (x, &exp);
13281         if (exp != i)
13282           return 1;
13283       }
13284   }
13285   /* Test on denormalized numbers.  */
13286   {
13287     int i;
13288     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13289       ;
13290     if (x > 0.0L)
13291       {
13292         int exp;
13293         long double y = frexpl (x, &exp);
13294         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13295            exp = -16382, y = 0.5.  On MacOS X 10.5: exp = -16384, y = 0.5.  */
13296         if (exp != LDBL_MIN_EXP - 1)
13297           return 1;
13298       }
13299   }
13300   /* Test on infinite numbers.  */
13301   x = 1.0L / 0.0L;
13302   {
13303     int exp;
13304     long double y = frexpl (x, &exp);
13305     if (y != x)
13306       return 1;
13307   }
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_run "$LINENO"; then :
13312   gl_cv_func_frexpl_works=yes
13313 else
13314   gl_cv_func_frexpl_works=no
13315 fi
13316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317   conftest.$ac_objext conftest.beam conftest.$ac_ext
13318 fi
13319
13320
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13323 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13324
13325     case "$gl_cv_func_frexpl_works" in
13326       *yes) gl_func_frexpl_no_libm=yes ;;
13327       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
13328     esac
13329   else
13330     gl_func_frexpl_no_libm=no
13331         REPLACE_FREXPL=1
13332   fi
13333   if test $gl_func_frexpl_no_libm = yes; then
13334
13335 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
13336
13337             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13338 "
13339 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13340
13341 else
13342   HAVE_DECL_FREXPL=0
13343 fi
13344
13345   else
13346     HAVE_DECL_FREXPL=0
13347
13348
13349
13350
13351
13352
13353
13354
13355   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13356
13357   fi
13358
13359
13360
13361   GNULIB_FREXPL=1
13362
13363
13364
13365
13366
13367
13368
13369
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
13371 $as_echo_n "checking for fseeko... " >&6; }
13372 if test "${gl_cv_func_fseeko+set}" = set; then :
13373   $as_echo_n "(cached) " >&6
13374 else
13375
13376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h.  */
13378 [#include <stdio.h>]
13379 int
13380 main ()
13381 {
13382 fseeko (stdin, 0, 0);
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388   gl_cv_func_fseeko=yes
13389 else
13390   gl_cv_func_fseeko=no
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext \
13393     conftest$ac_exeext conftest.$ac_ext
13394
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
13397 $as_echo "$gl_cv_func_fseeko" >&6; }
13398   if test $gl_cv_func_fseeko = no; then
13399     HAVE_FSEEKO=0
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13410
13411
13412   REPLACE_FSEEKO=1
13413
13414
13415   elif test $gl_cv_var_stdin_large_offset = no; then
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13426
13427
13428   REPLACE_FSEEKO=1
13429
13430
13431   fi
13432
13433
13434
13435   GNULIB_FSEEKO=1
13436
13437
13438
13439
13440
13441
13442
13443
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13445 $as_echo_n "checking for ftello... " >&6; }
13446 if test "${gl_cv_func_ftello+set}" = set; then :
13447   $as_echo_n "(cached) " >&6
13448 else
13449
13450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h.  */
13452 #include <stdio.h>
13453 int
13454 main ()
13455 {
13456 ftello (stdin);
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462   gl_cv_func_ftello=yes
13463 else
13464   gl_cv_func_ftello=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467     conftest$ac_exeext conftest.$ac_ext
13468
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13471 $as_echo "$gl_cv_func_ftello" >&6; }
13472   if test $gl_cv_func_ftello = no; then
13473     HAVE_FTELLO=0
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13484
13485
13486   REPLACE_FTELLO=1
13487
13488   elif test $gl_cv_var_stdin_large_offset = no; then
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13499
13500
13501   REPLACE_FTELLO=1
13502
13503   fi
13504
13505
13506
13507   GNULIB_FTELLO=1
13508
13509
13510
13511
13512
13513
13514
13515
13516 $as_echo "#define GNULIB_GETOPT_GNU 1" >>confdefs.h
13517
13518
13519
13520
13521
13522
13523
13524   if test -n "$gl_replace_getopt"; then :
13525
13526
13527
13528   GETOPT_H=getopt.h
13529
13530 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13531
13532
13533
13534     GNULIB_UNISTD_H_GETOPT=1
13535
13536
13537
13538
13539
13540
13541
13542
13543   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13554
13555
13556
13557
13558
13559
13560 fi
13561
13562
13563
13564
13565
13566   for ac_func in getpagesize
13567 do :
13568   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13569 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13570   cat >>confdefs.h <<_ACEOF
13571 #define HAVE_GETPAGESIZE 1
13572 _ACEOF
13573
13574 fi
13575 done
13576
13577   if test $ac_cv_func_getpagesize = no; then
13578     HAVE_GETPAGESIZE=0
13579     for ac_header in OS.h
13580 do :
13581   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
13582 if test "x$ac_cv_header_OS_h" = x""yes; then :
13583   cat >>confdefs.h <<_ACEOF
13584 #define HAVE_OS_H 1
13585 _ACEOF
13586
13587 fi
13588
13589 done
13590
13591     if test $ac_cv_header_OS_h = yes; then
13592       HAVE_OS_H=1
13593     fi
13594     for ac_header in sys/param.h
13595 do :
13596   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
13598   cat >>confdefs.h <<_ACEOF
13599 #define HAVE_SYS_PARAM_H 1
13600 _ACEOF
13601
13602 fi
13603
13604 done
13605
13606     if test $ac_cv_header_sys_param_h = yes; then
13607       HAVE_SYS_PARAM_H=1
13608     fi
13609   fi
13610   case "$host_os" in
13611     mingw*)
13612       REPLACE_GETPAGESIZE=1
13613
13614
13615
13616
13617
13618
13619
13620
13621   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
13622
13623       ;;
13624   esac
13625
13626
13627
13628   GNULIB_GETPAGESIZE=1
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13654 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13655 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13656   $as_echo_n "(cached) " >&6
13657 else
13658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660 #include <sys/time.h>
13661             struct timeval c;
13662
13663 int
13664 main ()
13665 {
13666
13667             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13668             int x = f (&c, 0);
13669             return !(x | c.tv_sec | c.tv_usec);
13670
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676   gl_cv_func_gettimeofday_posix_signature=yes
13677 else
13678   gl_cv_func_gettimeofday_posix_signature=no
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13683 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13684
13685
13686
13687
13688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13689 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13690 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   if test "$cross_compiling" = yes; then :
13694        gl_cv_func_gettimeofday_clobber=yes
13695 else
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698 #include <string.h>
13699           #include <sys/time.h>
13700           #include <time.h>
13701           #include <stdlib.h>
13702
13703 int
13704 main ()
13705 {
13706
13707           time_t t = 0;
13708           struct tm *lt;
13709           struct tm saved_lt;
13710           struct timeval tv;
13711           lt = localtime (&t);
13712           saved_lt = *lt;
13713           gettimeofday (&tv, NULL);
13714           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13715
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_c_try_run "$LINENO"; then :
13721   gl_cv_func_gettimeofday_clobber=no
13722 else
13723   gl_cv_func_gettimeofday_clobber=yes
13724 fi
13725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13726   conftest.$ac_objext conftest.beam conftest.$ac_ext
13727 fi
13728
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13731 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13732
13733  if test $gl_cv_func_gettimeofday_clobber = yes; then
13734    REPLACE_GETTIMEOFDAY=1
13735    SYS_TIME_H=sys/time.h
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13746
13747
13748   for ac_header in sys/timeb.h
13749 do :
13750   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13752   cat >>confdefs.h <<_ACEOF
13753 #define HAVE_SYS_TIMEB_H 1
13754 _ACEOF
13755
13756 fi
13757
13758 done
13759
13760   for ac_func in _ftime
13761 do :
13762   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13763 if test "x$ac_cv_func__ftime" = x""yes; then :
13764   cat >>confdefs.h <<_ACEOF
13765 #define HAVE__FTIME 1
13766 _ACEOF
13767
13768 fi
13769 done
13770
13771
13772
13773 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13774
13775
13776 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13777
13778
13779
13780 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13781
13782  fi
13783
13784
13785   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
13786     REPLACE_GETTIMEOFDAY=1
13787     SYS_TIME_H=sys/time.h
13788     if test $gl_cv_func_gettimeofday_clobber != yes; then
13789
13790
13791
13792
13793
13794
13795
13796
13797   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13798
13799
13800   for ac_header in sys/timeb.h
13801 do :
13802   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13803 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13804   cat >>confdefs.h <<_ACEOF
13805 #define HAVE_SYS_TIMEB_H 1
13806 _ACEOF
13807
13808 fi
13809
13810 done
13811
13812   for ac_func in _ftime
13813 do :
13814   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13815 if test "x$ac_cv_func__ftime" = x""yes; then :
13816   cat >>confdefs.h <<_ACEOF
13817 #define HAVE__FTIME 1
13818 _ACEOF
13819
13820 fi
13821 done
13822
13823
13824     fi
13825   fi
13826
13827
13828    if ${MAKE-make} --version /cannot/make/this >/dev/null 2>&1; then
13829   GNU_MAKE_TRUE=
13830   GNU_MAKE_FALSE='#'
13831 else
13832   GNU_MAKE_TRUE='#'
13833   GNU_MAKE_FALSE=
13834 fi
13835
13836
13837   # Autoconf 2.61a.99 and earlier don't support linking a file only
13838   # in VPATH builds.  But since GNUmakefile is for maintainer use
13839   # only, it does not matter if we skip the link with older autoconf.
13840   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
13841   # builds, so use a shell variable to bypass this.
13842   GNUmakefile=GNUmakefile
13843   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
13844
13845
13846
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
13848 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
13849 if test "${gl_cv_c_inline_effective+set}" = set; then :
13850   $as_echo_n "(cached) " >&6
13851 else
13852   if test $ac_cv_c_inline = no; then
13853        gl_cv_c_inline_effective=no
13854      else
13855                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h.  */
13857
13858 int
13859 main ()
13860 {
13861 #ifdef __NO_INLINE__
13862                #error "inline is not effective"
13863              #endif
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869   gl_cv_c_inline_effective=yes
13870 else
13871   gl_cv_c_inline_effective=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874      fi
13875
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
13878 $as_echo "$gl_cv_c_inline_effective" >&6; }
13879   if test $gl_cv_c_inline_effective = yes; then
13880
13881 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
13882
13883   fi
13884
13885
13886
13887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13888 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13889 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13890   $as_echo_n "(cached) " >&6
13891 else
13892
13893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895 #include <math.h>
13896                    #if __GNUC__ >= 4
13897                    # undef isnand
13898                    # define isnand(x) __builtin_isnan ((double)(x))
13899                    #else
13900                    # undef isnand
13901                    # define isnand(x) isnan ((double)(x))
13902                    #endif
13903                    double x;
13904 int
13905 main ()
13906 {
13907 return isnand (x);
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13913   gl_cv_func_isnand_no_libm=yes
13914 else
13915   gl_cv_func_isnand_no_libm=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext \
13918     conftest$ac_exeext conftest.$ac_ext
13919
13920 fi
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13922 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13923
13924   if test $gl_cv_func_isnand_no_libm = yes; then
13925
13926 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13927
13928   else
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13939
13940
13941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13942 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13943 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
13944   $as_echo_n "(cached) " >&6
13945 else
13946
13947       if test "$cross_compiling" = yes; then :
13948
13949                                                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951
13952 #if defined arm || defined __arm || defined __arm__
13953   mixed_endianness
13954 #endif
13955
13956 _ACEOF
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
13959   gl_cv_cc_double_expbit0="unknown"
13960 else
13961
13962                                                          :
13963 if test "${ac_cv_c_bigendian+set}" = set; then :
13964   $as_echo_n "(cached) " >&6
13965 else
13966   ac_cv_c_bigendian=unknown
13967     # See if we're dealing with a universal compiler.
13968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970 #ifndef __APPLE_CC__
13971                not a universal capable compiler
13972              #endif
13973              typedef int dummy;
13974
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977
13978         # Check for potential -arch flags.  It is not universal unless
13979         # there are at least two -arch flags with different values.
13980         ac_arch=
13981         ac_prev=
13982         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13983          if test -n "$ac_prev"; then
13984            case $ac_word in
13985              i?86 | x86_64 | ppc | ppc64)
13986                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13987                  ac_arch=$ac_word
13988                else
13989                  ac_cv_c_bigendian=universal
13990                  break
13991                fi
13992                ;;
13993            esac
13994            ac_prev=
13995          elif test "x$ac_word" = "x-arch"; then
13996            ac_prev=arch
13997          fi
13998        done
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001     if test $ac_cv_c_bigendian = unknown; then
14002       # See if sys/param.h defines the BYTE_ORDER macro.
14003       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h.  */
14005 #include <sys/types.h>
14006              #include <sys/param.h>
14007
14008 int
14009 main ()
14010 {
14011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14012                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14013                      && LITTLE_ENDIAN)
14014               bogus endian macros
14015              #endif
14016
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022   # It does; now see whether it defined to BIG_ENDIAN or not.
14023          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025 #include <sys/types.h>
14026                 #include <sys/param.h>
14027
14028 int
14029 main ()
14030 {
14031 #if BYTE_ORDER != BIG_ENDIAN
14032                  not big endian
14033                 #endif
14034
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040   ac_cv_c_bigendian=yes
14041 else
14042   ac_cv_c_bigendian=no
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047     fi
14048     if test $ac_cv_c_bigendian = unknown; then
14049       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h.  */
14052 #include <limits.h>
14053
14054 int
14055 main ()
14056 {
14057 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14058               bogus endian macros
14059              #endif
14060
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066   # It does; now see whether it defined to _BIG_ENDIAN or not.
14067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h.  */
14069 #include <limits.h>
14070
14071 int
14072 main ()
14073 {
14074 #ifndef _BIG_ENDIAN
14075                  not big endian
14076                 #endif
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083   ac_cv_c_bigendian=yes
14084 else
14085   ac_cv_c_bigendian=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090     fi
14091     if test $ac_cv_c_bigendian = unknown; then
14092       # Compile a test program.
14093       if test "$cross_compiling" = yes; then :
14094   # Try to guess by grepping values from an object file.
14095          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h.  */
14097 short int ascii_mm[] =
14098                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14099                 short int ascii_ii[] =
14100                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14101                 int use_ascii (int i) {
14102                   return ascii_mm[i] + ascii_ii[i];
14103                 }
14104                 short int ebcdic_ii[] =
14105                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14106                 short int ebcdic_mm[] =
14107                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14108                 int use_ebcdic (int i) {
14109                   return ebcdic_mm[i] + ebcdic_ii[i];
14110                 }
14111                 extern int foo;
14112
14113 int
14114 main ()
14115 {
14116 return use_ascii (foo) == use_ebcdic (foo);
14117   ;
14118   return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_compile "$LINENO"; then :
14122   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14123               ac_cv_c_bigendian=yes
14124             fi
14125             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14126               if test "$ac_cv_c_bigendian" = unknown; then
14127                 ac_cv_c_bigendian=no
14128               else
14129                 # finding both strings is unlikely to happen, but who knows?
14130                 ac_cv_c_bigendian=unknown
14131               fi
14132             fi
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 else
14136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h.  */
14138 $ac_includes_default
14139 int
14140 main ()
14141 {
14142
14143              /* Are we little or big endian?  From Harbison&Steele.  */
14144              union
14145              {
14146                long int l;
14147                char c[sizeof (long int)];
14148              } u;
14149              u.l = 1;
14150              return u.c[sizeof (long int) - 1] == 1;
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_run "$LINENO"; then :
14157   ac_cv_c_bigendian=no
14158 else
14159   ac_cv_c_bigendian=yes
14160 fi
14161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14162   conftest.$ac_objext conftest.beam conftest.$ac_ext
14163 fi
14164
14165     fi
14166 fi
14167 :
14168  case $ac_cv_c_bigendian in #(
14169    yes)
14170      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
14171    no)
14172      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
14173    universal)
14174
14175 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14176
14177      ;; #(
14178    *)
14179      gl_cv_cc_double_expbit0="unknown" ;;
14180  esac
14181
14182
14183 fi
14184 rm -f conftest*
14185
14186
14187 else
14188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h.  */
14190
14191 #include <float.h>
14192 #include <stddef.h>
14193 #include <stdio.h>
14194 #include <string.h>
14195 #define NWORDS \
14196   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14197 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
14198 static unsigned int ored_words[NWORDS];
14199 static unsigned int anded_words[NWORDS];
14200 static void add_to_ored_words (double x)
14201 {
14202   memory_double m;
14203   size_t i;
14204   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
14205   memset (&m, 0, sizeof (memory_double));
14206   m.value = x;
14207   for (i = 0; i < NWORDS; i++)
14208     {
14209       ored_words[i] |= m.word[i];
14210       anded_words[i] &= m.word[i];
14211     }
14212 }
14213 int main ()
14214 {
14215   size_t j;
14216   FILE *fp = fopen ("conftest.out", "w");
14217   if (fp == NULL)
14218     return 1;
14219   for (j = 0; j < NWORDS; j++)
14220     anded_words[j] = ~ (unsigned int) 0;
14221   add_to_ored_words (0.25);
14222   add_to_ored_words (0.5);
14223   add_to_ored_words (1.0);
14224   add_to_ored_words (2.0);
14225   add_to_ored_words (4.0);
14226   /* Remove bits that are common (e.g. if representation of the first mantissa
14227      bit is explicit).  */
14228   for (j = 0; j < NWORDS; j++)
14229     ored_words[j] &= ~anded_words[j];
14230   /* Now find the nonzero word.  */
14231   for (j = 0; j < NWORDS; j++)
14232     if (ored_words[j] != 0)
14233       break;
14234   if (j < NWORDS)
14235     {
14236       size_t i;
14237       for (i = j + 1; i < NWORDS; i++)
14238         if (ored_words[i] != 0)
14239           {
14240             fprintf (fp, "unknown");
14241             return (fclose (fp) != 0);
14242           }
14243       for (i = 0; ; i++)
14244         if ((ored_words[j] >> i) & 1)
14245           {
14246             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14247             return (fclose (fp) != 0);
14248           }
14249     }
14250   fprintf (fp, "unknown");
14251   return (fclose (fp) != 0);
14252 }
14253
14254 _ACEOF
14255 if ac_fn_c_try_run "$LINENO"; then :
14256   gl_cv_cc_double_expbit0=`cat conftest.out`
14257 else
14258   gl_cv_cc_double_expbit0="unknown"
14259 fi
14260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14261   conftest.$ac_objext conftest.beam conftest.$ac_ext
14262 fi
14263
14264       rm -f conftest.out
14265
14266 fi
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
14268 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
14269   case "$gl_cv_cc_double_expbit0" in
14270     word*bit*)
14271       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14272       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
14273
14274 cat >>confdefs.h <<_ACEOF
14275 #define DBL_EXPBIT0_WORD $word
14276 _ACEOF
14277
14278
14279 cat >>confdefs.h <<_ACEOF
14280 #define DBL_EXPBIT0_BIT $bit
14281 _ACEOF
14282
14283       ;;
14284   esac
14285
14286
14287   fi
14288
14289
14290
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
14292 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
14293 if test "${gl_cv_func_isnanf_no_libm+set}" = set; then :
14294   $as_echo_n "(cached) " >&6
14295 else
14296
14297       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299 #include <math.h>
14300                    #if __GNUC__ >= 4
14301                    # undef isnanf
14302                    # define isnanf(x) __builtin_isnanf ((float)(x))
14303                    #elif defined isnan
14304                    # undef isnanf
14305                    # define isnanf(x) isnan ((float)(x))
14306                    #endif
14307                    float x;
14308 int
14309 main ()
14310 {
14311 return isnanf (x);
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 if ac_fn_c_try_link "$LINENO"; then :
14317   gl_cv_func_isnanf_no_libm=yes
14318 else
14319   gl_cv_func_isnanf_no_libm=no
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext \
14322     conftest$ac_exeext conftest.$ac_ext
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
14326 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
14327
14328   if test $gl_cv_func_isnanf_no_libm = yes; then
14329
14330
14331
14332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
14333 $as_echo_n "checking whether isnan(float) works... " >&6; }
14334 if test "${gl_cv_func_isnanf_works+set}" = set; then :
14335   $as_echo_n "(cached) " >&6
14336 else
14337
14338       if test "$cross_compiling" = yes; then :
14339   case "$host_os" in
14340            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
14341            *)                gl_cv_func_isnanf_works="guessing yes";;
14342          esac
14343
14344 else
14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347
14348 #include <math.h>
14349 #if __GNUC__ >= 4
14350 # undef isnanf
14351 # define isnanf(x) __builtin_isnanf ((float)(x))
14352 #elif defined isnan
14353 # undef isnanf
14354 # define isnanf(x) isnan ((float)(x))
14355 #endif
14356 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
14357 #ifdef __DECC
14358 static float
14359 NaN ()
14360 {
14361   static float zero = 0.0f;
14362   return zero / zero;
14363 }
14364 #else
14365 # define NaN() (0.0f / 0.0f)
14366 #endif
14367 #define NWORDS \
14368   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14369 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
14370 int main()
14371 {
14372   memory_float m;
14373
14374   if (isnanf (1.0f / 0.0f))
14375     return 1;
14376
14377   if (!isnanf (NaN ()))
14378     return 1;
14379
14380 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
14381   /* The isnanf function should be immune against changes in the sign bit and
14382      in the mantissa bits.  The xor operation twiddles a bit that can only be
14383      a sign bit or a mantissa bit.  */
14384   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
14385     {
14386       m.value = NaN ();
14387       /* Set the bits below the exponent to 01111...111.  */
14388       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
14389       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
14390       if (!isnanf (m.value))
14391         return 1;
14392     }
14393 #endif
14394
14395   return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_run "$LINENO"; then :
14399   gl_cv_func_isnanf_works=yes
14400 else
14401   gl_cv_func_isnanf_works=no
14402 fi
14403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14404   conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 fi
14406
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
14410 $as_echo "$gl_cv_func_isnanf_works" >&6; }
14411
14412   fi
14413   if test $gl_cv_func_isnanf_no_libm = yes \
14414      && { case "$gl_cv_func_isnanf_works" in
14415             *yes) true;;
14416             *) false;;
14417           esac
14418         }; then
14419
14420 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
14421
14422   else
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
14433
14434
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14436 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14437 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
14438   $as_echo_n "(cached) " >&6
14439 else
14440
14441       if test "$cross_compiling" = yes; then :
14442   gl_cv_cc_float_expbit0="word 0 bit 23"
14443 else
14444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446
14447 #include <float.h>
14448 #include <stddef.h>
14449 #include <stdio.h>
14450 #include <string.h>
14451 #define NWORDS \
14452   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14453 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14454 static unsigned int ored_words[NWORDS];
14455 static unsigned int anded_words[NWORDS];
14456 static void add_to_ored_words (float x)
14457 {
14458   memory_float m;
14459   size_t i;
14460   /* Clear it first, in case
14461      sizeof (float) < sizeof (memory_float).  */
14462   memset (&m, 0, sizeof (memory_float));
14463   m.value = x;
14464   for (i = 0; i < NWORDS; i++)
14465     {
14466       ored_words[i] |= m.word[i];
14467       anded_words[i] &= m.word[i];
14468     }
14469 }
14470 int main ()
14471 {
14472   size_t j;
14473   FILE *fp = fopen ("conftest.out", "w");
14474   if (fp == NULL)
14475     return 1;
14476   for (j = 0; j < NWORDS; j++)
14477     anded_words[j] = ~ (unsigned int) 0;
14478   add_to_ored_words (0.25f);
14479   add_to_ored_words (0.5f);
14480   add_to_ored_words (1.0f);
14481   add_to_ored_words (2.0f);
14482   add_to_ored_words (4.0f);
14483   /* Remove bits that are common (e.g. if representation of the first mantissa
14484      bit is explicit).  */
14485   for (j = 0; j < NWORDS; j++)
14486     ored_words[j] &= ~anded_words[j];
14487   /* Now find the nonzero word.  */
14488   for (j = 0; j < NWORDS; j++)
14489     if (ored_words[j] != 0)
14490       break;
14491   if (j < NWORDS)
14492     {
14493       size_t i;
14494       for (i = j + 1; i < NWORDS; i++)
14495         if (ored_words[i] != 0)
14496           {
14497             fprintf (fp, "unknown");
14498             return (fclose (fp) != 0);
14499           }
14500       for (i = 0; ; i++)
14501         if ((ored_words[j] >> i) & 1)
14502           {
14503             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14504             return (fclose (fp) != 0);
14505           }
14506     }
14507   fprintf (fp, "unknown");
14508   return (fclose (fp) != 0);
14509 }
14510
14511 _ACEOF
14512 if ac_fn_c_try_run "$LINENO"; then :
14513   gl_cv_cc_float_expbit0=`cat conftest.out`
14514 else
14515   gl_cv_cc_float_expbit0="unknown"
14516 fi
14517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14518   conftest.$ac_objext conftest.beam conftest.$ac_ext
14519 fi
14520
14521       rm -f conftest.out
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14525 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14526   case "$gl_cv_cc_float_expbit0" in
14527     word*bit*)
14528       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14529       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14530
14531 cat >>confdefs.h <<_ACEOF
14532 #define FLT_EXPBIT0_WORD $word
14533 _ACEOF
14534
14535
14536 cat >>confdefs.h <<_ACEOF
14537 #define FLT_EXPBIT0_BIT $bit
14538 _ACEOF
14539
14540       ;;
14541   esac
14542
14543
14544   fi
14545
14546
14547
14548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14549 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14550 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14551   $as_echo_n "(cached) " >&6
14552 else
14553
14554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h.  */
14556 #include <math.h>
14557                    #if __GNUC__ >= 4
14558                    # undef isnanl
14559                    # define isnanl(x) __builtin_isnanl ((long double)(x))
14560                    #elif defined isnan
14561                    # undef isnanl
14562                    # define isnanl(x) isnan ((long double)(x))
14563                    #endif
14564                    long double x;
14565 int
14566 main ()
14567 {
14568 return isnanl (x);
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"; then :
14574   gl_cv_func_isnanl_no_libm=yes
14575 else
14576   gl_cv_func_isnanl_no_libm=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext \
14579     conftest$ac_exeext conftest.$ac_ext
14580
14581 fi
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14583 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14584
14585   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14586   if test $gl_func_isnanl_no_libm = yes; then
14587
14588
14589
14590      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14591 $as_echo_n "checking whether isnanl works... " >&6; }
14592 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14593   $as_echo_n "(cached) " >&6
14594 else
14595
14596       if test "$cross_compiling" = yes; then :
14597   case "$host_cpu" in
14598                                # Guess no on ia64, x86_64, i386.
14599          ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
14600          *)
14601            case "$host_os" in
14602              netbsd*) gl_cv_func_isnanl_works="guessing no";;
14603              *)       gl_cv_func_isnanl_works="guessing yes";;
14604            esac
14605            ;;
14606        esac
14607
14608 else
14609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h.  */
14611
14612 #include <float.h>
14613 #include <limits.h>
14614 #include <math.h>
14615 #if __GNUC__ >= 4
14616 # undef isnanl
14617 # define isnanl(x) __builtin_isnanl ((long double)(x))
14618 #elif defined isnan
14619 # undef isnanl
14620 # define isnanl(x) isnan ((long double)(x))
14621 #endif
14622 #define NWORDS \
14623   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14624 typedef union { unsigned int word[NWORDS]; long double value; }
14625         memory_long_double;
14626 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14627    runtime type conversion.  */
14628 #ifdef __sgi
14629 static long double NaNl ()
14630 {
14631   double zero = 0.0;
14632   return zero / zero;
14633 }
14634 #else
14635 # define NaNl() (0.0L / 0.0L)
14636 #endif
14637 int main ()
14638 {
14639   memory_long_double m;
14640   unsigned int i;
14641
14642   if (!isnanl (NaNl ()))
14643     return 1;
14644
14645   /* The isnanl function should be immune against changes in the sign bit and
14646      in the mantissa bits.  The xor operation twiddles a bit that can only be
14647      a sign bit or a mantissa bit (since the exponent never extends to
14648      bit 31).  */
14649   m.value = NaNl ();
14650   m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14651   for (i = 0; i < NWORDS; i++)
14652     m.word[i] |= 1;
14653   if (!isnanl (m.value))
14654     return 1;
14655
14656 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
14657 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14658    of 'unsigned int' words.  */
14659 # ifdef WORDS_BIGENDIAN
14660 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
14661      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14662        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
14663        (unsigned int) (mantlo) << 16                                        \
14664      }
14665 # else
14666 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
14667      { mantlo, manthi, exponent }
14668 # endif
14669   { /* Quiet NaN.  */
14670     static memory_long_double x =
14671       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14672     if (!isnanl (x.value))
14673       return 1;
14674   }
14675   {
14676     /* Signalling NaN.  */
14677     static memory_long_double x =
14678       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14679     if (!isnanl (x.value))
14680       return 1;
14681   }
14682   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
14683      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
14684        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
14685        Application Architecture.
14686        Table 5-2 "Floating-Point Register Encodings"
14687        Figure 5-6 "Memory to Floating-Point Register Data Translation"
14688    */
14689   { /* Pseudo-NaN.  */
14690     static memory_long_double x =
14691       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14692     if (!isnanl (x.value))
14693       return 1;
14694   }
14695   { /* Pseudo-Infinity.  */
14696     static memory_long_double x =
14697       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14698     if (!isnanl (x.value))
14699       return 1;
14700   }
14701   { /* Pseudo-Zero.  */
14702     static memory_long_double x =
14703       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14704     if (!isnanl (x.value))
14705       return 1;
14706   }
14707   { /* Unnormalized number.  */
14708     static memory_long_double x =
14709       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14710     if (!isnanl (x.value))
14711       return 1;
14712   }
14713   { /* Pseudo-Denormal.  */
14714     static memory_long_double x =
14715       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14716     if (!isnanl (x.value))
14717       return 1;
14718   }
14719 #endif
14720
14721   return 0;
14722 }
14723 _ACEOF
14724 if ac_fn_c_try_run "$LINENO"; then :
14725   gl_cv_func_isnanl_works=yes
14726 else
14727   gl_cv_func_isnanl_works=no
14728 fi
14729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14730   conftest.$ac_objext conftest.beam conftest.$ac_ext
14731 fi
14732
14733
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14736 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14737
14738     case "$gl_cv_func_isnanl_works" in
14739       *yes) ;;
14740       *)    gl_func_isnanl_no_libm=no ;;
14741     esac
14742   fi
14743   if test $gl_func_isnanl_no_libm = yes; then
14744
14745 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14746
14747   else
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14758
14759
14760
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14762 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14763 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14764   $as_echo_n "(cached) " >&6
14765 else
14766
14767       if test "$cross_compiling" = yes; then :
14768
14769                               gl_cv_cc_long_double_expbit0="unknown"
14770
14771 else
14772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h.  */
14774
14775 #include <float.h>
14776 #include <stddef.h>
14777 #include <stdio.h>
14778 #include <string.h>
14779 #define NWORDS \
14780   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14781 typedef union { long double value; unsigned int word[NWORDS]; }
14782         memory_long_double;
14783 static unsigned int ored_words[NWORDS];
14784 static unsigned int anded_words[NWORDS];
14785 static void add_to_ored_words (long double x)
14786 {
14787   memory_long_double m;
14788   size_t i;
14789   /* Clear it first, in case
14790      sizeof (long double) < sizeof (memory_long_double).  */
14791   memset (&m, 0, sizeof (memory_long_double));
14792   m.value = x;
14793   for (i = 0; i < NWORDS; i++)
14794     {
14795       ored_words[i] |= m.word[i];
14796       anded_words[i] &= m.word[i];
14797     }
14798 }
14799 int main ()
14800 {
14801   size_t j;
14802   FILE *fp = fopen ("conftest.out", "w");
14803   if (fp == NULL)
14804     return 1;
14805   for (j = 0; j < NWORDS; j++)
14806     anded_words[j] = ~ (unsigned int) 0;
14807   add_to_ored_words (0.25L);
14808   add_to_ored_words (0.5L);
14809   add_to_ored_words (1.0L);
14810   add_to_ored_words (2.0L);
14811   add_to_ored_words (4.0L);
14812   /* Remove bits that are common (e.g. if representation of the first mantissa
14813      bit is explicit).  */
14814   for (j = 0; j < NWORDS; j++)
14815     ored_words[j] &= ~anded_words[j];
14816   /* Now find the nonzero word.  */
14817   for (j = 0; j < NWORDS; j++)
14818     if (ored_words[j] != 0)
14819       break;
14820   if (j < NWORDS)
14821     {
14822       size_t i;
14823       for (i = j + 1; i < NWORDS; i++)
14824         if (ored_words[i] != 0)
14825           {
14826             fprintf (fp, "unknown");
14827             return (fclose (fp) != 0);
14828           }
14829       for (i = 0; ; i++)
14830         if ((ored_words[j] >> i) & 1)
14831           {
14832             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14833             return (fclose (fp) != 0);
14834           }
14835     }
14836   fprintf (fp, "unknown");
14837   return (fclose (fp) != 0);
14838 }
14839
14840 _ACEOF
14841 if ac_fn_c_try_run "$LINENO"; then :
14842   gl_cv_cc_long_double_expbit0=`cat conftest.out`
14843 else
14844   gl_cv_cc_long_double_expbit0="unknown"
14845 fi
14846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14847   conftest.$ac_objext conftest.beam conftest.$ac_ext
14848 fi
14849
14850       rm -f conftest.out
14851
14852 fi
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14854 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14855   case "$gl_cv_cc_long_double_expbit0" in
14856     word*bit*)
14857       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14858       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14859
14860 cat >>confdefs.h <<_ACEOF
14861 #define LDBL_EXPBIT0_WORD $word
14862 _ACEOF
14863
14864
14865 cat >>confdefs.h <<_ACEOF
14866 #define LDBL_EXPBIT0_BIT $bit
14867 _ACEOF
14868
14869       ;;
14870   esac
14871
14872
14873   fi
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
14884
14885
14886
14887
14888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
14889 $as_echo_n "checking whether lseek detects pipes... " >&6; }
14890 if test "${gl_cv_func_lseek_pipe+set}" = set; then :
14891   $as_echo_n "(cached) " >&6
14892 else
14893   if test $cross_compiling = no; then
14894        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h.  */
14896
14897 #include <sys/types.h> /* for off_t */
14898 #include <stdio.h> /* for SEEK_CUR */
14899 #include <unistd.h>
14900 int main ()
14901 {
14902   /* Exit with success only if stdin is seekable.  */
14903   return lseek (0, (off_t)0, SEEK_CUR) < 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907   if test -s conftest$ac_exeext \
14908              && ./conftest$ac_exeext < conftest.$ac_ext \
14909              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
14910             gl_cv_func_lseek_pipe=yes
14911           else
14912             gl_cv_func_lseek_pipe=no
14913           fi
14914 else
14915   gl_cv_func_lseek_pipe=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext \
14918     conftest$ac_exeext conftest.$ac_ext
14919      else
14920        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h.  */
14922
14923 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
14924 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
14925   Choke me.
14926 #endif
14927 _ACEOF
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929   gl_cv_func_lseek_pipe=yes
14930 else
14931   gl_cv_func_lseek_pipe=no
14932 fi
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14934      fi
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
14937 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
14938   if test $gl_cv_func_lseek_pipe = no; then
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
14949
14950
14951   REPLACE_LSEEK=1
14952
14953 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
14954
14955
14956   fi
14957
14958
14959
14960   GNULIB_LSEEK=1
14961
14962
14963
14964
14965   if test $ac_cv_func_lstat = yes; then
14966
14967     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14968             REPLACE_LSTAT=1
14969     fi
14970     # Prerequisites of lib/lstat.c.
14971
14972   else
14973     HAVE_LSTAT=0
14974   fi
14975
14976
14977
14978   GNULIB_LSTAT=1
14979
14980   for ac_header in stdlib.h
14981 do :
14982   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14983 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14984   cat >>confdefs.h <<_ACEOF
14985 #define HAVE_STDLIB_H 1
14986 _ACEOF
14987
14988 fi
14989
14990 done
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14993 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14994 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
14995   $as_echo_n "(cached) " >&6
14996 else
14997   if test "$cross_compiling" = yes; then :
14998   ac_cv_func_malloc_0_nonnull=no
14999 else
15000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h.  */
15002 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15003 # include <stdlib.h>
15004 #else
15005 char *malloc ();
15006 #endif
15007
15008 int
15009 main ()
15010 {
15011 return ! malloc (0);
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 if ac_fn_c_try_run "$LINENO"; then :
15017   ac_cv_func_malloc_0_nonnull=yes
15018 else
15019   ac_cv_func_malloc_0_nonnull=no
15020 fi
15021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15022   conftest.$ac_objext conftest.beam conftest.$ac_ext
15023 fi
15024
15025 fi
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15027 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15028 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15029
15030 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15031
15032 else
15033   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15044
15045
15046 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15047
15048 fi
15049
15050
15051
15052 $as_echo "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
15053
15054
15055
15056   if test $gl_cv_func_malloc_posix = yes; then
15057     HAVE_MALLOC_POSIX=1
15058
15059 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15060
15061   else
15062
15063
15064
15065
15066
15067
15068
15069
15070   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15071
15072     HAVE_MALLOC_POSIX=0
15073   fi
15074
15075
15076
15077
15078   GNULIB_MALLOC_POSIX=1
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088      if test $gl_cv_have_include_next = yes; then
15089        gl_cv_next_math_h='<'math.h'>'
15090      else
15091        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
15092 $as_echo_n "checking absolute name of <math.h>... " >&6; }
15093 if test "${gl_cv_next_math_h+set}" = set; then :
15094   $as_echo_n "(cached) " >&6
15095 else
15096
15097           if test $ac_cv_header_math_h = yes; then
15098             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h.  */
15100 #include <math.h>
15101
15102 _ACEOF
15103                                                                     case "$host_os" in
15104               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15105               *)    gl_absname_cpp="$ac_cpp" ;;
15106             esac
15107                                     gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15108                sed -n '\#/math.h#{
15109                  s#.*"\(.*/math.h\)".*#\1#
15110                  s#^/[^/]#//&#
15111                  p
15112                  q
15113                }'`'"'
15114           else
15115             gl_cv_next_math_h='<'math.h'>'
15116           fi
15117
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
15120 $as_echo "$gl_cv_next_math_h" >&6; }
15121      fi
15122      NEXT_MATH_H=$gl_cv_next_math_h
15123
15124      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15125        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15126        gl_next_as_first_directive='<'math.h'>'
15127      else
15128        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15129        gl_next_as_first_directive=$gl_cv_next_math_h
15130      fi
15131      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
15132
15133
15134
15135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
15136 $as_echo_n "checking whether NAN macro works... " >&6; }
15137 if test "${gl_cv_header_math_nan_works+set}" = set; then :
15138   $as_echo_n "(cached) " >&6
15139 else
15140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h.  */
15142 #include <math.h>
15143 int
15144 main ()
15145 {
15146 /* Solaris 10 has a broken definition of NAN.  Other platforms
15147         fail to provide NAN, or provide it only in C99 mode; this
15148         test only needs to fail when NAN is provided but wrong.  */
15149          float f = 1.0f;
15150 #ifdef NAN
15151          f = NAN;
15152 #endif
15153          return f == 0;
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159   gl_cv_header_math_nan_works=yes
15160 else
15161   gl_cv_header_math_nan_works=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 fi
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15166 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15167   if test $gl_cv_header_math_nan_works = no; then
15168     REPLACE_NAN=1
15169   fi
15170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15171 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15172 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
15173   $as_echo_n "(cached) " >&6
15174 else
15175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h.  */
15177 #include <math.h>
15178 int
15179 main ()
15180 {
15181 /* Solaris 10 has a broken definition of HUGE_VAL.  */
15182          double d = HUGE_VAL;
15183          return d == 0;
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 if ac_fn_c_try_compile "$LINENO"; then :
15189   gl_cv_header_math_huge_val_works=yes
15190 else
15191   gl_cv_header_math_huge_val_works=no
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15196 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15197   if test $gl_cv_header_math_huge_val_works = no; then
15198     REPLACE_HUGE_VAL=1
15199   fi
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15212
15213
15214
15215      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15216 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15217 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220
15221                   case "$host_os" in
15222               # Guess no on AIX and OSF/1.
15223         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15224               # Guess yes otherwise.
15225         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15226       esac
15227       if test $LOCALE_JA != none; then
15228         if test "$cross_compiling" = yes; then :
15229   :
15230 else
15231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h.  */
15233
15234 #include <locale.h>
15235 #include <string.h>
15236 #include <wchar.h>
15237 int main ()
15238 {
15239   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15240     {
15241       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15242       mbstate_t state;
15243       wchar_t wc;
15244
15245       memset (&state, '\0', sizeof (mbstate_t));
15246       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15247         if (mbsinit (&state))
15248           return 1;
15249     }
15250   return 0;
15251 }
15252 _ACEOF
15253 if ac_fn_c_try_run "$LINENO"; then :
15254   gl_cv_func_mbrtowc_incomplete_state=yes
15255 else
15256   gl_cv_func_mbrtowc_incomplete_state=no
15257 fi
15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259   conftest.$ac_objext conftest.beam conftest.$ac_ext
15260 fi
15261
15262       fi
15263
15264 fi
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15266 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15267
15268
15269
15270
15271      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15272 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15273 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15274   $as_echo_n "(cached) " >&6
15275 else
15276
15277                   case "$host_os" in
15278                     # Guess no on Solaris 8.
15279         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15280                     # Guess yes otherwise.
15281         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15282       esac
15283       if test $LOCALE_ZH_CN != none; then
15284         if test "$cross_compiling" = yes; then :
15285   :
15286 else
15287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h.  */
15289
15290 #include <locale.h>
15291 #include <stdlib.h>
15292 #include <string.h>
15293 #include <wchar.h>
15294 int main ()
15295 {
15296   /* This fails on Solaris 8:
15297      mbrtowc returns 2, and sets wc to 0x00F0.
15298      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15299   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15300     {
15301       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15302       mbstate_t state;
15303       wchar_t wc;
15304
15305       memset (&state, '\0', sizeof (mbstate_t));
15306       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15307           && mbtowc (&wc, input + 3, 6) == 4)
15308         return 1;
15309     }
15310   return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_run "$LINENO"; then :
15314   gl_cv_func_mbrtowc_sanitycheck=yes
15315 else
15316   gl_cv_func_mbrtowc_sanitycheck=no
15317 fi
15318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15319   conftest.$ac_objext conftest.beam conftest.$ac_ext
15320 fi
15321
15322       fi
15323
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15326 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15327
15328     REPLACE_MBSTATE_T=0
15329     case "$gl_cv_func_mbrtowc_incomplete_state" in
15330       *yes) ;;
15331       *) REPLACE_MBSTATE_T=1 ;;
15332     esac
15333     case "$gl_cv_func_mbrtowc_sanitycheck" in
15334       *yes) ;;
15335       *) REPLACE_MBSTATE_T=1 ;;
15336     esac
15337   else
15338     REPLACE_MBSTATE_T=1
15339   fi
15340   if test $REPLACE_MBSTATE_T = 1; then
15341
15342
15343   WCHAR_H=wchar.h
15344
15345   fi
15346
15347   if test $REPLACE_MBSTATE_T = 1; then
15348     REPLACE_MBRTOWC=1
15349   fi
15350
15351   if test $ac_cv_func_mbrtowc = no; then
15352     HAVE_MBRTOWC=0
15353   fi
15354   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
15355
15356
15357
15358      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15359 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15360 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
15361   $as_echo_n "(cached) " >&6
15362 else
15363
15364                   case "$host_os" in
15365               # Guess no on OSF/1.
15366         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15367               # Guess yes otherwise.
15368         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15369       esac
15370       if test $LOCALE_FR_UTF8 != none; then
15371         if test "$cross_compiling" = yes; then :
15372   :
15373 else
15374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h.  */
15376
15377 #include <locale.h>
15378 #include <string.h>
15379 #include <wchar.h>
15380 int main ()
15381 {
15382   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15383     {
15384       mbstate_t state;
15385       wchar_t wc;
15386       int ret;
15387
15388       memset (&state, '\0', sizeof (mbstate_t));
15389       wc = (wchar_t) 0xBADFACE;
15390       mbrtowc (&wc, NULL, 5, &state);
15391       /* Check that wc was not modified.  */
15392       if (wc != (wchar_t) 0xBADFACE)
15393         return 1;
15394     }
15395   return 0;
15396 }
15397 _ACEOF
15398 if ac_fn_c_try_run "$LINENO"; then :
15399   gl_cv_func_mbrtowc_null_arg=yes
15400 else
15401   gl_cv_func_mbrtowc_null_arg=no
15402 fi
15403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15404   conftest.$ac_objext conftest.beam conftest.$ac_ext
15405 fi
15406
15407       fi
15408
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15411 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15412
15413
15414
15415
15416
15417      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15418 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15419 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422
15423                   case "$host_os" in
15424                           # Guess no on HP-UX and Solaris.
15425         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15426                           # Guess yes otherwise.
15427         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
15428       esac
15429       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15430         if test "$cross_compiling" = yes; then :
15431   :
15432 else
15433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h.  */
15435
15436 #include <locale.h>
15437 #include <string.h>
15438 #include <wchar.h>
15439 int main ()
15440 {
15441   /* This fails on Solaris.  */
15442   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15443     {
15444       char input[] = "B\303\274\303\237er"; /* "Büßer" */
15445       mbstate_t state;
15446       wchar_t wc;
15447
15448       memset (&state, '\0', sizeof (mbstate_t));
15449       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15450         {
15451           input[1] = '\0';
15452           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15453             return 1;
15454         }
15455     }
15456   /* This fails on HP-UX 11.11.  */
15457   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15458     {
15459       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15460       mbstate_t state;
15461       wchar_t wc;
15462
15463       memset (&state, '\0', sizeof (mbstate_t));
15464       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15465         {
15466           input[1] = '\0';
15467           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15468             return 1;
15469         }
15470     }
15471   return 0;
15472 }
15473 _ACEOF
15474 if ac_fn_c_try_run "$LINENO"; then :
15475   gl_cv_func_mbrtowc_retval=yes
15476 else
15477   gl_cv_func_mbrtowc_retval=no
15478 fi
15479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15480   conftest.$ac_objext conftest.beam conftest.$ac_ext
15481 fi
15482
15483       fi
15484
15485 fi
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15487 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15488
15489
15490
15491
15492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15493 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15494 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15495   $as_echo_n "(cached) " >&6
15496 else
15497
15498                   case "$host_os" in
15499                        # Guess no on Solaris 8 and 9.
15500         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15501                        # Guess yes otherwise.
15502         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15503       esac
15504       if test $LOCALE_ZH_CN != none; then
15505         if test "$cross_compiling" = yes; then :
15506   :
15507 else
15508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h.  */
15510
15511 #include <locale.h>
15512 #include <string.h>
15513 #include <wchar.h>
15514 int main ()
15515 {
15516   /* This fails on Solaris 8 and 9.  */
15517   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15518     {
15519       mbstate_t state;
15520       wchar_t wc;
15521
15522       memset (&state, '\0', sizeof (mbstate_t));
15523       if (mbrtowc (&wc, "", 1, &state) != 0)
15524         return 1;
15525     }
15526   return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_run "$LINENO"; then :
15530   gl_cv_func_mbrtowc_nul_retval=yes
15531 else
15532   gl_cv_func_mbrtowc_nul_retval=no
15533 fi
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535   conftest.$ac_objext conftest.beam conftest.$ac_ext
15536 fi
15537
15538       fi
15539
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15542 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15543
15544     case "$gl_cv_func_mbrtowc_null_arg" in
15545       *yes) ;;
15546       *)
15547 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15548
15549          REPLACE_MBRTOWC=1
15550          ;;
15551     esac
15552     case "$gl_cv_func_mbrtowc_retval" in
15553       *yes) ;;
15554       *)
15555 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15556
15557          REPLACE_MBRTOWC=1
15558          ;;
15559     esac
15560     case "$gl_cv_func_mbrtowc_nul_retval" in
15561       *yes) ;;
15562       *)
15563 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15564
15565          REPLACE_MBRTOWC=1
15566          ;;
15567     esac
15568   fi
15569   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15570
15571
15572   WCHAR_H=wchar.h
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15583
15584
15585   :
15586
15587   fi
15588
15589
15590
15591   GNULIB_MBRTOWC=1
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15604
15605
15606
15607      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15608 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15609 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15610   $as_echo_n "(cached) " >&6
15611 else
15612
15613                   case "$host_os" in
15614               # Guess no on AIX and OSF/1.
15615         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15616               # Guess yes otherwise.
15617         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15618       esac
15619       if test $LOCALE_JA != none; then
15620         if test "$cross_compiling" = yes; then :
15621   :
15622 else
15623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h.  */
15625
15626 #include <locale.h>
15627 #include <string.h>
15628 #include <wchar.h>
15629 int main ()
15630 {
15631   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15632     {
15633       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15634       mbstate_t state;
15635       wchar_t wc;
15636
15637       memset (&state, '\0', sizeof (mbstate_t));
15638       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15639         if (mbsinit (&state))
15640           return 1;
15641     }
15642   return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_run "$LINENO"; then :
15646   gl_cv_func_mbrtowc_incomplete_state=yes
15647 else
15648   gl_cv_func_mbrtowc_incomplete_state=no
15649 fi
15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15651   conftest.$ac_objext conftest.beam conftest.$ac_ext
15652 fi
15653
15654       fi
15655
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15658 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15659
15660
15661
15662
15663      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15664 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15665 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15666   $as_echo_n "(cached) " >&6
15667 else
15668
15669                   case "$host_os" in
15670                     # Guess no on Solaris 8.
15671         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15672                     # Guess yes otherwise.
15673         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15674       esac
15675       if test $LOCALE_ZH_CN != none; then
15676         if test "$cross_compiling" = yes; then :
15677   :
15678 else
15679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h.  */
15681
15682 #include <locale.h>
15683 #include <stdlib.h>
15684 #include <string.h>
15685 #include <wchar.h>
15686 int main ()
15687 {
15688   /* This fails on Solaris 8:
15689      mbrtowc returns 2, and sets wc to 0x00F0.
15690      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15691   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15692     {
15693       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15694       mbstate_t state;
15695       wchar_t wc;
15696
15697       memset (&state, '\0', sizeof (mbstate_t));
15698       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15699           && mbtowc (&wc, input + 3, 6) == 4)
15700         return 1;
15701     }
15702   return 0;
15703 }
15704 _ACEOF
15705 if ac_fn_c_try_run "$LINENO"; then :
15706   gl_cv_func_mbrtowc_sanitycheck=yes
15707 else
15708   gl_cv_func_mbrtowc_sanitycheck=no
15709 fi
15710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15711   conftest.$ac_objext conftest.beam conftest.$ac_ext
15712 fi
15713
15714       fi
15715
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15718 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15719
15720     REPLACE_MBSTATE_T=0
15721     case "$gl_cv_func_mbrtowc_incomplete_state" in
15722       *yes) ;;
15723       *) REPLACE_MBSTATE_T=1 ;;
15724     esac
15725     case "$gl_cv_func_mbrtowc_sanitycheck" in
15726       *yes) ;;
15727       *) REPLACE_MBSTATE_T=1 ;;
15728     esac
15729   else
15730     REPLACE_MBSTATE_T=1
15731   fi
15732   if test $REPLACE_MBSTATE_T = 1; then
15733
15734
15735   WCHAR_H=wchar.h
15736
15737   fi
15738
15739   if test $REPLACE_MBSTATE_T = 1; then
15740     REPLACE_MBSINIT=1
15741   fi
15742
15743   if test $ac_cv_func_mbsinit = no; then
15744     HAVE_MBSINIT=0
15745   fi
15746   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15747
15748
15749   WCHAR_H=wchar.h
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15760
15761
15762   :
15763
15764   fi
15765
15766
15767
15768   GNULIB_MBSINIT=1
15769
15770
15771
15772
15773   GNULIB_MEMCHR=1
15774
15775
15776
15777
15778   case "$host_os" in
15779     mingw* | pw*)
15780
15781
15782   REPLACE_OPEN=1
15783
15784
15785
15786
15787
15788
15789
15790
15791   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
15792
15793
15794
15795
15796   :
15797
15798
15799       ;;
15800     *)
15801                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
15802 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
15803 if test "${gl_cv_func_open_slash+set}" = set; then :
15804   $as_echo_n "(cached) " >&6
15805 else
15806
15807           if test "$cross_compiling" = yes; then :
15808
15809              case "$host_os" in
15810                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
15811                hpux*)           gl_cv_func_open_slash="guessing no" ;;
15812                *)               gl_cv_func_open_slash="guessing yes" ;;
15813              esac
15814
15815 else
15816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h.  */
15818
15819 #include <fcntl.h>
15820 #if HAVE_UNISTD_H
15821 # include <unistd.h>
15822 #endif
15823 int main ()
15824 {
15825   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
15826 }
15827 _ACEOF
15828 if ac_fn_c_try_run "$LINENO"; then :
15829   gl_cv_func_open_slash=yes
15830 else
15831   gl_cv_func_open_slash=no
15832 fi
15833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15834   conftest.$ac_objext conftest.beam conftest.$ac_ext
15835 fi
15836
15837           rm -f conftest.sl
15838
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
15841 $as_echo "$gl_cv_func_open_slash" >&6; }
15842       case "$gl_cv_func_open_slash" in
15843         *no)
15844
15845 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
15846
15847
15848
15849   REPLACE_OPEN=1
15850
15851
15852
15853
15854
15855
15856
15857
15858   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
15859
15860
15861
15862
15863   :
15864
15865
15866           ;;
15867       esac
15868       ;;
15869   esac
15870
15871
15872
15873 $as_echo "#define GNULIB_OPEN 1" >>confdefs.h
15874
15875
15876
15877
15878   GNULIB_OPEN=1
15879
15880
15881
15882
15883   if test -n "$ERRNO_H"; then
15884             REPLACE_PERROR=1
15885
15886
15887
15888
15889
15890
15891
15892
15893   gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
15894
15895   fi
15896
15897
15898
15899   GNULIB_PERROR=1
15900
15901
15902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp can be used without linking with libm" >&5
15903 $as_echo_n "checking whether frexp can be used without linking with libm... " >&6; }
15904 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
15905   $as_echo_n "(cached) " >&6
15906 else
15907
15908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h.  */
15910 #include <math.h>
15911                    double x;
15912                    int y;
15913 int
15914 main ()
15915 {
15916 return frexp (x, &y) < 1;
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"; then :
15922   gl_cv_func_frexp_no_libm=yes
15923 else
15924   gl_cv_func_frexp_no_libm=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927     conftest$ac_exeext conftest.$ac_ext
15928
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
15931 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
15932   if test $gl_cv_func_frexp_no_libm = yes; then
15933
15934
15935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15936 $as_echo_n "checking whether frexp works... " >&6; }
15937 if test "${gl_cv_func_frexp_works+set}" = set; then :
15938   $as_echo_n "(cached) " >&6
15939 else
15940
15941       if test "$cross_compiling" = yes; then :
15942   case "$host_os" in
15943          netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
15944          *)                        gl_cv_func_frexp_works="guessing yes";;
15945        esac
15946
15947 else
15948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h.  */
15950
15951 #include <float.h>
15952 #include <math.h>
15953 #include <string.h>
15954 int main()
15955 {
15956   int i;
15957   volatile double x;
15958 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15959    So we use -zero instead.  */
15960   double zero = 0.0;
15961   /* Test on denormalized numbers.  */
15962   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15963     ;
15964   if (x > 0.0)
15965     {
15966       int exp;
15967       double y = frexp (x, &exp);
15968       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15969          On NetBSD: y = 0.75. Correct: y = 0.5.  */
15970       if (y != 0.5)
15971         return 1;
15972     }
15973   /* Test on infinite numbers.  */
15974   x = 1.0 / 0.0;
15975   {
15976     int exp;
15977     double y = frexp (x, &exp);
15978     if (y != x)
15979       return 1;
15980   }
15981   /* Test on negative zero.  */
15982   x = -zero;
15983   {
15984     int exp;
15985     double y = frexp (x, &exp);
15986     if (memcmp (&y, &x, sizeof x))
15987       return 1;
15988   }
15989   return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_c_try_run "$LINENO"; then :
15993   gl_cv_func_frexp_works=yes
15994 else
15995   gl_cv_func_frexp_works=no
15996 fi
15997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15998   conftest.$ac_objext conftest.beam conftest.$ac_ext
15999 fi
16000
16001
16002 fi
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16004 $as_echo "$gl_cv_func_frexp_works" >&6; }
16005
16006     case "$gl_cv_func_frexp_works" in
16007       *yes)
16008
16009 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
16010
16011         ;;
16012     esac
16013   fi
16014
16015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
16016 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
16017 if test "${gl_cv_func_ldexp_no_libm+set}" = set; then :
16018   $as_echo_n "(cached) " >&6
16019 else
16020
16021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h.  */
16023 #include <math.h>
16024                    double x;
16025                    int y;
16026 int
16027 main ()
16028 {
16029 return ldexp (x, y) < 1;
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035   gl_cv_func_ldexp_no_libm=yes
16036 else
16037   gl_cv_func_ldexp_no_libm=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040     conftest$ac_exeext conftest.$ac_ext
16041
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
16044 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
16045   if test $gl_cv_func_ldexp_no_libm = yes; then
16046
16047 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
16048
16049   fi
16050
16051
16052
16053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl can be used without linking with libm" >&5
16054 $as_echo_n "checking whether frexpl can be used without linking with libm... " >&6; }
16055 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
16056   $as_echo_n "(cached) " >&6
16057 else
16058
16059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h.  */
16061 #include <math.h>
16062                    long double x;
16063                    int y;
16064 int
16065 main ()
16066 {
16067 return frexpl (x, &y) < 1;
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 if ac_fn_c_try_link "$LINENO"; then :
16073   gl_cv_func_frexpl_no_libm=yes
16074 else
16075   gl_cv_func_frexpl_no_libm=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext \
16078     conftest$ac_exeext conftest.$ac_ext
16079
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16082 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16083   if test $gl_cv_func_frexpl_no_libm = yes; then
16084
16085
16086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16087 $as_echo_n "checking whether frexpl works... " >&6; }
16088 if test "${gl_cv_func_frexpl_works+set}" = set; then :
16089   $as_echo_n "(cached) " >&6
16090 else
16091
16092       if test "$cross_compiling" = yes; then :
16093   case "$host_os" in
16094          aix* | beos* | darwin* | irix* | mingw* | pw*)
16095             gl_cv_func_frexpl_works="guessing no";;
16096          *) gl_cv_func_frexpl_works="guessing yes";;
16097        esac
16098
16099 else
16100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h.  */
16102
16103 #include <float.h>
16104 #include <math.h>
16105 /* Override the values of <float.h>, like done in float.in.h.  */
16106 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16107 # undef LDBL_MIN_EXP
16108 # define LDBL_MIN_EXP    (-16381)
16109 #endif
16110 extern long double frexpl (long double, int *);
16111 int main()
16112 {
16113   volatile long double x;
16114   /* Test on finite numbers that fails on AIX 5.1.  */
16115   x = 16.0L;
16116   {
16117     int exp = -9999;
16118     frexpl (x, &exp);
16119     if (exp != 5)
16120       return 1;
16121   }
16122   /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
16123      function returns an invalid (incorrectly normalized) value: it returns
16124                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16125      but the correct result is
16126           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
16127   x = 1.01L;
16128   {
16129     int exp = -9999;
16130     long double y = frexpl (x, &exp);
16131     if (!(exp == 1 && y == 0.505L))
16132       return 1;
16133   }
16134   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
16135      LDBL_MAX_EXP = 16384.
16136      In the loop end test, we test x against Infinity, rather than comparing
16137      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
16138   {
16139     int i;
16140     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16141       {
16142         int exp = -9999;
16143         frexpl (x, &exp);
16144         if (exp != i)
16145           return 1;
16146       }
16147   }
16148   /* Test on denormalized numbers.  */
16149   {
16150     int i;
16151     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16152       ;
16153     if (x > 0.0L)
16154       {
16155         int exp;
16156         long double y = frexpl (x, &exp);
16157         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16158            exp = -16382, y = 0.5.  On MacOS X 10.5: exp = -16384, y = 0.5.  */
16159         if (exp != LDBL_MIN_EXP - 1)
16160           return 1;
16161       }
16162   }
16163   /* Test on infinite numbers.  */
16164   x = 1.0L / 0.0L;
16165   {
16166     int exp;
16167     long double y = frexpl (x, &exp);
16168     if (y != x)
16169       return 1;
16170   }
16171   return 0;
16172 }
16173 _ACEOF
16174 if ac_fn_c_try_run "$LINENO"; then :
16175   gl_cv_func_frexpl_works=yes
16176 else
16177   gl_cv_func_frexpl_works=no
16178 fi
16179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16180   conftest.$ac_objext conftest.beam conftest.$ac_ext
16181 fi
16182
16183
16184 fi
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16186 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16187
16188     case "$gl_cv_func_frexpl_works" in
16189       *yes) gl_func_frexpl_no_libm=yes ;;
16190       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
16191     esac
16192   else
16193     gl_func_frexpl_no_libm=no
16194         REPLACE_FREXPL=1
16195   fi
16196   if test $gl_func_frexpl_no_libm = yes; then
16197
16198 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
16199
16200             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16201 "
16202 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
16203
16204 else
16205   HAVE_DECL_FREXPL=0
16206 fi
16207
16208   fi
16209
16210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl can be used without linking with libm" >&5
16211 $as_echo_n "checking whether ldexpl can be used without linking with libm... " >&6; }
16212 if test "${gl_cv_func_ldexpl_no_libm+set}" = set; then :
16213   $as_echo_n "(cached) " >&6
16214 else
16215
16216       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h.  */
16218 #include <math.h>
16219                    long double x;
16220                    int y;
16221 int
16222 main ()
16223 {
16224 return ldexpl (x, y) < 1;
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 if ac_fn_c_try_link "$LINENO"; then :
16230   gl_cv_func_ldexpl_no_libm=yes
16231 else
16232   gl_cv_func_ldexpl_no_libm=no
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext \
16235     conftest$ac_exeext conftest.$ac_ext
16236
16237 fi
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
16239 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
16240   if test $gl_cv_func_ldexpl_no_libm = yes; then
16241
16242
16243      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
16244 $as_echo_n "checking whether ldexpl works... " >&6; }
16245 if test "${gl_cv_func_ldexpl_works+set}" = set; then :
16246   $as_echo_n "(cached) " >&6
16247 else
16248
16249       if test "$cross_compiling" = yes; then :
16250   case "$host_os" in
16251          aix*) gl_cv_func_ldexpl_works="guessing no";;
16252          *)    gl_cv_func_ldexpl_works="guessing yes";;
16253        esac
16254
16255 else
16256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h.  */
16258
16259 #include <math.h>
16260 extern long double ldexpl (long double, int);
16261 int main()
16262 {
16263   volatile long double x1 = 1.0;
16264   volatile long double y1 = ldexpl (x1, -1);
16265   volatile long double x2 = 1.73205L;
16266   volatile long double y2 = ldexpl (x2, 0);
16267   return (y1 != 0.5L) || (y2 != x2);
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_run "$LINENO"; then :
16271   gl_cv_func_ldexpl_works=yes
16272 else
16273   gl_cv_func_ldexpl_works=no
16274 fi
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276   conftest.$ac_objext conftest.beam conftest.$ac_ext
16277 fi
16278
16279
16280 fi
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
16282 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
16283
16284     case "$gl_cv_func_ldexpl_works" in
16285       *yes)
16286
16287 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
16288
16289                         ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
16290 "
16291 if test "x$ac_cv_have_decl_ldexpl" = x""yes; then :
16292
16293 else
16294   HAVE_DECL_LDEXPL=0
16295 fi
16296
16297         ;;
16298     esac
16299   fi
16300
16301
16302
16303   if test $gl_cv_func_vfprintf_posix = no; then
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314   gl_LIBOBJS="$gl_LIBOBJS printf.$ac_objext"
16315
16316   REPLACE_PRINTF=1
16317
16318 $as_echo "#define REPLACE_PRINTF_POSIX 1" >>confdefs.h
16319
16320   :
16321
16322   fi
16323
16324
16325
16326   GNULIB_PRINTF_POSIX=1
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
16339
16340
16341   for ac_header in stdlib.h
16342 do :
16343   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16344 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16345   cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STDLIB_H 1
16347 _ACEOF
16348
16349 fi
16350
16351 done
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16354 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16355 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
16356   $as_echo_n "(cached) " >&6
16357 else
16358   if test "$cross_compiling" = yes; then :
16359   ac_cv_func_realloc_0_nonnull=no
16360 else
16361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h.  */
16363 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16364 # include <stdlib.h>
16365 #else
16366 char *realloc ();
16367 #endif
16368
16369 int
16370 main ()
16371 {
16372 return ! realloc (0, 0);
16373   ;
16374   return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_c_try_run "$LINENO"; then :
16378   ac_cv_func_realloc_0_nonnull=yes
16379 else
16380   ac_cv_func_realloc_0_nonnull=no
16381 fi
16382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16383   conftest.$ac_objext conftest.beam conftest.$ac_ext
16384 fi
16385
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16388 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16389 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16390
16391 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16392
16393 else
16394   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16405
16406
16407 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16408
16409 fi
16410
16411
16412
16413 $as_echo "#define GNULIB_REALLOC_GNU 1" >>confdefs.h
16414
16415
16416
16417   if test $gl_cv_func_malloc_posix = yes; then
16418     HAVE_REALLOC_POSIX=1
16419
16420 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
16421
16422   else
16423
16424
16425
16426
16427
16428
16429
16430
16431   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16432
16433     HAVE_REALLOC_POSIX=0
16434   fi
16435
16436
16437
16438
16439   GNULIB_REALLOC_POSIX=1
16440
16441
16442
16443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
16444 $as_echo_n "checking for signbit macro... " >&6; }
16445 if test "${gl_cv_func_signbit+set}" = set; then :
16446   $as_echo_n "(cached) " >&6
16447 else
16448
16449       if test "$cross_compiling" = yes; then :
16450   gl_cv_func_signbit="guessing no"
16451 else
16452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h.  */
16454
16455 #include <math.h>
16456 /* If signbit is defined as a function, don't use it, since calling it for
16457    'float' or 'long double' arguments would involve conversions.
16458    If signbit is not declared at all but exists as a library function, don't
16459    use it, since the prototype may not match.
16460    If signbit is not declared at all but exists as a compiler built-in, don't
16461    use it, since it's preferable to use __builtin_signbit* (no warnings,
16462    no conversions).  */
16463 #ifndef signbit
16464 # error "signbit should be a macro"
16465 #endif
16466 #include <string.h>
16467
16468 /* Global variables.
16469    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16470    but cannot constant-fold            __builtin_signbitl (variable).  */
16471 float vf;
16472 double vd;
16473 long double vl;
16474 int main ()
16475 {
16476 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16477    So we use -p0f and -p0d instead.  */
16478 float p0f = 0.0f;
16479 float m0f = -p0f;
16480 double p0d = 0.0;
16481 double m0d = -p0d;
16482 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16483    So we use another constant expression instead.
16484    But that expression does not work on other platforms, such as when
16485    cross-compiling to PowerPC on MacOS X 10.5.  */
16486 long double p0l = 0.0L;
16487 #if defined __hpux || defined __sgi
16488 long double m0l = -LDBL_MIN * LDBL_MIN;
16489 #else
16490 long double m0l = -p0l;
16491 #endif
16492   if (signbit (vf))
16493     vf++;
16494   {
16495     float plus_inf = 1.0f / p0f;
16496     float minus_inf = -1.0f / p0f;
16497     if (!(!signbit (255.0f)
16498           && signbit (-255.0f)
16499           && !signbit (p0f)
16500           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16501           && !signbit (plus_inf)
16502           && signbit (minus_inf)))
16503       return 1;
16504   }
16505   if (signbit (vd))
16506     vd++;
16507   {
16508     double plus_inf = 1.0 / p0d;
16509     double minus_inf = -1.0 / p0d;
16510     if (!(!signbit (255.0)
16511           && signbit (-255.0)
16512           && !signbit (p0d)
16513           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16514           && !signbit (plus_inf)
16515           && signbit (minus_inf)))
16516       return 1;
16517   }
16518   if (signbit (vl))
16519     vl++;
16520   {
16521     long double plus_inf = 1.0L / p0l;
16522     long double minus_inf = -1.0L / p0l;
16523     if (!(!signbit (255.0L)
16524           && signbit (-255.0L)
16525           && !signbit (p0l)
16526           && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
16527           && !signbit (plus_inf)
16528           && signbit (minus_inf)))
16529       return 1;
16530   }
16531   return 0;
16532 }
16533
16534
16535 _ACEOF
16536 if ac_fn_c_try_run "$LINENO"; then :
16537   gl_cv_func_signbit=yes
16538 else
16539   gl_cv_func_signbit=no
16540 fi
16541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16542   conftest.$ac_objext conftest.beam conftest.$ac_ext
16543 fi
16544
16545
16546 fi
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
16548 $as_echo "$gl_cv_func_signbit" >&6; }
16549           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
16550 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
16551 if test "${gl_cv_func_signbit_gcc+set}" = set; then :
16552   $as_echo_n "(cached) " >&6
16553 else
16554
16555       if test "$cross_compiling" = yes; then :
16556   gl_cv_func_signbit_gcc="guessing no"
16557 else
16558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h.  */
16560
16561 #if __GNUC__ >= 4
16562 # define signbit(x) \
16563    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
16564     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
16565     __builtin_signbitf (x))
16566 #else
16567 # error "signbit should be three compiler built-ins"
16568 #endif
16569 #include <string.h>
16570
16571 /* Global variables.
16572    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16573    but cannot constant-fold            __builtin_signbitl (variable).  */
16574 float vf;
16575 double vd;
16576 long double vl;
16577 int main ()
16578 {
16579 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16580    So we use -p0f and -p0d instead.  */
16581 float p0f = 0.0f;
16582 float m0f = -p0f;
16583 double p0d = 0.0;
16584 double m0d = -p0d;
16585 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16586    So we use another constant expression instead.
16587    But that expression does not work on other platforms, such as when
16588    cross-compiling to PowerPC on MacOS X 10.5.  */
16589 long double p0l = 0.0L;
16590 #if defined __hpux || defined __sgi
16591 long double m0l = -LDBL_MIN * LDBL_MIN;
16592 #else
16593 long double m0l = -p0l;
16594 #endif
16595   if (signbit (vf))
16596     vf++;
16597   {
16598     float plus_inf = 1.0f / p0f;
16599     float minus_inf = -1.0f / p0f;
16600     if (!(!signbit (255.0f)
16601           && signbit (-255.0f)
16602           && !signbit (p0f)
16603           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16604           && !signbit (plus_inf)
16605           && signbit (minus_inf)))
16606       return 1;
16607   }
16608   if (signbit (vd))
16609     vd++;
16610   {
16611     double plus_inf = 1.0 / p0d;
16612     double minus_inf = -1.0 / p0d;
16613     if (!(!signbit (255.0)
16614           && signbit (-255.0)
16615           && !signbit (p0d)
16616           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16617           && !signbit (plus_inf)
16618           && signbit (minus_inf)))
16619       return 1;
16620   }
16621   if (signbit (vl))
16622     vl++;
16623   {
16624     long double plus_inf = 1.0L / p0l;
16625     long double minus_inf = -1.0L / p0l;
16626     if (!(!signbit (255.0L)
16627           && signbit (-255.0L)
16628           && !signbit (p0l)
16629           && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
16630           && !signbit (plus_inf)
16631           && signbit (minus_inf)))
16632       return 1;
16633   }
16634   return 0;
16635 }
16636
16637
16638 _ACEOF
16639 if ac_fn_c_try_run "$LINENO"; then :
16640   gl_cv_func_signbit_gcc=yes
16641 else
16642   gl_cv_func_signbit_gcc=no
16643 fi
16644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16645   conftest.$ac_objext conftest.beam conftest.$ac_ext
16646 fi
16647
16648
16649 fi
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
16651 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
16652       if test "$gl_cv_func_signbit_gcc" = yes; then
16653     REPLACE_SIGNBIT_USING_GCC=1
16654   else
16655     if test "$gl_cv_func_signbit" != yes; then
16656       REPLACE_SIGNBIT=1
16657
16658
16659
16660
16661
16662
16663
16664
16665   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
16686
16687
16688
16689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
16690 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
16691 if test "${gl_cv_cc_float_signbit+set}" = set; then :
16692   $as_echo_n "(cached) " >&6
16693 else
16694
16695       if test "$cross_compiling" = yes; then :
16696
16697                               gl_cv_cc_float_signbit="unknown"
16698
16699 else
16700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h.  */
16702
16703 #include <stddef.h>
16704 #include <stdio.h>
16705 #define NWORDS \
16706   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16707 typedef union { float value; unsigned int word[NWORDS]; }
16708         memory_float;
16709 static memory_float plus = { 1.0f };
16710 static memory_float minus = { -1.0f };
16711 int main ()
16712 {
16713   size_t j, k, i;
16714   unsigned int m;
16715   FILE *fp = fopen ("conftest.out", "w");
16716   if (fp == NULL)
16717     return 1;
16718   /* Find the different bit.  */
16719   k = 0; m = 0;
16720   for (j = 0; j < NWORDS; j++)
16721     {
16722       unsigned int x = plus.word[j] ^ minus.word[j];
16723       if ((x & (x - 1)) || (x && m))
16724         {
16725           /* More than one bit difference.  */
16726           fprintf (fp, "unknown");
16727           return 1;
16728         }
16729       if (x)
16730         {
16731           k = j;
16732           m = x;
16733         }
16734     }
16735   if (m == 0)
16736     {
16737       /* No difference.  */
16738       fprintf (fp, "unknown");
16739       return 1;
16740     }
16741   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16742   if (plus.word[k] & ~minus.word[k])
16743     {
16744       /* Oh? The sign bit is set in the positive and cleared in the negative
16745          numbers?  */
16746       fprintf (fp, "unknown");
16747       return 1;
16748     }
16749   for (i = 0; ; i++)
16750     if ((m >> i) & 1)
16751       break;
16752   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16753   return (fclose (fp) != 0);
16754 }
16755
16756 _ACEOF
16757 if ac_fn_c_try_run "$LINENO"; then :
16758   gl_cv_cc_float_signbit=`cat conftest.out`
16759 else
16760   gl_cv_cc_float_signbit="unknown"
16761 fi
16762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16763   conftest.$ac_objext conftest.beam conftest.$ac_ext
16764 fi
16765
16766       rm -f conftest.out
16767
16768 fi
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
16770 $as_echo "$gl_cv_cc_float_signbit" >&6; }
16771   case "$gl_cv_cc_float_signbit" in
16772     word*bit*)
16773       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16774       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
16775
16776 cat >>confdefs.h <<_ACEOF
16777 #define FLT_SIGNBIT_WORD $word
16778 _ACEOF
16779
16780
16781 cat >>confdefs.h <<_ACEOF
16782 #define FLT_SIGNBIT_BIT $bit
16783 _ACEOF
16784
16785       ;;
16786   esac
16787
16788
16789
16790
16791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
16792 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
16793 if test "${gl_cv_cc_double_signbit+set}" = set; then :
16794   $as_echo_n "(cached) " >&6
16795 else
16796
16797       if test "$cross_compiling" = yes; then :
16798
16799                               gl_cv_cc_double_signbit="unknown"
16800
16801 else
16802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h.  */
16804
16805 #include <stddef.h>
16806 #include <stdio.h>
16807 #define NWORDS \
16808   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16809 typedef union { double value; unsigned int word[NWORDS]; }
16810         memory_float;
16811 static memory_float plus = { 1.0 };
16812 static memory_float minus = { -1.0 };
16813 int main ()
16814 {
16815   size_t j, k, i;
16816   unsigned int m;
16817   FILE *fp = fopen ("conftest.out", "w");
16818   if (fp == NULL)
16819     return 1;
16820   /* Find the different bit.  */
16821   k = 0; m = 0;
16822   for (j = 0; j < NWORDS; j++)
16823     {
16824       unsigned int x = plus.word[j] ^ minus.word[j];
16825       if ((x & (x - 1)) || (x && m))
16826         {
16827           /* More than one bit difference.  */
16828           fprintf (fp, "unknown");
16829           return 1;
16830         }
16831       if (x)
16832         {
16833           k = j;
16834           m = x;
16835         }
16836     }
16837   if (m == 0)
16838     {
16839       /* No difference.  */
16840       fprintf (fp, "unknown");
16841       return 1;
16842     }
16843   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16844   if (plus.word[k] & ~minus.word[k])
16845     {
16846       /* Oh? The sign bit is set in the positive and cleared in the negative
16847          numbers?  */
16848       fprintf (fp, "unknown");
16849       return 1;
16850     }
16851   for (i = 0; ; i++)
16852     if ((m >> i) & 1)
16853       break;
16854   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16855   return (fclose (fp) != 0);
16856 }
16857
16858 _ACEOF
16859 if ac_fn_c_try_run "$LINENO"; then :
16860   gl_cv_cc_double_signbit=`cat conftest.out`
16861 else
16862   gl_cv_cc_double_signbit="unknown"
16863 fi
16864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16865   conftest.$ac_objext conftest.beam conftest.$ac_ext
16866 fi
16867
16868       rm -f conftest.out
16869
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
16872 $as_echo "$gl_cv_cc_double_signbit" >&6; }
16873   case "$gl_cv_cc_double_signbit" in
16874     word*bit*)
16875       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16876       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
16877
16878 cat >>confdefs.h <<_ACEOF
16879 #define DBL_SIGNBIT_WORD $word
16880 _ACEOF
16881
16882
16883 cat >>confdefs.h <<_ACEOF
16884 #define DBL_SIGNBIT_BIT $bit
16885 _ACEOF
16886
16887       ;;
16888   esac
16889
16890
16891
16892
16893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
16894 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
16895 if test "${gl_cv_cc_long_double_signbit+set}" = set; then :
16896   $as_echo_n "(cached) " >&6
16897 else
16898
16899       if test "$cross_compiling" = yes; then :
16900
16901                               gl_cv_cc_long_double_signbit="unknown"
16902
16903 else
16904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h.  */
16906
16907 #include <stddef.h>
16908 #include <stdio.h>
16909 #define NWORDS \
16910   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16911 typedef union { long double value; unsigned int word[NWORDS]; }
16912         memory_float;
16913 static memory_float plus = { 1.0L };
16914 static memory_float minus = { -1.0L };
16915 int main ()
16916 {
16917   size_t j, k, i;
16918   unsigned int m;
16919   FILE *fp = fopen ("conftest.out", "w");
16920   if (fp == NULL)
16921     return 1;
16922   /* Find the different bit.  */
16923   k = 0; m = 0;
16924   for (j = 0; j < NWORDS; j++)
16925     {
16926       unsigned int x = plus.word[j] ^ minus.word[j];
16927       if ((x & (x - 1)) || (x && m))
16928         {
16929           /* More than one bit difference.  */
16930           fprintf (fp, "unknown");
16931           return 1;
16932         }
16933       if (x)
16934         {
16935           k = j;
16936           m = x;
16937         }
16938     }
16939   if (m == 0)
16940     {
16941       /* No difference.  */
16942       fprintf (fp, "unknown");
16943       return 1;
16944     }
16945   /* Now m = plus.word[k] ^ ~minus.word[k].  */
16946   if (plus.word[k] & ~minus.word[k])
16947     {
16948       /* Oh? The sign bit is set in the positive and cleared in the negative
16949          numbers?  */
16950       fprintf (fp, "unknown");
16951       return 1;
16952     }
16953   for (i = 0; ; i++)
16954     if ((m >> i) & 1)
16955       break;
16956   fprintf (fp, "word %d bit %d", (int) k, (int) i);
16957   return (fclose (fp) != 0);
16958 }
16959
16960 _ACEOF
16961 if ac_fn_c_try_run "$LINENO"; then :
16962   gl_cv_cc_long_double_signbit=`cat conftest.out`
16963 else
16964   gl_cv_cc_long_double_signbit="unknown"
16965 fi
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16967   conftest.$ac_objext conftest.beam conftest.$ac_ext
16968 fi
16969
16970       rm -f conftest.out
16971
16972 fi
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
16974 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
16975   case "$gl_cv_cc_long_double_signbit" in
16976     word*bit*)
16977       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16978       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define LDBL_SIGNBIT_WORD $word
16982 _ACEOF
16983
16984
16985 cat >>confdefs.h <<_ACEOF
16986 #define LDBL_SIGNBIT_BIT $bit
16987 _ACEOF
16988
16989       ;;
16990   esac
16991
16992
16993       if test "$gl_cv_cc_float_signbit" = unknown; then
16994                 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
16995 "
16996 if test "x$ac_cv_have_decl_copysignf" = x""yes; then :
16997   ac_have_decl=1
16998 else
16999   ac_have_decl=0
17000 fi
17001
17002 cat >>confdefs.h <<_ACEOF
17003 #define HAVE_DECL_COPYSIGNF $ac_have_decl
17004 _ACEOF
17005
17006         if test "$ac_cv_have_decl_copysignf" = yes; then
17007                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
17008 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
17009 if test "${gl_cv_func_copysignf_no_libm+set}" = set; then :
17010   $as_echo_n "(cached) " >&6
17011 else
17012
17013               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h.  */
17015 #include <math.h>
17016                            float x, y;
17017 int
17018 main ()
17019 {
17020 return copysignf (x, y) < 0;
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 if ac_fn_c_try_link "$LINENO"; then :
17026   gl_cv_func_copysignf_no_libm=yes
17027 else
17028   gl_cv_func_copysignf_no_libm=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext \
17031     conftest$ac_exeext conftest.$ac_ext
17032
17033 fi
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
17035 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
17036           if test $gl_cv_func_copysignf_no_libm = yes; then
17037
17038 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
17039
17040           fi
17041         fi
17042       fi
17043       if test "$gl_cv_cc_double_signbit" = unknown; then
17044                 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
17045 "
17046 if test "x$ac_cv_have_decl_copysign" = x""yes; then :
17047   ac_have_decl=1
17048 else
17049   ac_have_decl=0
17050 fi
17051
17052 cat >>confdefs.h <<_ACEOF
17053 #define HAVE_DECL_COPYSIGN $ac_have_decl
17054 _ACEOF
17055
17056         if test "$ac_cv_have_decl_copysign" = yes; then
17057                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
17058 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
17059 if test "${gl_cv_func_copysign_no_libm+set}" = set; then :
17060   $as_echo_n "(cached) " >&6
17061 else
17062
17063               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h.  */
17065 #include <math.h>
17066                            double x, y;
17067 int
17068 main ()
17069 {
17070 return copysign (x, y) < 0;
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 if ac_fn_c_try_link "$LINENO"; then :
17076   gl_cv_func_copysign_no_libm=yes
17077 else
17078   gl_cv_func_copysign_no_libm=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext \
17081     conftest$ac_exeext conftest.$ac_ext
17082
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
17085 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
17086           if test $gl_cv_func_copysign_no_libm = yes; then
17087
17088 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
17089
17090           fi
17091         fi
17092       fi
17093       if test "$gl_cv_cc_long_double_signbit" = unknown; then
17094                 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
17095 "
17096 if test "x$ac_cv_have_decl_copysignl" = x""yes; then :
17097   ac_have_decl=1
17098 else
17099   ac_have_decl=0
17100 fi
17101
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_DECL_COPYSIGNL $ac_have_decl
17104 _ACEOF
17105
17106         if test "$ac_cv_have_decl_copysignl" = yes; then
17107                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
17108 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
17109 if test "${gl_cv_func_copysignl_no_libm+set}" = set; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112
17113               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h.  */
17115 #include <math.h>
17116                            long double x, y;
17117 int
17118 main ()
17119 {
17120 return copysignl (x, y) < 0;
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126   gl_cv_func_copysignl_no_libm=yes
17127 else
17128   gl_cv_func_copysignl_no_libm=no
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext \
17131     conftest$ac_exeext conftest.$ac_ext
17132
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
17135 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
17136           if test $gl_cv_func_copysignl_no_libm = yes; then
17137
17138 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
17139
17140           fi
17141         fi
17142       fi
17143     fi
17144   fi
17145
17146
17147
17148   GNULIB_SIGNBIT=1
17149
17150
17151   for ac_header in stdint.h
17152 do :
17153   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17154 if test "x$ac_cv_header_stdint_h" = x""yes; then :
17155   cat >>confdefs.h <<_ACEOF
17156 #define HAVE_STDINT_H 1
17157 _ACEOF
17158
17159 fi
17160
17161 done
17162
17163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17164 $as_echo_n "checking for SIZE_MAX... " >&6; }
17165 if test "${gl_cv_size_max+set}" = set; then :
17166   $as_echo_n "(cached) " >&6
17167 else
17168
17169     gl_cv_size_max=
17170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h.  */
17172
17173 #include <limits.h>
17174 #if HAVE_STDINT_H
17175 #include <stdint.h>
17176 #endif
17177 #ifdef SIZE_MAX
17178 Found it
17179 #endif
17180
17181 _ACEOF
17182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17183   $EGREP "Found it" >/dev/null 2>&1; then :
17184   gl_cv_size_max=yes
17185 fi
17186 rm -f conftest*
17187
17188     if test -z "$gl_cv_size_max"; then
17189                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
17190 #include <limits.h>"; then :
17191
17192 else
17193   size_t_bits_minus_1=
17194 fi
17195
17196       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
17197
17198 else
17199   fits_in_uint=
17200 fi
17201
17202       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17203         if test $fits_in_uint = 1; then
17204                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h.  */
17206 #include <stddef.h>
17207             extern size_t foo;
17208             extern unsigned long foo;
17209
17210 int
17211 main ()
17212 {
17213
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219   fits_in_uint=0
17220 fi
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222         fi
17223                                 if test $fits_in_uint = 1; then
17224           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17225         else
17226           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17227         fi
17228       else
17229                 gl_cv_size_max='((size_t)~(size_t)0)'
17230       fi
17231     fi
17232
17233 fi
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17235 $as_echo "$gl_cv_size_max" >&6; }
17236   if test "$gl_cv_size_max" != yes; then
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define SIZE_MAX $gl_cv_size_max
17240 _ACEOF
17241
17242   fi
17243
17244
17245
17246
17247
17248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17249 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17250 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17251   $as_echo_n "(cached) " >&6
17252 else
17253   if test "$cross_compiling" = yes; then :
17254   case $host_os in
17255             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17256             *) gl_cv_func_stat_dir_slash="guessing yes";;
17257           esac
17258 else
17259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h.  */
17261 #include <sys/stat.h>
17262
17263 int
17264 main ()
17265 {
17266 struct stat st; return stat (".", &st) != stat ("./", &st);
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 if ac_fn_c_try_run "$LINENO"; then :
17272   gl_cv_func_stat_dir_slash=yes
17273 else
17274   gl_cv_func_stat_dir_slash=no
17275 fi
17276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17277   conftest.$ac_objext conftest.beam conftest.$ac_ext
17278 fi
17279
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17282 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17284 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17285 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17286   $as_echo_n "(cached) " >&6
17287 else
17288   touch conftest.tmp
17289        if test "$cross_compiling" = yes; then :
17290   gl_cv_func_stat_file_slash="guessing no"
17291 else
17292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294 #include <sys/stat.h>
17295
17296 int
17297 main ()
17298 {
17299 struct stat st; return !stat ("conftest.tmp/", &st);
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_c_try_run "$LINENO"; then :
17305   gl_cv_func_stat_file_slash=yes
17306 else
17307   gl_cv_func_stat_file_slash=no
17308 fi
17309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17310   conftest.$ac_objext conftest.beam conftest.$ac_ext
17311 fi
17312
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17315 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17316   case $gl_cv_func_stat_dir_slash in
17317     *no) REPLACE_STAT=1
17318
17319 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17320 ;;
17321   esac
17322   case $gl_cv_func_stat_file_slash in
17323     *no) REPLACE_STAT=1
17324
17325 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17326 ;;
17327   esac
17328   if test $REPLACE_STAT = 1; then
17329
17330
17331
17332
17333
17334
17335
17336
17337   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17338
17339   fi
17340
17341
17342
17343   GNULIB_STAT=1
17344
17345
17346
17347
17348
17349
17350   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
17351      #include <sys/stat.h>
17352 "
17353 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
17354
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
17357 _ACEOF
17358
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
17360 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
17361 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h.  */
17366
17367             #include <sys/types.h>
17368             #include <sys/stat.h>
17369             #if HAVE_SYS_TIME_H
17370             # include <sys/time.h>
17371             #endif
17372             #include <time.h>
17373             struct timespec ts;
17374             struct stat st;
17375
17376 int
17377 main ()
17378 {
17379
17380             st.st_atim = ts;
17381
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
17388 else
17389   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
17394 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
17395      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
17396
17397 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
17398
17399      fi
17400 else
17401   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
17402         #include <sys/stat.h>
17403 "
17404 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
17405
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
17408 _ACEOF
17409
17410
17411 else
17412   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
17413            #include <sys/stat.h>
17414 "
17415 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
17416
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
17419 _ACEOF
17420
17421
17422 else
17423   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
17424               #include <sys/stat.h>
17425 "
17426 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
17427
17428 cat >>confdefs.h <<_ACEOF
17429 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
17430 _ACEOF
17431
17432
17433 fi
17434
17435 fi
17436
17437 fi
17438
17439 fi
17440
17441
17442
17443
17444
17445
17446   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
17447      #include <sys/stat.h>
17448 "
17449 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
17450
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
17453 _ACEOF
17454
17455
17456 else
17457   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
17458         #include <sys/stat.h>
17459 "
17460 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
17461
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
17464 _ACEOF
17465
17466
17467 else
17468   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
17469           #include <sys/stat.h>
17470 "
17471 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
17472
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
17475 _ACEOF
17476
17477
17478 fi
17479
17480 fi
17481
17482 fi
17483
17484
17485
17486
17487
17488   # Define two additional variables used in the Makefile substitution.
17489
17490   if test "$ac_cv_header_stdbool_h" = yes; then
17491     STDBOOL_H=''
17492   else
17493     STDBOOL_H='stdbool.h'
17494   fi
17495
17496
17497   if test "$ac_cv_type__Bool" = yes; then
17498     HAVE__BOOL=1
17499   else
17500     HAVE__BOOL=0
17501   fi
17502
17503
17504
17505
17506
17507   if test $gt_cv_c_wchar_t = no; then
17508     HAVE_WCHAR_T=0
17509     STDDEF_H=stddef.h
17510   fi
17511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17512 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17513 if test "${gl_cv_decl_null_works+set}" = set; then :
17514   $as_echo_n "(cached) " >&6
17515 else
17516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h.  */
17518 #include <stddef.h>
17519       int test[2 * (sizeof NULL == sizeof (void *)) -1];
17520
17521 int
17522 main ()
17523 {
17524
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530   gl_cv_decl_null_works=yes
17531 else
17532   gl_cv_decl_null_works=no
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17537 $as_echo "$gl_cv_decl_null_works" >&6; }
17538   if test $gl_cv_decl_null_works = no; then
17539     REPLACE_NULL=1
17540     STDDEF_H=stddef.h
17541   fi
17542   if test -n "$STDDEF_H"; then
17543
17544
17545
17546
17547
17548
17549      if test $gl_cv_have_include_next = yes; then
17550        gl_cv_next_stddef_h='<'stddef.h'>'
17551      else
17552        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17553 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17554 if test "${gl_cv_next_stddef_h+set}" = set; then :
17555   $as_echo_n "(cached) " >&6
17556 else
17557
17558           if test $ac_cv_header_stddef_h = yes; then
17559             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h.  */
17561 #include <stddef.h>
17562
17563 _ACEOF
17564                                                                     case "$host_os" in
17565               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17566               *)    gl_absname_cpp="$ac_cpp" ;;
17567             esac
17568                                     gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17569                sed -n '\#/stddef.h#{
17570                  s#.*"\(.*/stddef.h\)".*#\1#
17571                  s#^/[^/]#//&#
17572                  p
17573                  q
17574                }'`'"'
17575           else
17576             gl_cv_next_stddef_h='<'stddef.h'>'
17577           fi
17578
17579 fi
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17581 $as_echo "$gl_cv_next_stddef_h" >&6; }
17582      fi
17583      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17584
17585      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17586        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17587        gl_next_as_first_directive='<'stddef.h'>'
17588      else
17589        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17590        gl_next_as_first_directive=$gl_cv_next_stddef_h
17591      fi
17592      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17593
17594
17595
17596   fi
17597
17598
17599
17600
17601   if test $ac_cv_type_long_long_int = yes; then
17602     HAVE_LONG_LONG_INT=1
17603   else
17604     HAVE_LONG_LONG_INT=0
17605   fi
17606
17607
17608   if test $ac_cv_type_unsigned_long_long_int = yes; then
17609     HAVE_UNSIGNED_LONG_LONG_INT=1
17610   else
17611     HAVE_UNSIGNED_LONG_LONG_INT=0
17612   fi
17613
17614
17615       if test $ac_cv_header_inttypes_h = yes; then
17616     HAVE_INTTYPES_H=1
17617   else
17618     HAVE_INTTYPES_H=0
17619   fi
17620
17621
17622       if test $ac_cv_header_sys_types_h = yes; then
17623     HAVE_SYS_TYPES_H=1
17624   else
17625     HAVE_SYS_TYPES_H=0
17626   fi
17627
17628
17629
17630
17631
17632
17633
17634
17635      if test $gl_cv_have_include_next = yes; then
17636        gl_cv_next_stdint_h='<'stdint.h'>'
17637      else
17638        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17639 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17640 if test "${gl_cv_next_stdint_h+set}" = set; then :
17641   $as_echo_n "(cached) " >&6
17642 else
17643
17644           if test $ac_cv_header_stdint_h = yes; then
17645             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h.  */
17647 #include <stdint.h>
17648
17649 _ACEOF
17650                                                                     case "$host_os" in
17651               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17652               *)    gl_absname_cpp="$ac_cpp" ;;
17653             esac
17654                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17655                sed -n '\#/stdint.h#{
17656                  s#.*"\(.*/stdint.h\)".*#\1#
17657                  s#^/[^/]#//&#
17658                  p
17659                  q
17660                }'`'"'
17661           else
17662             gl_cv_next_stdint_h='<'stdint.h'>'
17663           fi
17664
17665 fi
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17667 $as_echo "$gl_cv_next_stdint_h" >&6; }
17668      fi
17669      NEXT_STDINT_H=$gl_cv_next_stdint_h
17670
17671      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17672        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17673        gl_next_as_first_directive='<'stdint.h'>'
17674      else
17675        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17676        gl_next_as_first_directive=$gl_cv_next_stdint_h
17677      fi
17678      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17679
17680
17681
17682   if test $ac_cv_header_stdint_h = yes; then
17683     HAVE_STDINT_H=1
17684   else
17685     HAVE_STDINT_H=0
17686   fi
17687
17688
17689     if test $ac_cv_header_stdint_h = yes; then
17690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17691 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17692 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   gl_cv_header_working_stdint_h=no
17696        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h.  */
17698
17699
17700 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17701 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17702 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17703 #include <stdint.h>
17704 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17705 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17706 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17707 #endif
17708
17709
17710   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17711      included before <wchar.h>.  */
17712   #include <stddef.h>
17713   #include <signal.h>
17714   #if HAVE_WCHAR_H
17715   # include <stdio.h>
17716   # include <time.h>
17717   # include <wchar.h>
17718   #endif
17719
17720
17721 #ifdef INT8_MAX
17722 int8_t a1 = INT8_MAX;
17723 int8_t a1min = INT8_MIN;
17724 #endif
17725 #ifdef INT16_MAX
17726 int16_t a2 = INT16_MAX;
17727 int16_t a2min = INT16_MIN;
17728 #endif
17729 #ifdef INT32_MAX
17730 int32_t a3 = INT32_MAX;
17731 int32_t a3min = INT32_MIN;
17732 #endif
17733 #ifdef INT64_MAX
17734 int64_t a4 = INT64_MAX;
17735 int64_t a4min = INT64_MIN;
17736 #endif
17737 #ifdef UINT8_MAX
17738 uint8_t b1 = UINT8_MAX;
17739 #else
17740 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17741 #endif
17742 #ifdef UINT16_MAX
17743 uint16_t b2 = UINT16_MAX;
17744 #endif
17745 #ifdef UINT32_MAX
17746 uint32_t b3 = UINT32_MAX;
17747 #endif
17748 #ifdef UINT64_MAX
17749 uint64_t b4 = UINT64_MAX;
17750 #endif
17751 int_least8_t c1 = INT8_C (0x7f);
17752 int_least8_t c1max = INT_LEAST8_MAX;
17753 int_least8_t c1min = INT_LEAST8_MIN;
17754 int_least16_t c2 = INT16_C (0x7fff);
17755 int_least16_t c2max = INT_LEAST16_MAX;
17756 int_least16_t c2min = INT_LEAST16_MIN;
17757 int_least32_t c3 = INT32_C (0x7fffffff);
17758 int_least32_t c3max = INT_LEAST32_MAX;
17759 int_least32_t c3min = INT_LEAST32_MIN;
17760 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17761 int_least64_t c4max = INT_LEAST64_MAX;
17762 int_least64_t c4min = INT_LEAST64_MIN;
17763 uint_least8_t d1 = UINT8_C (0xff);
17764 uint_least8_t d1max = UINT_LEAST8_MAX;
17765 uint_least16_t d2 = UINT16_C (0xffff);
17766 uint_least16_t d2max = UINT_LEAST16_MAX;
17767 uint_least32_t d3 = UINT32_C (0xffffffff);
17768 uint_least32_t d3max = UINT_LEAST32_MAX;
17769 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17770 uint_least64_t d4max = UINT_LEAST64_MAX;
17771 int_fast8_t e1 = INT_FAST8_MAX;
17772 int_fast8_t e1min = INT_FAST8_MIN;
17773 int_fast16_t e2 = INT_FAST16_MAX;
17774 int_fast16_t e2min = INT_FAST16_MIN;
17775 int_fast32_t e3 = INT_FAST32_MAX;
17776 int_fast32_t e3min = INT_FAST32_MIN;
17777 int_fast64_t e4 = INT_FAST64_MAX;
17778 int_fast64_t e4min = INT_FAST64_MIN;
17779 uint_fast8_t f1 = UINT_FAST8_MAX;
17780 uint_fast16_t f2 = UINT_FAST16_MAX;
17781 uint_fast32_t f3 = UINT_FAST32_MAX;
17782 uint_fast64_t f4 = UINT_FAST64_MAX;
17783 #ifdef INTPTR_MAX
17784 intptr_t g = INTPTR_MAX;
17785 intptr_t gmin = INTPTR_MIN;
17786 #endif
17787 #ifdef UINTPTR_MAX
17788 uintptr_t h = UINTPTR_MAX;
17789 #endif
17790 intmax_t i = INTMAX_MAX;
17791 uintmax_t j = UINTMAX_MAX;
17792
17793 #include <limits.h> /* for CHAR_BIT */
17794 #define TYPE_MINIMUM(t) \
17795   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17796 #define TYPE_MAXIMUM(t) \
17797   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17798 struct s {
17799   int check_PTRDIFF:
17800       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17801       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17802       ? 1 : -1;
17803   /* Detect bug in FreeBSD 6.0 / ia64.  */
17804   int check_SIG_ATOMIC:
17805       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17806       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17807       ? 1 : -1;
17808   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17809   int check_WCHAR:
17810       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17811       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17812       ? 1 : -1;
17813   /* Detect bug in mingw.  */
17814   int check_WINT:
17815       WINT_MIN == TYPE_MINIMUM (wint_t)
17816       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17817       ? 1 : -1;
17818
17819   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17820   int check_UINT8_C:
17821         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17822   int check_UINT16_C:
17823         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17824
17825   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17826 #ifdef UINT8_MAX
17827   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17828 #endif
17829 #ifdef UINT16_MAX
17830   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17831 #endif
17832 #ifdef UINT32_MAX
17833   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17834 #endif
17835 #ifdef UINT64_MAX
17836   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17837 #endif
17838   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17839   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17840   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17841   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17842   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17843   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17844   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17845   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17846   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17847   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17848   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17849 };
17850
17851 int
17852 main ()
17853 {
17854
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 if ac_fn_c_try_compile "$LINENO"; then :
17860                                                     if test "$cross_compiling" = yes; then :
17861                  gl_cv_header_working_stdint_h=yes
17862
17863 else
17864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h.  */
17866
17867
17868 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17869 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17870 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17871 #include <stdint.h>
17872
17873
17874   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17875      included before <wchar.h>.  */
17876   #include <stddef.h>
17877   #include <signal.h>
17878   #if HAVE_WCHAR_H
17879   # include <stdio.h>
17880   # include <time.h>
17881   # include <wchar.h>
17882   #endif
17883
17884
17885 #include <stdio.h>
17886 #include <string.h>
17887 #define MVAL(macro) MVAL1(macro)
17888 #define MVAL1(expression) #expression
17889 static const char *macro_values[] =
17890   {
17891 #ifdef INT8_MAX
17892     MVAL (INT8_MAX),
17893 #endif
17894 #ifdef INT16_MAX
17895     MVAL (INT16_MAX),
17896 #endif
17897 #ifdef INT32_MAX
17898     MVAL (INT32_MAX),
17899 #endif
17900 #ifdef INT64_MAX
17901     MVAL (INT64_MAX),
17902 #endif
17903 #ifdef UINT8_MAX
17904     MVAL (UINT8_MAX),
17905 #endif
17906 #ifdef UINT16_MAX
17907     MVAL (UINT16_MAX),
17908 #endif
17909 #ifdef UINT32_MAX
17910     MVAL (UINT32_MAX),
17911 #endif
17912 #ifdef UINT64_MAX
17913     MVAL (UINT64_MAX),
17914 #endif
17915     NULL
17916   };
17917
17918 int
17919 main ()
17920 {
17921
17922   const char **mv;
17923   for (mv = macro_values; *mv != NULL; mv++)
17924     {
17925       const char *value = *mv;
17926       /* Test whether it looks like a cast expression.  */
17927       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17928           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17929           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17930           || strncmp (value, "((int)"/*)*/, 6) == 0
17931           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17932           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17933         return 1;
17934     }
17935   return 0;
17936
17937   ;
17938   return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_run "$LINENO"; then :
17942   gl_cv_header_working_stdint_h=yes
17943 fi
17944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17945   conftest.$ac_objext conftest.beam conftest.$ac_ext
17946 fi
17947
17948
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951
17952 fi
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17954 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17955   fi
17956   if test "$gl_cv_header_working_stdint_h" = yes; then
17957     STDINT_H=
17958   else
17959             for ac_header in sys/inttypes.h sys/bitypes.h
17960 do :
17961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17962 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17963 eval as_val=\$$as_ac_Header
17964    if test "x$as_val" = x""yes; then :
17965   cat >>confdefs.h <<_ACEOF
17966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17967 _ACEOF
17968
17969 fi
17970
17971 done
17972
17973     if test $ac_cv_header_sys_inttypes_h = yes; then
17974       HAVE_SYS_INTTYPES_H=1
17975     else
17976       HAVE_SYS_INTTYPES_H=0
17977     fi
17978
17979     if test $ac_cv_header_sys_bitypes_h = yes; then
17980       HAVE_SYS_BITYPES_H=1
17981     else
17982       HAVE_SYS_BITYPES_H=0
17983     fi
17984
17985
17986
17987
17988
17989
17990   if test $APPLE_UNIVERSAL_BUILD = 0; then
17991
17992
17993   for gltype in ptrdiff_t size_t ; do
17994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17995 $as_echo_n "checking for bit size of $gltype... " >&6; }
17996 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18000   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18001      included before <wchar.h>.  */
18002   #include <stddef.h>
18003   #include <signal.h>
18004   #if HAVE_WCHAR_H
18005   # include <stdio.h>
18006   # include <time.h>
18007   # include <wchar.h>
18008   #endif
18009
18010 #include <limits.h>"; then :
18011
18012 else
18013   result=unknown
18014 fi
18015
18016        eval gl_cv_bitsizeof_${gltype}=\$result
18017
18018 fi
18019 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18021 $as_echo "$ac_res" >&6; }
18022     eval result=\$gl_cv_bitsizeof_${gltype}
18023     if test $result = unknown; then
18024                                                 result=0
18025     fi
18026     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18027     cat >>confdefs.h <<_ACEOF
18028 #define BITSIZEOF_${GLTYPE} $result
18029 _ACEOF
18030
18031     eval BITSIZEOF_${GLTYPE}=\$result
18032   done
18033
18034
18035   fi
18036
18037
18038   for gltype in sig_atomic_t wchar_t wint_t ; do
18039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18040 $as_echo_n "checking for bit size of $gltype... " >&6; }
18041 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18042   $as_echo_n "(cached) " >&6
18043 else
18044   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18045   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18046      included before <wchar.h>.  */
18047   #include <stddef.h>
18048   #include <signal.h>
18049   #if HAVE_WCHAR_H
18050   # include <stdio.h>
18051   # include <time.h>
18052   # include <wchar.h>
18053   #endif
18054
18055 #include <limits.h>"; then :
18056
18057 else
18058   result=unknown
18059 fi
18060
18061        eval gl_cv_bitsizeof_${gltype}=\$result
18062
18063 fi
18064 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18066 $as_echo "$ac_res" >&6; }
18067     eval result=\$gl_cv_bitsizeof_${gltype}
18068     if test $result = unknown; then
18069                                                 result=0
18070     fi
18071     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18072     cat >>confdefs.h <<_ACEOF
18073 #define BITSIZEOF_${GLTYPE} $result
18074 _ACEOF
18075
18076     eval BITSIZEOF_${GLTYPE}=\$result
18077   done
18078
18079
18080
18081
18082   for gltype in sig_atomic_t wchar_t wint_t ; do
18083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18084 $as_echo_n "checking whether $gltype is signed... " >&6; }
18085 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18086   $as_echo_n "(cached) " >&6
18087 else
18088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h.  */
18090
18091   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18092      included before <wchar.h>.  */
18093   #include <stddef.h>
18094   #include <signal.h>
18095   #if HAVE_WCHAR_H
18096   # include <stdio.h>
18097   # include <time.h>
18098   # include <wchar.h>
18099   #endif
18100
18101             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18102 int
18103 main ()
18104 {
18105
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 if ac_fn_c_try_compile "$LINENO"; then :
18111   result=yes
18112 else
18113   result=no
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116        eval gl_cv_type_${gltype}_signed=\$result
18117
18118 fi
18119 eval ac_res=\$gl_cv_type_${gltype}_signed
18120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18121 $as_echo "$ac_res" >&6; }
18122     eval result=\$gl_cv_type_${gltype}_signed
18123     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18124     if test "$result" = yes; then
18125       cat >>confdefs.h <<_ACEOF
18126 #define HAVE_SIGNED_${GLTYPE} 1
18127 _ACEOF
18128
18129       eval HAVE_SIGNED_${GLTYPE}=1
18130     else
18131       eval HAVE_SIGNED_${GLTYPE}=0
18132     fi
18133   done
18134
18135
18136   gl_cv_type_ptrdiff_t_signed=yes
18137   gl_cv_type_size_t_signed=no
18138   if test $APPLE_UNIVERSAL_BUILD = 0; then
18139
18140
18141   for gltype in ptrdiff_t size_t ; do
18142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18143 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18144 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18145   $as_echo_n "(cached) " >&6
18146 else
18147   eval gl_cv_type_${gltype}_suffix=no
18148        eval result=\$gl_cv_type_${gltype}_signed
18149        if test "$result" = yes; then
18150          glsufu=
18151        else
18152          glsufu=u
18153        fi
18154        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18155          case $glsuf in
18156            '')  gltype1='int';;
18157            l)   gltype1='long int';;
18158            ll)  gltype1='long long int';;
18159            i64) gltype1='__int64';;
18160            u)   gltype1='unsigned int';;
18161            ul)  gltype1='unsigned long int';;
18162            ull) gltype1='unsigned long long int';;
18163            ui64)gltype1='unsigned __int64';;
18164          esac
18165          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h.  */
18167
18168   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18169      included before <wchar.h>.  */
18170   #include <stddef.h>
18171   #include <signal.h>
18172   #if HAVE_WCHAR_H
18173   # include <stdio.h>
18174   # include <time.h>
18175   # include <wchar.h>
18176   #endif
18177
18178               extern $gltype foo;
18179               extern $gltype1 foo;
18180 int
18181 main ()
18182 {
18183
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189   eval gl_cv_type_${gltype}_suffix=\$glsuf
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192          eval result=\$gl_cv_type_${gltype}_suffix
18193          test "$result" != no && break
18194        done
18195 fi
18196 eval ac_res=\$gl_cv_type_${gltype}_suffix
18197                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18198 $as_echo "$ac_res" >&6; }
18199     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18200     eval result=\$gl_cv_type_${gltype}_suffix
18201     test "$result" = no && result=
18202     eval ${GLTYPE}_SUFFIX=\$result
18203     cat >>confdefs.h <<_ACEOF
18204 #define ${GLTYPE}_SUFFIX $result
18205 _ACEOF
18206
18207   done
18208
18209
18210   fi
18211
18212
18213   for gltype in sig_atomic_t wchar_t wint_t ; do
18214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18215 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18216 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18217   $as_echo_n "(cached) " >&6
18218 else
18219   eval gl_cv_type_${gltype}_suffix=no
18220        eval result=\$gl_cv_type_${gltype}_signed
18221        if test "$result" = yes; then
18222          glsufu=
18223        else
18224          glsufu=u
18225        fi
18226        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18227          case $glsuf in
18228            '')  gltype1='int';;
18229            l)   gltype1='long int';;
18230            ll)  gltype1='long long int';;
18231            i64) gltype1='__int64';;
18232            u)   gltype1='unsigned int';;
18233            ul)  gltype1='unsigned long int';;
18234            ull) gltype1='unsigned long long int';;
18235            ui64)gltype1='unsigned __int64';;
18236          esac
18237          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h.  */
18239
18240   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18241      included before <wchar.h>.  */
18242   #include <stddef.h>
18243   #include <signal.h>
18244   #if HAVE_WCHAR_H
18245   # include <stdio.h>
18246   # include <time.h>
18247   # include <wchar.h>
18248   #endif
18249
18250               extern $gltype foo;
18251               extern $gltype1 foo;
18252 int
18253 main ()
18254 {
18255
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_compile "$LINENO"; then :
18261   eval gl_cv_type_${gltype}_suffix=\$glsuf
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264          eval result=\$gl_cv_type_${gltype}_suffix
18265          test "$result" != no && break
18266        done
18267 fi
18268 eval ac_res=\$gl_cv_type_${gltype}_suffix
18269                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18271     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18272     eval result=\$gl_cv_type_${gltype}_suffix
18273     test "$result" = no && result=
18274     eval ${GLTYPE}_SUFFIX=\$result
18275     cat >>confdefs.h <<_ACEOF
18276 #define ${GLTYPE}_SUFFIX $result
18277 _ACEOF
18278
18279   done
18280
18281
18282
18283     STDINT_H=stdint.h
18284   fi
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295      if test $gl_cv_have_include_next = yes; then
18296        gl_cv_next_stdio_h='<'stdio.h'>'
18297      else
18298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18299 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18300 if test "${gl_cv_next_stdio_h+set}" = set; then :
18301   $as_echo_n "(cached) " >&6
18302 else
18303
18304           if test $ac_cv_header_stdio_h = yes; then
18305             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h.  */
18307 #include <stdio.h>
18308
18309 _ACEOF
18310                                                                     case "$host_os" in
18311               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18312               *)    gl_absname_cpp="$ac_cpp" ;;
18313             esac
18314                                     gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18315                sed -n '\#/stdio.h#{
18316                  s#.*"\(.*/stdio.h\)".*#\1#
18317                  s#^/[^/]#//&#
18318                  p
18319                  q
18320                }'`'"'
18321           else
18322             gl_cv_next_stdio_h='<'stdio.h'>'
18323           fi
18324
18325 fi
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18327 $as_echo "$gl_cv_next_stdio_h" >&6; }
18328      fi
18329      NEXT_STDIO_H=$gl_cv_next_stdio_h
18330
18331      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18332        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18333        gl_next_as_first_directive='<'stdio.h'>'
18334      else
18335        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18336        gl_next_as_first_directive=$gl_cv_next_stdio_h
18337      fi
18338      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18339
18340
18341
18342       GNULIB_FPRINTF=1
18343   GNULIB_PRINTF=1
18344   GNULIB_VFPRINTF=1
18345   GNULIB_VPRINTF=1
18346   GNULIB_FPUTC=1
18347   GNULIB_PUTC=1
18348   GNULIB_PUTCHAR=1
18349   GNULIB_FPUTS=1
18350   GNULIB_PUTS=1
18351   GNULIB_FWRITE=1
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362      if test $gl_cv_have_include_next = yes; then
18363        gl_cv_next_stdlib_h='<'stdlib.h'>'
18364      else
18365        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18366 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18367 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18368   $as_echo_n "(cached) " >&6
18369 else
18370
18371           if test $ac_cv_header_stdlib_h = yes; then
18372             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h.  */
18374 #include <stdlib.h>
18375
18376 _ACEOF
18377                                                                     case "$host_os" in
18378               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18379               *)    gl_absname_cpp="$ac_cpp" ;;
18380             esac
18381                                     gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18382                sed -n '\#/stdlib.h#{
18383                  s#.*"\(.*/stdlib.h\)".*#\1#
18384                  s#^/[^/]#//&#
18385                  p
18386                  q
18387                }'`'"'
18388           else
18389             gl_cv_next_stdlib_h='<'stdlib.h'>'
18390           fi
18391
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18394 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18395      fi
18396      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18397
18398      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18399        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18400        gl_next_as_first_directive='<'stdlib.h'>'
18401      else
18402        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18403        gl_next_as_first_directive=$gl_cv_next_stdlib_h
18404      fi
18405      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18406
18407
18408
18409   for ac_header in random.h
18410 do :
18411   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18412 "
18413 if test "x$ac_cv_header_random_h" = x""yes; then :
18414   cat >>confdefs.h <<_ACEOF
18415 #define HAVE_RANDOM_H 1
18416 _ACEOF
18417
18418 fi
18419
18420 done
18421
18422   if test $ac_cv_header_random_h = yes; then
18423     HAVE_RANDOM_H=1
18424   else
18425     HAVE_RANDOM_H=0
18426   fi
18427
18428   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18429       #if HAVE_RANDOM_H
18430       # include <random.h>
18431       #endif
18432
18433 "
18434 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
18435
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_STRUCT_RANDOM_DATA 1
18438 _ACEOF
18439
18440
18441 else
18442   HAVE_STRUCT_RANDOM_DATA=0
18443 fi
18444
18445
18446
18447
18448   if test $REPLACE_STRERROR = 1; then
18449
18450
18451
18452
18453
18454
18455
18456
18457   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
18458
18459
18460 cat >>confdefs.h <<_ACEOF
18461 #define REPLACE_STRERROR $REPLACE_STRERROR
18462 _ACEOF
18463
18464   fi
18465
18466
18467
18468   GNULIB_STRERROR=1
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486      if test $gl_cv_have_include_next = yes; then
18487        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18488      else
18489        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18490 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18491 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18492   $as_echo_n "(cached) " >&6
18493 else
18494
18495           if test $ac_cv_header_sys_stat_h = yes; then
18496             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h.  */
18498 #include <sys/stat.h>
18499
18500 _ACEOF
18501                                                                     case "$host_os" in
18502               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18503               *)    gl_absname_cpp="$ac_cpp" ;;
18504             esac
18505                                     gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18506                sed -n '\#/sys/stat.h#{
18507                  s#.*"\(.*/sys/stat.h\)".*#\1#
18508                  s#^/[^/]#//&#
18509                  p
18510                  q
18511                }'`'"'
18512           else
18513             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18514           fi
18515
18516 fi
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18518 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18519      fi
18520      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18521
18522      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18523        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18524        gl_next_as_first_directive='<'sys/stat.h'>'
18525      else
18526        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18527        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18528      fi
18529      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18530
18531
18532
18533
18534       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18535      #include <sys/stat.h>
18536 "
18537 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18538
18539 else
18540
18541 $as_echo "#define nlink_t int" >>confdefs.h
18542
18543 fi
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567      if test $gl_cv_have_include_next = yes; then
18568        gl_cv_next_unistd_h='<'unistd.h'>'
18569      else
18570        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18571 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18572 if test "${gl_cv_next_unistd_h+set}" = set; then :
18573   $as_echo_n "(cached) " >&6
18574 else
18575
18576           if test $ac_cv_header_unistd_h = yes; then
18577             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h.  */
18579 #include <unistd.h>
18580
18581 _ACEOF
18582                                                                     case "$host_os" in
18583               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18584               *)    gl_absname_cpp="$ac_cpp" ;;
18585             esac
18586                                     gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18587                sed -n '\#/unistd.h#{
18588                  s#.*"\(.*/unistd.h\)".*#\1#
18589                  s#^/[^/]#//&#
18590                  p
18591                  q
18592                }'`'"'
18593           else
18594             gl_cv_next_unistd_h='<'unistd.h'>'
18595           fi
18596
18597 fi
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18599 $as_echo "$gl_cv_next_unistd_h" >&6; }
18600      fi
18601      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18602
18603      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18604        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18605        gl_next_as_first_directive='<'unistd.h'>'
18606      else
18607        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18608        gl_next_as_first_directive=$gl_cv_next_unistd_h
18609      fi
18610      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18611
18612
18613
18614
18615
18616   if test $ac_cv_header_unistd_h = yes; then
18617     HAVE_UNISTD_H=1
18618   else
18619     HAVE_UNISTD_H=0
18620   fi
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
18654
18655
18656
18657
18658 $as_echo "#define GNULIB_UNISTD_SAFER 1" >>confdefs.h
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680   if test $ac_cv_func_vasnprintf = no; then
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18722
18723   if test $ac_cv_func_vasnprintf = yes; then
18724
18725 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18726
18727   fi
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18739 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18740
18741 else
18742
18743 $as_echo "#define ptrdiff_t long" >>confdefs.h
18744
18745
18746 fi
18747
18748
18749
18750
18751
18752
18753
18754   fi
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771   gl_cv_func_vfprintf_posix=no
18772   case "$gl_cv_func_printf_sizes_c99" in
18773     *yes)
18774       case "$gl_cv_func_printf_long_double" in
18775         *yes)
18776           case "$gl_cv_func_printf_infinite" in
18777             *yes)
18778               case "$gl_cv_func_printf_infinite_long_double" in
18779                 *yes)
18780                   case "$gl_cv_func_printf_directive_a" in
18781                     *yes)
18782                       case "$gl_cv_func_printf_directive_f" in
18783                         *yes)
18784                           case "$gl_cv_func_printf_directive_n" in
18785                             *yes)
18786                               case "$gl_cv_func_printf_directive_ls" in
18787                                 *yes)
18788                                   case "$gl_cv_func_printf_positions" in
18789                                     *yes)
18790                                       case "$gl_cv_func_printf_flag_grouping" in
18791                                         *yes)
18792                                           case "$gl_cv_func_printf_flag_leftadjust" in
18793                                             *yes)
18794                                               case "$gl_cv_func_printf_flag_zero" in
18795                                                 *yes)
18796                                                   case "$gl_cv_func_printf_precision" in
18797                                                     *yes)
18798                                                       case "$gl_cv_func_printf_enomem" in
18799                                                         *yes)
18800                                                           # vfprintf exists and is
18801                                                           # already POSIX compliant.
18802                                                           gl_cv_func_vfprintf_posix=yes
18803                                                           ;;
18804                                                       esac
18805                                                       ;;
18806                                                   esac
18807                                                   ;;
18808                                               esac
18809                                               ;;
18810                                           esac
18811                                           ;;
18812                                       esac
18813                                       ;;
18814                                   esac
18815                                   ;;
18816                               esac
18817                               ;;
18818                           esac
18819                           ;;
18820                       esac
18821                       ;;
18822                   esac
18823                   ;;
18824               esac
18825               ;;
18826           esac
18827           ;;
18828       esac
18829       ;;
18830   esac
18831   if test $gl_cv_func_vfprintf_posix = no; then
18832
18833
18834
18835   case "$gl_cv_func_printf_infinite" in
18836     *yes)
18837       ;;
18838     *)
18839
18840 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
18841
18842       ;;
18843   esac
18844
18845
18846
18847
18848   case "$gl_cv_func_printf_long_double" in
18849     *yes)
18850       case "$gl_cv_func_printf_infinite_long_double" in
18851         *yes)
18852           ;;
18853         *)
18854
18855 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
18856
18857           ;;
18858       esac
18859       ;;
18860   esac
18861
18862
18863
18864   case "$gl_cv_func_printf_directive_a" in
18865     *yes)
18866       ;;
18867     *)
18868
18869 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
18870
18871       for ac_func in nl_langinfo
18872 do :
18873   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
18874 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
18875   cat >>confdefs.h <<_ACEOF
18876 #define HAVE_NL_LANGINFO 1
18877 _ACEOF
18878
18879 fi
18880 done
18881
18882       ;;
18883   esac
18884
18885
18886
18887   case "$gl_cv_func_printf_directive_f" in
18888     *yes)
18889       ;;
18890     *)
18891
18892 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
18893
18894       ;;
18895   esac
18896
18897
18898
18899   case "$gl_cv_func_printf_directive_ls" in
18900     *yes)
18901       ;;
18902     *)
18903
18904 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
18905
18906       ;;
18907   esac
18908
18909
18910
18911   case "$gl_cv_func_printf_flag_grouping" in
18912     *yes)
18913       ;;
18914     *)
18915
18916 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
18917
18918       ;;
18919   esac
18920
18921
18922
18923   case "$gl_cv_func_printf_flag_leftadjust" in
18924     *yes)
18925       ;;
18926     *)
18927
18928 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
18929
18930       ;;
18931   esac
18932
18933
18934
18935   case "$gl_cv_func_printf_flag_zero" in
18936     *yes)
18937       ;;
18938     *)
18939
18940 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
18941
18942       ;;
18943   esac
18944
18945
18946
18947   case "$gl_cv_func_printf_precision" in
18948     *yes)
18949       ;;
18950     *)
18951
18952 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
18953
18954
18955 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
18956
18957
18958 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18959
18960       ;;
18961   esac
18962
18963
18964
18965   case "$gl_cv_func_printf_enomem" in
18966     *yes)
18967       ;;
18968     *)
18969
18970 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
18971
18972
18973 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
18974
18975
18976 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18977
18978       ;;
18979   esac
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19022
19023   if test $ac_cv_func_vasnprintf = yes; then
19024
19025 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19026
19027   fi
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19039 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19040
19041 else
19042
19043 $as_echo "#define ptrdiff_t long" >>confdefs.h
19044
19045
19046 fi
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
19065
19066   REPLACE_VFPRINTF=1
19067
19068 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
19069
19070   :
19071
19072   fi
19073
19074
19075
19076   GNULIB_VFPRINTF_POSIX=1
19077
19078
19079
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
19081 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
19082 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
19083   $as_echo_n "(cached) " >&6
19084 else
19085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h.  */
19087 #include <wchar.h>
19088 wchar_t w;
19089 _ACEOF
19090 if ac_fn_c_try_compile "$LINENO"; then :
19091   gl_cv_header_wchar_h_standalone=yes
19092 else
19093   gl_cv_header_wchar_h_standalone=no
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
19098 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
19099
19100
19101   if test $gt_cv_c_wint_t = yes; then
19102     HAVE_WINT_T=1
19103   else
19104     HAVE_WINT_T=0
19105   fi
19106
19107
19108
19109
19110   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
19111     WCHAR_H=wchar.h
19112   fi
19113
19114
19115   if test $ac_cv_header_wchar_h = yes; then
19116     HAVE_WCHAR_H=1
19117   else
19118     HAVE_WCHAR_H=0
19119   fi
19120
19121
19122
19123
19124
19125
19126
19127      if test $gl_cv_have_include_next = yes; then
19128        gl_cv_next_wchar_h='<'wchar.h'>'
19129      else
19130        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19131 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19132 if test "${gl_cv_next_wchar_h+set}" = set; then :
19133   $as_echo_n "(cached) " >&6
19134 else
19135
19136           if test $ac_cv_header_wchar_h = yes; then
19137             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h.  */
19139 #include <wchar.h>
19140
19141 _ACEOF
19142                                                                     case "$host_os" in
19143               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19144               *)    gl_absname_cpp="$ac_cpp" ;;
19145             esac
19146                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19147                sed -n '\#/wchar.h#{
19148                  s#.*"\(.*/wchar.h\)".*#\1#
19149                  s#^/[^/]#//&#
19150                  p
19151                  q
19152                }'`'"'
19153           else
19154             gl_cv_next_wchar_h='<'wchar.h'>'
19155           fi
19156
19157 fi
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19159 $as_echo "$gl_cv_next_wchar_h" >&6; }
19160      fi
19161      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19162
19163      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19164        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19165        gl_next_as_first_directive='<'wchar.h'>'
19166      else
19167        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19168        gl_next_as_first_directive=$gl_cv_next_wchar_h
19169      fi
19170      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19171
19172
19173
19174
19175
19176
19177
19178
19179   if test $ac_cv_func_iswcntrl = yes; then
19180     HAVE_ISWCNTRL=1
19181   else
19182     HAVE_ISWCNTRL=0
19183   fi
19184
19185
19186
19187
19188
19189   if test $gt_cv_c_wint_t = yes; then
19190     HAVE_WINT_T=1
19191   else
19192     HAVE_WINT_T=0
19193   fi
19194
19195
19196   WCTYPE_H=wctype.h
19197   if test $ac_cv_header_wctype_h = yes; then
19198     if test $ac_cv_func_iswcntrl = yes; then
19199                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19200 $as_echo_n "checking whether iswcntrl works... " >&6; }
19201 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19202   $as_echo_n "(cached) " >&6
19203 else
19204
19205           if test "$cross_compiling" = yes; then :
19206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h.  */
19208 #include <stdlib.h>
19209                           #if __GNU_LIBRARY__ == 1
19210                           Linux libc5 i18n is broken.
19211                           #endif
19212 int
19213 main ()
19214 {
19215
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 if ac_fn_c_try_compile "$LINENO"; then :
19221   gl_cv_func_iswcntrl_works=yes
19222 else
19223   gl_cv_func_iswcntrl_works=no
19224 fi
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226
19227 else
19228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h.  */
19230
19231                             #include <stddef.h>
19232                             #include <stdio.h>
19233                             #include <time.h>
19234                             #include <wchar.h>
19235                             #include <wctype.h>
19236                             int main () { return iswprint ('x') == 0; }
19237 _ACEOF
19238 if ac_fn_c_try_run "$LINENO"; then :
19239   gl_cv_func_iswcntrl_works=yes
19240 else
19241   gl_cv_func_iswcntrl_works=no
19242 fi
19243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19244   conftest.$ac_objext conftest.beam conftest.$ac_ext
19245 fi
19246
19247
19248 fi
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19250 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19251       if test $gl_cv_func_iswcntrl_works = yes; then
19252         case "$host_os" in
19253           mingw*)
19254                         ;;
19255           *)
19256                         WCTYPE_H=
19257             ;;
19258         esac
19259       fi
19260     fi
19261
19262
19263
19264
19265
19266
19267      if test $gl_cv_have_include_next = yes; then
19268        gl_cv_next_wctype_h='<'wctype.h'>'
19269      else
19270        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19271 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19272 if test "${gl_cv_next_wctype_h+set}" = set; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275
19276           if test $ac_cv_header_wctype_h = yes; then
19277             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279 #include <wctype.h>
19280
19281 _ACEOF
19282                                                                     case "$host_os" in
19283               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19284               *)    gl_absname_cpp="$ac_cpp" ;;
19285             esac
19286                                     gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19287                sed -n '\#/wctype.h#{
19288                  s#.*"\(.*/wctype.h\)".*#\1#
19289                  s#^/[^/]#//&#
19290                  p
19291                  q
19292                }'`'"'
19293           else
19294             gl_cv_next_wctype_h='<'wctype.h'>'
19295           fi
19296
19297 fi
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19299 $as_echo "$gl_cv_next_wctype_h" >&6; }
19300      fi
19301      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19302
19303      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19304        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19305        gl_next_as_first_directive='<'wctype.h'>'
19306      else
19307        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19308        gl_next_as_first_directive=$gl_cv_next_wctype_h
19309      fi
19310      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19311
19312
19313
19314     HAVE_WCTYPE_H=1
19315   else
19316     HAVE_WCTYPE_H=0
19317   fi
19318
19319
19320
19321   if test "$gl_cv_func_iswcntrl_works" = no; then
19322     REPLACE_ISWCNTRL=1
19323   else
19324     REPLACE_ISWCNTRL=0
19325   fi
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
19338
19339
19340
19341
19342   :
19343
19344
19345   :
19346
19347
19348
19349
19350
19351   for ac_header in stdint.h
19352 do :
19353   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19354 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19355   cat >>confdefs.h <<_ACEOF
19356 #define HAVE_STDINT_H 1
19357 _ACEOF
19358
19359 fi
19360
19361 done
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373   gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
19374
19375
19376     :
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387   gltests_libdeps=
19388   gltests_ltlibdeps=
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398   gl_source_base='tests'
19399
19400
19401
19402
19403
19404
19405
19406   LIBGZIP_LIBDEPS="$gl_libdeps"
19407
19408   LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
19409
19410
19411
19412 # cc -E produces incorrect asm files on SVR4, so postprocess it.
19413 ASCPPPOST="sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
19414
19415
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underline in external names" >&5
19417 $as_echo_n "checking for underline in external names... " >&6; }
19418 if test "${gzip_cv_underline+set}" = set; then :
19419   $as_echo_n "(cached) " >&6
19420 else
19421   gzip_cv_underline=yes
19422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423 /* end confdefs.h.  */
19424 int foo() {return 0;}
19425 int
19426 main ()
19427 {
19428
19429   ;
19430   return 0;
19431 }
19432 _ACEOF
19433 if ac_fn_c_try_compile "$LINENO"; then :
19434   $NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
19435         gzip_cv_underline=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_underline" >&5
19440 $as_echo "$gzip_cv_underline" >&6; }
19441 ASCPPFLAGS=
19442 if test $gzip_cv_underline = no; then
19443   ASCPPFLAGS='-DNO_UNDERLINE'
19444 fi
19445
19446
19447
19448 # Try to assemble match.S.
19449 # "gcc -E match.s" ignores -E, so we must use _match.S.
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an assembler syntax supported by this package" >&5
19451 $as_echo_n "checking for an assembler syntax supported by this package... " >&6; }
19452 if test "${gzip_cv_assembler+set}" = set; then :
19453   $as_echo_n "(cached) " >&6
19454 else
19455   gzip_cv_assembler=no
19456    case " $DEFS " in
19457    *' NO_ASM '*) ;;
19458    *)
19459      if cp $srcdir/lib/match.c _match.S &&
19460         eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" 2>/dev/null &&
19461         eval "$ASCPPPOST < _match.i > match_.s" 2>/dev/null; then
19462        if test ! -s match_.s || grep error < match_.s > /dev/null; then
19463          :
19464        elif eval "$CC $CPPFLAGS $CFLAGS -c match_.s >/dev/null 2>&1" &&
19465             test -f match_.$OBJEXT; then
19466          rm -f match_.$OBJEXT
19467          gzip_cv_assembler=yes
19468          if echo 'void foo (void) {}' > conftest.c &&
19469             eval "$CC $CPPFLAGS $CFLAGS -S conftest.c >/dev/null 2>&1" &&
19470             grep '\.note\.GNU-stack' conftest.s >/dev/null 2>&1 &&
19471             eval "$CC $CPPFLAGS $CFLAGS -c -Wa,--noexecstack match_.s >/dev/null 2>&1" &&
19472             test -f match_.$OBJEXT; then
19473            gzip_cv_assembler='yes, with -Wa,--noexecstack'
19474          fi
19475        fi
19476      fi
19477      rm -f conftest* _match.i _match.S match_.s match_.$OBJEXT;;
19478    esac
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_assembler" >&5
19481 $as_echo "$gzip_cv_assembler" >&6; }
19482 if test "$gzip_cv_assembler" != no; then
19483
19484 $as_echo "#define ASMV /**/" >>confdefs.h
19485
19486   case " $LIBOBJS " in
19487   *" match.$ac_objext "* ) ;;
19488   *) LIBOBJS="$LIBOBJS match.$ac_objext"
19489  ;;
19490 esac
19491
19492 fi
19493 if test "$gzip_cv_assembler" = 'yes, with -Wa,--noexecstack'; then
19494   ASFLAGS_config='-Wa,--noexecstack'
19495 else
19496   ASFLAGS_config=
19497 fi
19498
19499
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
19501 $as_echo_n "checking for library containing strerror... " >&6; }
19502 if test "${ac_cv_search_strerror+set}" = set; then :
19503   $as_echo_n "(cached) " >&6
19504 else
19505   ac_func_search_save_LIBS=$LIBS
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h.  */
19508
19509 /* Override any GCC internal prototype to avoid an error.
19510    Use char because int might match the return type of a GCC
19511    builtin and then its argument prototype would still apply.  */
19512 #ifdef __cplusplus
19513 extern "C"
19514 #endif
19515 char strerror ();
19516 int
19517 main ()
19518 {
19519 return strerror ();
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 for ac_lib in '' cposix; do
19525   if test -z "$ac_lib"; then
19526     ac_res="none required"
19527   else
19528     ac_res=-l$ac_lib
19529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19530   fi
19531   if ac_fn_c_try_link "$LINENO"; then :
19532   ac_cv_search_strerror=$ac_res
19533 fi
19534 rm -f core conftest.err conftest.$ac_objext \
19535     conftest$ac_exeext
19536   if test "${ac_cv_search_strerror+set}" = set; then :
19537   break
19538 fi
19539 done
19540 if test "${ac_cv_search_strerror+set}" = set; then :
19541
19542 else
19543   ac_cv_search_strerror=no
19544 fi
19545 rm conftest.$ac_ext
19546 LIBS=$ac_func_search_save_LIBS
19547 fi
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
19549 $as_echo "$ac_cv_search_strerror" >&6; }
19550 ac_res=$ac_cv_search_strerror
19551 if test "$ac_res" != no; then :
19552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19553
19554 fi
19555
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19557 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19558 if test "${ac_cv_c_const+set}" = set; then :
19559   $as_echo_n "(cached) " >&6
19560 else
19561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h.  */
19563
19564 int
19565 main ()
19566 {
19567 /* FIXME: Include the comments suggested by Paul. */
19568 #ifndef __cplusplus
19569   /* Ultrix mips cc rejects this.  */
19570   typedef int charset[2];
19571   const charset cs;
19572   /* SunOS 4.1.1 cc rejects this.  */
19573   char const *const *pcpcc;
19574   char **ppc;
19575   /* NEC SVR4.0.2 mips cc rejects this.  */
19576   struct point {int x, y;};
19577   static struct point const zero = {0,0};
19578   /* AIX XL C 1.02.0.0 rejects this.
19579      It does not let you subtract one const X* pointer from another in
19580      an arm of an if-expression whose if-part is not a constant
19581      expression */
19582   const char *g = "string";
19583   pcpcc = &g + (g ? g-g : 0);
19584   /* HPUX 7.0 cc rejects these. */
19585   ++pcpcc;
19586   ppc = (char**) pcpcc;
19587   pcpcc = (char const *const *) ppc;
19588   { /* SCO 3.2v4 cc rejects this.  */
19589     char *t;
19590     char const *s = 0 ? (char *) 0 : (char const *) 0;
19591
19592     *t++ = 0;
19593     if (s) return 0;
19594   }
19595   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19596     int x[] = {25, 17};
19597     const int *foo = &x[0];
19598     ++foo;
19599   }
19600   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19601     typedef const int *iptr;
19602     iptr p = 0;
19603     ++p;
19604   }
19605   { /* AIX XL C 1.02.0.0 rejects this saying
19606        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19607     struct s { int j; const int *ap[3]; };
19608     struct s *b; b->j = 5;
19609   }
19610   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19611     const int foo = 10;
19612     if (!foo) return 0;
19613   }
19614   return !cs[0] && !zero.x;
19615 #endif
19616
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 if ac_fn_c_try_compile "$LINENO"; then :
19622   ac_cv_c_const=yes
19623 else
19624   ac_cv_c_const=no
19625 fi
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 fi
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19629 $as_echo "$ac_cv_c_const" >&6; }
19630 if test $ac_cv_c_const = no; then
19631
19632 $as_echo "#define const /**/" >>confdefs.h
19633
19634 fi
19635
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19637 $as_echo_n "checking for ANSI C header files... " >&6; }
19638 if test "${ac_cv_header_stdc+set}" = set; then :
19639   $as_echo_n "(cached) " >&6
19640 else
19641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h.  */
19643 #include <stdlib.h>
19644 #include <stdarg.h>
19645 #include <string.h>
19646 #include <float.h>
19647
19648 int
19649 main ()
19650 {
19651
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_c_try_compile "$LINENO"; then :
19657   ac_cv_header_stdc=yes
19658 else
19659   ac_cv_header_stdc=no
19660 fi
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662
19663 if test $ac_cv_header_stdc = yes; then
19664   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h.  */
19667 #include <string.h>
19668
19669 _ACEOF
19670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19671   $EGREP "memchr" >/dev/null 2>&1; then :
19672
19673 else
19674   ac_cv_header_stdc=no
19675 fi
19676 rm -f conftest*
19677
19678 fi
19679
19680 if test $ac_cv_header_stdc = yes; then
19681   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h.  */
19684 #include <stdlib.h>
19685
19686 _ACEOF
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688   $EGREP "free" >/dev/null 2>&1; then :
19689
19690 else
19691   ac_cv_header_stdc=no
19692 fi
19693 rm -f conftest*
19694
19695 fi
19696
19697 if test $ac_cv_header_stdc = yes; then
19698   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19699   if test "$cross_compiling" = yes; then :
19700   :
19701 else
19702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h.  */
19704 #include <ctype.h>
19705 #include <stdlib.h>
19706 #if ((' ' & 0x0FF) == 0x020)
19707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19709 #else
19710 # define ISLOWER(c) \
19711                    (('a' <= (c) && (c) <= 'i') \
19712                      || ('j' <= (c) && (c) <= 'r') \
19713                      || ('s' <= (c) && (c) <= 'z'))
19714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19715 #endif
19716
19717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19718 int
19719 main ()
19720 {
19721   int i;
19722   for (i = 0; i < 256; i++)
19723     if (XOR (islower (i), ISLOWER (i))
19724         || toupper (i) != TOUPPER (i))
19725       return 2;
19726   return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_run "$LINENO"; then :
19730
19731 else
19732   ac_cv_header_stdc=no
19733 fi
19734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19735   conftest.$ac_objext conftest.beam conftest.$ac_ext
19736 fi
19737
19738 fi
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19741 $as_echo "$ac_cv_header_stdc" >&6; }
19742 if test $ac_cv_header_stdc = yes; then
19743
19744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19745
19746 fi
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764 ac_header_dirent=no
19765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19766   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19768 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19770   $as_echo_n "(cached) " >&6
19771 else
19772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773 /* end confdefs.h.  */
19774 #include <sys/types.h>
19775 #include <$ac_hdr>
19776
19777 int
19778 main ()
19779 {
19780 if ((DIR *) 0)
19781 return 0;
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 if ac_fn_c_try_compile "$LINENO"; then :
19787   eval "$as_ac_Header=yes"
19788 else
19789   eval "$as_ac_Header=no"
19790 fi
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 fi
19793 eval ac_res=\$$as_ac_Header
19794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19795 $as_echo "$ac_res" >&6; }
19796 eval as_val=\$$as_ac_Header
19797    if test "x$as_val" = x""yes; then :
19798   cat >>confdefs.h <<_ACEOF
19799 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19800 _ACEOF
19801
19802 ac_header_dirent=$ac_hdr; break
19803 fi
19804
19805 done
19806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19807 if test $ac_header_dirent = dirent.h; then
19808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19809 $as_echo_n "checking for library containing opendir... " >&6; }
19810 if test "${ac_cv_search_opendir+set}" = set; then :
19811   $as_echo_n "(cached) " >&6
19812 else
19813   ac_func_search_save_LIBS=$LIBS
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h.  */
19816
19817 /* Override any GCC internal prototype to avoid an error.
19818    Use char because int might match the return type of a GCC
19819    builtin and then its argument prototype would still apply.  */
19820 #ifdef __cplusplus
19821 extern "C"
19822 #endif
19823 char opendir ();
19824 int
19825 main ()
19826 {
19827 return opendir ();
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 for ac_lib in '' dir; do
19833   if test -z "$ac_lib"; then
19834     ac_res="none required"
19835   else
19836     ac_res=-l$ac_lib
19837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19838   fi
19839   if ac_fn_c_try_link "$LINENO"; then :
19840   ac_cv_search_opendir=$ac_res
19841 fi
19842 rm -f core conftest.err conftest.$ac_objext \
19843     conftest$ac_exeext
19844   if test "${ac_cv_search_opendir+set}" = set; then :
19845   break
19846 fi
19847 done
19848 if test "${ac_cv_search_opendir+set}" = set; then :
19849
19850 else
19851   ac_cv_search_opendir=no
19852 fi
19853 rm conftest.$ac_ext
19854 LIBS=$ac_func_search_save_LIBS
19855 fi
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19857 $as_echo "$ac_cv_search_opendir" >&6; }
19858 ac_res=$ac_cv_search_opendir
19859 if test "$ac_res" != no; then :
19860   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19861
19862 fi
19863
19864 else
19865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19866 $as_echo_n "checking for library containing opendir... " >&6; }
19867 if test "${ac_cv_search_opendir+set}" = set; then :
19868   $as_echo_n "(cached) " >&6
19869 else
19870   ac_func_search_save_LIBS=$LIBS
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h.  */
19873
19874 /* Override any GCC internal prototype to avoid an error.
19875    Use char because int might match the return type of a GCC
19876    builtin and then its argument prototype would still apply.  */
19877 #ifdef __cplusplus
19878 extern "C"
19879 #endif
19880 char opendir ();
19881 int
19882 main ()
19883 {
19884 return opendir ();
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 for ac_lib in '' x; do
19890   if test -z "$ac_lib"; then
19891     ac_res="none required"
19892   else
19893     ac_res=-l$ac_lib
19894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19895   fi
19896   if ac_fn_c_try_link "$LINENO"; then :
19897   ac_cv_search_opendir=$ac_res
19898 fi
19899 rm -f core conftest.err conftest.$ac_objext \
19900     conftest$ac_exeext
19901   if test "${ac_cv_search_opendir+set}" = set; then :
19902   break
19903 fi
19904 done
19905 if test "${ac_cv_search_opendir+set}" = set; then :
19906
19907 else
19908   ac_cv_search_opendir=no
19909 fi
19910 rm conftest.$ac_ext
19911 LIBS=$ac_func_search_save_LIBS
19912 fi
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19914 $as_echo "$ac_cv_search_opendir" >&6; }
19915 ac_res=$ac_cv_search_opendir
19916 if test "$ac_res" != no; then :
19917   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19918
19919 fi
19920
19921 fi
19922
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19924 $as_echo_n "checking return type of signal handlers... " >&6; }
19925 if test "${ac_cv_type_signal+set}" = set; then :
19926   $as_echo_n "(cached) " >&6
19927 else
19928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h.  */
19930 #include <sys/types.h>
19931 #include <signal.h>
19932
19933 int
19934 main ()
19935 {
19936 return *(signal (0, 0)) (0) == 1;
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_compile "$LINENO"; then :
19942   ac_cv_type_signal=int
19943 else
19944   ac_cv_type_signal=void
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 fi
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19949 $as_echo "$ac_cv_type_signal" >&6; }
19950
19951 cat >>confdefs.h <<_ACEOF
19952 #define RETSIGTYPE $ac_cv_type_signal
19953 _ACEOF
19954
19955
19956 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19957 if test "x$ac_cv_type_size_t" = x""yes; then :
19958
19959 else
19960
19961 cat >>confdefs.h <<_ACEOF
19962 #define size_t unsigned int
19963 _ACEOF
19964
19965 fi
19966
19967 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19968 if test "x$ac_cv_type_off_t" = x""yes; then :
19969
19970 else
19971
19972 cat >>confdefs.h <<_ACEOF
19973 #define off_t long int
19974 _ACEOF
19975
19976 fi
19977
19978
19979 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile"
19980
19981 cat >confcache <<\_ACEOF
19982 # This file is a shell script that caches the results of configure
19983 # tests run on this system so they can be shared between configure
19984 # scripts and configure runs, see configure's option --config-cache.
19985 # It is not useful on other systems.  If it contains results you don't
19986 # want to keep, you may remove or edit it.
19987 #
19988 # config.status only pays attention to the cache file if you give it
19989 # the --recheck option to rerun configure.
19990 #
19991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19993 # following values.
19994
19995 _ACEOF
19996
19997 # The following way of writing the cache mishandles newlines in values,
19998 # but we know of no workaround that is simple, portable, and efficient.
19999 # So, we kill variables containing newlines.
20000 # Ultrix sh set writes to stderr and can't be redirected directly,
20001 # and sets the high bit in the cache file unless we assign to the vars.
20002 (
20003   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20004     eval ac_val=\$$ac_var
20005     case $ac_val in #(
20006     *${as_nl}*)
20007       case $ac_var in #(
20008       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20010       esac
20011       case $ac_var in #(
20012       _ | IFS | as_nl) ;; #(
20013       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20014       *) { eval $ac_var=; unset $ac_var;} ;;
20015       esac ;;
20016     esac
20017   done
20018
20019   (set) 2>&1 |
20020     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20021     *${as_nl}ac_space=\ *)
20022       # `set' does not quote correctly, so add quotes: double-quote
20023       # substitution turns \\\\ into \\, and sed turns \\ into \.
20024       sed -n \
20025         "s/'/'\\\\''/g;
20026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20027       ;; #(
20028     *)
20029       # `set' quotes correctly as required by POSIX, so do not add quotes.
20030       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20031       ;;
20032     esac |
20033     sort
20034 ) |
20035   sed '
20036      /^ac_cv_env_/b end
20037      t clear
20038      :clear
20039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20040      t end
20041      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20042      :end' >>confcache
20043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20044   if test -w "$cache_file"; then
20045     test "x$cache_file" != "x/dev/null" &&
20046       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20047 $as_echo "$as_me: updating cache $cache_file" >&6;}
20048     cat confcache >$cache_file
20049   else
20050     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20052   fi
20053 fi
20054 rm -f confcache
20055
20056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20057 # Let make expand exec_prefix.
20058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20059
20060 DEFS=-DHAVE_CONFIG_H
20061
20062 ac_libobjs=
20063 ac_ltlibobjs=
20064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20065   # 1. Remove the extension, and $U if already installed.
20066   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20067   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20068   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20069   #    will be set to the directory where LIBOBJS objects are built.
20070   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20071   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20072 done
20073 LIBOBJS=$ac_libobjs
20074
20075 LTLIBOBJS=$ac_ltlibobjs
20076
20077
20078  if test -n "$EXEEXT"; then
20079   am__EXEEXT_TRUE=
20080   am__EXEEXT_FALSE='#'
20081 else
20082   am__EXEEXT_TRUE='#'
20083   am__EXEEXT_FALSE=
20084 fi
20085
20086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20087   as_fn_error "conditional \"AMDEP\" was never defined.
20088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20089 fi
20090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20091   as_fn_error "conditional \"am__fastdepCC\" was never defined.
20092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20093 fi
20094 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20095   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20097 fi
20098
20099 if test -z "${GNU_MAKE_TRUE}" && test -z "${GNU_MAKE_FALSE}"; then
20100   as_fn_error "conditional \"GNU_MAKE\" was never defined.
20101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20102 fi
20103
20104
20105     gl_libobjs=
20106     gl_ltlibobjs=
20107     if test -n "$gl_LIBOBJS"; then
20108       # Remove the extension.
20109       sed_drop_objext='s/\.o$//;s/\.obj$//'
20110       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
20111         gl_libobjs="$gl_libobjs $i.$ac_objext"
20112         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20113       done
20114     fi
20115     gl_LIBOBJS=$gl_libobjs
20116
20117     gl_LTLIBOBJS=$gl_ltlibobjs
20118
20119
20120
20121     gltests_libobjs=
20122     gltests_ltlibobjs=
20123     if test -n "$gltests_LIBOBJS"; then
20124       # Remove the extension.
20125       sed_drop_objext='s/\.o$//;s/\.obj$//'
20126       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
20127         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20128         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20129       done
20130     fi
20131     gltests_LIBOBJS=$gltests_libobjs
20132
20133     gltests_LTLIBOBJS=$gltests_ltlibobjs
20134
20135
20136
20137 : ${CONFIG_STATUS=./config.status}
20138 ac_write_fail=0
20139 ac_clean_files_save=$ac_clean_files
20140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20142 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20143 as_write_fail=0
20144 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20145 #! $SHELL
20146 # Generated by $as_me.
20147 # Run this file to recreate the current configuration.
20148 # Compiler output produced by configure, useful for debugging
20149 # configure, is in config.log if it exists.
20150
20151 debug=false
20152 ac_cs_recheck=false
20153 ac_cs_silent=false
20154
20155 SHELL=\${CONFIG_SHELL-$SHELL}
20156 export SHELL
20157 _ASEOF
20158 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20159 ## -------------------- ##
20160 ## M4sh Initialization. ##
20161 ## -------------------- ##
20162
20163 # Be more Bourne compatible
20164 DUALCASE=1; export DUALCASE # for MKS sh
20165 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20166   emulate sh
20167   NULLCMD=:
20168   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20169   # is contrary to our usage.  Disable this feature.
20170   alias -g '${1+"$@"}'='"$@"'
20171   setopt NO_GLOB_SUBST
20172 else
20173   case `(set -o) 2>/dev/null` in #(
20174   *posix*) :
20175     set -o posix ;; #(
20176   *) :
20177      ;;
20178 esac
20179 fi
20180
20181
20182 as_nl='
20183 '
20184 export as_nl
20185 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20186 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20189 # Prefer a ksh shell builtin over an external printf program on Solaris,
20190 # but without wasting forks for bash or zsh.
20191 if test -z "$BASH_VERSION$ZSH_VERSION" \
20192     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20193   as_echo='print -r --'
20194   as_echo_n='print -rn --'
20195 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20196   as_echo='printf %s\n'
20197   as_echo_n='printf %s'
20198 else
20199   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20200     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20201     as_echo_n='/usr/ucb/echo -n'
20202   else
20203     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20204     as_echo_n_body='eval
20205       arg=$1;
20206       case $arg in #(
20207       *"$as_nl"*)
20208         expr "X$arg" : "X\\(.*\\)$as_nl";
20209         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20210       esac;
20211       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20212     '
20213     export as_echo_n_body
20214     as_echo_n='sh -c $as_echo_n_body as_echo'
20215   fi
20216   export as_echo_body
20217   as_echo='sh -c $as_echo_body as_echo'
20218 fi
20219
20220 # The user is always right.
20221 if test "${PATH_SEPARATOR+set}" != set; then
20222   PATH_SEPARATOR=:
20223   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20224     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20225       PATH_SEPARATOR=';'
20226   }
20227 fi
20228
20229
20230 # IFS
20231 # We need space, tab and new line, in precisely that order.  Quoting is
20232 # there to prevent editors from complaining about space-tab.
20233 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20234 # splitting by setting IFS to empty value.)
20235 IFS=" ""        $as_nl"
20236
20237 # Find who we are.  Look in the path if we contain no directory separator.
20238 case $0 in #((
20239   *[\\/]* ) as_myself=$0 ;;
20240   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20241 for as_dir in $PATH
20242 do
20243   IFS=$as_save_IFS
20244   test -z "$as_dir" && as_dir=.
20245     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20246   done
20247 IFS=$as_save_IFS
20248
20249      ;;
20250 esac
20251 # We did not find ourselves, most probably we were run as `sh COMMAND'
20252 # in which case we are not to be found in the path.
20253 if test "x$as_myself" = x; then
20254   as_myself=$0
20255 fi
20256 if test ! -f "$as_myself"; then
20257   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20258   exit 1
20259 fi
20260
20261 # Unset variables that we do not need and which cause bugs (e.g. in
20262 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20263 # suppresses any "Segmentation fault" message there.  '((' could
20264 # trigger a bug in pdksh 5.2.14.
20265 for as_var in BASH_ENV ENV MAIL MAILPATH
20266 do eval test x\${$as_var+set} = xset \
20267   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20268 done
20269 PS1='$ '
20270 PS2='> '
20271 PS4='+ '
20272
20273 # NLS nuisances.
20274 LC_ALL=C
20275 export LC_ALL
20276 LANGUAGE=C
20277 export LANGUAGE
20278
20279 # CDPATH.
20280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20281
20282
20283 # as_fn_error ERROR [LINENO LOG_FD]
20284 # ---------------------------------
20285 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20286 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20287 # script with status $?, using 1 if that was 0.
20288 as_fn_error ()
20289 {
20290   as_status=$?; test $as_status -eq 0 && as_status=1
20291   if test "$3"; then
20292     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20293     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20294   fi
20295   $as_echo "$as_me: error: $1" >&2
20296   as_fn_exit $as_status
20297 } # as_fn_error
20298
20299
20300 # as_fn_set_status STATUS
20301 # -----------------------
20302 # Set $? to STATUS, without forking.
20303 as_fn_set_status ()
20304 {
20305   return $1
20306 } # as_fn_set_status
20307
20308 # as_fn_exit STATUS
20309 # -----------------
20310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20311 as_fn_exit ()
20312 {
20313   set +e
20314   as_fn_set_status $1
20315   exit $1
20316 } # as_fn_exit
20317
20318 # as_fn_unset VAR
20319 # ---------------
20320 # Portably unset VAR.
20321 as_fn_unset ()
20322 {
20323   { eval $1=; unset $1;}
20324 }
20325 as_unset=as_fn_unset
20326 # as_fn_append VAR VALUE
20327 # ----------------------
20328 # Append the text in VALUE to the end of the definition contained in VAR. Take
20329 # advantage of any shell optimizations that allow amortized linear growth over
20330 # repeated appends, instead of the typical quadratic growth present in naive
20331 # implementations.
20332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20333   eval 'as_fn_append ()
20334   {
20335     eval $1+=\$2
20336   }'
20337 else
20338   as_fn_append ()
20339   {
20340     eval $1=\$$1\$2
20341   }
20342 fi # as_fn_append
20343
20344 # as_fn_arith ARG...
20345 # ------------------
20346 # Perform arithmetic evaluation on the ARGs, and store the result in the
20347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20348 # must be portable across $(()) and expr.
20349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20350   eval 'as_fn_arith ()
20351   {
20352     as_val=$(( $* ))
20353   }'
20354 else
20355   as_fn_arith ()
20356   {
20357     as_val=`expr "$@" || test $? -eq 1`
20358   }
20359 fi # as_fn_arith
20360
20361
20362 if expr a : '\(a\)' >/dev/null 2>&1 &&
20363    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20364   as_expr=expr
20365 else
20366   as_expr=false
20367 fi
20368
20369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20370   as_basename=basename
20371 else
20372   as_basename=false
20373 fi
20374
20375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20376   as_dirname=dirname
20377 else
20378   as_dirname=false
20379 fi
20380
20381 as_me=`$as_basename -- "$0" ||
20382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20383          X"$0" : 'X\(//\)$' \| \
20384          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20385 $as_echo X/"$0" |
20386     sed '/^.*\/\([^/][^/]*\)\/*$/{
20387             s//\1/
20388             q
20389           }
20390           /^X\/\(\/\/\)$/{
20391             s//\1/
20392             q
20393           }
20394           /^X\/\(\/\).*/{
20395             s//\1/
20396             q
20397           }
20398           s/.*/./; q'`
20399
20400 # Avoid depending upon Character Ranges.
20401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20404 as_cr_digits='0123456789'
20405 as_cr_alnum=$as_cr_Letters$as_cr_digits
20406
20407 ECHO_C= ECHO_N= ECHO_T=
20408 case `echo -n x` in #(((((
20409 -n*)
20410   case `echo 'xy\c'` in
20411   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20412   xy)  ECHO_C='\c';;
20413   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20414        ECHO_T=' ';;
20415   esac;;
20416 *)
20417   ECHO_N='-n';;
20418 esac
20419
20420 rm -f conf$$ conf$$.exe conf$$.file
20421 if test -d conf$$.dir; then
20422   rm -f conf$$.dir/conf$$.file
20423 else
20424   rm -f conf$$.dir
20425   mkdir conf$$.dir 2>/dev/null
20426 fi
20427 if (echo >conf$$.file) 2>/dev/null; then
20428   if ln -s conf$$.file conf$$ 2>/dev/null; then
20429     as_ln_s='ln -s'
20430     # ... but there are two gotchas:
20431     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20432     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20433     # In both cases, we have to default to `cp -p'.
20434     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20435       as_ln_s='cp -p'
20436   elif ln conf$$.file conf$$ 2>/dev/null; then
20437     as_ln_s=ln
20438   else
20439     as_ln_s='cp -p'
20440   fi
20441 else
20442   as_ln_s='cp -p'
20443 fi
20444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20445 rmdir conf$$.dir 2>/dev/null
20446
20447
20448 # as_fn_mkdir_p
20449 # -------------
20450 # Create "$as_dir" as a directory, including parents if necessary.
20451 as_fn_mkdir_p ()
20452 {
20453
20454   case $as_dir in #(
20455   -*) as_dir=./$as_dir;;
20456   esac
20457   test -d "$as_dir" || eval $as_mkdir_p || {
20458     as_dirs=
20459     while :; do
20460       case $as_dir in #(
20461       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20462       *) as_qdir=$as_dir;;
20463       esac
20464       as_dirs="'$as_qdir' $as_dirs"
20465       as_dir=`$as_dirname -- "$as_dir" ||
20466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20467          X"$as_dir" : 'X\(//\)[^/]' \| \
20468          X"$as_dir" : 'X\(//\)$' \| \
20469          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20470 $as_echo X"$as_dir" |
20471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20472             s//\1/
20473             q
20474           }
20475           /^X\(\/\/\)[^/].*/{
20476             s//\1/
20477             q
20478           }
20479           /^X\(\/\/\)$/{
20480             s//\1/
20481             q
20482           }
20483           /^X\(\/\).*/{
20484             s//\1/
20485             q
20486           }
20487           s/.*/./; q'`
20488       test -d "$as_dir" && break
20489     done
20490     test -z "$as_dirs" || eval "mkdir $as_dirs"
20491   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20492
20493
20494 } # as_fn_mkdir_p
20495 if mkdir -p . 2>/dev/null; then
20496   as_mkdir_p='mkdir -p "$as_dir"'
20497 else
20498   test -d ./-p && rmdir ./-p
20499   as_mkdir_p=false
20500 fi
20501
20502 if test -x / >/dev/null 2>&1; then
20503   as_test_x='test -x'
20504 else
20505   if ls -dL / >/dev/null 2>&1; then
20506     as_ls_L_option=L
20507   else
20508     as_ls_L_option=
20509   fi
20510   as_test_x='
20511     eval sh -c '\''
20512       if test -d "$1"; then
20513         test -d "$1/.";
20514       else
20515         case $1 in #(
20516         -*)set "./$1";;
20517         esac;
20518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20519         ???[sx]*):;;*)false;;esac;fi
20520     '\'' sh
20521   '
20522 fi
20523 as_executable_p=$as_test_x
20524
20525 # Sed expression to map a string onto a valid CPP name.
20526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20527
20528 # Sed expression to map a string onto a valid variable name.
20529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20530
20531
20532 exec 6>&1
20533 ## ----------------------------------- ##
20534 ## Main body of $CONFIG_STATUS script. ##
20535 ## ----------------------------------- ##
20536 _ASEOF
20537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20538
20539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20540 # Save the log message, to keep $0 and so on meaningful, and to
20541 # report actual input values of CONFIG_FILES etc. instead of their
20542 # values after options handling.
20543 ac_log="
20544 This file was extended by gzip $as_me 1.3.14, which was
20545 generated by GNU Autoconf 2.64.69-81c80.  Invocation command line was
20546
20547   CONFIG_FILES    = $CONFIG_FILES
20548   CONFIG_HEADERS  = $CONFIG_HEADERS
20549   CONFIG_LINKS    = $CONFIG_LINKS
20550   CONFIG_COMMANDS = $CONFIG_COMMANDS
20551   $ $0 $@
20552
20553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20554 "
20555
20556 _ACEOF
20557
20558 case $ac_config_files in *"
20559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20560 esac
20561
20562 case $ac_config_headers in *"
20563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20564 esac
20565
20566
20567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20568 # Files that config.status was made for.
20569 config_files="$ac_config_files"
20570 config_headers="$ac_config_headers"
20571 config_links="$ac_config_links"
20572 config_commands="$ac_config_commands"
20573
20574 _ACEOF
20575
20576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20577 ac_cs_usage="\
20578 \`$as_me' instantiates files and other configuration actions
20579 from templates according to the current configuration.  Unless the files
20580 and actions are specified as TAGs, all are instantiated by default.
20581
20582 Usage: $0 [OPTION]... [TAG]...
20583
20584   -h, --help       print this help, then exit
20585   -V, --version    print version number and configuration settings, then exit
20586       --config     print configuration, then exit
20587   -q, --quiet, --silent
20588                    do not print progress messages
20589   -d, --debug      don't remove temporary files
20590       --recheck    update $as_me by reconfiguring in the same conditions
20591       --file=FILE[:TEMPLATE]
20592                    instantiate the configuration file FILE
20593       --header=FILE[:TEMPLATE]
20594                    instantiate the configuration header FILE
20595
20596 Configuration files:
20597 $config_files
20598
20599 Configuration headers:
20600 $config_headers
20601
20602 Configuration links:
20603 $config_links
20604
20605 Configuration commands:
20606 $config_commands
20607
20608 Report bugs to <bug-gzip@gnu.org>."
20609
20610 _ACEOF
20611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20613 ac_cs_version="\\
20614 gzip config.status 1.3.14
20615 configured by $0, generated by GNU Autoconf 2.64.69-81c80,
20616   with options \\"\$ac_cs_config\\"
20617
20618 Copyright (C) 2009 Free Software Foundation, Inc.
20619 This config.status script is free software; the Free Software Foundation
20620 gives unlimited permission to copy, distribute and modify it."
20621
20622 ac_pwd='$ac_pwd'
20623 srcdir='$srcdir'
20624 INSTALL='$INSTALL'
20625 MKDIR_P='$MKDIR_P'
20626 AWK='$AWK'
20627 test -n "\$AWK" || AWK=awk
20628 _ACEOF
20629
20630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20631 # The default lists apply if the user does not specify any file.
20632 ac_need_defaults=:
20633 while test $# != 0
20634 do
20635   case $1 in
20636   --*=*)
20637     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20638     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20639     ac_shift=:
20640     ;;
20641   *)
20642     ac_option=$1
20643     ac_optarg=$2
20644     ac_shift=shift
20645     ;;
20646   esac
20647
20648   case $ac_option in
20649   # Handling of the options.
20650   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20651     ac_cs_recheck=: ;;
20652   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20653     $as_echo "$ac_cs_version"; exit ;;
20654   --config | --confi | --conf | --con | --co | --c )
20655     $as_echo "$ac_cs_config"; exit ;;
20656   --debug | --debu | --deb | --de | --d | -d )
20657     debug=: ;;
20658   --file | --fil | --fi | --f )
20659     $ac_shift
20660     case $ac_optarg in
20661     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20662     esac
20663     as_fn_append CONFIG_FILES " '$ac_optarg'"
20664     ac_need_defaults=false;;
20665   --header | --heade | --head | --hea )
20666     $ac_shift
20667     case $ac_optarg in
20668     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20669     esac
20670     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20671     ac_need_defaults=false;;
20672   --he | --h)
20673     # Conflict between --help and --header
20674     as_fn_error "ambiguous option: \`$1'
20675 Try \`$0 --help' for more information.";;
20676   --help | --hel | -h )
20677     $as_echo "$ac_cs_usage"; exit ;;
20678   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20679   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20680     ac_cs_silent=: ;;
20681
20682   # This is an error.
20683   -*) as_fn_error "unrecognized option: \`$1'
20684 Try \`$0 --help' for more information." ;;
20685
20686   *) as_fn_append ac_config_targets " $1"
20687      ac_need_defaults=false ;;
20688
20689   esac
20690   shift
20691 done
20692
20693 ac_configure_extra_args=
20694
20695 if $ac_cs_silent; then
20696   exec 6>/dev/null
20697   ac_configure_extra_args="$ac_configure_extra_args --silent"
20698 fi
20699
20700 _ACEOF
20701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20702 if \$ac_cs_recheck; then
20703   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20704   shift
20705   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20706   CONFIG_SHELL='$SHELL'
20707   export CONFIG_SHELL
20708   exec "\$@"
20709 fi
20710
20711 _ACEOF
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20713 exec 5>>config.log
20714 {
20715   echo
20716   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20717 ## Running $as_me. ##
20718 _ASBOX
20719   $as_echo "$ac_log"
20720 } >&5
20721
20722 _ACEOF
20723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20724 #
20725 # INIT-COMMANDS
20726 #
20727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20728 GNUmakefile=$GNUmakefile
20729
20730 _ACEOF
20731
20732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20733
20734 # Handling of arguments.
20735 for ac_config_target in $ac_config_targets
20736 do
20737   case $ac_config_target in
20738     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
20739     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20740     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
20741     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20742     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20743     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20744
20745   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20746   esac
20747 done
20748
20749
20750 # If the user did not use the arguments to specify the items to instantiate,
20751 # then the envvar interface is used.  Set only those that are not.
20752 # We use the long form for the default assignment because of an extremely
20753 # bizarre bug on SunOS 4.1.3.
20754 if $ac_need_defaults; then
20755   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20756   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20757   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20758   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20759 fi
20760
20761 # Have a temporary directory for convenience.  Make it in the build tree
20762 # simply because there is no reason against having it here, and in addition,
20763 # creating and moving files from /tmp can sometimes cause problems.
20764 # Hook for its removal unless debugging.
20765 # Note that there is a small window in which the directory will not be cleaned:
20766 # after its creation but before its name has been assigned to `$tmp'.
20767 $debug ||
20768 {
20769   tmp=
20770   trap 'exit_status=$?
20771   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20772 ' 0
20773   trap 'as_fn_exit 1' 1 2 13 15
20774 }
20775 # Create a (secure) tmp directory for tmp files.
20776
20777 {
20778   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20779   test -n "$tmp" && test -d "$tmp"
20780 }  ||
20781 {
20782   tmp=./conf$$-$RANDOM
20783   (umask 077 && mkdir "$tmp")
20784 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20785
20786 # Set up the scripts for CONFIG_FILES section.
20787 # No need to generate them if there are no CONFIG_FILES.
20788 # This happens for instance with `./config.status config.h'.
20789 if test -n "$CONFIG_FILES"; then
20790
20791
20792 ac_cr=`echo X | tr X '\015'`
20793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20794 # But we know of no other shell where ac_cr would be empty at this
20795 # point, so we can use a bashism as a fallback.
20796 if test "x$ac_cr" = x; then
20797   eval ac_cr=\$\'\\r\'
20798 fi
20799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20801   ac_cs_awk_cr='\r'
20802 else
20803   ac_cs_awk_cr=$ac_cr
20804 fi
20805
20806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20807 _ACEOF
20808
20809
20810 {
20811   echo "cat >conf$$subs.awk <<_ACEOF" &&
20812   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20813   echo "_ACEOF"
20814 } >conf$$subs.sh ||
20815   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20817 ac_delim='%!_!# '
20818 for ac_last_try in false false false false false :; do
20819   . ./conf$$subs.sh ||
20820     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20821
20822   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20823   if test $ac_delim_n = $ac_delim_num; then
20824     break
20825   elif $ac_last_try; then
20826     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20827   else
20828     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20829   fi
20830 done
20831 rm -f conf$$subs.sh
20832
20833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20834 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20835 _ACEOF
20836 sed -n '
20837 h
20838 s/^/S["/; s/!.*/"]=/
20839 p
20840 g
20841 s/^[^!]*!//
20842 :repl
20843 t repl
20844 s/'"$ac_delim"'$//
20845 t delim
20846 :nl
20847 h
20848 s/\(.\{148\}\).*/\1/
20849 t more1
20850 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20851 p
20852 n
20853 b repl
20854 :more1
20855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20856 p
20857 g
20858 s/.\{148\}//
20859 t nl
20860 :delim
20861 h
20862 s/\(.\{148\}\).*/\1/
20863 t more2
20864 s/["\\]/\\&/g; s/^/"/; s/$/"/
20865 p
20866 b
20867 :more2
20868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20869 p
20870 g
20871 s/.\{148\}//
20872 t delim
20873 ' <conf$$subs.awk | sed '
20874 /^[^""]/{
20875   N
20876   s/\n//
20877 }
20878 ' >>$CONFIG_STATUS || ac_write_fail=1
20879 rm -f conf$$subs.awk
20880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20881 _ACAWK
20882 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20883   for (key in S) S_is_set[key] = 1
20884   FS = "\a"
20885
20886 }
20887 {
20888   line = $ 0
20889   nfields = split(line, field, "@")
20890   substed = 0
20891   len = length(field[1])
20892   for (i = 2; i < nfields; i++) {
20893     key = field[i]
20894     keylen = length(key)
20895     if (S_is_set[key]) {
20896       value = S[key]
20897       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20898       len += length(value) + length(field[++i])
20899       substed = 1
20900     } else
20901       len += 1 + keylen
20902   }
20903
20904   print line
20905 }
20906
20907 _ACAWK
20908 _ACEOF
20909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20911   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20912 else
20913   cat
20914 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20915   || as_fn_error "could not setup config files machinery" "$LINENO" 5
20916 _ACEOF
20917
20918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20920 # trailing colons and then remove the whole line if VPATH becomes empty
20921 # (actually we leave an empty line to preserve line numbers).
20922 if test "x$srcdir" = x.; then
20923   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20924 s/:*\$(srcdir):*/:/
20925 s/:*\${srcdir}:*/:/
20926 s/:*@srcdir@:*/:/
20927 s/^\([^=]*=[     ]*\):*/\1/
20928 s/:*$//
20929 s/^[^=]*=[       ]*$//
20930 }'
20931 fi
20932
20933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934 fi # test -n "$CONFIG_FILES"
20935
20936 # Set up the scripts for CONFIG_HEADERS section.
20937 # No need to generate them if there are no CONFIG_HEADERS.
20938 # This happens for instance with `./config.status Makefile'.
20939 if test -n "$CONFIG_HEADERS"; then
20940 cat >"$tmp/defines.awk" <<\_ACAWK ||
20941 BEGIN {
20942 _ACEOF
20943
20944 # Transform confdefs.h into an awk script `defines.awk', embedded as
20945 # here-document in config.status, that substitutes the proper values into
20946 # config.h.in to produce config.h.
20947
20948 # Create a delimiter string that does not exist in confdefs.h, to ease
20949 # handling of long lines.
20950 ac_delim='%!_!# '
20951 for ac_last_try in false false :; do
20952   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20953   if test -z "$ac_t"; then
20954     break
20955   elif $ac_last_try; then
20956     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20957   else
20958     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20959   fi
20960 done
20961
20962 # For the awk script, D is an array of macro values keyed by name,
20963 # likewise P contains macro parameters if any.  Preserve backslash
20964 # newline sequences.
20965
20966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20967 sed -n '
20968 s/.\{148\}/&'"$ac_delim"'/g
20969 t rset
20970 :rset
20971 s/^[     ]*#[    ]*define[       ][      ]*/ /
20972 t def
20973 d
20974 :def
20975 s/\\$//
20976 t bsnl
20977 s/["\\]/\\&/g
20978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20979 D["\1"]=" \3"/p
20980 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20981 d
20982 :bsnl
20983 s/["\\]/\\&/g
20984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20985 D["\1"]=" \3\\\\\\n"\\/p
20986 t cont
20987 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20988 t cont
20989 d
20990 :cont
20991 n
20992 s/.\{148\}/&'"$ac_delim"'/g
20993 t clear
20994 :clear
20995 s/\\$//
20996 t bsnlc
20997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20998 d
20999 :bsnlc
21000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21001 b cont
21002 ' <confdefs.h | sed '
21003 s/'"$ac_delim"'/"\\\
21004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21005
21006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21007   for (key in D) D_is_set[key] = 1
21008   FS = "\a"
21009 }
21010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21011   line = \$ 0
21012   split(line, arg, " ")
21013   if (arg[1] == "#") {
21014     defundef = arg[2]
21015     mac1 = arg[3]
21016   } else {
21017     defundef = substr(arg[1], 2)
21018     mac1 = arg[2]
21019   }
21020   split(mac1, mac2, "(") #)
21021   macro = mac2[1]
21022   prefix = substr(line, 1, index(line, defundef) - 1)
21023   if (D_is_set[macro]) {
21024     # Preserve the white space surrounding the "#".
21025     print prefix "define", macro P[macro] D[macro]
21026     next
21027   } else {
21028     # Replace #undef with comments.  This is necessary, for example,
21029     # in the case of _POSIX_SOURCE, which is predefined and required
21030     # on some systems where configure will not decide to define it.
21031     if (defundef == "undef") {
21032       print "/*", prefix defundef, macro, "*/"
21033       next
21034     }
21035   }
21036 }
21037 { print }
21038 _ACAWK
21039 _ACEOF
21040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041   as_fn_error "could not setup config headers machinery" "$LINENO" 5
21042 fi # test -n "$CONFIG_HEADERS"
21043
21044
21045 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
21046 shift
21047 for ac_tag
21048 do
21049   case $ac_tag in
21050   :[FHLC]) ac_mode=$ac_tag; continue;;
21051   esac
21052   case $ac_mode$ac_tag in
21053   :[FHL]*:*);;
21054   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21055   :[FH]-) ac_tag=-:-;;
21056   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21057   esac
21058   ac_save_IFS=$IFS
21059   IFS=:
21060   set x $ac_tag
21061   IFS=$ac_save_IFS
21062   shift
21063   ac_file=$1
21064   shift
21065
21066   case $ac_mode in
21067   :L) ac_source=$1;;
21068   :[FH])
21069     ac_file_inputs=
21070     for ac_f
21071     do
21072       case $ac_f in
21073       -) ac_f="$tmp/stdin";;
21074       *) # Look for the file first in the build tree, then in the source tree
21075          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21076          # because $ac_f cannot contain `:'.
21077          test -f "$ac_f" ||
21078            case $ac_f in
21079            [\\/$]*) false;;
21080            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21081            esac ||
21082            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21083       esac
21084       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21085       as_fn_append ac_file_inputs " '$ac_f'"
21086     done
21087
21088     # Let's still pretend it is `configure' which instantiates (i.e., don't
21089     # use $as_me), people would be surprised to read:
21090     #    /* config.h.  Generated by config.status.  */
21091     configure_input='Generated from '`
21092           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21093         `' by configure.'
21094     if test x"$ac_file" != x-; then
21095       configure_input="$ac_file.  $configure_input"
21096       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21097 $as_echo "$as_me: creating $ac_file" >&6;}
21098     fi
21099     # Neutralize special characters interpreted by sed in replacement strings.
21100     case $configure_input in #(
21101     *\&* | *\|* | *\\* )
21102        ac_sed_conf_input=`$as_echo "$configure_input" |
21103        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21104     *) ac_sed_conf_input=$configure_input;;
21105     esac
21106
21107     case $ac_tag in
21108     *:-:* | *:-) cat >"$tmp/stdin" \
21109       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21110     esac
21111     ;;
21112   esac
21113
21114   ac_dir=`$as_dirname -- "$ac_file" ||
21115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116          X"$ac_file" : 'X\(//\)[^/]' \| \
21117          X"$ac_file" : 'X\(//\)$' \| \
21118          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21119 $as_echo X"$ac_file" |
21120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21121             s//\1/
21122             q
21123           }
21124           /^X\(\/\/\)[^/].*/{
21125             s//\1/
21126             q
21127           }
21128           /^X\(\/\/\)$/{
21129             s//\1/
21130             q
21131           }
21132           /^X\(\/\).*/{
21133             s//\1/
21134             q
21135           }
21136           s/.*/./; q'`
21137   as_dir="$ac_dir"; as_fn_mkdir_p
21138   ac_builddir=.
21139
21140 case "$ac_dir" in
21141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21142 *)
21143   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21144   # A ".." for each directory in $ac_dir_suffix.
21145   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21146   case $ac_top_builddir_sub in
21147   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21148   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21149   esac ;;
21150 esac
21151 ac_abs_top_builddir=$ac_pwd
21152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21153 # for backward compatibility:
21154 ac_top_builddir=$ac_top_build_prefix
21155
21156 case $srcdir in
21157   .)  # We are building in place.
21158     ac_srcdir=.
21159     ac_top_srcdir=$ac_top_builddir_sub
21160     ac_abs_top_srcdir=$ac_pwd ;;
21161   [\\/]* | ?:[\\/]* )  # Absolute name.
21162     ac_srcdir=$srcdir$ac_dir_suffix;
21163     ac_top_srcdir=$srcdir
21164     ac_abs_top_srcdir=$srcdir ;;
21165   *) # Relative name.
21166     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21167     ac_top_srcdir=$ac_top_build_prefix$srcdir
21168     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21169 esac
21170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21171
21172
21173   case $ac_mode in
21174   :F)
21175   #
21176   # CONFIG_FILE
21177   #
21178
21179   case $INSTALL in
21180   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21181   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21182   esac
21183   ac_MKDIR_P=$MKDIR_P
21184   case $MKDIR_P in
21185   [\\/$]* | ?:[\\/]* ) ;;
21186   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21187   esac
21188 _ACEOF
21189
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191 # If the template does not know about datarootdir, expand it.
21192 # FIXME: This hack should be removed a few years after 2.60.
21193 ac_datarootdir_hack=; ac_datarootdir_seen=
21194 ac_sed_dataroot='
21195 /datarootdir/ {
21196   p
21197   q
21198 }
21199 /@datadir@/p
21200 /@docdir@/p
21201 /@infodir@/p
21202 /@localedir@/p
21203 /@mandir@/p'
21204 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21205 *datarootdir*) ac_datarootdir_seen=yes;;
21206 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21207   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21208 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21209 _ACEOF
21210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21211   ac_datarootdir_hack='
21212   s&@datadir@&$datadir&g
21213   s&@docdir@&$docdir&g
21214   s&@infodir@&$infodir&g
21215   s&@localedir@&$localedir&g
21216   s&@mandir@&$mandir&g
21217   s&\\\${datarootdir}&$datarootdir&g' ;;
21218 esac
21219 _ACEOF
21220
21221 # Neutralize VPATH when `$srcdir' = `.'.
21222 # Shell code in configure.ac might set extrasub.
21223 # FIXME: do we really want to maintain this feature?
21224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21225 ac_sed_extra="$ac_vpsub
21226 $extrasub
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21229 :t
21230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21231 s|@configure_input@|$ac_sed_conf_input|;t t
21232 s&@top_builddir@&$ac_top_builddir_sub&;t t
21233 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21234 s&@srcdir@&$ac_srcdir&;t t
21235 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21236 s&@top_srcdir@&$ac_top_srcdir&;t t
21237 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21238 s&@builddir@&$ac_builddir&;t t
21239 s&@abs_builddir@&$ac_abs_builddir&;t t
21240 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21241 s&@INSTALL@&$ac_INSTALL&;t t
21242 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21243 $ac_datarootdir_hack
21244 "
21245 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21246   || as_fn_error "could not create $ac_file" "$LINENO" 5
21247
21248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21249   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21250   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21251   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21252 which seems to be undefined.  Please make sure it is defined." >&5
21253 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21254 which seems to be undefined.  Please make sure it is defined." >&2;}
21255
21256   rm -f "$tmp/stdin"
21257   case $ac_file in
21258   -) cat "$tmp/out" && rm -f "$tmp/out";;
21259   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21260   esac \
21261   || as_fn_error "could not create $ac_file" "$LINENO" 5
21262  ;;
21263   :H)
21264   #
21265   # CONFIG_HEADER
21266   #
21267   if test x"$ac_file" != x-; then
21268     {
21269       $as_echo "/* $configure_input  */" \
21270       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21271     } >"$tmp/config.h" \
21272       || as_fn_error "could not create $ac_file" "$LINENO" 5
21273     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21274       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21275 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21276     else
21277       rm -f "$ac_file"
21278       mv "$tmp/config.h" "$ac_file" \
21279         || as_fn_error "could not create $ac_file" "$LINENO" 5
21280     fi
21281   else
21282     $as_echo "/* $configure_input  */" \
21283       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21284       || as_fn_error "could not create -" "$LINENO" 5
21285   fi
21286 # Compute "$ac_file"'s index in $config_headers.
21287 _am_arg="$ac_file"
21288 _am_stamp_count=1
21289 for _am_header in $config_headers :; do
21290   case $_am_header in
21291     $_am_arg | $_am_arg:* )
21292       break ;;
21293     * )
21294       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21295   esac
21296 done
21297 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21298 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299          X"$_am_arg" : 'X\(//\)[^/]' \| \
21300          X"$_am_arg" : 'X\(//\)$' \| \
21301          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21302 $as_echo X"$_am_arg" |
21303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21304             s//\1/
21305             q
21306           }
21307           /^X\(\/\/\)[^/].*/{
21308             s//\1/
21309             q
21310           }
21311           /^X\(\/\/\)$/{
21312             s//\1/
21313             q
21314           }
21315           /^X\(\/\).*/{
21316             s//\1/
21317             q
21318           }
21319           s/.*/./; q'`/stamp-h$_am_stamp_count
21320  ;;
21321   :L)
21322   #
21323   # CONFIG_LINK
21324   #
21325
21326   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21327     :
21328   else
21329     # Prefer the file from the source tree if names are identical.
21330     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21331       ac_source=$srcdir/$ac_source
21332     fi
21333
21334     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21335 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21336
21337     if test ! -r "$ac_source"; then
21338       as_fn_error "$ac_source: file not found" "$LINENO" 5
21339     fi
21340     rm -f "$ac_file"
21341
21342     # Try a relative symlink, then a hard link, then a copy.
21343     case $srcdir in
21344     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21345         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21346     esac
21347     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21348       ln "$ac_source" "$ac_file" 2>/dev/null ||
21349       cp -p "$ac_source" "$ac_file" ||
21350       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21351   fi
21352  ;;
21353   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21354 $as_echo "$as_me: executing $ac_file commands" >&6;}
21355  ;;
21356   esac
21357
21358
21359   case $ac_file$ac_mode in
21360     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21361   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21362   # are listed without --file.  Let's play safe and only enable the eval
21363   # if we detect the quoting.
21364   case $CONFIG_FILES in
21365   *\'*) eval set x "$CONFIG_FILES" ;;
21366   *)   set x $CONFIG_FILES ;;
21367   esac
21368   shift
21369   for mf
21370   do
21371     # Strip MF so we end up with the name of the file.
21372     mf=`echo "$mf" | sed -e 's/:.*$//'`
21373     # Check whether this is an Automake generated Makefile or not.
21374     # We used to match only the files named `Makefile.in', but
21375     # some people rename them; so instead we look at the file content.
21376     # Grep'ing the first line is not enough: some people post-process
21377     # each Makefile.in and add a new line on top of each file to say so.
21378     # Grep'ing the whole file is not good either: AIX grep has a line
21379     # limit of 2048, but all sed's we know have understand at least 4000.
21380     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21381       dirpart=`$as_dirname -- "$mf" ||
21382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383          X"$mf" : 'X\(//\)[^/]' \| \
21384          X"$mf" : 'X\(//\)$' \| \
21385          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21386 $as_echo X"$mf" |
21387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21388             s//\1/
21389             q
21390           }
21391           /^X\(\/\/\)[^/].*/{
21392             s//\1/
21393             q
21394           }
21395           /^X\(\/\/\)$/{
21396             s//\1/
21397             q
21398           }
21399           /^X\(\/\).*/{
21400             s//\1/
21401             q
21402           }
21403           s/.*/./; q'`
21404     else
21405       continue
21406     fi
21407     # Extract the definition of DEPDIR, am__include, and am__quote
21408     # from the Makefile without running `make'.
21409     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21410     test -z "$DEPDIR" && continue
21411     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21412     test -z "am__include" && continue
21413     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21414     # When using ansi2knr, U may be empty or an underscore; expand it
21415     U=`sed -n 's/^U = //p' < "$mf"`
21416     # Find all dependency output files, they are included files with
21417     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21418     # simplest approach to changing $(DEPDIR) to its actual value in the
21419     # expansion.
21420     for file in `sed -n "
21421       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21422          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21423       # Make sure the directory exists.
21424       test -f "$dirpart/$file" && continue
21425       fdir=`$as_dirname -- "$file" ||
21426 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21427          X"$file" : 'X\(//\)[^/]' \| \
21428          X"$file" : 'X\(//\)$' \| \
21429          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21430 $as_echo X"$file" |
21431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21432             s//\1/
21433             q
21434           }
21435           /^X\(\/\/\)[^/].*/{
21436             s//\1/
21437             q
21438           }
21439           /^X\(\/\/\)$/{
21440             s//\1/
21441             q
21442           }
21443           /^X\(\/\).*/{
21444             s//\1/
21445             q
21446           }
21447           s/.*/./; q'`
21448       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21449       # echo "creating $dirpart/$file"
21450       echo '# dummy' > "$dirpart/$file"
21451     done
21452   done
21453 }
21454  ;;
21455
21456   esac
21457 done # for ac_tag
21458
21459
21460 as_fn_exit 0
21461 _ACEOF
21462 ac_clean_files=$ac_clean_files_save
21463
21464 test $ac_write_fail = 0 ||
21465   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21466
21467
21468 # configure is writing to config.log, and then calls config.status.
21469 # config.status does its own redirection, appending to config.log.
21470 # Unfortunately, on DOS this fails, as config.log is still kept open
21471 # by configure, so config.status won't be able to write to it; its
21472 # output is simply discarded.  So we exec the FD to /dev/null,
21473 # effectively closing config.log, so it can be properly (re)opened and
21474 # appended to by config.status.  When coming back to configure, we
21475 # need to make the FD available again.
21476 if test "$no_create" != yes; then
21477   ac_cs_success=:
21478   ac_config_status_args=
21479   test "$silent" = yes &&
21480     ac_config_status_args="$ac_config_status_args --quiet"
21481   exec 5>/dev/null
21482   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21483   exec 5>>config.log
21484   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21485   # would make configure fail if this is the last instruction.
21486   $ac_cs_success || as_fn_exit $?
21487 fi
21488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21489   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21490 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21491 fi
21492