Import the "dirfd" gnulib module.
[platform/upstream/binutils.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_header_list=
592 gl_fnmatch_required=POSIX
593 ac_func_list=
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
663 NEXT_TIME_H
664 REPLACE_TIMEGM
665 REPLACE_NANOSLEEP
666 REPLACE_MKTIME
667 REPLACE_LOCALTIME_R
668 HAVE_TIMEGM
669 HAVE_STRPTIME
670 HAVE_NANOSLEEP
671 HAVE_DECL_LOCALTIME_R
672 GNULIB_TIME_R
673 GNULIB_TIMEGM
674 GNULIB_STRPTIME
675 GNULIB_NANOSLEEP
676 GNULIB_MKTIME
677 WINDOWS_64_BIT_OFF_T
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679 NEXT_SYS_TYPES_H
680 MKDIR_P
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 REPLACE_UTIMENSAT
685 REPLACE_STAT
686 REPLACE_MKNOD
687 REPLACE_MKFIFO
688 REPLACE_MKDIR
689 REPLACE_LSTAT
690 REPLACE_FUTIMENS
691 REPLACE_FSTATAT
692 REPLACE_FSTAT
693 HAVE_UTIMENSAT
694 HAVE_MKNODAT
695 HAVE_MKNOD
696 HAVE_MKFIFOAT
697 HAVE_MKFIFO
698 HAVE_MKDIRAT
699 HAVE_LSTAT
700 HAVE_LCHMOD
701 HAVE_FUTIMENS
702 HAVE_FSTATAT
703 HAVE_FCHMODAT
704 GNULIB_UTIMENSAT
705 GNULIB_STAT
706 GNULIB_MKNODAT
707 GNULIB_MKNOD
708 GNULIB_MKFIFOAT
709 GNULIB_MKFIFO
710 GNULIB_MKDIRAT
711 GNULIB_LSTAT
712 GNULIB_LCHMOD
713 GNULIB_FUTIMENS
714 GNULIB_FSTATAT
715 GNULIB_FSTAT
716 GNULIB_FCHMODAT
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
718 NEXT_STRING_H
719 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
720 NEXT_STDDEF_H
721 GL_GENERATE_STDDEF_H_FALSE
722 GL_GENERATE_STDDEF_H_TRUE
723 STDDEF_H
724 HAVE_WCHAR_T
725 REPLACE_NULL
726 HAVE__BOOL
727 GL_GENERATE_STDBOOL_H_FALSE
728 GL_GENERATE_STDBOOL_H_TRUE
729 STDBOOL_H
730 UNDEFINE_STRTOK_R
731 REPLACE_STRTOK_R
732 REPLACE_STRSIGNAL
733 REPLACE_STRNLEN
734 REPLACE_STRNDUP
735 REPLACE_STRNCAT
736 REPLACE_STRERROR_R
737 REPLACE_STRERROR
738 REPLACE_STRCHRNUL
739 REPLACE_STRCASESTR
740 REPLACE_STRSTR
741 REPLACE_STRDUP
742 REPLACE_STPNCPY
743 REPLACE_MEMMEM
744 REPLACE_MEMCHR
745 HAVE_STRVERSCMP
746 HAVE_DECL_STRSIGNAL
747 HAVE_DECL_STRERROR_R
748 HAVE_DECL_STRTOK_R
749 HAVE_STRCASESTR
750 HAVE_STRSEP
751 HAVE_STRPBRK
752 HAVE_DECL_STRNLEN
753 HAVE_DECL_STRNDUP
754 HAVE_DECL_STRDUP
755 HAVE_STRCHRNUL
756 HAVE_STPNCPY
757 HAVE_STPCPY
758 HAVE_RAWMEMCHR
759 HAVE_DECL_MEMRCHR
760 HAVE_MEMPCPY
761 HAVE_DECL_MEMMEM
762 HAVE_MEMCHR
763 HAVE_FFSLL
764 HAVE_FFSL
765 HAVE_MBSLEN
766 GNULIB_STRVERSCMP
767 GNULIB_STRSIGNAL
768 GNULIB_STRERROR_R
769 GNULIB_STRERROR
770 GNULIB_MBSTOK_R
771 GNULIB_MBSSEP
772 GNULIB_MBSSPN
773 GNULIB_MBSPBRK
774 GNULIB_MBSCSPN
775 GNULIB_MBSCASESTR
776 GNULIB_MBSPCASECMP
777 GNULIB_MBSNCASECMP
778 GNULIB_MBSCASECMP
779 GNULIB_MBSSTR
780 GNULIB_MBSRCHR
781 GNULIB_MBSCHR
782 GNULIB_MBSNLEN
783 GNULIB_MBSLEN
784 GNULIB_STRTOK_R
785 GNULIB_STRCASESTR
786 GNULIB_STRSTR
787 GNULIB_STRSEP
788 GNULIB_STRPBRK
789 GNULIB_STRNLEN
790 GNULIB_STRNDUP
791 GNULIB_STRNCAT
792 GNULIB_STRDUP
793 GNULIB_STRCHRNUL
794 GNULIB_STPNCPY
795 GNULIB_STPCPY
796 GNULIB_RAWMEMCHR
797 GNULIB_MEMRCHR
798 GNULIB_MEMPCPY
799 GNULIB_MEMMEM
800 GNULIB_MEMCHR
801 GNULIB_FFSLL
802 GNULIB_FFSL
803 LOCALE_FR
804 LOCALE_FR_UTF8
805 LOCALE_ZH_CN
806 LOCALE_JA
807 REPLACE_WCSWIDTH
808 REPLACE_WCWIDTH
809 REPLACE_WCSNRTOMBS
810 REPLACE_WCSRTOMBS
811 REPLACE_WCRTOMB
812 REPLACE_MBSNRTOWCS
813 REPLACE_MBSRTOWCS
814 REPLACE_MBRLEN
815 REPLACE_MBRTOWC
816 REPLACE_MBSINIT
817 REPLACE_WCTOB
818 REPLACE_BTOWC
819 REPLACE_MBSTATE_T
820 HAVE_DECL_WCWIDTH
821 HAVE_DECL_WCTOB
822 HAVE_WCSWIDTH
823 HAVE_WCSTOK
824 HAVE_WCSSTR
825 HAVE_WCSPBRK
826 HAVE_WCSSPN
827 HAVE_WCSCSPN
828 HAVE_WCSRCHR
829 HAVE_WCSCHR
830 HAVE_WCSDUP
831 HAVE_WCSXFRM
832 HAVE_WCSCOLL
833 HAVE_WCSNCASECMP
834 HAVE_WCSCASECMP
835 HAVE_WCSNCMP
836 HAVE_WCSCMP
837 HAVE_WCSNCAT
838 HAVE_WCSCAT
839 HAVE_WCPNCPY
840 HAVE_WCSNCPY
841 HAVE_WCPCPY
842 HAVE_WCSCPY
843 HAVE_WCSNLEN
844 HAVE_WCSLEN
845 HAVE_WMEMSET
846 HAVE_WMEMMOVE
847 HAVE_WMEMCPY
848 HAVE_WMEMCMP
849 HAVE_WMEMCHR
850 HAVE_WCSNRTOMBS
851 HAVE_WCSRTOMBS
852 HAVE_WCRTOMB
853 HAVE_MBSNRTOWCS
854 HAVE_MBSRTOWCS
855 HAVE_MBRLEN
856 HAVE_MBRTOWC
857 HAVE_MBSINIT
858 HAVE_BTOWC
859 GNULIB_WCSWIDTH
860 GNULIB_WCSTOK
861 GNULIB_WCSSTR
862 GNULIB_WCSPBRK
863 GNULIB_WCSSPN
864 GNULIB_WCSCSPN
865 GNULIB_WCSRCHR
866 GNULIB_WCSCHR
867 GNULIB_WCSDUP
868 GNULIB_WCSXFRM
869 GNULIB_WCSCOLL
870 GNULIB_WCSNCASECMP
871 GNULIB_WCSCASECMP
872 GNULIB_WCSNCMP
873 GNULIB_WCSCMP
874 GNULIB_WCSNCAT
875 GNULIB_WCSCAT
876 GNULIB_WCPNCPY
877 GNULIB_WCSNCPY
878 GNULIB_WCPCPY
879 GNULIB_WCSCPY
880 GNULIB_WCSNLEN
881 GNULIB_WCSLEN
882 GNULIB_WMEMSET
883 GNULIB_WMEMMOVE
884 GNULIB_WMEMCPY
885 GNULIB_WMEMCMP
886 GNULIB_WMEMCHR
887 GNULIB_WCWIDTH
888 GNULIB_WCSNRTOMBS
889 GNULIB_WCSRTOMBS
890 GNULIB_WCRTOMB
891 GNULIB_MBSNRTOWCS
892 GNULIB_MBSRTOWCS
893 GNULIB_MBRLEN
894 GNULIB_MBRTOWC
895 GNULIB_MBSINIT
896 GNULIB_WCTOB
897 GNULIB_BTOWC
898 NEXT_AS_FIRST_DIRECTIVE_MATH_H
899 NEXT_MATH_H
900 LOCALCHARSET_TESTS_ENVIRONMENT
901 GLIBC21
902 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
903 NEXT_INTTYPES_H
904 UINT64_MAX_EQ_ULONG_MAX
905 UINT32_MAX_LT_UINTMAX_MAX
906 PRIPTR_PREFIX
907 PRI_MACROS_BROKEN
908 INT64_MAX_EQ_LONG_MAX
909 INT32_MAX_LT_INTMAX_MAX
910 REPLACE_STRTOIMAX
911 HAVE_DECL_STRTOUMAX
912 HAVE_DECL_STRTOIMAX
913 HAVE_DECL_IMAXDIV
914 HAVE_DECL_IMAXABS
915 GNULIB_STRTOUMAX
916 GNULIB_STRTOIMAX
917 GNULIB_IMAXDIV
918 GNULIB_IMAXABS
919 GL_GENERATE_STDINT_H_FALSE
920 GL_GENERATE_STDINT_H_TRUE
921 STDINT_H
922 WINT_T_SUFFIX
923 WCHAR_T_SUFFIX
924 SIG_ATOMIC_T_SUFFIX
925 SIZE_T_SUFFIX
926 PTRDIFF_T_SUFFIX
927 HAVE_SIGNED_WINT_T
928 HAVE_SIGNED_WCHAR_T
929 HAVE_SIGNED_SIG_ATOMIC_T
930 BITSIZEOF_WINT_T
931 BITSIZEOF_WCHAR_T
932 BITSIZEOF_SIG_ATOMIC_T
933 BITSIZEOF_SIZE_T
934 BITSIZEOF_PTRDIFF_T
935 APPLE_UNIVERSAL_BUILD
936 HAVE_SYS_BITYPES_H
937 HAVE_SYS_INTTYPES_H
938 HAVE_STDINT_H
939 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
940 NEXT_STDINT_H
941 HAVE_SYS_TYPES_H
942 HAVE_INTTYPES_H
943 HAVE_WCHAR_H
944 HAVE_UNSIGNED_LONG_LONG_INT
945 HAVE_LONG_LONG_INT
946 FREXPL_LIBM
947 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
948 FREXP_LIBM
949 REPLACE_TRUNCL
950 REPLACE_TRUNCF
951 REPLACE_TRUNC
952 REPLACE_SQRTL
953 REPLACE_SIGNBIT_USING_GCC
954 REPLACE_SIGNBIT
955 REPLACE_ROUNDL
956 REPLACE_ROUNDF
957 REPLACE_ROUND
958 REPLACE_REMAINDERL
959 REPLACE_REMAINDERF
960 REPLACE_REMAINDER
961 REPLACE_NAN
962 REPLACE_MODFL
963 REPLACE_MODFF
964 REPLACE_MODF
965 REPLACE_LOGBL
966 REPLACE_LOGBF
967 REPLACE_LOGB
968 REPLACE_LOG2L
969 REPLACE_LOG2F
970 REPLACE_LOG2
971 REPLACE_LOG1PL
972 REPLACE_LOG1PF
973 REPLACE_LOG1P
974 REPLACE_LOG10L
975 REPLACE_LOG10F
976 REPLACE_LOG10
977 REPLACE_LOGL
978 REPLACE_LOGF
979 REPLACE_LOG
980 REPLACE_LDEXPL
981 REPLACE_ISNAN
982 REPLACE_ISINF
983 REPLACE_ISFINITE
984 REPLACE_ILOGBF
985 REPLACE_ILOGB
986 REPLACE_HYPOTL
987 REPLACE_HYPOTF
988 REPLACE_HYPOT
989 REPLACE_HUGE_VAL
990 REPLACE_FREXPL
991 REPLACE_FREXP
992 REPLACE_FREXPF
993 REPLACE_FMODL
994 REPLACE_FMODF
995 REPLACE_FMOD
996 REPLACE_FMAL
997 REPLACE_FMAF
998 REPLACE_FMA
999 REPLACE_FLOORL
1000 REPLACE_FLOORF
1001 REPLACE_FLOOR
1002 REPLACE_FABSL
1003 REPLACE_EXP2L
1004 REPLACE_EXP2
1005 REPLACE_EXPM1F
1006 REPLACE_EXPM1
1007 REPLACE_CEILL
1008 REPLACE_CEILF
1009 REPLACE_CEIL
1010 REPLACE_CBRTL
1011 REPLACE_CBRTF
1012 HAVE_DECL_TRUNCL
1013 HAVE_DECL_TRUNCF
1014 HAVE_DECL_TRUNC
1015 HAVE_DECL_TANL
1016 HAVE_DECL_SQRTL
1017 HAVE_DECL_SINL
1018 HAVE_DECL_ROUNDL
1019 HAVE_DECL_ROUNDF
1020 HAVE_DECL_ROUND
1021 HAVE_DECL_RINTF
1022 HAVE_DECL_REMAINDERL
1023 HAVE_DECL_REMAINDER
1024 HAVE_DECL_LOGB
1025 HAVE_DECL_LOG2L
1026 HAVE_DECL_LOG2F
1027 HAVE_DECL_LOG2
1028 HAVE_DECL_LOG10L
1029 HAVE_DECL_LOGL
1030 HAVE_DECL_LDEXPL
1031 HAVE_DECL_FREXPL
1032 HAVE_DECL_FLOORL
1033 HAVE_DECL_FLOORF
1034 HAVE_DECL_EXPM1L
1035 HAVE_DECL_EXP2L
1036 HAVE_DECL_EXP2F
1037 HAVE_DECL_EXP2
1038 HAVE_DECL_EXPL
1039 HAVE_DECL_COSL
1040 HAVE_DECL_COPYSIGNF
1041 HAVE_DECL_CEILL
1042 HAVE_DECL_CEILF
1043 HAVE_DECL_CBRTL
1044 HAVE_DECL_CBRTF
1045 HAVE_DECL_ATANL
1046 HAVE_DECL_ASINL
1047 HAVE_DECL_ACOSL
1048 HAVE_TANHF
1049 HAVE_TANL
1050 HAVE_TANF
1051 HAVE_SQRTL
1052 HAVE_SQRTF
1053 HAVE_SINHF
1054 HAVE_SINL
1055 HAVE_SINF
1056 HAVE_RINTL
1057 HAVE_RINT
1058 HAVE_REMAINDERF
1059 HAVE_REMAINDER
1060 HAVE_POWF
1061 HAVE_MODFL
1062 HAVE_MODFF
1063 HAVE_LOGBL
1064 HAVE_LOGBF
1065 HAVE_LOG1PL
1066 HAVE_LOG1PF
1067 HAVE_LOG1P
1068 HAVE_LOG10L
1069 HAVE_LOG10F
1070 HAVE_LOGL
1071 HAVE_LOGF
1072 HAVE_LDEXPF
1073 HAVE_ISNANL
1074 HAVE_ISNAND
1075 HAVE_ISNANF
1076 HAVE_ILOGBL
1077 HAVE_ILOGBF
1078 HAVE_ILOGB
1079 HAVE_HYPOTL
1080 HAVE_HYPOTF
1081 HAVE_FREXPF
1082 HAVE_FMODL
1083 HAVE_FMODF
1084 HAVE_FMAL
1085 HAVE_FMAF
1086 HAVE_FMA
1087 HAVE_FABSL
1088 HAVE_FABSF
1089 HAVE_EXPM1F
1090 HAVE_EXPM1
1091 HAVE_EXPL
1092 HAVE_EXPF
1093 HAVE_COSHF
1094 HAVE_COSL
1095 HAVE_COSF
1096 HAVE_COPYSIGNL
1097 HAVE_COPYSIGN
1098 HAVE_CBRTL
1099 HAVE_CBRTF
1100 HAVE_CBRT
1101 HAVE_ATAN2F
1102 HAVE_ATANL
1103 HAVE_ATANF
1104 HAVE_ASINL
1105 HAVE_ASINF
1106 HAVE_ACOSL
1107 HAVE_ACOSF
1108 GNULIB_TRUNCL
1109 GNULIB_TRUNCF
1110 GNULIB_TRUNC
1111 GNULIB_TANHF
1112 GNULIB_TANL
1113 GNULIB_TANF
1114 GNULIB_SQRTL
1115 GNULIB_SQRTF
1116 GNULIB_SINHF
1117 GNULIB_SINL
1118 GNULIB_SINF
1119 GNULIB_SIGNBIT
1120 GNULIB_ROUNDL
1121 GNULIB_ROUNDF
1122 GNULIB_ROUND
1123 GNULIB_RINTL
1124 GNULIB_RINTF
1125 GNULIB_RINT
1126 GNULIB_REMAINDERL
1127 GNULIB_REMAINDERF
1128 GNULIB_REMAINDER
1129 GNULIB_POWF
1130 GNULIB_MODFL
1131 GNULIB_MODFF
1132 GNULIB_MODF
1133 GNULIB_LOGBL
1134 GNULIB_LOGBF
1135 GNULIB_LOGB
1136 GNULIB_LOG2L
1137 GNULIB_LOG2F
1138 GNULIB_LOG2
1139 GNULIB_LOG1PL
1140 GNULIB_LOG1PF
1141 GNULIB_LOG1P
1142 GNULIB_LOG10L
1143 GNULIB_LOG10F
1144 GNULIB_LOG10
1145 GNULIB_LOGL
1146 GNULIB_LOGF
1147 GNULIB_LOG
1148 GNULIB_LDEXPL
1149 GNULIB_LDEXPF
1150 GNULIB_ISNANL
1151 GNULIB_ISNAND
1152 GNULIB_ISNANF
1153 GNULIB_ISNAN
1154 GNULIB_ISINF
1155 GNULIB_ISFINITE
1156 GNULIB_ILOGBL
1157 GNULIB_ILOGBF
1158 GNULIB_ILOGB
1159 GNULIB_HYPOTL
1160 GNULIB_HYPOTF
1161 GNULIB_HYPOT
1162 GNULIB_FREXPL
1163 GNULIB_FREXP
1164 GNULIB_FREXPF
1165 GNULIB_FMODL
1166 GNULIB_FMODF
1167 GNULIB_FMOD
1168 GNULIB_FMAL
1169 GNULIB_FMAF
1170 GNULIB_FMA
1171 GNULIB_FLOORL
1172 GNULIB_FLOORF
1173 GNULIB_FLOOR
1174 GNULIB_FABSL
1175 GNULIB_FABSF
1176 GNULIB_EXPM1L
1177 GNULIB_EXPM1F
1178 GNULIB_EXPM1
1179 GNULIB_EXP2L
1180 GNULIB_EXP2F
1181 GNULIB_EXP2
1182 GNULIB_EXPL
1183 GNULIB_EXPF
1184 GNULIB_COSHF
1185 GNULIB_COSL
1186 GNULIB_COSF
1187 GNULIB_COPYSIGNL
1188 GNULIB_COPYSIGNF
1189 GNULIB_COPYSIGN
1190 GNULIB_CEILL
1191 GNULIB_CEILF
1192 GNULIB_CEIL
1193 GNULIB_CBRTL
1194 GNULIB_CBRTF
1195 GNULIB_CBRT
1196 GNULIB_ATAN2F
1197 GNULIB_ATANL
1198 GNULIB_ATANF
1199 GNULIB_ASINL
1200 GNULIB_ASINF
1201 GNULIB_ACOSL
1202 GNULIB_ACOSF
1203 GL_GENERATE_FNMATCH_H_FALSE
1204 GL_GENERATE_FNMATCH_H_TRUE
1205 FNMATCH_H
1206 REPLACE_ITOLD
1207 GL_GENERATE_FLOAT_H_FALSE
1208 GL_GENERATE_FLOAT_H_TRUE
1209 FLOAT_H
1210 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1211 NEXT_FLOAT_H
1212 EOVERFLOW_VALUE
1213 EOVERFLOW_HIDDEN
1214 ENOLINK_VALUE
1215 ENOLINK_HIDDEN
1216 EMULTIHOP_VALUE
1217 EMULTIHOP_HIDDEN
1218 GL_GENERATE_ERRNO_H_FALSE
1219 GL_GENERATE_ERRNO_H_TRUE
1220 ERRNO_H
1221 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1222 NEXT_ERRNO_H
1223 HAVE_DIRENT_H
1224 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1225 NEXT_DIRENT_H
1226 PRAGMA_COLUMNS
1227 PRAGMA_SYSTEM_HEADER
1228 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1229 INCLUDE_NEXT
1230 REPLACE_FDOPENDIR
1231 REPLACE_DIRFD
1232 REPLACE_CLOSEDIR
1233 REPLACE_OPENDIR
1234 HAVE_ALPHASORT
1235 HAVE_SCANDIR
1236 HAVE_FDOPENDIR
1237 HAVE_DECL_FDOPENDIR
1238 HAVE_DECL_DIRFD
1239 HAVE_CLOSEDIR
1240 HAVE_REWINDDIR
1241 HAVE_READDIR
1242 HAVE_OPENDIR
1243 GNULIB_ALPHASORT
1244 GNULIB_SCANDIR
1245 GNULIB_FDOPENDIR
1246 GNULIB_DIRFD
1247 GNULIB_CLOSEDIR
1248 GNULIB_REWINDDIR
1249 GNULIB_READDIR
1250 GNULIB_OPENDIR
1251 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1252 UNISTD_H_HAVE_WINSOCK2_H
1253 REPLACE_WRITE
1254 REPLACE_USLEEP
1255 REPLACE_UNLINKAT
1256 REPLACE_UNLINK
1257 REPLACE_TTYNAME_R
1258 REPLACE_SYMLINK
1259 REPLACE_SLEEP
1260 REPLACE_RMDIR
1261 REPLACE_READLINK
1262 REPLACE_READ
1263 REPLACE_PWRITE
1264 REPLACE_PREAD
1265 REPLACE_LSEEK
1266 REPLACE_LINKAT
1267 REPLACE_LINK
1268 REPLACE_LCHOWN
1269 REPLACE_ISATTY
1270 REPLACE_GETPAGESIZE
1271 REPLACE_GETGROUPS
1272 REPLACE_GETLOGIN_R
1273 REPLACE_GETDOMAINNAME
1274 REPLACE_GETCWD
1275 REPLACE_FTRUNCATE
1276 REPLACE_FCHOWNAT
1277 REPLACE_DUP2
1278 REPLACE_DUP
1279 REPLACE_CLOSE
1280 REPLACE_CHOWN
1281 HAVE_SYS_PARAM_H
1282 HAVE_OS_H
1283 HAVE_DECL_TTYNAME_R
1284 HAVE_DECL_SETHOSTNAME
1285 HAVE_DECL_GETUSERSHELL
1286 HAVE_DECL_GETPAGESIZE
1287 HAVE_DECL_GETLOGIN_R
1288 HAVE_DECL_GETDOMAINNAME
1289 HAVE_DECL_FDATASYNC
1290 HAVE_DECL_FCHDIR
1291 HAVE_DECL_ENVIRON
1292 HAVE_USLEEP
1293 HAVE_UNLINKAT
1294 HAVE_SYMLINKAT
1295 HAVE_SYMLINK
1296 HAVE_SLEEP
1297 HAVE_SETHOSTNAME
1298 HAVE_READLINKAT
1299 HAVE_READLINK
1300 HAVE_PWRITE
1301 HAVE_PREAD
1302 HAVE_PIPE2
1303 HAVE_PIPE
1304 HAVE_LINKAT
1305 HAVE_LINK
1306 HAVE_LCHOWN
1307 HAVE_GROUP_MEMBER
1308 HAVE_GETPAGESIZE
1309 HAVE_GETLOGIN
1310 HAVE_GETHOSTNAME
1311 HAVE_GETGROUPS
1312 HAVE_GETDTABLESIZE
1313 HAVE_FTRUNCATE
1314 HAVE_FSYNC
1315 HAVE_FDATASYNC
1316 HAVE_FCHOWNAT
1317 HAVE_FCHDIR
1318 HAVE_FACCESSAT
1319 HAVE_EUIDACCESS
1320 HAVE_DUP3
1321 HAVE_DUP2
1322 HAVE_CHOWN
1323 GNULIB_WRITE
1324 GNULIB_USLEEP
1325 GNULIB_UNLINKAT
1326 GNULIB_UNLINK
1327 GNULIB_UNISTD_H_SIGPIPE
1328 GNULIB_UNISTD_H_NONBLOCKING
1329 GNULIB_TTYNAME_R
1330 GNULIB_SYMLINKAT
1331 GNULIB_SYMLINK
1332 GNULIB_SLEEP
1333 GNULIB_SETHOSTNAME
1334 GNULIB_RMDIR
1335 GNULIB_READLINKAT
1336 GNULIB_READLINK
1337 GNULIB_READ
1338 GNULIB_PWRITE
1339 GNULIB_PREAD
1340 GNULIB_PIPE2
1341 GNULIB_PIPE
1342 GNULIB_LSEEK
1343 GNULIB_LINKAT
1344 GNULIB_LINK
1345 GNULIB_LCHOWN
1346 GNULIB_ISATTY
1347 GNULIB_GROUP_MEMBER
1348 GNULIB_GETUSERSHELL
1349 GNULIB_GETPAGESIZE
1350 GNULIB_GETLOGIN_R
1351 GNULIB_GETLOGIN
1352 GNULIB_GETHOSTNAME
1353 GNULIB_GETGROUPS
1354 GNULIB_GETDTABLESIZE
1355 GNULIB_GETDOMAINNAME
1356 GNULIB_GETCWD
1357 GNULIB_FTRUNCATE
1358 GNULIB_FSYNC
1359 GNULIB_FDATASYNC
1360 GNULIB_FCHOWNAT
1361 GNULIB_FCHDIR
1362 GNULIB_FACCESSAT
1363 GNULIB_EUIDACCESS
1364 GNULIB_ENVIRON
1365 GNULIB_DUP3
1366 GNULIB_DUP2
1367 GNULIB_DUP
1368 GNULIB_CLOSE
1369 GNULIB_CHOWN
1370 GNULIB_CHDIR
1371 pkglibexecdir
1372 lispdir
1373 GL_GENERATE_ALLOCA_H_FALSE
1374 GL_GENERATE_ALLOCA_H_TRUE
1375 ALLOCA_H
1376 ALLOCA
1377 GL_COND_LIBTOOL_FALSE
1378 GL_COND_LIBTOOL_TRUE
1379 target_os
1380 target_vendor
1381 target_cpu
1382 target
1383 RANLIB
1384 ARFLAGS
1385 AR
1386 EGREP
1387 GREP
1388 CPP
1389 host_os
1390 host_vendor
1391 host_cpu
1392 host
1393 build_os
1394 build_vendor
1395 build_cpu
1396 build
1397 OBJEXT
1398 EXEEXT
1399 ac_ct_CC
1400 CPPFLAGS
1401 LDFLAGS
1402 CFLAGS
1403 CC
1404 MAINT
1405 MAINTAINER_MODE_FALSE
1406 MAINTAINER_MODE_TRUE
1407 target_alias
1408 host_alias
1409 build_alias
1410 LIBS
1411 ECHO_T
1412 ECHO_N
1413 ECHO_C
1414 DEFS
1415 mandir
1416 localedir
1417 libdir
1418 psdir
1419 pdfdir
1420 dvidir
1421 htmldir
1422 infodir
1423 docdir
1424 oldincludedir
1425 includedir
1426 localstatedir
1427 sharedstatedir
1428 sysconfdir
1429 datadir
1430 datarootdir
1431 libexecdir
1432 sbindir
1433 bindir
1434 program_transform_name
1435 prefix
1436 exec_prefix
1437 PACKAGE_URL
1438 PACKAGE_BUGREPORT
1439 PACKAGE_STRING
1440 PACKAGE_VERSION
1441 PACKAGE_TARNAME
1442 PACKAGE_NAME
1443 PATH_SEPARATOR
1444 SHELL'
1445 ac_subst_files=''
1446 ac_user_opts='
1447 enable_option_checking
1448 enable_maintainer_mode
1449 enable_dependency_tracking
1450 '
1451       ac_precious_vars='build_alias
1452 host_alias
1453 target_alias
1454 CC
1455 CFLAGS
1456 LDFLAGS
1457 LIBS
1458 CPPFLAGS
1459 CPP'
1460
1461
1462 # Initialize some variables set by options.
1463 ac_init_help=
1464 ac_init_version=false
1465 ac_unrecognized_opts=
1466 ac_unrecognized_sep=
1467 # The variables have the same names as the options, with
1468 # dashes changed to underlines.
1469 cache_file=/dev/null
1470 exec_prefix=NONE
1471 no_create=
1472 no_recursion=
1473 prefix=NONE
1474 program_prefix=NONE
1475 program_suffix=NONE
1476 program_transform_name=s,x,x,
1477 silent=
1478 site=
1479 srcdir=
1480 verbose=
1481 x_includes=NONE
1482 x_libraries=NONE
1483
1484 # Installation directory options.
1485 # These are left unexpanded so users can "make install exec_prefix=/foo"
1486 # and all the variables that are supposed to be based on exec_prefix
1487 # by default will actually change.
1488 # Use braces instead of parens because sh, perl, etc. also accept them.
1489 # (The list follows the same order as the GNU Coding Standards.)
1490 bindir='${exec_prefix}/bin'
1491 sbindir='${exec_prefix}/sbin'
1492 libexecdir='${exec_prefix}/libexec'
1493 datarootdir='${prefix}/share'
1494 datadir='${datarootdir}'
1495 sysconfdir='${prefix}/etc'
1496 sharedstatedir='${prefix}/com'
1497 localstatedir='${prefix}/var'
1498 includedir='${prefix}/include'
1499 oldincludedir='/usr/include'
1500 docdir='${datarootdir}/doc/${PACKAGE}'
1501 infodir='${datarootdir}/info'
1502 htmldir='${docdir}'
1503 dvidir='${docdir}'
1504 pdfdir='${docdir}'
1505 psdir='${docdir}'
1506 libdir='${exec_prefix}/lib'
1507 localedir='${datarootdir}/locale'
1508 mandir='${datarootdir}/man'
1509
1510 ac_prev=
1511 ac_dashdash=
1512 for ac_option
1513 do
1514   # If the previous option needs an argument, assign it.
1515   if test -n "$ac_prev"; then
1516     eval $ac_prev=\$ac_option
1517     ac_prev=
1518     continue
1519   fi
1520
1521   case $ac_option in
1522   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1523   *)    ac_optarg=yes ;;
1524   esac
1525
1526   # Accept the important Cygnus configure options, so we can diagnose typos.
1527
1528   case $ac_dashdash$ac_option in
1529   --)
1530     ac_dashdash=yes ;;
1531
1532   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1533     ac_prev=bindir ;;
1534   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1535     bindir=$ac_optarg ;;
1536
1537   -build | --build | --buil | --bui | --bu)
1538     ac_prev=build_alias ;;
1539   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1540     build_alias=$ac_optarg ;;
1541
1542   -cache-file | --cache-file | --cache-fil | --cache-fi \
1543   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1544     ac_prev=cache_file ;;
1545   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1546   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1547     cache_file=$ac_optarg ;;
1548
1549   --config-cache | -C)
1550     cache_file=config.cache ;;
1551
1552   -datadir | --datadir | --datadi | --datad)
1553     ac_prev=datadir ;;
1554   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1555     datadir=$ac_optarg ;;
1556
1557   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1558   | --dataroo | --dataro | --datar)
1559     ac_prev=datarootdir ;;
1560   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1561   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1562     datarootdir=$ac_optarg ;;
1563
1564   -disable-* | --disable-*)
1565     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1566     # Reject names that are not valid shell variable names.
1567     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568       as_fn_error "invalid feature name: $ac_useropt"
1569     ac_useropt_orig=$ac_useropt
1570     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571     case $ac_user_opts in
1572       *"
1573 "enable_$ac_useropt"
1574 "*) ;;
1575       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1576          ac_unrecognized_sep=', ';;
1577     esac
1578     eval enable_$ac_useropt=no ;;
1579
1580   -docdir | --docdir | --docdi | --doc | --do)
1581     ac_prev=docdir ;;
1582   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1583     docdir=$ac_optarg ;;
1584
1585   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1586     ac_prev=dvidir ;;
1587   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1588     dvidir=$ac_optarg ;;
1589
1590   -enable-* | --enable-*)
1591     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1592     # Reject names that are not valid shell variable names.
1593     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1594       as_fn_error "invalid feature name: $ac_useropt"
1595     ac_useropt_orig=$ac_useropt
1596     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1597     case $ac_user_opts in
1598       *"
1599 "enable_$ac_useropt"
1600 "*) ;;
1601       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1602          ac_unrecognized_sep=', ';;
1603     esac
1604     eval enable_$ac_useropt=\$ac_optarg ;;
1605
1606   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1607   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1608   | --exec | --exe | --ex)
1609     ac_prev=exec_prefix ;;
1610   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1611   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1612   | --exec=* | --exe=* | --ex=*)
1613     exec_prefix=$ac_optarg ;;
1614
1615   -gas | --gas | --ga | --g)
1616     # Obsolete; use --with-gas.
1617     with_gas=yes ;;
1618
1619   -help | --help | --hel | --he | -h)
1620     ac_init_help=long ;;
1621   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1622     ac_init_help=recursive ;;
1623   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1624     ac_init_help=short ;;
1625
1626   -host | --host | --hos | --ho)
1627     ac_prev=host_alias ;;
1628   -host=* | --host=* | --hos=* | --ho=*)
1629     host_alias=$ac_optarg ;;
1630
1631   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1632     ac_prev=htmldir ;;
1633   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1634   | --ht=*)
1635     htmldir=$ac_optarg ;;
1636
1637   -includedir | --includedir | --includedi | --included | --include \
1638   | --includ | --inclu | --incl | --inc)
1639     ac_prev=includedir ;;
1640   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1641   | --includ=* | --inclu=* | --incl=* | --inc=*)
1642     includedir=$ac_optarg ;;
1643
1644   -infodir | --infodir | --infodi | --infod | --info | --inf)
1645     ac_prev=infodir ;;
1646   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1647     infodir=$ac_optarg ;;
1648
1649   -libdir | --libdir | --libdi | --libd)
1650     ac_prev=libdir ;;
1651   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1652     libdir=$ac_optarg ;;
1653
1654   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1655   | --libexe | --libex | --libe)
1656     ac_prev=libexecdir ;;
1657   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1658   | --libexe=* | --libex=* | --libe=*)
1659     libexecdir=$ac_optarg ;;
1660
1661   -localedir | --localedir | --localedi | --localed | --locale)
1662     ac_prev=localedir ;;
1663   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1664     localedir=$ac_optarg ;;
1665
1666   -localstatedir | --localstatedir | --localstatedi | --localstated \
1667   | --localstate | --localstat | --localsta | --localst | --locals)
1668     ac_prev=localstatedir ;;
1669   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1670   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1671     localstatedir=$ac_optarg ;;
1672
1673   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1674     ac_prev=mandir ;;
1675   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1676     mandir=$ac_optarg ;;
1677
1678   -nfp | --nfp | --nf)
1679     # Obsolete; use --without-fp.
1680     with_fp=no ;;
1681
1682   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1683   | --no-cr | --no-c | -n)
1684     no_create=yes ;;
1685
1686   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1687   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1688     no_recursion=yes ;;
1689
1690   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1691   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1692   | --oldin | --oldi | --old | --ol | --o)
1693     ac_prev=oldincludedir ;;
1694   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1695   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1696   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1697     oldincludedir=$ac_optarg ;;
1698
1699   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1700     ac_prev=prefix ;;
1701   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1702     prefix=$ac_optarg ;;
1703
1704   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1705   | --program-pre | --program-pr | --program-p)
1706     ac_prev=program_prefix ;;
1707   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1708   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1709     program_prefix=$ac_optarg ;;
1710
1711   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1712   | --program-suf | --program-su | --program-s)
1713     ac_prev=program_suffix ;;
1714   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1715   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1716     program_suffix=$ac_optarg ;;
1717
1718   -program-transform-name | --program-transform-name \
1719   | --program-transform-nam | --program-transform-na \
1720   | --program-transform-n | --program-transform- \
1721   | --program-transform | --program-transfor \
1722   | --program-transfo | --program-transf \
1723   | --program-trans | --program-tran \
1724   | --progr-tra | --program-tr | --program-t)
1725     ac_prev=program_transform_name ;;
1726   -program-transform-name=* | --program-transform-name=* \
1727   | --program-transform-nam=* | --program-transform-na=* \
1728   | --program-transform-n=* | --program-transform-=* \
1729   | --program-transform=* | --program-transfor=* \
1730   | --program-transfo=* | --program-transf=* \
1731   | --program-trans=* | --program-tran=* \
1732   | --progr-tra=* | --program-tr=* | --program-t=*)
1733     program_transform_name=$ac_optarg ;;
1734
1735   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1736     ac_prev=pdfdir ;;
1737   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1738     pdfdir=$ac_optarg ;;
1739
1740   -psdir | --psdir | --psdi | --psd | --ps)
1741     ac_prev=psdir ;;
1742   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1743     psdir=$ac_optarg ;;
1744
1745   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746   | -silent | --silent | --silen | --sile | --sil)
1747     silent=yes ;;
1748
1749   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1750     ac_prev=sbindir ;;
1751   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1752   | --sbi=* | --sb=*)
1753     sbindir=$ac_optarg ;;
1754
1755   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1756   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1757   | --sharedst | --shareds | --shared | --share | --shar \
1758   | --sha | --sh)
1759     ac_prev=sharedstatedir ;;
1760   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1761   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1762   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1763   | --sha=* | --sh=*)
1764     sharedstatedir=$ac_optarg ;;
1765
1766   -site | --site | --sit)
1767     ac_prev=site ;;
1768   -site=* | --site=* | --sit=*)
1769     site=$ac_optarg ;;
1770
1771   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1772     ac_prev=srcdir ;;
1773   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1774     srcdir=$ac_optarg ;;
1775
1776   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1777   | --syscon | --sysco | --sysc | --sys | --sy)
1778     ac_prev=sysconfdir ;;
1779   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1780   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1781     sysconfdir=$ac_optarg ;;
1782
1783   -target | --target | --targe | --targ | --tar | --ta | --t)
1784     ac_prev=target_alias ;;
1785   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1786     target_alias=$ac_optarg ;;
1787
1788   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1789     verbose=yes ;;
1790
1791   -version | --version | --versio | --versi | --vers | -V)
1792     ac_init_version=: ;;
1793
1794   -with-* | --with-*)
1795     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1796     # Reject names that are not valid shell variable names.
1797     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1798       as_fn_error "invalid package name: $ac_useropt"
1799     ac_useropt_orig=$ac_useropt
1800     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801     case $ac_user_opts in
1802       *"
1803 "with_$ac_useropt"
1804 "*) ;;
1805       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1806          ac_unrecognized_sep=', ';;
1807     esac
1808     eval with_$ac_useropt=\$ac_optarg ;;
1809
1810   -without-* | --without-*)
1811     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1812     # Reject names that are not valid shell variable names.
1813     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1814       as_fn_error "invalid package name: $ac_useropt"
1815     ac_useropt_orig=$ac_useropt
1816     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1817     case $ac_user_opts in
1818       *"
1819 "with_$ac_useropt"
1820 "*) ;;
1821       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1822          ac_unrecognized_sep=', ';;
1823     esac
1824     eval with_$ac_useropt=no ;;
1825
1826   --x)
1827     # Obsolete; use --with-x.
1828     with_x=yes ;;
1829
1830   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1831   | --x-incl | --x-inc | --x-in | --x-i)
1832     ac_prev=x_includes ;;
1833   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1834   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1835     x_includes=$ac_optarg ;;
1836
1837   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1838   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1839     ac_prev=x_libraries ;;
1840   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1841   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1842     x_libraries=$ac_optarg ;;
1843
1844   -*) as_fn_error "unrecognized option: \`$ac_option'
1845 Try \`$0 --help' for more information."
1846     ;;
1847
1848   *=*)
1849     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1850     # Reject names that are not valid shell variable names.
1851     case $ac_envvar in #(
1852       '' | [0-9]* | *[!_$as_cr_alnum]* )
1853       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1854     esac
1855     eval $ac_envvar=\$ac_optarg
1856     export $ac_envvar ;;
1857
1858   *)
1859     # FIXME: should be removed in autoconf 3.0.
1860     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1861     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1862       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1863     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1864     ;;
1865
1866   esac
1867 done
1868
1869 if test -n "$ac_prev"; then
1870   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1871   as_fn_error "missing argument to $ac_option"
1872 fi
1873
1874 if test -n "$ac_unrecognized_opts"; then
1875   case $enable_option_checking in
1876     no) ;;
1877     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1878     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1879   esac
1880 fi
1881
1882 # Check all directory arguments for consistency.
1883 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1884                 datadir sysconfdir sharedstatedir localstatedir includedir \
1885                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1886                 libdir localedir mandir
1887 do
1888   eval ac_val=\$$ac_var
1889   # Remove trailing slashes.
1890   case $ac_val in
1891     */ )
1892       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1893       eval $ac_var=\$ac_val;;
1894   esac
1895   # Be sure to have absolute directory names.
1896   case $ac_val in
1897     [\\/$]* | ?:[\\/]* )  continue;;
1898     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1899   esac
1900   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1901 done
1902
1903 # There might be people who depend on the old broken behavior: `$host'
1904 # used to hold the argument of --host etc.
1905 # FIXME: To remove some day.
1906 build=$build_alias
1907 host=$host_alias
1908 target=$target_alias
1909
1910 # FIXME: To remove some day.
1911 if test "x$host_alias" != x; then
1912   if test "x$build_alias" = x; then
1913     cross_compiling=maybe
1914     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1915     If a cross compiler is detected then cross compile mode will be used." >&2
1916   elif test "x$build_alias" != "x$host_alias"; then
1917     cross_compiling=yes
1918   fi
1919 fi
1920
1921 ac_tool_prefix=
1922 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1923
1924 test "$silent" = yes && exec 6>/dev/null
1925
1926
1927 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1928 ac_ls_di=`ls -di .` &&
1929 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1930   as_fn_error "working directory cannot be determined"
1931 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1932   as_fn_error "pwd does not report name of working directory"
1933
1934
1935 # Find the source files, if location was not specified.
1936 if test -z "$srcdir"; then
1937   ac_srcdir_defaulted=yes
1938   # Try the directory containing this script, then the parent directory.
1939   ac_confdir=`$as_dirname -- "$as_myself" ||
1940 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1941          X"$as_myself" : 'X\(//\)[^/]' \| \
1942          X"$as_myself" : 'X\(//\)$' \| \
1943          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1944 $as_echo X"$as_myself" |
1945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1946             s//\1/
1947             q
1948           }
1949           /^X\(\/\/\)[^/].*/{
1950             s//\1/
1951             q
1952           }
1953           /^X\(\/\/\)$/{
1954             s//\1/
1955             q
1956           }
1957           /^X\(\/\).*/{
1958             s//\1/
1959             q
1960           }
1961           s/.*/./; q'`
1962   srcdir=$ac_confdir
1963   if test ! -r "$srcdir/$ac_unique_file"; then
1964     srcdir=..
1965   fi
1966 else
1967   ac_srcdir_defaulted=no
1968 fi
1969 if test ! -r "$srcdir/$ac_unique_file"; then
1970   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1971   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1972 fi
1973 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1974 ac_abs_confdir=`(
1975         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1976         pwd)`
1977 # When building in place, set srcdir=.
1978 if test "$ac_abs_confdir" = "$ac_pwd"; then
1979   srcdir=.
1980 fi
1981 # Remove unnecessary trailing slashes from srcdir.
1982 # Double slashes in file names in object file debugging info
1983 # mess up M-x gdb in Emacs.
1984 case $srcdir in
1985 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1986 esac
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1989   eval ac_env_${ac_var}_value=\$${ac_var}
1990   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1991   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1992 done
1993
1994 #
1995 # Report the --help message.
1996 #
1997 if test "$ac_init_help" = "long"; then
1998   # Omit some internal or obsolete options to make the list less imposing.
1999   # This message is too long to be a string in the A/UX 3.1 sh.
2000   cat <<_ACEOF
2001 \`configure' configures this package to adapt to many kinds of systems.
2002
2003 Usage: $0 [OPTION]... [VAR=VALUE]...
2004
2005 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2006 VAR=VALUE.  See below for descriptions of some of the useful variables.
2007
2008 Defaults for the options are specified in brackets.
2009
2010 Configuration:
2011   -h, --help              display this help and exit
2012       --help=short        display options specific to this package
2013       --help=recursive    display the short help of all the included packages
2014   -V, --version           display version information and exit
2015   -q, --quiet, --silent   do not print \`checking...' messages
2016       --cache-file=FILE   cache test results in FILE [disabled]
2017   -C, --config-cache      alias for \`--cache-file=config.cache'
2018   -n, --no-create         do not create output files
2019       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2020
2021 Installation directories:
2022   --prefix=PREFIX         install architecture-independent files in PREFIX
2023                           [$ac_default_prefix]
2024   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2025                           [PREFIX]
2026
2027 By default, \`make install' will install all the files in
2028 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2029 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2030 for instance \`--prefix=\$HOME'.
2031
2032 For better control, use the options below.
2033
2034 Fine tuning of the installation directories:
2035   --bindir=DIR            user executables [EPREFIX/bin]
2036   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2037   --libexecdir=DIR        program executables [EPREFIX/libexec]
2038   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2039   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2040   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2041   --libdir=DIR            object code libraries [EPREFIX/lib]
2042   --includedir=DIR        C header files [PREFIX/include]
2043   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2044   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2045   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2046   --infodir=DIR           info documentation [DATAROOTDIR/info]
2047   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2048   --mandir=DIR            man documentation [DATAROOTDIR/man]
2049   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2050   --htmldir=DIR           html documentation [DOCDIR]
2051   --dvidir=DIR            dvi documentation [DOCDIR]
2052   --pdfdir=DIR            pdf documentation [DOCDIR]
2053   --psdir=DIR             ps documentation [DOCDIR]
2054 _ACEOF
2055
2056   cat <<\_ACEOF
2057
2058 Program names:
2059   --program-prefix=PREFIX            prepend PREFIX to installed program names
2060   --program-suffix=SUFFIX            append SUFFIX to installed program names
2061   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2062
2063 System types:
2064   --build=BUILD     configure for building on BUILD [guessed]
2065   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2066   --target=TARGET   configure for building compilers for TARGET [HOST]
2067 _ACEOF
2068 fi
2069
2070 if test -n "$ac_init_help"; then
2071
2072   cat <<\_ACEOF
2073
2074 Optional Features:
2075   --disable-option-checking  ignore unrecognized --enable/--with options
2076   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2077   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2078   --enable-maintainer-mode  enable make rules and dependencies not useful
2079                           (and sometimes confusing) to the casual installer
2080   --disable-dependency-tracking  speeds up one-time build
2081   --enable-dependency-tracking   do not reject slow dependency extractors
2082
2083 Some influential environment variables:
2084   CC          C compiler command
2085   CFLAGS      C compiler flags
2086   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2087               nonstandard directory <lib dir>
2088   LIBS        libraries to pass to the linker, e.g. -l<library>
2089   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2090               you have headers in a nonstandard directory <include dir>
2091   CPP         C preprocessor
2092
2093 Use these variables to override the choices made by `configure' or to help
2094 it to find libraries and programs with nonstandard names/locations.
2095
2096 Report bugs to the package provider.
2097 _ACEOF
2098 ac_status=$?
2099 fi
2100
2101 if test "$ac_init_help" = "recursive"; then
2102   # If there are subdirs, report their specific --help.
2103   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2104     test -d "$ac_dir" ||
2105       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2106       continue
2107     ac_builddir=.
2108
2109 case "$ac_dir" in
2110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2111 *)
2112   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2113   # A ".." for each directory in $ac_dir_suffix.
2114   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2115   case $ac_top_builddir_sub in
2116   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2117   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2118   esac ;;
2119 esac
2120 ac_abs_top_builddir=$ac_pwd
2121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2122 # for backward compatibility:
2123 ac_top_builddir=$ac_top_build_prefix
2124
2125 case $srcdir in
2126   .)  # We are building in place.
2127     ac_srcdir=.
2128     ac_top_srcdir=$ac_top_builddir_sub
2129     ac_abs_top_srcdir=$ac_pwd ;;
2130   [\\/]* | ?:[\\/]* )  # Absolute name.
2131     ac_srcdir=$srcdir$ac_dir_suffix;
2132     ac_top_srcdir=$srcdir
2133     ac_abs_top_srcdir=$srcdir ;;
2134   *) # Relative name.
2135     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2136     ac_top_srcdir=$ac_top_build_prefix$srcdir
2137     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2138 esac
2139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2140
2141     cd "$ac_dir" || { ac_status=$?; continue; }
2142     # Check for guested configure.
2143     if test -f "$ac_srcdir/configure.gnu"; then
2144       echo &&
2145       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2146     elif test -f "$ac_srcdir/configure"; then
2147       echo &&
2148       $SHELL "$ac_srcdir/configure" --help=recursive
2149     else
2150       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2151     fi || ac_status=$?
2152     cd "$ac_pwd" || { ac_status=$?; break; }
2153   done
2154 fi
2155
2156 test -n "$ac_init_help" && exit $ac_status
2157 if $ac_init_version; then
2158   cat <<\_ACEOF
2159 configure
2160 generated by GNU Autoconf 2.64
2161
2162 Copyright (C) 2009 Free Software Foundation, Inc.
2163 This configure script is free software; the Free Software Foundation
2164 gives unlimited permission to copy, distribute and modify it.
2165 _ACEOF
2166   exit
2167 fi
2168
2169 ## ------------------------ ##
2170 ## Autoconf initialization. ##
2171 ## ------------------------ ##
2172
2173 # ac_fn_c_try_compile LINENO
2174 # --------------------------
2175 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_c_try_compile ()
2177 {
2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179   rm -f conftest.$ac_objext
2180   if { { ac_try="$ac_compile"
2181 case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187   (eval "$ac_compile") 2>conftest.err
2188   ac_status=$?
2189   if test -s conftest.err; then
2190     grep -v '^ *+' conftest.err >conftest.er1
2191     cat conftest.er1 >&5
2192     mv -f conftest.er1 conftest.err
2193   fi
2194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195   test $ac_status = 0; } && {
2196          test -z "$ac_c_werror_flag" ||
2197          test ! -s conftest.err
2198        } && test -s conftest.$ac_objext; then :
2199   ac_retval=0
2200 else
2201   $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204         ac_retval=1
2205 fi
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207   return $ac_retval
2208
2209 } # ac_fn_c_try_compile
2210
2211 # ac_fn_c_try_cpp LINENO
2212 # ----------------------
2213 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2214 ac_fn_c_try_cpp ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   if { { ac_try="$ac_cpp conftest.$ac_ext"
2218 case "(($ac_try" in
2219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220   *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2225   ac_status=$?
2226   if test -s conftest.err; then
2227     grep -v '^ *+' conftest.err >conftest.er1
2228     cat conftest.er1 >&5
2229     mv -f conftest.er1 conftest.err
2230   fi
2231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232   test $ac_status = 0; } >/dev/null && {
2233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2234          test ! -s conftest.err
2235        }; then :
2236   ac_retval=0
2237 else
2238   $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241     ac_retval=1
2242 fi
2243   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244   return $ac_retval
2245
2246 } # ac_fn_c_try_cpp
2247
2248 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2251 # the include files in INCLUDES and setting the cache variable VAR
2252 # accordingly.
2253 ac_fn_c_check_header_mongrel ()
2254 {
2255   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260   $as_echo_n "(cached) " >&6
2261 fi
2262 eval ac_res=\$$3
2263                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 else
2266   # Is the header compilable?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2268 $as_echo_n "checking $2 usability... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 #include <$2>
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   ac_header_compiler=yes
2276 else
2277   ac_header_compiler=no
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2281 $as_echo "$ac_header_compiler" >&6; }
2282
2283 # Is the header present?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2285 $as_echo_n "checking $2 presence... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 #include <$2>
2289 _ACEOF
2290 if ac_fn_c_try_cpp "$LINENO"; then :
2291   ac_header_preproc=yes
2292 else
2293   ac_header_preproc=no
2294 fi
2295 rm -f conftest.err conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2297 $as_echo "$ac_header_preproc" >&6; }
2298
2299 # So?  What about this header?
2300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2301   yes:no: )
2302     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2303 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2306     ;;
2307   no:yes:* )
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2309 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2311 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2312     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2313 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2315 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318     ;;
2319 esac
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   eval "$3=\$ac_header_compiler"
2326 fi
2327 eval ac_res=\$$3
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 fi
2331   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
2333 } # ac_fn_c_check_header_mongrel
2334
2335 # ac_fn_c_try_run LINENO
2336 # ----------------------
2337 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338 # that executables *can* be run.
2339 ac_fn_c_try_run ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   if { { ac_try="$ac_link"
2343 case "(($ac_try" in
2344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345   *) ac_try_echo=$ac_try;;
2346 esac
2347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348 $as_echo "$ac_try_echo"; } >&5
2349   (eval "$ac_link") 2>&5
2350   ac_status=$?
2351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353   { { case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359   (eval "$ac_try") 2>&5
2360   ac_status=$?
2361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362   test $ac_status = 0; }; }; then :
2363   ac_retval=0
2364 else
2365   $as_echo "$as_me: program exited with status $ac_status" >&5
2366        $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369        ac_retval=$ac_status
2370 fi
2371   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373   return $ac_retval
2374
2375 } # ac_fn_c_try_run
2376
2377 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2378 # -------------------------------------------------------
2379 # Tests whether HEADER exists and can be compiled using the include files in
2380 # INCLUDES, setting the cache variable VAR accordingly.
2381 ac_fn_c_check_header_compile ()
2382 {
2383   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385 $as_echo_n "checking for $2... " >&6; }
2386 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $4
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395   eval "$3=yes"
2396 else
2397   eval "$3=no"
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 eval ac_res=\$$3
2402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405
2406 } # ac_fn_c_check_header_compile
2407
2408 # ac_fn_c_try_link LINENO
2409 # -----------------------
2410 # Try to link conftest.$ac_ext, and return whether this succeeded.
2411 ac_fn_c_try_link ()
2412 {
2413   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414   rm -f conftest.$ac_objext conftest$ac_exeext
2415   if { { ac_try="$ac_link"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422   (eval "$ac_link") 2>conftest.err
2423   ac_status=$?
2424   if test -s conftest.err; then
2425     grep -v '^ *+' conftest.err >conftest.er1
2426     cat conftest.er1 >&5
2427     mv -f conftest.er1 conftest.err
2428   fi
2429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430   test $ac_status = 0; } && {
2431          test -z "$ac_c_werror_flag" ||
2432          test ! -s conftest.err
2433        } && test -s conftest$ac_exeext && {
2434          test "$cross_compiling" = yes ||
2435          $as_test_x conftest$ac_exeext
2436        }; then :
2437   ac_retval=0
2438 else
2439   $as_echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442         ac_retval=1
2443 fi
2444   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2445   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2446   # interfere with the next link command; also delete a directory that is
2447   # left behind by Apple's compiler.  We do this before executing the actions.
2448   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2449   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450   return $ac_retval
2451
2452 } # ac_fn_c_try_link
2453
2454 # ac_fn_c_check_func LINENO FUNC VAR
2455 # ----------------------------------
2456 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2457 ac_fn_c_check_func ()
2458 {
2459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463   $as_echo_n "(cached) " >&6
2464 else
2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2469 #define $2 innocuous_$2
2470
2471 /* System header to define __stub macros and hopefully few prototypes,
2472     which can conflict with char $2 (); below.
2473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2474     <limits.h> exists even on freestanding compilers.  */
2475
2476 #ifdef __STDC__
2477 # include <limits.h>
2478 #else
2479 # include <assert.h>
2480 #endif
2481
2482 #undef $2
2483
2484 /* Override any GCC internal prototype to avoid an error.
2485    Use char because int might match the return type of a GCC
2486    builtin and then its argument prototype would still apply.  */
2487 #ifdef __cplusplus
2488 extern "C"
2489 #endif
2490 char $2 ();
2491 /* The GNU C library defines this for functions which it implements
2492     to always fail with ENOSYS.  Some functions are actually named
2493     something starting with __ and the normal name is an alias.  */
2494 #if defined __stub_$2 || defined __stub___$2
2495 choke me
2496 #endif
2497
2498 int
2499 main ()
2500 {
2501 return $2 ();
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_c_try_link "$LINENO"; then :
2507   eval "$3=yes"
2508 else
2509   eval "$3=no"
2510 fi
2511 rm -f core conftest.err conftest.$ac_objext \
2512     conftest$ac_exeext conftest.$ac_ext
2513 fi
2514 eval ac_res=\$$3
2515                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518
2519 } # ac_fn_c_check_func
2520
2521 # ac_fn_c_check_decl LINENO SYMBOL VAR
2522 # ------------------------------------
2523 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2524 ac_fn_c_check_decl ()
2525 {
2526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2528 $as_echo_n "checking whether $2 is declared... " >&6; }
2529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 int
2536 main ()
2537 {
2538 #ifndef $2
2539   (void) $2;
2540 #endif
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 if ac_fn_c_try_compile "$LINENO"; then :
2547   eval "$3=yes"
2548 else
2549   eval "$3=no"
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 eval ac_res=\$$3
2554                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558 } # ac_fn_c_check_decl
2559
2560 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2561 # --------------------------------------------
2562 # Tries to find the compile-time value of EXPR in a program that includes
2563 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2564 # computed
2565 ac_fn_c_compute_int ()
2566 {
2567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568   if test "$cross_compiling" = yes; then
2569     # Depending upon the size, compute the lo and hi bounds.
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h.  */
2572 $4
2573 int
2574 main ()
2575 {
2576 static int test_array [1 - 2 * !(($2) >= 0)];
2577 test_array [0] = 0
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584   ac_lo=0 ac_mid=0
2585   while :; do
2586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h.  */
2588 $4
2589 int
2590 main ()
2591 {
2592 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2593 test_array [0] = 0
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_c_try_compile "$LINENO"; then :
2600   ac_hi=$ac_mid; break
2601 else
2602   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2603                         if test $ac_lo -le $ac_mid; then
2604                           ac_lo= ac_hi=
2605                           break
2606                         fi
2607                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610   done
2611 else
2612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $4
2615 int
2616 main ()
2617 {
2618 static int test_array [1 - 2 * !(($2) < 0)];
2619 test_array [0] = 0
2620
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626   ac_hi=-1 ac_mid=-1
2627   while :; do
2628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 int
2632 main ()
2633 {
2634 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2635 test_array [0] = 0
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642   ac_lo=$ac_mid; break
2643 else
2644   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2645                         if test $ac_mid -le $ac_hi; then
2646                           ac_lo= ac_hi=
2647                           break
2648                         fi
2649                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2650 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652   done
2653 else
2654   ac_lo= ac_hi=
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 # Binary search between lo and hi bounds.
2660 while test "x$ac_lo" != "x$ac_hi"; do
2661   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h.  */
2664 $4
2665 int
2666 main ()
2667 {
2668 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2669 test_array [0] = 0
2670
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 if ac_fn_c_try_compile "$LINENO"; then :
2676   ac_hi=$ac_mid
2677 else
2678   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2679 fi
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 done
2682 case $ac_lo in #((
2683 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2684 '') ac_retval=1 ;;
2685 esac
2686   else
2687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h.  */
2689 $4
2690 static long int longval () { return $2; }
2691 static unsigned long int ulongval () { return $2; }
2692 #include <stdio.h>
2693 #include <stdlib.h>
2694 int
2695 main ()
2696 {
2697
2698   FILE *f = fopen ("conftest.val", "w");
2699   if (! f)
2700     return 1;
2701   if (($2) < 0)
2702     {
2703       long int i = longval ();
2704       if (i != ($2))
2705         return 1;
2706       fprintf (f, "%ld", i);
2707     }
2708   else
2709     {
2710       unsigned long int i = ulongval ();
2711       if (i != ($2))
2712         return 1;
2713       fprintf (f, "%lu", i);
2714     }
2715   /* Do not output a trailing newline, as this causes \r\n confusion
2716      on some platforms.  */
2717   return ferror (f) || fclose (f) != 0;
2718
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 if ac_fn_c_try_run "$LINENO"; then :
2724   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2725 else
2726   ac_retval=1
2727 fi
2728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2729   conftest.$ac_objext conftest.beam conftest.$ac_ext
2730 rm -f conftest.val
2731
2732   fi
2733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734   return $ac_retval
2735
2736 } # ac_fn_c_compute_int
2737
2738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2739 # -------------------------------------------
2740 # Tests whether TYPE exists after having included INCLUDES, setting cache
2741 # variable VAR accordingly.
2742 ac_fn_c_check_type ()
2743 {
2744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746 $as_echo_n "checking for $2... " >&6; }
2747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2748   $as_echo_n "(cached) " >&6
2749 else
2750   eval "$3=no"
2751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h.  */
2753 $4
2754 int
2755 main ()
2756 {
2757 if (sizeof ($2))
2758          return 0;
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h.  */
2766 $4
2767 int
2768 main ()
2769 {
2770 if (sizeof (($2)))
2771             return 0;
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777
2778 else
2779   eval "$3=yes"
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 eval ac_res=\$$3
2786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2789
2790 } # ac_fn_c_check_type
2791 cat >config.log <<_ACEOF
2792 This file contains any messages produced by compilers while
2793 running configure, to aid debugging if configure makes a mistake.
2794
2795 It was created by $as_me, which was
2796 generated by GNU Autoconf 2.64.  Invocation command line was
2797
2798   $ $0 $@
2799
2800 _ACEOF
2801 exec 5>>config.log
2802 {
2803 cat <<_ASUNAME
2804 ## --------- ##
2805 ## Platform. ##
2806 ## --------- ##
2807
2808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2813
2814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2815 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2816
2817 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2818 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2820 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2821 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2822 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2823 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2824
2825 _ASUNAME
2826
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832     $as_echo "PATH: $as_dir"
2833   done
2834 IFS=$as_save_IFS
2835
2836 } >&5
2837
2838 cat >&5 <<_ACEOF
2839
2840
2841 ## ----------- ##
2842 ## Core tests. ##
2843 ## ----------- ##
2844
2845 _ACEOF
2846
2847
2848 # Keep a trace of the command line.
2849 # Strip out --no-create and --no-recursion so they do not pile up.
2850 # Strip out --silent because we don't want to record it for future runs.
2851 # Also quote any args containing shell meta-characters.
2852 # Make two passes to allow for proper duplicate-argument suppression.
2853 ac_configure_args=
2854 ac_configure_args0=
2855 ac_configure_args1=
2856 ac_must_keep_next=false
2857 for ac_pass in 1 2
2858 do
2859   for ac_arg
2860   do
2861     case $ac_arg in
2862     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2863     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2864     | -silent | --silent | --silen | --sile | --sil)
2865       continue ;;
2866     *\'*)
2867       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2868     esac
2869     case $ac_pass in
2870     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2871     2)
2872       as_fn_append ac_configure_args1 " '$ac_arg'"
2873       if test $ac_must_keep_next = true; then
2874         ac_must_keep_next=false # Got value, back to normal.
2875       else
2876         case $ac_arg in
2877           *=* | --config-cache | -C | -disable-* | --disable-* \
2878           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2879           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2880           | -with-* | --with-* | -without-* | --without-* | --x)
2881             case "$ac_configure_args0 " in
2882               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2883             esac
2884             ;;
2885           -* ) ac_must_keep_next=true ;;
2886         esac
2887       fi
2888       as_fn_append ac_configure_args " '$ac_arg'"
2889       ;;
2890     esac
2891   done
2892 done
2893 { ac_configure_args0=; unset ac_configure_args0;}
2894 { ac_configure_args1=; unset ac_configure_args1;}
2895
2896 # When interrupted or exit'd, cleanup temporary files, and complete
2897 # config.log.  We remove comments because anyway the quotes in there
2898 # would cause problems or look ugly.
2899 # WARNING: Use '\'' to represent an apostrophe within the trap.
2900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2901 trap 'exit_status=$?
2902   # Save into config.log some information that might help in debugging.
2903   {
2904     echo
2905
2906     cat <<\_ASBOX
2907 ## ---------------- ##
2908 ## Cache variables. ##
2909 ## ---------------- ##
2910 _ASBOX
2911     echo
2912     # The following way of writing the cache mishandles newlines in values,
2913 (
2914   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2915     eval ac_val=\$$ac_var
2916     case $ac_val in #(
2917     *${as_nl}*)
2918       case $ac_var in #(
2919       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2921       esac
2922       case $ac_var in #(
2923       _ | IFS | as_nl) ;; #(
2924       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2925       *) { eval $ac_var=; unset $ac_var;} ;;
2926       esac ;;
2927     esac
2928   done
2929   (set) 2>&1 |
2930     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2931     *${as_nl}ac_space=\ *)
2932       sed -n \
2933         "s/'\''/'\''\\\\'\'''\''/g;
2934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2935       ;; #(
2936     *)
2937       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2938       ;;
2939     esac |
2940     sort
2941 )
2942     echo
2943
2944     cat <<\_ASBOX
2945 ## ----------------- ##
2946 ## Output variables. ##
2947 ## ----------------- ##
2948 _ASBOX
2949     echo
2950     for ac_var in $ac_subst_vars
2951     do
2952       eval ac_val=\$$ac_var
2953       case $ac_val in
2954       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2955       esac
2956       $as_echo "$ac_var='\''$ac_val'\''"
2957     done | sort
2958     echo
2959
2960     if test -n "$ac_subst_files"; then
2961       cat <<\_ASBOX
2962 ## ------------------- ##
2963 ## File substitutions. ##
2964 ## ------------------- ##
2965 _ASBOX
2966       echo
2967       for ac_var in $ac_subst_files
2968       do
2969         eval ac_val=\$$ac_var
2970         case $ac_val in
2971         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2972         esac
2973         $as_echo "$ac_var='\''$ac_val'\''"
2974       done | sort
2975       echo
2976     fi
2977
2978     if test -s confdefs.h; then
2979       cat <<\_ASBOX
2980 ## ----------- ##
2981 ## confdefs.h. ##
2982 ## ----------- ##
2983 _ASBOX
2984       echo
2985       cat confdefs.h
2986       echo
2987     fi
2988     test "$ac_signal" != 0 &&
2989       $as_echo "$as_me: caught signal $ac_signal"
2990     $as_echo "$as_me: exit $exit_status"
2991   } >&5
2992   rm -f core *.core core.conftest.* &&
2993     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2994     exit $exit_status
2995 ' 0
2996 for ac_signal in 1 2 13 15; do
2997   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2998 done
2999 ac_signal=0
3000
3001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3002 rm -f -r conftest* confdefs.h
3003
3004 $as_echo "/* confdefs.h */" > confdefs.h
3005
3006 # Predefined preprocessor variables.
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_NAME "$PACKAGE_NAME"
3010 _ACEOF
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3014 _ACEOF
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3018 _ACEOF
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_STRING "$PACKAGE_STRING"
3022 _ACEOF
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3026 _ACEOF
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_URL "$PACKAGE_URL"
3030 _ACEOF
3031
3032
3033 # Let the site file select an alternate cache file if it wants to.
3034 # Prefer an explicitly selected file to automatically selected ones.
3035 ac_site_file1=NONE
3036 ac_site_file2=NONE
3037 if test -n "$CONFIG_SITE"; then
3038   ac_site_file1=$CONFIG_SITE
3039 elif test "x$prefix" != xNONE; then
3040   ac_site_file1=$prefix/share/config.site
3041   ac_site_file2=$prefix/etc/config.site
3042 else
3043   ac_site_file1=$ac_default_prefix/share/config.site
3044   ac_site_file2=$ac_default_prefix/etc/config.site
3045 fi
3046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3047 do
3048   test "x$ac_site_file" = xNONE && continue
3049   if test -r "$ac_site_file"; then
3050     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3052     sed 's/^/| /' "$ac_site_file" >&5
3053     . "$ac_site_file"
3054   fi
3055 done
3056
3057 if test -r "$cache_file"; then
3058   # Some versions of bash will fail to source /dev/null (special
3059   # files actually), so we avoid doing that.
3060   if test -f "$cache_file"; then
3061     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3062 $as_echo "$as_me: loading cache $cache_file" >&6;}
3063     case $cache_file in
3064       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3065       *)                      . "./$cache_file";;
3066     esac
3067   fi
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3070 $as_echo "$as_me: creating cache $cache_file" >&6;}
3071   >$cache_file
3072 fi
3073
3074 as_fn_append ac_header_list " dirent.h"
3075 as_fn_append ac_func_list " btowc"
3076 as_fn_append ac_func_list " isblank"
3077 as_fn_append ac_func_list " iswctype"
3078 as_fn_append ac_func_list " mbsrtowcs"
3079 as_fn_append ac_func_list " mempcpy"
3080 as_fn_append ac_func_list " wmemchr"
3081 as_fn_append ac_func_list " wmemcpy"
3082 as_fn_append ac_func_list " wmempcpy"
3083 as_fn_append ac_header_list " wctype.h"
3084 gl_fnmatch_required=GNU
3085 as_fn_append ac_func_list " alarm"
3086 as_fn_append ac_header_list " wchar.h"
3087 as_fn_append ac_header_list " stdint.h"
3088 as_fn_append ac_header_list " inttypes.h"
3089 as_fn_append ac_header_list " unistd.h"
3090 as_fn_append ac_func_list " symlink"
3091 as_fn_append ac_header_list " math.h"
3092 as_fn_append ac_func_list " mbsinit"
3093 as_fn_append ac_func_list " mbrtowc"
3094 as_fn_append ac_header_list " sys/mman.h"
3095 as_fn_append ac_func_list " mprotect"
3096 as_fn_append ac_header_list " sys/param.h"
3097 as_fn_append ac_header_list " sys/stat.h"
3098 as_fn_append ac_header_list " sys/time.h"
3099 as_fn_append ac_header_list " features.h"
3100 as_fn_append ac_func_list " iswcntrl"
3101 # Check that the precious variables saved in the cache have kept the same
3102 # value.
3103 ac_cache_corrupted=false
3104 for ac_var in $ac_precious_vars; do
3105   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3106   eval ac_new_set=\$ac_env_${ac_var}_set
3107   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3108   eval ac_new_val=\$ac_env_${ac_var}_value
3109   case $ac_old_set,$ac_new_set in
3110     set,)
3111       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113       ac_cache_corrupted=: ;;
3114     ,set)
3115       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117       ac_cache_corrupted=: ;;
3118     ,);;
3119     *)
3120       if test "x$ac_old_val" != "x$ac_new_val"; then
3121         # differences in whitespace do not lead to failure.
3122         ac_old_val_w=`echo x $ac_old_val`
3123         ac_new_val_w=`echo x $ac_new_val`
3124         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127           ac_cache_corrupted=:
3128         else
3129           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131           eval $ac_var=\$ac_old_val
3132         fi
3133         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3134 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3135         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3136 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3137       fi;;
3138   esac
3139   # Pass precious variables to config.status.
3140   if test "$ac_new_set" = set; then
3141     case $ac_new_val in
3142     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143     *) ac_arg=$ac_var=$ac_new_val ;;
3144     esac
3145     case " $ac_configure_args " in
3146       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3147       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3148     esac
3149   fi
3150 done
3151 if $ac_cache_corrupted; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3156   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157 fi
3158 ## -------------------- ##
3159 ## Main body of script. ##
3160 ## -------------------- ##
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169 ac_config_headers="$ac_config_headers config.h:config.in"
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3173 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3174     # Check whether --enable-maintainer-mode was given.
3175 if test "${enable_maintainer_mode+set}" = set; then :
3176   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3177 else
3178   USE_MAINTAINER_MODE=no
3179 fi
3180
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3182 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3183    if test $USE_MAINTAINER_MODE = yes; then
3184   MAINTAINER_MODE_TRUE=
3185   MAINTAINER_MODE_FALSE='#'
3186 else
3187   MAINTAINER_MODE_TRUE='#'
3188   MAINTAINER_MODE_FALSE=
3189 fi
3190
3191   MAINT=$MAINTAINER_MODE_TRUE
3192
3193
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 if test -n "$ac_tool_prefix"; then
3201   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$CC"; then
3209   ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$ac_cv_prog_CC"; then
3240   ac_ct_CC=$CC
3241   # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$ac_ct_CC"; then
3249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_ac_ct_CC="gcc"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 else
3289   CC="$ac_cv_prog_CC"
3290 fi
3291
3292 if test -z "$CC"; then
3293           if test -n "$ac_tool_prefix"; then
3294     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311     ac_cv_prog_CC="${ac_tool_prefix}cc"
3312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316   done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331   fi
3332 fi
3333 if test -z "$CC"; then
3334   # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344   ac_prog_rejected=no
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353        ac_prog_rejected=yes
3354        continue
3355      fi
3356     ac_cv_prog_CC="cc"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 if test $ac_prog_rejected = yes; then
3365   # We found a bogon in the path, so make sure we never use it.
3366   set dummy $ac_cv_prog_CC
3367   shift
3368   if test $# != 0; then
3369     # We chose a different compiler from the bogus one.
3370     # However, it has the same basename, so the bogon will be chosen
3371     # first if we set CC to just the basename; use the full file name.
3372     shift
3373     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374   fi
3375 fi
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$CC"; then
3390   if test -n "$ac_tool_prefix"; then
3391   for ac_prog in cl.exe
3392   do
3393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415   done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430     test -n "$CC" && break
3431   done
3432 fi
3433 if test -z "$CC"; then
3434   ac_ct_CC=$CC
3435   for ac_prog in cl.exe
3436 do
3437   # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   if test -n "$ac_ct_CC"; then
3445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454     ac_cv_prog_ac_ct_CC="$ac_prog"
3455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3468 else
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474   test -n "$ac_ct_CC" && break
3475 done
3476
3477   if test "x$ac_ct_CC" = x; then
3478     CC=""
3479   else
3480     case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486     CC=$ac_ct_CC
3487   fi
3488 fi
3489
3490 fi
3491
3492
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error "no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." "$LINENO" 5; }
3497
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500 set X $ac_compile
3501 ac_compiler=$2
3502 for ac_option in --version -v -V -qversion; do
3503   { { ac_try="$ac_compiler $ac_option >&5"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511   ac_status=$?
3512   if test -s conftest.err; then
3513     sed '10a\
3514 ... rest of stderr output deleted ...
3515          10q' conftest.err >conftest.er1
3516     cat conftest.er1 >&5
3517     rm -f conftest.er1 conftest.err
3518   fi
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }
3521 done
3522
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525 #include <stdio.h>
3526 int
3527 main ()
3528 {
3529 FILE *f = fopen ("conftest.out", "w");
3530  return ferror (f) || fclose (f) != 0;
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3538 # Try to create an executable without -o first, disregard a.out.
3539 # It will help us diagnose broken compilers, and finding out an intuition
3540 # of exeext.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542 $as_echo_n "checking for C compiler default output file name... " >&6; }
3543 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544
3545 # The possible output files:
3546 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3547
3548 ac_rmfiles=
3549 for ac_file in $ac_files
3550 do
3551   case $ac_file in
3552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3554   esac
3555 done
3556 rm -f $ac_rmfiles
3557
3558 if { { ac_try="$ac_link_default"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_link_default") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568   test $ac_status = 0; }; then :
3569   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3573 # Autoconf.
3574 for ac_file in $ac_files ''
3575 do
3576   test -f "$ac_file" || continue
3577   case $ac_file in
3578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3579         ;;
3580     [ab].out )
3581         # We found the default executable, but exeext='' is most
3582         # certainly right.
3583         break;;
3584     *.* )
3585         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586         then :; else
3587            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588         fi
3589         # We set ac_cv_exeext here because the later test for it is not
3590         # safe: cross compilers may not add the suffix if given an `-o'
3591         # argument, so we may need to know it at that point already.
3592         # Even if this section looks crufty: it has the advantage of
3593         # actually working.
3594         break;;
3595     * )
3596         break;;
3597   esac
3598 done
3599 test "$ac_cv_exeext" = no && ac_cv_exeext=
3600
3601 else
3602   ac_file=''
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 if test -z "$ac_file"; then :
3607   $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { as_fn_set_status 77
3613 as_fn_error "C compiler cannot create executables
3614 See \`config.log' for more details." "$LINENO" 5; }; }
3615 fi
3616 ac_exeext=$ac_cv_exeext
3617
3618 # Check that the compiler produces executables we can run.  If not, either
3619 # the compiler is broken, or we cross compile.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621 $as_echo_n "checking whether the C compiler works... " >&6; }
3622 # If not cross compiling, check that we can run a simple program.
3623 if test "$cross_compiling" != yes; then
3624   if { ac_try='./$ac_file'
3625   { { case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631   (eval "$ac_try") 2>&5
3632   ac_status=$?
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }; }; then
3635     cross_compiling=no
3636   else
3637     if test "$cross_compiling" = maybe; then
3638         cross_compiling=yes
3639     else
3640         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error "cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details." "$LINENO" 5; }
3645     fi
3646   fi
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650
3651 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3652 ac_clean_files=$ac_clean_files_save
3653 # Check that the compiler produces executables we can run.  If not, either
3654 # the compiler is broken, or we cross compile.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3656 $as_echo_n "checking whether we are cross compiling... " >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658 $as_echo "$cross_compiling" >&6; }
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661 $as_echo_n "checking for suffix of executables... " >&6; }
3662 if { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_link") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }; then :
3673   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3675 # work properly (i.e., refer to `conftest.exe'), while it won't with
3676 # `rm'.
3677 for ac_file in conftest.exe conftest conftest.*; do
3678   test -f "$ac_file" || continue
3679   case $ac_file in
3680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682           break;;
3683     * ) break;;
3684   esac
3685 done
3686 else
3687   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error "cannot compute suffix of executables: cannot compile and link
3690 See \`config.log' for more details." "$LINENO" 5; }
3691 fi
3692 rm -f conftest$ac_cv_exeext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694 $as_echo "$ac_cv_exeext" >&6; }
3695
3696 rm -f conftest.$ac_ext
3697 EXEEXT=$ac_cv_exeext
3698 ac_exeext=$EXEEXT
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700 $as_echo_n "checking for suffix of object files... " >&6; }
3701 if test "${ac_cv_objext+set}" = set; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706
3707 int
3708 main ()
3709 {
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.o conftest.obj
3716 if { { ac_try="$ac_compile"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723   (eval "$ac_compile") 2>&5
3724   ac_status=$?
3725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726   test $ac_status = 0; }; then :
3727   for ac_file in conftest.o conftest.obj conftest.*; do
3728   test -f "$ac_file" || continue;
3729   case $ac_file in
3730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732        break;;
3733   esac
3734 done
3735 else
3736   $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error "cannot compute suffix of object files: cannot compile
3742 See \`config.log' for more details." "$LINENO" 5; }
3743 fi
3744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747 $as_echo "$ac_cv_objext" >&6; }
3748 OBJEXT=$ac_cv_objext
3749 ac_objext=$OBJEXT
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761 #ifndef __GNUC__
3762        choke me
3763 #endif
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770   ac_compiler_gnu=yes
3771 else
3772   ac_compiler_gnu=no
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3780 if test $ac_compiler_gnu = yes; then
3781   GCC=yes
3782 else
3783   GCC=
3784 fi
3785 ac_test_CFLAGS=${CFLAGS+set}
3786 ac_save_CFLAGS=$CFLAGS
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3789 if test "${ac_cv_prog_cc_g+set}" = set; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   ac_save_c_werror_flag=$ac_c_werror_flag
3793    ac_c_werror_flag=yes
3794    ac_cv_prog_cc_g=no
3795    CFLAGS="-g"
3796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798
3799 int
3800 main ()
3801 {
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808   ac_cv_prog_cc_g=yes
3809 else
3810   CFLAGS=""
3811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823
3824 else
3825   ac_c_werror_flag=$ac_save_c_werror_flag
3826          CFLAGS="-g"
3827          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839   ac_cv_prog_cc_g=yes
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846    ac_c_werror_flag=$ac_save_c_werror_flag
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849 $as_echo "$ac_cv_prog_cc_g" >&6; }
3850 if test "$ac_test_CFLAGS" = set; then
3851   CFLAGS=$ac_save_CFLAGS
3852 elif test $ac_cv_prog_cc_g = yes; then
3853   if test "$GCC" = yes; then
3854     CFLAGS="-g -O2"
3855   else
3856     CFLAGS="-g"
3857   fi
3858 else
3859   if test "$GCC" = yes; then
3860     CFLAGS="-O2"
3861   else
3862     CFLAGS=
3863   fi
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   ac_cv_prog_cc_c89=no
3871 ac_save_CC=$CC
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874 #include <stdarg.h>
3875 #include <stdio.h>
3876 #include <sys/types.h>
3877 #include <sys/stat.h>
3878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3879 struct buf { int x; };
3880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881 static char *e (p, i)
3882      char **p;
3883      int i;
3884 {
3885   return p[i];
3886 }
3887 static char *f (char * (*g) (char **, int), char **p, ...)
3888 {
3889   char *s;
3890   va_list v;
3891   va_start (v,p);
3892   s = g (p, va_arg (v,int));
3893   va_end (v);
3894   return s;
3895 }
3896
3897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3898    function prototypes and stuff, but not '\xHH' hex character constants.
3899    These don't provoke an error unfortunately, instead are silently treated
3900    as 'x'.  The following induces an error, until -std is added to get
3901    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3902    array size at least.  It's necessary to write '\x00'==0 to get something
3903    that's true only with -std.  */
3904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907    inside strings and character constants.  */
3908 #define FOO(x) 'x'
3909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911 int test (int i, double x);
3912 struct s1 {int (*f) (int a);};
3913 struct s2 {int (*f) (double a);};
3914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915 int argc;
3916 char **argv;
3917 int
3918 main ()
3919 {
3920 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927 do
3928   CC="$ac_save_CC $ac_arg"
3929   if ac_fn_c_try_compile "$LINENO"; then :
3930   ac_cv_prog_cc_c89=$ac_arg
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext
3933   test "x$ac_cv_prog_cc_c89" != "xno" && break
3934 done
3935 rm -f conftest.$ac_ext
3936 CC=$ac_save_CC
3937
3938 fi
3939 # AC_CACHE_VAL
3940 case "x$ac_cv_prog_cc_c89" in
3941   x)
3942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3944   xno)
3945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3947   *)
3948     CC="$CC $ac_cv_prog_cc_c89"
3949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951 esac
3952 if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954 fi
3955
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962 ac_aux_dir=
3963 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3964   for ac_t in install-sh install.sh shtool; do
3965     if test -f "$ac_dir/$ac_t"; then
3966       ac_aux_dir=$ac_dir
3967       ac_install_sh="$ac_aux_dir/$ac_t -c"
3968       break 2
3969     fi
3970   done
3971 done
3972 if test -z "$ac_aux_dir"; then
3973   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3974 fi
3975
3976 # These three variables are undocumented and unsupported,
3977 # and are intended to be withdrawn in a future Autoconf release.
3978 # They can cause serious problems if a builder's source tree is in a directory
3979 # whose full name contains unusual characters.
3980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3982 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3983
3984
3985 # Make sure we can run config.sub.
3986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3987   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3990 $as_echo_n "checking build system type... " >&6; }
3991 if test "${ac_cv_build+set}" = set; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   ac_build_alias=$build_alias
3995 test "x$ac_build_alias" = x &&
3996   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3997 test "x$ac_build_alias" = x &&
3998   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4000   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4001
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4004 $as_echo "$ac_cv_build" >&6; }
4005 case $ac_cv_build in
4006 *-*-*) ;;
4007 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4008 esac
4009 build=$ac_cv_build
4010 ac_save_IFS=$IFS; IFS='-'
4011 set x $ac_cv_build
4012 shift
4013 build_cpu=$1
4014 build_vendor=$2
4015 shift; shift
4016 # Remember, the first character of IFS is used to create $*,
4017 # except with old shells:
4018 build_os=$*
4019 IFS=$ac_save_IFS
4020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4021
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4024 $as_echo_n "checking host system type... " >&6; }
4025 if test "${ac_cv_host+set}" = set; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   if test "x$host_alias" = x; then
4029   ac_cv_host=$ac_cv_build
4030 else
4031   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4032     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4037 $as_echo "$ac_cv_host" >&6; }
4038 case $ac_cv_host in
4039 *-*-*) ;;
4040 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4041 esac
4042 host=$ac_cv_host
4043 ac_save_IFS=$IFS; IFS='-'
4044 set x $ac_cv_host
4045 shift
4046 host_cpu=$1
4047 host_vendor=$2
4048 shift; shift
4049 # Remember, the first character of IFS is used to create $*,
4050 # except with old shells:
4051 host_os=$*
4052 IFS=$ac_save_IFS
4053 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4054
4055
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4064 # On Suns, sometimes $CPP names a directory.
4065 if test -n "$CPP" && test -d "$CPP"; then
4066   CPP=
4067 fi
4068 if test -z "$CPP"; then
4069   if test "${ac_cv_prog_CPP+set}" = set; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072       # Double quotes because CPP needs to be expanded
4073     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4074     do
4075       ac_preproc_ok=false
4076 for ac_c_preproc_warn_flag in '' yes
4077 do
4078   # Use a header file that comes with gcc, so configuring glibc
4079   # with a fresh cross-compiler works.
4080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081   # <limits.h> exists even on freestanding compilers.
4082   # On the NeXT, cc -E runs the code through the compiler's parser,
4083   # not just through cpp. "Syntax error" is here to catch this case.
4084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086 #ifdef __STDC__
4087 # include <limits.h>
4088 #else
4089 # include <assert.h>
4090 #endif
4091                      Syntax error
4092 _ACEOF
4093 if ac_fn_c_try_cpp "$LINENO"; then :
4094
4095 else
4096   # Broken: fails on valid input.
4097 continue
4098 fi
4099 rm -f conftest.err conftest.$ac_ext
4100
4101   # OK, works on sane cases.  Now check whether nonexistent headers
4102   # can be detected and how.
4103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #include <ac_nonexistent.h>
4106 _ACEOF
4107 if ac_fn_c_try_cpp "$LINENO"; then :
4108   # Broken: success on invalid input.
4109 continue
4110 else
4111   # Passes both tests.
4112 ac_preproc_ok=:
4113 break
4114 fi
4115 rm -f conftest.err conftest.$ac_ext
4116
4117 done
4118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119 rm -f conftest.err conftest.$ac_ext
4120 if $ac_preproc_ok; then :
4121   break
4122 fi
4123
4124     done
4125     ac_cv_prog_CPP=$CPP
4126
4127 fi
4128   CPP=$ac_cv_prog_CPP
4129 else
4130   ac_cv_prog_CPP=$CPP
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4133 $as_echo "$CPP" >&6; }
4134 ac_preproc_ok=false
4135 for ac_c_preproc_warn_flag in '' yes
4136 do
4137   # Use a header file that comes with gcc, so configuring glibc
4138   # with a fresh cross-compiler works.
4139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140   # <limits.h> exists even on freestanding compilers.
4141   # On the NeXT, cc -E runs the code through the compiler's parser,
4142   # not just through cpp. "Syntax error" is here to catch this case.
4143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h.  */
4145 #ifdef __STDC__
4146 # include <limits.h>
4147 #else
4148 # include <assert.h>
4149 #endif
4150                      Syntax error
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153
4154 else
4155   # Broken: fails on valid input.
4156 continue
4157 fi
4158 rm -f conftest.err conftest.$ac_ext
4159
4160   # OK, works on sane cases.  Now check whether nonexistent headers
4161   # can be detected and how.
4162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #include <ac_nonexistent.h>
4165 _ACEOF
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4167   # Broken: success on invalid input.
4168 continue
4169 else
4170   # Passes both tests.
4171 ac_preproc_ok=:
4172 break
4173 fi
4174 rm -f conftest.err conftest.$ac_ext
4175
4176 done
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then :
4180
4181 else
4182   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4185 See \`config.log' for more details." "$LINENO" 5; }
4186 fi
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4196 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4197 if test "${ac_cv_path_GREP+set}" = set; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   if test -z "$GREP"; then
4201   ac_path_GREP_found=false
4202   # Loop through the user's path and test for each of PROGNAME-LIST
4203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208     for ac_prog in grep ggrep; do
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4211       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4212 # Check for GNU ac_path_GREP and select it if it is found.
4213   # Check for GNU $ac_path_GREP
4214 case `"$ac_path_GREP" --version 2>&1` in
4215 *GNU*)
4216   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4217 *)
4218   ac_count=0
4219   $as_echo_n 0123456789 >"conftest.in"
4220   while :
4221   do
4222     cat "conftest.in" "conftest.in" >"conftest.tmp"
4223     mv "conftest.tmp" "conftest.in"
4224     cp "conftest.in" "conftest.nl"
4225     $as_echo 'GREP' >> "conftest.nl"
4226     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228     as_fn_arith $ac_count + 1 && ac_count=$as_val
4229     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4230       # Best one so far, save it but keep looking for a better one
4231       ac_cv_path_GREP="$ac_path_GREP"
4232       ac_path_GREP_max=$ac_count
4233     fi
4234     # 10*(2^10) chars as input seems more than enough
4235     test $ac_count -gt 10 && break
4236   done
4237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240       $ac_path_GREP_found && break 3
4241     done
4242   done
4243   done
4244 IFS=$as_save_IFS
4245   if test -z "$ac_cv_path_GREP"; then
4246     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247   fi
4248 else
4249   ac_cv_path_GREP=$GREP
4250 fi
4251
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4254 $as_echo "$ac_cv_path_GREP" >&6; }
4255  GREP="$ac_cv_path_GREP"
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4259 $as_echo_n "checking for egrep... " >&6; }
4260 if test "${ac_cv_path_EGREP+set}" = set; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4264    then ac_cv_path_EGREP="$GREP -E"
4265    else
4266      if test -z "$EGREP"; then
4267   ac_path_EGREP_found=false
4268   # Loop through the user's path and test for each of PROGNAME-LIST
4269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_prog in egrep; do
4275     for ac_exec_ext in '' $ac_executable_extensions; do
4276       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4277       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4278 # Check for GNU ac_path_EGREP and select it if it is found.
4279   # Check for GNU $ac_path_EGREP
4280 case `"$ac_path_EGREP" --version 2>&1` in
4281 *GNU*)
4282   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4283 *)
4284   ac_count=0
4285   $as_echo_n 0123456789 >"conftest.in"
4286   while :
4287   do
4288     cat "conftest.in" "conftest.in" >"conftest.tmp"
4289     mv "conftest.tmp" "conftest.in"
4290     cp "conftest.in" "conftest.nl"
4291     $as_echo 'EGREP' >> "conftest.nl"
4292     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294     as_fn_arith $ac_count + 1 && ac_count=$as_val
4295     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4296       # Best one so far, save it but keep looking for a better one
4297       ac_cv_path_EGREP="$ac_path_EGREP"
4298       ac_path_EGREP_max=$ac_count
4299     fi
4300     # 10*(2^10) chars as input seems more than enough
4301     test $ac_count -gt 10 && break
4302   done
4303   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304 esac
4305
4306       $ac_path_EGREP_found && break 3
4307     done
4308   done
4309   done
4310 IFS=$as_save_IFS
4311   if test -z "$ac_cv_path_EGREP"; then
4312     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4313   fi
4314 else
4315   ac_cv_path_EGREP=$EGREP
4316 fi
4317
4318    fi
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4321 $as_echo "$ac_cv_path_EGREP" >&6; }
4322  EGREP="$ac_cv_path_EGREP"
4323
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4326 $as_echo_n "checking for ANSI C header files... " >&6; }
4327 if test "${ac_cv_header_stdc+set}" = set; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332 #include <stdlib.h>
4333 #include <stdarg.h>
4334 #include <string.h>
4335 #include <float.h>
4336
4337 int
4338 main ()
4339 {
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346   ac_cv_header_stdc=yes
4347 else
4348   ac_cv_header_stdc=no
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351
4352 if test $ac_cv_header_stdc = yes; then
4353   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356 #include <string.h>
4357
4358 _ACEOF
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360   $EGREP "memchr" >/dev/null 2>&1; then :
4361
4362 else
4363   ac_cv_header_stdc=no
4364 fi
4365 rm -f conftest*
4366
4367 fi
4368
4369 if test $ac_cv_header_stdc = yes; then
4370   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373 #include <stdlib.h>
4374
4375 _ACEOF
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377   $EGREP "free" >/dev/null 2>&1; then :
4378
4379 else
4380   ac_cv_header_stdc=no
4381 fi
4382 rm -f conftest*
4383
4384 fi
4385
4386 if test $ac_cv_header_stdc = yes; then
4387   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4388   if test "$cross_compiling" = yes; then :
4389   :
4390 else
4391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <ctype.h>
4394 #include <stdlib.h>
4395 #if ((' ' & 0x0FF) == 0x020)
4396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398 #else
4399 # define ISLOWER(c) \
4400                    (('a' <= (c) && (c) <= 'i') \
4401                      || ('j' <= (c) && (c) <= 'r') \
4402                      || ('s' <= (c) && (c) <= 'z'))
4403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4404 #endif
4405
4406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4407 int
4408 main ()
4409 {
4410   int i;
4411   for (i = 0; i < 256; i++)
4412     if (XOR (islower (i), ISLOWER (i))
4413         || toupper (i) != TOUPPER (i))
4414       return 2;
4415   return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_run "$LINENO"; then :
4419
4420 else
4421   ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4424   conftest.$ac_objext conftest.beam conftest.$ac_ext
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4430 $as_echo "$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4432
4433 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4434
4435 fi
4436
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4439                   inttypes.h stdint.h unistd.h
4440 do :
4441   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4443 "
4444 eval as_val=\$$as_ac_Header
4445    if test "x$as_val" = x""yes; then :
4446   cat >>confdefs.h <<_ACEOF
4447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 _ACEOF
4449
4450 fi
4451
4452 done
4453
4454
4455
4456
4457
4458   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4459 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4460   MINIX=yes
4461 else
4462   MINIX=
4463 fi
4464
4465
4466   if test "$MINIX" = yes; then
4467
4468 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4469
4470
4471 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4472
4473
4474 $as_echo "#define _MINIX 1" >>confdefs.h
4475
4476   fi
4477
4478         case "$host_os" in
4479     hpux*)
4480
4481 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4482
4483       ;;
4484   esac
4485
4486
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494
4495 #         define __EXTENSIONS__ 1
4496           $ac_includes_default
4497 int
4498 main ()
4499 {
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506   ac_cv_safe_to_define___extensions__=yes
4507 else
4508   ac_cv_safe_to_define___extensions__=no
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514   test $ac_cv_safe_to_define___extensions__ = yes &&
4515     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4516
4517   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4518
4519   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4520
4521   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4522
4523   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4524
4525   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4526
4527
4528
4529
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4531 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4532 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535
4536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538
4539 #ifdef __ACK__
4540 Amsterdam
4541 #endif
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545   $EGREP "Amsterdam" >/dev/null 2>&1; then :
4546   gl_cv_c_amsterdam_compiler=yes
4547 else
4548   gl_cv_c_amsterdam_compiler=no
4549 fi
4550 rm -f conftest*
4551
4552
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4555 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4556   if test -z "$AR"; then
4557     if test $gl_cv_c_amsterdam_compiler = yes; then
4558       AR='cc -c.a'
4559       if test -z "$ARFLAGS"; then
4560         ARFLAGS='-o'
4561       fi
4562     else
4563                   if test -n "$ac_tool_prefix"; then
4564   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4565 set dummy ${ac_tool_prefix}ar; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_AR+set}" = set; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   if test -n "$AR"; then
4572   ac_cv_prog_AR="$AR" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581     ac_cv_prog_AR="${ac_tool_prefix}ar"
4582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586   done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 AR=$ac_cv_prog_AR
4592 if test -n "$AR"; then
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4594 $as_echo "$AR" >&6; }
4595 else
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601 fi
4602 if test -z "$ac_cv_prog_AR"; then
4603   ac_ct_AR=$AR
4604   # Extract the first word of "ar", so it can be a program name with args.
4605 set dummy ar; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if test -n "$ac_ct_AR"; then
4612   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621     ac_cv_prog_ac_ct_AR="ar"
4622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626   done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4632 if test -n "$ac_ct_AR"; then
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4634 $as_echo "$ac_ct_AR" >&6; }
4635 else
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640   if test "x$ac_ct_AR" = x; then
4641     AR="ar"
4642   else
4643     case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649     AR=$ac_ct_AR
4650   fi
4651 else
4652   AR="$ac_cv_prog_AR"
4653 fi
4654
4655       if test -z "$ARFLAGS"; then
4656         ARFLAGS='cru'
4657       fi
4658     fi
4659   else
4660     if test -z "$ARFLAGS"; then
4661       ARFLAGS='cru'
4662     fi
4663   fi
4664
4665
4666   if test -z "$RANLIB"; then
4667     if test $gl_cv_c_amsterdam_compiler = yes; then
4668       RANLIB=':'
4669     else
4670             if test -n "$ac_tool_prefix"; then
4671   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$RANLIB"; then
4679   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693   done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 RANLIB=$ac_cv_prog_RANLIB
4699 if test -n "$RANLIB"; then
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4701 $as_echo "$RANLIB" >&6; }
4702 else
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708 fi
4709 if test -z "$ac_cv_prog_RANLIB"; then
4710   ac_ct_RANLIB=$RANLIB
4711   # Extract the first word of "ranlib", so it can be a program name with args.
4712 set dummy ranlib; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   if test -n "$ac_ct_RANLIB"; then
4719   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726     for ac_exec_ext in '' $ac_executable_extensions; do
4727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728     ac_cv_prog_ac_ct_RANLIB="ranlib"
4729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733   done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4739 if test -n "$ac_ct_RANLIB"; then
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4741 $as_echo "$ac_ct_RANLIB" >&6; }
4742 else
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747   if test "x$ac_ct_RANLIB" = x; then
4748     RANLIB=":"
4749   else
4750     case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756     RANLIB=$ac_ct_RANLIB
4757   fi
4758 else
4759   RANLIB="$ac_cv_prog_RANLIB"
4760 fi
4761
4762     fi
4763   fi
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775   # IEEE behaviour is the default on all CPUs except Alpha and SH
4776   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4777   # and the GCC 4.1.2 manual).
4778   case "$host_cpu" in
4779     alpha*)
4780       # On Alpha systems, a compiler option provides the behaviour.
4781       # See the ieee(3) manual page, also available at
4782       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4783       if test -n "$GCC"; then
4784         # GCC has the option -mieee.
4785         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4786         CPPFLAGS="$CPPFLAGS -mieee"
4787       else
4788         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4789         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4790         CPPFLAGS="$CPPFLAGS -ieee"
4791       fi
4792       ;;
4793     sh*)
4794       if test -n "$GCC"; then
4795         # GCC has the option -mieee.
4796         CPPFLAGS="$CPPFLAGS -mieee"
4797       fi
4798       ;;
4799   esac
4800
4801
4802
4803   # Code from module alloca:
4804   # Code from module alloca-opt:
4805   # Code from module configmake:
4806   # Code from module dirent:
4807   # Code from module dirfd:
4808   # Code from module errno:
4809   # Code from module extensions:
4810
4811   # Code from module extern-inline:
4812   # Code from module float:
4813   # Code from module fnmatch:
4814   # Code from module fnmatch-gnu:
4815   # Code from module fpieee:
4816
4817   # Code from module fpucw:
4818   # Code from module frexp:
4819   # Code from module frexpl:
4820   # Code from module include_next:
4821   # Code from module inttypes:
4822   # Code from module inttypes-incomplete:
4823   # Code from module isnand-nolibm:
4824   # Code from module isnanl-nolibm:
4825   # Code from module localcharset:
4826   # Code from module math:
4827   # Code from module mbrtowc:
4828   # Code from module mbsinit:
4829   # Code from module mbsrtowcs:
4830   # Code from module memchr:
4831   # Code from module memmem:
4832   # Code from module memmem-simple:
4833   # Code from module multiarch:
4834   # Code from module pathmax:
4835   # Code from module snippet/arg-nonnull:
4836   # Code from module snippet/c++defs:
4837   # Code from module snippet/warn-on-use:
4838   # Code from module ssize_t:
4839   # Code from module stdbool:
4840   # Code from module stddef:
4841   # Code from module stdint:
4842   # Code from module streq:
4843   # Code from module string:
4844   # Code from module strnlen1:
4845   # Code from module strstr:
4846   # Code from module strstr-simple:
4847   # Code from module sys_stat:
4848   # Code from module sys_types:
4849   # Code from module time:
4850   # Code from module unistd:
4851   # Code from module update-copyright:
4852   # Code from module verify:
4853   # Code from module wchar:
4854   # Code from module wctype-h:
4855
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 if test -n "$ac_tool_prefix"; then
4862   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_CC+set}" = set; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$CC"; then
4870   ac_cv_prog_CC="$CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 CC=$ac_cv_prog_CC
4890 if test -n "$CC"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892 $as_echo "$CC" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899 fi
4900 if test -z "$ac_cv_prog_CC"; then
4901   ac_ct_CC=$CC
4902   # Extract the first word of "gcc", so it can be a program name with args.
4903 set dummy gcc; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   if test -n "$ac_ct_CC"; then
4910   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_prog_ac_ct_CC="gcc"
4920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924   done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4930 if test -n "$ac_ct_CC"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4932 $as_echo "$ac_ct_CC" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937
4938   if test "x$ac_ct_CC" = x; then
4939     CC=""
4940   else
4941     case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4946 esac
4947     CC=$ac_ct_CC
4948   fi
4949 else
4950   CC="$ac_cv_prog_CC"
4951 fi
4952
4953 if test -z "$CC"; then
4954           if test -n "$ac_tool_prefix"; then
4955     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}cc; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then :
4960   $as_echo_n "(cached) " >&6
4961 else
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_exec_ext in '' $ac_executable_extensions; do
4971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972     ac_cv_prog_CC="${ac_tool_prefix}cc"
4973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974     break 2
4975   fi
4976 done
4977   done
4978 IFS=$as_save_IFS
4979
4980 fi
4981 fi
4982 CC=$ac_cv_prog_CC
4983 if test -n "$CC"; then
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4986 else
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991
4992   fi
4993 fi
4994 if test -z "$CC"; then
4995   # Extract the first word of "cc", so it can be a program name with args.
4996 set dummy cc; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -n "$CC"; then
5003   ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005   ac_prog_rejected=no
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5014        ac_prog_rejected=yes
5015        continue
5016      fi
5017     ac_cv_prog_CC="cc"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 if test $ac_prog_rejected = yes; then
5026   # We found a bogon in the path, so make sure we never use it.
5027   set dummy $ac_cv_prog_CC
5028   shift
5029   if test $# != 0; then
5030     # We chose a different compiler from the bogus one.
5031     # However, it has the same basename, so the bogon will be chosen
5032     # first if we set CC to just the basename; use the full file name.
5033     shift
5034     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5035   fi
5036 fi
5037 fi
5038 fi
5039 CC=$ac_cv_prog_CC
5040 if test -n "$CC"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5042 $as_echo "$CC" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049 fi
5050 if test -z "$CC"; then
5051   if test -n "$ac_tool_prefix"; then
5052   for ac_prog in cl.exe
5053   do
5054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_CC+set}" = set; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$CC"; then
5062   ac_cv_prog_CC="$CC" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 CC=$ac_cv_prog_CC
5082 if test -n "$CC"; then
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5084 $as_echo "$CC" >&6; }
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091     test -n "$CC" && break
5092   done
5093 fi
5094 if test -z "$CC"; then
5095   ac_ct_CC=$CC
5096   for ac_prog in cl.exe
5097 do
5098   # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$ac_ct_CC"; then
5106   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_ac_ct_CC="$ac_prog"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5126 if test -n "$ac_ct_CC"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5128 $as_echo "$ac_ct_CC" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135   test -n "$ac_ct_CC" && break
5136 done
5137
5138   if test "x$ac_ct_CC" = x; then
5139     CC=""
5140   else
5141     case $cross_compiling:$ac_tool_warned in
5142 yes:)
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5145 ac_tool_warned=yes ;;
5146 esac
5147     CC=$ac_ct_CC
5148   fi
5149 fi
5150
5151 fi
5152
5153
5154 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5156 as_fn_error "no acceptable C compiler found in \$PATH
5157 See \`config.log' for more details." "$LINENO" 5; }
5158
5159 # Provide some information about the compiler.
5160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5161 set X $ac_compile
5162 ac_compiler=$2
5163 for ac_option in --version -v -V -qversion; do
5164   { { ac_try="$ac_compiler $ac_option >&5"
5165 case "(($ac_try" in
5166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167   *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5172   ac_status=$?
5173   if test -s conftest.err; then
5174     sed '10a\
5175 ... rest of stderr output deleted ...
5176          10q' conftest.err >conftest.er1
5177     cat conftest.er1 >&5
5178     rm -f conftest.er1 conftest.err
5179   fi
5180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181   test $ac_status = 0; }
5182 done
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5186 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h.  */
5191
5192 int
5193 main ()
5194 {
5195 #ifndef __GNUC__
5196        choke me
5197 #endif
5198
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204   ac_compiler_gnu=yes
5205 else
5206   ac_compiler_gnu=no
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5214 if test $ac_compiler_gnu = yes; then
5215   GCC=yes
5216 else
5217   GCC=
5218 fi
5219 ac_test_CFLAGS=${CFLAGS+set}
5220 ac_save_CFLAGS=$CFLAGS
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5223 if test "${ac_cv_prog_cc_g+set}" = set; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   ac_save_c_werror_flag=$ac_c_werror_flag
5227    ac_c_werror_flag=yes
5228    ac_cv_prog_cc_g=no
5229    CFLAGS="-g"
5230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h.  */
5232
5233 int
5234 main ()
5235 {
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242   ac_cv_prog_cc_g=yes
5243 else
5244   CFLAGS=""
5245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h.  */
5247
5248 int
5249 main ()
5250 {
5251
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257
5258 else
5259   ac_c_werror_flag=$ac_save_c_werror_flag
5260          CFLAGS="-g"
5261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h.  */
5263
5264 int
5265 main ()
5266 {
5267
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273   ac_cv_prog_cc_g=yes
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280    ac_c_werror_flag=$ac_save_c_werror_flag
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5283 $as_echo "$ac_cv_prog_cc_g" >&6; }
5284 if test "$ac_test_CFLAGS" = set; then
5285   CFLAGS=$ac_save_CFLAGS
5286 elif test $ac_cv_prog_cc_g = yes; then
5287   if test "$GCC" = yes; then
5288     CFLAGS="-g -O2"
5289   else
5290     CFLAGS="-g"
5291   fi
5292 else
5293   if test "$GCC" = yes; then
5294     CFLAGS="-O2"
5295   else
5296     CFLAGS=
5297   fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5301 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   ac_cv_prog_cc_c89=no
5305 ac_save_CC=$CC
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h.  */
5308 #include <stdarg.h>
5309 #include <stdio.h>
5310 #include <sys/types.h>
5311 #include <sys/stat.h>
5312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5313 struct buf { int x; };
5314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5315 static char *e (p, i)
5316      char **p;
5317      int i;
5318 {
5319   return p[i];
5320 }
5321 static char *f (char * (*g) (char **, int), char **p, ...)
5322 {
5323   char *s;
5324   va_list v;
5325   va_start (v,p);
5326   s = g (p, va_arg (v,int));
5327   va_end (v);
5328   return s;
5329 }
5330
5331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5332    function prototypes and stuff, but not '\xHH' hex character constants.
5333    These don't provoke an error unfortunately, instead are silently treated
5334    as 'x'.  The following induces an error, until -std is added to get
5335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5336    array size at least.  It's necessary to write '\x00'==0 to get something
5337    that's true only with -std.  */
5338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5339
5340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5341    inside strings and character constants.  */
5342 #define FOO(x) 'x'
5343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5344
5345 int test (int i, double x);
5346 struct s1 {int (*f) (int a);};
5347 struct s2 {int (*f) (double a);};
5348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5349 int argc;
5350 char **argv;
5351 int
5352 main ()
5353 {
5354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5355   ;
5356   return 0;
5357 }
5358 _ACEOF
5359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5360         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5361 do
5362   CC="$ac_save_CC $ac_arg"
5363   if ac_fn_c_try_compile "$LINENO"; then :
5364   ac_cv_prog_cc_c89=$ac_arg
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext
5367   test "x$ac_cv_prog_cc_c89" != "xno" && break
5368 done
5369 rm -f conftest.$ac_ext
5370 CC=$ac_save_CC
5371
5372 fi
5373 # AC_CACHE_VAL
5374 case "x$ac_cv_prog_cc_c89" in
5375   x)
5376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5377 $as_echo "none needed" >&6; } ;;
5378   xno)
5379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5380 $as_echo "unsupported" >&6; } ;;
5381   *)
5382     CC="$CC $ac_cv_prog_cc_c89"
5383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5385 esac
5386 if test "x$ac_cv_prog_cc_c89" != xno; then :
5387
5388 fi
5389
5390 ac_ext=c
5391 ac_cpp='$CPP $CPPFLAGS'
5392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395
5396
5397 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5398
5399
5400 ac_aux_dir=
5401 for ac_dir in ../.. "$srcdir"/../..; do
5402   for ac_t in install-sh install.sh shtool; do
5403     if test -f "$ac_dir/$ac_t"; then
5404       ac_aux_dir=$ac_dir
5405       ac_install_sh="$ac_aux_dir/$ac_t -c"
5406       break 2
5407     fi
5408   done
5409 done
5410 if test -z "$ac_aux_dir"; then
5411   as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5412 fi
5413
5414 # These three variables are undocumented and unsupported,
5415 # and are intended to be withdrawn in a future Autoconf release.
5416 # They can cause serious problems if a builder's source tree is in a directory
5417 # whose full name contains unusual characters.
5418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5420 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5421
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5424 $as_echo_n "checking target system type... " >&6; }
5425 if test "${ac_cv_target+set}" = set; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if test "x$target_alias" = x; then
5429   ac_cv_target=$ac_cv_host
5430 else
5431   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5432     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5433 fi
5434
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5437 $as_echo "$ac_cv_target" >&6; }
5438 case $ac_cv_target in
5439 *-*-*) ;;
5440 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5441 esac
5442 target=$ac_cv_target
5443 ac_save_IFS=$IFS; IFS='-'
5444 set x $ac_cv_target
5445 shift
5446 target_cpu=$1
5447 target_vendor=$2
5448 shift; shift
5449 # Remember, the first character of IFS is used to create $*,
5450 # except with old shells:
5451 target_os=$*
5452 IFS=$ac_save_IFS
5453 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5454
5455
5456 # The aliases save the names the user supplied, while $host etc.
5457 # will get canonicalized.
5458 test -n "$target_alias" &&
5459   test "$program_prefix$program_suffix$program_transform_name" = \
5460     NONENONEs,x,x, &&
5461   program_prefix=${target_alias}-
5462
5463
5464
5465
5466
5467
5468
5469           LIBC_FATAL_STDERR_=1
5470   export LIBC_FATAL_STDERR_
5471
5472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5473 # for constant arguments.  Useless!
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5475 $as_echo_n "checking for working alloca.h... " >&6; }
5476 if test "${ac_cv_working_alloca_h+set}" = set; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481 #include <alloca.h>
5482 int
5483 main ()
5484 {
5485 char *p = (char *) alloca (2 * sizeof (int));
5486                           if (p) return 0;
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 if ac_fn_c_try_link "$LINENO"; then :
5492   ac_cv_working_alloca_h=yes
5493 else
5494   ac_cv_working_alloca_h=no
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext \
5497     conftest$ac_exeext conftest.$ac_ext
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5500 $as_echo "$ac_cv_working_alloca_h" >&6; }
5501 if test $ac_cv_working_alloca_h = yes; then
5502
5503 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5504
5505 fi
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5508 $as_echo_n "checking for alloca... " >&6; }
5509 if test "${ac_cv_func_alloca_works+set}" = set; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h.  */
5514 #ifdef __GNUC__
5515 # define alloca __builtin_alloca
5516 #else
5517 # ifdef _MSC_VER
5518 #  include <malloc.h>
5519 #  define alloca _alloca
5520 # else
5521 #  ifdef HAVE_ALLOCA_H
5522 #   include <alloca.h>
5523 #  else
5524 #   ifdef _AIX
5525  #pragma alloca
5526 #   else
5527 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5528 char *alloca ();
5529 #    endif
5530 #   endif
5531 #  endif
5532 # endif
5533 #endif
5534
5535 int
5536 main ()
5537 {
5538 char *p = (char *) alloca (1);
5539                                     if (p) return 0;
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_link "$LINENO"; then :
5545   ac_cv_func_alloca_works=yes
5546 else
5547   ac_cv_func_alloca_works=no
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext \
5550     conftest$ac_exeext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5553 $as_echo "$ac_cv_func_alloca_works" >&6; }
5554
5555 if test $ac_cv_func_alloca_works = yes; then
5556
5557 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5558
5559 else
5560   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5561 # that cause trouble.  Some versions do not even contain alloca or
5562 # contain a buggy version.  If you still want to use their alloca,
5563 # use ar to extract alloca.o from them instead of compiling alloca.c.
5564
5565
5566
5567
5568
5569 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5570
5571 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5575 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5576 if test "${ac_cv_os_cray+set}" = set; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h.  */
5581 #if defined CRAY && ! defined CRAY2
5582 webecray
5583 #else
5584 wenotbecray
5585 #endif
5586
5587 _ACEOF
5588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589   $EGREP "webecray" >/dev/null 2>&1; then :
5590   ac_cv_os_cray=yes
5591 else
5592   ac_cv_os_cray=no
5593 fi
5594 rm -f conftest*
5595
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5598 $as_echo "$ac_cv_os_cray" >&6; }
5599 if test $ac_cv_os_cray = yes; then
5600   for ac_func in _getb67 GETB67 getb67; do
5601     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5603 eval as_val=\$$as_ac_var
5604    if test "x$as_val" = x""yes; then :
5605
5606 cat >>confdefs.h <<_ACEOF
5607 #define CRAY_STACKSEG_END $ac_func
5608 _ACEOF
5609
5610     break
5611 fi
5612
5613   done
5614 fi
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5617 $as_echo_n "checking stack direction for C alloca... " >&6; }
5618 if test "${ac_cv_c_stack_direction+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test "$cross_compiling" = yes; then :
5622   ac_cv_c_stack_direction=0
5623 else
5624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626 $ac_includes_default
5627 int
5628 find_stack_direction (int *addr, int depth)
5629 {
5630   int dir, dummy = 0;
5631   if (! addr)
5632     addr = &dummy;
5633   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5634   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5635   return dir + dummy;
5636 }
5637
5638 int
5639 main (int argc, char **argv)
5640 {
5641   return find_stack_direction (0, argc + !argv + 20) < 0;
5642 }
5643 _ACEOF
5644 if ac_fn_c_try_run "$LINENO"; then :
5645   ac_cv_c_stack_direction=1
5646 else
5647   ac_cv_c_stack_direction=-1
5648 fi
5649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5650   conftest.$ac_objext conftest.beam conftest.$ac_ext
5651 fi
5652
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5655 $as_echo "$ac_cv_c_stack_direction" >&6; }
5656 cat >>confdefs.h <<_ACEOF
5657 #define STACK_DIRECTION $ac_cv_c_stack_direction
5658 _ACEOF
5659
5660
5661 fi
5662
5663
5664   GNULIB_CHDIR=0;
5665   GNULIB_CHOWN=0;
5666   GNULIB_CLOSE=0;
5667   GNULIB_DUP=0;
5668   GNULIB_DUP2=0;
5669   GNULIB_DUP3=0;
5670   GNULIB_ENVIRON=0;
5671   GNULIB_EUIDACCESS=0;
5672   GNULIB_FACCESSAT=0;
5673   GNULIB_FCHDIR=0;
5674   GNULIB_FCHOWNAT=0;
5675   GNULIB_FDATASYNC=0;
5676   GNULIB_FSYNC=0;
5677   GNULIB_FTRUNCATE=0;
5678   GNULIB_GETCWD=0;
5679   GNULIB_GETDOMAINNAME=0;
5680   GNULIB_GETDTABLESIZE=0;
5681   GNULIB_GETGROUPS=0;
5682   GNULIB_GETHOSTNAME=0;
5683   GNULIB_GETLOGIN=0;
5684   GNULIB_GETLOGIN_R=0;
5685   GNULIB_GETPAGESIZE=0;
5686   GNULIB_GETUSERSHELL=0;
5687   GNULIB_GROUP_MEMBER=0;
5688   GNULIB_ISATTY=0;
5689   GNULIB_LCHOWN=0;
5690   GNULIB_LINK=0;
5691   GNULIB_LINKAT=0;
5692   GNULIB_LSEEK=0;
5693   GNULIB_PIPE=0;
5694   GNULIB_PIPE2=0;
5695   GNULIB_PREAD=0;
5696   GNULIB_PWRITE=0;
5697   GNULIB_READ=0;
5698   GNULIB_READLINK=0;
5699   GNULIB_READLINKAT=0;
5700   GNULIB_RMDIR=0;
5701   GNULIB_SETHOSTNAME=0;
5702   GNULIB_SLEEP=0;
5703   GNULIB_SYMLINK=0;
5704   GNULIB_SYMLINKAT=0;
5705   GNULIB_TTYNAME_R=0;
5706   GNULIB_UNISTD_H_NONBLOCKING=0;
5707   GNULIB_UNISTD_H_SIGPIPE=0;
5708   GNULIB_UNLINK=0;
5709   GNULIB_UNLINKAT=0;
5710   GNULIB_USLEEP=0;
5711   GNULIB_WRITE=0;
5712     HAVE_CHOWN=1;
5713   HAVE_DUP2=1;
5714   HAVE_DUP3=1;
5715   HAVE_EUIDACCESS=1;
5716   HAVE_FACCESSAT=1;
5717   HAVE_FCHDIR=1;
5718   HAVE_FCHOWNAT=1;
5719   HAVE_FDATASYNC=1;
5720   HAVE_FSYNC=1;
5721   HAVE_FTRUNCATE=1;
5722   HAVE_GETDTABLESIZE=1;
5723   HAVE_GETGROUPS=1;
5724   HAVE_GETHOSTNAME=1;
5725   HAVE_GETLOGIN=1;
5726   HAVE_GETPAGESIZE=1;
5727   HAVE_GROUP_MEMBER=1;
5728   HAVE_LCHOWN=1;
5729   HAVE_LINK=1;
5730   HAVE_LINKAT=1;
5731   HAVE_PIPE=1;
5732   HAVE_PIPE2=1;
5733   HAVE_PREAD=1;
5734   HAVE_PWRITE=1;
5735   HAVE_READLINK=1;
5736   HAVE_READLINKAT=1;
5737   HAVE_SETHOSTNAME=1;
5738   HAVE_SLEEP=1;
5739   HAVE_SYMLINK=1;
5740   HAVE_SYMLINKAT=1;
5741   HAVE_UNLINKAT=1;
5742   HAVE_USLEEP=1;
5743   HAVE_DECL_ENVIRON=1;
5744   HAVE_DECL_FCHDIR=1;
5745   HAVE_DECL_FDATASYNC=1;
5746   HAVE_DECL_GETDOMAINNAME=1;
5747   HAVE_DECL_GETLOGIN_R=1;
5748   HAVE_DECL_GETPAGESIZE=1;
5749   HAVE_DECL_GETUSERSHELL=1;
5750   HAVE_DECL_SETHOSTNAME=1;
5751   HAVE_DECL_TTYNAME_R=1;
5752   HAVE_OS_H=0;
5753   HAVE_SYS_PARAM_H=0;
5754   REPLACE_CHOWN=0;
5755   REPLACE_CLOSE=0;
5756   REPLACE_DUP=0;
5757   REPLACE_DUP2=0;
5758   REPLACE_FCHOWNAT=0;
5759   REPLACE_FTRUNCATE=0;
5760   REPLACE_GETCWD=0;
5761   REPLACE_GETDOMAINNAME=0;
5762   REPLACE_GETLOGIN_R=0;
5763   REPLACE_GETGROUPS=0;
5764   REPLACE_GETPAGESIZE=0;
5765   REPLACE_ISATTY=0;
5766   REPLACE_LCHOWN=0;
5767   REPLACE_LINK=0;
5768   REPLACE_LINKAT=0;
5769   REPLACE_LSEEK=0;
5770   REPLACE_PREAD=0;
5771   REPLACE_PWRITE=0;
5772   REPLACE_READ=0;
5773   REPLACE_READLINK=0;
5774   REPLACE_RMDIR=0;
5775   REPLACE_SLEEP=0;
5776   REPLACE_SYMLINK=0;
5777   REPLACE_TTYNAME_R=0;
5778   REPLACE_UNLINK=0;
5779   REPLACE_UNLINKAT=0;
5780   REPLACE_USLEEP=0;
5781   REPLACE_WRITE=0;
5782   UNISTD_H_HAVE_WINSOCK2_H=0;
5783   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5784
5785
5786
5787      GNULIB_OPENDIR=0;
5788   GNULIB_READDIR=0;
5789   GNULIB_REWINDDIR=0;
5790   GNULIB_CLOSEDIR=0;
5791   GNULIB_DIRFD=0;
5792   GNULIB_FDOPENDIR=0;
5793   GNULIB_SCANDIR=0;
5794   GNULIB_ALPHASORT=0;
5795     HAVE_OPENDIR=1;
5796   HAVE_READDIR=1;
5797   HAVE_REWINDDIR=1;
5798   HAVE_CLOSEDIR=1;
5799   HAVE_DECL_DIRFD=1;
5800   HAVE_DECL_FDOPENDIR=1;
5801   HAVE_FDOPENDIR=1;
5802   HAVE_SCANDIR=1;
5803   HAVE_ALPHASORT=1;
5804   REPLACE_OPENDIR=0;
5805   REPLACE_CLOSEDIR=0;
5806   REPLACE_DIRFD=0;
5807   REPLACE_FDOPENDIR=0;
5808
5809
5810
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5812 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5813 if test "${gl_cv_have_include_next+set}" = set; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   rm -rf conftestd1a conftestd1b conftestd2
5817      mkdir conftestd1a conftestd1b conftestd2
5818                                                   cat <<EOF > conftestd1a/conftest.h
5819 #define DEFINED_IN_CONFTESTD1
5820 #include_next <conftest.h>
5821 #ifdef DEFINED_IN_CONFTESTD2
5822 int foo;
5823 #else
5824 #error "include_next doesn't work"
5825 #endif
5826 EOF
5827      cat <<EOF > conftestd1b/conftest.h
5828 #define DEFINED_IN_CONFTESTD1
5829 #include <stdio.h>
5830 #include_next <conftest.h>
5831 #ifdef DEFINED_IN_CONFTESTD2
5832 int foo;
5833 #else
5834 #error "include_next doesn't work"
5835 #endif
5836 EOF
5837      cat <<EOF > conftestd2/conftest.h
5838 #ifndef DEFINED_IN_CONFTESTD1
5839 #error "include_next test doesn't work"
5840 #endif
5841 #define DEFINED_IN_CONFTESTD2
5842 EOF
5843      gl_save_CPPFLAGS="$CPPFLAGS"
5844      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5845      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847 #include <conftest.h>
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850   gl_cv_have_include_next=yes
5851 else
5852   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5853         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h.  */
5855 #include <conftest.h>
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858   gl_cv_have_include_next=buggy
5859 else
5860   gl_cv_have_include_next=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866      CPPFLAGS="$gl_save_CPPFLAGS"
5867      rm -rf conftestd1a conftestd1b conftestd2
5868
5869 fi
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5871 $as_echo "$gl_cv_have_include_next" >&6; }
5872   PRAGMA_SYSTEM_HEADER=
5873   if test $gl_cv_have_include_next = yes; then
5874     INCLUDE_NEXT=include_next
5875     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5876     if test -n "$GCC"; then
5877       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5878     fi
5879   else
5880     if test $gl_cv_have_include_next = buggy; then
5881       INCLUDE_NEXT=include
5882       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5883     else
5884       INCLUDE_NEXT=include
5885       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5886     fi
5887   fi
5888
5889
5890
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5892 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5893 if test "${gl_cv_pragma_columns+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h.  */
5898
5899 #ifdef __TANDEM
5900 choke me
5901 #endif
5902
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905   $EGREP "choke me" >/dev/null 2>&1; then :
5906   gl_cv_pragma_columns=yes
5907 else
5908   gl_cv_pragma_columns=no
5909 fi
5910 rm -f conftest*
5911
5912
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5915 $as_echo "$gl_cv_pragma_columns" >&6; }
5916   if test $gl_cv_pragma_columns = yes; then
5917     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5918   else
5919     PRAGMA_COLUMNS=
5920   fi
5921
5922
5923
5924
5925
5926   for ac_header in $ac_header_list
5927 do :
5928   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5930 "
5931 eval as_val=\$$as_ac_Header
5932    if test "x$as_val" = x""yes; then :
5933   cat >>confdefs.h <<_ACEOF
5934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 _ACEOF
5936
5937 fi
5938
5939 done
5940
5941
5942
5943
5944
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5946 $as_echo_n "checking for complete errno.h... " >&6; }
5947 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950
5951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h.  */
5953
5954 #include <errno.h>
5955 #if !defined ETXTBSY
5956 booboo
5957 #endif
5958 #if !defined ENOMSG
5959 booboo
5960 #endif
5961 #if !defined EIDRM
5962 booboo
5963 #endif
5964 #if !defined ENOLINK
5965 booboo
5966 #endif
5967 #if !defined EPROTO
5968 booboo
5969 #endif
5970 #if !defined EMULTIHOP
5971 booboo
5972 #endif
5973 #if !defined EBADMSG
5974 booboo
5975 #endif
5976 #if !defined EOVERFLOW
5977 booboo
5978 #endif
5979 #if !defined ENOTSUP
5980 booboo
5981 #endif
5982 #if !defined ENETRESET
5983 booboo
5984 #endif
5985 #if !defined ECONNABORTED
5986 booboo
5987 #endif
5988 #if !defined ESTALE
5989 booboo
5990 #endif
5991 #if !defined EDQUOT
5992 booboo
5993 #endif
5994 #if !defined ECANCELED
5995 booboo
5996 #endif
5997 #if !defined EOWNERDEAD
5998 booboo
5999 #endif
6000 #if !defined ENOTRECOVERABLE
6001 booboo
6002 #endif
6003 #if !defined EILSEQ
6004 booboo
6005 #endif
6006
6007 _ACEOF
6008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009   $EGREP "booboo" >/dev/null 2>&1; then :
6010   gl_cv_header_errno_h_complete=no
6011 else
6012   gl_cv_header_errno_h_complete=yes
6013 fi
6014 rm -f conftest*
6015
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6019 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6020   if test $gl_cv_header_errno_h_complete = yes; then
6021     ERRNO_H=''
6022   else
6023
6024
6025
6026
6027
6028
6029
6030
6031      if test $gl_cv_have_include_next = yes; then
6032        gl_cv_next_errno_h='<'errno.h'>'
6033      else
6034        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6035 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6036 if test "${gl_cv_next_errno_h+set}" = set; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039
6040                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h.  */
6042 #include <errno.h>
6043
6044 _ACEOF
6045                                                                                                                         case "$host_os" in
6046                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
6047                  *)    gl_absname_cpp="$ac_cpp" ;;
6048                esac
6049
6050                case "$host_os" in
6051                  mingw*)
6052                                                                                                                                      gl_dirsep_regex='[/\\]'
6053                    ;;
6054                  *)
6055                    gl_dirsep_regex='\/'
6056                    ;;
6057                esac
6058                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6059
6060                gl_header_literal_regex=`echo 'errno.h' \
6061                                         | sed -e "$gl_make_literal_regex_sed"`
6062                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6063                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6064                    s|^/[^/]|//&|
6065                    p
6066                    q
6067                  }'
6068                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6069                       sed -n "$gl_absolute_header_sed"`'"'
6070
6071
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6074 $as_echo "$gl_cv_next_errno_h" >&6; }
6075      fi
6076      NEXT_ERRNO_H=$gl_cv_next_errno_h
6077
6078      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6079        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6080        gl_next_as_first_directive='<'errno.h'>'
6081      else
6082        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6083        gl_next_as_first_directive=$gl_cv_next_errno_h
6084      fi
6085      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6086
6087
6088
6089
6090     ERRNO_H='errno.h'
6091   fi
6092
6093    if test -n "$ERRNO_H"; then
6094   GL_GENERATE_ERRNO_H_TRUE=
6095   GL_GENERATE_ERRNO_H_FALSE='#'
6096 else
6097   GL_GENERATE_ERRNO_H_TRUE='#'
6098   GL_GENERATE_ERRNO_H_FALSE=
6099 fi
6100
6101
6102   if test -n "$ERRNO_H"; then
6103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6104 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6105 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108
6109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111
6112 #include <errno.h>
6113 #ifdef EMULTIHOP
6114 yes
6115 #endif
6116
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119   $EGREP "yes" >/dev/null 2>&1; then :
6120   gl_cv_header_errno_h_EMULTIHOP=yes
6121 else
6122   gl_cv_header_errno_h_EMULTIHOP=no
6123 fi
6124 rm -f conftest*
6125
6126       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6127         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h.  */
6129
6130 #define _XOPEN_SOURCE_EXTENDED 1
6131 #include <errno.h>
6132 #ifdef EMULTIHOP
6133 yes
6134 #endif
6135
6136 _ACEOF
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138   $EGREP "yes" >/dev/null 2>&1; then :
6139   gl_cv_header_errno_h_EMULTIHOP=hidden
6140 fi
6141 rm -f conftest*
6142
6143         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6144                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
6145 #define _XOPEN_SOURCE_EXTENDED 1
6146 #include <errno.h>
6147 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6148 #include <stdio.h>
6149 #include <stdlib.h>
6150 "; then :
6151
6152 fi
6153
6154         fi
6155       fi
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6159 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6160     case $gl_cv_header_errno_h_EMULTIHOP in
6161       yes | no)
6162         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6163         ;;
6164       *)
6165         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6166         ;;
6167     esac
6168
6169
6170   fi
6171
6172
6173   if test -n "$ERRNO_H"; then
6174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6175 $as_echo_n "checking for ENOLINK value... " >&6; }
6176 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179
6180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h.  */
6182
6183 #include <errno.h>
6184 #ifdef ENOLINK
6185 yes
6186 #endif
6187
6188 _ACEOF
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190   $EGREP "yes" >/dev/null 2>&1; then :
6191   gl_cv_header_errno_h_ENOLINK=yes
6192 else
6193   gl_cv_header_errno_h_ENOLINK=no
6194 fi
6195 rm -f conftest*
6196
6197       if test $gl_cv_header_errno_h_ENOLINK = no; then
6198         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h.  */
6200
6201 #define _XOPEN_SOURCE_EXTENDED 1
6202 #include <errno.h>
6203 #ifdef ENOLINK
6204 yes
6205 #endif
6206
6207 _ACEOF
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209   $EGREP "yes" >/dev/null 2>&1; then :
6210   gl_cv_header_errno_h_ENOLINK=hidden
6211 fi
6212 rm -f conftest*
6213
6214         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6215                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
6216 #define _XOPEN_SOURCE_EXTENDED 1
6217 #include <errno.h>
6218 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6219 #include <stdio.h>
6220 #include <stdlib.h>
6221 "; then :
6222
6223 fi
6224
6225         fi
6226       fi
6227
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6230 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6231     case $gl_cv_header_errno_h_ENOLINK in
6232       yes | no)
6233         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6234         ;;
6235       *)
6236         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6237         ;;
6238     esac
6239
6240
6241   fi
6242
6243
6244   if test -n "$ERRNO_H"; then
6245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6246 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6247 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250
6251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h.  */
6253
6254 #include <errno.h>
6255 #ifdef EOVERFLOW
6256 yes
6257 #endif
6258
6259 _ACEOF
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261   $EGREP "yes" >/dev/null 2>&1; then :
6262   gl_cv_header_errno_h_EOVERFLOW=yes
6263 else
6264   gl_cv_header_errno_h_EOVERFLOW=no
6265 fi
6266 rm -f conftest*
6267
6268       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h.  */
6271
6272 #define _XOPEN_SOURCE_EXTENDED 1
6273 #include <errno.h>
6274 #ifdef EOVERFLOW
6275 yes
6276 #endif
6277
6278 _ACEOF
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280   $EGREP "yes" >/dev/null 2>&1; then :
6281   gl_cv_header_errno_h_EOVERFLOW=hidden
6282 fi
6283 rm -f conftest*
6284
6285         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6286                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
6287 #define _XOPEN_SOURCE_EXTENDED 1
6288 #include <errno.h>
6289 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6290 #include <stdio.h>
6291 #include <stdlib.h>
6292 "; then :
6293
6294 fi
6295
6296         fi
6297       fi
6298
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6301 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6302     case $gl_cv_header_errno_h_EOVERFLOW in
6303       yes | no)
6304         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6305         ;;
6306       *)
6307         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6308         ;;
6309     esac
6310
6311
6312   fi
6313
6314
6315
6316
6317
6318
6319
6320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6321 $as_echo_n "checking for mbstate_t... " >&6; }
6322 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h.  */
6327 $ac_includes_default
6328 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6329    <wchar.h>.
6330    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6331    included before <wchar.h>.  */
6332 #include <stddef.h>
6333 #include <stdio.h>
6334 #include <time.h>
6335 #include <wchar.h>
6336 int
6337 main ()
6338 {
6339 mbstate_t x; return sizeof x;
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345   ac_cv_type_mbstate_t=yes
6346 else
6347   ac_cv_type_mbstate_t=no
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6352 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6353    if test $ac_cv_type_mbstate_t = yes; then
6354
6355 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6356
6357    else
6358
6359 $as_echo "#define mbstate_t int" >>confdefs.h
6360
6361    fi
6362
6363
6364
6365
6366   for ac_func in $ac_func_list
6367 do :
6368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6370 eval as_val=\$$as_ac_var
6371    if test "x$as_val" = x""yes; then :
6372   cat >>confdefs.h <<_ACEOF
6373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6374 _ACEOF
6375
6376 fi
6377 done
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398   GNULIB_ACOSF=0;
6399   GNULIB_ACOSL=0;
6400   GNULIB_ASINF=0;
6401   GNULIB_ASINL=0;
6402   GNULIB_ATANF=0;
6403   GNULIB_ATANL=0;
6404   GNULIB_ATAN2F=0;
6405   GNULIB_CBRT=0;
6406   GNULIB_CBRTF=0;
6407   GNULIB_CBRTL=0;
6408   GNULIB_CEIL=0;
6409   GNULIB_CEILF=0;
6410   GNULIB_CEILL=0;
6411   GNULIB_COPYSIGN=0;
6412   GNULIB_COPYSIGNF=0;
6413   GNULIB_COPYSIGNL=0;
6414   GNULIB_COSF=0;
6415   GNULIB_COSL=0;
6416   GNULIB_COSHF=0;
6417   GNULIB_EXPF=0;
6418   GNULIB_EXPL=0;
6419   GNULIB_EXP2=0;
6420   GNULIB_EXP2F=0;
6421   GNULIB_EXP2L=0;
6422   GNULIB_EXPM1=0;
6423   GNULIB_EXPM1F=0;
6424   GNULIB_EXPM1L=0;
6425   GNULIB_FABSF=0;
6426   GNULIB_FABSL=0;
6427   GNULIB_FLOOR=0;
6428   GNULIB_FLOORF=0;
6429   GNULIB_FLOORL=0;
6430   GNULIB_FMA=0;
6431   GNULIB_FMAF=0;
6432   GNULIB_FMAL=0;
6433   GNULIB_FMOD=0;
6434   GNULIB_FMODF=0;
6435   GNULIB_FMODL=0;
6436   GNULIB_FREXPF=0;
6437   GNULIB_FREXP=0;
6438   GNULIB_FREXPL=0;
6439   GNULIB_HYPOT=0;
6440   GNULIB_HYPOTF=0;
6441   GNULIB_HYPOTL=0;
6442   GNULIB_ILOGB=0;
6443   GNULIB_ILOGBF=0;
6444   GNULIB_ILOGBL=0;
6445   GNULIB_ISFINITE=0;
6446   GNULIB_ISINF=0;
6447   GNULIB_ISNAN=0;
6448   GNULIB_ISNANF=0;
6449   GNULIB_ISNAND=0;
6450   GNULIB_ISNANL=0;
6451   GNULIB_LDEXPF=0;
6452   GNULIB_LDEXPL=0;
6453   GNULIB_LOG=0;
6454   GNULIB_LOGF=0;
6455   GNULIB_LOGL=0;
6456   GNULIB_LOG10=0;
6457   GNULIB_LOG10F=0;
6458   GNULIB_LOG10L=0;
6459   GNULIB_LOG1P=0;
6460   GNULIB_LOG1PF=0;
6461   GNULIB_LOG1PL=0;
6462   GNULIB_LOG2=0;
6463   GNULIB_LOG2F=0;
6464   GNULIB_LOG2L=0;
6465   GNULIB_LOGB=0;
6466   GNULIB_LOGBF=0;
6467   GNULIB_LOGBL=0;
6468   GNULIB_MODF=0;
6469   GNULIB_MODFF=0;
6470   GNULIB_MODFL=0;
6471   GNULIB_POWF=0;
6472   GNULIB_REMAINDER=0;
6473   GNULIB_REMAINDERF=0;
6474   GNULIB_REMAINDERL=0;
6475   GNULIB_RINT=0;
6476   GNULIB_RINTF=0;
6477   GNULIB_RINTL=0;
6478   GNULIB_ROUND=0;
6479   GNULIB_ROUNDF=0;
6480   GNULIB_ROUNDL=0;
6481   GNULIB_SIGNBIT=0;
6482   GNULIB_SINF=0;
6483   GNULIB_SINL=0;
6484   GNULIB_SINHF=0;
6485   GNULIB_SQRTF=0;
6486   GNULIB_SQRTL=0;
6487   GNULIB_TANF=0;
6488   GNULIB_TANL=0;
6489   GNULIB_TANHF=0;
6490   GNULIB_TRUNC=0;
6491   GNULIB_TRUNCF=0;
6492   GNULIB_TRUNCL=0;
6493     HAVE_ACOSF=1;
6494   HAVE_ACOSL=1;
6495   HAVE_ASINF=1;
6496   HAVE_ASINL=1;
6497   HAVE_ATANF=1;
6498   HAVE_ATANL=1;
6499   HAVE_ATAN2F=1;
6500   HAVE_CBRT=1;
6501   HAVE_CBRTF=1;
6502   HAVE_CBRTL=1;
6503   HAVE_COPYSIGN=1;
6504   HAVE_COPYSIGNL=1;
6505   HAVE_COSF=1;
6506   HAVE_COSL=1;
6507   HAVE_COSHF=1;
6508   HAVE_EXPF=1;
6509   HAVE_EXPL=1;
6510   HAVE_EXPM1=1;
6511   HAVE_EXPM1F=1;
6512   HAVE_FABSF=1;
6513   HAVE_FABSL=1;
6514   HAVE_FMA=1;
6515   HAVE_FMAF=1;
6516   HAVE_FMAL=1;
6517   HAVE_FMODF=1;
6518   HAVE_FMODL=1;
6519   HAVE_FREXPF=1;
6520   HAVE_HYPOTF=1;
6521   HAVE_HYPOTL=1;
6522   HAVE_ILOGB=1;
6523   HAVE_ILOGBF=1;
6524   HAVE_ILOGBL=1;
6525   HAVE_ISNANF=1;
6526   HAVE_ISNAND=1;
6527   HAVE_ISNANL=1;
6528   HAVE_LDEXPF=1;
6529   HAVE_LOGF=1;
6530   HAVE_LOGL=1;
6531   HAVE_LOG10F=1;
6532   HAVE_LOG10L=1;
6533   HAVE_LOG1P=1;
6534   HAVE_LOG1PF=1;
6535   HAVE_LOG1PL=1;
6536   HAVE_LOGBF=1;
6537   HAVE_LOGBL=1;
6538   HAVE_MODFF=1;
6539   HAVE_MODFL=1;
6540   HAVE_POWF=1;
6541   HAVE_REMAINDER=1;
6542   HAVE_REMAINDERF=1;
6543   HAVE_RINT=1;
6544   HAVE_RINTL=1;
6545   HAVE_SINF=1;
6546   HAVE_SINL=1;
6547   HAVE_SINHF=1;
6548   HAVE_SQRTF=1;
6549   HAVE_SQRTL=1;
6550   HAVE_TANF=1;
6551   HAVE_TANL=1;
6552   HAVE_TANHF=1;
6553   HAVE_DECL_ACOSL=1;
6554   HAVE_DECL_ASINL=1;
6555   HAVE_DECL_ATANL=1;
6556   HAVE_DECL_CBRTF=1;
6557   HAVE_DECL_CBRTL=1;
6558   HAVE_DECL_CEILF=1;
6559   HAVE_DECL_CEILL=1;
6560   HAVE_DECL_COPYSIGNF=1;
6561   HAVE_DECL_COSL=1;
6562   HAVE_DECL_EXPL=1;
6563   HAVE_DECL_EXP2=1;
6564   HAVE_DECL_EXP2F=1;
6565   HAVE_DECL_EXP2L=1;
6566   HAVE_DECL_EXPM1L=1;
6567   HAVE_DECL_FLOORF=1;
6568   HAVE_DECL_FLOORL=1;
6569   HAVE_DECL_FREXPL=1;
6570   HAVE_DECL_LDEXPL=1;
6571   HAVE_DECL_LOGL=1;
6572   HAVE_DECL_LOG10L=1;
6573   HAVE_DECL_LOG2=1;
6574   HAVE_DECL_LOG2F=1;
6575   HAVE_DECL_LOG2L=1;
6576   HAVE_DECL_LOGB=1;
6577   HAVE_DECL_REMAINDER=1;
6578   HAVE_DECL_REMAINDERL=1;
6579   HAVE_DECL_RINTF=1;
6580   HAVE_DECL_ROUND=1;
6581   HAVE_DECL_ROUNDF=1;
6582   HAVE_DECL_ROUNDL=1;
6583   HAVE_DECL_SINL=1;
6584   HAVE_DECL_SQRTL=1;
6585   HAVE_DECL_TANL=1;
6586   HAVE_DECL_TRUNC=1;
6587   HAVE_DECL_TRUNCF=1;
6588   HAVE_DECL_TRUNCL=1;
6589   REPLACE_CBRTF=0;
6590   REPLACE_CBRTL=0;
6591   REPLACE_CEIL=0;
6592   REPLACE_CEILF=0;
6593   REPLACE_CEILL=0;
6594   REPLACE_EXPM1=0;
6595   REPLACE_EXPM1F=0;
6596   REPLACE_EXP2=0;
6597   REPLACE_EXP2L=0;
6598   REPLACE_FABSL=0;
6599   REPLACE_FLOOR=0;
6600   REPLACE_FLOORF=0;
6601   REPLACE_FLOORL=0;
6602   REPLACE_FMA=0;
6603   REPLACE_FMAF=0;
6604   REPLACE_FMAL=0;
6605   REPLACE_FMOD=0;
6606   REPLACE_FMODF=0;
6607   REPLACE_FMODL=0;
6608   REPLACE_FREXPF=0;
6609   REPLACE_FREXP=0;
6610   REPLACE_FREXPL=0;
6611   REPLACE_HUGE_VAL=0;
6612   REPLACE_HYPOT=0;
6613   REPLACE_HYPOTF=0;
6614   REPLACE_HYPOTL=0;
6615   REPLACE_ILOGB=0;
6616   REPLACE_ILOGBF=0;
6617   REPLACE_ISFINITE=0;
6618   REPLACE_ISINF=0;
6619   REPLACE_ISNAN=0;
6620   REPLACE_LDEXPL=0;
6621   REPLACE_LOG=0;
6622   REPLACE_LOGF=0;
6623   REPLACE_LOGL=0;
6624   REPLACE_LOG10=0;
6625   REPLACE_LOG10F=0;
6626   REPLACE_LOG10L=0;
6627   REPLACE_LOG1P=0;
6628   REPLACE_LOG1PF=0;
6629   REPLACE_LOG1PL=0;
6630   REPLACE_LOG2=0;
6631   REPLACE_LOG2F=0;
6632   REPLACE_LOG2L=0;
6633   REPLACE_LOGB=0;
6634   REPLACE_LOGBF=0;
6635   REPLACE_LOGBL=0;
6636   REPLACE_MODF=0;
6637   REPLACE_MODFF=0;
6638   REPLACE_MODFL=0;
6639   REPLACE_NAN=0;
6640   REPLACE_REMAINDER=0;
6641   REPLACE_REMAINDERF=0;
6642   REPLACE_REMAINDERL=0;
6643   REPLACE_ROUND=0;
6644   REPLACE_ROUNDF=0;
6645   REPLACE_ROUNDL=0;
6646   REPLACE_SIGNBIT=0;
6647   REPLACE_SIGNBIT_USING_GCC=0;
6648   REPLACE_SQRTL=0;
6649   REPLACE_TRUNC=0;
6650   REPLACE_TRUNCF=0;
6651   REPLACE_TRUNCL=0;
6652
6653
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6655 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6656 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659
6660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662 #include <math.h>
6663              double x;
6664 int
6665 main ()
6666 {
6667 int e; return frexp (x, &e) > 0;
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673   gl_cv_func_frexp_no_libm=yes
6674 else
6675   gl_cv_func_frexp_no_libm=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext \
6678     conftest$ac_exeext conftest.$ac_ext
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6682 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6683
6684
6685
6686
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6688 $as_echo_n "checking whether long double and double are the same... " >&6; }
6689 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h.  */
6694 #include <float.h>
6695 int
6696 main ()
6697 {
6698 typedef int check[sizeof (long double) == sizeof (double)
6699                               && LDBL_MANT_DIG == DBL_MANT_DIG
6700                               && LDBL_MAX_EXP == DBL_MAX_EXP
6701                               && LDBL_MIN_EXP == DBL_MIN_EXP
6702                               ? 1 : -1];
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   gl_cv_long_double_equals_double=yes
6710 else
6711   gl_cv_long_double_equals_double=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6717 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6718   if test $gl_cv_long_double_equals_double = yes; then
6719
6720 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6721
6722     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6723   else
6724     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6725   fi
6726
6727
6728
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6730 $as_echo_n "checking for unsigned long long int... " >&6; }
6731 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   ac_cv_type_unsigned_long_long_int=yes
6735      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6736        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h.  */
6738
6739   /* For now, do not test the preprocessor; as of 2007 there are too many
6740          implementations with broken preprocessors.  Perhaps this can
6741          be revisited in 2012.  In the meantime, code should not expect
6742          #if to work with literals wider than 32 bits.  */
6743       /* Test literals.  */
6744       long long int ll = 9223372036854775807ll;
6745       long long int nll = -9223372036854775807LL;
6746       unsigned long long int ull = 18446744073709551615ULL;
6747       /* Test constant expressions.   */
6748       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6749                      ? 1 : -1)];
6750       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6751                      ? 1 : -1)];
6752       int i = 63;
6753 int
6754 main ()
6755 {
6756 /* Test availability of runtime routines for shift and division.  */
6757       long long int llmax = 9223372036854775807ll;
6758       unsigned long long int ullmax = 18446744073709551615ull;
6759       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6760               | (llmax / ll) | (llmax % ll)
6761               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6762               | (ullmax / ull) | (ullmax % ull));
6763   ;
6764   return 0;
6765 }
6766
6767 _ACEOF
6768 if ac_fn_c_try_link "$LINENO"; then :
6769
6770 else
6771   ac_cv_type_unsigned_long_long_int=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext \
6774     conftest$ac_exeext conftest.$ac_ext
6775      fi
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6778 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6779   if test $ac_cv_type_unsigned_long_long_int = yes; then
6780
6781 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6782
6783   fi
6784
6785
6786
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6788 $as_echo_n "checking for long long int... " >&6; }
6789 if test "${ac_cv_type_long_long_int+set}" = set; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   ac_cv_type_long_long_int=yes
6793       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6794         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6795         if test $ac_cv_type_long_long_int = yes; then
6796                                         if test "$cross_compiling" = yes; then :
6797   :
6798 else
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 #include <limits.h>
6802                  #ifndef LLONG_MAX
6803                  # define HALF \
6804                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6805                  # define LLONG_MAX (HALF - 1 + HALF)
6806                  #endif
6807 int
6808 main ()
6809 {
6810 long long int n = 1;
6811                  int i;
6812                  for (i = 0; ; i++)
6813                    {
6814                      long long int m = n << i;
6815                      if (m >> i != n)
6816                        return 1;
6817                      if (LLONG_MAX / 2 < m)
6818                        break;
6819                    }
6820                  return 0;
6821   ;
6822   return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_run "$LINENO"; then :
6826
6827 else
6828   ac_cv_type_long_long_int=no
6829 fi
6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6831   conftest.$ac_objext conftest.beam conftest.$ac_ext
6832 fi
6833
6834         fi
6835       fi
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6838 $as_echo "$ac_cv_type_long_long_int" >&6; }
6839   if test $ac_cv_type_long_long_int = yes; then
6840
6841 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6842
6843   fi
6844
6845
6846
6847
6848
6849
6850     gl_cv_c_multiarch=no
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #ifndef __APPLE_CC__
6854          not a universal capable compiler
6855         #endif
6856         typedef int dummy;
6857
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860
6861                arch=
6862      prev=
6863      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6864        if test -n "$prev"; then
6865          case $word in
6866            i?86 | x86_64 | ppc | ppc64)
6867              if test -z "$arch" || test "$arch" = "$word"; then
6868                arch="$word"
6869              else
6870                gl_cv_c_multiarch=yes
6871              fi
6872              ;;
6873          esac
6874          prev=
6875        else
6876          if test "x$word" = "x-arch"; then
6877            prev=arch
6878          fi
6879        fi
6880      done
6881
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884   if test $gl_cv_c_multiarch = yes; then
6885     APPLE_UNIVERSAL_BUILD=1
6886   else
6887     APPLE_UNIVERSAL_BUILD=0
6888   fi
6889
6890
6891
6892
6893
6894   if test $ac_cv_type_long_long_int = yes; then
6895     HAVE_LONG_LONG_INT=1
6896   else
6897     HAVE_LONG_LONG_INT=0
6898   fi
6899
6900
6901   if test $ac_cv_type_unsigned_long_long_int = yes; then
6902     HAVE_UNSIGNED_LONG_LONG_INT=1
6903   else
6904     HAVE_UNSIGNED_LONG_LONG_INT=0
6905   fi
6906
6907
6908
6909   if test $ac_cv_header_wchar_h = yes; then
6910     HAVE_WCHAR_H=1
6911   else
6912     HAVE_WCHAR_H=0
6913   fi
6914
6915
6916       if test $ac_cv_header_inttypes_h = yes; then
6917     HAVE_INTTYPES_H=1
6918   else
6919     HAVE_INTTYPES_H=0
6920   fi
6921
6922
6923       if test $ac_cv_header_sys_types_h = yes; then
6924     HAVE_SYS_TYPES_H=1
6925   else
6926     HAVE_SYS_TYPES_H=0
6927   fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939      if test $gl_cv_have_include_next = yes; then
6940        gl_cv_next_stdint_h='<'stdint.h'>'
6941      else
6942        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6943 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6944 if test "${gl_cv_next_stdint_h+set}" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947
6948              if test $ac_cv_header_stdint_h = yes; then
6949
6950
6951                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h.  */
6953 #include <stdint.h>
6954
6955 _ACEOF
6956                                                                                                                         case "$host_os" in
6957                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
6958                  *)    gl_absname_cpp="$ac_cpp" ;;
6959                esac
6960
6961                case "$host_os" in
6962                  mingw*)
6963                                                                                                                                      gl_dirsep_regex='[/\\]'
6964                    ;;
6965                  *)
6966                    gl_dirsep_regex='\/'
6967                    ;;
6968                esac
6969                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6970
6971                gl_header_literal_regex=`echo 'stdint.h' \
6972                                         | sed -e "$gl_make_literal_regex_sed"`
6973                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6974                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6975                    s|^/[^/]|//&|
6976                    p
6977                    q
6978                  }'
6979                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6980                       sed -n "$gl_absolute_header_sed"`'"'
6981           else
6982                gl_cv_next_stdint_h='<'stdint.h'>'
6983              fi
6984
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6988 $as_echo "$gl_cv_next_stdint_h" >&6; }
6989      fi
6990      NEXT_STDINT_H=$gl_cv_next_stdint_h
6991
6992      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6993        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6994        gl_next_as_first_directive='<'stdint.h'>'
6995      else
6996        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6997        gl_next_as_first_directive=$gl_cv_next_stdint_h
6998      fi
6999      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7000
7001
7002
7003
7004   if test $ac_cv_header_stdint_h = yes; then
7005     HAVE_STDINT_H=1
7006   else
7007     HAVE_STDINT_H=0
7008   fi
7009
7010
7011     if test $ac_cv_header_stdint_h = yes; then
7012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7013 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7014 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   gl_cv_header_working_stdint_h=no
7018        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h.  */
7020
7021
7022 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7023 #include <stdint.h>
7024 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
7025 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7026 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7027 #endif
7028
7029
7030   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7031      included before <wchar.h>.  */
7032   #include <stddef.h>
7033   #include <signal.h>
7034   #if HAVE_WCHAR_H
7035   # include <stdio.h>
7036   # include <time.h>
7037   # include <wchar.h>
7038   #endif
7039
7040
7041 #ifdef INT8_MAX
7042 int8_t a1 = INT8_MAX;
7043 int8_t a1min = INT8_MIN;
7044 #endif
7045 #ifdef INT16_MAX
7046 int16_t a2 = INT16_MAX;
7047 int16_t a2min = INT16_MIN;
7048 #endif
7049 #ifdef INT32_MAX
7050 int32_t a3 = INT32_MAX;
7051 int32_t a3min = INT32_MIN;
7052 #endif
7053 #ifdef INT64_MAX
7054 int64_t a4 = INT64_MAX;
7055 int64_t a4min = INT64_MIN;
7056 #endif
7057 #ifdef UINT8_MAX
7058 uint8_t b1 = UINT8_MAX;
7059 #else
7060 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7061 #endif
7062 #ifdef UINT16_MAX
7063 uint16_t b2 = UINT16_MAX;
7064 #endif
7065 #ifdef UINT32_MAX
7066 uint32_t b3 = UINT32_MAX;
7067 #endif
7068 #ifdef UINT64_MAX
7069 uint64_t b4 = UINT64_MAX;
7070 #endif
7071 int_least8_t c1 = INT8_C (0x7f);
7072 int_least8_t c1max = INT_LEAST8_MAX;
7073 int_least8_t c1min = INT_LEAST8_MIN;
7074 int_least16_t c2 = INT16_C (0x7fff);
7075 int_least16_t c2max = INT_LEAST16_MAX;
7076 int_least16_t c2min = INT_LEAST16_MIN;
7077 int_least32_t c3 = INT32_C (0x7fffffff);
7078 int_least32_t c3max = INT_LEAST32_MAX;
7079 int_least32_t c3min = INT_LEAST32_MIN;
7080 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7081 int_least64_t c4max = INT_LEAST64_MAX;
7082 int_least64_t c4min = INT_LEAST64_MIN;
7083 uint_least8_t d1 = UINT8_C (0xff);
7084 uint_least8_t d1max = UINT_LEAST8_MAX;
7085 uint_least16_t d2 = UINT16_C (0xffff);
7086 uint_least16_t d2max = UINT_LEAST16_MAX;
7087 uint_least32_t d3 = UINT32_C (0xffffffff);
7088 uint_least32_t d3max = UINT_LEAST32_MAX;
7089 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7090 uint_least64_t d4max = UINT_LEAST64_MAX;
7091 int_fast8_t e1 = INT_FAST8_MAX;
7092 int_fast8_t e1min = INT_FAST8_MIN;
7093 int_fast16_t e2 = INT_FAST16_MAX;
7094 int_fast16_t e2min = INT_FAST16_MIN;
7095 int_fast32_t e3 = INT_FAST32_MAX;
7096 int_fast32_t e3min = INT_FAST32_MIN;
7097 int_fast64_t e4 = INT_FAST64_MAX;
7098 int_fast64_t e4min = INT_FAST64_MIN;
7099 uint_fast8_t f1 = UINT_FAST8_MAX;
7100 uint_fast16_t f2 = UINT_FAST16_MAX;
7101 uint_fast32_t f3 = UINT_FAST32_MAX;
7102 uint_fast64_t f4 = UINT_FAST64_MAX;
7103 #ifdef INTPTR_MAX
7104 intptr_t g = INTPTR_MAX;
7105 intptr_t gmin = INTPTR_MIN;
7106 #endif
7107 #ifdef UINTPTR_MAX
7108 uintptr_t h = UINTPTR_MAX;
7109 #endif
7110 intmax_t i = INTMAX_MAX;
7111 uintmax_t j = UINTMAX_MAX;
7112
7113 #include <limits.h> /* for CHAR_BIT */
7114 #define TYPE_MINIMUM(t) \
7115   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7116 #define TYPE_MAXIMUM(t) \
7117   ((t) ((t) 0 < (t) -1 \
7118         ? (t) -1 \
7119         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7120 struct s {
7121   int check_PTRDIFF:
7122       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7123       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7124       ? 1 : -1;
7125   /* Detect bug in FreeBSD 6.0 / ia64.  */
7126   int check_SIG_ATOMIC:
7127       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7128       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7129       ? 1 : -1;
7130   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7131   int check_WCHAR:
7132       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7133       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7134       ? 1 : -1;
7135   /* Detect bug in mingw.  */
7136   int check_WINT:
7137       WINT_MIN == TYPE_MINIMUM (wint_t)
7138       && WINT_MAX == TYPE_MAXIMUM (wint_t)
7139       ? 1 : -1;
7140
7141   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
7142   int check_UINT8_C:
7143         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7144   int check_UINT16_C:
7145         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7146
7147   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
7148 #ifdef UINT8_MAX
7149   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7150 #endif
7151 #ifdef UINT16_MAX
7152   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7153 #endif
7154 #ifdef UINT32_MAX
7155   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7156 #endif
7157 #ifdef UINT64_MAX
7158   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7159 #endif
7160   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7161   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7162   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7163   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7164   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7165   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7166   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7167   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7168   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7169   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7170   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7171 };
7172
7173 int
7174 main ()
7175 {
7176
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182                                                     if test "$cross_compiling" = yes; then :
7183                  gl_cv_header_working_stdint_h=yes
7184
7185 else
7186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189
7190 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7191 #include <stdint.h>
7192
7193
7194   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7195      included before <wchar.h>.  */
7196   #include <stddef.h>
7197   #include <signal.h>
7198   #if HAVE_WCHAR_H
7199   # include <stdio.h>
7200   # include <time.h>
7201   # include <wchar.h>
7202   #endif
7203
7204
7205 #include <stdio.h>
7206 #include <string.h>
7207 #define MVAL(macro) MVAL1(macro)
7208 #define MVAL1(expression) #expression
7209 static const char *macro_values[] =
7210   {
7211 #ifdef INT8_MAX
7212     MVAL (INT8_MAX),
7213 #endif
7214 #ifdef INT16_MAX
7215     MVAL (INT16_MAX),
7216 #endif
7217 #ifdef INT32_MAX
7218     MVAL (INT32_MAX),
7219 #endif
7220 #ifdef INT64_MAX
7221     MVAL (INT64_MAX),
7222 #endif
7223 #ifdef UINT8_MAX
7224     MVAL (UINT8_MAX),
7225 #endif
7226 #ifdef UINT16_MAX
7227     MVAL (UINT16_MAX),
7228 #endif
7229 #ifdef UINT32_MAX
7230     MVAL (UINT32_MAX),
7231 #endif
7232 #ifdef UINT64_MAX
7233     MVAL (UINT64_MAX),
7234 #endif
7235     NULL
7236   };
7237
7238 int
7239 main ()
7240 {
7241
7242   const char **mv;
7243   for (mv = macro_values; *mv != NULL; mv++)
7244     {
7245       const char *value = *mv;
7246       /* Test whether it looks like a cast expression.  */
7247       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7248           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7249           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7250           || strncmp (value, "((int)"/*)*/, 6) == 0
7251           || strncmp (value, "((signed short)"/*)*/, 15) == 0
7252           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7253         return mv - macro_values + 1;
7254     }
7255   return 0;
7256
7257   ;
7258   return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_run "$LINENO"; then :
7262   gl_cv_header_working_stdint_h=yes
7263 fi
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265   conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 fi
7267
7268
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7274 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7275   fi
7276   if test "$gl_cv_header_working_stdint_h" = yes; then
7277     STDINT_H=
7278   else
7279             for ac_header in sys/inttypes.h sys/bitypes.h
7280 do :
7281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7283 eval as_val=\$$as_ac_Header
7284    if test "x$as_val" = x""yes; then :
7285   cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287 _ACEOF
7288
7289 fi
7290
7291 done
7292
7293     if test $ac_cv_header_sys_inttypes_h = yes; then
7294       HAVE_SYS_INTTYPES_H=1
7295     else
7296       HAVE_SYS_INTTYPES_H=0
7297     fi
7298
7299     if test $ac_cv_header_sys_bitypes_h = yes; then
7300       HAVE_SYS_BITYPES_H=1
7301     else
7302       HAVE_SYS_BITYPES_H=0
7303     fi
7304
7305
7306
7307
7308   if test $APPLE_UNIVERSAL_BUILD = 0; then
7309
7310
7311   for gltype in ptrdiff_t size_t ; do
7312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7313 $as_echo_n "checking for bit size of $gltype... " >&6; }
7314 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
7318   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7319      included before <wchar.h>.  */
7320   #include <stddef.h>
7321   #include <signal.h>
7322   #if HAVE_WCHAR_H
7323   # include <stdio.h>
7324   # include <time.h>
7325   # include <wchar.h>
7326   #endif
7327
7328 #include <limits.h>"; then :
7329
7330 else
7331   result=unknown
7332 fi
7333
7334        eval gl_cv_bitsizeof_${gltype}=\$result
7335
7336 fi
7337 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7339 $as_echo "$ac_res" >&6; }
7340     eval result=\$gl_cv_bitsizeof_${gltype}
7341     if test $result = unknown; then
7342                                                 result=0
7343     fi
7344     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7345     cat >>confdefs.h <<_ACEOF
7346 #define BITSIZEOF_${GLTYPE} $result
7347 _ACEOF
7348
7349     eval BITSIZEOF_${GLTYPE}=\$result
7350   done
7351
7352
7353   fi
7354
7355
7356   for gltype in sig_atomic_t wchar_t wint_t ; do
7357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7358 $as_echo_n "checking for bit size of $gltype... " >&6; }
7359 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
7363   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7364      included before <wchar.h>.  */
7365   #include <stddef.h>
7366   #include <signal.h>
7367   #if HAVE_WCHAR_H
7368   # include <stdio.h>
7369   # include <time.h>
7370   # include <wchar.h>
7371   #endif
7372
7373 #include <limits.h>"; then :
7374
7375 else
7376   result=unknown
7377 fi
7378
7379        eval gl_cv_bitsizeof_${gltype}=\$result
7380
7381 fi
7382 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7384 $as_echo "$ac_res" >&6; }
7385     eval result=\$gl_cv_bitsizeof_${gltype}
7386     if test $result = unknown; then
7387                                                 result=0
7388     fi
7389     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7390     cat >>confdefs.h <<_ACEOF
7391 #define BITSIZEOF_${GLTYPE} $result
7392 _ACEOF
7393
7394     eval BITSIZEOF_${GLTYPE}=\$result
7395   done
7396
7397
7398
7399
7400   for gltype in sig_atomic_t wchar_t wint_t ; do
7401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7402 $as_echo_n "checking whether $gltype is signed... " >&6; }
7403 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h.  */
7408
7409   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7410      included before <wchar.h>.  */
7411   #include <stddef.h>
7412   #include <signal.h>
7413   #if HAVE_WCHAR_H
7414   # include <stdio.h>
7415   # include <time.h>
7416   # include <wchar.h>
7417   #endif
7418
7419             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7420 int
7421 main ()
7422 {
7423
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429   result=yes
7430 else
7431   result=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434        eval gl_cv_type_${gltype}_signed=\$result
7435
7436 fi
7437 eval ac_res=\$gl_cv_type_${gltype}_signed
7438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7439 $as_echo "$ac_res" >&6; }
7440     eval result=\$gl_cv_type_${gltype}_signed
7441     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7442     if test "$result" = yes; then
7443       cat >>confdefs.h <<_ACEOF
7444 #define HAVE_SIGNED_${GLTYPE} 1
7445 _ACEOF
7446
7447       eval HAVE_SIGNED_${GLTYPE}=1
7448     else
7449       eval HAVE_SIGNED_${GLTYPE}=0
7450     fi
7451   done
7452
7453
7454   gl_cv_type_ptrdiff_t_signed=yes
7455   gl_cv_type_size_t_signed=no
7456   if test $APPLE_UNIVERSAL_BUILD = 0; then
7457
7458
7459   for gltype in ptrdiff_t size_t ; do
7460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7461 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7462 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   eval gl_cv_type_${gltype}_suffix=no
7466        eval result=\$gl_cv_type_${gltype}_signed
7467        if test "$result" = yes; then
7468          glsufu=
7469        else
7470          glsufu=u
7471        fi
7472        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7473          case $glsuf in
7474            '')  gltype1='int';;
7475            l)   gltype1='long int';;
7476            ll)  gltype1='long long int';;
7477            i64) gltype1='__int64';;
7478            u)   gltype1='unsigned int';;
7479            ul)  gltype1='unsigned long int';;
7480            ull) gltype1='unsigned long long int';;
7481            ui64)gltype1='unsigned __int64';;
7482          esac
7483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h.  */
7485
7486   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7487      included before <wchar.h>.  */
7488   #include <stddef.h>
7489   #include <signal.h>
7490   #if HAVE_WCHAR_H
7491   # include <stdio.h>
7492   # include <time.h>
7493   # include <wchar.h>
7494   #endif
7495
7496               extern $gltype foo;
7497               extern $gltype1 foo;
7498 int
7499 main ()
7500 {
7501
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507   eval gl_cv_type_${gltype}_suffix=\$glsuf
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510          eval result=\$gl_cv_type_${gltype}_suffix
7511          test "$result" != no && break
7512        done
7513 fi
7514 eval ac_res=\$gl_cv_type_${gltype}_suffix
7515                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7516 $as_echo "$ac_res" >&6; }
7517     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7518     eval result=\$gl_cv_type_${gltype}_suffix
7519     test "$result" = no && result=
7520     eval ${GLTYPE}_SUFFIX=\$result
7521     cat >>confdefs.h <<_ACEOF
7522 #define ${GLTYPE}_SUFFIX $result
7523 _ACEOF
7524
7525   done
7526
7527
7528   fi
7529
7530
7531   for gltype in sig_atomic_t wchar_t wint_t ; do
7532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7533 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7534 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   eval gl_cv_type_${gltype}_suffix=no
7538        eval result=\$gl_cv_type_${gltype}_signed
7539        if test "$result" = yes; then
7540          glsufu=
7541        else
7542          glsufu=u
7543        fi
7544        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7545          case $glsuf in
7546            '')  gltype1='int';;
7547            l)   gltype1='long int';;
7548            ll)  gltype1='long long int';;
7549            i64) gltype1='__int64';;
7550            u)   gltype1='unsigned int';;
7551            ul)  gltype1='unsigned long int';;
7552            ull) gltype1='unsigned long long int';;
7553            ui64)gltype1='unsigned __int64';;
7554          esac
7555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557
7558   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7559      included before <wchar.h>.  */
7560   #include <stddef.h>
7561   #include <signal.h>
7562   #if HAVE_WCHAR_H
7563   # include <stdio.h>
7564   # include <time.h>
7565   # include <wchar.h>
7566   #endif
7567
7568               extern $gltype foo;
7569               extern $gltype1 foo;
7570 int
7571 main ()
7572 {
7573
7574   ;
7575   return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579   eval gl_cv_type_${gltype}_suffix=\$glsuf
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582          eval result=\$gl_cv_type_${gltype}_suffix
7583          test "$result" != no && break
7584        done
7585 fi
7586 eval ac_res=\$gl_cv_type_${gltype}_suffix
7587                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7588 $as_echo "$ac_res" >&6; }
7589     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7590     eval result=\$gl_cv_type_${gltype}_suffix
7591     test "$result" = no && result=
7592     eval ${GLTYPE}_SUFFIX=\$result
7593     cat >>confdefs.h <<_ACEOF
7594 #define ${GLTYPE}_SUFFIX $result
7595 _ACEOF
7596
7597   done
7598
7599
7600
7601           if test $BITSIZEOF_WINT_T -lt 32; then
7602     BITSIZEOF_WINT_T=32
7603   fi
7604
7605     STDINT_H=stdint.h
7606   fi
7607
7608    if test -n "$STDINT_H"; then
7609   GL_GENERATE_STDINT_H_TRUE=
7610   GL_GENERATE_STDINT_H_FALSE='#'
7611 else
7612   GL_GENERATE_STDINT_H_TRUE='#'
7613   GL_GENERATE_STDINT_H_FALSE=
7614 fi
7615
7616
7617
7618
7619
7620   GNULIB_IMAXABS=0;
7621   GNULIB_IMAXDIV=0;
7622   GNULIB_STRTOIMAX=0;
7623   GNULIB_STRTOUMAX=0;
7624     HAVE_DECL_IMAXABS=1;
7625   HAVE_DECL_IMAXDIV=1;
7626   HAVE_DECL_STRTOIMAX=1;
7627   HAVE_DECL_STRTOUMAX=1;
7628   REPLACE_STRTOIMAX=0;
7629   INT32_MAX_LT_INTMAX_MAX=1;
7630   INT64_MAX_EQ_LONG_MAX='defined _LP64';
7631   PRI_MACROS_BROKEN=0;
7632   PRIPTR_PREFIX=__PRIPTR_PREFIX;
7633   UINT32_MAX_LT_UINTMAX_MAX=1;
7634   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650      if test $gl_cv_have_include_next = yes; then
7651        gl_cv_next_inttypes_h='<'inttypes.h'>'
7652      else
7653        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7654 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7655 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658
7659              if test $ac_cv_header_inttypes_h = yes; then
7660
7661
7662                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664 #include <inttypes.h>
7665
7666 _ACEOF
7667                                                                                                                         case "$host_os" in
7668                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
7669                  *)    gl_absname_cpp="$ac_cpp" ;;
7670                esac
7671
7672                case "$host_os" in
7673                  mingw*)
7674                                                                                                                                      gl_dirsep_regex='[/\\]'
7675                    ;;
7676                  *)
7677                    gl_dirsep_regex='\/'
7678                    ;;
7679                esac
7680                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7681
7682                gl_header_literal_regex=`echo 'inttypes.h' \
7683                                         | sed -e "$gl_make_literal_regex_sed"`
7684                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7685                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7686                    s|^/[^/]|//&|
7687                    p
7688                    q
7689                  }'
7690                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7691                       sed -n "$gl_absolute_header_sed"`'"'
7692           else
7693                gl_cv_next_inttypes_h='<'inttypes.h'>'
7694              fi
7695
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7699 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7700      fi
7701      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7702
7703      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7704        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7705        gl_next_as_first_directive='<'inttypes.h'>'
7706      else
7707        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7708        gl_next_as_first_directive=$gl_cv_next_inttypes_h
7709      fi
7710      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7711
7712
7713
7714
7715
7716
7717
7718
7719     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7720     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7722 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7723 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728 #include <inttypes.h>
7729
7730 int
7731 main ()
7732 {
7733 #undef $gl_func
7734   (void) $gl_func;
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740   eval "$as_gl_Symbol=yes"
7741 else
7742   eval "$as_gl_Symbol=no"
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 eval ac_res=\$$as_gl_Symbol
7747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7748 $as_echo "$ac_res" >&6; }
7749     eval as_val=\$$as_gl_Symbol
7750    if test "x$as_val" = x""yes; then :
7751   cat >>confdefs.h <<_ACEOF
7752 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7753 _ACEOF
7754
7755                      eval ac_cv_have_decl_$gl_func=yes
7756 fi
7757       done
7758
7759
7760
7761   for ac_header in inttypes.h
7762 do :
7763   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7764 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7765   cat >>confdefs.h <<_ACEOF
7766 #define HAVE_INTTYPES_H 1
7767 _ACEOF
7768
7769 fi
7770
7771 done
7772
7773   if test $ac_cv_header_inttypes_h = yes; then
7774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7775 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7776 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779
7780         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h.  */
7782
7783 #include <inttypes.h>
7784 #ifdef PRId32
7785 char *p = PRId32;
7786 #endif
7787
7788 int
7789 main ()
7790 {
7791
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797   gt_cv_inttypes_pri_broken=no
7798 else
7799   gt_cv_inttypes_pri_broken=yes
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7805 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7806   fi
7807   if test "$gt_cv_inttypes_pri_broken" = yes; then
7808
7809 cat >>confdefs.h <<_ACEOF
7810 #define PRI_MACROS_BROKEN 1
7811 _ACEOF
7812
7813     PRI_MACROS_BROKEN=1
7814   else
7815     PRI_MACROS_BROKEN=0
7816   fi
7817
7818
7819
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7821 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7822 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825
7826       if test "$cross_compiling" = yes; then :
7827
7828                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h.  */
7830
7831 #if defined arm || defined __arm || defined __arm__
7832   mixed_endianness
7833 #endif
7834
7835 _ACEOF
7836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7838   gl_cv_cc_double_expbit0="unknown"
7839 else
7840
7841                                                          :
7842 if test "${ac_cv_c_bigendian+set}" = set; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   ac_cv_c_bigendian=unknown
7846     # See if we're dealing with a universal compiler.
7847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849 #ifndef __APPLE_CC__
7850                not a universal capable compiler
7851              #endif
7852              typedef int dummy;
7853
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856
7857         # Check for potential -arch flags.  It is not universal unless
7858         # there are at least two -arch flags with different values.
7859         ac_arch=
7860         ac_prev=
7861         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7862          if test -n "$ac_prev"; then
7863            case $ac_word in
7864              i?86 | x86_64 | ppc | ppc64)
7865                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7866                  ac_arch=$ac_word
7867                else
7868                  ac_cv_c_bigendian=universal
7869                  break
7870                fi
7871                ;;
7872            esac
7873            ac_prev=
7874          elif test "x$ac_word" = "x-arch"; then
7875            ac_prev=arch
7876          fi
7877        done
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880     if test $ac_cv_c_bigendian = unknown; then
7881       # See if sys/param.h defines the BYTE_ORDER macro.
7882       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h.  */
7884 #include <sys/types.h>
7885              #include <sys/param.h>
7886
7887 int
7888 main ()
7889 {
7890 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7891                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7892                      && LITTLE_ENDIAN)
7893               bogus endian macros
7894              #endif
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901   # It does; now see whether it defined to BIG_ENDIAN or not.
7902          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904 #include <sys/types.h>
7905                 #include <sys/param.h>
7906
7907 int
7908 main ()
7909 {
7910 #if BYTE_ORDER != BIG_ENDIAN
7911                  not big endian
7912                 #endif
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919   ac_cv_c_bigendian=yes
7920 else
7921   ac_cv_c_bigendian=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926     fi
7927     if test $ac_cv_c_bigendian = unknown; then
7928       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h.  */
7931 #include <limits.h>
7932
7933 int
7934 main ()
7935 {
7936 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7937               bogus endian macros
7938              #endif
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945   # It does; now see whether it defined to _BIG_ENDIAN or not.
7946          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h.  */
7948 #include <limits.h>
7949
7950 int
7951 main ()
7952 {
7953 #ifndef _BIG_ENDIAN
7954                  not big endian
7955                 #endif
7956
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 if ac_fn_c_try_compile "$LINENO"; then :
7962   ac_cv_c_bigendian=yes
7963 else
7964   ac_cv_c_bigendian=no
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969     fi
7970     if test $ac_cv_c_bigendian = unknown; then
7971       # Compile a test program.
7972       if test "$cross_compiling" = yes; then :
7973   # Try to guess by grepping values from an object file.
7974          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h.  */
7976 short int ascii_mm[] =
7977                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7978                 short int ascii_ii[] =
7979                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7980                 int use_ascii (int i) {
7981                   return ascii_mm[i] + ascii_ii[i];
7982                 }
7983                 short int ebcdic_ii[] =
7984                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7985                 short int ebcdic_mm[] =
7986                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7987                 int use_ebcdic (int i) {
7988                   return ebcdic_mm[i] + ebcdic_ii[i];
7989                 }
7990                 extern int foo;
7991
7992 int
7993 main ()
7994 {
7995 return use_ascii (foo) == use_ebcdic (foo);
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8002               ac_cv_c_bigendian=yes
8003             fi
8004             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8005               if test "$ac_cv_c_bigendian" = unknown; then
8006                 ac_cv_c_bigendian=no
8007               else
8008                 # finding both strings is unlikely to happen, but who knows?
8009                 ac_cv_c_bigendian=unknown
8010               fi
8011             fi
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 else
8015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h.  */
8017 $ac_includes_default
8018 int
8019 main ()
8020 {
8021
8022              /* Are we little or big endian?  From Harbison&Steele.  */
8023              union
8024              {
8025                long int l;
8026                char c[sizeof (long int)];
8027              } u;
8028              u.l = 1;
8029              return u.c[sizeof (long int) - 1] == 1;
8030
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_run "$LINENO"; then :
8036   ac_cv_c_bigendian=no
8037 else
8038   ac_cv_c_bigendian=yes
8039 fi
8040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8041   conftest.$ac_objext conftest.beam conftest.$ac_ext
8042 fi
8043
8044     fi
8045 fi
8046 :
8047  case $ac_cv_c_bigendian in #(
8048    yes)
8049      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8050    no)
8051      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8052    universal)
8053
8054 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8055
8056      ;; #(
8057    *)
8058      gl_cv_cc_double_expbit0="unknown" ;;
8059  esac
8060
8061
8062 fi
8063 rm -f conftest*
8064
8065
8066 else
8067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h.  */
8069
8070 #include <float.h>
8071 #include <stddef.h>
8072 #include <stdio.h>
8073 #include <string.h>
8074 #define NWORDS \
8075   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8076 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8077 static unsigned int ored_words[NWORDS];
8078 static unsigned int anded_words[NWORDS];
8079 static void add_to_ored_words (double x)
8080 {
8081   memory_double m;
8082   size_t i;
8083   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
8084   memset (&m, 0, sizeof (memory_double));
8085   m.value = x;
8086   for (i = 0; i < NWORDS; i++)
8087     {
8088       ored_words[i] |= m.word[i];
8089       anded_words[i] &= m.word[i];
8090     }
8091 }
8092 int main ()
8093 {
8094   size_t j;
8095   FILE *fp = fopen ("conftest.out", "w");
8096   if (fp == NULL)
8097     return 1;
8098   for (j = 0; j < NWORDS; j++)
8099     anded_words[j] = ~ (unsigned int) 0;
8100   add_to_ored_words (0.25);
8101   add_to_ored_words (0.5);
8102   add_to_ored_words (1.0);
8103   add_to_ored_words (2.0);
8104   add_to_ored_words (4.0);
8105   /* Remove bits that are common (e.g. if representation of the first mantissa
8106      bit is explicit).  */
8107   for (j = 0; j < NWORDS; j++)
8108     ored_words[j] &= ~anded_words[j];
8109   /* Now find the nonzero word.  */
8110   for (j = 0; j < NWORDS; j++)
8111     if (ored_words[j] != 0)
8112       break;
8113   if (j < NWORDS)
8114     {
8115       size_t i;
8116       for (i = j + 1; i < NWORDS; i++)
8117         if (ored_words[i] != 0)
8118           {
8119             fprintf (fp, "unknown");
8120             return (fclose (fp) != 0);
8121           }
8122       for (i = 0; ; i++)
8123         if ((ored_words[j] >> i) & 1)
8124           {
8125             fprintf (fp, "word %d bit %d", (int) j, (int) i);
8126             return (fclose (fp) != 0);
8127           }
8128     }
8129   fprintf (fp, "unknown");
8130   return (fclose (fp) != 0);
8131 }
8132
8133 _ACEOF
8134 if ac_fn_c_try_run "$LINENO"; then :
8135   gl_cv_cc_double_expbit0=`cat conftest.out`
8136 else
8137   gl_cv_cc_double_expbit0="unknown"
8138 fi
8139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8140   conftest.$ac_objext conftest.beam conftest.$ac_ext
8141 fi
8142
8143       rm -f conftest.out
8144
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8147 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8148   case "$gl_cv_cc_double_expbit0" in
8149     word*bit*)
8150       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8151       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define DBL_EXPBIT0_WORD $word
8155 _ACEOF
8156
8157
8158 cat >>confdefs.h <<_ACEOF
8159 #define DBL_EXPBIT0_BIT $bit
8160 _ACEOF
8161
8162       ;;
8163   esac
8164
8165
8166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8167 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8168 if test "${ac_cv_c_bigendian+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   ac_cv_c_bigendian=unknown
8172     # See if we're dealing with a universal compiler.
8173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h.  */
8175 #ifndef __APPLE_CC__
8176                not a universal capable compiler
8177              #endif
8178              typedef int dummy;
8179
8180 _ACEOF
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182
8183         # Check for potential -arch flags.  It is not universal unless
8184         # there are at least two -arch flags with different values.
8185         ac_arch=
8186         ac_prev=
8187         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8188          if test -n "$ac_prev"; then
8189            case $ac_word in
8190              i?86 | x86_64 | ppc | ppc64)
8191                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8192                  ac_arch=$ac_word
8193                else
8194                  ac_cv_c_bigendian=universal
8195                  break
8196                fi
8197                ;;
8198            esac
8199            ac_prev=
8200          elif test "x$ac_word" = "x-arch"; then
8201            ac_prev=arch
8202          fi
8203        done
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206     if test $ac_cv_c_bigendian = unknown; then
8207       # See if sys/param.h defines the BYTE_ORDER macro.
8208       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h.  */
8210 #include <sys/types.h>
8211              #include <sys/param.h>
8212
8213 int
8214 main ()
8215 {
8216 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8217                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8218                      && LITTLE_ENDIAN)
8219               bogus endian macros
8220              #endif
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227   # It does; now see whether it defined to BIG_ENDIAN or not.
8228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230 #include <sys/types.h>
8231                 #include <sys/param.h>
8232
8233 int
8234 main ()
8235 {
8236 #if BYTE_ORDER != BIG_ENDIAN
8237                  not big endian
8238                 #endif
8239
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245   ac_cv_c_bigendian=yes
8246 else
8247   ac_cv_c_bigendian=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252     fi
8253     if test $ac_cv_c_bigendian = unknown; then
8254       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8255       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257 #include <limits.h>
8258
8259 int
8260 main ()
8261 {
8262 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8263               bogus endian macros
8264              #endif
8265
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271   # It does; now see whether it defined to _BIG_ENDIAN or not.
8272          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274 #include <limits.h>
8275
8276 int
8277 main ()
8278 {
8279 #ifndef _BIG_ENDIAN
8280                  not big endian
8281                 #endif
8282
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288   ac_cv_c_bigendian=yes
8289 else
8290   ac_cv_c_bigendian=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295     fi
8296     if test $ac_cv_c_bigendian = unknown; then
8297       # Compile a test program.
8298       if test "$cross_compiling" = yes; then :
8299   # Try to guess by grepping values from an object file.
8300          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h.  */
8302 short int ascii_mm[] =
8303                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8304                 short int ascii_ii[] =
8305                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8306                 int use_ascii (int i) {
8307                   return ascii_mm[i] + ascii_ii[i];
8308                 }
8309                 short int ebcdic_ii[] =
8310                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8311                 short int ebcdic_mm[] =
8312                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8313                 int use_ebcdic (int i) {
8314                   return ebcdic_mm[i] + ebcdic_ii[i];
8315                 }
8316                 extern int foo;
8317
8318 int
8319 main ()
8320 {
8321 return use_ascii (foo) == use_ebcdic (foo);
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8328               ac_cv_c_bigendian=yes
8329             fi
8330             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8331               if test "$ac_cv_c_bigendian" = unknown; then
8332                 ac_cv_c_bigendian=no
8333               else
8334                 # finding both strings is unlikely to happen, but who knows?
8335                 ac_cv_c_bigendian=unknown
8336               fi
8337             fi
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 else
8341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h.  */
8343 $ac_includes_default
8344 int
8345 main ()
8346 {
8347
8348              /* Are we little or big endian?  From Harbison&Steele.  */
8349              union
8350              {
8351                long int l;
8352                char c[sizeof (long int)];
8353              } u;
8354              u.l = 1;
8355              return u.c[sizeof (long int) - 1] == 1;
8356
8357   ;
8358   return 0;
8359 }
8360 _ACEOF
8361 if ac_fn_c_try_run "$LINENO"; then :
8362   ac_cv_c_bigendian=no
8363 else
8364   ac_cv_c_bigendian=yes
8365 fi
8366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8367   conftest.$ac_objext conftest.beam conftest.$ac_ext
8368 fi
8369
8370     fi
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8373 $as_echo "$ac_cv_c_bigendian" >&6; }
8374  case $ac_cv_c_bigendian in #(
8375    yes)
8376      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8377 ;; #(
8378    no)
8379       ;; #(
8380    universal)
8381
8382 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8383
8384      ;; #(
8385    *)
8386      as_fn_error "unknown endianness
8387  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8388  esac
8389
8390
8391
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8393 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8394 if test "${am_cv_langinfo_codeset+set}" = set; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #include <langinfo.h>
8400 int
8401 main ()
8402 {
8403 char* cs = nl_langinfo(CODESET); return !cs;
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409   am_cv_langinfo_codeset=yes
8410 else
8411   am_cv_langinfo_codeset=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414     conftest$ac_exeext conftest.$ac_ext
8415
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8418 $as_echo "$am_cv_langinfo_codeset" >&6; }
8419   if test $am_cv_langinfo_codeset = yes; then
8420
8421 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8422
8423   fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8435 $as_echo_n "checking for working fcntl.h... " >&6; }
8436 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   if test "$cross_compiling" = yes; then :
8440   gl_cv_header_working_fcntl_h=cross-compiling
8441 else
8442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h.  */
8444 #include <sys/types.h>
8445            #include <sys/stat.h>
8446            #if HAVE_UNISTD_H
8447            # include <unistd.h>
8448            #else /* on Windows with MSVC */
8449            # include <io.h>
8450            # include <stdlib.h>
8451            # defined sleep(n) _sleep ((n) * 1000)
8452            #endif
8453            #include <fcntl.h>
8454            #ifndef O_NOATIME
8455             #define O_NOATIME 0
8456            #endif
8457            #ifndef O_NOFOLLOW
8458             #define O_NOFOLLOW 0
8459            #endif
8460            static int const constants[] =
8461             {
8462               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8463               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8464             };
8465
8466 int
8467 main ()
8468 {
8469
8470             int result = !constants;
8471             #if HAVE_SYMLINK
8472             {
8473               static char const sym[] = "conftest.sym";
8474               if (symlink ("/dev/null", sym) != 0)
8475                 result |= 2;
8476               else
8477                 {
8478                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8479                   if (fd >= 0)
8480                     {
8481                       close (fd);
8482                       result |= 4;
8483                     }
8484                 }
8485               if (unlink (sym) != 0 || symlink (".", sym) != 0)
8486                 result |= 2;
8487               else
8488                 {
8489                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8490                   if (fd >= 0)
8491                     {
8492                       close (fd);
8493                       result |= 4;
8494                     }
8495                 }
8496               unlink (sym);
8497             }
8498             #endif
8499             {
8500               static char const file[] = "confdefs.h";
8501               int fd = open (file, O_RDONLY | O_NOATIME);
8502               if (fd < 0)
8503                 result |= 8;
8504               else
8505                 {
8506                   struct stat st0;
8507                   if (fstat (fd, &st0) != 0)
8508                     result |= 16;
8509                   else
8510                     {
8511                       char c;
8512                       sleep (1);
8513                       if (read (fd, &c, 1) != 1)
8514                         result |= 24;
8515                       else
8516                         {
8517                           if (close (fd) != 0)
8518                             result |= 32;
8519                           else
8520                             {
8521                               struct stat st1;
8522                               if (stat (file, &st1) != 0)
8523                                 result |= 40;
8524                               else
8525                                 if (st0.st_atime != st1.st_atime)
8526                                   result |= 64;
8527                             }
8528                         }
8529                     }
8530                 }
8531             }
8532             return result;
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 if ac_fn_c_try_run "$LINENO"; then :
8538   gl_cv_header_working_fcntl_h=yes
8539 else
8540   case $? in #(
8541         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8542         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8543         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8544          *) gl_cv_header_working_fcntl_h='no';;
8545         esac
8546 fi
8547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8548   conftest.$ac_objext conftest.beam conftest.$ac_ext
8549 fi
8550
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8553 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8554
8555   case $gl_cv_header_working_fcntl_h in #(
8556   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8557   *) ac_val=1;;
8558   esac
8559
8560 cat >>confdefs.h <<_ACEOF
8561 #define HAVE_WORKING_O_NOATIME $ac_val
8562 _ACEOF
8563
8564
8565   case $gl_cv_header_working_fcntl_h in #(
8566   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8567   *) ac_val=1;;
8568   esac
8569
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8572 _ACEOF
8573
8574
8575 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8576 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8577   ac_have_decl=1
8578 else
8579   ac_have_decl=0
8580 fi
8581
8582 cat >>confdefs.h <<_ACEOF
8583 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8584 _ACEOF
8585
8586
8587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8588 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8589 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h.  */
8594
8595 #include <features.h>
8596 #ifdef __GNU_LIBRARY__
8597  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8598   Lucky GNU user
8599  #endif
8600 #endif
8601 #ifdef __UCLIBC__
8602  Lucky user
8603 #endif
8604
8605 _ACEOF
8606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607   $EGREP "Lucky" >/dev/null 2>&1; then :
8608   ac_cv_gnu_library_2_1=yes
8609 else
8610   ac_cv_gnu_library_2_1=no
8611 fi
8612 rm -f conftest*
8613
8614
8615
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8618 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8619
8620     GLIBC21="$ac_cv_gnu_library_2_1"
8621
8622
8623
8624
8625
8626   GNULIB_BTOWC=0;
8627   GNULIB_WCTOB=0;
8628   GNULIB_MBSINIT=0;
8629   GNULIB_MBRTOWC=0;
8630   GNULIB_MBRLEN=0;
8631   GNULIB_MBSRTOWCS=0;
8632   GNULIB_MBSNRTOWCS=0;
8633   GNULIB_WCRTOMB=0;
8634   GNULIB_WCSRTOMBS=0;
8635   GNULIB_WCSNRTOMBS=0;
8636   GNULIB_WCWIDTH=0;
8637   GNULIB_WMEMCHR=0;
8638   GNULIB_WMEMCMP=0;
8639   GNULIB_WMEMCPY=0;
8640   GNULIB_WMEMMOVE=0;
8641   GNULIB_WMEMSET=0;
8642   GNULIB_WCSLEN=0;
8643   GNULIB_WCSNLEN=0;
8644   GNULIB_WCSCPY=0;
8645   GNULIB_WCPCPY=0;
8646   GNULIB_WCSNCPY=0;
8647   GNULIB_WCPNCPY=0;
8648   GNULIB_WCSCAT=0;
8649   GNULIB_WCSNCAT=0;
8650   GNULIB_WCSCMP=0;
8651   GNULIB_WCSNCMP=0;
8652   GNULIB_WCSCASECMP=0;
8653   GNULIB_WCSNCASECMP=0;
8654   GNULIB_WCSCOLL=0;
8655   GNULIB_WCSXFRM=0;
8656   GNULIB_WCSDUP=0;
8657   GNULIB_WCSCHR=0;
8658   GNULIB_WCSRCHR=0;
8659   GNULIB_WCSCSPN=0;
8660   GNULIB_WCSSPN=0;
8661   GNULIB_WCSPBRK=0;
8662   GNULIB_WCSSTR=0;
8663   GNULIB_WCSTOK=0;
8664   GNULIB_WCSWIDTH=0;
8665     HAVE_BTOWC=1;
8666   HAVE_MBSINIT=1;
8667   HAVE_MBRTOWC=1;
8668   HAVE_MBRLEN=1;
8669   HAVE_MBSRTOWCS=1;
8670   HAVE_MBSNRTOWCS=1;
8671   HAVE_WCRTOMB=1;
8672   HAVE_WCSRTOMBS=1;
8673   HAVE_WCSNRTOMBS=1;
8674   HAVE_WMEMCHR=1;
8675   HAVE_WMEMCMP=1;
8676   HAVE_WMEMCPY=1;
8677   HAVE_WMEMMOVE=1;
8678   HAVE_WMEMSET=1;
8679   HAVE_WCSLEN=1;
8680   HAVE_WCSNLEN=1;
8681   HAVE_WCSCPY=1;
8682   HAVE_WCPCPY=1;
8683   HAVE_WCSNCPY=1;
8684   HAVE_WCPNCPY=1;
8685   HAVE_WCSCAT=1;
8686   HAVE_WCSNCAT=1;
8687   HAVE_WCSCMP=1;
8688   HAVE_WCSNCMP=1;
8689   HAVE_WCSCASECMP=1;
8690   HAVE_WCSNCASECMP=1;
8691   HAVE_WCSCOLL=1;
8692   HAVE_WCSXFRM=1;
8693   HAVE_WCSDUP=1;
8694   HAVE_WCSCHR=1;
8695   HAVE_WCSRCHR=1;
8696   HAVE_WCSCSPN=1;
8697   HAVE_WCSSPN=1;
8698   HAVE_WCSPBRK=1;
8699   HAVE_WCSSTR=1;
8700   HAVE_WCSTOK=1;
8701   HAVE_WCSWIDTH=1;
8702   HAVE_DECL_WCTOB=1;
8703   HAVE_DECL_WCWIDTH=1;
8704   REPLACE_MBSTATE_T=0;
8705   REPLACE_BTOWC=0;
8706   REPLACE_WCTOB=0;
8707   REPLACE_MBSINIT=0;
8708   REPLACE_MBRTOWC=0;
8709   REPLACE_MBRLEN=0;
8710   REPLACE_MBSRTOWCS=0;
8711   REPLACE_MBSNRTOWCS=0;
8712   REPLACE_WCRTOMB=0;
8713   REPLACE_WCSRTOMBS=0;
8714   REPLACE_WCSNRTOMBS=0;
8715   REPLACE_WCWIDTH=0;
8716   REPLACE_WCSWIDTH=0;
8717
8718
8719
8720
8721
8722
8723
8724
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8726 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8727 if test "${gt_cv_locale_ja+set}" = set; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730
8731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h.  */
8733
8734 #include <locale.h>
8735 #include <time.h>
8736 #if HAVE_LANGINFO_CODESET
8737 # include <langinfo.h>
8738 #endif
8739 #include <stdlib.h>
8740 #include <string.h>
8741 struct tm t;
8742 char buf[16];
8743 int main ()
8744 {
8745   const char *p;
8746   /* Check whether the given locale name is recognized by the system.  */
8747 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8748   /* On native Windows, setlocale(category, "") looks at the system settings,
8749      not at the environment variables.  Also, when an encoding suffix such
8750      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8751      category of the locale to "C".  */
8752   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8753       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8754     return 1;
8755 #else
8756   if (setlocale (LC_ALL, "") == NULL) return 1;
8757 #endif
8758   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8759      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8760      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8761      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8762      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8763      some unit tests fail.
8764      On MirBSD 10, when an unsupported locale is specified, setlocale()
8765      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
8766 #if HAVE_LANGINFO_CODESET
8767   {
8768     const char *cs = nl_langinfo (CODESET);
8769     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8770         || strcmp (cs, "UTF-8") == 0)
8771       return 1;
8772   }
8773 #endif
8774 #ifdef __CYGWIN__
8775   /* On Cygwin, avoid locale names without encoding suffix, because the
8776      locale_charset() function relies on the encoding suffix.  Note that
8777      LC_ALL is set on the command line.  */
8778   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8779 #endif
8780   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
8781      on Cygwin 1.5.x.  */
8782   if (MB_CUR_MAX == 1)
8783     return 1;
8784   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8785      This excludes the UTF-8 encoding (except on MirBSD).  */
8786   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8787   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8788   for (p = buf; *p != '\0'; p++)
8789     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8790       return 1;
8791   return 0;
8792 }
8793
8794 _ACEOF
8795     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8796   (eval $ac_link) 2>&5
8797   ac_status=$?
8798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8800       case "$host_os" in
8801         # Handle native Windows specially, because there setlocale() interprets
8802         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8803         # "fr" or "fra" as "French" or "French_France.1252",
8804         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8805         # "ja" as "Japanese" or "Japanese_Japan.932",
8806         # and similar.
8807         mingw*)
8808           # Note that on native Windows, the Japanese locale is
8809           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8810           # cannot use it here.
8811           gt_cv_locale_ja=none
8812           ;;
8813         *)
8814           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8815           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8816           # configure script would override the LC_ALL setting. Likewise for
8817           # LC_CTYPE, which is also set at the beginning of the configure script.
8818           # Test for the AIX locale name.
8819           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8820             gt_cv_locale_ja=ja_JP
8821           else
8822             # Test for the locale name with explicit encoding suffix.
8823             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8824               gt_cv_locale_ja=ja_JP.EUC-JP
8825             else
8826               # Test for the HP-UX, OSF/1, NetBSD locale name.
8827               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8828                 gt_cv_locale_ja=ja_JP.eucJP
8829               else
8830                 # Test for the IRIX, FreeBSD locale name.
8831                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8832                   gt_cv_locale_ja=ja_JP.EUC
8833                 else
8834                   # Test for the Solaris 7 locale name.
8835                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836                     gt_cv_locale_ja=ja
8837                   else
8838                     # Special test for NetBSD 1.6.
8839                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8840                       gt_cv_locale_ja=ja_JP.eucJP
8841                     else
8842                       # None found.
8843                       gt_cv_locale_ja=none
8844                     fi
8845                   fi
8846                 fi
8847               fi
8848             fi
8849           fi
8850           ;;
8851       esac
8852     fi
8853     rm -fr conftest*
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8857 $as_echo "$gt_cv_locale_ja" >&6; }
8858   LOCALE_JA=$gt_cv_locale_ja
8859
8860
8861
8862
8863
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8865 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8866 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869
8870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h.  */
8872
8873 #include <locale.h>
8874 #include <stdlib.h>
8875 #include <time.h>
8876 #if HAVE_LANGINFO_CODESET
8877 # include <langinfo.h>
8878 #endif
8879 #include <stdlib.h>
8880 #include <string.h>
8881 struct tm t;
8882 char buf[16];
8883 int main ()
8884 {
8885   const char *p;
8886   /* Check whether the given locale name is recognized by the system.  */
8887 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8888   /* On native Windows, setlocale(category, "") looks at the system settings,
8889      not at the environment variables.  Also, when an encoding suffix such
8890      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8891      category of the locale to "C".  */
8892   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8893       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8894     return 1;
8895 #else
8896   if (setlocale (LC_ALL, "") == NULL) return 1;
8897 #endif
8898   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8899      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8900      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8901      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8902      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8903      some unit tests fail.
8904      On MirBSD 10, when an unsupported locale is specified, setlocale()
8905      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
8906 #if HAVE_LANGINFO_CODESET
8907   {
8908     const char *cs = nl_langinfo (CODESET);
8909     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8910         || strcmp (cs, "UTF-8") == 0)
8911       return 1;
8912   }
8913 #endif
8914 #ifdef __CYGWIN__
8915   /* On Cygwin, avoid locale names without encoding suffix, because the
8916      locale_charset() function relies on the encoding suffix.  Note that
8917      LC_ALL is set on the command line.  */
8918   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8919 #endif
8920   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8921      This excludes the UTF-8 encoding (except on MirBSD).  */
8922   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8923   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8924   for (p = buf; *p != '\0'; p++)
8925     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8926       return 1;
8927   /* Check whether a typical GB18030 multibyte sequence is recognized as a
8928      single wide character.  This excludes the GB2312 and GBK encodings.  */
8929   if (mblen ("\203\062\332\066", 5) != 4)
8930     return 1;
8931   return 0;
8932 }
8933
8934 _ACEOF
8935     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8936   (eval $ac_link) 2>&5
8937   ac_status=$?
8938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8940       case "$host_os" in
8941         # Handle native Windows specially, because there setlocale() interprets
8942         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8943         # "fr" or "fra" as "French" or "French_France.1252",
8944         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8945         # "ja" as "Japanese" or "Japanese_Japan.932",
8946         # and similar.
8947         mingw*)
8948           # Test for the hypothetical native Windows locale name.
8949           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8950             gt_cv_locale_zh_CN=Chinese_China.54936
8951           else
8952             # None found.
8953             gt_cv_locale_zh_CN=none
8954           fi
8955           ;;
8956         solaris2.8)
8957           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8958           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8959           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8960           gt_cv_locale_zh_CN=none
8961           ;;
8962         *)
8963           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8964           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8965           # configure script would override the LC_ALL setting. Likewise for
8966           # LC_CTYPE, which is also set at the beginning of the configure script.
8967           # Test for the locale name without encoding suffix.
8968           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8969             gt_cv_locale_zh_CN=zh_CN
8970           else
8971             # Test for the locale name with explicit encoding suffix.
8972             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8973               gt_cv_locale_zh_CN=zh_CN.GB18030
8974             else
8975               # None found.
8976               gt_cv_locale_zh_CN=none
8977             fi
8978           fi
8979           ;;
8980       esac
8981     else
8982       # If there was a link error, due to mblen(), the system is so old that
8983       # it certainly doesn't have a chinese locale.
8984       gt_cv_locale_zh_CN=none
8985     fi
8986     rm -fr conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8990 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8991   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8992
8993
8994
8995
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8997 $as_echo_n "checking for a french Unicode locale... " >&6; }
8998 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001
9002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h.  */
9004
9005 #include <locale.h>
9006 #include <time.h>
9007 #if HAVE_LANGINFO_CODESET
9008 # include <langinfo.h>
9009 #endif
9010 #include <stdlib.h>
9011 #include <string.h>
9012 struct tm t;
9013 char buf[16];
9014 int main () {
9015   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
9016      imitates locale dependent behaviour by looking at the environment
9017      variables, and all locales use the UTF-8 encoding.  */
9018 #if !(defined __BEOS__ || defined __HAIKU__)
9019   /* Check whether the given locale name is recognized by the system.  */
9020 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9021   /* On native Windows, setlocale(category, "") looks at the system settings,
9022      not at the environment variables.  Also, when an encoding suffix such
9023      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9024      category of the locale to "C".  */
9025   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9026       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9027     return 1;
9028 # else
9029   if (setlocale (LC_ALL, "") == NULL) return 1;
9030 # endif
9031   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9032      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9033      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9034      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9035      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9036      some unit tests fail.  */
9037 # if HAVE_LANGINFO_CODESET
9038   {
9039     const char *cs = nl_langinfo (CODESET);
9040     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9041       return 1;
9042   }
9043 # endif
9044 # ifdef __CYGWIN__
9045   /* On Cygwin, avoid locale names without encoding suffix, because the
9046      locale_charset() function relies on the encoding suffix.  Note that
9047      LC_ALL is set on the command line.  */
9048   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9049 # endif
9050   /* Check whether in the abbreviation of the second month, the second
9051      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9052      two bytes long, with UTF-8 encoding.  */
9053   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9054   if (strftime (buf, sizeof (buf), "%b", &t) < 4
9055       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9056     return 1;
9057 #endif
9058 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
9059   /* Check whether the decimal separator is a comma.
9060      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9061      are nl_langinfo(RADIXCHAR) are both ".".  */
9062   if (localeconv () ->decimal_point[0] != ',') return 1;
9063 #endif
9064   return 0;
9065 }
9066
9067 _ACEOF
9068     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9069   (eval $ac_link) 2>&5
9070   ac_status=$?
9071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9073       case "$host_os" in
9074         # Handle native Windows specially, because there setlocale() interprets
9075         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9076         # "fr" or "fra" as "French" or "French_France.1252",
9077         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9078         # "ja" as "Japanese" or "Japanese_Japan.932",
9079         # and similar.
9080         mingw*)
9081           # Test for the hypothetical native Windows locale name.
9082           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9083             gt_cv_locale_fr_utf8=French_France.65001
9084           else
9085             # None found.
9086             gt_cv_locale_fr_utf8=none
9087           fi
9088           ;;
9089         *)
9090           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9091           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9092           # configure script would override the LC_ALL setting. Likewise for
9093           # LC_CTYPE, which is also set at the beginning of the configure script.
9094           # Test for the usual locale name.
9095           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9096             gt_cv_locale_fr_utf8=fr_FR
9097           else
9098             # Test for the locale name with explicit encoding suffix.
9099             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9100               gt_cv_locale_fr_utf8=fr_FR.UTF-8
9101             else
9102               # Test for the Solaris 7 locale name.
9103               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9104                 gt_cv_locale_fr_utf8=fr.UTF-8
9105               else
9106                 # None found.
9107                 gt_cv_locale_fr_utf8=none
9108               fi
9109             fi
9110           fi
9111           ;;
9112       esac
9113     fi
9114     rm -fr conftest*
9115
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9118 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9119   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9120
9121
9122
9123
9124
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9126 $as_echo_n "checking for a traditional french locale... " >&6; }
9127 if test "${gt_cv_locale_fr+set}" = set; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130
9131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h.  */
9133
9134 #include <locale.h>
9135 #include <time.h>
9136 #if HAVE_LANGINFO_CODESET
9137 # include <langinfo.h>
9138 #endif
9139 #include <stdlib.h>
9140 #include <string.h>
9141 struct tm t;
9142 char buf[16];
9143 int main () {
9144   /* Check whether the given locale name is recognized by the system.  */
9145 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9146   /* On native Windows, setlocale(category, "") looks at the system settings,
9147      not at the environment variables.  Also, when an encoding suffix such
9148      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9149      category of the locale to "C".  */
9150   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9151       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9152     return 1;
9153 #else
9154   if (setlocale (LC_ALL, "") == NULL) return 1;
9155 #endif
9156   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9157      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9158      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9159      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9160      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9161      some unit tests fail.
9162      On MirBSD 10, when an unsupported locale is specified, setlocale()
9163      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
9164 #if HAVE_LANGINFO_CODESET
9165   {
9166     const char *cs = nl_langinfo (CODESET);
9167     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9168         || strcmp (cs, "UTF-8") == 0)
9169       return 1;
9170   }
9171 #endif
9172 #ifdef __CYGWIN__
9173   /* On Cygwin, avoid locale names without encoding suffix, because the
9174      locale_charset() function relies on the encoding suffix.  Note that
9175      LC_ALL is set on the command line.  */
9176   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9177 #endif
9178   /* Check whether in the abbreviation of the second month, the second
9179      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9180      one byte long. This excludes the UTF-8 encoding.  */
9181   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9182   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9183 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
9184   /* Check whether the decimal separator is a comma.
9185      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9186      are nl_langinfo(RADIXCHAR) are both ".".  */
9187   if (localeconv () ->decimal_point[0] != ',') return 1;
9188 #endif
9189   return 0;
9190 }
9191
9192 _ACEOF
9193     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9194   (eval $ac_link) 2>&5
9195   ac_status=$?
9196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9197   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9198       case "$host_os" in
9199         # Handle native Windows specially, because there setlocale() interprets
9200         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9201         # "fr" or "fra" as "French" or "French_France.1252",
9202         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9203         # "ja" as "Japanese" or "Japanese_Japan.932",
9204         # and similar.
9205         mingw*)
9206           # Test for the native Windows locale name.
9207           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9208             gt_cv_locale_fr=French_France.1252
9209           else
9210             # None found.
9211             gt_cv_locale_fr=none
9212           fi
9213           ;;
9214         *)
9215           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9216           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9217           # configure script would override the LC_ALL setting. Likewise for
9218           # LC_CTYPE, which is also set at the beginning of the configure script.
9219           # Test for the usual locale name.
9220           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9221             gt_cv_locale_fr=fr_FR
9222           else
9223             # Test for the locale name with explicit encoding suffix.
9224             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9225               gt_cv_locale_fr=fr_FR.ISO-8859-1
9226             else
9227               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9228               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9229                 gt_cv_locale_fr=fr_FR.ISO8859-1
9230               else
9231                 # Test for the HP-UX locale name.
9232                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9233                   gt_cv_locale_fr=fr_FR.iso88591
9234                 else
9235                   # Test for the Solaris 7 locale name.
9236                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9237                     gt_cv_locale_fr=fr
9238                   else
9239                     # None found.
9240                     gt_cv_locale_fr=none
9241                   fi
9242                 fi
9243               fi
9244             fi
9245           fi
9246           ;;
9247       esac
9248     fi
9249     rm -fr conftest*
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9253 $as_echo "$gt_cv_locale_fr" >&6; }
9254   LOCALE_FR=$gt_cv_locale_fr
9255
9256
9257
9258
9259
9260
9261
9262   GNULIB_FFSL=0;
9263   GNULIB_FFSLL=0;
9264   GNULIB_MEMCHR=0;
9265   GNULIB_MEMMEM=0;
9266   GNULIB_MEMPCPY=0;
9267   GNULIB_MEMRCHR=0;
9268   GNULIB_RAWMEMCHR=0;
9269   GNULIB_STPCPY=0;
9270   GNULIB_STPNCPY=0;
9271   GNULIB_STRCHRNUL=0;
9272   GNULIB_STRDUP=0;
9273   GNULIB_STRNCAT=0;
9274   GNULIB_STRNDUP=0;
9275   GNULIB_STRNLEN=0;
9276   GNULIB_STRPBRK=0;
9277   GNULIB_STRSEP=0;
9278   GNULIB_STRSTR=0;
9279   GNULIB_STRCASESTR=0;
9280   GNULIB_STRTOK_R=0;
9281   GNULIB_MBSLEN=0;
9282   GNULIB_MBSNLEN=0;
9283   GNULIB_MBSCHR=0;
9284   GNULIB_MBSRCHR=0;
9285   GNULIB_MBSSTR=0;
9286   GNULIB_MBSCASECMP=0;
9287   GNULIB_MBSNCASECMP=0;
9288   GNULIB_MBSPCASECMP=0;
9289   GNULIB_MBSCASESTR=0;
9290   GNULIB_MBSCSPN=0;
9291   GNULIB_MBSPBRK=0;
9292   GNULIB_MBSSPN=0;
9293   GNULIB_MBSSEP=0;
9294   GNULIB_MBSTOK_R=0;
9295   GNULIB_STRERROR=0;
9296   GNULIB_STRERROR_R=0;
9297   GNULIB_STRSIGNAL=0;
9298   GNULIB_STRVERSCMP=0;
9299   HAVE_MBSLEN=0;
9300     HAVE_FFSL=1;
9301   HAVE_FFSLL=1;
9302   HAVE_MEMCHR=1;
9303   HAVE_DECL_MEMMEM=1;
9304   HAVE_MEMPCPY=1;
9305   HAVE_DECL_MEMRCHR=1;
9306   HAVE_RAWMEMCHR=1;
9307   HAVE_STPCPY=1;
9308   HAVE_STPNCPY=1;
9309   HAVE_STRCHRNUL=1;
9310   HAVE_DECL_STRDUP=1;
9311   HAVE_DECL_STRNDUP=1;
9312   HAVE_DECL_STRNLEN=1;
9313   HAVE_STRPBRK=1;
9314   HAVE_STRSEP=1;
9315   HAVE_STRCASESTR=1;
9316   HAVE_DECL_STRTOK_R=1;
9317   HAVE_DECL_STRERROR_R=1;
9318   HAVE_DECL_STRSIGNAL=1;
9319   HAVE_STRVERSCMP=1;
9320   REPLACE_MEMCHR=0;
9321   REPLACE_MEMMEM=0;
9322   REPLACE_STPNCPY=0;
9323   REPLACE_STRDUP=0;
9324   REPLACE_STRSTR=0;
9325   REPLACE_STRCASESTR=0;
9326   REPLACE_STRCHRNUL=0;
9327   REPLACE_STRERROR=0;
9328   REPLACE_STRERROR_R=0;
9329   REPLACE_STRNCAT=0;
9330   REPLACE_STRNDUP=0;
9331   REPLACE_STRNLEN=0;
9332   REPLACE_STRSIGNAL=0;
9333   REPLACE_STRTOK_R=0;
9334   UNDEFINE_STRTOK_R=0;
9335
9336
9337
9338
9339
9340   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9341   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9342   # irrelevant for anonymous mappings.
9343   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9344 if test "x$ac_cv_func_mmap" = x""yes; then :
9345   gl_have_mmap=yes
9346 else
9347   gl_have_mmap=no
9348 fi
9349
9350
9351   # Try to allow MAP_ANONYMOUS.
9352   gl_have_mmap_anonymous=no
9353   if test $gl_have_mmap = yes; then
9354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9355 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h.  */
9358
9359 #include <sys/mman.h>
9360 #ifdef MAP_ANONYMOUS
9361     I cannot identify this map
9362 #endif
9363
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9367   gl_have_mmap_anonymous=yes
9368 fi
9369 rm -f conftest*
9370
9371     if test $gl_have_mmap_anonymous != yes; then
9372       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h.  */
9374
9375 #include <sys/mman.h>
9376 #ifdef MAP_ANON
9377     I cannot identify this map
9378 #endif
9379
9380 _ACEOF
9381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9382   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9383
9384 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9385
9386          gl_have_mmap_anonymous=yes
9387 fi
9388 rm -f conftest*
9389
9390     fi
9391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9392 $as_echo "$gl_have_mmap_anonymous" >&6; }
9393     if test $gl_have_mmap_anonymous = yes; then
9394
9395 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9396
9397     fi
9398   fi
9399
9400
9401
9402
9403
9404
9405   if test $HAVE_MEMCHR = 1; then
9406     # Detect platform-specific bugs in some versions of glibc:
9407     # memchr should not dereference anything with length 0
9408     #   http://bugzilla.redhat.com/499689
9409     # memchr should not dereference overestimated length after a match
9410     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9411     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9412     # Assume that memchr works on platforms that lack mprotect.
9413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9414 $as_echo_n "checking whether memchr works... " >&6; }
9415 if test "${gl_cv_func_memchr_works+set}" = set; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   if test "$cross_compiling" = yes; then :
9419          gl_cv_func_memchr_works="guessing no"
9420 else
9421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h.  */
9423
9424 #include <string.h>
9425 #if HAVE_SYS_MMAN_H
9426 # include <fcntl.h>
9427 # include <unistd.h>
9428 # include <sys/types.h>
9429 # include <sys/mman.h>
9430 # ifndef MAP_FILE
9431 #  define MAP_FILE 0
9432 # endif
9433 #endif
9434
9435 int
9436 main ()
9437 {
9438
9439   int result = 0;
9440   char *fence = NULL;
9441 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9442 # if HAVE_MAP_ANONYMOUS
9443   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9444   const int fd = -1;
9445 # else /* !HAVE_MAP_ANONYMOUS */
9446   const int flags = MAP_FILE | MAP_PRIVATE;
9447   int fd = open ("/dev/zero", O_RDONLY, 0666);
9448   if (fd >= 0)
9449 # endif
9450     {
9451       int pagesize = getpagesize ();
9452       char *two_pages =
9453         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9454                        flags, fd, 0);
9455       if (two_pages != (char *)(-1)
9456           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9457         fence = two_pages + pagesize;
9458     }
9459 #endif
9460   if (fence)
9461     {
9462       if (memchr (fence, 0, 0))
9463         result |= 1;
9464       strcpy (fence - 9, "12345678");
9465       if (memchr (fence - 9, 0, 79) != fence - 1)
9466         result |= 2;
9467       if (memchr (fence - 1, 0, 3) != fence - 1)
9468         result |= 4;
9469     }
9470   return result;
9471
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_run "$LINENO"; then :
9477   gl_cv_func_memchr_works=yes
9478 else
9479   gl_cv_func_memchr_works=no
9480 fi
9481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9482   conftest.$ac_objext conftest.beam conftest.$ac_ext
9483 fi
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9487 $as_echo "$gl_cv_func_memchr_works" >&6; }
9488     if test "$gl_cv_func_memchr_works" != yes; then
9489       REPLACE_MEMCHR=1
9490     fi
9491   fi
9492
9493 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9494 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9495   ac_have_decl=1
9496 else
9497   ac_have_decl=0
9498 fi
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_MEMMEM $ac_have_decl
9502 _ACEOF
9503
9504
9505
9506
9507
9508   for ac_func in memmem
9509 do :
9510   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9511 if test "x$ac_cv_func_memmem" = x""yes; then :
9512   cat >>confdefs.h <<_ACEOF
9513 #define HAVE_MEMMEM 1
9514 _ACEOF
9515
9516 fi
9517 done
9518
9519   if test $ac_cv_func_memmem = yes; then
9520     HAVE_MEMMEM=1
9521   else
9522     HAVE_MEMMEM=0
9523   fi
9524
9525   if test $ac_cv_have_decl_memmem = no; then
9526     HAVE_DECL_MEMMEM=0
9527   else
9528             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9529 $as_echo_n "checking whether memmem works... " >&6; }
9530 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   if test "$cross_compiling" = yes; then :
9534                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h.  */
9536
9537 #ifdef __GNU_LIBRARY__
9538  #include <features.h>
9539  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9540                           || __GLIBC_MINOR__ > 12)) \
9541       || (__GLIBC__ > 2)) \
9542      || defined __UCLIBC__
9543   Lucky user
9544  #endif
9545 #elif defined __CYGWIN__
9546  #include <cygwin/version.h>
9547  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9548   Lucky user
9549  #endif
9550 #else
9551   Lucky user
9552 #endif
9553
9554 _ACEOF
9555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9556   $EGREP "Lucky user" >/dev/null 2>&1; then :
9557   gl_cv_func_memmem_works_always="guessing yes"
9558 else
9559   gl_cv_func_memmem_works_always="guessing no"
9560 fi
9561 rm -f conftest*
9562
9563
9564 else
9565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h.  */
9567
9568 #include <string.h> /* for memmem */
9569 #define P "_EF_BF_BD"
9570 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9571 #define NEEDLE P P P P P
9572
9573 int
9574 main ()
9575 {
9576
9577     int result = 0;
9578     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9579       result |= 1;
9580     /* Check for empty needle behavior.  */
9581     {
9582       const char *haystack = "AAA";
9583       if (memmem (haystack, 3, NULL, 0) != haystack)
9584         result |= 2;
9585     }
9586     return result;
9587
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_run "$LINENO"; then :
9593   gl_cv_func_memmem_works_always=yes
9594 else
9595   gl_cv_func_memmem_works_always=no
9596 fi
9597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9598   conftest.$ac_objext conftest.beam conftest.$ac_ext
9599 fi
9600
9601
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9604 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9605     case "$gl_cv_func_memmem_works_always" in
9606       *yes) ;;
9607       *)
9608         REPLACE_MEMMEM=1
9609         ;;
9610     esac
9611   fi
9612   :
9613
9614
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9617 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9618 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h.  */
9623
9624              #include <stdbool.h>
9625              #ifndef bool
9626               "error: bool is not defined"
9627              #endif
9628              #ifndef false
9629               "error: false is not defined"
9630              #endif
9631              #if false
9632               "error: false is not 0"
9633              #endif
9634              #ifndef true
9635               "error: true is not defined"
9636              #endif
9637              #if true != 1
9638               "error: true is not 1"
9639              #endif
9640              #ifndef __bool_true_false_are_defined
9641               "error: __bool_true_false_are_defined is not defined"
9642              #endif
9643
9644              struct s { _Bool s: 1; _Bool t; } s;
9645
9646              char a[true == 1 ? 1 : -1];
9647              char b[false == 0 ? 1 : -1];
9648              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9649              char d[(bool) 0.5 == true ? 1 : -1];
9650              /* See body of main program for 'e'.  */
9651              char f[(_Bool) 0.0 == false ? 1 : -1];
9652              char g[true];
9653              char h[sizeof (_Bool)];
9654              char i[sizeof s.t];
9655              enum { j = false, k = true, l = false * true, m = true * 256 };
9656              /* The following fails for
9657                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9658              _Bool n[m];
9659              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9660              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9661              /* Catch a bug in an HP-UX C compiler.  See
9662                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9663                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9664               */
9665              _Bool q = true;
9666              _Bool *pq = &q;
9667
9668 int
9669 main ()
9670 {
9671
9672              bool e = &s;
9673              *pq |= q;
9674              *pq |= ! q;
9675              /* Refer to every declared value, to avoid compiler optimizations.  */
9676              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9677                      + !m + !n + !o + !p + !q + !pq);
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684   ac_cv_header_stdbool_h=yes
9685 else
9686   ac_cv_header_stdbool_h=no
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9691 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9692    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9693 if test "x$ac_cv_type__Bool" = x""yes; then :
9694
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE__BOOL 1
9697 _ACEOF
9698
9699
9700 fi
9701
9702
9703
9704     REPLACE_NULL=0;
9705   HAVE_WCHAR_T=1;
9706
9707
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9709 $as_echo_n "checking for wchar_t... " >&6; }
9710 if test "${gt_cv_c_wchar_t+set}" = set; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h.  */
9715 #include <stddef.h>
9716             wchar_t foo = (wchar_t)'\0';
9717 int
9718 main ()
9719 {
9720
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726   gt_cv_c_wchar_t=yes
9727 else
9728   gt_cv_c_wchar_t=no
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9733 $as_echo "$gt_cv_c_wchar_t" >&6; }
9734   if test $gt_cv_c_wchar_t = yes; then
9735
9736 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9737
9738   fi
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9741 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9742 if test "${ac_cv_c_restrict+set}" = set; then :
9743   $as_echo_n "(cached) " >&6
9744 else
9745   ac_cv_c_restrict=no
9746    # The order here caters to the fact that C++ does not require restrict.
9747    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9748      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h.  */
9750 typedef int * int_ptr;
9751         int foo (int_ptr $ac_kw ip) {
9752         return ip[0];
9753        }
9754 int
9755 main ()
9756 {
9757 int s[1];
9758         int * $ac_kw t = s;
9759         t[0] = 0;
9760         return foo(t)
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_compile "$LINENO"; then :
9766   ac_cv_c_restrict=$ac_kw
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769      test "$ac_cv_c_restrict" != no && break
9770    done
9771
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9774 $as_echo "$ac_cv_c_restrict" >&6; }
9775
9776  case $ac_cv_c_restrict in
9777    restrict) ;;
9778    no) $as_echo "#define restrict /**/" >>confdefs.h
9779  ;;
9780    *)  cat >>confdefs.h <<_ACEOF
9781 #define restrict $ac_cv_c_restrict
9782 _ACEOF
9783  ;;
9784  esac
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797      if test $gl_cv_have_include_next = yes; then
9798        gl_cv_next_string_h='<'string.h'>'
9799      else
9800        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9801 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9802 if test "${gl_cv_next_string_h+set}" = set; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805
9806                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h.  */
9808 #include <string.h>
9809
9810 _ACEOF
9811                                                                                                                         case "$host_os" in
9812                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9813                  *)    gl_absname_cpp="$ac_cpp" ;;
9814                esac
9815
9816                case "$host_os" in
9817                  mingw*)
9818                                                                                                                                      gl_dirsep_regex='[/\\]'
9819                    ;;
9820                  *)
9821                    gl_dirsep_regex='\/'
9822                    ;;
9823                esac
9824                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9825
9826                gl_header_literal_regex=`echo 'string.h' \
9827                                         | sed -e "$gl_make_literal_regex_sed"`
9828                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9829                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9830                    s|^/[^/]|//&|
9831                    p
9832                    q
9833                  }'
9834                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9835                       sed -n "$gl_absolute_header_sed"`'"'
9836
9837
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9840 $as_echo "$gl_cv_next_string_h" >&6; }
9841      fi
9842      NEXT_STRING_H=$gl_cv_next_string_h
9843
9844      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9845        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9846        gl_next_as_first_directive='<'string.h'>'
9847      else
9848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9849        gl_next_as_first_directive=$gl_cv_next_string_h
9850      fi
9851      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9852
9853
9854
9855
9856
9857
9858     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
9859     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9861 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9862 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867 #include <string.h>
9868
9869 int
9870 main ()
9871 {
9872 #undef $gl_func
9873   (void) $gl_func;
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_c_try_compile "$LINENO"; then :
9879   eval "$as_gl_Symbol=yes"
9880 else
9881   eval "$as_gl_Symbol=no"
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 fi
9885 eval ac_res=\$$as_gl_Symbol
9886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9887 $as_echo "$ac_res" >&6; }
9888     eval as_val=\$$as_gl_Symbol
9889    if test "x$as_val" = x""yes; then :
9890   cat >>confdefs.h <<_ACEOF
9891 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9892 _ACEOF
9893
9894                      eval ac_cv_have_decl_$gl_func=yes
9895 fi
9896       done
9897
9898
9899
9900
9901
9902   if test "$gl_cv_func_memchr_works" != yes; then
9903     REPLACE_STRSTR=1
9904   else
9905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9906 $as_echo_n "checking whether strstr works... " >&6; }
9907 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   if test "$cross_compiling" = yes; then :
9911                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h.  */
9913
9914 #ifdef __GNU_LIBRARY__
9915  #include <features.h>
9916  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9917      || defined __UCLIBC__
9918   Lucky user
9919  #endif
9920 #elif defined __CYGWIN__
9921  #include <cygwin/version.h>
9922  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9923   Lucky user
9924  #endif
9925 #else
9926   Lucky user
9927 #endif
9928
9929 _ACEOF
9930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931   $EGREP "Lucky user" >/dev/null 2>&1; then :
9932   gl_cv_func_strstr_works_always="guessing yes"
9933 else
9934   gl_cv_func_strstr_works_always="guessing no"
9935 fi
9936 rm -f conftest*
9937
9938
9939 else
9940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h.  */
9942
9943 #include <string.h> /* for strstr */
9944 #define P "_EF_BF_BD"
9945 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9946 #define NEEDLE P P P P P
9947
9948 int
9949 main ()
9950 {
9951 return !!strstr (HAYSTACK, NEEDLE);
9952
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_run "$LINENO"; then :
9958   gl_cv_func_strstr_works_always=yes
9959 else
9960   gl_cv_func_strstr_works_always=no
9961 fi
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963   conftest.$ac_objext conftest.beam conftest.$ac_ext
9964 fi
9965
9966
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9969 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9970     case "$gl_cv_func_strstr_works_always" in
9971       *yes) ;;
9972       *)
9973         REPLACE_STRSTR=1
9974         ;;
9975     esac
9976   fi
9977
9978
9979      GNULIB_FCHMODAT=0;
9980   GNULIB_FSTAT=0;
9981   GNULIB_FSTATAT=0;
9982   GNULIB_FUTIMENS=0;
9983   GNULIB_LCHMOD=0;
9984   GNULIB_LSTAT=0;
9985   GNULIB_MKDIRAT=0;
9986   GNULIB_MKFIFO=0;
9987   GNULIB_MKFIFOAT=0;
9988   GNULIB_MKNOD=0;
9989   GNULIB_MKNODAT=0;
9990   GNULIB_STAT=0;
9991   GNULIB_UTIMENSAT=0;
9992     HAVE_FCHMODAT=1;
9993   HAVE_FSTATAT=1;
9994   HAVE_FUTIMENS=1;
9995   HAVE_LCHMOD=1;
9996   HAVE_LSTAT=1;
9997   HAVE_MKDIRAT=1;
9998   HAVE_MKFIFO=1;
9999   HAVE_MKFIFOAT=1;
10000   HAVE_MKNOD=1;
10001   HAVE_MKNODAT=1;
10002   HAVE_UTIMENSAT=1;
10003   REPLACE_FSTAT=0;
10004   REPLACE_FSTATAT=0;
10005   REPLACE_FUTIMENS=0;
10006   REPLACE_LSTAT=0;
10007   REPLACE_MKDIR=0;
10008   REPLACE_MKFIFO=0;
10009   REPLACE_MKNOD=0;
10010   REPLACE_STAT=0;
10011   REPLACE_UTIMENSAT=0;
10012
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10014 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10015 if test "${ac_cv_header_stat_broken+set}" = set; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h.  */
10020 #include <sys/types.h>
10021 #include <sys/stat.h>
10022
10023 #if defined S_ISBLK && defined S_IFDIR
10024 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10025 #endif
10026
10027 #if defined S_ISBLK && defined S_IFCHR
10028 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10029 #endif
10030
10031 #if defined S_ISLNK && defined S_IFREG
10032 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10033 #endif
10034
10035 #if defined S_ISSOCK && defined S_IFREG
10036 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10037 #endif
10038
10039 _ACEOF
10040 if ac_fn_c_try_compile "$LINENO"; then :
10041   ac_cv_header_stat_broken=no
10042 else
10043   ac_cv_header_stat_broken=yes
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 fi
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10048 $as_echo "$ac_cv_header_stat_broken" >&6; }
10049 if test $ac_cv_header_stat_broken = yes; then
10050
10051 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10052
10053 fi
10054
10055
10056
10057 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10058 if test "x$ac_cv_type_mode_t" = x""yes; then :
10059
10060 else
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define mode_t int
10064 _ACEOF
10065
10066 fi
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10069 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10070 if test -z "$MKDIR_P"; then
10071   if test "${ac_cv_path_mkdir+set}" = set; then :
10072   $as_echo_n "(cached) " >&6
10073 else
10074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079     for ac_prog in mkdir gmkdir; do
10080          for ac_exec_ext in '' $ac_executable_extensions; do
10081            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10082            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10083              'mkdir (GNU coreutils) '* | \
10084              'mkdir (coreutils) '* | \
10085              'mkdir (fileutils) '4.1*)
10086                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10087                break 3;;
10088            esac
10089          done
10090        done
10091   done
10092 IFS=$as_save_IFS
10093
10094 fi
10095
10096   if test "${ac_cv_path_mkdir+set}" = set; then
10097     MKDIR_P="$ac_cv_path_mkdir -p"
10098   else
10099     # As a last resort, use the slow shell script.  Don't cache a
10100     # value for MKDIR_P within a source directory, because that will
10101     # break other packages using the cache if that directory is
10102     # removed, or if the value is a relative name.
10103     test -d ./--version && rmdir ./--version
10104     MKDIR_P="$ac_install_sh -d"
10105   fi
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10108 $as_echo "$MKDIR_P" >&6; }
10109
10110
10111
10112 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10113 if test "x$ac_cv_type_pid_t" = x""yes; then :
10114
10115 else
10116
10117 cat >>confdefs.h <<_ACEOF
10118 #define pid_t int
10119 _ACEOF
10120
10121 fi
10122
10123
10124
10125     WINDOWS_64_BIT_OFF_T=0
10126
10127
10128
10129
10130   GNULIB_MKTIME=0;
10131   GNULIB_NANOSLEEP=0;
10132   GNULIB_STRPTIME=0;
10133   GNULIB_TIMEGM=0;
10134   GNULIB_TIME_R=0;
10135     HAVE_DECL_LOCALTIME_R=1;
10136   HAVE_NANOSLEEP=1;
10137   HAVE_STRPTIME=1;
10138   HAVE_TIMEGM=1;
10139         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10140   REPLACE_MKTIME=GNULIB_PORTCHECK;
10141   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10142   REPLACE_TIMEGM=GNULIB_PORTCHECK;
10143
10144
10145
10146
10147
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10149 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10150 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10151   $as_echo_n "(cached) " >&6
10152 else
10153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h.  */
10155 #include <time.h>
10156
10157 int
10158 main ()
10159 {
10160 static struct timespec x; x.tv_sec = x.tv_nsec;
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 if ac_fn_c_try_compile "$LINENO"; then :
10166   gl_cv_sys_struct_timespec_in_time_h=yes
10167 else
10168   gl_cv_sys_struct_timespec_in_time_h=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10173 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10174
10175   TIME_H_DEFINES_STRUCT_TIMESPEC=0
10176   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10177   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10178   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10179     TIME_H_DEFINES_STRUCT_TIMESPEC=1
10180   else
10181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10182 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10183 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h.  */
10188 #include <sys/time.h>
10189
10190 int
10191 main ()
10192 {
10193 static struct timespec x; x.tv_sec = x.tv_nsec;
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199   gl_cv_sys_struct_timespec_in_sys_time_h=yes
10200 else
10201   gl_cv_sys_struct_timespec_in_sys_time_h=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204 fi
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10206 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10207     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10208       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10209     else
10210       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10211 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10212 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10213   $as_echo_n "(cached) " >&6
10214 else
10215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h.  */
10217 #include <pthread.h>
10218
10219 int
10220 main ()
10221 {
10222 static struct timespec x; x.tv_sec = x.tv_nsec;
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228   gl_cv_sys_struct_timespec_in_pthread_h=yes
10229 else
10230   gl_cv_sys_struct_timespec_in_pthread_h=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10235 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10236       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10237         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10238       fi
10239     fi
10240   fi
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256      if test $gl_cv_have_include_next = yes; then
10257        gl_cv_next_time_h='<'time.h'>'
10258      else
10259        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10260 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10261 if test "${gl_cv_next_time_h+set}" = set; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264
10265                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h.  */
10267 #include <time.h>
10268
10269 _ACEOF
10270                                                                                                                         case "$host_os" in
10271                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
10272                  *)    gl_absname_cpp="$ac_cpp" ;;
10273                esac
10274
10275                case "$host_os" in
10276                  mingw*)
10277                                                                                                                                      gl_dirsep_regex='[/\\]'
10278                    ;;
10279                  *)
10280                    gl_dirsep_regex='\/'
10281                    ;;
10282                esac
10283                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10284
10285                gl_header_literal_regex=`echo 'time.h' \
10286                                         | sed -e "$gl_make_literal_regex_sed"`
10287                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10288                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10289                    s|^/[^/]|//&|
10290                    p
10291                    q
10292                  }'
10293                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10294                       sed -n "$gl_absolute_header_sed"`'"'
10295
10296
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10299 $as_echo "$gl_cv_next_time_h" >&6; }
10300      fi
10301      NEXT_TIME_H=$gl_cv_next_time_h
10302
10303      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10304        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10305        gl_next_as_first_directive='<'time.h'>'
10306      else
10307        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10308        gl_next_as_first_directive=$gl_cv_next_time_h
10309      fi
10310      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10311
10312
10313
10314
10315
10316
10317
10318             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10319 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10320 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   gl_cv_header_wchar_h_correct_inline=yes
10324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h.  */
10326
10327        #define wcstod renamed_wcstod
10328 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10329    <wchar.h>.
10330    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10331    included before <wchar.h>.  */
10332 #include <stddef.h>
10333 #include <stdio.h>
10334 #include <time.h>
10335 #include <wchar.h>
10336 extern int zero (void);
10337 int main () { return zero(); }
10338
10339 _ACEOF
10340      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10341   (eval $ac_compile) 2>&5
10342   ac_status=$?
10343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344   test $ac_status = 0; }; then
10345        mv conftest.$ac_objext conftest1.$ac_objext
10346        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348
10349          #define wcstod renamed_wcstod
10350 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10351    <wchar.h>.
10352    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10353    included before <wchar.h>.  */
10354 #include <stddef.h>
10355 #include <stdio.h>
10356 #include <time.h>
10357 #include <wchar.h>
10358 int zero (void) { return 0; }
10359
10360 _ACEOF
10361        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362   (eval $ac_compile) 2>&5
10363   ac_status=$?
10364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365   test $ac_status = 0; }; then
10366          mv conftest.$ac_objext conftest2.$ac_objext
10367          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10368            :
10369          else
10370            gl_cv_header_wchar_h_correct_inline=no
10371          fi
10372        fi
10373      fi
10374      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10375
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10378 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10379   if test $gl_cv_header_wchar_h_correct_inline = no; then
10380     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10381 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10382 C99 mode. You have four options:
10383   - Add the flag -fgnu89-inline to CC and reconfigure, or
10384   - Fix your include files, using parts of
10385     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10386   - Use a gcc version older than 4.3, or
10387   - Don't use the flags -std=c99 or -std=gnu99.
10388 Configuration aborted." "$LINENO" 5
10389   fi
10390
10391
10392
10393
10394
10395   if test $ac_cv_header_features_h = yes; then
10396     HAVE_FEATURES_H=1
10397   else
10398     HAVE_FEATURES_H=0
10399   fi
10400
10401
10402
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10404 $as_echo_n "checking for wint_t... " >&6; }
10405 if test "${gt_cv_c_wint_t+set}" = set; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h.  */
10410
10411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10412    <wchar.h>.
10413    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10414    before <wchar.h>.  */
10415 #include <stddef.h>
10416 #include <stdio.h>
10417 #include <time.h>
10418 #include <wchar.h>
10419             wint_t foo = (wchar_t)'\0';
10420 int
10421 main ()
10422 {
10423
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_c_try_compile "$LINENO"; then :
10429   gt_cv_c_wint_t=yes
10430 else
10431   gt_cv_c_wint_t=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10436 $as_echo "$gt_cv_c_wint_t" >&6; }
10437   if test $gt_cv_c_wint_t = yes; then
10438
10439 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10440
10441   fi
10442
10443
10444   GNULIB_ISWBLANK=0;
10445   GNULIB_WCTYPE=0;
10446   GNULIB_ISWCTYPE=0;
10447   GNULIB_WCTRANS=0;
10448   GNULIB_TOWCTRANS=0;
10449     HAVE_ISWBLANK=1;
10450   HAVE_WCTYPE_T=1;
10451   HAVE_WCTRANS_T=1;
10452   REPLACE_ISWBLANK=0;
10453
10454
10455
10456
10457    if false; then
10458   GL_COND_LIBTOOL_TRUE=
10459   GL_COND_LIBTOOL_FALSE='#'
10460 else
10461   GL_COND_LIBTOOL_TRUE='#'
10462   GL_COND_LIBTOOL_FALSE=
10463 fi
10464
10465   gl_cond_libtool=false
10466   gl_libdeps=
10467   gl_ltlibdeps=
10468   gl_m4_base='import/m4'
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478   gl_source_base='import'
10479
10480
10481   if test $ac_cv_func_alloca_works = no; then
10482     :
10483   fi
10484
10485   # Define an additional variable used in the Makefile substitution.
10486   if test $ac_cv_working_alloca_h = yes; then
10487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10488 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10489 if test "${gl_cv_rpl_alloca+set}" = set; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492
10493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h.  */
10495
10496 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10497         Need own alloca
10498 #endif
10499
10500 _ACEOF
10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502   $EGREP "Need own alloca" >/dev/null 2>&1; then :
10503   gl_cv_rpl_alloca=yes
10504 else
10505   gl_cv_rpl_alloca=no
10506 fi
10507 rm -f conftest*
10508
10509
10510 fi
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10512 $as_echo "$gl_cv_rpl_alloca" >&6; }
10513     if test $gl_cv_rpl_alloca = yes; then
10514
10515 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10516
10517       ALLOCA_H=alloca.h
10518     else
10519                   ALLOCA_H=
10520     fi
10521   else
10522     ALLOCA_H=alloca.h
10523   fi
10524
10525    if test -n "$ALLOCA_H"; then
10526   GL_GENERATE_ALLOCA_H_TRUE=
10527   GL_GENERATE_ALLOCA_H_FALSE='#'
10528 else
10529   GL_GENERATE_ALLOCA_H_TRUE='#'
10530   GL_GENERATE_ALLOCA_H_FALSE=
10531 fi
10532
10533
10534
10535           if test "x$datarootdir" = x; then
10536     datarootdir='${datadir}'
10537
10538   fi
10539     if test "x$docdir" = x; then
10540     docdir='${datarootdir}/doc/${PACKAGE}'
10541
10542   fi
10543     if test "x$htmldir" = x; then
10544     htmldir='${docdir}'
10545
10546   fi
10547   if test "x$dvidir" = x; then
10548     dvidir='${docdir}'
10549
10550   fi
10551   if test "x$pdfdir" = x; then
10552     pdfdir='${docdir}'
10553
10554   fi
10555   if test "x$psdir" = x; then
10556     psdir='${docdir}'
10557
10558   fi
10559   if test "x$lispdir" = x; then
10560     lispdir='${datarootdir}/emacs/site-lisp'
10561
10562   fi
10563   if test "x$localedir" = x; then
10564     localedir='${datarootdir}/locale'
10565
10566   fi
10567
10568       pkglibexecdir='${libexecdir}/${PACKAGE}'
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583      if test $gl_cv_have_include_next = yes; then
10584        gl_cv_next_dirent_h='<'dirent.h'>'
10585      else
10586        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10587 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10588 if test "${gl_cv_next_dirent_h+set}" = set; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591
10592              if test $ac_cv_header_dirent_h = yes; then
10593
10594
10595                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h.  */
10597 #include <dirent.h>
10598
10599 _ACEOF
10600                                                                                                                         case "$host_os" in
10601                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
10602                  *)    gl_absname_cpp="$ac_cpp" ;;
10603                esac
10604
10605                case "$host_os" in
10606                  mingw*)
10607                                                                                                                                      gl_dirsep_regex='[/\\]'
10608                    ;;
10609                  *)
10610                    gl_dirsep_regex='\/'
10611                    ;;
10612                esac
10613                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10614
10615                gl_header_literal_regex=`echo 'dirent.h' \
10616                                         | sed -e "$gl_make_literal_regex_sed"`
10617                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10618                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10619                    s|^/[^/]|//&|
10620                    p
10621                    q
10622                  }'
10623                                                             gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10624                       sed -n "$gl_absolute_header_sed"`'"'
10625           else
10626                gl_cv_next_dirent_h='<'dirent.h'>'
10627              fi
10628
10629
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10632 $as_echo "$gl_cv_next_dirent_h" >&6; }
10633      fi
10634      NEXT_DIRENT_H=$gl_cv_next_dirent_h
10635
10636      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10638        gl_next_as_first_directive='<'dirent.h'>'
10639      else
10640        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10641        gl_next_as_first_directive=$gl_cv_next_dirent_h
10642      fi
10643      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10644
10645
10646
10647
10648   if test $ac_cv_header_dirent_h = yes; then
10649     HAVE_DIRENT_H=1
10650   else
10651     HAVE_DIRENT_H=0
10652   fi
10653
10654
10655
10656     for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10657     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10659 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10660 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h.  */
10665 #include <dirent.h>
10666
10667 int
10668 main ()
10669 {
10670 #undef $gl_func
10671   (void) $gl_func;
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 if ac_fn_c_try_compile "$LINENO"; then :
10677   eval "$as_gl_Symbol=yes"
10678 else
10679   eval "$as_gl_Symbol=no"
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 fi
10683 eval ac_res=\$$as_gl_Symbol
10684                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10685 $as_echo "$ac_res" >&6; }
10686     eval as_val=\$$as_gl_Symbol
10687    if test "x$as_val" = x""yes; then :
10688   cat >>confdefs.h <<_ACEOF
10689 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10690 _ACEOF
10691
10692                      eval ac_cv_have_decl_$gl_func=yes
10693 fi
10694       done
10695
10696
10697
10698
10699
10700
10701
10702   for ac_func in dirfd
10703 do :
10704   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
10705 if test "x$ac_cv_func_dirfd" = x""yes; then :
10706   cat >>confdefs.h <<_ACEOF
10707 #define HAVE_DIRFD 1
10708 _ACEOF
10709
10710 fi
10711 done
10712
10713   ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
10714       #include <dirent.h>
10715 "
10716 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
10717   ac_have_decl=1
10718 else
10719   ac_have_decl=0
10720 fi
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_DECL_DIRFD $ac_have_decl
10724 _ACEOF
10725
10726   if test $ac_cv_have_decl_dirfd = no; then
10727     HAVE_DECL_DIRFD=0
10728   fi
10729
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
10731 $as_echo_n "checking whether dirfd is a macro... " >&6; }
10732 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h.  */
10737
10738 #include <sys/types.h>
10739 #include <dirent.h>
10740 #ifdef dirfd
10741  dirent_header_defines_dirfd
10742 #endif
10743 _ACEOF
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
10746   gl_cv_func_dirfd_macro=yes
10747 else
10748   gl_cv_func_dirfd_macro=no
10749 fi
10750 rm -f conftest*
10751
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
10754 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
10755
10756   # Use the replacement only if we have no function or macro with that name.
10757   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10758     if test $ac_cv_have_decl_dirfd = yes; then
10759       # If the system declares dirfd already, let's declare rpl_dirfd instead.
10760       REPLACE_DIRFD=1
10761     fi
10762   fi
10763
10764   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10765
10766
10767
10768
10769
10770
10771
10772
10773   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
10774
10775
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
10777 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
10778 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781
10782       dirfd_save_CFLAGS=$CFLAGS
10783       for ac_expr in d_fd dd_fd; do
10784
10785         CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
10786         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h.  */
10788
10789            #include <sys/types.h>
10790            #include <dirent.h>
10791 int
10792 main ()
10793 {
10794 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_compile "$LINENO"; then :
10800   dir_fd_found=yes
10801
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804         CFLAGS=$dirfd_save_CFLAGS
10805         test "$dir_fd_found" = yes && break
10806       done
10807       test "$dir_fd_found" = yes || ac_expr=no_such_member
10808
10809       gl_cv_sys_dir_fd_member_name=$ac_expr
10810
10811
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
10814 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
10815   if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
10816
10817 cat >>confdefs.h <<_ACEOF
10818 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
10819 _ACEOF
10820
10821   fi
10822
10823
10824   fi
10825
10826
10827
10828
10829
10830           GNULIB_DIRFD=1
10831
10832
10833
10834
10835
10836 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
10837
10838
10839
10840
10841
10842
10843
10844
10845   FLOAT_H=
10846   REPLACE_FLOAT_LDBL=0
10847   case "$host_os" in
10848     aix* | beos* | openbsd* | mirbsd* | irix*)
10849       FLOAT_H=float.h
10850       ;;
10851     freebsd*)
10852       case "$host_cpu" in
10853         i[34567]86 )
10854           FLOAT_H=float.h
10855           ;;
10856         x86_64 )
10857           # On x86_64 systems, the C compiler may still be generating
10858           # 32-bit code.
10859           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h.  */
10861 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10862              yes
10863              #endif
10864 _ACEOF
10865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866   $EGREP "yes" >/dev/null 2>&1; then :
10867
10868 else
10869   FLOAT_H=float.h
10870 fi
10871 rm -f conftest*
10872
10873           ;;
10874       esac
10875       ;;
10876     linux*)
10877       case "$host_cpu" in
10878         powerpc*)
10879           FLOAT_H=float.h
10880           ;;
10881       esac
10882       ;;
10883   esac
10884   case "$host_os" in
10885     aix* | freebsd* | linux*)
10886       if test -n "$FLOAT_H"; then
10887         REPLACE_FLOAT_LDBL=1
10888       fi
10889       ;;
10890   esac
10891
10892     REPLACE_ITOLD=0
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10894 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10895 if test "${gl_cv_func_itold_works+set}" = set; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898
10899       if test "$cross_compiling" = yes; then :
10900   case "$host" in
10901            sparc*-*-linux*)
10902              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h.  */
10904 #if defined __LP64__ || defined __arch64__
10905                 yes
10906                 #endif
10907 _ACEOF
10908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10909   $EGREP "yes" >/dev/null 2>&1; then :
10910   gl_cv_func_itold_works="guessing no"
10911 else
10912   gl_cv_func_itold_works="guessing yes"
10913 fi
10914 rm -f conftest*
10915
10916              ;;
10917            *) gl_cv_func_itold_works="guessing yes" ;;
10918          esac
10919
10920 else
10921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h.  */
10923
10924 int i = -1;
10925 volatile long double ld;
10926 int main ()
10927 {
10928   ld += i * 1.0L;
10929   if (ld > 0)
10930     return 1;
10931   return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_run "$LINENO"; then :
10935   gl_cv_func_itold_works=yes
10936 else
10937   gl_cv_func_itold_works=no
10938 fi
10939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10940   conftest.$ac_objext conftest.beam conftest.$ac_ext
10941 fi
10942
10943
10944 fi
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10946 $as_echo "$gl_cv_func_itold_works" >&6; }
10947   case "$gl_cv_func_itold_works" in
10948     *no)
10949       REPLACE_ITOLD=1
10950                   FLOAT_H=float.h
10951       ;;
10952   esac
10953
10954   if test -n "$FLOAT_H"; then
10955
10956
10957
10958
10959
10960
10961
10962
10963      if test $gl_cv_have_include_next = yes; then
10964        gl_cv_next_float_h='<'float.h'>'
10965      else
10966        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10967 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10968 if test "${gl_cv_next_float_h+set}" = set; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971
10972                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974 #include <float.h>
10975
10976 _ACEOF
10977                                                                                                                         case "$host_os" in
10978                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
10979                  *)    gl_absname_cpp="$ac_cpp" ;;
10980                esac
10981
10982                case "$host_os" in
10983                  mingw*)
10984                                                                                                                                      gl_dirsep_regex='[/\\]'
10985                    ;;
10986                  *)
10987                    gl_dirsep_regex='\/'
10988                    ;;
10989                esac
10990                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10991
10992                gl_header_literal_regex=`echo 'float.h' \
10993                                         | sed -e "$gl_make_literal_regex_sed"`
10994                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10995                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10996                    s|^/[^/]|//&|
10997                    p
10998                    q
10999                  }'
11000                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11001                       sed -n "$gl_absolute_header_sed"`'"'
11002
11003
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11006 $as_echo "$gl_cv_next_float_h" >&6; }
11007      fi
11008      NEXT_FLOAT_H=$gl_cv_next_float_h
11009
11010      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11011        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11012        gl_next_as_first_directive='<'float.h'>'
11013      else
11014        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11015        gl_next_as_first_directive=$gl_cv_next_float_h
11016      fi
11017      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11018
11019
11020
11021
11022   fi
11023
11024    if test -n "$FLOAT_H"; then
11025   GL_GENERATE_FLOAT_H_TRUE=
11026   GL_GENERATE_FLOAT_H_FALSE='#'
11027 else
11028   GL_GENERATE_FLOAT_H_TRUE='#'
11029   GL_GENERATE_FLOAT_H_FALSE=
11030 fi
11031
11032
11033
11034   if test $REPLACE_FLOAT_LDBL = 1; then
11035
11036
11037
11038
11039
11040
11041
11042
11043   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11044
11045   fi
11046   if test $REPLACE_ITOLD = 1; then
11047
11048
11049
11050
11051
11052
11053
11054
11055   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11056
11057   fi
11058
11059
11060
11061
11062
11063   FNMATCH_H=
11064   gl_fnmatch_required_lowercase=`
11065     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11066   `
11067   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11069 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11070 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073                            if test $gl_fnmatch_required = GNU; then
11074        gl_fnmatch_gnu_start=
11075        gl_fnmatch_gnu_end=
11076      else
11077        gl_fnmatch_gnu_start='#if 0'
11078        gl_fnmatch_gnu_end='#endif'
11079      fi
11080      if test "$cross_compiling" = yes; then :
11081   eval "$gl_fnmatch_cache_var=\"guessing no\""
11082 else
11083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h.  */
11085 #include <fnmatch.h>
11086             static int
11087             y (char const *pattern, char const *string, int flags)
11088             {
11089               return fnmatch (pattern, string, flags) == 0;
11090             }
11091             static int
11092             n (char const *pattern, char const *string, int flags)
11093             {
11094               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11095             }
11096
11097 int
11098 main ()
11099 {
11100 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11101             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11102             static char const A_1[] = { 'A' - 1, 0 };
11103             static char const A01[] = { 'A' + 1, 0 };
11104             static char const a_1[] = { 'a' - 1, 0 };
11105             static char const a01[] = { 'a' + 1, 0 };
11106             static char const bs_1[] = { '\\\\' - 1, 0 };
11107             static char const bs01[] = { '\\\\' + 1, 0 };
11108             int result = 0;
11109             if (!n ("a*", "", 0))
11110               return 1;
11111             if (!y ("a*", "abc", 0))
11112               return 1;
11113             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11114               return 1;
11115             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11116               return 2;
11117             if (!y ("a\\\\bc", "abc", 0))
11118               return 3;
11119             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11120               return 3;
11121             if (!y ("*x", ".x", 0))
11122               return 4;
11123             if (!n ("*x", ".x", FNM_PERIOD))
11124               return 4;
11125             if (!y (Apat, "\\\\", 0))
11126               return 5;
11127             if (!y (Apat, "A", 0))
11128               return 5;
11129             if (!y (apat, "\\\\", 0))
11130               return 5;
11131             if (!y (apat, "a", 0))
11132               return 5;
11133             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11134               return 5;
11135             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11136               return 5;
11137             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11138               return 5;
11139             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11140               return 5;
11141             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11142               return 5;
11143             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11144               return 5;
11145             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11146               return 5;
11147             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11148               return 5;
11149             $gl_fnmatch_gnu_start
11150             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11151               result |= 8;
11152             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11153               result |= 16;
11154             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11155               result |= 32;
11156             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11157               result |= 64;
11158             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11159               result |= 64;
11160             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11161               result |= 64;
11162             $gl_fnmatch_gnu_end
11163             return result;
11164
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 if ac_fn_c_try_run "$LINENO"; then :
11170   eval "$gl_fnmatch_cache_var=yes"
11171 else
11172   eval "$gl_fnmatch_cache_var=no"
11173 fi
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175   conftest.$ac_objext conftest.beam conftest.$ac_ext
11176 fi
11177
11178
11179 fi
11180 eval ac_res=\$$gl_fnmatch_cache_var
11181                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11182 $as_echo "$ac_res" >&6; }
11183   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11184   if test "$gl_fnmatch_result" = yes; then
11185             rm -f "$gl_source_base/fnmatch.h"
11186   else
11187     FNMATCH_H=fnmatch.h
11188   fi
11189
11190    if test -n "$FNMATCH_H"; then
11191   GL_GENERATE_FNMATCH_H_TRUE=
11192   GL_GENERATE_FNMATCH_H_FALSE='#'
11193 else
11194   GL_GENERATE_FNMATCH_H_TRUE='#'
11195   GL_GENERATE_FNMATCH_H_FALSE=
11196 fi
11197
11198
11199   if test -n "$FNMATCH_H"; then
11200
11201
11202
11203
11204
11205
11206
11207
11208   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11209
11210
11211
11212 cat >>confdefs.h <<_ACEOF
11213 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11214 _ACEOF
11215
11216
11217   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11218 "
11219 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11220   ac_have_decl=1
11221 else
11222   ac_have_decl=0
11223 fi
11224
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_DECL_ISBLANK $ac_have_decl
11227 _ACEOF
11228
11229
11230
11231
11232   fi
11233
11234
11235
11236
11237
11238   if test -n "$FNMATCH_H"; then
11239
11240
11241
11242
11243
11244
11245
11246
11247   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11248
11249
11250
11251 cat >>confdefs.h <<_ACEOF
11252 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11253 _ACEOF
11254
11255
11256   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11257 "
11258 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11259   ac_have_decl=1
11260 else
11261   ac_have_decl=0
11262 fi
11263
11264 cat >>confdefs.h <<_ACEOF
11265 #define HAVE_DECL_ISBLANK $ac_have_decl
11266 _ACEOF
11267
11268
11269
11270
11271   fi
11272
11273
11274
11275   FREXP_LIBM=
11276   if test $gl_cv_func_frexp_no_libm = no; then
11277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11278 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11279 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11280   $as_echo_n "(cached) " >&6
11281 else
11282
11283         save_LIBS="$LIBS"
11284         LIBS="$LIBS -lm"
11285         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h.  */
11287 #include <math.h>
11288                double x;
11289 int
11290 main ()
11291 {
11292 int e; return frexp (x, &e) > 0;
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298   gl_cv_func_frexp_in_libm=yes
11299 else
11300   gl_cv_func_frexp_in_libm=no
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303     conftest$ac_exeext conftest.$ac_ext
11304         LIBS="$save_LIBS"
11305
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11308 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11309     if test $gl_cv_func_frexp_in_libm = yes; then
11310       FREXP_LIBM=-lm
11311     fi
11312   fi
11313   if test $gl_cv_func_frexp_no_libm = yes \
11314      || test $gl_cv_func_frexp_in_libm = yes; then
11315     save_LIBS="$LIBS"
11316     LIBS="$LIBS $FREXP_LIBM"
11317
11318
11319
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11321 $as_echo_n "checking whether frexp works... " >&6; }
11322 if test "${gl_cv_func_frexp_works+set}" = set; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325
11326       if test "$cross_compiling" = yes; then :
11327   case "$host_os" in
11328            netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11329            *)                        gl_cv_func_frexp_works="guessing yes";;
11330          esac
11331
11332 else
11333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h.  */
11335
11336 #include <float.h>
11337 #include <math.h>
11338 #include <string.h>
11339 #if HAVE_ALARM
11340 # include <unistd.h>
11341 #endif
11342 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11343    ICC 10.0 has a bug when optimizing the expression -zero.
11344    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11345    to PowerPC on Mac OS X 10.5.  */
11346 #if defined __hpux || defined __sgi || defined __ICC
11347 static double
11348 compute_minus_zero (void)
11349 {
11350   return -DBL_MIN * DBL_MIN;
11351 }
11352 # define minus_zero compute_minus_zero ()
11353 #else
11354 double minus_zero = -0.0;
11355 #endif
11356 int main()
11357 {
11358   int result = 0;
11359   int i;
11360   volatile double x;
11361   double zero = 0.0;
11362 #if HAVE_ALARM
11363   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11364      number.  Let the test fail in this case.  */
11365   alarm (5);
11366 #endif
11367   /* Test on denormalized numbers.  */
11368   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11369     ;
11370   if (x > 0.0)
11371     {
11372       int exp;
11373       double y = frexp (x, &exp);
11374       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11375          On NetBSD: y = 0.75. Correct: y = 0.5.  */
11376       if (y != 0.5)
11377         result |= 1;
11378     }
11379   /* Test on infinite numbers.  */
11380   x = 1.0 / zero;
11381   {
11382     int exp;
11383     double y = frexp (x, &exp);
11384     if (y != x)
11385       result |= 2;
11386   }
11387   /* Test on negative zero.  */
11388   x = minus_zero;
11389   {
11390     int exp;
11391     double y = frexp (x, &exp);
11392     if (memcmp (&y, &x, sizeof x))
11393       result |= 4;
11394   }
11395   return result;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_run "$LINENO"; then :
11399   gl_cv_func_frexp_works=yes
11400 else
11401   gl_cv_func_frexp_works=no
11402 fi
11403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11404   conftest.$ac_objext conftest.beam conftest.$ac_ext
11405 fi
11406
11407
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11410 $as_echo "$gl_cv_func_frexp_works" >&6; }
11411
11412     LIBS="$save_LIBS"
11413     case "$gl_cv_func_frexp_works" in
11414       *yes) gl_func_frexp=yes ;;
11415       *)    gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11416     esac
11417   else
11418     gl_func_frexp=no
11419   fi
11420   if test $gl_func_frexp = yes; then
11421
11422 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11423
11424   fi
11425
11426
11427   if test $gl_func_frexp != yes; then
11428
11429
11430
11431
11432
11433
11434
11435
11436   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11437
11438   fi
11439
11440
11441
11442
11443
11444           GNULIB_FREXP=1
11445
11446
11447
11448
11449
11450 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11461 "
11462 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11463
11464 else
11465   HAVE_DECL_FREXPL=0
11466 fi
11467
11468
11469   FREXPL_LIBM=
11470   if test $HAVE_DECL_FREXPL = 1; then
11471
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11473 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11474 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477
11478       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480 #include <math.h>
11481              long double x;
11482 int
11483 main ()
11484 {
11485 int e; return frexpl (x, &e) > 0;
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   gl_cv_func_frexpl_no_libm=yes
11492 else
11493   gl_cv_func_frexpl_no_libm=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11500 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11501
11502     if test $gl_cv_func_frexpl_no_libm = no; then
11503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11504 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11505 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508
11509           save_LIBS="$LIBS"
11510           LIBS="$LIBS -lm"
11511           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h.  */
11513 #include <math.h>
11514                  long double x;
11515 int
11516 main ()
11517 {
11518 int e; return frexpl (x, &e) > 0;
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524   gl_cv_func_frexpl_in_libm=yes
11525 else
11526   gl_cv_func_frexpl_in_libm=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529     conftest$ac_exeext conftest.$ac_ext
11530           LIBS="$save_LIBS"
11531
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11534 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11535       if test $gl_cv_func_frexpl_in_libm = yes; then
11536         FREXPL_LIBM=-lm
11537       fi
11538     fi
11539     if test $gl_cv_func_frexpl_no_libm = yes \
11540        || test $gl_cv_func_frexpl_in_libm = yes; then
11541       save_LIBS="$LIBS"
11542       LIBS="$LIBS $FREXPL_LIBM"
11543
11544
11545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11546 $as_echo_n "checking whether frexpl works... " >&6; }
11547 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11548   $as_echo_n "(cached) " >&6
11549 else
11550
11551       if test "$cross_compiling" = yes; then :
11552
11553          case "$host_os" in
11554            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11555               gl_cv_func_frexpl_works="guessing no";;
11556            *) gl_cv_func_frexpl_works="guessing yes";;
11557          esac
11558
11559 else
11560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 #include <float.h>
11564 #include <math.h>
11565 /* Override the values of <float.h>, like done in float.in.h.  */
11566 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11567 # undef LDBL_MIN_EXP
11568 # define LDBL_MIN_EXP    (-16381)
11569 #endif
11570 #if defined __i386__ && defined __FreeBSD__
11571 # undef LDBL_MIN_EXP
11572 # define LDBL_MIN_EXP    (-16381)
11573 #endif
11574 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11575 # undef LDBL_MIN_EXP
11576 # define LDBL_MIN_EXP DBL_MIN_EXP
11577 #endif
11578 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11579 # if defined __GNUC__
11580 #  undef LDBL_MIN_EXP
11581 #  define LDBL_MIN_EXP DBL_MIN_EXP
11582 # endif
11583 #endif
11584 extern
11585 #ifdef __cplusplus
11586 "C"
11587 #endif
11588 long double frexpl (long double, int *);
11589 int main()
11590 {
11591   int result = 0;
11592   volatile long double x;
11593   /* Test on finite numbers that fails on AIX 5.1.  */
11594   x = 16.0L;
11595   {
11596     int exp = -9999;
11597     frexpl (x, &exp);
11598     if (exp != 5)
11599       result |= 1;
11600   }
11601   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11602      function returns an invalid (incorrectly normalized) value: it returns
11603                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11604      but the correct result is
11605           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
11606   x = 1.01L;
11607   {
11608     int exp = -9999;
11609     long double y = frexpl (x, &exp);
11610     if (!(exp == 1 && y == 0.505L))
11611       result |= 2;
11612   }
11613   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
11614      LDBL_MAX_EXP = 16384.
11615      In the loop end test, we test x against Infinity, rather than comparing
11616      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
11617   {
11618     int i;
11619     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11620       {
11621         int exp = -9999;
11622         frexpl (x, &exp);
11623         if (exp != i)
11624           {
11625             result |= 4;
11626             break;
11627           }
11628       }
11629   }
11630   /* Test on denormalized numbers.  */
11631   {
11632     int i;
11633     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11634       ;
11635     if (x > 0.0L)
11636       {
11637         int exp;
11638         long double y = frexpl (x, &exp);
11639         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11640            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
11641         if (exp != LDBL_MIN_EXP - 1)
11642           result |= 8;
11643       }
11644   }
11645   /* Test on infinite numbers.  */
11646   x = 1.0L / 0.0L;
11647   {
11648     int exp;
11649     long double y = frexpl (x, &exp);
11650     if (y != x)
11651       result |= 16;
11652   }
11653   return result;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_run "$LINENO"; then :
11657   gl_cv_func_frexpl_works=yes
11658 else
11659   gl_cv_func_frexpl_works=no
11660 fi
11661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11662   conftest.$ac_objext conftest.beam conftest.$ac_ext
11663 fi
11664
11665
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11668 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11669
11670       LIBS="$save_LIBS"
11671       case "$gl_cv_func_frexpl_works" in
11672         *yes) gl_func_frexpl=yes ;;
11673         *)    gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11674       esac
11675     else
11676       gl_func_frexpl=no
11677     fi
11678     if test $gl_func_frexpl = yes; then
11679
11680 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11681
11682     fi
11683   fi
11684   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11685         if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11686
11687       FREXPL_LIBM="$FREXP_LIBM"
11688     else
11689       FREXPL_LIBM=
11690     fi
11691   fi
11692
11693
11694   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11695
11696
11697
11698
11699
11700
11701
11702
11703   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11704
11705   fi
11706
11707
11708
11709
11710
11711           GNULIB_FREXPL=1
11712
11713
11714
11715
11716
11717 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11718
11719
11720
11721
11722
11723
11724
11725
11726   PRIPTR_PREFIX=
11727   if test -n "$STDINT_H"; then
11728         PRIPTR_PREFIX='"l"'
11729   else
11730         for glpfx in '' l ll I64; do
11731       case $glpfx in
11732         '')  gltype1='int';;
11733         l)   gltype1='long int';;
11734         ll)  gltype1='long long int';;
11735         I64) gltype1='__int64';;
11736       esac
11737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h.  */
11739 #include <stdint.h>
11740            extern intptr_t foo;
11741            extern $gltype1 foo;
11742 int
11743 main ()
11744 {
11745
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_compile "$LINENO"; then :
11751   PRIPTR_PREFIX='"'$glpfx'"'
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754       test -n "$PRIPTR_PREFIX" && break
11755     done
11756   fi
11757
11758
11759
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11761 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11762 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h.  */
11767 /* Work also in C++ mode.  */
11768             #define __STDC_LIMIT_MACROS 1
11769
11770             /* Work if build is not clean.  */
11771             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11772
11773             #include <limits.h>
11774             #if HAVE_STDINT_H
11775              #include <stdint.h>
11776             #endif
11777
11778             #if defined INT32_MAX && defined INTMAX_MAX
11779              #define CONDITION (INT32_MAX < INTMAX_MAX)
11780             #elif HAVE_LONG_LONG_INT
11781              #define CONDITION (sizeof (int) < sizeof (long long int))
11782             #else
11783              #define CONDITION 0
11784             #endif
11785             int test[CONDITION ? 1 : -1];
11786 int
11787 main ()
11788 {
11789
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_compile "$LINENO"; then :
11795   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11796 else
11797   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11802 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11803   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11804     INT32_MAX_LT_INTMAX_MAX=1;
11805   else
11806     INT32_MAX_LT_INTMAX_MAX=0;
11807   fi
11808
11809
11810   if test $APPLE_UNIVERSAL_BUILD = 0; then
11811
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11813 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11814 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h.  */
11819 /* Work also in C++ mode.  */
11820             #define __STDC_LIMIT_MACROS 1
11821
11822             /* Work if build is not clean.  */
11823             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11824
11825             #include <limits.h>
11826             #if HAVE_STDINT_H
11827              #include <stdint.h>
11828             #endif
11829
11830             #if defined INT64_MAX
11831              #define CONDITION (INT64_MAX == LONG_MAX)
11832             #elif HAVE_LONG_LONG_INT
11833              #define CONDITION (sizeof (long long int) == sizeof (long int))
11834             #else
11835              #define CONDITION 0
11836             #endif
11837             int test[CONDITION ? 1 : -1];
11838 int
11839 main ()
11840 {
11841
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_compile "$LINENO"; then :
11847   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11848 else
11849   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11854 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11855   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11856     INT64_MAX_EQ_LONG_MAX=1;
11857   else
11858     INT64_MAX_EQ_LONG_MAX=0;
11859   fi
11860
11861
11862   else
11863     INT64_MAX_EQ_LONG_MAX=-1
11864   fi
11865
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11867 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11868 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h.  */
11873 /* Work also in C++ mode.  */
11874             #define __STDC_LIMIT_MACROS 1
11875
11876             /* Work if build is not clean.  */
11877             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11878
11879             #include <limits.h>
11880             #if HAVE_STDINT_H
11881              #include <stdint.h>
11882             #endif
11883
11884             #if defined UINT32_MAX && defined UINTMAX_MAX
11885              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11886             #elif HAVE_LONG_LONG_INT
11887              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11888             #else
11889              #define CONDITION 0
11890             #endif
11891             int test[CONDITION ? 1 : -1];
11892 int
11893 main ()
11894 {
11895
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_compile "$LINENO"; then :
11901   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11902 else
11903   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11908 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11909   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11910     UINT32_MAX_LT_UINTMAX_MAX=1;
11911   else
11912     UINT32_MAX_LT_UINTMAX_MAX=0;
11913   fi
11914
11915
11916   if test $APPLE_UNIVERSAL_BUILD = 0; then
11917
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11919 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11920 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h.  */
11925 /* Work also in C++ mode.  */
11926             #define __STDC_LIMIT_MACROS 1
11927
11928             /* Work if build is not clean.  */
11929             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11930
11931             #include <limits.h>
11932             #if HAVE_STDINT_H
11933              #include <stdint.h>
11934             #endif
11935
11936             #if defined UINT64_MAX
11937              #define CONDITION (UINT64_MAX == ULONG_MAX)
11938             #elif HAVE_LONG_LONG_INT
11939              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11940             #else
11941              #define CONDITION 0
11942             #endif
11943             int test[CONDITION ? 1 : -1];
11944 int
11945 main ()
11946 {
11947
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 if ac_fn_c_try_compile "$LINENO"; then :
11953   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11954 else
11955   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11960 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11961   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11962     UINT64_MAX_EQ_ULONG_MAX=1;
11963   else
11964     UINT64_MAX_EQ_ULONG_MAX=0;
11965   fi
11966
11967
11968   else
11969     UINT64_MAX_EQ_ULONG_MAX=-1
11970   fi
11971
11972
11973
11974
11975
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11977 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11978 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11979   $as_echo_n "(cached) " >&6
11980 else
11981
11982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984 #include <math.h>
11985              #if __GNUC__ >= 4
11986              # undef isnand
11987              # define isnand(x) __builtin_isnan ((double)(x))
11988              #else
11989              # undef isnand
11990              # define isnand(x) isnan ((double)(x))
11991              #endif
11992              double x;
11993 int
11994 main ()
11995 {
11996 return isnand (x);
11997   ;
11998   return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002   gl_cv_func_isnand_no_libm=yes
12003 else
12004   gl_cv_func_isnand_no_libm=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007     conftest$ac_exeext conftest.$ac_ext
12008
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12011 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12012
12013   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12014   if test $gl_cv_func_isnand_no_libm = yes; then
12015
12016 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12017
12018   fi
12019
12020   if test $gl_func_isnand_no_libm != yes; then
12021
12022
12023
12024
12025
12026
12027
12028
12029   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12030
12031
12032
12033
12034   fi
12035
12036
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12038 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12039 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042
12043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045 #include <math.h>
12046              #if __GNUC__ >= 4
12047              # undef isnanl
12048              # define isnanl(x) __builtin_isnanl ((long double)(x))
12049              #elif defined isnan
12050              # undef isnanl
12051              # define isnanl(x) isnan ((long double)(x))
12052              #endif
12053              long double x;
12054 int
12055 main ()
12056 {
12057 return isnanl (x);
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063   gl_cv_func_isnanl_no_libm=yes
12064 else
12065   gl_cv_func_isnanl_no_libm=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068     conftest$ac_exeext conftest.$ac_ext
12069
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12072 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12073
12074   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12075   if test $gl_func_isnanl_no_libm = yes; then
12076
12077
12078
12079
12080      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12081 $as_echo_n "checking whether isnanl works... " >&6; }
12082 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085
12086       if test "$cross_compiling" = yes; then :
12087   case "$host_cpu" in
12088                                  # Guess no on ia64, x86_64, i386.
12089            ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12090            *)
12091              case "$host_os" in
12092                netbsd*) gl_cv_func_isnanl_works="guessing no";;
12093                *)       gl_cv_func_isnanl_works="guessing yes";;
12094              esac
12095              ;;
12096          esac
12097
12098 else
12099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h.  */
12101
12102 #include <float.h>
12103 #include <limits.h>
12104 #include <math.h>
12105 #if __GNUC__ >= 4
12106 # undef isnanl
12107 # define isnanl(x) __builtin_isnanl ((long double)(x))
12108 #elif defined isnan
12109 # undef isnanl
12110 # define isnanl(x) isnan ((long double)(x))
12111 #endif
12112 #define NWORDS \
12113   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12114 typedef union { unsigned int word[NWORDS]; long double value; }
12115         memory_long_double;
12116 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12117    runtime type conversion.  */
12118 #ifdef __sgi
12119 static long double NaNl ()
12120 {
12121   double zero = 0.0;
12122   return zero / zero;
12123 }
12124 #else
12125 # define NaNl() (0.0L / 0.0L)
12126 #endif
12127 int main ()
12128 {
12129   int result = 0;
12130
12131   if (!isnanl (NaNl ()))
12132     result |= 1;
12133
12134   {
12135     memory_long_double m;
12136     unsigned int i;
12137
12138     /* The isnanl function should be immune against changes in the sign bit and
12139        in the mantissa bits.  The xor operation twiddles a bit that can only be
12140        a sign bit or a mantissa bit (since the exponent never extends to
12141        bit 31).  */
12142     m.value = NaNl ();
12143     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12144     for (i = 0; i < NWORDS; i++)
12145       m.word[i] |= 1;
12146     if (!isnanl (m.value))
12147       result |= 1;
12148   }
12149
12150 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
12151 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12152    of 'unsigned int' words.  */
12153 # ifdef WORDS_BIGENDIAN
12154 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
12155      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12156        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
12157        (unsigned int) (mantlo) << 16                                        \
12158      }
12159 # else
12160 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
12161      { mantlo, manthi, exponent }
12162 # endif
12163   { /* Quiet NaN.  */
12164     static memory_long_double x =
12165       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12166     if (!isnanl (x.value))
12167       result |= 2;
12168   }
12169   {
12170     /* Signalling NaN.  */
12171     static memory_long_double x =
12172       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12173     if (!isnanl (x.value))
12174       result |= 2;
12175   }
12176   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12177      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12178        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12179        Application Architecture.
12180        Table 5-2 "Floating-Point Register Encodings"
12181        Figure 5-6 "Memory to Floating-Point Register Data Translation"
12182    */
12183   { /* Pseudo-NaN.  */
12184     static memory_long_double x =
12185       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12186     if (!isnanl (x.value))
12187       result |= 4;
12188   }
12189   { /* Pseudo-Infinity.  */
12190     static memory_long_double x =
12191       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12192     if (!isnanl (x.value))
12193       result |= 8;
12194   }
12195   { /* Pseudo-Zero.  */
12196     static memory_long_double x =
12197       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12198     if (!isnanl (x.value))
12199       result |= 16;
12200   }
12201   { /* Unnormalized number.  */
12202     static memory_long_double x =
12203       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12204     if (!isnanl (x.value))
12205       result |= 32;
12206   }
12207   { /* Pseudo-Denormal.  */
12208     static memory_long_double x =
12209       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12210     if (!isnanl (x.value))
12211       result |= 64;
12212   }
12213 #endif
12214
12215   return result;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_run "$LINENO"; then :
12219   gl_cv_func_isnanl_works=yes
12220 else
12221   gl_cv_func_isnanl_works=no
12222 fi
12223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12224   conftest.$ac_objext conftest.beam conftest.$ac_ext
12225 fi
12226
12227
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12230 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12231
12232     case "$gl_cv_func_isnanl_works" in
12233       *yes) ;;
12234       *)    gl_func_isnanl_no_libm=no ;;
12235     esac
12236   fi
12237   if test $gl_func_isnanl_no_libm = yes; then
12238
12239 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12240
12241   fi
12242
12243   if test $gl_func_isnanl_no_libm != yes; then
12244
12245
12246
12247
12248
12249
12250
12251
12252   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12253
12254
12255
12256
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12258 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12259 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262
12263       if test "$cross_compiling" = yes; then :
12264
12265                               gl_cv_cc_long_double_expbit0="unknown"
12266
12267 else
12268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h.  */
12270
12271 #include <float.h>
12272 #include <stddef.h>
12273 #include <stdio.h>
12274 #include <string.h>
12275 #define NWORDS \
12276   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12277 typedef union { long double value; unsigned int word[NWORDS]; }
12278         memory_long_double;
12279 static unsigned int ored_words[NWORDS];
12280 static unsigned int anded_words[NWORDS];
12281 static void add_to_ored_words (long double x)
12282 {
12283   memory_long_double m;
12284   size_t i;
12285   /* Clear it first, in case
12286      sizeof (long double) < sizeof (memory_long_double).  */
12287   memset (&m, 0, sizeof (memory_long_double));
12288   m.value = x;
12289   for (i = 0; i < NWORDS; i++)
12290     {
12291       ored_words[i] |= m.word[i];
12292       anded_words[i] &= m.word[i];
12293     }
12294 }
12295 int main ()
12296 {
12297   size_t j;
12298   FILE *fp = fopen ("conftest.out", "w");
12299   if (fp == NULL)
12300     return 1;
12301   for (j = 0; j < NWORDS; j++)
12302     anded_words[j] = ~ (unsigned int) 0;
12303   add_to_ored_words (0.25L);
12304   add_to_ored_words (0.5L);
12305   add_to_ored_words (1.0L);
12306   add_to_ored_words (2.0L);
12307   add_to_ored_words (4.0L);
12308   /* Remove bits that are common (e.g. if representation of the first mantissa
12309      bit is explicit).  */
12310   for (j = 0; j < NWORDS; j++)
12311     ored_words[j] &= ~anded_words[j];
12312   /* Now find the nonzero word.  */
12313   for (j = 0; j < NWORDS; j++)
12314     if (ored_words[j] != 0)
12315       break;
12316   if (j < NWORDS)
12317     {
12318       size_t i;
12319       for (i = j + 1; i < NWORDS; i++)
12320         if (ored_words[i] != 0)
12321           {
12322             fprintf (fp, "unknown");
12323             return (fclose (fp) != 0);
12324           }
12325       for (i = 0; ; i++)
12326         if ((ored_words[j] >> i) & 1)
12327           {
12328             fprintf (fp, "word %d bit %d", (int) j, (int) i);
12329             return (fclose (fp) != 0);
12330           }
12331     }
12332   fprintf (fp, "unknown");
12333   return (fclose (fp) != 0);
12334 }
12335
12336 _ACEOF
12337 if ac_fn_c_try_run "$LINENO"; then :
12338   gl_cv_cc_long_double_expbit0=`cat conftest.out`
12339 else
12340   gl_cv_cc_long_double_expbit0="unknown"
12341 fi
12342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12343   conftest.$ac_objext conftest.beam conftest.$ac_ext
12344 fi
12345
12346       rm -f conftest.out
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12350 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12351   case "$gl_cv_cc_long_double_expbit0" in
12352     word*bit*)
12353       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12354       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
12355
12356 cat >>confdefs.h <<_ACEOF
12357 #define LDBL_EXPBIT0_WORD $word
12358 _ACEOF
12359
12360
12361 cat >>confdefs.h <<_ACEOF
12362 #define LDBL_EXPBIT0_BIT $bit
12363 _ACEOF
12364
12365       ;;
12366   esac
12367
12368
12369
12370   fi
12371
12372
12373
12374
12375
12376
12377
12378
12379   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392      if test $gl_cv_have_include_next = yes; then
12393        gl_cv_next_math_h='<'math.h'>'
12394      else
12395        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12396 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12397 if test "${gl_cv_next_math_h+set}" = set; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400
12401              if test $ac_cv_header_math_h = yes; then
12402
12403
12404                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h.  */
12406 #include <math.h>
12407
12408 _ACEOF
12409                                                                                                                         case "$host_os" in
12410                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
12411                  *)    gl_absname_cpp="$ac_cpp" ;;
12412                esac
12413
12414                case "$host_os" in
12415                  mingw*)
12416                                                                                                                                      gl_dirsep_regex='[/\\]'
12417                    ;;
12418                  *)
12419                    gl_dirsep_regex='\/'
12420                    ;;
12421                esac
12422                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12423
12424                gl_header_literal_regex=`echo 'math.h' \
12425                                         | sed -e "$gl_make_literal_regex_sed"`
12426                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12427                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12428                    s|^/[^/]|//&|
12429                    p
12430                    q
12431                  }'
12432                                                             gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12433                       sed -n "$gl_absolute_header_sed"`'"'
12434           else
12435                gl_cv_next_math_h='<'math.h'>'
12436              fi
12437
12438
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12441 $as_echo "$gl_cv_next_math_h" >&6; }
12442      fi
12443      NEXT_MATH_H=$gl_cv_next_math_h
12444
12445      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12446        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12447        gl_next_as_first_directive='<'math.h'>'
12448      else
12449        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12450        gl_next_as_first_directive=$gl_cv_next_math_h
12451      fi
12452      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12453
12454
12455
12456
12457
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12459 $as_echo_n "checking whether NAN macro works... " >&6; }
12460 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465 #include <math.h>
12466 int
12467 main ()
12468 {
12469 /* Solaris 10 has a broken definition of NAN.  Other platforms
12470         fail to provide NAN, or provide it only in C99 mode; this
12471         test only needs to fail when NAN is provided but wrong.  */
12472          float f = 1.0f;
12473 #ifdef NAN
12474          f = NAN;
12475 #endif
12476          return f == 0;
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482   gl_cv_header_math_nan_works=yes
12483 else
12484   gl_cv_header_math_nan_works=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12489 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12490   if test $gl_cv_header_math_nan_works = no; then
12491     REPLACE_NAN=1
12492   fi
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12494 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12495 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h.  */
12500 #include <math.h>
12501 int
12502 main ()
12503 {
12504 /* Solaris 10 has a broken definition of HUGE_VAL.  */
12505          double d = HUGE_VAL;
12506          return d == 0;
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_compile "$LINENO"; then :
12512   gl_cv_header_math_huge_val_works=yes
12513 else
12514   gl_cv_header_math_huge_val_works=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12519 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12520   if test $gl_cv_header_math_huge_val_works = no; then
12521     REPLACE_HUGE_VAL=1
12522   fi
12523
12524
12525     for gl_func in acosf acosl asinf asinl atanf atanl      cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf      expf expl exp2 exp2f exp2l expm1 expm1f expm1l      fabsf fabsl floorf floorl fma fmaf fmal      fmod fmodf fmodl frexpf frexpl hypotf hypotl      ilogb ilogbf ilogbl      ldexpf ldexpl      log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l      logb logbf logbl      modf modff modfl powf      remainder remainderf remainderl      rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl      tanf tanl tanhf trunc truncf truncl; do
12526     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h.  */
12534 #include <math.h>
12535 int
12536 main ()
12537 {
12538 #undef $gl_func
12539   (void) $gl_func;
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545   eval "$as_gl_Symbol=yes"
12546 else
12547   eval "$as_gl_Symbol=no"
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 fi
12551 eval ac_res=\$$as_gl_Symbol
12552                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12553 $as_echo "$ac_res" >&6; }
12554     eval as_val=\$$as_gl_Symbol
12555    if test "x$as_val" = x""yes; then :
12556   cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560                      eval ac_cv_have_decl_$gl_func=yes
12561 fi
12562       done
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12576
12577
12578
12579      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12580 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12581 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584
12585                   case "$host_os" in
12586                      # Guess no on AIX and OSF/1.
12587         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12588                      # Guess yes otherwise.
12589         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12590       esac
12591       if test $LOCALE_JA != none; then
12592         if test "$cross_compiling" = yes; then :
12593   :
12594 else
12595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597
12598 #include <locale.h>
12599 #include <string.h>
12600 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12601    <wchar.h>.
12602    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12603    included before <wchar.h>.  */
12604 #include <stddef.h>
12605 #include <stdio.h>
12606 #include <time.h>
12607 #include <wchar.h>
12608 int main ()
12609 {
12610   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12611     {
12612       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12613       mbstate_t state;
12614       wchar_t wc;
12615
12616       memset (&state, '\0', sizeof (mbstate_t));
12617       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12618         if (mbsinit (&state))
12619           return 1;
12620     }
12621   return 0;
12622 }
12623 _ACEOF
12624 if ac_fn_c_try_run "$LINENO"; then :
12625   gl_cv_func_mbrtowc_incomplete_state=yes
12626 else
12627   gl_cv_func_mbrtowc_incomplete_state=no
12628 fi
12629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12630   conftest.$ac_objext conftest.beam conftest.$ac_ext
12631 fi
12632
12633       fi
12634
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12637 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12638
12639
12640
12641
12642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12643 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12644 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647
12648                   case "$host_os" in
12649                     # Guess no on Solaris 8.
12650         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12651                     # Guess yes otherwise.
12652         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12653       esac
12654       if test $LOCALE_ZH_CN != none; then
12655         if test "$cross_compiling" = yes; then :
12656   :
12657 else
12658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h.  */
12660
12661 #include <locale.h>
12662 #include <stdlib.h>
12663 #include <string.h>
12664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12665    <wchar.h>.
12666    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12667    included before <wchar.h>.  */
12668 #include <stddef.h>
12669 #include <stdio.h>
12670 #include <time.h>
12671 #include <wchar.h>
12672 int main ()
12673 {
12674   /* This fails on Solaris 8:
12675      mbrtowc returns 2, and sets wc to 0x00F0.
12676      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
12677   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12678     {
12679       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12680       mbstate_t state;
12681       wchar_t wc;
12682
12683       memset (&state, '\0', sizeof (mbstate_t));
12684       if (mbrtowc (&wc, input + 3, 6, &state) != 4
12685           && mbtowc (&wc, input + 3, 6) == 4)
12686         return 1;
12687     }
12688   return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_run "$LINENO"; then :
12692   gl_cv_func_mbrtowc_sanitycheck=yes
12693 else
12694   gl_cv_func_mbrtowc_sanitycheck=no
12695 fi
12696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12697   conftest.$ac_objext conftest.beam conftest.$ac_ext
12698 fi
12699
12700       fi
12701
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12704 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12705
12706     REPLACE_MBSTATE_T=0
12707     case "$gl_cv_func_mbrtowc_incomplete_state" in
12708       *yes) ;;
12709       *) REPLACE_MBSTATE_T=1 ;;
12710     esac
12711     case "$gl_cv_func_mbrtowc_sanitycheck" in
12712       *yes) ;;
12713       *) REPLACE_MBSTATE_T=1 ;;
12714     esac
12715   else
12716     REPLACE_MBSTATE_T=1
12717   fi
12718
12719
12720
12721   if test $ac_cv_func_mbrtowc = no; then
12722     HAVE_MBRTOWC=0
12723     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12724 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12725    <wchar.h>.
12726    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12727    included before <wchar.h>.  */
12728 #include <stddef.h>
12729 #include <stdio.h>
12730 #include <time.h>
12731 #include <wchar.h>
12732
12733 "
12734 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12735   ac_have_decl=1
12736 else
12737   ac_have_decl=0
12738 fi
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define HAVE_DECL_MBRTOWC $ac_have_decl
12742 _ACEOF
12743
12744     if test $ac_cv_have_decl_mbrtowc = yes; then
12745                         REPLACE_MBRTOWC=1
12746     fi
12747   else
12748     if test $REPLACE_MBSTATE_T = 1; then
12749       REPLACE_MBRTOWC=1
12750     else
12751
12752
12753
12754      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12755 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12756 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759
12760                   case "$host_os" in
12761                   # Guess no on Solaris.
12762         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12763                   # Guess yes otherwise.
12764         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12765       esac
12766       if test $LOCALE_FR_UTF8 != none; then
12767         if test "$cross_compiling" = yes; then :
12768   :
12769 else
12770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h.  */
12772
12773 #include <locale.h>
12774 #include <stdlib.h>
12775 #include <string.h>
12776 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12777    <wchar.h>.
12778    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12779    included before <wchar.h>.  */
12780 #include <stddef.h>
12781 #include <stdio.h>
12782 #include <time.h>
12783 #include <wchar.h>
12784 int main ()
12785 {
12786   int result = 0;
12787
12788   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12789     {
12790       char input[] = "\303\237er";
12791       mbstate_t state;
12792       wchar_t wc;
12793       size_t ret;
12794
12795       memset (&state, '\0', sizeof (mbstate_t));
12796       wc = (wchar_t) 0xBADFACE;
12797       ret = mbrtowc (&wc, input, 5, &state);
12798       if (ret != 2)
12799         result |= 1;
12800       if (!mbsinit (&state))
12801         result |= 2;
12802
12803       memset (&state, '\0', sizeof (mbstate_t));
12804       ret = mbrtowc (NULL, input, 5, &state);
12805       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
12806         result |= 4;
12807       if (!mbsinit (&state))
12808         result |= 8;
12809     }
12810   return result;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_run "$LINENO"; then :
12814   gl_cv_func_mbrtowc_null_arg1=yes
12815 else
12816   gl_cv_func_mbrtowc_null_arg1=no
12817 fi
12818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819   conftest.$ac_objext conftest.beam conftest.$ac_ext
12820 fi
12821
12822       fi
12823
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12826 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12827
12828
12829
12830
12831      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12832 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12833 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12834   $as_echo_n "(cached) " >&6
12835 else
12836
12837                   case "$host_os" in
12838               # Guess no on OSF/1.
12839         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12840               # Guess yes otherwise.
12841         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12842       esac
12843       if test $LOCALE_FR_UTF8 != none; then
12844         if test "$cross_compiling" = yes; then :
12845   :
12846 else
12847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849
12850 #include <locale.h>
12851 #include <string.h>
12852 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12853    <wchar.h>.
12854    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12855    included before <wchar.h>.  */
12856 #include <stddef.h>
12857 #include <stdio.h>
12858 #include <time.h>
12859 #include <wchar.h>
12860 int main ()
12861 {
12862   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12863     {
12864       mbstate_t state;
12865       wchar_t wc;
12866       int ret;
12867
12868       memset (&state, '\0', sizeof (mbstate_t));
12869       wc = (wchar_t) 0xBADFACE;
12870       mbrtowc (&wc, NULL, 5, &state);
12871       /* Check that wc was not modified.  */
12872       if (wc != (wchar_t) 0xBADFACE)
12873         return 1;
12874     }
12875   return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_run "$LINENO"; then :
12879   gl_cv_func_mbrtowc_null_arg2=yes
12880 else
12881   gl_cv_func_mbrtowc_null_arg2=no
12882 fi
12883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12884   conftest.$ac_objext conftest.beam conftest.$ac_ext
12885 fi
12886
12887       fi
12888
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12891 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12892
12893
12894
12895
12896
12897
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12899 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12900 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903
12904                   case "$host_os" in
12905                                    # Guess no on HP-UX, Solaris, native Windows.
12906         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12907                                    # Guess yes otherwise.
12908         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
12909       esac
12910       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12911          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12912         if test "$cross_compiling" = yes; then :
12913   :
12914 else
12915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917
12918 #include <locale.h>
12919 #include <string.h>
12920 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12921    <wchar.h>.
12922    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12923    included before <wchar.h>.  */
12924 #include <stddef.h>
12925 #include <stdio.h>
12926 #include <time.h>
12927 #include <wchar.h>
12928 int main ()
12929 {
12930   int result = 0;
12931   int found_some_locale = 0;
12932   /* This fails on Solaris.  */
12933   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12934     {
12935       char input[] = "B\303\274\303\237er"; /* "Büßer" */
12936       mbstate_t state;
12937       wchar_t wc;
12938
12939       memset (&state, '\0', sizeof (mbstate_t));
12940       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12941         {
12942           input[1] = '\0';
12943           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12944             result |= 1;
12945         }
12946       found_some_locale = 1;
12947     }
12948   /* This fails on HP-UX 11.11.  */
12949   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12950     {
12951       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12952       mbstate_t state;
12953       wchar_t wc;
12954
12955       memset (&state, '\0', sizeof (mbstate_t));
12956       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12957         {
12958           input[1] = '\0';
12959           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12960             result |= 2;
12961         }
12962       found_some_locale = 1;
12963     }
12964   /* This fails on native Windows.  */
12965   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12966     {
12967       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12968       mbstate_t state;
12969       wchar_t wc;
12970
12971       memset (&state, '\0', sizeof (mbstate_t));
12972       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12973         {
12974           input[3] = '\0';
12975           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12976             result |= 4;
12977         }
12978       found_some_locale = 1;
12979     }
12980   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12981     {
12982       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12983       mbstate_t state;
12984       wchar_t wc;
12985
12986       memset (&state, '\0', sizeof (mbstate_t));
12987       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12988         {
12989           input[3] = '\0';
12990           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12991             result |= 8;
12992         }
12993       found_some_locale = 1;
12994     }
12995   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12996     {
12997       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12998       mbstate_t state;
12999       wchar_t wc;
13000
13001       memset (&state, '\0', sizeof (mbstate_t));
13002       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13003         {
13004           input[3] = '\0';
13005           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13006             result |= 16;
13007         }
13008       found_some_locale = 1;
13009     }
13010   return (found_some_locale ? result : 77);
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_run "$LINENO"; then :
13014   gl_cv_func_mbrtowc_retval=yes
13015 else
13016   if test $? != 77; then
13017              gl_cv_func_mbrtowc_retval=no
13018            fi
13019
13020 fi
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13022   conftest.$ac_objext conftest.beam conftest.$ac_ext
13023 fi
13024
13025       fi
13026
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13029 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13030
13031
13032
13033
13034      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13035 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13036 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039
13040                   case "$host_os" in
13041                        # Guess no on Solaris 8 and 9.
13042         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13043                        # Guess yes otherwise.
13044         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13045       esac
13046       if test $LOCALE_ZH_CN != none; then
13047         if test "$cross_compiling" = yes; then :
13048   :
13049 else
13050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h.  */
13052
13053 #include <locale.h>
13054 #include <string.h>
13055 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13056    <wchar.h>.
13057    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13058    included before <wchar.h>.  */
13059 #include <stddef.h>
13060 #include <stdio.h>
13061 #include <time.h>
13062 #include <wchar.h>
13063 int main ()
13064 {
13065   /* This fails on Solaris 8 and 9.  */
13066   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13067     {
13068       mbstate_t state;
13069       wchar_t wc;
13070
13071       memset (&state, '\0', sizeof (mbstate_t));
13072       if (mbrtowc (&wc, "", 1, &state) != 0)
13073         return 1;
13074     }
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_run "$LINENO"; then :
13079   gl_cv_func_mbrtowc_nul_retval=yes
13080 else
13081   gl_cv_func_mbrtowc_nul_retval=no
13082 fi
13083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13084   conftest.$ac_objext conftest.beam conftest.$ac_ext
13085 fi
13086
13087       fi
13088
13089 fi
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13091 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13092
13093       case "$gl_cv_func_mbrtowc_null_arg1" in
13094         *yes) ;;
13095         *)
13096 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13097
13098            REPLACE_MBRTOWC=1
13099            ;;
13100       esac
13101       case "$gl_cv_func_mbrtowc_null_arg2" in
13102         *yes) ;;
13103         *)
13104 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13105
13106            REPLACE_MBRTOWC=1
13107            ;;
13108       esac
13109       case "$gl_cv_func_mbrtowc_retval" in
13110         *yes) ;;
13111         *)
13112 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13113
13114            REPLACE_MBRTOWC=1
13115            ;;
13116       esac
13117       case "$gl_cv_func_mbrtowc_nul_retval" in
13118         *yes) ;;
13119         *)
13120 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13121
13122            REPLACE_MBRTOWC=1
13123            ;;
13124       esac
13125     fi
13126   fi
13127
13128   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13129
13130
13131
13132
13133
13134
13135
13136
13137   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13138
13139
13140   :
13141
13142   fi
13143
13144
13145
13146
13147
13148           GNULIB_MBRTOWC=1
13149
13150
13151
13152
13153
13154 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13170
13171
13172
13173      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13174 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13175 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13176   $as_echo_n "(cached) " >&6
13177 else
13178
13179                   case "$host_os" in
13180                      # Guess no on AIX and OSF/1.
13181         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13182                      # Guess yes otherwise.
13183         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13184       esac
13185       if test $LOCALE_JA != none; then
13186         if test "$cross_compiling" = yes; then :
13187   :
13188 else
13189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191
13192 #include <locale.h>
13193 #include <string.h>
13194 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13195    <wchar.h>.
13196    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13197    included before <wchar.h>.  */
13198 #include <stddef.h>
13199 #include <stdio.h>
13200 #include <time.h>
13201 #include <wchar.h>
13202 int main ()
13203 {
13204   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13205     {
13206       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13207       mbstate_t state;
13208       wchar_t wc;
13209
13210       memset (&state, '\0', sizeof (mbstate_t));
13211       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13212         if (mbsinit (&state))
13213           return 1;
13214     }
13215   return 0;
13216 }
13217 _ACEOF
13218 if ac_fn_c_try_run "$LINENO"; then :
13219   gl_cv_func_mbrtowc_incomplete_state=yes
13220 else
13221   gl_cv_func_mbrtowc_incomplete_state=no
13222 fi
13223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13224   conftest.$ac_objext conftest.beam conftest.$ac_ext
13225 fi
13226
13227       fi
13228
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13231 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13232
13233
13234
13235
13236      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13237 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13238 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241
13242                   case "$host_os" in
13243                     # Guess no on Solaris 8.
13244         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13245                     # Guess yes otherwise.
13246         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13247       esac
13248       if test $LOCALE_ZH_CN != none; then
13249         if test "$cross_compiling" = yes; then :
13250   :
13251 else
13252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h.  */
13254
13255 #include <locale.h>
13256 #include <stdlib.h>
13257 #include <string.h>
13258 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13259    <wchar.h>.
13260    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13261    included before <wchar.h>.  */
13262 #include <stddef.h>
13263 #include <stdio.h>
13264 #include <time.h>
13265 #include <wchar.h>
13266 int main ()
13267 {
13268   /* This fails on Solaris 8:
13269      mbrtowc returns 2, and sets wc to 0x00F0.
13270      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
13271   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13272     {
13273       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13274       mbstate_t state;
13275       wchar_t wc;
13276
13277       memset (&state, '\0', sizeof (mbstate_t));
13278       if (mbrtowc (&wc, input + 3, 6, &state) != 4
13279           && mbtowc (&wc, input + 3, 6) == 4)
13280         return 1;
13281     }
13282   return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_run "$LINENO"; then :
13286   gl_cv_func_mbrtowc_sanitycheck=yes
13287 else
13288   gl_cv_func_mbrtowc_sanitycheck=no
13289 fi
13290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13291   conftest.$ac_objext conftest.beam conftest.$ac_ext
13292 fi
13293
13294       fi
13295
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13298 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13299
13300     REPLACE_MBSTATE_T=0
13301     case "$gl_cv_func_mbrtowc_incomplete_state" in
13302       *yes) ;;
13303       *) REPLACE_MBSTATE_T=1 ;;
13304     esac
13305     case "$gl_cv_func_mbrtowc_sanitycheck" in
13306       *yes) ;;
13307       *) REPLACE_MBSTATE_T=1 ;;
13308     esac
13309   else
13310     REPLACE_MBSTATE_T=1
13311   fi
13312
13313
13314
13315   if test $ac_cv_func_mbsinit = no; then
13316     HAVE_MBSINIT=0
13317     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13319    <wchar.h>.
13320    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13321    included before <wchar.h>.  */
13322 #include <stddef.h>
13323 #include <stdio.h>
13324 #include <time.h>
13325 #include <wchar.h>
13326
13327 "
13328 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13329   ac_have_decl=1
13330 else
13331   ac_have_decl=0
13332 fi
13333
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_MBSINIT $ac_have_decl
13336 _ACEOF
13337
13338     if test $ac_cv_have_decl_mbsinit = yes; then
13339                         REPLACE_MBSINIT=1
13340     fi
13341   else
13342     if test $REPLACE_MBSTATE_T = 1; then
13343       REPLACE_MBSINIT=1
13344     else
13345                         case "$host_os" in
13346         mingw*) REPLACE_MBSINIT=1 ;;
13347       esac
13348     fi
13349   fi
13350
13351   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13352
13353
13354
13355
13356
13357
13358
13359
13360   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13361
13362
13363   :
13364
13365   fi
13366
13367
13368
13369
13370
13371           GNULIB_MBSINIT=1
13372
13373
13374
13375
13376
13377 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13392
13393
13394
13395      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13396 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13397 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13398   $as_echo_n "(cached) " >&6
13399 else
13400
13401                   case "$host_os" in
13402                      # Guess no on AIX and OSF/1.
13403         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13404                      # Guess yes otherwise.
13405         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13406       esac
13407       if test $LOCALE_JA != none; then
13408         if test "$cross_compiling" = yes; then :
13409   :
13410 else
13411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h.  */
13413
13414 #include <locale.h>
13415 #include <string.h>
13416 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13417    <wchar.h>.
13418    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13419    included before <wchar.h>.  */
13420 #include <stddef.h>
13421 #include <stdio.h>
13422 #include <time.h>
13423 #include <wchar.h>
13424 int main ()
13425 {
13426   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13427     {
13428       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13429       mbstate_t state;
13430       wchar_t wc;
13431
13432       memset (&state, '\0', sizeof (mbstate_t));
13433       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13434         if (mbsinit (&state))
13435           return 1;
13436     }
13437   return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_run "$LINENO"; then :
13441   gl_cv_func_mbrtowc_incomplete_state=yes
13442 else
13443   gl_cv_func_mbrtowc_incomplete_state=no
13444 fi
13445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13446   conftest.$ac_objext conftest.beam conftest.$ac_ext
13447 fi
13448
13449       fi
13450
13451 fi
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13453 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13454
13455
13456
13457
13458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13459 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13460 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463
13464                   case "$host_os" in
13465                     # Guess no on Solaris 8.
13466         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13467                     # Guess yes otherwise.
13468         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13469       esac
13470       if test $LOCALE_ZH_CN != none; then
13471         if test "$cross_compiling" = yes; then :
13472   :
13473 else
13474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h.  */
13476
13477 #include <locale.h>
13478 #include <stdlib.h>
13479 #include <string.h>
13480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13481    <wchar.h>.
13482    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13483    included before <wchar.h>.  */
13484 #include <stddef.h>
13485 #include <stdio.h>
13486 #include <time.h>
13487 #include <wchar.h>
13488 int main ()
13489 {
13490   /* This fails on Solaris 8:
13491      mbrtowc returns 2, and sets wc to 0x00F0.
13492      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
13493   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13494     {
13495       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13496       mbstate_t state;
13497       wchar_t wc;
13498
13499       memset (&state, '\0', sizeof (mbstate_t));
13500       if (mbrtowc (&wc, input + 3, 6, &state) != 4
13501           && mbtowc (&wc, input + 3, 6) == 4)
13502         return 1;
13503     }
13504   return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_run "$LINENO"; then :
13508   gl_cv_func_mbrtowc_sanitycheck=yes
13509 else
13510   gl_cv_func_mbrtowc_sanitycheck=no
13511 fi
13512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13513   conftest.$ac_objext conftest.beam conftest.$ac_ext
13514 fi
13515
13516       fi
13517
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13520 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13521
13522     REPLACE_MBSTATE_T=0
13523     case "$gl_cv_func_mbrtowc_incomplete_state" in
13524       *yes) ;;
13525       *) REPLACE_MBSTATE_T=1 ;;
13526     esac
13527     case "$gl_cv_func_mbrtowc_sanitycheck" in
13528       *yes) ;;
13529       *) REPLACE_MBSTATE_T=1 ;;
13530     esac
13531   else
13532     REPLACE_MBSTATE_T=1
13533   fi
13534
13535
13536
13537   if test $ac_cv_func_mbsrtowcs = no; then
13538     HAVE_MBSRTOWCS=0
13539     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13540 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13541    <wchar.h>.
13542    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13543    included before <wchar.h>.  */
13544 #include <stddef.h>
13545 #include <stdio.h>
13546 #include <time.h>
13547 #include <wchar.h>
13548
13549 "
13550 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13551   ac_have_decl=1
13552 else
13553   ac_have_decl=0
13554 fi
13555
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13558 _ACEOF
13559
13560     if test $ac_cv_have_decl_mbsrtowcs = yes; then
13561                         REPLACE_MBSRTOWCS=1
13562     fi
13563   else
13564     if test $REPLACE_MBSTATE_T = 1; then
13565       REPLACE_MBSRTOWCS=1
13566     else
13567
13568
13569
13570
13571
13572
13573      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13574 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13575 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578
13579                   case "$host_os" in
13580                                    # Guess no on HP-UX, Solaris, mingw.
13581         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13582                                    # Guess yes otherwise.
13583         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13584       esac
13585       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13586         if test "$cross_compiling" = yes; then :
13587   :
13588 else
13589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591
13592 #include <locale.h>
13593 #include <string.h>
13594 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13595    <wchar.h>.
13596    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13597    included before <wchar.h>.  */
13598 #include <stddef.h>
13599 #include <stdio.h>
13600 #include <time.h>
13601 #include <wchar.h>
13602 int main ()
13603 {
13604   int result = 0;
13605   /* Test whether the function supports a NULL destination argument.
13606      This fails on native Windows.  */
13607   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13608     {
13609       const char input[] = "\337er";
13610       const char *src = input;
13611       mbstate_t state;
13612
13613       memset (&state, '\0', sizeof (mbstate_t));
13614       if (mbsrtowcs (NULL, &src, 1, &state) != 3
13615           || src != input)
13616         result |= 1;
13617     }
13618   /* Test whether the function works when started with a conversion state
13619      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
13620   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13621     {
13622       const char input[] = "B\303\274\303\237er";
13623       mbstate_t state;
13624
13625       memset (&state, '\0', sizeof (mbstate_t));
13626       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13627         if (!mbsinit (&state))
13628           {
13629             const char *src = input + 2;
13630             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13631               result |= 2;
13632           }
13633     }
13634   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13635     {
13636       const char input[] = "<\306\374\313\334\270\354>";
13637       mbstate_t state;
13638
13639       memset (&state, '\0', sizeof (mbstate_t));
13640       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13641         if (!mbsinit (&state))
13642           {
13643             const char *src = input + 4;
13644             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13645               result |= 4;
13646           }
13647     }
13648   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13649     {
13650       const char input[] = "B\250\271\201\060\211\070er";
13651       mbstate_t state;
13652
13653       memset (&state, '\0', sizeof (mbstate_t));
13654       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13655         if (!mbsinit (&state))
13656           {
13657             const char *src = input + 2;
13658             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13659               result |= 8;
13660           }
13661     }
13662   return result;
13663 }
13664 _ACEOF
13665 if ac_fn_c_try_run "$LINENO"; then :
13666   gl_cv_func_mbsrtowcs_works=yes
13667 else
13668   gl_cv_func_mbsrtowcs_works=no
13669 fi
13670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13671   conftest.$ac_objext conftest.beam conftest.$ac_ext
13672 fi
13673
13674       fi
13675
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13678 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13679
13680       case "$gl_cv_func_mbsrtowcs_works" in
13681         *yes) ;;
13682         *) REPLACE_MBSRTOWCS=1 ;;
13683       esac
13684     fi
13685   fi
13686
13687   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13688
13689
13690
13691
13692
13693
13694
13695
13696   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13707
13708
13709   :
13710
13711   fi
13712
13713
13714
13715
13716
13717           GNULIB_MBSRTOWCS=1
13718
13719
13720
13721
13722
13723 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13724
13725
13726
13727
13728   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13729
13730
13731
13732
13733
13734
13735
13736
13737   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13738
13739
13740   for ac_header in bp-sym.h
13741 do :
13742   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13743 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13744   cat >>confdefs.h <<_ACEOF
13745 #define HAVE_BP_SYM_H 1
13746 _ACEOF
13747
13748 fi
13749
13750 done
13751
13752
13753   fi
13754
13755
13756
13757
13758
13759           GNULIB_MEMCHR=1
13760
13761
13762
13763
13764
13765 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13766
13767
13768
13769
13770
13771   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13773 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13774 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13775   $as_echo_n "(cached) " >&6
13776 else
13777   if test "$cross_compiling" = yes; then :
13778                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h.  */
13780
13781 #include <features.h>
13782 #ifdef __GNU_LIBRARY__
13783  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13784      && !defined __UCLIBC__
13785   Lucky user
13786  #endif
13787 #endif
13788 #ifdef __CYGWIN__
13789  #include <cygwin/version.h>
13790  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13791   Lucky user
13792  #endif
13793 #endif
13794
13795 _ACEOF
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797   $EGREP "Lucky user" >/dev/null 2>&1; then :
13798   gl_cv_func_memmem_works_fast="guessing yes"
13799 else
13800   gl_cv_func_memmem_works_fast="guessing no"
13801 fi
13802 rm -f conftest*
13803
13804
13805 else
13806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h.  */
13808
13809 #include <signal.h> /* for signal */
13810 #include <string.h> /* for memmem */
13811 #include <stdlib.h> /* for malloc */
13812 #include <unistd.h> /* for alarm */
13813 static void quit (int sig) { exit (sig + 128); }
13814
13815 int
13816 main ()
13817 {
13818
13819     int result = 0;
13820     size_t m = 1000000;
13821     char *haystack = (char *) malloc (2 * m + 1);
13822     char *needle = (char *) malloc (m + 1);
13823     /* Failure to compile this test due to missing alarm is okay,
13824        since all such platforms (mingw) also lack memmem.  */
13825     signal (SIGALRM, quit);
13826     alarm (5);
13827     /* Check for quadratic performance.  */
13828     if (haystack && needle)
13829       {
13830         memset (haystack, 'A', 2 * m);
13831         haystack[2 * m] = 'B';
13832         memset (needle, 'A', m);
13833         needle[m] = 'B';
13834         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13835           result |= 1;
13836       }
13837     return result;
13838
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_run "$LINENO"; then :
13844   gl_cv_func_memmem_works_fast=yes
13845 else
13846   gl_cv_func_memmem_works_fast=no
13847 fi
13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849   conftest.$ac_objext conftest.beam conftest.$ac_ext
13850 fi
13851
13852
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13855 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13856     case "$gl_cv_func_memmem_works_fast" in
13857       *yes) ;;
13858       *)
13859         REPLACE_MEMMEM=1
13860         ;;
13861     esac
13862   fi
13863
13864   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13865
13866
13867
13868
13869
13870
13871
13872
13873   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13874
13875   fi
13876
13877
13878
13879
13880   for ac_func in memmem
13881 do :
13882   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13883 if test "x$ac_cv_func_memmem" = x""yes; then :
13884   cat >>confdefs.h <<_ACEOF
13885 #define HAVE_MEMMEM 1
13886 _ACEOF
13887
13888 fi
13889 done
13890
13891   if test $ac_cv_func_memmem = yes; then
13892     HAVE_MEMMEM=1
13893   else
13894     HAVE_MEMMEM=0
13895   fi
13896
13897   if test $ac_cv_have_decl_memmem = no; then
13898     HAVE_DECL_MEMMEM=0
13899   else
13900             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13901 $as_echo_n "checking whether memmem works... " >&6; }
13902 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13903   $as_echo_n "(cached) " >&6
13904 else
13905   if test "$cross_compiling" = yes; then :
13906                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h.  */
13908
13909 #ifdef __GNU_LIBRARY__
13910  #include <features.h>
13911  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13912                           || __GLIBC_MINOR__ > 12)) \
13913       || (__GLIBC__ > 2)) \
13914      || defined __UCLIBC__
13915   Lucky user
13916  #endif
13917 #elif defined __CYGWIN__
13918  #include <cygwin/version.h>
13919  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13920   Lucky user
13921  #endif
13922 #else
13923   Lucky user
13924 #endif
13925
13926 _ACEOF
13927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13928   $EGREP "Lucky user" >/dev/null 2>&1; then :
13929   gl_cv_func_memmem_works_always="guessing yes"
13930 else
13931   gl_cv_func_memmem_works_always="guessing no"
13932 fi
13933 rm -f conftest*
13934
13935
13936 else
13937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h.  */
13939
13940 #include <string.h> /* for memmem */
13941 #define P "_EF_BF_BD"
13942 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13943 #define NEEDLE P P P P P
13944
13945 int
13946 main ()
13947 {
13948
13949     int result = 0;
13950     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13951       result |= 1;
13952     /* Check for empty needle behavior.  */
13953     {
13954       const char *haystack = "AAA";
13955       if (memmem (haystack, 3, NULL, 0) != haystack)
13956         result |= 2;
13957     }
13958     return result;
13959
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_c_try_run "$LINENO"; then :
13965   gl_cv_func_memmem_works_always=yes
13966 else
13967   gl_cv_func_memmem_works_always=no
13968 fi
13969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13970   conftest.$ac_objext conftest.beam conftest.$ac_ext
13971 fi
13972
13973
13974 fi
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13976 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13977     case "$gl_cv_func_memmem_works_always" in
13978       *yes) ;;
13979       *)
13980         REPLACE_MEMMEM=1
13981         ;;
13982     esac
13983   fi
13984   :
13985
13986   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13987
13988
13989
13990
13991
13992
13993
13994
13995   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13996
13997   fi
13998
13999
14000
14001
14002
14003           GNULIB_MEMMEM=1
14004
14005
14006
14007
14008
14009 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14010
14011
14012
14013
14014
14015
14016
14017
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14019 $as_echo_n "checking for ssize_t... " >&6; }
14020 if test "${gt_cv_ssize_t+set}" = set; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025 #include <sys/types.h>
14026 int
14027 main ()
14028 {
14029 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14030             return !x;
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036   gt_cv_ssize_t=yes
14037 else
14038   gt_cv_ssize_t=no
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14043 $as_echo "$gt_cv_ssize_t" >&6; }
14044   if test $gt_cv_ssize_t = no; then
14045
14046 $as_echo "#define ssize_t int" >>confdefs.h
14047
14048   fi
14049
14050
14051
14052
14053   # Define two additional variables used in the Makefile substitution.
14054
14055   if test "$ac_cv_header_stdbool_h" = yes; then
14056     STDBOOL_H=''
14057   else
14058     STDBOOL_H='stdbool.h'
14059   fi
14060
14061    if test -n "$STDBOOL_H"; then
14062   GL_GENERATE_STDBOOL_H_TRUE=
14063   GL_GENERATE_STDBOOL_H_FALSE='#'
14064 else
14065   GL_GENERATE_STDBOOL_H_TRUE='#'
14066   GL_GENERATE_STDBOOL_H_FALSE=
14067 fi
14068
14069
14070   if test "$ac_cv_type__Bool" = yes; then
14071     HAVE__BOOL=1
14072   else
14073     HAVE__BOOL=0
14074   fi
14075
14076
14077
14078
14079
14080   STDDEF_H=
14081   if test $gt_cv_c_wchar_t = no; then
14082     HAVE_WCHAR_T=0
14083     STDDEF_H=stddef.h
14084   fi
14085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14087 if test "${gl_cv_decl_null_works+set}" = set; then :
14088   $as_echo_n "(cached) " >&6
14089 else
14090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h.  */
14092 #include <stddef.h>
14093       int test[2 * (sizeof NULL == sizeof (void *)) -1];
14094
14095 int
14096 main ()
14097 {
14098
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_compile "$LINENO"; then :
14104   gl_cv_decl_null_works=yes
14105 else
14106   gl_cv_decl_null_works=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14111 $as_echo "$gl_cv_decl_null_works" >&6; }
14112   if test $gl_cv_decl_null_works = no; then
14113     REPLACE_NULL=1
14114     STDDEF_H=stddef.h
14115   fi
14116
14117    if test -n "$STDDEF_H"; then
14118   GL_GENERATE_STDDEF_H_TRUE=
14119   GL_GENERATE_STDDEF_H_FALSE='#'
14120 else
14121   GL_GENERATE_STDDEF_H_TRUE='#'
14122   GL_GENERATE_STDDEF_H_FALSE=
14123 fi
14124
14125   if test -n "$STDDEF_H"; then
14126
14127
14128
14129
14130
14131
14132
14133
14134      if test $gl_cv_have_include_next = yes; then
14135        gl_cv_next_stddef_h='<'stddef.h'>'
14136      else
14137        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14139 if test "${gl_cv_next_stddef_h+set}" = set; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142
14143                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h.  */
14145 #include <stddef.h>
14146
14147 _ACEOF
14148                                                                                                                         case "$host_os" in
14149                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14150                  *)    gl_absname_cpp="$ac_cpp" ;;
14151                esac
14152
14153                case "$host_os" in
14154                  mingw*)
14155                                                                                                                                      gl_dirsep_regex='[/\\]'
14156                    ;;
14157                  *)
14158                    gl_dirsep_regex='\/'
14159                    ;;
14160                esac
14161                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14162
14163                gl_header_literal_regex=`echo 'stddef.h' \
14164                                         | sed -e "$gl_make_literal_regex_sed"`
14165                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14166                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14167                    s|^/[^/]|//&|
14168                    p
14169                    q
14170                  }'
14171                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14172                       sed -n "$gl_absolute_header_sed"`'"'
14173
14174
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14177 $as_echo "$gl_cv_next_stddef_h" >&6; }
14178      fi
14179      NEXT_STDDEF_H=$gl_cv_next_stddef_h
14180
14181      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14182        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14183        gl_next_as_first_directive='<'stddef.h'>'
14184      else
14185        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14186        gl_next_as_first_directive=$gl_cv_next_stddef_h
14187      fi
14188      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14189
14190
14191
14192
14193   fi
14194
14195
14196
14197
14198
14199
14200
14201   if test $REPLACE_STRSTR = 0; then
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14203 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14204 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207   if test "$cross_compiling" = yes; then :
14208                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210
14211 #include <features.h>
14212 #ifdef __GNU_LIBRARY__
14213  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14214      && !(defined __i386__ || defined __x86_64__) \
14215      && !defined __UCLIBC__
14216   Lucky user
14217  #endif
14218 #endif
14219 #ifdef __CYGWIN__
14220  #include <cygwin/version.h>
14221  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14222   Lucky user
14223  #endif
14224 #endif
14225
14226 _ACEOF
14227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14228   $EGREP "Lucky user" >/dev/null 2>&1; then :
14229   gl_cv_func_strstr_linear="guessing yes"
14230 else
14231   gl_cv_func_strstr_linear="guessing no"
14232 fi
14233 rm -f conftest*
14234
14235
14236 else
14237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h.  */
14239
14240 #include <signal.h> /* for signal */
14241 #include <string.h> /* for strstr */
14242 #include <stdlib.h> /* for malloc */
14243 #include <unistd.h> /* for alarm */
14244 static void quit (int sig) { exit (sig + 128); }
14245
14246 int
14247 main ()
14248 {
14249
14250     int result = 0;
14251     size_t m = 1000000;
14252     char *haystack = (char *) malloc (2 * m + 2);
14253     char *needle = (char *) malloc (m + 2);
14254     /* Failure to compile this test due to missing alarm is okay,
14255        since all such platforms (mingw) also have quadratic strstr.  */
14256     signal (SIGALRM, quit);
14257     alarm (5);
14258     /* Check for quadratic performance.  */
14259     if (haystack && needle)
14260       {
14261         memset (haystack, 'A', 2 * m);
14262         haystack[2 * m] = 'B';
14263         haystack[2 * m + 1] = 0;
14264         memset (needle, 'A', m);
14265         needle[m] = 'B';
14266         needle[m + 1] = 0;
14267         if (!strstr (haystack, needle))
14268           result |= 1;
14269       }
14270     return result;
14271
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_run "$LINENO"; then :
14277   gl_cv_func_strstr_linear=yes
14278 else
14279   gl_cv_func_strstr_linear=no
14280 fi
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282   conftest.$ac_objext conftest.beam conftest.$ac_ext
14283 fi
14284
14285
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14288 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14289     case "$gl_cv_func_strstr_linear" in
14290       *yes) ;;
14291       *)
14292         REPLACE_STRSTR=1
14293         ;;
14294     esac
14295   fi
14296
14297   if test $REPLACE_STRSTR = 1; then
14298
14299
14300
14301
14302
14303
14304
14305
14306   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14307
14308   fi
14309
14310
14311
14312   if test "$gl_cv_func_memchr_works" != yes; then
14313     REPLACE_STRSTR=1
14314   else
14315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14316 $as_echo_n "checking whether strstr works... " >&6; }
14317 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320   if test "$cross_compiling" = yes; then :
14321                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h.  */
14323
14324 #ifdef __GNU_LIBRARY__
14325  #include <features.h>
14326  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14327      || defined __UCLIBC__
14328   Lucky user
14329  #endif
14330 #elif defined __CYGWIN__
14331  #include <cygwin/version.h>
14332  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14333   Lucky user
14334  #endif
14335 #else
14336   Lucky user
14337 #endif
14338
14339 _ACEOF
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341   $EGREP "Lucky user" >/dev/null 2>&1; then :
14342   gl_cv_func_strstr_works_always="guessing yes"
14343 else
14344   gl_cv_func_strstr_works_always="guessing no"
14345 fi
14346 rm -f conftest*
14347
14348
14349 else
14350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352
14353 #include <string.h> /* for strstr */
14354 #define P "_EF_BF_BD"
14355 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14356 #define NEEDLE P P P P P
14357
14358 int
14359 main ()
14360 {
14361 return !!strstr (HAYSTACK, NEEDLE);
14362
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_run "$LINENO"; then :
14368   gl_cv_func_strstr_works_always=yes
14369 else
14370   gl_cv_func_strstr_works_always=no
14371 fi
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14373   conftest.$ac_objext conftest.beam conftest.$ac_ext
14374 fi
14375
14376
14377 fi
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14379 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14380     case "$gl_cv_func_strstr_works_always" in
14381       *yes) ;;
14382       *)
14383         REPLACE_STRSTR=1
14384         ;;
14385     esac
14386   fi
14387
14388   if test $REPLACE_STRSTR = 1; then
14389
14390
14391
14392
14393
14394
14395
14396
14397   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14398
14399   fi
14400
14401
14402
14403
14404
14405           GNULIB_STRSTR=1
14406
14407
14408
14409
14410
14411 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429      if test $gl_cv_have_include_next = yes; then
14430        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14431      else
14432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14433 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14434 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14435   $as_echo_n "(cached) " >&6
14436 else
14437
14438              if test $ac_cv_header_sys_stat_h = yes; then
14439
14440
14441                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h.  */
14443 #include <sys/stat.h>
14444
14445 _ACEOF
14446                                                                                                                         case "$host_os" in
14447                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14448                  *)    gl_absname_cpp="$ac_cpp" ;;
14449                esac
14450
14451                case "$host_os" in
14452                  mingw*)
14453                                                                                                                                      gl_dirsep_regex='[/\\]'
14454                    ;;
14455                  *)
14456                    gl_dirsep_regex='\/'
14457                    ;;
14458                esac
14459                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14460
14461                gl_header_literal_regex=`echo 'sys/stat.h' \
14462                                         | sed -e "$gl_make_literal_regex_sed"`
14463                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14464                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14465                    s|^/[^/]|//&|
14466                    p
14467                    q
14468                  }'
14469                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14470                       sed -n "$gl_absolute_header_sed"`'"'
14471           else
14472                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14473              fi
14474
14475
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14478 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14479      fi
14480      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14481
14482      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14483        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14484        gl_next_as_first_directive='<'sys/stat.h'>'
14485      else
14486        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14487        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14488      fi
14489      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14490
14491
14492
14493
14494
14495
14496
14497
14498     WINDOWS_64_BIT_ST_SIZE=0
14499
14500
14501   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14502
14503 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
14504
14505   fi
14506
14507       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14508      #include <sys/stat.h>
14509 "
14510 if test "x$ac_cv_type_nlink_t" = x""yes; then :
14511
14512 else
14513
14514 $as_echo "#define nlink_t int" >>confdefs.h
14515
14516 fi
14517
14518
14519
14520     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
14521     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14523 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14524 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h.  */
14529 #include <sys/stat.h>
14530
14531 int
14532 main ()
14533 {
14534 #undef $gl_func
14535   (void) $gl_func;
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"; then :
14541   eval "$as_gl_Symbol=yes"
14542 else
14543   eval "$as_gl_Symbol=no"
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 fi
14547 eval ac_res=\$$as_gl_Symbol
14548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14549 $as_echo "$ac_res" >&6; }
14550     eval as_val=\$$as_gl_Symbol
14551    if test "x$as_val" = x""yes; then :
14552   cat >>confdefs.h <<_ACEOF
14553 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14554 _ACEOF
14555
14556                      eval ac_cv_have_decl_$gl_func=yes
14557 fi
14558       done
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573      if test $gl_cv_have_include_next = yes; then
14574        gl_cv_next_sys_types_h='<'sys/types.h'>'
14575      else
14576        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14577 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14578 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14579   $as_echo_n "(cached) " >&6
14580 else
14581
14582                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h.  */
14584 #include <sys/types.h>
14585
14586 _ACEOF
14587                                                                                                                         case "$host_os" in
14588                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14589                  *)    gl_absname_cpp="$ac_cpp" ;;
14590                esac
14591
14592                case "$host_os" in
14593                  mingw*)
14594                                                                                                                                      gl_dirsep_regex='[/\\]'
14595                    ;;
14596                  *)
14597                    gl_dirsep_regex='\/'
14598                    ;;
14599                esac
14600                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14601
14602                gl_header_literal_regex=`echo 'sys/types.h' \
14603                                         | sed -e "$gl_make_literal_regex_sed"`
14604                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14605                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14606                    s|^/[^/]|//&|
14607                    p
14608                    q
14609                  }'
14610                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14611                       sed -n "$gl_absolute_header_sed"`'"'
14612
14613
14614 fi
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14616 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14617      fi
14618      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14619
14620      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14621        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14622        gl_next_as_first_directive='<'sys/types.h'>'
14623      else
14624        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14625        gl_next_as_first_directive=$gl_cv_next_sys_types_h
14626      fi
14627      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655      if test $gl_cv_have_include_next = yes; then
14656        gl_cv_next_unistd_h='<'unistd.h'>'
14657      else
14658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14659 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14660 if test "${gl_cv_next_unistd_h+set}" = set; then :
14661   $as_echo_n "(cached) " >&6
14662 else
14663
14664              if test $ac_cv_header_unistd_h = yes; then
14665
14666
14667                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669 #include <unistd.h>
14670
14671 _ACEOF
14672                                                                                                                         case "$host_os" in
14673                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14674                  *)    gl_absname_cpp="$ac_cpp" ;;
14675                esac
14676
14677                case "$host_os" in
14678                  mingw*)
14679                                                                                                                                      gl_dirsep_regex='[/\\]'
14680                    ;;
14681                  *)
14682                    gl_dirsep_regex='\/'
14683                    ;;
14684                esac
14685                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14686
14687                gl_header_literal_regex=`echo 'unistd.h' \
14688                                         | sed -e "$gl_make_literal_regex_sed"`
14689                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14690                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14691                    s|^/[^/]|//&|
14692                    p
14693                    q
14694                  }'
14695                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14696                       sed -n "$gl_absolute_header_sed"`'"'
14697           else
14698                gl_cv_next_unistd_h='<'unistd.h'>'
14699              fi
14700
14701
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14704 $as_echo "$gl_cv_next_unistd_h" >&6; }
14705      fi
14706      NEXT_UNISTD_H=$gl_cv_next_unistd_h
14707
14708      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14709        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14710        gl_next_as_first_directive='<'unistd.h'>'
14711      else
14712        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14713        gl_next_as_first_directive=$gl_cv_next_unistd_h
14714      fi
14715      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14716
14717
14718
14719
14720   if test $ac_cv_header_unistd_h = yes; then
14721     HAVE_UNISTD_H=1
14722   else
14723     HAVE_UNISTD_H=0
14724   fi
14725
14726
14727
14728
14729
14730
14731
14732     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
14733     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14735 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14736 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14737   $as_echo_n "(cached) " >&6
14738 else
14739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h.  */
14741
14742 #if HAVE_UNISTD_H
14743 # include <unistd.h>
14744 #endif
14745 /* Some systems declare various items in the wrong headers.  */
14746 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14747 # include <fcntl.h>
14748 # include <stdio.h>
14749 # include <stdlib.h>
14750 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14751 #  include <io.h>
14752 # endif
14753 #endif
14754
14755 int
14756 main ()
14757 {
14758 #undef $gl_func
14759   (void) $gl_func;
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765   eval "$as_gl_Symbol=yes"
14766 else
14767   eval "$as_gl_Symbol=no"
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 fi
14771 eval ac_res=\$$as_gl_Symbol
14772                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14773 $as_echo "$ac_res" >&6; }
14774     eval as_val=\$$as_gl_Symbol
14775    if test "x$as_val" = x""yes; then :
14776   cat >>confdefs.h <<_ACEOF
14777 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14778 _ACEOF
14779
14780                      eval ac_cv_have_decl_$gl_func=yes
14781 fi
14782       done
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797      if test $gl_cv_have_include_next = yes; then
14798        gl_cv_next_wchar_h='<'wchar.h'>'
14799      else
14800        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14801 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14802 if test "${gl_cv_next_wchar_h+set}" = set; then :
14803   $as_echo_n "(cached) " >&6
14804 else
14805
14806              if test $ac_cv_header_wchar_h = yes; then
14807
14808
14809                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h.  */
14811 #include <wchar.h>
14812
14813 _ACEOF
14814                                                                                                                         case "$host_os" in
14815                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14816                  *)    gl_absname_cpp="$ac_cpp" ;;
14817                esac
14818
14819                case "$host_os" in
14820                  mingw*)
14821                                                                                                                                      gl_dirsep_regex='[/\\]'
14822                    ;;
14823                  *)
14824                    gl_dirsep_regex='\/'
14825                    ;;
14826                esac
14827                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14828
14829                gl_header_literal_regex=`echo 'wchar.h' \
14830                                         | sed -e "$gl_make_literal_regex_sed"`
14831                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14832                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14833                    s|^/[^/]|//&|
14834                    p
14835                    q
14836                  }'
14837                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14838                       sed -n "$gl_absolute_header_sed"`'"'
14839           else
14840                gl_cv_next_wchar_h='<'wchar.h'>'
14841              fi
14842
14843
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14846 $as_echo "$gl_cv_next_wchar_h" >&6; }
14847      fi
14848      NEXT_WCHAR_H=$gl_cv_next_wchar_h
14849
14850      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852        gl_next_as_first_directive='<'wchar.h'>'
14853      else
14854        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855        gl_next_as_first_directive=$gl_cv_next_wchar_h
14856      fi
14857      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14858
14859
14860
14861
14862   if test $ac_cv_header_wchar_h = yes; then
14863     HAVE_WCHAR_H=1
14864   else
14865     HAVE_WCHAR_H=0
14866   fi
14867
14868
14869
14870
14871
14872   if test $gt_cv_c_wint_t = yes; then
14873     HAVE_WINT_T=1
14874   else
14875     HAVE_WINT_T=0
14876   fi
14877
14878
14879
14880     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
14881     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14883 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14884 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14885   $as_echo_n "(cached) " >&6
14886 else
14887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h.  */
14889
14890 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14891    <wchar.h>.
14892    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14893    included before <wchar.h>.  */
14894 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14895 # include <stddef.h>
14896 # include <stdio.h>
14897 # include <time.h>
14898 #endif
14899 #include <wchar.h>
14900
14901 int
14902 main ()
14903 {
14904 #undef $gl_func
14905   (void) $gl_func;
14906   ;
14907   return 0;
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_compile "$LINENO"; then :
14911   eval "$as_gl_Symbol=yes"
14912 else
14913   eval "$as_gl_Symbol=no"
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 fi
14917 eval ac_res=\$$as_gl_Symbol
14918                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14919 $as_echo "$ac_res" >&6; }
14920     eval as_val=\$$as_gl_Symbol
14921    if test "x$as_val" = x""yes; then :
14922   cat >>confdefs.h <<_ACEOF
14923 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926                      eval ac_cv_have_decl_$gl_func=yes
14927 fi
14928       done
14929
14930
14931
14932
14933
14934
14935
14936   if test $ac_cv_func_iswcntrl = yes; then
14937     HAVE_ISWCNTRL=1
14938   else
14939     HAVE_ISWCNTRL=0
14940   fi
14941
14942
14943
14944   if test $gt_cv_c_wint_t = yes; then
14945     HAVE_WINT_T=1
14946   else
14947     HAVE_WINT_T=0
14948   fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960      if test $gl_cv_have_include_next = yes; then
14961        gl_cv_next_wctype_h='<'wctype.h'>'
14962      else
14963        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14964 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14965 if test "${gl_cv_next_wctype_h+set}" = set; then :
14966   $as_echo_n "(cached) " >&6
14967 else
14968
14969              if test $ac_cv_header_wctype_h = yes; then
14970
14971
14972                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h.  */
14974 #include <wctype.h>
14975
14976 _ACEOF
14977                                                                                                                         case "$host_os" in
14978                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14979                  *)    gl_absname_cpp="$ac_cpp" ;;
14980                esac
14981
14982                case "$host_os" in
14983                  mingw*)
14984                                                                                                                                      gl_dirsep_regex='[/\\]'
14985                    ;;
14986                  *)
14987                    gl_dirsep_regex='\/'
14988                    ;;
14989                esac
14990                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14991
14992                gl_header_literal_regex=`echo 'wctype.h' \
14993                                         | sed -e "$gl_make_literal_regex_sed"`
14994                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14995                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14996                    s|^/[^/]|//&|
14997                    p
14998                    q
14999                  }'
15000                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15001                       sed -n "$gl_absolute_header_sed"`'"'
15002           else
15003                gl_cv_next_wctype_h='<'wctype.h'>'
15004              fi
15005
15006
15007 fi
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15009 $as_echo "$gl_cv_next_wctype_h" >&6; }
15010      fi
15011      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15012
15013      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15014        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15015        gl_next_as_first_directive='<'wctype.h'>'
15016      else
15017        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15018        gl_next_as_first_directive=$gl_cv_next_wctype_h
15019      fi
15020      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15021
15022
15023
15024
15025   if test $ac_cv_header_wctype_h = yes; then
15026     if test $ac_cv_func_iswcntrl = yes; then
15027                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15028 $as_echo_n "checking whether iswcntrl works... " >&6; }
15029 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15030   $as_echo_n "(cached) " >&6
15031 else
15032
15033           if test "$cross_compiling" = yes; then :
15034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h.  */
15036 #include <stdlib.h>
15037                           #if __GNU_LIBRARY__ == 1
15038                           Linux libc5 i18n is broken.
15039                           #endif
15040 int
15041 main ()
15042 {
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 if ac_fn_c_try_compile "$LINENO"; then :
15049   gl_cv_func_iswcntrl_works="guessing yes"
15050 else
15051   gl_cv_func_iswcntrl_works="guessing no"
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054
15055 else
15056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h.  */
15058
15059                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15060                   included before <wchar.h>.
15061                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15062                   must be included before <wchar.h>.  */
15063                #include <stddef.h>
15064                #include <stdio.h>
15065                #include <time.h>
15066                #include <wchar.h>
15067                #include <wctype.h>
15068                int main () { return iswprint ('x') == 0; }
15069
15070 _ACEOF
15071 if ac_fn_c_try_run "$LINENO"; then :
15072   gl_cv_func_iswcntrl_works=yes
15073 else
15074   gl_cv_func_iswcntrl_works=no
15075 fi
15076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15077   conftest.$ac_objext conftest.beam conftest.$ac_ext
15078 fi
15079
15080
15081 fi
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15083 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15084     fi
15085     HAVE_WCTYPE_H=1
15086   else
15087     HAVE_WCTYPE_H=0
15088   fi
15089
15090
15091   case "$gl_cv_func_iswcntrl_works" in
15092     *yes) REPLACE_ISWCNTRL=0 ;;
15093     *)    REPLACE_ISWCNTRL=1 ;;
15094   esac
15095
15096
15097   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15098         :
15099   fi
15100
15101   if test $REPLACE_ISWCNTRL = 1; then
15102     REPLACE_TOWLOWER=1
15103   else
15104     for ac_func in towlower
15105 do :
15106   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15107 if test "x$ac_cv_func_towlower" = x""yes; then :
15108   cat >>confdefs.h <<_ACEOF
15109 #define HAVE_TOWLOWER 1
15110 _ACEOF
15111
15112 fi
15113 done
15114
15115     if test $ac_cv_func_towlower = yes; then
15116       REPLACE_TOWLOWER=0
15117     else
15118       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15119              included before <wchar.h>.
15120              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15121              must be included before <wchar.h>.  */
15122           #include <stddef.h>
15123           #include <stdio.h>
15124           #include <time.h>
15125           #include <wchar.h>
15126           #if HAVE_WCTYPE_H
15127           # include <wctype.h>
15128           #endif
15129
15130 "
15131 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15132   ac_have_decl=1
15133 else
15134   ac_have_decl=0
15135 fi
15136
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_DECL_TOWLOWER $ac_have_decl
15139 _ACEOF
15140
15141       if test $ac_cv_have_decl_towlower = yes; then
15142                                 REPLACE_TOWLOWER=1
15143       else
15144         REPLACE_TOWLOWER=0
15145       fi
15146     fi
15147   fi
15148
15149
15150   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15151         :
15152   fi
15153
15154           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15155 $as_echo_n "checking for wctype_t... " >&6; }
15156 if test "${gl_cv_type_wctype_t+set}" = set; then :
15157   $as_echo_n "(cached) " >&6
15158 else
15159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15162                included before <wchar.h>.
15163                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15164                must be included before <wchar.h>.  */
15165             #include <stddef.h>
15166             #include <stdio.h>
15167             #include <time.h>
15168             #include <wchar.h>
15169             #if HAVE_WCTYPE_H
15170             # include <wctype.h>
15171             #endif
15172             wctype_t a;
15173
15174 int
15175 main ()
15176 {
15177
15178   ;
15179   return 0;
15180 }
15181 _ACEOF
15182 if ac_fn_c_try_compile "$LINENO"; then :
15183   gl_cv_type_wctype_t=yes
15184 else
15185   gl_cv_type_wctype_t=no
15186 fi
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15191 $as_echo "$gl_cv_type_wctype_t" >&6; }
15192   if test $gl_cv_type_wctype_t = no; then
15193     HAVE_WCTYPE_T=0
15194   fi
15195
15196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15197 $as_echo_n "checking for wctrans_t... " >&6; }
15198 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h.  */
15203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15204                included before <wchar.h>.
15205                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15206                must be included before <wchar.h>.  */
15207             #include <stddef.h>
15208             #include <stdio.h>
15209             #include <time.h>
15210             #include <wchar.h>
15211             #include <wctype.h>
15212             wctrans_t a;
15213
15214 int
15215 main ()
15216 {
15217
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 if ac_fn_c_try_compile "$LINENO"; then :
15223   gl_cv_type_wctrans_t=yes
15224 else
15225   gl_cv_type_wctrans_t=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15231 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15232   if test $gl_cv_type_wctrans_t = no; then
15233     HAVE_WCTRANS_T=0
15234   fi
15235
15236
15237     for gl_func in wctype iswctype wctrans towctrans     ; do
15238     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15240 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15241 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15242   $as_echo_n "(cached) " >&6
15243 else
15244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h.  */
15246
15247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15248    <wchar.h>.
15249    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15250    included before <wchar.h>.  */
15251 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15252 # include <stddef.h>
15253 # include <stdio.h>
15254 # include <time.h>
15255 # include <wchar.h>
15256 #endif
15257 #include <wctype.h>
15258
15259 int
15260 main ()
15261 {
15262 #undef $gl_func
15263   (void) $gl_func;
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269   eval "$as_gl_Symbol=yes"
15270 else
15271   eval "$as_gl_Symbol=no"
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 fi
15275 eval ac_res=\$$as_gl_Symbol
15276                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15277 $as_echo "$ac_res" >&6; }
15278     eval as_val=\$$as_gl_Symbol
15279    if test "x$as_val" = x""yes; then :
15280   cat >>confdefs.h <<_ACEOF
15281 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15282 _ACEOF
15283
15284                      eval ac_cv_have_decl_$gl_func=yes
15285 fi
15286       done
15287
15288
15289   # End of code from modules
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299   gltests_libdeps=
15300   gltests_ltlibdeps=
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310   gl_source_base='tests'
15311   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15312
15313   gl_module_indicator_condition=$gltests_WITNESS
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323   LIBGNU_LIBDEPS="$gl_libdeps"
15324
15325   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15326
15327
15328
15329 # We don't use automake, but gnulib does.  This line lets us generate
15330 # its Makefile.in.
15331 am__api_version='1.11'
15332
15333 # Find a good install program.  We prefer a C program (faster),
15334 # so one script is as good as another.  But avoid the broken or
15335 # incompatible versions:
15336 # SysV /etc/install, /usr/sbin/install
15337 # SunOS /usr/etc/install
15338 # IRIX /sbin/install
15339 # AIX /bin/install
15340 # AmigaOS /C/install, which installs bootblocks on floppy discs
15341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15344 # OS/2's system install, which has a completely different semantic
15345 # ./install, which can be erroneously created by make from ./install.sh.
15346 # Reject install programs that cannot install multiple files.
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15349 if test -z "$INSTALL"; then
15350 if test "${ac_cv_path_install+set}" = set; then :
15351   $as_echo_n "(cached) " >&6
15352 else
15353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15355 do
15356   IFS=$as_save_IFS
15357   test -z "$as_dir" && as_dir=.
15358     # Account for people who put trailing slashes in PATH elements.
15359 case $as_dir/ in #((
15360   ./ | .// | /[cC]/* | \
15361   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15362   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15363   /usr/ucb/* ) ;;
15364   *)
15365     # OSF1 and SCO ODT 3.0 have their own names for install.
15366     # Don't use installbsd from OSF since it installs stuff as root
15367     # by default.
15368     for ac_prog in ginstall scoinst install; do
15369       for ac_exec_ext in '' $ac_executable_extensions; do
15370         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15371           if test $ac_prog = install &&
15372             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15373             # AIX install.  It has an incompatible calling convention.
15374             :
15375           elif test $ac_prog = install &&
15376             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15377             # program-specific install script used by HP pwplus--don't use.
15378             :
15379           else
15380             rm -rf conftest.one conftest.two conftest.dir
15381             echo one > conftest.one
15382             echo two > conftest.two
15383             mkdir conftest.dir
15384             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15385               test -s conftest.one && test -s conftest.two &&
15386               test -s conftest.dir/conftest.one &&
15387               test -s conftest.dir/conftest.two
15388             then
15389               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15390               break 3
15391             fi
15392           fi
15393         fi
15394       done
15395     done
15396     ;;
15397 esac
15398
15399   done
15400 IFS=$as_save_IFS
15401
15402 rm -rf conftest.one conftest.two conftest.dir
15403
15404 fi
15405   if test "${ac_cv_path_install+set}" = set; then
15406     INSTALL=$ac_cv_path_install
15407   else
15408     # As a last resort, use the slow shell script.  Don't cache a
15409     # value for INSTALL within a source directory, because that will
15410     # break other packages using the cache if that directory is
15411     # removed, or if the value is a relative name.
15412     INSTALL=$ac_install_sh
15413   fi
15414 fi
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15416 $as_echo "$INSTALL" >&6; }
15417
15418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15419 # It thinks the first close brace ends the variable substitution.
15420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15421
15422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15423
15424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15427 $as_echo_n "checking whether build environment is sane... " >&6; }
15428 # Just in case
15429 sleep 1
15430 echo timestamp > conftest.file
15431 # Reject unsafe characters in $srcdir or the absolute working directory
15432 # name.  Accept space and tab only in the latter.
15433 am_lf='
15434 '
15435 case `pwd` in
15436   *[\\\"\#\$\&\'\`$am_lf]*)
15437     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
15438 esac
15439 case $srcdir in
15440   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
15441     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15442 esac
15443
15444 # Do `set' in a subshell so we don't clobber the current shell's
15445 # arguments.  Must try -L first in case configure is actually a
15446 # symlink; some systems play weird games with the mod time of symlinks
15447 # (eg FreeBSD returns the mod time of the symlink's containing
15448 # directory).
15449 if (
15450    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15451    if test "$*" = "X"; then
15452       # -L didn't work.
15453       set X `ls -t "$srcdir/configure" conftest.file`
15454    fi
15455    rm -f conftest.file
15456    if test "$*" != "X $srcdir/configure conftest.file" \
15457       && test "$*" != "X conftest.file $srcdir/configure"; then
15458
15459       # If neither matched, then we have a broken ls.  This can happen
15460       # if, for instance, CONFIG_SHELL is bash and it inherits a
15461       # broken ls alias from the environment.  This has actually
15462       # happened.  Such a system could not be considered "sane".
15463       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
15464 alias in your environment" "$LINENO" 5
15465    fi
15466
15467    test "$2" = conftest.file
15468    )
15469 then
15470    # Ok.
15471    :
15472 else
15473    as_fn_error "newly created file is older than distributed files!
15474 Check your system clock" "$LINENO" 5
15475 fi
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15477 $as_echo "yes" >&6; }
15478 test "$program_prefix" != NONE &&
15479   program_transform_name="s&^&$program_prefix&;$program_transform_name"
15480 # Use a double $ so make ignores it.
15481 test "$program_suffix" != NONE &&
15482   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15483 # Double any \ or $.
15484 # By default was `s,x,x', remove it if useless.
15485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15487
15488 # expand $ac_aux_dir to an absolute path
15489 am_aux_dir=`cd $ac_aux_dir && pwd`
15490
15491 if test x"${MISSING+set}" != xset; then
15492   case $am_aux_dir in
15493   *\ * | *\     *)
15494     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15495   *)
15496     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15497   esac
15498 fi
15499 # Use eval to expand $SHELL
15500 if eval "$MISSING --run true"; then
15501   am_missing_run="$MISSING --run "
15502 else
15503   am_missing_run=
15504   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15505 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15506 fi
15507
15508 if test x"${install_sh}" != xset; then
15509   case $am_aux_dir in
15510   *\ * | *\     *)
15511     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15512   *)
15513     install_sh="\${SHELL} $am_aux_dir/install-sh"
15514   esac
15515 fi
15516
15517 # Installed binaries are usually stripped using `strip' when the user
15518 # run `make install-strip'.  However `strip' might not be the right
15519 # tool to use in cross-compilation environments, therefore Automake
15520 # will honor the `STRIP' environment variable to overrule this program.
15521 if test "$cross_compiling" != no; then
15522   if test -n "$ac_tool_prefix"; then
15523   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15524 set dummy ${ac_tool_prefix}strip; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if test "${ac_cv_prog_STRIP+set}" = set; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   if test -n "$STRIP"; then
15531   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15532 else
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15535 do
15536   IFS=$as_save_IFS
15537   test -z "$as_dir" && as_dir=.
15538     for ac_exec_ext in '' $ac_executable_extensions; do
15539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542     break 2
15543   fi
15544 done
15545   done
15546 IFS=$as_save_IFS
15547
15548 fi
15549 fi
15550 STRIP=$ac_cv_prog_STRIP
15551 if test -n "$STRIP"; then
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15553 $as_echo "$STRIP" >&6; }
15554 else
15555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15557 fi
15558
15559
15560 fi
15561 if test -z "$ac_cv_prog_STRIP"; then
15562   ac_ct_STRIP=$STRIP
15563   # Extract the first word of "strip", so it can be a program name with args.
15564 set dummy strip; ac_word=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   if test -n "$ac_ct_STRIP"; then
15571   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15572 else
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15575 do
15576   IFS=$as_save_IFS
15577   test -z "$as_dir" && as_dir=.
15578     for ac_exec_ext in '' $ac_executable_extensions; do
15579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15580     ac_cv_prog_ac_ct_STRIP="strip"
15581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582     break 2
15583   fi
15584 done
15585   done
15586 IFS=$as_save_IFS
15587
15588 fi
15589 fi
15590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15591 if test -n "$ac_ct_STRIP"; then
15592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15593 $as_echo "$ac_ct_STRIP" >&6; }
15594 else
15595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15597 fi
15598
15599   if test "x$ac_ct_STRIP" = x; then
15600     STRIP=":"
15601   else
15602     case $cross_compiling:$ac_tool_warned in
15603 yes:)
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15606 ac_tool_warned=yes ;;
15607 esac
15608     STRIP=$ac_ct_STRIP
15609   fi
15610 else
15611   STRIP="$ac_cv_prog_STRIP"
15612 fi
15613
15614 fi
15615 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15616
15617 mkdir_p="$MKDIR_P"
15618 case $mkdir_p in
15619   [\\/$]* | ?:[\\/]*) ;;
15620   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15621 esac
15622
15623 for ac_prog in gawk mawk nawk awk
15624 do
15625   # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy $ac_prog; ac_word=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if test "${ac_cv_prog_AWK+set}" = set; then :
15630   $as_echo_n "(cached) " >&6
15631 else
15632   if test -n "$AWK"; then
15633   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15634 else
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15637 do
15638   IFS=$as_save_IFS
15639   test -z "$as_dir" && as_dir=.
15640     for ac_exec_ext in '' $ac_executable_extensions; do
15641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15642     ac_cv_prog_AWK="$ac_prog"
15643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15644     break 2
15645   fi
15646 done
15647   done
15648 IFS=$as_save_IFS
15649
15650 fi
15651 fi
15652 AWK=$ac_cv_prog_AWK
15653 if test -n "$AWK"; then
15654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15655 $as_echo "$AWK" >&6; }
15656 else
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15659 fi
15660
15661
15662   test -n "$AWK" && break
15663 done
15664
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15667 set x ${MAKE-make}
15668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15669 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15670   $as_echo_n "(cached) " >&6
15671 else
15672   cat >conftest.make <<\_ACEOF
15673 SHELL = /bin/sh
15674 all:
15675         @echo '@@@%%%=$(MAKE)=@@@%%%'
15676 _ACEOF
15677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15679   *@@@%%%=?*=@@@%%%*)
15680     eval ac_cv_prog_make_${ac_make}_set=yes;;
15681   *)
15682     eval ac_cv_prog_make_${ac_make}_set=no;;
15683 esac
15684 rm -f conftest.make
15685 fi
15686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688 $as_echo "yes" >&6; }
15689   SET_MAKE=
15690 else
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693   SET_MAKE="MAKE=${MAKE-make}"
15694 fi
15695
15696 rm -rf .tst 2>/dev/null
15697 mkdir .tst 2>/dev/null
15698 if test -d .tst; then
15699   am__leading_dot=.
15700 else
15701   am__leading_dot=_
15702 fi
15703 rmdir .tst 2>/dev/null
15704
15705 DEPDIR="${am__leading_dot}deps"
15706
15707 ac_config_commands="$ac_config_commands depfiles"
15708
15709
15710 am_make=${MAKE-make}
15711 cat > confinc << 'END'
15712 am__doit:
15713         @echo this is the am__doit target
15714 .PHONY: am__doit
15715 END
15716 # If we don't find an include directive, just comment out the code.
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15718 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15719 am__include="#"
15720 am__quote=
15721 _am_result=none
15722 # First try GNU make style include.
15723 echo "include confinc" > confmf
15724 # Ignore all kinds of additional output from `make'.
15725 case `$am_make -s -f confmf 2> /dev/null` in #(
15726 *the\ am__doit\ target*)
15727   am__include=include
15728   am__quote=
15729   _am_result=GNU
15730   ;;
15731 esac
15732 # Now try BSD make style include.
15733 if test "$am__include" = "#"; then
15734    echo '.include "confinc"' > confmf
15735    case `$am_make -s -f confmf 2> /dev/null` in #(
15736    *the\ am__doit\ target*)
15737      am__include=.include
15738      am__quote="\""
15739      _am_result=BSD
15740      ;;
15741    esac
15742 fi
15743
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15746 $as_echo "$_am_result" >&6; }
15747 rm -f confinc confmf
15748
15749 # Check whether --enable-dependency-tracking was given.
15750 if test "${enable_dependency_tracking+set}" = set; then :
15751   enableval=$enable_dependency_tracking;
15752 fi
15753
15754 if test "x$enable_dependency_tracking" != xno; then
15755   am_depcomp="$ac_aux_dir/depcomp"
15756   AMDEPBACKSLASH='\'
15757 fi
15758  if test "x$enable_dependency_tracking" != xno; then
15759   AMDEP_TRUE=
15760   AMDEP_FALSE='#'
15761 else
15762   AMDEP_TRUE='#'
15763   AMDEP_FALSE=
15764 fi
15765
15766
15767 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15768   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15769   # is not polluted with repeated "-I."
15770   am__isrc=' -I$(srcdir)'
15771   # test to see if srcdir already configured
15772   if test -f $srcdir/config.status; then
15773     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15774   fi
15775 fi
15776
15777 # test whether we have cygpath
15778 if test -z "$CYGPATH_W"; then
15779   if (cygpath --version) >/dev/null 2>/dev/null; then
15780     CYGPATH_W='cygpath -w'
15781   else
15782     CYGPATH_W=echo
15783   fi
15784 fi
15785
15786
15787 # Define the identity of the package.
15788  PACKAGE=libgnu
15789  VERSION=UNUSED-VERSION
15790
15791
15792 # Some tools Automake needs.
15793
15794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15795
15796
15797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15798
15799
15800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15801
15802
15803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15804
15805
15806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15807
15808 # We need awk for the "check" target.  The system "awk" is bad on
15809 # some platforms.
15810 # Always define AMTAR for backward compatibility.
15811
15812 AMTAR=${AMTAR-"${am_missing_run}tar"}
15813
15814 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15815
15816
15817
15818
15819 depcc="$CC"   am_compiler_list=
15820
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15822 $as_echo_n "checking dependency style of $depcc... " >&6; }
15823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15824   $as_echo_n "(cached) " >&6
15825 else
15826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15827   # We make a subdir and do the tests there.  Otherwise we can end up
15828   # making bogus files that we don't know about and never remove.  For
15829   # instance it was reported that on HP-UX the gcc test will end up
15830   # making a dummy file named `D' -- because `-MD' means `put the output
15831   # in D'.
15832   mkdir conftest.dir
15833   # Copy depcomp to subdir because otherwise we won't find it if we're
15834   # using a relative directory.
15835   cp "$am_depcomp" conftest.dir
15836   cd conftest.dir
15837   # We will build objects and dependencies in a subdirectory because
15838   # it helps to detect inapplicable dependency modes.  For instance
15839   # both Tru64's cc and ICC support -MD to output dependencies as a
15840   # side effect of compilation, but ICC will put the dependencies in
15841   # the current directory while Tru64 will put them in the object
15842   # directory.
15843   mkdir sub
15844
15845   am_cv_CC_dependencies_compiler_type=none
15846   if test "$am_compiler_list" = ""; then
15847      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15848   fi
15849   am__universal=false
15850   case " $depcc " in #(
15851      *\ -arch\ *\ -arch\ *) am__universal=true ;;
15852      esac
15853
15854   for depmode in $am_compiler_list; do
15855     # Setup a source with many dependencies, because some compilers
15856     # like to wrap large dependency lists on column 80 (with \), and
15857     # we should not choose a depcomp mode which is confused by this.
15858     #
15859     # We need to recreate these files for each test, as the compiler may
15860     # overwrite some of them when testing with obscure command lines.
15861     # This happens at least with the AIX C compiler.
15862     : > sub/conftest.c
15863     for i in 1 2 3 4 5 6; do
15864       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15865       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15866       # Solaris 8's {/usr,}/bin/sh.
15867       touch sub/conftst$i.h
15868     done
15869     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15870
15871     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15872     # mode.  It turns out that the SunPro C++ compiler does not properly
15873     # handle `-M -o', and we need to detect this.  Also, some Intel
15874     # versions had trouble with output in subdirs
15875     am__obj=sub/conftest.${OBJEXT-o}
15876     am__minus_obj="-o $am__obj"
15877     case $depmode in
15878     gcc)
15879       # This depmode causes a compiler race in universal mode.
15880       test "$am__universal" = false || continue
15881       ;;
15882     nosideeffect)
15883       # after this tag, mechanisms are not by side-effect, so they'll
15884       # only be used when explicitly requested
15885       if test "x$enable_dependency_tracking" = xyes; then
15886         continue
15887       else
15888         break
15889       fi
15890       ;;
15891     msvisualcpp | msvcmsys)
15892       # This compiler won't grok `-c -o', but also, the minuso test has
15893       # not run yet.  These depmodes are late enough in the game, and
15894       # so weak that their functioning should not be impacted.
15895       am__obj=conftest.${OBJEXT-o}
15896       am__minus_obj=
15897       ;;
15898     none) break ;;
15899     esac
15900     if depmode=$depmode \
15901        source=sub/conftest.c object=$am__obj \
15902        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15903        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15904          >/dev/null 2>conftest.err &&
15905        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15906        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15907        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15908        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15909       # icc doesn't choke on unknown options, it will just issue warnings
15910       # or remarks (even with -Werror).  So we grep stderr for any message
15911       # that says an option was ignored or not supported.
15912       # When given -MP, icc 7.0 and 7.1 complain thusly:
15913       #   icc: Command line warning: ignoring option '-M'; no argument required
15914       # The diagnosis changed in icc 8.0:
15915       #   icc: Command line remark: option '-MP' not supported
15916       if (grep 'ignoring option' conftest.err ||
15917           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15918         am_cv_CC_dependencies_compiler_type=$depmode
15919         break
15920       fi
15921     fi
15922   done
15923
15924   cd ..
15925   rm -rf conftest.dir
15926 else
15927   am_cv_CC_dependencies_compiler_type=none
15928 fi
15929
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15933 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15934
15935  if
15936   test "x$enable_dependency_tracking" != xno \
15937   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15938   am__fastdepCC_TRUE=
15939   am__fastdepCC_FALSE='#'
15940 else
15941   am__fastdepCC_TRUE='#'
15942   am__fastdepCC_FALSE=
15943 fi
15944
15945
15946
15947
15948 # --------------------- #
15949 # Checks for programs.  #
15950 # --------------------- #
15951
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15954 $as_echo_n "checking whether ln -s works... " >&6; }
15955 LN_S=$as_ln_s
15956 if test "$LN_S" = "ln -s"; then
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15959 else
15960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15961 $as_echo "no, using $LN_S" >&6; }
15962 fi
15963
15964 if test -n "$ac_tool_prefix"; then
15965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   if test -n "$RANLIB"; then
15973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15974 else
15975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976 for as_dir in $PATH
15977 do
15978   IFS=$as_save_IFS
15979   test -z "$as_dir" && as_dir=.
15980     for ac_exec_ext in '' $ac_executable_extensions; do
15981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15984     break 2
15985   fi
15986 done
15987   done
15988 IFS=$as_save_IFS
15989
15990 fi
15991 fi
15992 RANLIB=$ac_cv_prog_RANLIB
15993 if test -n "$RANLIB"; then
15994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15995 $as_echo "$RANLIB" >&6; }
15996 else
15997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
15999 fi
16000
16001
16002 fi
16003 if test -z "$ac_cv_prog_RANLIB"; then
16004   ac_ct_RANLIB=$RANLIB
16005   # Extract the first word of "ranlib", so it can be a program name with args.
16006 set dummy ranlib; ac_word=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16010   $as_echo_n "(cached) " >&6
16011 else
16012   if test -n "$ac_ct_RANLIB"; then
16013   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16014 else
16015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016 for as_dir in $PATH
16017 do
16018   IFS=$as_save_IFS
16019   test -z "$as_dir" && as_dir=.
16020     for ac_exec_ext in '' $ac_executable_extensions; do
16021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16022     ac_cv_prog_ac_ct_RANLIB="ranlib"
16023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16024     break 2
16025   fi
16026 done
16027   done
16028 IFS=$as_save_IFS
16029
16030 fi
16031 fi
16032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16033 if test -n "$ac_ct_RANLIB"; then
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16035 $as_echo "$ac_ct_RANLIB" >&6; }
16036 else
16037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16038 $as_echo "no" >&6; }
16039 fi
16040
16041   if test "x$ac_ct_RANLIB" = x; then
16042     RANLIB=":"
16043   else
16044     case $cross_compiling:$ac_tool_warned in
16045 yes:)
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16048 ac_tool_warned=yes ;;
16049 esac
16050     RANLIB=$ac_ct_RANLIB
16051   fi
16052 else
16053   RANLIB="$ac_cv_prog_RANLIB"
16054 fi
16055
16056
16057 if test -n "$ac_tool_prefix"; then
16058   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16059 set dummy ${ac_tool_prefix}ar; ac_word=$2
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16061 $as_echo_n "checking for $ac_word... " >&6; }
16062 if test "${ac_cv_prog_AR+set}" = set; then :
16063   $as_echo_n "(cached) " >&6
16064 else
16065   if test -n "$AR"; then
16066   ac_cv_prog_AR="$AR" # Let the user override the test.
16067 else
16068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069 for as_dir in $PATH
16070 do
16071   IFS=$as_save_IFS
16072   test -z "$as_dir" && as_dir=.
16073     for ac_exec_ext in '' $ac_executable_extensions; do
16074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16075     ac_cv_prog_AR="${ac_tool_prefix}ar"
16076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16077     break 2
16078   fi
16079 done
16080   done
16081 IFS=$as_save_IFS
16082
16083 fi
16084 fi
16085 AR=$ac_cv_prog_AR
16086 if test -n "$AR"; then
16087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16088 $as_echo "$AR" >&6; }
16089 else
16090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16092 fi
16093
16094
16095 fi
16096 if test -z "$ac_cv_prog_AR"; then
16097   ac_ct_AR=$AR
16098   # Extract the first word of "ar", so it can be a program name with args.
16099 set dummy ar; ac_word=$2
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16101 $as_echo_n "checking for $ac_word... " >&6; }
16102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105   if test -n "$ac_ct_AR"; then
16106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16107 else
16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16110 do
16111   IFS=$as_save_IFS
16112   test -z "$as_dir" && as_dir=.
16113     for ac_exec_ext in '' $ac_executable_extensions; do
16114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16115     ac_cv_prog_ac_ct_AR="ar"
16116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16117     break 2
16118   fi
16119 done
16120   done
16121 IFS=$as_save_IFS
16122
16123 fi
16124 fi
16125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16126 if test -n "$ac_ct_AR"; then
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16128 $as_echo "$ac_ct_AR" >&6; }
16129 else
16130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16132 fi
16133
16134   if test "x$ac_ct_AR" = x; then
16135     AR=""
16136   else
16137     case $cross_compiling:$ac_tool_warned in
16138 yes:)
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16141 ac_tool_warned=yes ;;
16142 esac
16143     AR=$ac_ct_AR
16144   fi
16145 else
16146   AR="$ac_cv_prog_AR"
16147 fi
16148
16149
16150 # ---------------------- #
16151 # Checks for libraries.  #
16152 # ---------------------- #
16153
16154 ac_config_files="$ac_config_files Makefile import/Makefile"
16155
16156 ac_config_commands="$ac_config_commands default"
16157
16158 cat >confcache <<\_ACEOF
16159 # This file is a shell script that caches the results of configure
16160 # tests run on this system so they can be shared between configure
16161 # scripts and configure runs, see configure's option --config-cache.
16162 # It is not useful on other systems.  If it contains results you don't
16163 # want to keep, you may remove or edit it.
16164 #
16165 # config.status only pays attention to the cache file if you give it
16166 # the --recheck option to rerun configure.
16167 #
16168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16170 # following values.
16171
16172 _ACEOF
16173
16174 # The following way of writing the cache mishandles newlines in values,
16175 # but we know of no workaround that is simple, portable, and efficient.
16176 # So, we kill variables containing newlines.
16177 # Ultrix sh set writes to stderr and can't be redirected directly,
16178 # and sets the high bit in the cache file unless we assign to the vars.
16179 (
16180   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16181     eval ac_val=\$$ac_var
16182     case $ac_val in #(
16183     *${as_nl}*)
16184       case $ac_var in #(
16185       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16187       esac
16188       case $ac_var in #(
16189       _ | IFS | as_nl) ;; #(
16190       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16191       *) { eval $ac_var=; unset $ac_var;} ;;
16192       esac ;;
16193     esac
16194   done
16195
16196   (set) 2>&1 |
16197     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16198     *${as_nl}ac_space=\ *)
16199       # `set' does not quote correctly, so add quotes: double-quote
16200       # substitution turns \\\\ into \\, and sed turns \\ into \.
16201       sed -n \
16202         "s/'/'\\\\''/g;
16203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16204       ;; #(
16205     *)
16206       # `set' quotes correctly as required by POSIX, so do not add quotes.
16207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16208       ;;
16209     esac |
16210     sort
16211 ) |
16212   sed '
16213      /^ac_cv_env_/b end
16214      t clear
16215      :clear
16216      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16217      t end
16218      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16219      :end' >>confcache
16220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16221   if test -w "$cache_file"; then
16222     test "x$cache_file" != "x/dev/null" &&
16223       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16224 $as_echo "$as_me: updating cache $cache_file" >&6;}
16225     cat confcache >$cache_file
16226   else
16227     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16228 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16229   fi
16230 fi
16231 rm -f confcache
16232
16233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16234 # Let make expand exec_prefix.
16235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16236
16237 DEFS=-DHAVE_CONFIG_H
16238
16239 ac_libobjs=
16240 ac_ltlibobjs=
16241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16242   # 1. Remove the extension, and $U if already installed.
16243   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16244   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16245   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16246   #    will be set to the directory where LIBOBJS objects are built.
16247   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16248   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16249 done
16250 LIBOBJS=$ac_libobjs
16251
16252 LTLIBOBJS=$ac_ltlibobjs
16253
16254
16255 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16256   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16258 fi
16259 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16260   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16262 fi
16263 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16264   as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16266 fi
16267 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16268   as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16270 fi
16271 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16272   as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16274 fi
16275 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16276   as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16278 fi
16279 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16280   as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
16281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16282 fi
16283
16284
16285 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16286   as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16288 fi
16289 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16290   as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16292 fi
16293
16294     gl_libobjs=
16295     gl_ltlibobjs=
16296     if test -n "$gl_LIBOBJS"; then
16297       # Remove the extension.
16298       sed_drop_objext='s/\.o$//;s/\.obj$//'
16299       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16300         gl_libobjs="$gl_libobjs $i.$ac_objext"
16301         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16302       done
16303     fi
16304     gl_LIBOBJS=$gl_libobjs
16305
16306     gl_LTLIBOBJS=$gl_ltlibobjs
16307
16308
16309
16310     gltests_libobjs=
16311     gltests_ltlibobjs=
16312     if test -n "$gltests_LIBOBJS"; then
16313       # Remove the extension.
16314       sed_drop_objext='s/\.o$//;s/\.obj$//'
16315       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16316         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16317         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16318       done
16319     fi
16320     gltests_LIBOBJS=$gltests_libobjs
16321
16322     gltests_LTLIBOBJS=$gltests_ltlibobjs
16323
16324
16325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16326   as_fn_error "conditional \"AMDEP\" was never defined.
16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16328 fi
16329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16330   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16332 fi
16333  if test -n "$EXEEXT"; then
16334   am__EXEEXT_TRUE=
16335   am__EXEEXT_FALSE='#'
16336 else
16337   am__EXEEXT_TRUE='#'
16338   am__EXEEXT_FALSE=
16339 fi
16340
16341
16342 : ${CONFIG_STATUS=./config.status}
16343 ac_write_fail=0
16344 ac_clean_files_save=$ac_clean_files
16345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16348 as_write_fail=0
16349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16350 #! $SHELL
16351 # Generated by $as_me.
16352 # Run this file to recreate the current configuration.
16353 # Compiler output produced by configure, useful for debugging
16354 # configure, is in config.log if it exists.
16355
16356 debug=false
16357 ac_cs_recheck=false
16358 ac_cs_silent=false
16359
16360 SHELL=\${CONFIG_SHELL-$SHELL}
16361 export SHELL
16362 _ASEOF
16363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16364 ## -------------------- ##
16365 ## M4sh Initialization. ##
16366 ## -------------------- ##
16367
16368 # Be more Bourne compatible
16369 DUALCASE=1; export DUALCASE # for MKS sh
16370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16371   emulate sh
16372   NULLCMD=:
16373   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16374   # is contrary to our usage.  Disable this feature.
16375   alias -g '${1+"$@"}'='"$@"'
16376   setopt NO_GLOB_SUBST
16377 else
16378   case `(set -o) 2>/dev/null` in #(
16379   *posix*) :
16380     set -o posix ;; #(
16381   *) :
16382      ;;
16383 esac
16384 fi
16385
16386
16387 as_nl='
16388 '
16389 export as_nl
16390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16391 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16394 # Prefer a ksh shell builtin over an external printf program on Solaris,
16395 # but without wasting forks for bash or zsh.
16396 if test -z "$BASH_VERSION$ZSH_VERSION" \
16397     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16398   as_echo='print -r --'
16399   as_echo_n='print -rn --'
16400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16401   as_echo='printf %s\n'
16402   as_echo_n='printf %s'
16403 else
16404   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16405     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16406     as_echo_n='/usr/ucb/echo -n'
16407   else
16408     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16409     as_echo_n_body='eval
16410       arg=$1;
16411       case $arg in #(
16412       *"$as_nl"*)
16413         expr "X$arg" : "X\\(.*\\)$as_nl";
16414         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16415       esac;
16416       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16417     '
16418     export as_echo_n_body
16419     as_echo_n='sh -c $as_echo_n_body as_echo'
16420   fi
16421   export as_echo_body
16422   as_echo='sh -c $as_echo_body as_echo'
16423 fi
16424
16425 # The user is always right.
16426 if test "${PATH_SEPARATOR+set}" != set; then
16427   PATH_SEPARATOR=:
16428   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16429     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16430       PATH_SEPARATOR=';'
16431   }
16432 fi
16433
16434
16435 # IFS
16436 # We need space, tab and new line, in precisely that order.  Quoting is
16437 # there to prevent editors from complaining about space-tab.
16438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16439 # splitting by setting IFS to empty value.)
16440 IFS=" ""        $as_nl"
16441
16442 # Find who we are.  Look in the path if we contain no directory separator.
16443 case $0 in #((
16444   *[\\/]* ) as_myself=$0 ;;
16445   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16447 do
16448   IFS=$as_save_IFS
16449   test -z "$as_dir" && as_dir=.
16450     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16451   done
16452 IFS=$as_save_IFS
16453
16454      ;;
16455 esac
16456 # We did not find ourselves, most probably we were run as `sh COMMAND'
16457 # in which case we are not to be found in the path.
16458 if test "x$as_myself" = x; then
16459   as_myself=$0
16460 fi
16461 if test ! -f "$as_myself"; then
16462   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16463   exit 1
16464 fi
16465
16466 # Unset variables that we do not need and which cause bugs (e.g. in
16467 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16468 # suppresses any "Segmentation fault" message there.  '((' could
16469 # trigger a bug in pdksh 5.2.14.
16470 for as_var in BASH_ENV ENV MAIL MAILPATH
16471 do eval test x\${$as_var+set} = xset \
16472   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16473 done
16474 PS1='$ '
16475 PS2='> '
16476 PS4='+ '
16477
16478 # NLS nuisances.
16479 LC_ALL=C
16480 export LC_ALL
16481 LANGUAGE=C
16482 export LANGUAGE
16483
16484 # CDPATH.
16485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16486
16487
16488 # as_fn_error ERROR [LINENO LOG_FD]
16489 # ---------------------------------
16490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16492 # script with status $?, using 1 if that was 0.
16493 as_fn_error ()
16494 {
16495   as_status=$?; test $as_status -eq 0 && as_status=1
16496   if test "$3"; then
16497     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16498     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16499   fi
16500   $as_echo "$as_me: error: $1" >&2
16501   as_fn_exit $as_status
16502 } # as_fn_error
16503
16504
16505 # as_fn_set_status STATUS
16506 # -----------------------
16507 # Set $? to STATUS, without forking.
16508 as_fn_set_status ()
16509 {
16510   return $1
16511 } # as_fn_set_status
16512
16513 # as_fn_exit STATUS
16514 # -----------------
16515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16516 as_fn_exit ()
16517 {
16518   set +e
16519   as_fn_set_status $1
16520   exit $1
16521 } # as_fn_exit
16522
16523 # as_fn_unset VAR
16524 # ---------------
16525 # Portably unset VAR.
16526 as_fn_unset ()
16527 {
16528   { eval $1=; unset $1;}
16529 }
16530 as_unset=as_fn_unset
16531 # as_fn_append VAR VALUE
16532 # ----------------------
16533 # Append the text in VALUE to the end of the definition contained in VAR. Take
16534 # advantage of any shell optimizations that allow amortized linear growth over
16535 # repeated appends, instead of the typical quadratic growth present in naive
16536 # implementations.
16537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16538   eval 'as_fn_append ()
16539   {
16540     eval $1+=\$2
16541   }'
16542 else
16543   as_fn_append ()
16544   {
16545     eval $1=\$$1\$2
16546   }
16547 fi # as_fn_append
16548
16549 # as_fn_arith ARG...
16550 # ------------------
16551 # Perform arithmetic evaluation on the ARGs, and store the result in the
16552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16553 # must be portable across $(()) and expr.
16554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16555   eval 'as_fn_arith ()
16556   {
16557     as_val=$(( $* ))
16558   }'
16559 else
16560   as_fn_arith ()
16561   {
16562     as_val=`expr "$@" || test $? -eq 1`
16563   }
16564 fi # as_fn_arith
16565
16566
16567 if expr a : '\(a\)' >/dev/null 2>&1 &&
16568    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16569   as_expr=expr
16570 else
16571   as_expr=false
16572 fi
16573
16574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16575   as_basename=basename
16576 else
16577   as_basename=false
16578 fi
16579
16580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16581   as_dirname=dirname
16582 else
16583   as_dirname=false
16584 fi
16585
16586 as_me=`$as_basename -- "$0" ||
16587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16588          X"$0" : 'X\(//\)$' \| \
16589          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16590 $as_echo X/"$0" |
16591     sed '/^.*\/\([^/][^/]*\)\/*$/{
16592             s//\1/
16593             q
16594           }
16595           /^X\/\(\/\/\)$/{
16596             s//\1/
16597             q
16598           }
16599           /^X\/\(\/\).*/{
16600             s//\1/
16601             q
16602           }
16603           s/.*/./; q'`
16604
16605 # Avoid depending upon Character Ranges.
16606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16609 as_cr_digits='0123456789'
16610 as_cr_alnum=$as_cr_Letters$as_cr_digits
16611
16612 ECHO_C= ECHO_N= ECHO_T=
16613 case `echo -n x` in #(((((
16614 -n*)
16615   case `echo 'xy\c'` in
16616   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16617   xy)  ECHO_C='\c';;
16618   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16619        ECHO_T=' ';;
16620   esac;;
16621 *)
16622   ECHO_N='-n';;
16623 esac
16624
16625 rm -f conf$$ conf$$.exe conf$$.file
16626 if test -d conf$$.dir; then
16627   rm -f conf$$.dir/conf$$.file
16628 else
16629   rm -f conf$$.dir
16630   mkdir conf$$.dir 2>/dev/null
16631 fi
16632 if (echo >conf$$.file) 2>/dev/null; then
16633   if ln -s conf$$.file conf$$ 2>/dev/null; then
16634     as_ln_s='ln -s'
16635     # ... but there are two gotchas:
16636     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16637     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16638     # In both cases, we have to default to `cp -p'.
16639     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16640       as_ln_s='cp -p'
16641   elif ln conf$$.file conf$$ 2>/dev/null; then
16642     as_ln_s=ln
16643   else
16644     as_ln_s='cp -p'
16645   fi
16646 else
16647   as_ln_s='cp -p'
16648 fi
16649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16650 rmdir conf$$.dir 2>/dev/null
16651
16652
16653 # as_fn_mkdir_p
16654 # -------------
16655 # Create "$as_dir" as a directory, including parents if necessary.
16656 as_fn_mkdir_p ()
16657 {
16658
16659   case $as_dir in #(
16660   -*) as_dir=./$as_dir;;
16661   esac
16662   test -d "$as_dir" || eval $as_mkdir_p || {
16663     as_dirs=
16664     while :; do
16665       case $as_dir in #(
16666       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16667       *) as_qdir=$as_dir;;
16668       esac
16669       as_dirs="'$as_qdir' $as_dirs"
16670       as_dir=`$as_dirname -- "$as_dir" ||
16671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672          X"$as_dir" : 'X\(//\)[^/]' \| \
16673          X"$as_dir" : 'X\(//\)$' \| \
16674          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16675 $as_echo X"$as_dir" |
16676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16677             s//\1/
16678             q
16679           }
16680           /^X\(\/\/\)[^/].*/{
16681             s//\1/
16682             q
16683           }
16684           /^X\(\/\/\)$/{
16685             s//\1/
16686             q
16687           }
16688           /^X\(\/\).*/{
16689             s//\1/
16690             q
16691           }
16692           s/.*/./; q'`
16693       test -d "$as_dir" && break
16694     done
16695     test -z "$as_dirs" || eval "mkdir $as_dirs"
16696   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16697
16698
16699 } # as_fn_mkdir_p
16700 if mkdir -p . 2>/dev/null; then
16701   as_mkdir_p='mkdir -p "$as_dir"'
16702 else
16703   test -d ./-p && rmdir ./-p
16704   as_mkdir_p=false
16705 fi
16706
16707 if test -x / >/dev/null 2>&1; then
16708   as_test_x='test -x'
16709 else
16710   if ls -dL / >/dev/null 2>&1; then
16711     as_ls_L_option=L
16712   else
16713     as_ls_L_option=
16714   fi
16715   as_test_x='
16716     eval sh -c '\''
16717       if test -d "$1"; then
16718         test -d "$1/.";
16719       else
16720         case $1 in #(
16721         -*)set "./$1";;
16722         esac;
16723         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16724         ???[sx]*):;;*)false;;esac;fi
16725     '\'' sh
16726   '
16727 fi
16728 as_executable_p=$as_test_x
16729
16730 # Sed expression to map a string onto a valid CPP name.
16731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16732
16733 # Sed expression to map a string onto a valid variable name.
16734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16735
16736
16737 exec 6>&1
16738 ## ----------------------------------- ##
16739 ## Main body of $CONFIG_STATUS script. ##
16740 ## ----------------------------------- ##
16741 _ASEOF
16742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16743
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 # Save the log message, to keep $0 and so on meaningful, and to
16746 # report actual input values of CONFIG_FILES etc. instead of their
16747 # values after options handling.
16748 ac_log="
16749 This file was extended by $as_me, which was
16750 generated by GNU Autoconf 2.64.  Invocation command line was
16751
16752   CONFIG_FILES    = $CONFIG_FILES
16753   CONFIG_HEADERS  = $CONFIG_HEADERS
16754   CONFIG_LINKS    = $CONFIG_LINKS
16755   CONFIG_COMMANDS = $CONFIG_COMMANDS
16756   $ $0 $@
16757
16758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16759 "
16760
16761 _ACEOF
16762
16763 case $ac_config_files in *"
16764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16765 esac
16766
16767 case $ac_config_headers in *"
16768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16769 esac
16770
16771
16772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16773 # Files that config.status was made for.
16774 config_files="$ac_config_files"
16775 config_headers="$ac_config_headers"
16776 config_commands="$ac_config_commands"
16777
16778 _ACEOF
16779
16780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16781 ac_cs_usage="\
16782 \`$as_me' instantiates files and other configuration actions
16783 from templates according to the current configuration.  Unless the files
16784 and actions are specified as TAGs, all are instantiated by default.
16785
16786 Usage: $0 [OPTION]... [TAG]...
16787
16788   -h, --help       print this help, then exit
16789   -V, --version    print version number and configuration settings, then exit
16790   -q, --quiet, --silent
16791                    do not print progress messages
16792   -d, --debug      don't remove temporary files
16793       --recheck    update $as_me by reconfiguring in the same conditions
16794       --file=FILE[:TEMPLATE]
16795                    instantiate the configuration file FILE
16796       --header=FILE[:TEMPLATE]
16797                    instantiate the configuration header FILE
16798
16799 Configuration files:
16800 $config_files
16801
16802 Configuration headers:
16803 $config_headers
16804
16805 Configuration commands:
16806 $config_commands
16807
16808 Report bugs to the package provider."
16809
16810 _ACEOF
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812 ac_cs_version="\\
16813 config.status
16814 configured by $0, generated by GNU Autoconf 2.64,
16815   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16816
16817 Copyright (C) 2009 Free Software Foundation, Inc.
16818 This config.status script is free software; the Free Software Foundation
16819 gives unlimited permission to copy, distribute and modify it."
16820
16821 ac_pwd='$ac_pwd'
16822 srcdir='$srcdir'
16823 INSTALL='$INSTALL'
16824 MKDIR_P='$MKDIR_P'
16825 AWK='$AWK'
16826 test -n "\$AWK" || AWK=awk
16827 _ACEOF
16828
16829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830 # The default lists apply if the user does not specify any file.
16831 ac_need_defaults=:
16832 while test $# != 0
16833 do
16834   case $1 in
16835   --*=*)
16836     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16837     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16838     ac_shift=:
16839     ;;
16840   *)
16841     ac_option=$1
16842     ac_optarg=$2
16843     ac_shift=shift
16844     ;;
16845   esac
16846
16847   case $ac_option in
16848   # Handling of the options.
16849   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16850     ac_cs_recheck=: ;;
16851   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16852     $as_echo "$ac_cs_version"; exit ;;
16853   --debug | --debu | --deb | --de | --d | -d )
16854     debug=: ;;
16855   --file | --fil | --fi | --f )
16856     $ac_shift
16857     case $ac_optarg in
16858     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16859     esac
16860     as_fn_append CONFIG_FILES " '$ac_optarg'"
16861     ac_need_defaults=false;;
16862   --header | --heade | --head | --hea )
16863     $ac_shift
16864     case $ac_optarg in
16865     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16866     esac
16867     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16868     ac_need_defaults=false;;
16869   --he | --h)
16870     # Conflict between --help and --header
16871     as_fn_error "ambiguous option: \`$1'
16872 Try \`$0 --help' for more information.";;
16873   --help | --hel | -h )
16874     $as_echo "$ac_cs_usage"; exit ;;
16875   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16876   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16877     ac_cs_silent=: ;;
16878
16879   # This is an error.
16880   -*) as_fn_error "unrecognized option: \`$1'
16881 Try \`$0 --help' for more information." ;;
16882
16883   *) as_fn_append ac_config_targets " $1"
16884      ac_need_defaults=false ;;
16885
16886   esac
16887   shift
16888 done
16889
16890 ac_configure_extra_args=
16891
16892 if $ac_cs_silent; then
16893   exec 6>/dev/null
16894   ac_configure_extra_args="$ac_configure_extra_args --silent"
16895 fi
16896
16897 _ACEOF
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 if \$ac_cs_recheck; then
16900   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16901   shift
16902   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16903   CONFIG_SHELL='$SHELL'
16904   export CONFIG_SHELL
16905   exec "\$@"
16906 fi
16907
16908 _ACEOF
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 exec 5>>config.log
16911 {
16912   echo
16913   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16914 ## Running $as_me. ##
16915 _ASBOX
16916   $as_echo "$ac_log"
16917 } >&5
16918
16919 _ACEOF
16920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921 #
16922 # INIT-COMMANDS
16923 #
16924 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16925
16926 _ACEOF
16927
16928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16929
16930 # Handling of arguments.
16931 for ac_config_target in $ac_config_targets
16932 do
16933   case $ac_config_target in
16934     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16935     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16936     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16937     "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16938     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16939
16940   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16941   esac
16942 done
16943
16944
16945 # If the user did not use the arguments to specify the items to instantiate,
16946 # then the envvar interface is used.  Set only those that are not.
16947 # We use the long form for the default assignment because of an extremely
16948 # bizarre bug on SunOS 4.1.3.
16949 if $ac_need_defaults; then
16950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16951   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16952   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16953 fi
16954
16955 # Have a temporary directory for convenience.  Make it in the build tree
16956 # simply because there is no reason against having it here, and in addition,
16957 # creating and moving files from /tmp can sometimes cause problems.
16958 # Hook for its removal unless debugging.
16959 # Note that there is a small window in which the directory will not be cleaned:
16960 # after its creation but before its name has been assigned to `$tmp'.
16961 $debug ||
16962 {
16963   tmp=
16964   trap 'exit_status=$?
16965   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16966 ' 0
16967   trap 'as_fn_exit 1' 1 2 13 15
16968 }
16969 # Create a (secure) tmp directory for tmp files.
16970
16971 {
16972   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16973   test -n "$tmp" && test -d "$tmp"
16974 }  ||
16975 {
16976   tmp=./conf$$-$RANDOM
16977   (umask 077 && mkdir "$tmp")
16978 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16979
16980 # Set up the scripts for CONFIG_FILES section.
16981 # No need to generate them if there are no CONFIG_FILES.
16982 # This happens for instance with `./config.status config.h'.
16983 if test -n "$CONFIG_FILES"; then
16984
16985
16986 ac_cr=`echo X | tr X '\015'`
16987 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16988 # But we know of no other shell where ac_cr would be empty at this
16989 # point, so we can use a bashism as a fallback.
16990 if test "x$ac_cr" = x; then
16991   eval ac_cr=\$\'\\r\'
16992 fi
16993 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16994 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16995   ac_cs_awk_cr='\r'
16996 else
16997   ac_cs_awk_cr=$ac_cr
16998 fi
16999
17000 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17001 _ACEOF
17002
17003
17004 {
17005   echo "cat >conf$$subs.awk <<_ACEOF" &&
17006   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17007   echo "_ACEOF"
17008 } >conf$$subs.sh ||
17009   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17010 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17011 ac_delim='%!_!# '
17012 for ac_last_try in false false false false false :; do
17013   . ./conf$$subs.sh ||
17014     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17015
17016   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17017   if test $ac_delim_n = $ac_delim_num; then
17018     break
17019   elif $ac_last_try; then
17020     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17021   else
17022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17023   fi
17024 done
17025 rm -f conf$$subs.sh
17026
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17029 _ACEOF
17030 sed -n '
17031 h
17032 s/^/S["/; s/!.*/"]=/
17033 p
17034 g
17035 s/^[^!]*!//
17036 :repl
17037 t repl
17038 s/'"$ac_delim"'$//
17039 t delim
17040 :nl
17041 h
17042 s/\(.\{148\}\).*/\1/
17043 t more1
17044 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17045 p
17046 n
17047 b repl
17048 :more1
17049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17050 p
17051 g
17052 s/.\{148\}//
17053 t nl
17054 :delim
17055 h
17056 s/\(.\{148\}\).*/\1/
17057 t more2
17058 s/["\\]/\\&/g; s/^/"/; s/$/"/
17059 p
17060 b
17061 :more2
17062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17063 p
17064 g
17065 s/.\{148\}//
17066 t delim
17067 ' <conf$$subs.awk | sed '
17068 /^[^""]/{
17069   N
17070   s/\n//
17071 }
17072 ' >>$CONFIG_STATUS || ac_write_fail=1
17073 rm -f conf$$subs.awk
17074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075 _ACAWK
17076 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17077   for (key in S) S_is_set[key] = 1
17078   FS = "\a"
17079
17080 }
17081 {
17082   line = $ 0
17083   nfields = split(line, field, "@")
17084   substed = 0
17085   len = length(field[1])
17086   for (i = 2; i < nfields; i++) {
17087     key = field[i]
17088     keylen = length(key)
17089     if (S_is_set[key]) {
17090       value = S[key]
17091       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17092       len += length(value) + length(field[++i])
17093       substed = 1
17094     } else
17095       len += 1 + keylen
17096   }
17097
17098   print line
17099 }
17100
17101 _ACAWK
17102 _ACEOF
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17105   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17106 else
17107   cat
17108 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17109   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17110 _ACEOF
17111
17112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17114 # trailing colons and then remove the whole line if VPATH becomes empty
17115 # (actually we leave an empty line to preserve line numbers).
17116 if test "x$srcdir" = x.; then
17117   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17118 s/:*\$(srcdir):*/:/
17119 s/:*\${srcdir}:*/:/
17120 s/:*@srcdir@:*/:/
17121 s/^\([^=]*=[     ]*\):*/\1/
17122 s/:*$//
17123 s/^[^=]*=[       ]*$//
17124 }'
17125 fi
17126
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 fi # test -n "$CONFIG_FILES"
17129
17130 # Set up the scripts for CONFIG_HEADERS section.
17131 # No need to generate them if there are no CONFIG_HEADERS.
17132 # This happens for instance with `./config.status Makefile'.
17133 if test -n "$CONFIG_HEADERS"; then
17134 cat >"$tmp/defines.awk" <<\_ACAWK ||
17135 BEGIN {
17136 _ACEOF
17137
17138 # Transform confdefs.h into an awk script `defines.awk', embedded as
17139 # here-document in config.status, that substitutes the proper values into
17140 # config.h.in to produce config.h.
17141
17142 # Create a delimiter string that does not exist in confdefs.h, to ease
17143 # handling of long lines.
17144 ac_delim='%!_!# '
17145 for ac_last_try in false false :; do
17146   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17147   if test -z "$ac_t"; then
17148     break
17149   elif $ac_last_try; then
17150     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17151   else
17152     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17153   fi
17154 done
17155
17156 # For the awk script, D is an array of macro values keyed by name,
17157 # likewise P contains macro parameters if any.  Preserve backslash
17158 # newline sequences.
17159
17160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17161 sed -n '
17162 s/.\{148\}/&'"$ac_delim"'/g
17163 t rset
17164 :rset
17165 s/^[     ]*#[    ]*define[       ][      ]*/ /
17166 t def
17167 d
17168 :def
17169 s/\\$//
17170 t bsnl
17171 s/["\\]/\\&/g
17172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17173 D["\1"]=" \3"/p
17174 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17175 d
17176 :bsnl
17177 s/["\\]/\\&/g
17178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17179 D["\1"]=" \3\\\\\\n"\\/p
17180 t cont
17181 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17182 t cont
17183 d
17184 :cont
17185 n
17186 s/.\{148\}/&'"$ac_delim"'/g
17187 t clear
17188 :clear
17189 s/\\$//
17190 t bsnlc
17191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17192 d
17193 :bsnlc
17194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17195 b cont
17196 ' <confdefs.h | sed '
17197 s/'"$ac_delim"'/"\\\
17198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17199
17200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201   for (key in D) D_is_set[key] = 1
17202   FS = "\a"
17203 }
17204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17205   line = \$ 0
17206   split(line, arg, " ")
17207   if (arg[1] == "#") {
17208     defundef = arg[2]
17209     mac1 = arg[3]
17210   } else {
17211     defundef = substr(arg[1], 2)
17212     mac1 = arg[2]
17213   }
17214   split(mac1, mac2, "(") #)
17215   macro = mac2[1]
17216   prefix = substr(line, 1, index(line, defundef) - 1)
17217   if (D_is_set[macro]) {
17218     # Preserve the white space surrounding the "#".
17219     print prefix "define", macro P[macro] D[macro]
17220     next
17221   } else {
17222     # Replace #undef with comments.  This is necessary, for example,
17223     # in the case of _POSIX_SOURCE, which is predefined and required
17224     # on some systems where configure will not decide to define it.
17225     if (defundef == "undef") {
17226       print "/*", prefix defundef, macro, "*/"
17227       next
17228     }
17229   }
17230 }
17231 { print }
17232 _ACAWK
17233 _ACEOF
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17236 fi # test -n "$CONFIG_HEADERS"
17237
17238
17239 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17240 shift
17241 for ac_tag
17242 do
17243   case $ac_tag in
17244   :[FHLC]) ac_mode=$ac_tag; continue;;
17245   esac
17246   case $ac_mode$ac_tag in
17247   :[FHL]*:*);;
17248   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17249   :[FH]-) ac_tag=-:-;;
17250   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17251   esac
17252   ac_save_IFS=$IFS
17253   IFS=:
17254   set x $ac_tag
17255   IFS=$ac_save_IFS
17256   shift
17257   ac_file=$1
17258   shift
17259
17260   case $ac_mode in
17261   :L) ac_source=$1;;
17262   :[FH])
17263     ac_file_inputs=
17264     for ac_f
17265     do
17266       case $ac_f in
17267       -) ac_f="$tmp/stdin";;
17268       *) # Look for the file first in the build tree, then in the source tree
17269          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17270          # because $ac_f cannot contain `:'.
17271          test -f "$ac_f" ||
17272            case $ac_f in
17273            [\\/$]*) false;;
17274            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17275            esac ||
17276            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17277       esac
17278       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17279       as_fn_append ac_file_inputs " '$ac_f'"
17280     done
17281
17282     # Let's still pretend it is `configure' which instantiates (i.e., don't
17283     # use $as_me), people would be surprised to read:
17284     #    /* config.h.  Generated by config.status.  */
17285     configure_input='Generated from '`
17286           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17287         `' by configure.'
17288     if test x"$ac_file" != x-; then
17289       configure_input="$ac_file.  $configure_input"
17290       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17291 $as_echo "$as_me: creating $ac_file" >&6;}
17292     fi
17293     # Neutralize special characters interpreted by sed in replacement strings.
17294     case $configure_input in #(
17295     *\&* | *\|* | *\\* )
17296        ac_sed_conf_input=`$as_echo "$configure_input" |
17297        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17298     *) ac_sed_conf_input=$configure_input;;
17299     esac
17300
17301     case $ac_tag in
17302     *:-:* | *:-) cat >"$tmp/stdin" \
17303       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17304     esac
17305     ;;
17306   esac
17307
17308   ac_dir=`$as_dirname -- "$ac_file" ||
17309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310          X"$ac_file" : 'X\(//\)[^/]' \| \
17311          X"$ac_file" : 'X\(//\)$' \| \
17312          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17313 $as_echo X"$ac_file" |
17314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17315             s//\1/
17316             q
17317           }
17318           /^X\(\/\/\)[^/].*/{
17319             s//\1/
17320             q
17321           }
17322           /^X\(\/\/\)$/{
17323             s//\1/
17324             q
17325           }
17326           /^X\(\/\).*/{
17327             s//\1/
17328             q
17329           }
17330           s/.*/./; q'`
17331   as_dir="$ac_dir"; as_fn_mkdir_p
17332   ac_builddir=.
17333
17334 case "$ac_dir" in
17335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17336 *)
17337   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17338   # A ".." for each directory in $ac_dir_suffix.
17339   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17340   case $ac_top_builddir_sub in
17341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17343   esac ;;
17344 esac
17345 ac_abs_top_builddir=$ac_pwd
17346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17347 # for backward compatibility:
17348 ac_top_builddir=$ac_top_build_prefix
17349
17350 case $srcdir in
17351   .)  # We are building in place.
17352     ac_srcdir=.
17353     ac_top_srcdir=$ac_top_builddir_sub
17354     ac_abs_top_srcdir=$ac_pwd ;;
17355   [\\/]* | ?:[\\/]* )  # Absolute name.
17356     ac_srcdir=$srcdir$ac_dir_suffix;
17357     ac_top_srcdir=$srcdir
17358     ac_abs_top_srcdir=$srcdir ;;
17359   *) # Relative name.
17360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17361     ac_top_srcdir=$ac_top_build_prefix$srcdir
17362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17363 esac
17364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17365
17366
17367   case $ac_mode in
17368   :F)
17369   #
17370   # CONFIG_FILE
17371   #
17372
17373   case $INSTALL in
17374   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17375   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17376   esac
17377   ac_MKDIR_P=$MKDIR_P
17378   case $MKDIR_P in
17379   [\\/$]* | ?:[\\/]* ) ;;
17380   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17381   esac
17382 _ACEOF
17383
17384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17385 # If the template does not know about datarootdir, expand it.
17386 # FIXME: This hack should be removed a few years after 2.60.
17387 ac_datarootdir_hack=; ac_datarootdir_seen=
17388 ac_sed_dataroot='
17389 /datarootdir/ {
17390   p
17391   q
17392 }
17393 /@datadir@/p
17394 /@docdir@/p
17395 /@infodir@/p
17396 /@localedir@/p
17397 /@mandir@/p'
17398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17399 *datarootdir*) ac_datarootdir_seen=yes;;
17400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17401   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17402 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17403 _ACEOF
17404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17405   ac_datarootdir_hack='
17406   s&@datadir@&$datadir&g
17407   s&@docdir@&$docdir&g
17408   s&@infodir@&$infodir&g
17409   s&@localedir@&$localedir&g
17410   s&@mandir@&$mandir&g
17411   s&\\\${datarootdir}&$datarootdir&g' ;;
17412 esac
17413 _ACEOF
17414
17415 # Neutralize VPATH when `$srcdir' = `.'.
17416 # Shell code in configure.ac might set extrasub.
17417 # FIXME: do we really want to maintain this feature?
17418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17419 ac_sed_extra="$ac_vpsub
17420 $extrasub
17421 _ACEOF
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 :t
17424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17425 s|@configure_input@|$ac_sed_conf_input|;t t
17426 s&@top_builddir@&$ac_top_builddir_sub&;t t
17427 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17428 s&@srcdir@&$ac_srcdir&;t t
17429 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17430 s&@top_srcdir@&$ac_top_srcdir&;t t
17431 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17432 s&@builddir@&$ac_builddir&;t t
17433 s&@abs_builddir@&$ac_abs_builddir&;t t
17434 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17435 s&@INSTALL@&$ac_INSTALL&;t t
17436 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17437 $ac_datarootdir_hack
17438 "
17439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17440   || as_fn_error "could not create $ac_file" "$LINENO" 5
17441
17442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17443   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17444   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17445   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17446 which seems to be undefined.  Please make sure it is defined." >&5
17447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17448 which seems to be undefined.  Please make sure it is defined." >&2;}
17449
17450   rm -f "$tmp/stdin"
17451   case $ac_file in
17452   -) cat "$tmp/out" && rm -f "$tmp/out";;
17453   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17454   esac \
17455   || as_fn_error "could not create $ac_file" "$LINENO" 5
17456  ;;
17457   :H)
17458   #
17459   # CONFIG_HEADER
17460   #
17461   if test x"$ac_file" != x-; then
17462     {
17463       $as_echo "/* $configure_input  */" \
17464       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17465     } >"$tmp/config.h" \
17466       || as_fn_error "could not create $ac_file" "$LINENO" 5
17467     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17468       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17470     else
17471       rm -f "$ac_file"
17472       mv "$tmp/config.h" "$ac_file" \
17473         || as_fn_error "could not create $ac_file" "$LINENO" 5
17474     fi
17475   else
17476     $as_echo "/* $configure_input  */" \
17477       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17478       || as_fn_error "could not create -" "$LINENO" 5
17479   fi
17480 # Compute "$ac_file"'s index in $config_headers.
17481 _am_arg="$ac_file"
17482 _am_stamp_count=1
17483 for _am_header in $config_headers :; do
17484   case $_am_header in
17485     $_am_arg | $_am_arg:* )
17486       break ;;
17487     * )
17488       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17489   esac
17490 done
17491 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17492 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17493          X"$_am_arg" : 'X\(//\)[^/]' \| \
17494          X"$_am_arg" : 'X\(//\)$' \| \
17495          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17496 $as_echo X"$_am_arg" |
17497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17498             s//\1/
17499             q
17500           }
17501           /^X\(\/\/\)[^/].*/{
17502             s//\1/
17503             q
17504           }
17505           /^X\(\/\/\)$/{
17506             s//\1/
17507             q
17508           }
17509           /^X\(\/\).*/{
17510             s//\1/
17511             q
17512           }
17513           s/.*/./; q'`/stamp-h$_am_stamp_count
17514  ;;
17515
17516   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17517 $as_echo "$as_me: executing $ac_file commands" >&6;}
17518  ;;
17519   esac
17520
17521
17522   case $ac_file$ac_mode in
17523     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17524   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17525   # are listed without --file.  Let's play safe and only enable the eval
17526   # if we detect the quoting.
17527   case $CONFIG_FILES in
17528   *\'*) eval set x "$CONFIG_FILES" ;;
17529   *)   set x $CONFIG_FILES ;;
17530   esac
17531   shift
17532   for mf
17533   do
17534     # Strip MF so we end up with the name of the file.
17535     mf=`echo "$mf" | sed -e 's/:.*$//'`
17536     # Check whether this is an Automake generated Makefile or not.
17537     # We used to match only the files named `Makefile.in', but
17538     # some people rename them; so instead we look at the file content.
17539     # Grep'ing the first line is not enough: some people post-process
17540     # each Makefile.in and add a new line on top of each file to say so.
17541     # Grep'ing the whole file is not good either: AIX grep has a line
17542     # limit of 2048, but all sed's we know have understand at least 4000.
17543     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17544       dirpart=`$as_dirname -- "$mf" ||
17545 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17546          X"$mf" : 'X\(//\)[^/]' \| \
17547          X"$mf" : 'X\(//\)$' \| \
17548          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17549 $as_echo X"$mf" |
17550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17551             s//\1/
17552             q
17553           }
17554           /^X\(\/\/\)[^/].*/{
17555             s//\1/
17556             q
17557           }
17558           /^X\(\/\/\)$/{
17559             s//\1/
17560             q
17561           }
17562           /^X\(\/\).*/{
17563             s//\1/
17564             q
17565           }
17566           s/.*/./; q'`
17567     else
17568       continue
17569     fi
17570     # Extract the definition of DEPDIR, am__include, and am__quote
17571     # from the Makefile without running `make'.
17572     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17573     test -z "$DEPDIR" && continue
17574     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17575     test -z "am__include" && continue
17576     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17577     # When using ansi2knr, U may be empty or an underscore; expand it
17578     U=`sed -n 's/^U = //p' < "$mf"`
17579     # Find all dependency output files, they are included files with
17580     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17581     # simplest approach to changing $(DEPDIR) to its actual value in the
17582     # expansion.
17583     for file in `sed -n "
17584       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17585          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17586       # Make sure the directory exists.
17587       test -f "$dirpart/$file" && continue
17588       fdir=`$as_dirname -- "$file" ||
17589 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590          X"$file" : 'X\(//\)[^/]' \| \
17591          X"$file" : 'X\(//\)$' \| \
17592          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17593 $as_echo X"$file" |
17594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17595             s//\1/
17596             q
17597           }
17598           /^X\(\/\/\)[^/].*/{
17599             s//\1/
17600             q
17601           }
17602           /^X\(\/\/\)$/{
17603             s//\1/
17604             q
17605           }
17606           /^X\(\/\).*/{
17607             s//\1/
17608             q
17609           }
17610           s/.*/./; q'`
17611       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17612       # echo "creating $dirpart/$file"
17613       echo '# dummy' > "$dirpart/$file"
17614     done
17615   done
17616 }
17617  ;;
17618     "default":C)
17619 case x$CONFIG_HEADERS in
17620 xconfig.h:config.in)
17621 echo > stamp-h ;;
17622 esac
17623  ;;
17624
17625   esac
17626 done # for ac_tag
17627
17628
17629 as_fn_exit 0
17630 _ACEOF
17631 ac_clean_files=$ac_clean_files_save
17632
17633 test $ac_write_fail = 0 ||
17634   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17635
17636
17637 # configure is writing to config.log, and then calls config.status.
17638 # config.status does its own redirection, appending to config.log.
17639 # Unfortunately, on DOS this fails, as config.log is still kept open
17640 # by configure, so config.status won't be able to write to it; its
17641 # output is simply discarded.  So we exec the FD to /dev/null,
17642 # effectively closing config.log, so it can be properly (re)opened and
17643 # appended to by config.status.  When coming back to configure, we
17644 # need to make the FD available again.
17645 if test "$no_create" != yes; then
17646   ac_cs_success=:
17647   ac_config_status_args=
17648   test "$silent" = yes &&
17649     ac_config_status_args="$ac_config_status_args --quiet"
17650   exec 5>/dev/null
17651   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17652   exec 5>>config.log
17653   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17654   # would make configure fail if this is the last instruction.
17655   $ac_cs_success || as_fn_exit $?
17656 fi
17657 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17659 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17660 fi
17661
17662
17663 exit 0