doc: gdbserver allows for subsequent and not for multiple simultaneous connections.
[deliverable/binutils-gdb.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 gl_fnmatch_required=POSIX
592 ac_func_list=
593 ac_header_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 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
660 UNISTD_H_HAVE_WINSOCK2_H
661 REPLACE_WRITE
662 REPLACE_USLEEP
663 REPLACE_UNLINKAT
664 REPLACE_UNLINK
665 REPLACE_TTYNAME_R
666 REPLACE_SYMLINK
667 REPLACE_SLEEP
668 REPLACE_RMDIR
669 REPLACE_READLINK
670 REPLACE_READ
671 REPLACE_PWRITE
672 REPLACE_PREAD
673 REPLACE_LSEEK
674 REPLACE_LINKAT
675 REPLACE_LINK
676 REPLACE_LCHOWN
677 REPLACE_ISATTY
678 REPLACE_GETPAGESIZE
679 REPLACE_GETGROUPS
680 REPLACE_GETLOGIN_R
681 REPLACE_GETDOMAINNAME
682 REPLACE_GETCWD
683 REPLACE_FTRUNCATE
684 REPLACE_FCHOWNAT
685 REPLACE_DUP2
686 REPLACE_DUP
687 REPLACE_CLOSE
688 REPLACE_CHOWN
689 HAVE_SYS_PARAM_H
690 HAVE_OS_H
691 HAVE_DECL_TTYNAME_R
692 HAVE_DECL_SETHOSTNAME
693 HAVE_DECL_GETUSERSHELL
694 HAVE_DECL_GETPAGESIZE
695 HAVE_DECL_GETLOGIN_R
696 HAVE_DECL_GETDOMAINNAME
697 HAVE_DECL_FDATASYNC
698 HAVE_DECL_FCHDIR
699 HAVE_DECL_ENVIRON
700 HAVE_USLEEP
701 HAVE_UNLINKAT
702 HAVE_SYMLINKAT
703 HAVE_SYMLINK
704 HAVE_SLEEP
705 HAVE_SETHOSTNAME
706 HAVE_READLINKAT
707 HAVE_READLINK
708 HAVE_PWRITE
709 HAVE_PREAD
710 HAVE_PIPE2
711 HAVE_PIPE
712 HAVE_LINKAT
713 HAVE_LINK
714 HAVE_LCHOWN
715 HAVE_GROUP_MEMBER
716 HAVE_GETPAGESIZE
717 HAVE_GETLOGIN
718 HAVE_GETHOSTNAME
719 HAVE_GETGROUPS
720 HAVE_GETDTABLESIZE
721 HAVE_FTRUNCATE
722 HAVE_FSYNC
723 HAVE_FDATASYNC
724 HAVE_FCHOWNAT
725 HAVE_FCHDIR
726 HAVE_FACCESSAT
727 HAVE_EUIDACCESS
728 HAVE_DUP3
729 HAVE_DUP2
730 HAVE_CHOWN
731 GNULIB_WRITE
732 GNULIB_USLEEP
733 GNULIB_UNLINKAT
734 GNULIB_UNLINK
735 GNULIB_UNISTD_H_SIGPIPE
736 GNULIB_UNISTD_H_NONBLOCKING
737 GNULIB_TTYNAME_R
738 GNULIB_SYMLINKAT
739 GNULIB_SYMLINK
740 GNULIB_SLEEP
741 GNULIB_SETHOSTNAME
742 GNULIB_RMDIR
743 GNULIB_READLINKAT
744 GNULIB_READLINK
745 GNULIB_READ
746 GNULIB_PWRITE
747 GNULIB_PREAD
748 GNULIB_PIPE2
749 GNULIB_PIPE
750 GNULIB_LSEEK
751 GNULIB_LINKAT
752 GNULIB_LINK
753 GNULIB_LCHOWN
754 GNULIB_ISATTY
755 GNULIB_GROUP_MEMBER
756 GNULIB_GETUSERSHELL
757 GNULIB_GETPAGESIZE
758 GNULIB_GETLOGIN_R
759 GNULIB_GETLOGIN
760 GNULIB_GETHOSTNAME
761 GNULIB_GETGROUPS
762 GNULIB_GETDTABLESIZE
763 GNULIB_GETDOMAINNAME
764 GNULIB_GETCWD
765 GNULIB_FTRUNCATE
766 GNULIB_FSYNC
767 GNULIB_FDATASYNC
768 GNULIB_FCHOWNAT
769 GNULIB_FCHDIR
770 GNULIB_FACCESSAT
771 GNULIB_EUIDACCESS
772 GNULIB_ENVIRON
773 GNULIB_DUP3
774 GNULIB_DUP2
775 GNULIB_DUP
776 GNULIB_CLOSE
777 GNULIB_CHOWN
778 GNULIB_CHDIR
779 MKDIR_P
780 WINDOWS_64_BIT_OFF_T
781 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
782 NEXT_SYS_TYPES_H
783 NEXT_AS_FIRST_DIRECTIVE_STRING_H
784 NEXT_STRING_H
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
795 STDBOOL_H
796 UNDEFINE_STRTOK_R
797 REPLACE_STRTOK_R
798 REPLACE_STRSIGNAL
799 REPLACE_STRNLEN
800 REPLACE_STRNDUP
801 REPLACE_STRNCAT
802 REPLACE_STRERROR_R
803 REPLACE_STRERROR
804 REPLACE_STRCHRNUL
805 REPLACE_STRCASESTR
806 REPLACE_STRSTR
807 REPLACE_STRDUP
808 REPLACE_STPNCPY
809 REPLACE_MEMMEM
810 REPLACE_MEMCHR
811 HAVE_STRVERSCMP
812 HAVE_DECL_STRSIGNAL
813 HAVE_DECL_STRERROR_R
814 HAVE_DECL_STRTOK_R
815 HAVE_STRCASESTR
816 HAVE_STRSEP
817 HAVE_STRPBRK
818 HAVE_DECL_STRNLEN
819 HAVE_DECL_STRNDUP
820 HAVE_DECL_STRDUP
821 HAVE_STRCHRNUL
822 HAVE_STPNCPY
823 HAVE_STPCPY
824 HAVE_RAWMEMCHR
825 HAVE_DECL_MEMRCHR
826 HAVE_MEMPCPY
827 HAVE_DECL_MEMMEM
828 HAVE_MEMCHR
829 HAVE_FFSLL
830 HAVE_FFSL
831 HAVE_MBSLEN
832 GNULIB_STRVERSCMP
833 GNULIB_STRSIGNAL
834 GNULIB_STRERROR_R
835 GNULIB_STRERROR
836 GNULIB_MBSTOK_R
837 GNULIB_MBSSEP
838 GNULIB_MBSSPN
839 GNULIB_MBSPBRK
840 GNULIB_MBSCSPN
841 GNULIB_MBSCASESTR
842 GNULIB_MBSPCASECMP
843 GNULIB_MBSNCASECMP
844 GNULIB_MBSCASECMP
845 GNULIB_MBSSTR
846 GNULIB_MBSRCHR
847 GNULIB_MBSCHR
848 GNULIB_MBSNLEN
849 GNULIB_MBSLEN
850 GNULIB_STRTOK_R
851 GNULIB_STRCASESTR
852 GNULIB_STRSTR
853 GNULIB_STRSEP
854 GNULIB_STRPBRK
855 GNULIB_STRNLEN
856 GNULIB_STRNDUP
857 GNULIB_STRNCAT
858 GNULIB_STRDUP
859 GNULIB_STRCHRNUL
860 GNULIB_STPNCPY
861 GNULIB_STPCPY
862 GNULIB_RAWMEMCHR
863 GNULIB_MEMRCHR
864 GNULIB_MEMPCPY
865 GNULIB_MEMMEM
866 GNULIB_MEMCHR
867 GNULIB_FFSLL
868 GNULIB_FFSL
869 LOCALE_FR
870 LOCALE_FR_UTF8
871 LOCALE_ZH_CN
872 LOCALE_JA
873 REPLACE_WCSWIDTH
874 REPLACE_WCWIDTH
875 REPLACE_WCSNRTOMBS
876 REPLACE_WCSRTOMBS
877 REPLACE_WCRTOMB
878 REPLACE_MBSNRTOWCS
879 REPLACE_MBSRTOWCS
880 REPLACE_MBRLEN
881 REPLACE_MBRTOWC
882 REPLACE_MBSINIT
883 REPLACE_WCTOB
884 REPLACE_BTOWC
885 REPLACE_MBSTATE_T
886 HAVE_DECL_WCWIDTH
887 HAVE_DECL_WCTOB
888 HAVE_WCSWIDTH
889 HAVE_WCSTOK
890 HAVE_WCSSTR
891 HAVE_WCSPBRK
892 HAVE_WCSSPN
893 HAVE_WCSCSPN
894 HAVE_WCSRCHR
895 HAVE_WCSCHR
896 HAVE_WCSDUP
897 HAVE_WCSXFRM
898 HAVE_WCSCOLL
899 HAVE_WCSNCASECMP
900 HAVE_WCSCASECMP
901 HAVE_WCSNCMP
902 HAVE_WCSCMP
903 HAVE_WCSNCAT
904 HAVE_WCSCAT
905 HAVE_WCPNCPY
906 HAVE_WCSNCPY
907 HAVE_WCPCPY
908 HAVE_WCSCPY
909 HAVE_WCSNLEN
910 HAVE_WCSLEN
911 HAVE_WMEMSET
912 HAVE_WMEMMOVE
913 HAVE_WMEMCPY
914 HAVE_WMEMCMP
915 HAVE_WMEMCHR
916 HAVE_WCSNRTOMBS
917 HAVE_WCSRTOMBS
918 HAVE_WCRTOMB
919 HAVE_MBSNRTOWCS
920 HAVE_MBSRTOWCS
921 HAVE_MBRLEN
922 HAVE_MBRTOWC
923 HAVE_MBSINIT
924 HAVE_BTOWC
925 GNULIB_WCSWIDTH
926 GNULIB_WCSTOK
927 GNULIB_WCSSTR
928 GNULIB_WCSPBRK
929 GNULIB_WCSSPN
930 GNULIB_WCSCSPN
931 GNULIB_WCSRCHR
932 GNULIB_WCSCHR
933 GNULIB_WCSDUP
934 GNULIB_WCSXFRM
935 GNULIB_WCSCOLL
936 GNULIB_WCSNCASECMP
937 GNULIB_WCSCASECMP
938 GNULIB_WCSNCMP
939 GNULIB_WCSCMP
940 GNULIB_WCSNCAT
941 GNULIB_WCSCAT
942 GNULIB_WCPNCPY
943 GNULIB_WCSNCPY
944 GNULIB_WCPCPY
945 GNULIB_WCSCPY
946 GNULIB_WCSNLEN
947 GNULIB_WCSLEN
948 GNULIB_WMEMSET
949 GNULIB_WMEMMOVE
950 GNULIB_WMEMCPY
951 GNULIB_WMEMCMP
952 GNULIB_WMEMCHR
953 GNULIB_WCWIDTH
954 GNULIB_WCSNRTOMBS
955 GNULIB_WCSRTOMBS
956 GNULIB_WCRTOMB
957 GNULIB_MBSNRTOWCS
958 GNULIB_MBSRTOWCS
959 GNULIB_MBRLEN
960 GNULIB_MBRTOWC
961 GNULIB_MBSINIT
962 GNULIB_WCTOB
963 GNULIB_BTOWC
964 NEXT_AS_FIRST_DIRECTIVE_MATH_H
965 NEXT_MATH_H
966 LOCALCHARSET_TESTS_ENVIRONMENT
967 GLIBC21
968 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
969 NEXT_INTTYPES_H
970 UINT64_MAX_EQ_ULONG_MAX
971 UINT32_MAX_LT_UINTMAX_MAX
972 PRIPTR_PREFIX
973 PRI_MACROS_BROKEN
974 INT64_MAX_EQ_LONG_MAX
975 INT32_MAX_LT_INTMAX_MAX
976 REPLACE_STRTOIMAX
977 HAVE_DECL_STRTOUMAX
978 HAVE_DECL_STRTOIMAX
979 HAVE_DECL_IMAXDIV
980 HAVE_DECL_IMAXABS
981 GNULIB_STRTOUMAX
982 GNULIB_STRTOIMAX
983 GNULIB_IMAXDIV
984 GNULIB_IMAXABS
985 GL_GENERATE_STDINT_H_FALSE
986 GL_GENERATE_STDINT_H_TRUE
987 STDINT_H
988 WINT_T_SUFFIX
989 WCHAR_T_SUFFIX
990 SIG_ATOMIC_T_SUFFIX
991 SIZE_T_SUFFIX
992 PTRDIFF_T_SUFFIX
993 HAVE_SIGNED_WINT_T
994 HAVE_SIGNED_WCHAR_T
995 HAVE_SIGNED_SIG_ATOMIC_T
996 BITSIZEOF_WINT_T
997 BITSIZEOF_WCHAR_T
998 BITSIZEOF_SIG_ATOMIC_T
999 BITSIZEOF_SIZE_T
1000 BITSIZEOF_PTRDIFF_T
1001 APPLE_UNIVERSAL_BUILD
1002 HAVE_SYS_BITYPES_H
1003 HAVE_SYS_INTTYPES_H
1004 HAVE_STDINT_H
1005 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1006 NEXT_STDINT_H
1007 HAVE_SYS_TYPES_H
1008 HAVE_INTTYPES_H
1009 HAVE_WCHAR_H
1010 HAVE_UNSIGNED_LONG_LONG_INT
1011 HAVE_LONG_LONG_INT
1012 FREXPL_LIBM
1013 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1014 FREXP_LIBM
1015 REPLACE_TRUNCL
1016 REPLACE_TRUNCF
1017 REPLACE_TRUNC
1018 REPLACE_SQRTL
1019 REPLACE_SIGNBIT_USING_GCC
1020 REPLACE_SIGNBIT
1021 REPLACE_ROUNDL
1022 REPLACE_ROUNDF
1023 REPLACE_ROUND
1024 REPLACE_REMAINDERL
1025 REPLACE_REMAINDERF
1026 REPLACE_REMAINDER
1027 REPLACE_NAN
1028 REPLACE_MODFL
1029 REPLACE_MODFF
1030 REPLACE_MODF
1031 REPLACE_LOGBL
1032 REPLACE_LOGBF
1033 REPLACE_LOGB
1034 REPLACE_LOG2L
1035 REPLACE_LOG2F
1036 REPLACE_LOG2
1037 REPLACE_LOG1PL
1038 REPLACE_LOG1PF
1039 REPLACE_LOG1P
1040 REPLACE_LOG10L
1041 REPLACE_LOG10F
1042 REPLACE_LOG10
1043 REPLACE_LOGL
1044 REPLACE_LOGF
1045 REPLACE_LOG
1046 REPLACE_LDEXPL
1047 REPLACE_ISNAN
1048 REPLACE_ISINF
1049 REPLACE_ISFINITE
1050 REPLACE_ILOGBF
1051 REPLACE_ILOGB
1052 REPLACE_HYPOTL
1053 REPLACE_HYPOTF
1054 REPLACE_HYPOT
1055 REPLACE_HUGE_VAL
1056 REPLACE_FREXPL
1057 REPLACE_FREXP
1058 REPLACE_FREXPF
1059 REPLACE_FMODL
1060 REPLACE_FMODF
1061 REPLACE_FMOD
1062 REPLACE_FMAL
1063 REPLACE_FMAF
1064 REPLACE_FMA
1065 REPLACE_FLOORL
1066 REPLACE_FLOORF
1067 REPLACE_FLOOR
1068 REPLACE_FABSL
1069 REPLACE_EXP2L
1070 REPLACE_EXP2
1071 REPLACE_EXPM1F
1072 REPLACE_EXPM1
1073 REPLACE_CEILL
1074 REPLACE_CEILF
1075 REPLACE_CEIL
1076 REPLACE_CBRTL
1077 REPLACE_CBRTF
1078 HAVE_DECL_TRUNCL
1079 HAVE_DECL_TRUNCF
1080 HAVE_DECL_TRUNC
1081 HAVE_DECL_TANL
1082 HAVE_DECL_SQRTL
1083 HAVE_DECL_SINL
1084 HAVE_DECL_ROUNDL
1085 HAVE_DECL_ROUNDF
1086 HAVE_DECL_ROUND
1087 HAVE_DECL_RINTF
1088 HAVE_DECL_REMAINDERL
1089 HAVE_DECL_REMAINDER
1090 HAVE_DECL_LOGB
1091 HAVE_DECL_LOG2L
1092 HAVE_DECL_LOG2F
1093 HAVE_DECL_LOG2
1094 HAVE_DECL_LOG10L
1095 HAVE_DECL_LOGL
1096 HAVE_DECL_LDEXPL
1097 HAVE_DECL_FREXPL
1098 HAVE_DECL_FLOORL
1099 HAVE_DECL_FLOORF
1100 HAVE_DECL_EXPM1L
1101 HAVE_DECL_EXP2L
1102 HAVE_DECL_EXP2F
1103 HAVE_DECL_EXP2
1104 HAVE_DECL_EXPL
1105 HAVE_DECL_COSL
1106 HAVE_DECL_COPYSIGNF
1107 HAVE_DECL_CEILL
1108 HAVE_DECL_CEILF
1109 HAVE_DECL_CBRTL
1110 HAVE_DECL_CBRTF
1111 HAVE_DECL_ATANL
1112 HAVE_DECL_ASINL
1113 HAVE_DECL_ACOSL
1114 HAVE_TANHF
1115 HAVE_TANL
1116 HAVE_TANF
1117 HAVE_SQRTL
1118 HAVE_SQRTF
1119 HAVE_SINHF
1120 HAVE_SINL
1121 HAVE_SINF
1122 HAVE_RINTL
1123 HAVE_RINT
1124 HAVE_REMAINDERF
1125 HAVE_REMAINDER
1126 HAVE_POWF
1127 HAVE_MODFL
1128 HAVE_MODFF
1129 HAVE_LOGBL
1130 HAVE_LOGBF
1131 HAVE_LOG1PL
1132 HAVE_LOG1PF
1133 HAVE_LOG1P
1134 HAVE_LOG10L
1135 HAVE_LOG10F
1136 HAVE_LOGL
1137 HAVE_LOGF
1138 HAVE_LDEXPF
1139 HAVE_ISNANL
1140 HAVE_ISNAND
1141 HAVE_ISNANF
1142 HAVE_ILOGBL
1143 HAVE_ILOGBF
1144 HAVE_ILOGB
1145 HAVE_HYPOTL
1146 HAVE_HYPOTF
1147 HAVE_FREXPF
1148 HAVE_FMODL
1149 HAVE_FMODF
1150 HAVE_FMAL
1151 HAVE_FMAF
1152 HAVE_FMA
1153 HAVE_FABSL
1154 HAVE_FABSF
1155 HAVE_EXPM1F
1156 HAVE_EXPM1
1157 HAVE_EXPL
1158 HAVE_EXPF
1159 HAVE_COSHF
1160 HAVE_COSL
1161 HAVE_COSF
1162 HAVE_COPYSIGNL
1163 HAVE_COPYSIGN
1164 HAVE_CBRTL
1165 HAVE_CBRTF
1166 HAVE_CBRT
1167 HAVE_ATAN2F
1168 HAVE_ATANL
1169 HAVE_ATANF
1170 HAVE_ASINL
1171 HAVE_ASINF
1172 HAVE_ACOSL
1173 HAVE_ACOSF
1174 GNULIB_TRUNCL
1175 GNULIB_TRUNCF
1176 GNULIB_TRUNC
1177 GNULIB_TANHF
1178 GNULIB_TANL
1179 GNULIB_TANF
1180 GNULIB_SQRTL
1181 GNULIB_SQRTF
1182 GNULIB_SINHF
1183 GNULIB_SINL
1184 GNULIB_SINF
1185 GNULIB_SIGNBIT
1186 GNULIB_ROUNDL
1187 GNULIB_ROUNDF
1188 GNULIB_ROUND
1189 GNULIB_RINTL
1190 GNULIB_RINTF
1191 GNULIB_RINT
1192 GNULIB_REMAINDERL
1193 GNULIB_REMAINDERF
1194 GNULIB_REMAINDER
1195 GNULIB_POWF
1196 GNULIB_MODFL
1197 GNULIB_MODFF
1198 GNULIB_MODF
1199 GNULIB_LOGBL
1200 GNULIB_LOGBF
1201 GNULIB_LOGB
1202 GNULIB_LOG2L
1203 GNULIB_LOG2F
1204 GNULIB_LOG2
1205 GNULIB_LOG1PL
1206 GNULIB_LOG1PF
1207 GNULIB_LOG1P
1208 GNULIB_LOG10L
1209 GNULIB_LOG10F
1210 GNULIB_LOG10
1211 GNULIB_LOGL
1212 GNULIB_LOGF
1213 GNULIB_LOG
1214 GNULIB_LDEXPL
1215 GNULIB_LDEXPF
1216 GNULIB_ISNANL
1217 GNULIB_ISNAND
1218 GNULIB_ISNANF
1219 GNULIB_ISNAN
1220 GNULIB_ISINF
1221 GNULIB_ISFINITE
1222 GNULIB_ILOGBL
1223 GNULIB_ILOGBF
1224 GNULIB_ILOGB
1225 GNULIB_HYPOTL
1226 GNULIB_HYPOTF
1227 GNULIB_HYPOT
1228 GNULIB_FREXPL
1229 GNULIB_FREXP
1230 GNULIB_FREXPF
1231 GNULIB_FMODL
1232 GNULIB_FMODF
1233 GNULIB_FMOD
1234 GNULIB_FMAL
1235 GNULIB_FMAF
1236 GNULIB_FMA
1237 GNULIB_FLOORL
1238 GNULIB_FLOORF
1239 GNULIB_FLOOR
1240 GNULIB_FABSL
1241 GNULIB_FABSF
1242 GNULIB_EXPM1L
1243 GNULIB_EXPM1F
1244 GNULIB_EXPM1
1245 GNULIB_EXP2L
1246 GNULIB_EXP2F
1247 GNULIB_EXP2
1248 GNULIB_EXPL
1249 GNULIB_EXPF
1250 GNULIB_COSHF
1251 GNULIB_COSL
1252 GNULIB_COSF
1253 GNULIB_COPYSIGNL
1254 GNULIB_COPYSIGNF
1255 GNULIB_COPYSIGN
1256 GNULIB_CEILL
1257 GNULIB_CEILF
1258 GNULIB_CEIL
1259 GNULIB_CBRTL
1260 GNULIB_CBRTF
1261 GNULIB_CBRT
1262 GNULIB_ATAN2F
1263 GNULIB_ATANL
1264 GNULIB_ATANF
1265 GNULIB_ASINL
1266 GNULIB_ASINF
1267 GNULIB_ACOSL
1268 GNULIB_ACOSF
1269 GL_GENERATE_FNMATCH_H_FALSE
1270 GL_GENERATE_FNMATCH_H_TRUE
1271 FNMATCH_H
1272 REPLACE_ITOLD
1273 GL_GENERATE_FLOAT_H_FALSE
1274 GL_GENERATE_FLOAT_H_TRUE
1275 FLOAT_H
1276 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1277 NEXT_FLOAT_H
1278 PRAGMA_COLUMNS
1279 PRAGMA_SYSTEM_HEADER
1280 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1281 INCLUDE_NEXT
1282 pkglibexecdir
1283 lispdir
1284 GL_GENERATE_ALLOCA_H_FALSE
1285 GL_GENERATE_ALLOCA_H_TRUE
1286 ALLOCA_H
1287 ALLOCA
1288 GL_COND_LIBTOOL_FALSE
1289 GL_COND_LIBTOOL_TRUE
1290 target_os
1291 target_vendor
1292 target_cpu
1293 target
1294 RANLIB
1295 ARFLAGS
1296 AR
1297 EGREP
1298 GREP
1299 CPP
1300 host_os
1301 host_vendor
1302 host_cpu
1303 host
1304 build_os
1305 build_vendor
1306 build_cpu
1307 build
1308 OBJEXT
1309 EXEEXT
1310 ac_ct_CC
1311 CPPFLAGS
1312 LDFLAGS
1313 CFLAGS
1314 CC
1315 MAINT
1316 MAINTAINER_MODE_FALSE
1317 MAINTAINER_MODE_TRUE
1318 target_alias
1319 host_alias
1320 build_alias
1321 LIBS
1322 ECHO_T
1323 ECHO_N
1324 ECHO_C
1325 DEFS
1326 mandir
1327 localedir
1328 libdir
1329 psdir
1330 pdfdir
1331 dvidir
1332 htmldir
1333 infodir
1334 docdir
1335 oldincludedir
1336 includedir
1337 localstatedir
1338 sharedstatedir
1339 sysconfdir
1340 datadir
1341 datarootdir
1342 libexecdir
1343 sbindir
1344 bindir
1345 program_transform_name
1346 prefix
1347 exec_prefix
1348 PACKAGE_URL
1349 PACKAGE_BUGREPORT
1350 PACKAGE_STRING
1351 PACKAGE_VERSION
1352 PACKAGE_TARNAME
1353 PACKAGE_NAME
1354 PATH_SEPARATOR
1355 SHELL'
1356 ac_subst_files=''
1357 ac_user_opts='
1358 enable_option_checking
1359 enable_maintainer_mode
1360 enable_dependency_tracking
1361 '
1362 ac_precious_vars='build_alias
1363 host_alias
1364 target_alias
1365 CC
1366 CFLAGS
1367 LDFLAGS
1368 LIBS
1369 CPPFLAGS
1370 CPP'
1371
1372
1373 # Initialize some variables set by options.
1374 ac_init_help=
1375 ac_init_version=false
1376 ac_unrecognized_opts=
1377 ac_unrecognized_sep=
1378 # The variables have the same names as the options, with
1379 # dashes changed to underlines.
1380 cache_file=/dev/null
1381 exec_prefix=NONE
1382 no_create=
1383 no_recursion=
1384 prefix=NONE
1385 program_prefix=NONE
1386 program_suffix=NONE
1387 program_transform_name=s,x,x,
1388 silent=
1389 site=
1390 srcdir=
1391 verbose=
1392 x_includes=NONE
1393 x_libraries=NONE
1394
1395 # Installation directory options.
1396 # These are left unexpanded so users can "make install exec_prefix=/foo"
1397 # and all the variables that are supposed to be based on exec_prefix
1398 # by default will actually change.
1399 # Use braces instead of parens because sh, perl, etc. also accept them.
1400 # (The list follows the same order as the GNU Coding Standards.)
1401 bindir='${exec_prefix}/bin'
1402 sbindir='${exec_prefix}/sbin'
1403 libexecdir='${exec_prefix}/libexec'
1404 datarootdir='${prefix}/share'
1405 datadir='${datarootdir}'
1406 sysconfdir='${prefix}/etc'
1407 sharedstatedir='${prefix}/com'
1408 localstatedir='${prefix}/var'
1409 includedir='${prefix}/include'
1410 oldincludedir='/usr/include'
1411 docdir='${datarootdir}/doc/${PACKAGE}'
1412 infodir='${datarootdir}/info'
1413 htmldir='${docdir}'
1414 dvidir='${docdir}'
1415 pdfdir='${docdir}'
1416 psdir='${docdir}'
1417 libdir='${exec_prefix}/lib'
1418 localedir='${datarootdir}/locale'
1419 mandir='${datarootdir}/man'
1420
1421 ac_prev=
1422 ac_dashdash=
1423 for ac_option
1424 do
1425 # If the previous option needs an argument, assign it.
1426 if test -n "$ac_prev"; then
1427 eval $ac_prev=\$ac_option
1428 ac_prev=
1429 continue
1430 fi
1431
1432 case $ac_option in
1433 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1434 *) ac_optarg=yes ;;
1435 esac
1436
1437 # Accept the important Cygnus configure options, so we can diagnose typos.
1438
1439 case $ac_dashdash$ac_option in
1440 --)
1441 ac_dashdash=yes ;;
1442
1443 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1444 ac_prev=bindir ;;
1445 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1446 bindir=$ac_optarg ;;
1447
1448 -build | --build | --buil | --bui | --bu)
1449 ac_prev=build_alias ;;
1450 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1451 build_alias=$ac_optarg ;;
1452
1453 -cache-file | --cache-file | --cache-fil | --cache-fi \
1454 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1455 ac_prev=cache_file ;;
1456 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1457 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1458 cache_file=$ac_optarg ;;
1459
1460 --config-cache | -C)
1461 cache_file=config.cache ;;
1462
1463 -datadir | --datadir | --datadi | --datad)
1464 ac_prev=datadir ;;
1465 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1466 datadir=$ac_optarg ;;
1467
1468 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1469 | --dataroo | --dataro | --datar)
1470 ac_prev=datarootdir ;;
1471 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1472 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1473 datarootdir=$ac_optarg ;;
1474
1475 -disable-* | --disable-*)
1476 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1477 # Reject names that are not valid shell variable names.
1478 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1479 as_fn_error "invalid feature name: $ac_useropt"
1480 ac_useropt_orig=$ac_useropt
1481 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482 case $ac_user_opts in
1483 *"
1484 "enable_$ac_useropt"
1485 "*) ;;
1486 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487 ac_unrecognized_sep=', ';;
1488 esac
1489 eval enable_$ac_useropt=no ;;
1490
1491 -docdir | --docdir | --docdi | --doc | --do)
1492 ac_prev=docdir ;;
1493 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1494 docdir=$ac_optarg ;;
1495
1496 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1497 ac_prev=dvidir ;;
1498 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1499 dvidir=$ac_optarg ;;
1500
1501 -enable-* | --enable-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505 as_fn_error "invalid feature name: $ac_useropt"
1506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1509 *"
1510 "enable_$ac_useropt"
1511 "*) ;;
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1514 esac
1515 eval enable_$ac_useropt=\$ac_optarg ;;
1516
1517 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1518 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1519 | --exec | --exe | --ex)
1520 ac_prev=exec_prefix ;;
1521 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1522 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1523 | --exec=* | --exe=* | --ex=*)
1524 exec_prefix=$ac_optarg ;;
1525
1526 -gas | --gas | --ga | --g)
1527 # Obsolete; use --with-gas.
1528 with_gas=yes ;;
1529
1530 -help | --help | --hel | --he | -h)
1531 ac_init_help=long ;;
1532 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1533 ac_init_help=recursive ;;
1534 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1535 ac_init_help=short ;;
1536
1537 -host | --host | --hos | --ho)
1538 ac_prev=host_alias ;;
1539 -host=* | --host=* | --hos=* | --ho=*)
1540 host_alias=$ac_optarg ;;
1541
1542 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1543 ac_prev=htmldir ;;
1544 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1545 | --ht=*)
1546 htmldir=$ac_optarg ;;
1547
1548 -includedir | --includedir | --includedi | --included | --include \
1549 | --includ | --inclu | --incl | --inc)
1550 ac_prev=includedir ;;
1551 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1552 | --includ=* | --inclu=* | --incl=* | --inc=*)
1553 includedir=$ac_optarg ;;
1554
1555 -infodir | --infodir | --infodi | --infod | --info | --inf)
1556 ac_prev=infodir ;;
1557 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1558 infodir=$ac_optarg ;;
1559
1560 -libdir | --libdir | --libdi | --libd)
1561 ac_prev=libdir ;;
1562 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1563 libdir=$ac_optarg ;;
1564
1565 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1566 | --libexe | --libex | --libe)
1567 ac_prev=libexecdir ;;
1568 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1569 | --libexe=* | --libex=* | --libe=*)
1570 libexecdir=$ac_optarg ;;
1571
1572 -localedir | --localedir | --localedi | --localed | --locale)
1573 ac_prev=localedir ;;
1574 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1575 localedir=$ac_optarg ;;
1576
1577 -localstatedir | --localstatedir | --localstatedi | --localstated \
1578 | --localstate | --localstat | --localsta | --localst | --locals)
1579 ac_prev=localstatedir ;;
1580 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1581 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1582 localstatedir=$ac_optarg ;;
1583
1584 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1585 ac_prev=mandir ;;
1586 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1587 mandir=$ac_optarg ;;
1588
1589 -nfp | --nfp | --nf)
1590 # Obsolete; use --without-fp.
1591 with_fp=no ;;
1592
1593 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1594 | --no-cr | --no-c | -n)
1595 no_create=yes ;;
1596
1597 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1598 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1599 no_recursion=yes ;;
1600
1601 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1602 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1603 | --oldin | --oldi | --old | --ol | --o)
1604 ac_prev=oldincludedir ;;
1605 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1606 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1607 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1608 oldincludedir=$ac_optarg ;;
1609
1610 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1611 ac_prev=prefix ;;
1612 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1613 prefix=$ac_optarg ;;
1614
1615 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1616 | --program-pre | --program-pr | --program-p)
1617 ac_prev=program_prefix ;;
1618 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1619 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1620 program_prefix=$ac_optarg ;;
1621
1622 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1623 | --program-suf | --program-su | --program-s)
1624 ac_prev=program_suffix ;;
1625 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1626 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1627 program_suffix=$ac_optarg ;;
1628
1629 -program-transform-name | --program-transform-name \
1630 | --program-transform-nam | --program-transform-na \
1631 | --program-transform-n | --program-transform- \
1632 | --program-transform | --program-transfor \
1633 | --program-transfo | --program-transf \
1634 | --program-trans | --program-tran \
1635 | --progr-tra | --program-tr | --program-t)
1636 ac_prev=program_transform_name ;;
1637 -program-transform-name=* | --program-transform-name=* \
1638 | --program-transform-nam=* | --program-transform-na=* \
1639 | --program-transform-n=* | --program-transform-=* \
1640 | --program-transform=* | --program-transfor=* \
1641 | --program-transfo=* | --program-transf=* \
1642 | --program-trans=* | --program-tran=* \
1643 | --progr-tra=* | --program-tr=* | --program-t=*)
1644 program_transform_name=$ac_optarg ;;
1645
1646 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1647 ac_prev=pdfdir ;;
1648 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1649 pdfdir=$ac_optarg ;;
1650
1651 -psdir | --psdir | --psdi | --psd | --ps)
1652 ac_prev=psdir ;;
1653 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1654 psdir=$ac_optarg ;;
1655
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1658 silent=yes ;;
1659
1660 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1661 ac_prev=sbindir ;;
1662 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1663 | --sbi=* | --sb=*)
1664 sbindir=$ac_optarg ;;
1665
1666 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1667 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1668 | --sharedst | --shareds | --shared | --share | --shar \
1669 | --sha | --sh)
1670 ac_prev=sharedstatedir ;;
1671 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1672 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1673 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1674 | --sha=* | --sh=*)
1675 sharedstatedir=$ac_optarg ;;
1676
1677 -site | --site | --sit)
1678 ac_prev=site ;;
1679 -site=* | --site=* | --sit=*)
1680 site=$ac_optarg ;;
1681
1682 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1683 ac_prev=srcdir ;;
1684 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1685 srcdir=$ac_optarg ;;
1686
1687 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1688 | --syscon | --sysco | --sysc | --sys | --sy)
1689 ac_prev=sysconfdir ;;
1690 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1691 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1692 sysconfdir=$ac_optarg ;;
1693
1694 -target | --target | --targe | --targ | --tar | --ta | --t)
1695 ac_prev=target_alias ;;
1696 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1697 target_alias=$ac_optarg ;;
1698
1699 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1700 verbose=yes ;;
1701
1702 -version | --version | --versio | --versi | --vers | -V)
1703 ac_init_version=: ;;
1704
1705 -with-* | --with-*)
1706 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1707 # Reject names that are not valid shell variable names.
1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709 as_fn_error "invalid package name: $ac_useropt"
1710 ac_useropt_orig=$ac_useropt
1711 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712 case $ac_user_opts in
1713 *"
1714 "with_$ac_useropt"
1715 "*) ;;
1716 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1717 ac_unrecognized_sep=', ';;
1718 esac
1719 eval with_$ac_useropt=\$ac_optarg ;;
1720
1721 -without-* | --without-*)
1722 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1723 # Reject names that are not valid shell variable names.
1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1725 as_fn_error "invalid package name: $ac_useropt"
1726 ac_useropt_orig=$ac_useropt
1727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1728 case $ac_user_opts in
1729 *"
1730 "with_$ac_useropt"
1731 "*) ;;
1732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1733 ac_unrecognized_sep=', ';;
1734 esac
1735 eval with_$ac_useropt=no ;;
1736
1737 --x)
1738 # Obsolete; use --with-x.
1739 with_x=yes ;;
1740
1741 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1742 | --x-incl | --x-inc | --x-in | --x-i)
1743 ac_prev=x_includes ;;
1744 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1745 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1746 x_includes=$ac_optarg ;;
1747
1748 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1749 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1750 ac_prev=x_libraries ;;
1751 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1752 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1753 x_libraries=$ac_optarg ;;
1754
1755 -*) as_fn_error "unrecognized option: \`$ac_option'
1756 Try \`$0 --help' for more information."
1757 ;;
1758
1759 *=*)
1760 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1761 # Reject names that are not valid shell variable names.
1762 case $ac_envvar in #(
1763 '' | [0-9]* | *[!_$as_cr_alnum]* )
1764 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1765 esac
1766 eval $ac_envvar=\$ac_optarg
1767 export $ac_envvar ;;
1768
1769 *)
1770 # FIXME: should be removed in autoconf 3.0.
1771 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1772 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1773 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1774 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1775 ;;
1776
1777 esac
1778 done
1779
1780 if test -n "$ac_prev"; then
1781 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1782 as_fn_error "missing argument to $ac_option"
1783 fi
1784
1785 if test -n "$ac_unrecognized_opts"; then
1786 case $enable_option_checking in
1787 no) ;;
1788 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1789 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1790 esac
1791 fi
1792
1793 # Check all directory arguments for consistency.
1794 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1795 datadir sysconfdir sharedstatedir localstatedir includedir \
1796 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1797 libdir localedir mandir
1798 do
1799 eval ac_val=\$$ac_var
1800 # Remove trailing slashes.
1801 case $ac_val in
1802 */ )
1803 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1804 eval $ac_var=\$ac_val;;
1805 esac
1806 # Be sure to have absolute directory names.
1807 case $ac_val in
1808 [\\/$]* | ?:[\\/]* ) continue;;
1809 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1810 esac
1811 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1812 done
1813
1814 # There might be people who depend on the old broken behavior: `$host'
1815 # used to hold the argument of --host etc.
1816 # FIXME: To remove some day.
1817 build=$build_alias
1818 host=$host_alias
1819 target=$target_alias
1820
1821 # FIXME: To remove some day.
1822 if test "x$host_alias" != x; then
1823 if test "x$build_alias" = x; then
1824 cross_compiling=maybe
1825 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1826 If a cross compiler is detected then cross compile mode will be used." >&2
1827 elif test "x$build_alias" != "x$host_alias"; then
1828 cross_compiling=yes
1829 fi
1830 fi
1831
1832 ac_tool_prefix=
1833 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1834
1835 test "$silent" = yes && exec 6>/dev/null
1836
1837
1838 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1839 ac_ls_di=`ls -di .` &&
1840 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1841 as_fn_error "working directory cannot be determined"
1842 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1843 as_fn_error "pwd does not report name of working directory"
1844
1845
1846 # Find the source files, if location was not specified.
1847 if test -z "$srcdir"; then
1848 ac_srcdir_defaulted=yes
1849 # Try the directory containing this script, then the parent directory.
1850 ac_confdir=`$as_dirname -- "$as_myself" ||
1851 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1852 X"$as_myself" : 'X\(//\)[^/]' \| \
1853 X"$as_myself" : 'X\(//\)$' \| \
1854 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1855 $as_echo X"$as_myself" |
1856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1857 s//\1/
1858 q
1859 }
1860 /^X\(\/\/\)[^/].*/{
1861 s//\1/
1862 q
1863 }
1864 /^X\(\/\/\)$/{
1865 s//\1/
1866 q
1867 }
1868 /^X\(\/\).*/{
1869 s//\1/
1870 q
1871 }
1872 s/.*/./; q'`
1873 srcdir=$ac_confdir
1874 if test ! -r "$srcdir/$ac_unique_file"; then
1875 srcdir=..
1876 fi
1877 else
1878 ac_srcdir_defaulted=no
1879 fi
1880 if test ! -r "$srcdir/$ac_unique_file"; then
1881 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1882 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1883 fi
1884 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1885 ac_abs_confdir=`(
1886 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1887 pwd)`
1888 # When building in place, set srcdir=.
1889 if test "$ac_abs_confdir" = "$ac_pwd"; then
1890 srcdir=.
1891 fi
1892 # Remove unnecessary trailing slashes from srcdir.
1893 # Double slashes in file names in object file debugging info
1894 # mess up M-x gdb in Emacs.
1895 case $srcdir in
1896 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1897 esac
1898 for ac_var in $ac_precious_vars; do
1899 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1900 eval ac_env_${ac_var}_value=\$${ac_var}
1901 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1902 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1903 done
1904
1905 #
1906 # Report the --help message.
1907 #
1908 if test "$ac_init_help" = "long"; then
1909 # Omit some internal or obsolete options to make the list less imposing.
1910 # This message is too long to be a string in the A/UX 3.1 sh.
1911 cat <<_ACEOF
1912 \`configure' configures this package to adapt to many kinds of systems.
1913
1914 Usage: $0 [OPTION]... [VAR=VALUE]...
1915
1916 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1917 VAR=VALUE. See below for descriptions of some of the useful variables.
1918
1919 Defaults for the options are specified in brackets.
1920
1921 Configuration:
1922 -h, --help display this help and exit
1923 --help=short display options specific to this package
1924 --help=recursive display the short help of all the included packages
1925 -V, --version display version information and exit
1926 -q, --quiet, --silent do not print \`checking...' messages
1927 --cache-file=FILE cache test results in FILE [disabled]
1928 -C, --config-cache alias for \`--cache-file=config.cache'
1929 -n, --no-create do not create output files
1930 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1931
1932 Installation directories:
1933 --prefix=PREFIX install architecture-independent files in PREFIX
1934 [$ac_default_prefix]
1935 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1936 [PREFIX]
1937
1938 By default, \`make install' will install all the files in
1939 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1940 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1941 for instance \`--prefix=\$HOME'.
1942
1943 For better control, use the options below.
1944
1945 Fine tuning of the installation directories:
1946 --bindir=DIR user executables [EPREFIX/bin]
1947 --sbindir=DIR system admin executables [EPREFIX/sbin]
1948 --libexecdir=DIR program executables [EPREFIX/libexec]
1949 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1950 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1951 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1952 --libdir=DIR object code libraries [EPREFIX/lib]
1953 --includedir=DIR C header files [PREFIX/include]
1954 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1955 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1956 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1957 --infodir=DIR info documentation [DATAROOTDIR/info]
1958 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1959 --mandir=DIR man documentation [DATAROOTDIR/man]
1960 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1961 --htmldir=DIR html documentation [DOCDIR]
1962 --dvidir=DIR dvi documentation [DOCDIR]
1963 --pdfdir=DIR pdf documentation [DOCDIR]
1964 --psdir=DIR ps documentation [DOCDIR]
1965 _ACEOF
1966
1967 cat <<\_ACEOF
1968
1969 Program names:
1970 --program-prefix=PREFIX prepend PREFIX to installed program names
1971 --program-suffix=SUFFIX append SUFFIX to installed program names
1972 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1973
1974 System types:
1975 --build=BUILD configure for building on BUILD [guessed]
1976 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1977 --target=TARGET configure for building compilers for TARGET [HOST]
1978 _ACEOF
1979 fi
1980
1981 if test -n "$ac_init_help"; then
1982
1983 cat <<\_ACEOF
1984
1985 Optional Features:
1986 --disable-option-checking ignore unrecognized --enable/--with options
1987 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1988 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1989 --enable-maintainer-mode enable make rules and dependencies not useful
1990 (and sometimes confusing) to the casual installer
1991 --disable-dependency-tracking speeds up one-time build
1992 --enable-dependency-tracking do not reject slow dependency extractors
1993
1994 Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
2000 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2001 you have headers in a nonstandard directory <include dir>
2002 CPP C preprocessor
2003
2004 Use these variables to override the choices made by `configure' or to help
2005 it to find libraries and programs with nonstandard names/locations.
2006
2007 Report bugs to the package provider.
2008 _ACEOF
2009 ac_status=$?
2010 fi
2011
2012 if test "$ac_init_help" = "recursive"; then
2013 # If there are subdirs, report their specific --help.
2014 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2015 test -d "$ac_dir" ||
2016 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2017 continue
2018 ac_builddir=.
2019
2020 case "$ac_dir" in
2021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022 *)
2023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2024 # A ".." for each directory in $ac_dir_suffix.
2025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2026 case $ac_top_builddir_sub in
2027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2029 esac ;;
2030 esac
2031 ac_abs_top_builddir=$ac_pwd
2032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2033 # for backward compatibility:
2034 ac_top_builddir=$ac_top_build_prefix
2035
2036 case $srcdir in
2037 .) # We are building in place.
2038 ac_srcdir=.
2039 ac_top_srcdir=$ac_top_builddir_sub
2040 ac_abs_top_srcdir=$ac_pwd ;;
2041 [\\/]* | ?:[\\/]* ) # Absolute name.
2042 ac_srcdir=$srcdir$ac_dir_suffix;
2043 ac_top_srcdir=$srcdir
2044 ac_abs_top_srcdir=$srcdir ;;
2045 *) # Relative name.
2046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2047 ac_top_srcdir=$ac_top_build_prefix$srcdir
2048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2049 esac
2050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2051
2052 cd "$ac_dir" || { ac_status=$?; continue; }
2053 # Check for guested configure.
2054 if test -f "$ac_srcdir/configure.gnu"; then
2055 echo &&
2056 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2057 elif test -f "$ac_srcdir/configure"; then
2058 echo &&
2059 $SHELL "$ac_srcdir/configure" --help=recursive
2060 else
2061 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2062 fi || ac_status=$?
2063 cd "$ac_pwd" || { ac_status=$?; break; }
2064 done
2065 fi
2066
2067 test -n "$ac_init_help" && exit $ac_status
2068 if $ac_init_version; then
2069 cat <<\_ACEOF
2070 configure
2071 generated by GNU Autoconf 2.64
2072
2073 Copyright (C) 2009 Free Software Foundation, Inc.
2074 This configure script is free software; the Free Software Foundation
2075 gives unlimited permission to copy, distribute and modify it.
2076 _ACEOF
2077 exit
2078 fi
2079
2080 ## ------------------------ ##
2081 ## Autoconf initialization. ##
2082 ## ------------------------ ##
2083
2084 # ac_fn_c_try_compile LINENO
2085 # --------------------------
2086 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_c_try_compile ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 rm -f conftest.$ac_objext
2091 if { { ac_try="$ac_compile"
2092 case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_compile") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2104 fi
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } && {
2107 test -z "$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 } && test -s conftest.$ac_objext; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116 fi
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 return $ac_retval
2119
2120 } # ac_fn_c_try_compile
2121
2122 # ac_fn_c_try_cpp LINENO
2123 # ----------------------
2124 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_c_try_cpp ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_cpp conftest.$ac_ext"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } >/dev/null && {
2144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 }; then :
2147 ac_retval=0
2148 else
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153 fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 return $ac_retval
2156
2157 } # ac_fn_c_try_cpp
2158
2159 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160 # -------------------------------------------------------
2161 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162 # the include files in INCLUDES and setting the cache variable VAR
2163 # accordingly.
2164 ac_fn_c_check_header_mongrel ()
2165 {
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2171 $as_echo_n "(cached) " >&6
2172 fi
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 else
2177 # Is the header compilable?
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179 $as_echo_n "checking $2 usability... " >&6; }
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $4
2183 #include <$2>
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_header_compiler=yes
2187 else
2188 ac_header_compiler=no
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192 $as_echo "$ac_header_compiler" >&6; }
2193
2194 # Is the header present?
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196 $as_echo_n "checking $2 presence... " >&6; }
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 #include <$2>
2200 _ACEOF
2201 if ac_fn_c_try_cpp "$LINENO"; then :
2202 ac_header_preproc=yes
2203 else
2204 ac_header_preproc=no
2205 fi
2206 rm -f conftest.err conftest.$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208 $as_echo "$ac_header_preproc" >&6; }
2209
2210 # So? What about this header?
2211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2212 yes:no: )
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217 ;;
2218 no:yes:* )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2222 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2226 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229 ;;
2230 esac
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=\$ac_header_compiler"
2237 fi
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 fi
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244 } # ac_fn_c_check_header_mongrel
2245
2246 # ac_fn_c_try_run LINENO
2247 # ----------------------
2248 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249 # that executables *can* be run.
2250 ac_fn_c_try_run ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2261 ac_status=$?
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2274 ac_retval=0
2275 else
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=$ac_status
2281 fi
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 return $ac_retval
2285
2286 } # ac_fn_c_try_run
2287
2288 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289 # -------------------------------------------------------
2290 # Tests whether HEADER exists and can be compiled using the include files in
2291 # INCLUDES, setting the cache variable VAR accordingly.
2292 ac_fn_c_check_header_compile ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $4
2303 #include <$2>
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316
2317 } # ac_fn_c_check_header_compile
2318
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_c_try_link ()
2323 {
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2327 case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 $as_test_x conftest$ac_exeext
2347 }; then :
2348 ac_retval=0
2349 else
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 ac_retval=1
2354 fi
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 return $ac_retval
2362
2363 } # ac_fn_c_try_link
2364
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func ()
2369 {
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2381
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2386
2387 #ifdef __STDC__
2388 # include <limits.h>
2389 #else
2390 # include <assert.h>
2391 #endif
2392
2393 #undef $2
2394
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2398 #ifdef __cplusplus
2399 extern "C"
2400 #endif
2401 char $2 ();
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2406 choke me
2407 #endif
2408
2409 int
2410 main ()
2411 {
2412 return $2 ();
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_link "$LINENO"; then :
2418 eval "$3=yes"
2419 else
2420 eval "$3=no"
2421 fi
2422 rm -f core conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 fi
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429
2430 } # ac_fn_c_check_func
2431
2432 # ac_fn_c_check_decl LINENO SYMBOL VAR
2433 # ------------------------------------
2434 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2435 ac_fn_c_check_decl ()
2436 {
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2439 $as_echo_n "checking whether $2 is declared... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $4
2446 int
2447 main ()
2448 {
2449 #ifndef $2
2450 (void) $2;
2451 #endif
2452
2453 ;
2454 return 0;
2455 }
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 eval "$3=yes"
2459 else
2460 eval "$3=no"
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2468
2469 } # ac_fn_c_check_decl
2470
2471 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2472 # --------------------------------------------
2473 # Tries to find the compile-time value of EXPR in a program that includes
2474 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2475 # computed
2476 ac_fn_c_compute_int ()
2477 {
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if test "$cross_compiling" = yes; then
2480 # Depending upon the size, compute the lo and hi bounds.
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 $4
2484 int
2485 main ()
2486 {
2487 static int test_array [1 - 2 * !(($2) >= 0)];
2488 test_array [0] = 0
2489
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 if ac_fn_c_try_compile "$LINENO"; then :
2495 ac_lo=0 ac_mid=0
2496 while :; do
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2499 $4
2500 int
2501 main ()
2502 {
2503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2504 test_array [0] = 0
2505
2506 ;
2507 return 0;
2508 }
2509 _ACEOF
2510 if ac_fn_c_try_compile "$LINENO"; then :
2511 ac_hi=$ac_mid; break
2512 else
2513 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2514 if test $ac_lo -le $ac_mid; then
2515 ac_lo= ac_hi=
2516 break
2517 fi
2518 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2519 fi
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 done
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 $4
2526 int
2527 main ()
2528 {
2529 static int test_array [1 - 2 * !(($2) < 0)];
2530 test_array [0] = 0
2531
2532 ;
2533 return 0;
2534 }
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_hi=-1 ac_mid=-1
2538 while :; do
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2541 $4
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2546 test_array [0] = 0
2547
2548 ;
2549 return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_lo=$ac_mid; break
2554 else
2555 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2556 if test $ac_mid -le $ac_hi; then
2557 ac_lo= ac_hi=
2558 break
2559 fi
2560 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 done
2564 else
2565 ac_lo= ac_hi=
2566 fi
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 # Binary search between lo and hi bounds.
2571 while test "x$ac_lo" != "x$ac_hi"; do
2572 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 $4
2576 int
2577 main ()
2578 {
2579 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2580 test_array [0] = 0
2581
2582 ;
2583 return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_hi=$ac_mid
2588 else
2589 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 done
2593 case $ac_lo in #((
2594 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2595 '') ac_retval=1 ;;
2596 esac
2597 else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 $4
2601 static long int longval () { return $2; }
2602 static unsigned long int ulongval () { return $2; }
2603 #include <stdio.h>
2604 #include <stdlib.h>
2605 int
2606 main ()
2607 {
2608
2609 FILE *f = fopen ("conftest.val", "w");
2610 if (! f)
2611 return 1;
2612 if (($2) < 0)
2613 {
2614 long int i = longval ();
2615 if (i != ($2))
2616 return 1;
2617 fprintf (f, "%ld", i);
2618 }
2619 else
2620 {
2621 unsigned long int i = ulongval ();
2622 if (i != ($2))
2623 return 1;
2624 fprintf (f, "%lu", i);
2625 }
2626 /* Do not output a trailing newline, as this causes \r\n confusion
2627 on some platforms. */
2628 return ferror (f) || fclose (f) != 0;
2629
2630 ;
2631 return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_c_try_run "$LINENO"; then :
2635 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2636 else
2637 ac_retval=1
2638 fi
2639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2640 conftest.$ac_objext conftest.beam conftest.$ac_ext
2641 rm -f conftest.val
2642
2643 fi
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 return $ac_retval
2646
2647 } # ac_fn_c_compute_int
2648
2649 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2650 # -------------------------------------------
2651 # Tests whether TYPE exists after having included INCLUDES, setting cache
2652 # variable VAR accordingly.
2653 ac_fn_c_check_type ()
2654 {
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657 $as_echo_n "checking for $2... " >&6; }
2658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 eval "$3=no"
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2664 $4
2665 int
2666 main ()
2667 {
2668 if (sizeof ($2))
2669 return 0;
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_c_try_compile "$LINENO"; then :
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2677 $4
2678 int
2679 main ()
2680 {
2681 if (sizeof (($2)))
2682 return 0;
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_compile "$LINENO"; then :
2688
2689 else
2690 eval "$3=yes"
2691 fi
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696 eval ac_res=\$$3
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2698 $as_echo "$ac_res" >&6; }
2699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2700
2701 } # ac_fn_c_check_type
2702 cat >config.log <<_ACEOF
2703 This file contains any messages produced by compilers while
2704 running configure, to aid debugging if configure makes a mistake.
2705
2706 It was created by $as_me, which was
2707 generated by GNU Autoconf 2.64. Invocation command line was
2708
2709 $ $0 $@
2710
2711 _ACEOF
2712 exec 5>>config.log
2713 {
2714 cat <<_ASUNAME
2715 ## --------- ##
2716 ## Platform. ##
2717 ## --------- ##
2718
2719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2724
2725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2727
2728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2735
2736 _ASUNAME
2737
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 $as_echo "PATH: $as_dir"
2744 done
2745 IFS=$as_save_IFS
2746
2747 } >&5
2748
2749 cat >&5 <<_ACEOF
2750
2751
2752 ## ----------- ##
2753 ## Core tests. ##
2754 ## ----------- ##
2755
2756 _ACEOF
2757
2758
2759 # Keep a trace of the command line.
2760 # Strip out --no-create and --no-recursion so they do not pile up.
2761 # Strip out --silent because we don't want to record it for future runs.
2762 # Also quote any args containing shell meta-characters.
2763 # Make two passes to allow for proper duplicate-argument suppression.
2764 ac_configure_args=
2765 ac_configure_args0=
2766 ac_configure_args1=
2767 ac_must_keep_next=false
2768 for ac_pass in 1 2
2769 do
2770 for ac_arg
2771 do
2772 case $ac_arg in
2773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2775 | -silent | --silent | --silen | --sile | --sil)
2776 continue ;;
2777 *\'*)
2778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2779 esac
2780 case $ac_pass in
2781 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2782 2)
2783 as_fn_append ac_configure_args1 " '$ac_arg'"
2784 if test $ac_must_keep_next = true; then
2785 ac_must_keep_next=false # Got value, back to normal.
2786 else
2787 case $ac_arg in
2788 *=* | --config-cache | -C | -disable-* | --disable-* \
2789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2791 | -with-* | --with-* | -without-* | --without-* | --x)
2792 case "$ac_configure_args0 " in
2793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2794 esac
2795 ;;
2796 -* ) ac_must_keep_next=true ;;
2797 esac
2798 fi
2799 as_fn_append ac_configure_args " '$ac_arg'"
2800 ;;
2801 esac
2802 done
2803 done
2804 { ac_configure_args0=; unset ac_configure_args0;}
2805 { ac_configure_args1=; unset ac_configure_args1;}
2806
2807 # When interrupted or exit'd, cleanup temporary files, and complete
2808 # config.log. We remove comments because anyway the quotes in there
2809 # would cause problems or look ugly.
2810 # WARNING: Use '\'' to represent an apostrophe within the trap.
2811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2812 trap 'exit_status=$?
2813 # Save into config.log some information that might help in debugging.
2814 {
2815 echo
2816
2817 cat <<\_ASBOX
2818 ## ---------------- ##
2819 ## Cache variables. ##
2820 ## ---------------- ##
2821 _ASBOX
2822 echo
2823 # The following way of writing the cache mishandles newlines in values,
2824 (
2825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2826 eval ac_val=\$$ac_var
2827 case $ac_val in #(
2828 *${as_nl}*)
2829 case $ac_var in #(
2830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2832 esac
2833 case $ac_var in #(
2834 _ | IFS | as_nl) ;; #(
2835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2836 *) { eval $ac_var=; unset $ac_var;} ;;
2837 esac ;;
2838 esac
2839 done
2840 (set) 2>&1 |
2841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2842 *${as_nl}ac_space=\ *)
2843 sed -n \
2844 "s/'\''/'\''\\\\'\'''\''/g;
2845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2846 ;; #(
2847 *)
2848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2849 ;;
2850 esac |
2851 sort
2852 )
2853 echo
2854
2855 cat <<\_ASBOX
2856 ## ----------------- ##
2857 ## Output variables. ##
2858 ## ----------------- ##
2859 _ASBOX
2860 echo
2861 for ac_var in $ac_subst_vars
2862 do
2863 eval ac_val=\$$ac_var
2864 case $ac_val in
2865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2866 esac
2867 $as_echo "$ac_var='\''$ac_val'\''"
2868 done | sort
2869 echo
2870
2871 if test -n "$ac_subst_files"; then
2872 cat <<\_ASBOX
2873 ## ------------------- ##
2874 ## File substitutions. ##
2875 ## ------------------- ##
2876 _ASBOX
2877 echo
2878 for ac_var in $ac_subst_files
2879 do
2880 eval ac_val=\$$ac_var
2881 case $ac_val in
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883 esac
2884 $as_echo "$ac_var='\''$ac_val'\''"
2885 done | sort
2886 echo
2887 fi
2888
2889 if test -s confdefs.h; then
2890 cat <<\_ASBOX
2891 ## ----------- ##
2892 ## confdefs.h. ##
2893 ## ----------- ##
2894 _ASBOX
2895 echo
2896 cat confdefs.h
2897 echo
2898 fi
2899 test "$ac_signal" != 0 &&
2900 $as_echo "$as_me: caught signal $ac_signal"
2901 $as_echo "$as_me: exit $exit_status"
2902 } >&5
2903 rm -f core *.core core.conftest.* &&
2904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2905 exit $exit_status
2906 ' 0
2907 for ac_signal in 1 2 13 15; do
2908 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2909 done
2910 ac_signal=0
2911
2912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2913 rm -f -r conftest* confdefs.h
2914
2915 $as_echo "/* confdefs.h */" > confdefs.h
2916
2917 # Predefined preprocessor variables.
2918
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE_NAME "$PACKAGE_NAME"
2921 _ACEOF
2922
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2925 _ACEOF
2926
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2929 _ACEOF
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_STRING "$PACKAGE_STRING"
2933 _ACEOF
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2937 _ACEOF
2938
2939 cat >>confdefs.h <<_ACEOF
2940 #define PACKAGE_URL "$PACKAGE_URL"
2941 _ACEOF
2942
2943
2944 # Let the site file select an alternate cache file if it wants to.
2945 # Prefer an explicitly selected file to automatically selected ones.
2946 ac_site_file1=NONE
2947 ac_site_file2=NONE
2948 if test -n "$CONFIG_SITE"; then
2949 ac_site_file1=$CONFIG_SITE
2950 elif test "x$prefix" != xNONE; then
2951 ac_site_file1=$prefix/share/config.site
2952 ac_site_file2=$prefix/etc/config.site
2953 else
2954 ac_site_file1=$ac_default_prefix/share/config.site
2955 ac_site_file2=$ac_default_prefix/etc/config.site
2956 fi
2957 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2958 do
2959 test "x$ac_site_file" = xNONE && continue
2960 if test -r "$ac_site_file"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2962 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2963 sed 's/^/| /' "$ac_site_file" >&5
2964 . "$ac_site_file"
2965 fi
2966 done
2967
2968 if test -r "$cache_file"; then
2969 # Some versions of bash will fail to source /dev/null (special
2970 # files actually), so we avoid doing that.
2971 if test -f "$cache_file"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2973 $as_echo "$as_me: loading cache $cache_file" >&6;}
2974 case $cache_file in
2975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2976 *) . "./$cache_file";;
2977 esac
2978 fi
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2981 $as_echo "$as_me: creating cache $cache_file" >&6;}
2982 >$cache_file
2983 fi
2984
2985 as_fn_append ac_func_list " btowc"
2986 as_fn_append ac_func_list " isblank"
2987 as_fn_append ac_func_list " iswctype"
2988 as_fn_append ac_func_list " mbsrtowcs"
2989 as_fn_append ac_func_list " mempcpy"
2990 as_fn_append ac_func_list " wmemchr"
2991 as_fn_append ac_func_list " wmemcpy"
2992 as_fn_append ac_func_list " wmempcpy"
2993 as_fn_append ac_header_list " wctype.h"
2994 gl_fnmatch_required=GNU
2995 as_fn_append ac_func_list " alarm"
2996 as_fn_append ac_header_list " wchar.h"
2997 as_fn_append ac_header_list " stdint.h"
2998 as_fn_append ac_header_list " inttypes.h"
2999 as_fn_append ac_header_list " unistd.h"
3000 as_fn_append ac_func_list " symlink"
3001 as_fn_append ac_header_list " math.h"
3002 as_fn_append ac_func_list " mbsinit"
3003 as_fn_append ac_func_list " mbrtowc"
3004 as_fn_append ac_header_list " sys/mman.h"
3005 as_fn_append ac_func_list " mprotect"
3006 as_fn_append ac_header_list " sys/param.h"
3007 as_fn_append ac_header_list " features.h"
3008 as_fn_append ac_func_list " iswcntrl"
3009 # Check that the precious variables saved in the cache have kept the same
3010 # value.
3011 ac_cache_corrupted=false
3012 for ac_var in $ac_precious_vars; do
3013 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3014 eval ac_new_set=\$ac_env_${ac_var}_set
3015 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3016 eval ac_new_val=\$ac_env_${ac_var}_value
3017 case $ac_old_set,$ac_new_set in
3018 set,)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3020 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3021 ac_cache_corrupted=: ;;
3022 ,set)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3024 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3025 ac_cache_corrupted=: ;;
3026 ,);;
3027 *)
3028 if test "x$ac_old_val" != "x$ac_new_val"; then
3029 # differences in whitespace do not lead to failure.
3030 ac_old_val_w=`echo x $ac_old_val`
3031 ac_new_val_w=`echo x $ac_new_val`
3032 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3034 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3035 ac_cache_corrupted=:
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3038 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3039 eval $ac_var=\$ac_old_val
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3042 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3044 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3045 fi;;
3046 esac
3047 # Pass precious variables to config.status.
3048 if test "$ac_new_set" = set; then
3049 case $ac_new_val in
3050 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3051 *) ac_arg=$ac_var=$ac_new_val ;;
3052 esac
3053 case " $ac_configure_args " in
3054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3055 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3056 esac
3057 fi
3058 done
3059 if $ac_cache_corrupted; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3063 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3064 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3065 fi
3066 ## -------------------- ##
3067 ## Main body of script. ##
3068 ## -------------------- ##
3069
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
3076
3077 ac_config_headers="$ac_config_headers config.h:config.in"
3078
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3082 # Check whether --enable-maintainer-mode was given.
3083 if test "${enable_maintainer_mode+set}" = set; then :
3084 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3085 else
3086 USE_MAINTAINER_MODE=no
3087 fi
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3090 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3091 if test $USE_MAINTAINER_MODE = yes; then
3092 MAINTAINER_MODE_TRUE=
3093 MAINTAINER_MODE_FALSE='#'
3094 else
3095 MAINTAINER_MODE_TRUE='#'
3096 MAINTAINER_MODE_FALSE=
3097 fi
3098
3099 MAINT=$MAINTAINER_MODE_TRUE
3100
3101
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$ac_cv_prog_CC"; then
3148 ac_ct_CC=$CC
3149 # Extract the first word of "gcc", so it can be a program name with args.
3150 set dummy gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_ac_ct_CC="gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179 $as_echo "$ac_ct_CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 CC=$ac_ct_CC
3195 fi
3196 else
3197 CC="$ac_cv_prog_CC"
3198 fi
3199
3200 if test -z "$CC"; then
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}cc; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_CC+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_CC="${ac_tool_prefix}cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 CC=$ac_cv_prog_CC
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 fi
3240 fi
3241 if test -z "$CC"; then
3242 # Extract the first word of "cc", so it can be a program name with args.
3243 set dummy cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 ac_prog_rejected=no
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261 ac_prog_rejected=yes
3262 continue
3263 fi
3264 ac_cv_prog_CC="cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 if test $ac_prog_rejected = yes; then
3273 # We found a bogon in the path, so make sure we never use it.
3274 set dummy $ac_cv_prog_CC
3275 shift
3276 if test $# != 0; then
3277 # We chose a different compiler from the bogus one.
3278 # However, it has the same basename, so the bogon will be chosen
3279 # first if we set CC to just the basename; use the full file name.
3280 shift
3281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282 fi
3283 fi
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$CC"; then
3298 if test -n "$ac_tool_prefix"; then
3299 for ac_prog in cl.exe
3300 do
3301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 test -n "$CC" && break
3339 done
3340 fi
3341 if test -z "$CC"; then
3342 ac_ct_CC=$CC
3343 for ac_prog in cl.exe
3344 do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$ac_ct_CC"; then
3353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_ac_ct_CC="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 $as_echo "$ac_ct_CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 test -n "$ac_ct_CC" && break
3383 done
3384
3385 if test "x$ac_ct_CC" = x; then
3386 CC=""
3387 else
3388 case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394 CC=$ac_ct_CC
3395 fi
3396 fi
3397
3398 fi
3399
3400
3401 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error "no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details." "$LINENO" 5; }
3405
3406 # Provide some information about the compiler.
3407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3408 set X $ac_compile
3409 ac_compiler=$2
3410 for ac_option in --version -v -V -qversion; do
3411 { { ac_try="$ac_compiler $ac_option >&5"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3419 ac_status=$?
3420 if test -s conftest.err; then
3421 sed '10a\
3422 ... rest of stderr output deleted ...
3423 10q' conftest.err >conftest.er1
3424 cat conftest.er1 >&5
3425 rm -f conftest.er1 conftest.err
3426 fi
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 done
3430
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <stdio.h>
3434 int
3435 main ()
3436 {
3437 FILE *f = fopen ("conftest.out", "w");
3438 return ferror (f) || fclose (f) != 0;
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 ac_clean_files_save=$ac_clean_files
3445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3446 # Try to create an executable without -o first, disregard a.out.
3447 # It will help us diagnose broken compilers, and finding out an intuition
3448 # of exeext.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3450 $as_echo_n "checking for C compiler default output file name... " >&6; }
3451 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
3453 # The possible output files:
3454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3455
3456 ac_rmfiles=
3457 for ac_file in $ac_files
3458 do
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3462 esac
3463 done
3464 rm -f $ac_rmfiles
3465
3466 if { { ac_try="$ac_link_default"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link_default") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3480 # so that the user can short-circuit this test for compilers unknown to
3481 # Autoconf.
3482 for ac_file in $ac_files ''
3483 do
3484 test -f "$ac_file" || continue
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3487 ;;
3488 [ab].out )
3489 # We found the default executable, but exeext='' is most
3490 # certainly right.
3491 break;;
3492 *.* )
3493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3494 then :; else
3495 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 fi
3497 # We set ac_cv_exeext here because the later test for it is not
3498 # safe: cross compilers may not add the suffix if given an `-o'
3499 # argument, so we may need to know it at that point already.
3500 # Even if this section looks crufty: it has the advantage of
3501 # actually working.
3502 break;;
3503 * )
3504 break;;
3505 esac
3506 done
3507 test "$ac_cv_exeext" = no && ac_cv_exeext=
3508
3509 else
3510 ac_file=''
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3513 $as_echo "$ac_file" >&6; }
3514 if test -z "$ac_file"; then :
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 { as_fn_set_status 77
3521 as_fn_error "C compiler cannot create executables
3522 See \`config.log' for more details." "$LINENO" 5; }; }
3523 fi
3524 ac_exeext=$ac_cv_exeext
3525
3526 # Check that the compiler produces executables we can run. If not, either
3527 # the compiler is broken, or we cross compile.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529 $as_echo_n "checking whether the C compiler works... " >&6; }
3530 # If not cross compiling, check that we can run a simple program.
3531 if test "$cross_compiling" != yes; then
3532 if { ac_try='./$ac_file'
3533 { { case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_try") 2>&5
3540 ac_status=$?
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; }; then
3543 cross_compiling=no
3544 else
3545 if test "$cross_compiling" = maybe; then
3546 cross_compiling=yes
3547 else
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "cannot run C compiled programs.
3551 If you meant to cross compile, use \`--host'.
3552 See \`config.log' for more details." "$LINENO" 5; }
3553 fi
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3558
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3560 ac_clean_files=$ac_clean_files_save
3561 # Check that the compiler produces executables we can run. If not, either
3562 # the compiler is broken, or we cross compile.
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3564 $as_echo_n "checking whether we are cross compiling... " >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566 $as_echo "$cross_compiling" >&6; }
3567
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569 $as_echo_n "checking for suffix of executables... " >&6; }
3570 if { { ac_try="$ac_link"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3583 # work properly (i.e., refer to `conftest.exe'), while it won't with
3584 # `rm'.
3585 for ac_file in conftest.exe conftest conftest.*; do
3586 test -f "$ac_file" || continue
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590 break;;
3591 * ) break;;
3592 esac
3593 done
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error "cannot compute suffix of executables: cannot compile and link
3598 See \`config.log' for more details." "$LINENO" 5; }
3599 fi
3600 rm -f conftest$ac_cv_exeext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602 $as_echo "$ac_cv_exeext" >&6; }
3603
3604 rm -f conftest.$ac_ext
3605 EXEEXT=$ac_cv_exeext
3606 ac_exeext=$EXEEXT
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608 $as_echo_n "checking for suffix of object files... " >&6; }
3609 if test "${ac_cv_objext+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 rm -f conftest.o conftest.obj
3624 if { { ac_try="$ac_compile"
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_compile") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 for ac_file in conftest.o conftest.obj conftest.*; do
3636 test -f "$ac_file" || continue;
3637 case $ac_file in
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 break;;
3641 esac
3642 done
3643 else
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error "cannot compute suffix of object files: cannot compile
3650 See \`config.log' for more details." "$LINENO" 5; }
3651 fi
3652 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655 $as_echo "$ac_cv_objext" >&6; }
3656 OBJEXT=$ac_cv_objext
3657 ac_objext=$OBJEXT
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669 #ifndef __GNUC__
3670 choke me
3671 #endif
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_compiler_gnu=yes
3679 else
3680 ac_compiler_gnu=no
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690 else
3691 GCC=
3692 fi
3693 ac_test_CFLAGS=${CFLAGS+set}
3694 ac_save_CFLAGS=$CFLAGS
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3697 if test "${ac_cv_prog_cc_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_cv_prog_cc_g=yes
3717 else
3718 CFLAGS=""
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731
3732 else
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3734 CFLAGS="-g"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main ()
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_g=yes
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757 $as_echo "$ac_cv_prog_cc_g" >&6; }
3758 if test "$ac_test_CFLAGS" = set; then
3759 CFLAGS=$ac_save_CFLAGS
3760 elif test $ac_cv_prog_cc_g = yes; then
3761 if test "$GCC" = yes; then
3762 CFLAGS="-g -O2"
3763 else
3764 CFLAGS="-g"
3765 fi
3766 else
3767 if test "$GCC" = yes; then
3768 CFLAGS="-O2"
3769 else
3770 CFLAGS=
3771 fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 ac_cv_prog_cc_c89=no
3779 ac_save_CC=$CC
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 #include <stdarg.h>
3783 #include <stdio.h>
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790 char **p;
3791 int i;
3792 {
3793 return p[i];
3794 }
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3796 {
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3803 }
3804
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3825 int
3826 main ()
3827 {
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835 do
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3842 done
3843 rm -f conftest.$ac_ext
3844 CC=$ac_save_CC
3845
3846 fi
3847 # AC_CACHE_VAL
3848 case "x$ac_cv_prog_cc_c89" in
3849 x)
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3852 xno)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3855 *)
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859 esac
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3861
3862 fi
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870 ac_aux_dir=
3871 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3872 for ac_t in install-sh install.sh shtool; do
3873 if test -f "$ac_dir/$ac_t"; then
3874 ac_aux_dir=$ac_dir
3875 ac_install_sh="$ac_aux_dir/$ac_t -c"
3876 break 2
3877 fi
3878 done
3879 done
3880 if test -z "$ac_aux_dir"; then
3881 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3882 fi
3883
3884 # These three variables are undocumented and unsupported,
3885 # and are intended to be withdrawn in a future Autoconf release.
3886 # They can cause serious problems if a builder's source tree is in a directory
3887 # whose full name contains unusual characters.
3888 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3889 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3890 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3891
3892
3893 # Make sure we can run config.sub.
3894 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3895 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3898 $as_echo_n "checking build system type... " >&6; }
3899 if test "${ac_cv_build+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_build_alias=$build_alias
3903 test "x$ac_build_alias" = x &&
3904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3905 test "x$ac_build_alias" = x &&
3906 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3908 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3912 $as_echo "$ac_cv_build" >&6; }
3913 case $ac_cv_build in
3914 *-*-*) ;;
3915 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3916 esac
3917 build=$ac_cv_build
3918 ac_save_IFS=$IFS; IFS='-'
3919 set x $ac_cv_build
3920 shift
3921 build_cpu=$1
3922 build_vendor=$2
3923 shift; shift
3924 # Remember, the first character of IFS is used to create $*,
3925 # except with old shells:
3926 build_os=$*
3927 IFS=$ac_save_IFS
3928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3932 $as_echo_n "checking host system type... " >&6; }
3933 if test "${ac_cv_host+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test "x$host_alias" = x; then
3937 ac_cv_host=$ac_cv_build
3938 else
3939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3940 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3945 $as_echo "$ac_cv_host" >&6; }
3946 case $ac_cv_host in
3947 *-*-*) ;;
3948 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3949 esac
3950 host=$ac_cv_host
3951 ac_save_IFS=$IFS; IFS='-'
3952 set x $ac_cv_host
3953 shift
3954 host_cpu=$1
3955 host_vendor=$2
3956 shift; shift
3957 # Remember, the first character of IFS is used to create $*,
3958 # except with old shells:
3959 host_os=$*
3960 IFS=$ac_save_IFS
3961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3962
3963
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3972 # On Suns, sometimes $CPP names a directory.
3973 if test -n "$CPP" && test -d "$CPP"; then
3974 CPP=
3975 fi
3976 if test -z "$CPP"; then
3977 if test "${ac_cv_prog_CPP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 # Double quotes because CPP needs to be expanded
3981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982 do
3983 ac_preproc_ok=false
3984 for ac_c_preproc_warn_flag in '' yes
3985 do
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #ifdef __STDC__
3995 # include <limits.h>
3996 #else
3997 # include <assert.h>
3998 #endif
3999 Syntax error
4000 _ACEOF
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4002
4003 else
4004 # Broken: fails on valid input.
4005 continue
4006 fi
4007 rm -f conftest.err conftest.$ac_ext
4008
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <ac_nonexistent.h>
4014 _ACEOF
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4017 continue
4018 else
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then :
4029 break
4030 fi
4031
4032 done
4033 ac_cv_prog_CPP=$CPP
4034
4035 fi
4036 CPP=$ac_cv_prog_CPP
4037 else
4038 ac_cv_prog_CPP=$CPP
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041 $as_echo "$CPP" >&6; }
4042 ac_preproc_ok=false
4043 for ac_c_preproc_warn_flag in '' yes
4044 do
4045 # Use a header file that comes with gcc, so configuring glibc
4046 # with a fresh cross-compiler works.
4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 # <limits.h> exists even on freestanding compilers.
4049 # On the NeXT, cc -E runs the code through the compiler's parser,
4050 # not just through cpp. "Syntax error" is here to catch this case.
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 #ifdef __STDC__
4054 # include <limits.h>
4055 #else
4056 # include <assert.h>
4057 #endif
4058 Syntax error
4059 _ACEOF
4060 if ac_fn_c_try_cpp "$LINENO"; then :
4061
4062 else
4063 # Broken: fails on valid input.
4064 continue
4065 fi
4066 rm -f conftest.err conftest.$ac_ext
4067
4068 # OK, works on sane cases. Now check whether nonexistent headers
4069 # can be detected and how.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <ac_nonexistent.h>
4073 _ACEOF
4074 if ac_fn_c_try_cpp "$LINENO"; then :
4075 # Broken: success on invalid input.
4076 continue
4077 else
4078 # Passes both tests.
4079 ac_preproc_ok=:
4080 break
4081 fi
4082 rm -f conftest.err conftest.$ac_ext
4083
4084 done
4085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086 rm -f conftest.err conftest.$ac_ext
4087 if $ac_preproc_ok; then :
4088
4089 else
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4093 See \`config.log' for more details." "$LINENO" 5; }
4094 fi
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4105 if test "${ac_cv_path_GREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -z "$GREP"; then
4109 ac_path_GREP_found=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in grep ggrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4120 # Check for GNU ac_path_GREP and select it if it is found.
4121 # Check for GNU $ac_path_GREP
4122 case `"$ac_path_GREP" --version 2>&1` in
4123 *GNU*)
4124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4125 *)
4126 ac_count=0
4127 $as_echo_n 0123456789 >"conftest.in"
4128 while :
4129 do
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 $as_echo 'GREP' >> "conftest.nl"
4134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 as_fn_arith $ac_count + 1 && ac_count=$as_val
4137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_GREP="$ac_path_GREP"
4140 ac_path_GREP_max=$ac_count
4141 fi
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 esac
4147
4148 $ac_path_GREP_found && break 3
4149 done
4150 done
4151 done
4152 IFS=$as_save_IFS
4153 if test -z "$ac_cv_path_GREP"; then
4154 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 fi
4156 else
4157 ac_cv_path_GREP=$GREP
4158 fi
4159
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4162 $as_echo "$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4167 $as_echo_n "checking for egrep... " >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4173 else
4174 if test -z "$EGREP"; then
4175 ac_path_EGREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in egrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4186 # Check for GNU ac_path_EGREP and select it if it is found.
4187 # Check for GNU $ac_path_EGREP
4188 case `"$ac_path_EGREP" --version 2>&1` in
4189 *GNU*)
4190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4191 *)
4192 ac_count=0
4193 $as_echo_n 0123456789 >"conftest.in"
4194 while :
4195 do
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'EGREP' >> "conftest.nl"
4200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 as_fn_arith $ac_count + 1 && ac_count=$as_val
4203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_EGREP="$ac_path_EGREP"
4206 ac_path_EGREP_max=$ac_count
4207 fi
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4210 done
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212 esac
4213
4214 $ac_path_EGREP_found && break 3
4215 done
4216 done
4217 done
4218 IFS=$as_save_IFS
4219 if test -z "$ac_cv_path_EGREP"; then
4220 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221 fi
4222 else
4223 ac_cv_path_EGREP=$EGREP
4224 fi
4225
4226 fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4229 $as_echo "$ac_cv_path_EGREP" >&6; }
4230 EGREP="$ac_cv_path_EGREP"
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4234 $as_echo_n "checking for ANSI C header files... " >&6; }
4235 if test "${ac_cv_header_stdc+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <stdlib.h>
4241 #include <stdarg.h>
4242 #include <string.h>
4243 #include <float.h>
4244
4245 int
4246 main ()
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_header_stdc=yes
4255 else
4256 ac_cv_header_stdc=no
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259
4260 if test $ac_cv_header_stdc = yes; then
4261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <string.h>
4265
4266 _ACEOF
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 $EGREP "memchr" >/dev/null 2>&1; then :
4269
4270 else
4271 ac_cv_header_stdc=no
4272 fi
4273 rm -f conftest*
4274
4275 fi
4276
4277 if test $ac_cv_header_stdc = yes; then
4278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <stdlib.h>
4282
4283 _ACEOF
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 $EGREP "free" >/dev/null 2>&1; then :
4286
4287 else
4288 ac_cv_header_stdc=no
4289 fi
4290 rm -f conftest*
4291
4292 fi
4293
4294 if test $ac_cv_header_stdc = yes; then
4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296 if test "$cross_compiling" = yes; then :
4297 :
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ctype.h>
4302 #include <stdlib.h>
4303 #if ((' ' & 0x0FF) == 0x020)
4304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306 #else
4307 # define ISLOWER(c) \
4308 (('a' <= (c) && (c) <= 'i') \
4309 || ('j' <= (c) && (c) <= 'r') \
4310 || ('s' <= (c) && (c) <= 'z'))
4311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #endif
4313
4314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315 int
4316 main ()
4317 {
4318 int i;
4319 for (i = 0; i < 256; i++)
4320 if (XOR (islower (i), ISLOWER (i))
4321 || toupper (i) != TOUPPER (i))
4322 return 2;
4323 return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_c_try_run "$LINENO"; then :
4327
4328 else
4329 ac_cv_header_stdc=no
4330 fi
4331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4332 conftest.$ac_objext conftest.beam conftest.$ac_ext
4333 fi
4334
4335 fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4338 $as_echo "$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4340
4341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4342
4343 fi
4344
4345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4347 inttypes.h stdint.h unistd.h
4348 do :
4349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4351 "
4352 eval as_val=\$$as_ac_Header
4353 if test "x$as_val" = x""yes; then :
4354 cat >>confdefs.h <<_ACEOF
4355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 _ACEOF
4357
4358 fi
4359
4360 done
4361
4362
4363
4364
4365
4366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4367 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4368 MINIX=yes
4369 else
4370 MINIX=
4371 fi
4372
4373
4374 if test "$MINIX" = yes; then
4375
4376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4377
4378
4379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4380
4381
4382 $as_echo "#define _MINIX 1" >>confdefs.h
4383
4384 fi
4385
4386 case "$host_os" in
4387 hpux*)
4388
4389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4390
4391 ;;
4392 esac
4393
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402
4403 # define __EXTENSIONS__ 1
4404 $ac_includes_default
4405 int
4406 main ()
4407 {
4408
4409 ;
4410 return 0;
4411 }
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_safe_to_define___extensions__=yes
4415 else
4416 ac_cv_safe_to_define___extensions__=no
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4422 test $ac_cv_safe_to_define___extensions__ = yes &&
4423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4424
4425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4426
4427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4428
4429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4430
4431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4432
4433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4434
4435
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4439 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4440 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446
4447 #ifdef __ACK__
4448 Amsterdam
4449 #endif
4450
4451 _ACEOF
4452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4454 gl_cv_c_amsterdam_compiler=yes
4455 else
4456 gl_cv_c_amsterdam_compiler=no
4457 fi
4458 rm -f conftest*
4459
4460
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4463 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4464 if test -z "$AR"; then
4465 if test $gl_cv_c_amsterdam_compiler = yes; then
4466 AR='cc -c.a'
4467 if test -z "$ARFLAGS"; then
4468 ARFLAGS='-o'
4469 fi
4470 else
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}ar; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_AR+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$AR"; then
4480 ac_cv_prog_AR="$AR" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_AR="${ac_tool_prefix}ar"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 AR=$ac_cv_prog_AR
4500 if test -n "$AR"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4502 $as_echo "$AR" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4506 fi
4507
4508
4509 fi
4510 if test -z "$ac_cv_prog_AR"; then
4511 ac_ct_AR=$AR
4512 # Extract the first word of "ar", so it can be a program name with args.
4513 set dummy ar; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$ac_ct_AR"; then
4520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_AR="ar"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 fi
4538 fi
4539 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4540 if test -n "$ac_ct_AR"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4542 $as_echo "$ac_ct_AR" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 fi
4547
4548 if test "x$ac_ct_AR" = x; then
4549 AR="ar"
4550 else
4551 case $cross_compiling:$ac_tool_warned in
4552 yes:)
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555 ac_tool_warned=yes ;;
4556 esac
4557 AR=$ac_ct_AR
4558 fi
4559 else
4560 AR="$ac_cv_prog_AR"
4561 fi
4562
4563 if test -z "$ARFLAGS"; then
4564 ARFLAGS='cru'
4565 fi
4566 fi
4567 else
4568 if test -z "$ARFLAGS"; then
4569 ARFLAGS='cru'
4570 fi
4571 fi
4572
4573
4574 if test -z "$RANLIB"; then
4575 if test $gl_cv_c_amsterdam_compiler = yes; then
4576 RANLIB=':'
4577 else
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$RANLIB"; then
4587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600 done
4601 done
4602 IFS=$as_save_IFS
4603
4604 fi
4605 fi
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4609 $as_echo "$RANLIB" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615
4616 fi
4617 if test -z "$ac_cv_prog_RANLIB"; then
4618 ac_ct_RANLIB=$RANLIB
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$ac_ct_RANLIB"; then
4627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_ac_ct_RANLIB="ranlib"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4647 if test -n "$ac_ct_RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4649 $as_echo "$ac_ct_RANLIB" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655 if test "x$ac_ct_RANLIB" = x; then
4656 RANLIB=":"
4657 else
4658 case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664 RANLIB=$ac_ct_RANLIB
4665 fi
4666 else
4667 RANLIB="$ac_cv_prog_RANLIB"
4668 fi
4669
4670 fi
4671 fi
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 # IEEE behaviour is the default on all CPUs except Alpha and SH
4684 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4685 # and the GCC 4.1.2 manual).
4686 case "$host_cpu" in
4687 alpha*)
4688 # On Alpha systems, a compiler option provides the behaviour.
4689 # See the ieee(3) manual page, also available at
4690 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4691 if test -n "$GCC"; then
4692 # GCC has the option -mieee.
4693 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4694 CPPFLAGS="$CPPFLAGS -mieee"
4695 else
4696 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4697 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4698 CPPFLAGS="$CPPFLAGS -ieee"
4699 fi
4700 ;;
4701 sh*)
4702 if test -n "$GCC"; then
4703 # GCC has the option -mieee.
4704 CPPFLAGS="$CPPFLAGS -mieee"
4705 fi
4706 ;;
4707 esac
4708
4709
4710
4711 # Code from module alloca:
4712 # Code from module alloca-opt:
4713 # Code from module configmake:
4714 # Code from module extensions:
4715
4716 # Code from module extern-inline:
4717 # Code from module float:
4718 # Code from module fnmatch:
4719 # Code from module fnmatch-gnu:
4720 # Code from module fpieee:
4721
4722 # Code from module fpucw:
4723 # Code from module frexp:
4724 # Code from module frexpl:
4725 # Code from module include_next:
4726 # Code from module inttypes:
4727 # Code from module inttypes-incomplete:
4728 # Code from module isnand-nolibm:
4729 # Code from module isnanl-nolibm:
4730 # Code from module localcharset:
4731 # Code from module math:
4732 # Code from module mbrtowc:
4733 # Code from module mbsinit:
4734 # Code from module mbsrtowcs:
4735 # Code from module memchr:
4736 # Code from module memmem:
4737 # Code from module memmem-simple:
4738 # Code from module multiarch:
4739 # Code from module pathmax:
4740 # Code from module snippet/arg-nonnull:
4741 # Code from module snippet/c++defs:
4742 # Code from module snippet/warn-on-use:
4743 # Code from module ssize_t:
4744 # Code from module stdbool:
4745 # Code from module stddef:
4746 # Code from module stdint:
4747 # Code from module streq:
4748 # Code from module string:
4749 # Code from module strnlen1:
4750 # Code from module sys_types:
4751 # Code from module unistd:
4752 # Code from module update-copyright:
4753 # Code from module verify:
4754 # Code from module wchar:
4755 # Code from module wctype-h:
4756
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 CC=$ac_cv_prog_CC
4791 if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793 $as_echo "$CC" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 fi
4801 if test -z "$ac_cv_prog_CC"; then
4802 ac_ct_CC=$CC
4803 # Extract the first word of "gcc", so it can be a program name with args.
4804 set dummy gcc; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_CC"; then
4811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_CC="gcc"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4831 if test -n "$ac_ct_CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4833 $as_echo "$ac_ct_CC" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839 if test "x$ac_ct_CC" = x; then
4840 CC=""
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 CC=$ac_ct_CC
4849 fi
4850 else
4851 CC="$ac_cv_prog_CC"
4852 fi
4853
4854 if test -z "$CC"; then
4855 if test -n "$ac_tool_prefix"; then
4856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4857 set dummy ${ac_tool_prefix}cc; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC="$CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_CC="${ac_tool_prefix}cc"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 CC=$ac_cv_prog_CC
4884 if test -n "$CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4886 $as_echo "$CC" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 fi
4894 fi
4895 if test -z "$CC"; then
4896 # Extract the first word of "cc", so it can be a program name with args.
4897 set dummy cc; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$CC"; then
4904 ac_cv_prog_CC="$CC" # Let the user override the test.
4905 else
4906 ac_prog_rejected=no
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4915 ac_prog_rejected=yes
4916 continue
4917 fi
4918 ac_cv_prog_CC="cc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 if test $ac_prog_rejected = yes; then
4927 # We found a bogon in the path, so make sure we never use it.
4928 set dummy $ac_cv_prog_CC
4929 shift
4930 if test $# != 0; then
4931 # We chose a different compiler from the bogus one.
4932 # However, it has the same basename, so the bogon will be chosen
4933 # first if we set CC to just the basename; use the full file name.
4934 shift
4935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4936 fi
4937 fi
4938 fi
4939 fi
4940 CC=$ac_cv_prog_CC
4941 if test -n "$CC"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943 $as_echo "$CC" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 fi
4948
4949
4950 fi
4951 if test -z "$CC"; then
4952 if test -n "$ac_tool_prefix"; then
4953 for ac_prog in cl.exe
4954 do
4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4956 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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 test -n "$CC" && break
4993 done
4994 fi
4995 if test -z "$CC"; then
4996 ac_ct_CC=$CC
4997 for ac_prog in cl.exe
4998 do
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$ac_ct_CC"; then
5007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ac_ct_CC="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5027 if test -n "$ac_ct_CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5029 $as_echo "$ac_ct_CC" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 test -n "$ac_ct_CC" && break
5037 done
5038
5039 if test "x$ac_ct_CC" = x; then
5040 CC=""
5041 else
5042 case $cross_compiling:$ac_tool_warned in
5043 yes:)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5046 ac_tool_warned=yes ;;
5047 esac
5048 CC=$ac_ct_CC
5049 fi
5050 fi
5051
5052 fi
5053
5054
5055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5057 as_fn_error "no acceptable C compiler found in \$PATH
5058 See \`config.log' for more details." "$LINENO" 5; }
5059
5060 # Provide some information about the compiler.
5061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5062 set X $ac_compile
5063 ac_compiler=$2
5064 for ac_option in --version -v -V -qversion; do
5065 { { ac_try="$ac_compiler $ac_option >&5"
5066 case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5069 esac
5070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5071 $as_echo "$ac_try_echo"; } >&5
5072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5073 ac_status=$?
5074 if test -s conftest.err; then
5075 sed '10a\
5076 ... rest of stderr output deleted ...
5077 10q' conftest.err >conftest.er1
5078 cat conftest.er1 >&5
5079 rm -f conftest.er1 conftest.err
5080 fi
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5083 done
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5087 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092
5093 int
5094 main ()
5095 {
5096 #ifndef __GNUC__
5097 choke me
5098 #endif
5099
5100 ;
5101 return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_compiler_gnu=yes
5106 else
5107 ac_compiler_gnu=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5111
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5115 if test $ac_compiler_gnu = yes; then
5116 GCC=yes
5117 else
5118 GCC=
5119 fi
5120 ac_test_CFLAGS=${CFLAGS+set}
5121 ac_save_CFLAGS=$CFLAGS
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5124 if test "${ac_cv_prog_cc_g+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 ac_save_c_werror_flag=$ac_c_werror_flag
5128 ac_c_werror_flag=yes
5129 ac_cv_prog_cc_g=no
5130 CFLAGS="-g"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133
5134 int
5135 main ()
5136 {
5137
5138 ;
5139 return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_g=yes
5144 else
5145 CFLAGS=""
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148
5149 int
5150 main ()
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158
5159 else
5160 ac_c_werror_flag=$ac_save_c_werror_flag
5161 CFLAGS="-g"
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 int
5166 main ()
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_prog_cc_g=yes
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_c_werror_flag=$ac_save_c_werror_flag
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5184 $as_echo "$ac_cv_prog_cc_g" >&6; }
5185 if test "$ac_test_CFLAGS" = set; then
5186 CFLAGS=$ac_save_CFLAGS
5187 elif test $ac_cv_prog_cc_g = yes; then
5188 if test "$GCC" = yes; then
5189 CFLAGS="-g -O2"
5190 else
5191 CFLAGS="-g"
5192 fi
5193 else
5194 if test "$GCC" = yes; then
5195 CFLAGS="-O2"
5196 else
5197 CFLAGS=
5198 fi
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5202 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 ac_cv_prog_cc_c89=no
5206 ac_save_CC=$CC
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <stdarg.h>
5210 #include <stdio.h>
5211 #include <sys/types.h>
5212 #include <sys/stat.h>
5213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214 struct buf { int x; };
5215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216 static char *e (p, i)
5217 char **p;
5218 int i;
5219 {
5220 return p[i];
5221 }
5222 static char *f (char * (*g) (char **, int), char **p, ...)
5223 {
5224 char *s;
5225 va_list v;
5226 va_start (v,p);
5227 s = g (p, va_arg (v,int));
5228 va_end (v);
5229 return s;
5230 }
5231
5232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5240
5241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5243 #define FOO(x) 'x'
5244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5245
5246 int test (int i, double x);
5247 struct s1 {int (*f) (int a);};
5248 struct s2 {int (*f) (double a);};
5249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5250 int argc;
5251 char **argv;
5252 int
5253 main ()
5254 {
5255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5262 do
5263 CC="$ac_save_CC $ac_arg"
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_prog_cc_c89=$ac_arg
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext
5268 test "x$ac_cv_prog_cc_c89" != "xno" && break
5269 done
5270 rm -f conftest.$ac_ext
5271 CC=$ac_save_CC
5272
5273 fi
5274 # AC_CACHE_VAL
5275 case "x$ac_cv_prog_cc_c89" in
5276 x)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5278 $as_echo "none needed" >&6; } ;;
5279 xno)
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 $as_echo "unsupported" >&6; } ;;
5282 *)
5283 CC="$CC $ac_cv_prog_cc_c89"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5286 esac
5287 if test "x$ac_cv_prog_cc_c89" != xno; then :
5288
5289 fi
5290
5291 ac_ext=c
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296
5297
5298 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5299
5300
5301 ac_aux_dir=
5302 for ac_dir in ../.. "$srcdir"/../..; do
5303 for ac_t in install-sh install.sh shtool; do
5304 if test -f "$ac_dir/$ac_t"; then
5305 ac_aux_dir=$ac_dir
5306 ac_install_sh="$ac_aux_dir/$ac_t -c"
5307 break 2
5308 fi
5309 done
5310 done
5311 if test -z "$ac_aux_dir"; then
5312 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5313 fi
5314
5315 # These three variables are undocumented and unsupported,
5316 # and are intended to be withdrawn in a future Autoconf release.
5317 # They can cause serious problems if a builder's source tree is in a directory
5318 # whose full name contains unusual characters.
5319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5325 $as_echo_n "checking target system type... " >&6; }
5326 if test "${ac_cv_target+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 if test "x$target_alias" = x; then
5330 ac_cv_target=$ac_cv_host
5331 else
5332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5334 fi
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5338 $as_echo "$ac_cv_target" >&6; }
5339 case $ac_cv_target in
5340 *-*-*) ;;
5341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5342 esac
5343 target=$ac_cv_target
5344 ac_save_IFS=$IFS; IFS='-'
5345 set x $ac_cv_target
5346 shift
5347 target_cpu=$1
5348 target_vendor=$2
5349 shift; shift
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5352 target_os=$*
5353 IFS=$ac_save_IFS
5354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5355
5356
5357 # The aliases save the names the user supplied, while $host etc.
5358 # will get canonicalized.
5359 test -n "$target_alias" &&
5360 test "$program_prefix$program_suffix$program_transform_name" = \
5361 NONENONEs,x,x, &&
5362 program_prefix=${target_alias}-
5363
5364
5365
5366
5367
5368
5369
5370 LIBC_FATAL_STDERR_=1
5371 export LIBC_FATAL_STDERR_
5372
5373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5374 # for constant arguments. Useless!
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5376 $as_echo_n "checking for working alloca.h... " >&6; }
5377 if test "${ac_cv_working_alloca_h+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 #include <alloca.h>
5383 int
5384 main ()
5385 {
5386 char *p = (char *) alloca (2 * sizeof (int));
5387 if (p) return 0;
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_link "$LINENO"; then :
5393 ac_cv_working_alloca_h=yes
5394 else
5395 ac_cv_working_alloca_h=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5401 $as_echo "$ac_cv_working_alloca_h" >&6; }
5402 if test $ac_cv_working_alloca_h = yes; then
5403
5404 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5405
5406 fi
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5409 $as_echo_n "checking for alloca... " >&6; }
5410 if test "${ac_cv_func_alloca_works+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #ifdef __GNUC__
5416 # define alloca __builtin_alloca
5417 #else
5418 # ifdef _MSC_VER
5419 # include <malloc.h>
5420 # define alloca _alloca
5421 # else
5422 # ifdef HAVE_ALLOCA_H
5423 # include <alloca.h>
5424 # else
5425 # ifdef _AIX
5426 #pragma alloca
5427 # else
5428 # ifndef alloca /* predefined by HP cc +Olibcalls */
5429 char *alloca ();
5430 # endif
5431 # endif
5432 # endif
5433 # endif
5434 #endif
5435
5436 int
5437 main ()
5438 {
5439 char *p = (char *) alloca (1);
5440 if (p) return 0;
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_link "$LINENO"; then :
5446 ac_cv_func_alloca_works=yes
5447 else
5448 ac_cv_func_alloca_works=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5454 $as_echo "$ac_cv_func_alloca_works" >&6; }
5455
5456 if test $ac_cv_func_alloca_works = yes; then
5457
5458 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5459
5460 else
5461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5462 # that cause trouble. Some versions do not even contain alloca or
5463 # contain a buggy version. If you still want to use their alloca,
5464 # use ar to extract alloca.o from them instead of compiling alloca.c.
5465
5466
5467
5468
5469
5470 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5471
5472 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5476 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5477 if test "${ac_cv_os_cray+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #if defined CRAY && ! defined CRAY2
5483 webecray
5484 #else
5485 wenotbecray
5486 #endif
5487
5488 _ACEOF
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490 $EGREP "webecray" >/dev/null 2>&1; then :
5491 ac_cv_os_cray=yes
5492 else
5493 ac_cv_os_cray=no
5494 fi
5495 rm -f conftest*
5496
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5499 $as_echo "$ac_cv_os_cray" >&6; }
5500 if test $ac_cv_os_cray = yes; then
5501 for ac_func in _getb67 GETB67 getb67; do
5502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5503 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5504 eval as_val=\$$as_ac_var
5505 if test "x$as_val" = x""yes; then :
5506
5507 cat >>confdefs.h <<_ACEOF
5508 #define CRAY_STACKSEG_END $ac_func
5509 _ACEOF
5510
5511 break
5512 fi
5513
5514 done
5515 fi
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5518 $as_echo_n "checking stack direction for C alloca... " >&6; }
5519 if test "${ac_cv_c_stack_direction+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test "$cross_compiling" = yes; then :
5523 ac_cv_c_stack_direction=0
5524 else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 $ac_includes_default
5528 int
5529 find_stack_direction (int *addr, int depth)
5530 {
5531 int dir, dummy = 0;
5532 if (! addr)
5533 addr = &dummy;
5534 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5535 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5536 return dir + dummy;
5537 }
5538
5539 int
5540 main (int argc, char **argv)
5541 {
5542 return find_stack_direction (0, argc + !argv + 20) < 0;
5543 }
5544 _ACEOF
5545 if ac_fn_c_try_run "$LINENO"; then :
5546 ac_cv_c_stack_direction=1
5547 else
5548 ac_cv_c_stack_direction=-1
5549 fi
5550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5551 conftest.$ac_objext conftest.beam conftest.$ac_ext
5552 fi
5553
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5556 $as_echo "$ac_cv_c_stack_direction" >&6; }
5557 cat >>confdefs.h <<_ACEOF
5558 #define STACK_DIRECTION $ac_cv_c_stack_direction
5559 _ACEOF
5560
5561
5562 fi
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5570 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5571 if test "${gl_cv_have_include_next+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 rm -rf conftestd1a conftestd1b conftestd2
5575 mkdir conftestd1a conftestd1b conftestd2
5576 cat <<EOF > conftestd1a/conftest.h
5577 #define DEFINED_IN_CONFTESTD1
5578 #include_next <conftest.h>
5579 #ifdef DEFINED_IN_CONFTESTD2
5580 int foo;
5581 #else
5582 #error "include_next doesn't work"
5583 #endif
5584 EOF
5585 cat <<EOF > conftestd1b/conftest.h
5586 #define DEFINED_IN_CONFTESTD1
5587 #include <stdio.h>
5588 #include_next <conftest.h>
5589 #ifdef DEFINED_IN_CONFTESTD2
5590 int foo;
5591 #else
5592 #error "include_next doesn't work"
5593 #endif
5594 EOF
5595 cat <<EOF > conftestd2/conftest.h
5596 #ifndef DEFINED_IN_CONFTESTD1
5597 #error "include_next test doesn't work"
5598 #endif
5599 #define DEFINED_IN_CONFTESTD2
5600 EOF
5601 gl_save_CPPFLAGS="$CPPFLAGS"
5602 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <conftest.h>
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 gl_cv_have_include_next=yes
5609 else
5610 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <conftest.h>
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 gl_cv_have_include_next=buggy
5617 else
5618 gl_cv_have_include_next=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 CPPFLAGS="$gl_save_CPPFLAGS"
5625 rm -rf conftestd1a conftestd1b conftestd2
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5629 $as_echo "$gl_cv_have_include_next" >&6; }
5630 PRAGMA_SYSTEM_HEADER=
5631 if test $gl_cv_have_include_next = yes; then
5632 INCLUDE_NEXT=include_next
5633 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5634 if test -n "$GCC"; then
5635 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5636 fi
5637 else
5638 if test $gl_cv_have_include_next = buggy; then
5639 INCLUDE_NEXT=include
5640 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5641 else
5642 INCLUDE_NEXT=include
5643 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5644 fi
5645 fi
5646
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5650 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5651 if test "${gl_cv_pragma_columns+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656
5657 #ifdef __TANDEM
5658 choke me
5659 #endif
5660
5661 _ACEOF
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "choke me" >/dev/null 2>&1; then :
5664 gl_cv_pragma_columns=yes
5665 else
5666 gl_cv_pragma_columns=no
5667 fi
5668 rm -f conftest*
5669
5670
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5673 $as_echo "$gl_cv_pragma_columns" >&6; }
5674 if test $gl_cv_pragma_columns = yes; then
5675 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5676 else
5677 PRAGMA_COLUMNS=
5678 fi
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5684 $as_echo_n "checking for mbstate_t... " >&6; }
5685 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5692 <wchar.h>.
5693 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5694 included before <wchar.h>. */
5695 #include <stddef.h>
5696 #include <stdio.h>
5697 #include <time.h>
5698 #include <wchar.h>
5699 int
5700 main ()
5701 {
5702 mbstate_t x; return sizeof x;
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_type_mbstate_t=yes
5709 else
5710 ac_cv_type_mbstate_t=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5715 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5716 if test $ac_cv_type_mbstate_t = yes; then
5717
5718 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5719
5720 else
5721
5722 $as_echo "#define mbstate_t int" >>confdefs.h
5723
5724 fi
5725
5726
5727
5728
5729 for ac_func in $ac_func_list
5730 do :
5731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5733 eval as_val=\$$as_ac_var
5734 if test "x$as_val" = x""yes; then :
5735 cat >>confdefs.h <<_ACEOF
5736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 fi
5740 done
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 for ac_header in $ac_header_list
5762 do :
5763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5765 "
5766 eval as_val=\$$as_ac_Header
5767 if test "x$as_val" = x""yes; then :
5768 cat >>confdefs.h <<_ACEOF
5769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770 _ACEOF
5771
5772 fi
5773
5774 done
5775
5776
5777
5778
5779 GNULIB_ACOSF=0;
5780 GNULIB_ACOSL=0;
5781 GNULIB_ASINF=0;
5782 GNULIB_ASINL=0;
5783 GNULIB_ATANF=0;
5784 GNULIB_ATANL=0;
5785 GNULIB_ATAN2F=0;
5786 GNULIB_CBRT=0;
5787 GNULIB_CBRTF=0;
5788 GNULIB_CBRTL=0;
5789 GNULIB_CEIL=0;
5790 GNULIB_CEILF=0;
5791 GNULIB_CEILL=0;
5792 GNULIB_COPYSIGN=0;
5793 GNULIB_COPYSIGNF=0;
5794 GNULIB_COPYSIGNL=0;
5795 GNULIB_COSF=0;
5796 GNULIB_COSL=0;
5797 GNULIB_COSHF=0;
5798 GNULIB_EXPF=0;
5799 GNULIB_EXPL=0;
5800 GNULIB_EXP2=0;
5801 GNULIB_EXP2F=0;
5802 GNULIB_EXP2L=0;
5803 GNULIB_EXPM1=0;
5804 GNULIB_EXPM1F=0;
5805 GNULIB_EXPM1L=0;
5806 GNULIB_FABSF=0;
5807 GNULIB_FABSL=0;
5808 GNULIB_FLOOR=0;
5809 GNULIB_FLOORF=0;
5810 GNULIB_FLOORL=0;
5811 GNULIB_FMA=0;
5812 GNULIB_FMAF=0;
5813 GNULIB_FMAL=0;
5814 GNULIB_FMOD=0;
5815 GNULIB_FMODF=0;
5816 GNULIB_FMODL=0;
5817 GNULIB_FREXPF=0;
5818 GNULIB_FREXP=0;
5819 GNULIB_FREXPL=0;
5820 GNULIB_HYPOT=0;
5821 GNULIB_HYPOTF=0;
5822 GNULIB_HYPOTL=0;
5823 GNULIB_ILOGB=0;
5824 GNULIB_ILOGBF=0;
5825 GNULIB_ILOGBL=0;
5826 GNULIB_ISFINITE=0;
5827 GNULIB_ISINF=0;
5828 GNULIB_ISNAN=0;
5829 GNULIB_ISNANF=0;
5830 GNULIB_ISNAND=0;
5831 GNULIB_ISNANL=0;
5832 GNULIB_LDEXPF=0;
5833 GNULIB_LDEXPL=0;
5834 GNULIB_LOG=0;
5835 GNULIB_LOGF=0;
5836 GNULIB_LOGL=0;
5837 GNULIB_LOG10=0;
5838 GNULIB_LOG10F=0;
5839 GNULIB_LOG10L=0;
5840 GNULIB_LOG1P=0;
5841 GNULIB_LOG1PF=0;
5842 GNULIB_LOG1PL=0;
5843 GNULIB_LOG2=0;
5844 GNULIB_LOG2F=0;
5845 GNULIB_LOG2L=0;
5846 GNULIB_LOGB=0;
5847 GNULIB_LOGBF=0;
5848 GNULIB_LOGBL=0;
5849 GNULIB_MODF=0;
5850 GNULIB_MODFF=0;
5851 GNULIB_MODFL=0;
5852 GNULIB_POWF=0;
5853 GNULIB_REMAINDER=0;
5854 GNULIB_REMAINDERF=0;
5855 GNULIB_REMAINDERL=0;
5856 GNULIB_RINT=0;
5857 GNULIB_RINTF=0;
5858 GNULIB_RINTL=0;
5859 GNULIB_ROUND=0;
5860 GNULIB_ROUNDF=0;
5861 GNULIB_ROUNDL=0;
5862 GNULIB_SIGNBIT=0;
5863 GNULIB_SINF=0;
5864 GNULIB_SINL=0;
5865 GNULIB_SINHF=0;
5866 GNULIB_SQRTF=0;
5867 GNULIB_SQRTL=0;
5868 GNULIB_TANF=0;
5869 GNULIB_TANL=0;
5870 GNULIB_TANHF=0;
5871 GNULIB_TRUNC=0;
5872 GNULIB_TRUNCF=0;
5873 GNULIB_TRUNCL=0;
5874 HAVE_ACOSF=1;
5875 HAVE_ACOSL=1;
5876 HAVE_ASINF=1;
5877 HAVE_ASINL=1;
5878 HAVE_ATANF=1;
5879 HAVE_ATANL=1;
5880 HAVE_ATAN2F=1;
5881 HAVE_CBRT=1;
5882 HAVE_CBRTF=1;
5883 HAVE_CBRTL=1;
5884 HAVE_COPYSIGN=1;
5885 HAVE_COPYSIGNL=1;
5886 HAVE_COSF=1;
5887 HAVE_COSL=1;
5888 HAVE_COSHF=1;
5889 HAVE_EXPF=1;
5890 HAVE_EXPL=1;
5891 HAVE_EXPM1=1;
5892 HAVE_EXPM1F=1;
5893 HAVE_FABSF=1;
5894 HAVE_FABSL=1;
5895 HAVE_FMA=1;
5896 HAVE_FMAF=1;
5897 HAVE_FMAL=1;
5898 HAVE_FMODF=1;
5899 HAVE_FMODL=1;
5900 HAVE_FREXPF=1;
5901 HAVE_HYPOTF=1;
5902 HAVE_HYPOTL=1;
5903 HAVE_ILOGB=1;
5904 HAVE_ILOGBF=1;
5905 HAVE_ILOGBL=1;
5906 HAVE_ISNANF=1;
5907 HAVE_ISNAND=1;
5908 HAVE_ISNANL=1;
5909 HAVE_LDEXPF=1;
5910 HAVE_LOGF=1;
5911 HAVE_LOGL=1;
5912 HAVE_LOG10F=1;
5913 HAVE_LOG10L=1;
5914 HAVE_LOG1P=1;
5915 HAVE_LOG1PF=1;
5916 HAVE_LOG1PL=1;
5917 HAVE_LOGBF=1;
5918 HAVE_LOGBL=1;
5919 HAVE_MODFF=1;
5920 HAVE_MODFL=1;
5921 HAVE_POWF=1;
5922 HAVE_REMAINDER=1;
5923 HAVE_REMAINDERF=1;
5924 HAVE_RINT=1;
5925 HAVE_RINTL=1;
5926 HAVE_SINF=1;
5927 HAVE_SINL=1;
5928 HAVE_SINHF=1;
5929 HAVE_SQRTF=1;
5930 HAVE_SQRTL=1;
5931 HAVE_TANF=1;
5932 HAVE_TANL=1;
5933 HAVE_TANHF=1;
5934 HAVE_DECL_ACOSL=1;
5935 HAVE_DECL_ASINL=1;
5936 HAVE_DECL_ATANL=1;
5937 HAVE_DECL_CBRTF=1;
5938 HAVE_DECL_CBRTL=1;
5939 HAVE_DECL_CEILF=1;
5940 HAVE_DECL_CEILL=1;
5941 HAVE_DECL_COPYSIGNF=1;
5942 HAVE_DECL_COSL=1;
5943 HAVE_DECL_EXPL=1;
5944 HAVE_DECL_EXP2=1;
5945 HAVE_DECL_EXP2F=1;
5946 HAVE_DECL_EXP2L=1;
5947 HAVE_DECL_EXPM1L=1;
5948 HAVE_DECL_FLOORF=1;
5949 HAVE_DECL_FLOORL=1;
5950 HAVE_DECL_FREXPL=1;
5951 HAVE_DECL_LDEXPL=1;
5952 HAVE_DECL_LOGL=1;
5953 HAVE_DECL_LOG10L=1;
5954 HAVE_DECL_LOG2=1;
5955 HAVE_DECL_LOG2F=1;
5956 HAVE_DECL_LOG2L=1;
5957 HAVE_DECL_LOGB=1;
5958 HAVE_DECL_REMAINDER=1;
5959 HAVE_DECL_REMAINDERL=1;
5960 HAVE_DECL_RINTF=1;
5961 HAVE_DECL_ROUND=1;
5962 HAVE_DECL_ROUNDF=1;
5963 HAVE_DECL_ROUNDL=1;
5964 HAVE_DECL_SINL=1;
5965 HAVE_DECL_SQRTL=1;
5966 HAVE_DECL_TANL=1;
5967 HAVE_DECL_TRUNC=1;
5968 HAVE_DECL_TRUNCF=1;
5969 HAVE_DECL_TRUNCL=1;
5970 REPLACE_CBRTF=0;
5971 REPLACE_CBRTL=0;
5972 REPLACE_CEIL=0;
5973 REPLACE_CEILF=0;
5974 REPLACE_CEILL=0;
5975 REPLACE_EXPM1=0;
5976 REPLACE_EXPM1F=0;
5977 REPLACE_EXP2=0;
5978 REPLACE_EXP2L=0;
5979 REPLACE_FABSL=0;
5980 REPLACE_FLOOR=0;
5981 REPLACE_FLOORF=0;
5982 REPLACE_FLOORL=0;
5983 REPLACE_FMA=0;
5984 REPLACE_FMAF=0;
5985 REPLACE_FMAL=0;
5986 REPLACE_FMOD=0;
5987 REPLACE_FMODF=0;
5988 REPLACE_FMODL=0;
5989 REPLACE_FREXPF=0;
5990 REPLACE_FREXP=0;
5991 REPLACE_FREXPL=0;
5992 REPLACE_HUGE_VAL=0;
5993 REPLACE_HYPOT=0;
5994 REPLACE_HYPOTF=0;
5995 REPLACE_HYPOTL=0;
5996 REPLACE_ILOGB=0;
5997 REPLACE_ILOGBF=0;
5998 REPLACE_ISFINITE=0;
5999 REPLACE_ISINF=0;
6000 REPLACE_ISNAN=0;
6001 REPLACE_LDEXPL=0;
6002 REPLACE_LOG=0;
6003 REPLACE_LOGF=0;
6004 REPLACE_LOGL=0;
6005 REPLACE_LOG10=0;
6006 REPLACE_LOG10F=0;
6007 REPLACE_LOG10L=0;
6008 REPLACE_LOG1P=0;
6009 REPLACE_LOG1PF=0;
6010 REPLACE_LOG1PL=0;
6011 REPLACE_LOG2=0;
6012 REPLACE_LOG2F=0;
6013 REPLACE_LOG2L=0;
6014 REPLACE_LOGB=0;
6015 REPLACE_LOGBF=0;
6016 REPLACE_LOGBL=0;
6017 REPLACE_MODF=0;
6018 REPLACE_MODFF=0;
6019 REPLACE_MODFL=0;
6020 REPLACE_NAN=0;
6021 REPLACE_REMAINDER=0;
6022 REPLACE_REMAINDERF=0;
6023 REPLACE_REMAINDERL=0;
6024 REPLACE_ROUND=0;
6025 REPLACE_ROUNDF=0;
6026 REPLACE_ROUNDL=0;
6027 REPLACE_SIGNBIT=0;
6028 REPLACE_SIGNBIT_USING_GCC=0;
6029 REPLACE_SQRTL=0;
6030 REPLACE_TRUNC=0;
6031 REPLACE_TRUNCF=0;
6032 REPLACE_TRUNCL=0;
6033
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6036 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6037 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <math.h>
6044 double x;
6045 int
6046 main ()
6047 {
6048 int e; return frexp (x, &e) > 0;
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_link "$LINENO"; then :
6054 gl_cv_func_frexp_no_libm=yes
6055 else
6056 gl_cv_func_frexp_no_libm=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6060
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6063 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6064
6065
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6069 $as_echo_n "checking whether long double and double are the same... " >&6; }
6070 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <float.h>
6076 int
6077 main ()
6078 {
6079 typedef int check[sizeof (long double) == sizeof (double)
6080 && LDBL_MANT_DIG == DBL_MANT_DIG
6081 && LDBL_MAX_EXP == DBL_MAX_EXP
6082 && LDBL_MIN_EXP == DBL_MIN_EXP
6083 ? 1 : -1];
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 gl_cv_long_double_equals_double=yes
6091 else
6092 gl_cv_long_double_equals_double=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6098 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6099 if test $gl_cv_long_double_equals_double = yes; then
6100
6101 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6102
6103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6104 else
6105 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6106 fi
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6111 $as_echo_n "checking for unsigned long long int... " >&6; }
6112 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 ac_cv_type_unsigned_long_long_int=yes
6116 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119
6120 /* For now, do not test the preprocessor; as of 2007 there are too many
6121 implementations with broken preprocessors. Perhaps this can
6122 be revisited in 2012. In the meantime, code should not expect
6123 #if to work with literals wider than 32 bits. */
6124 /* Test literals. */
6125 long long int ll = 9223372036854775807ll;
6126 long long int nll = -9223372036854775807LL;
6127 unsigned long long int ull = 18446744073709551615ULL;
6128 /* Test constant expressions. */
6129 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6130 ? 1 : -1)];
6131 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6132 ? 1 : -1)];
6133 int i = 63;
6134 int
6135 main ()
6136 {
6137 /* Test availability of runtime routines for shift and division. */
6138 long long int llmax = 9223372036854775807ll;
6139 unsigned long long int ullmax = 18446744073709551615ull;
6140 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6141 | (llmax / ll) | (llmax % ll)
6142 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6143 | (ullmax / ull) | (ullmax % ull));
6144 ;
6145 return 0;
6146 }
6147
6148 _ACEOF
6149 if ac_fn_c_try_link "$LINENO"; then :
6150
6151 else
6152 ac_cv_type_unsigned_long_long_int=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 fi
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6159 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6160 if test $ac_cv_type_unsigned_long_long_int = yes; then
6161
6162 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6163
6164 fi
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6169 $as_echo_n "checking for long long int... " >&6; }
6170 if test "${ac_cv_type_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 ac_cv_type_long_long_int=yes
6174 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6175 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6176 if test $ac_cv_type_long_long_int = yes; then
6177 if test "$cross_compiling" = yes; then :
6178 :
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #include <limits.h>
6183 #ifndef LLONG_MAX
6184 # define HALF \
6185 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6186 # define LLONG_MAX (HALF - 1 + HALF)
6187 #endif
6188 int
6189 main ()
6190 {
6191 long long int n = 1;
6192 int i;
6193 for (i = 0; ; i++)
6194 {
6195 long long int m = n << i;
6196 if (m >> i != n)
6197 return 1;
6198 if (LLONG_MAX / 2 < m)
6199 break;
6200 }
6201 return 0;
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_run "$LINENO"; then :
6207
6208 else
6209 ac_cv_type_long_long_int=no
6210 fi
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6212 conftest.$ac_objext conftest.beam conftest.$ac_ext
6213 fi
6214
6215 fi
6216 fi
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6219 $as_echo "$ac_cv_type_long_long_int" >&6; }
6220 if test $ac_cv_type_long_long_int = yes; then
6221
6222 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6223
6224 fi
6225
6226
6227
6228
6229
6230
6231 gl_cv_c_multiarch=no
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #ifndef __APPLE_CC__
6235 not a universal capable compiler
6236 #endif
6237 typedef int dummy;
6238
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241
6242 arch=
6243 prev=
6244 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6245 if test -n "$prev"; then
6246 case $word in
6247 i?86 | x86_64 | ppc | ppc64)
6248 if test -z "$arch" || test "$arch" = "$word"; then
6249 arch="$word"
6250 else
6251 gl_cv_c_multiarch=yes
6252 fi
6253 ;;
6254 esac
6255 prev=
6256 else
6257 if test "x$word" = "x-arch"; then
6258 prev=arch
6259 fi
6260 fi
6261 done
6262
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $gl_cv_c_multiarch = yes; then
6266 APPLE_UNIVERSAL_BUILD=1
6267 else
6268 APPLE_UNIVERSAL_BUILD=0
6269 fi
6270
6271
6272
6273
6274
6275 if test $ac_cv_type_long_long_int = yes; then
6276 HAVE_LONG_LONG_INT=1
6277 else
6278 HAVE_LONG_LONG_INT=0
6279 fi
6280
6281
6282 if test $ac_cv_type_unsigned_long_long_int = yes; then
6283 HAVE_UNSIGNED_LONG_LONG_INT=1
6284 else
6285 HAVE_UNSIGNED_LONG_LONG_INT=0
6286 fi
6287
6288
6289
6290 if test $ac_cv_header_wchar_h = yes; then
6291 HAVE_WCHAR_H=1
6292 else
6293 HAVE_WCHAR_H=0
6294 fi
6295
6296
6297 if test $ac_cv_header_inttypes_h = yes; then
6298 HAVE_INTTYPES_H=1
6299 else
6300 HAVE_INTTYPES_H=0
6301 fi
6302
6303
6304 if test $ac_cv_header_sys_types_h = yes; then
6305 HAVE_SYS_TYPES_H=1
6306 else
6307 HAVE_SYS_TYPES_H=0
6308 fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 if test $gl_cv_have_include_next = yes; then
6321 gl_cv_next_stdint_h='<'stdint.h'>'
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6324 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6325 if test "${gl_cv_next_stdint_h+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328
6329 if test $ac_cv_header_stdint_h = yes; then
6330
6331
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #include <stdint.h>
6335
6336 _ACEOF
6337 case "$host_os" in
6338 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6339 *) gl_absname_cpp="$ac_cpp" ;;
6340 esac
6341
6342 case "$host_os" in
6343 mingw*)
6344 gl_dirsep_regex='[/\\]'
6345 ;;
6346 *)
6347 gl_dirsep_regex='\/'
6348 ;;
6349 esac
6350 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6351
6352 gl_header_literal_regex=`echo 'stdint.h' \
6353 | sed -e "$gl_make_literal_regex_sed"`
6354 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6355 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6356 s|^/[^/]|//&|
6357 p
6358 q
6359 }'
6360 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6361 sed -n "$gl_absolute_header_sed"`'"'
6362 else
6363 gl_cv_next_stdint_h='<'stdint.h'>'
6364 fi
6365
6366
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6369 $as_echo "$gl_cv_next_stdint_h" >&6; }
6370 fi
6371 NEXT_STDINT_H=$gl_cv_next_stdint_h
6372
6373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6375 gl_next_as_first_directive='<'stdint.h'>'
6376 else
6377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6378 gl_next_as_first_directive=$gl_cv_next_stdint_h
6379 fi
6380 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6381
6382
6383
6384
6385 if test $ac_cv_header_stdint_h = yes; then
6386 HAVE_STDINT_H=1
6387 else
6388 HAVE_STDINT_H=0
6389 fi
6390
6391
6392 if test $ac_cv_header_stdint_h = yes; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6394 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6395 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 gl_cv_header_working_stdint_h=no
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401
6402
6403 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6404 #include <stdint.h>
6405 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6406 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6407 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6408 #endif
6409
6410
6411 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6412 included before <wchar.h>. */
6413 #include <stddef.h>
6414 #include <signal.h>
6415 #if HAVE_WCHAR_H
6416 # include <stdio.h>
6417 # include <time.h>
6418 # include <wchar.h>
6419 #endif
6420
6421
6422 #ifdef INT8_MAX
6423 int8_t a1 = INT8_MAX;
6424 int8_t a1min = INT8_MIN;
6425 #endif
6426 #ifdef INT16_MAX
6427 int16_t a2 = INT16_MAX;
6428 int16_t a2min = INT16_MIN;
6429 #endif
6430 #ifdef INT32_MAX
6431 int32_t a3 = INT32_MAX;
6432 int32_t a3min = INT32_MIN;
6433 #endif
6434 #ifdef INT64_MAX
6435 int64_t a4 = INT64_MAX;
6436 int64_t a4min = INT64_MIN;
6437 #endif
6438 #ifdef UINT8_MAX
6439 uint8_t b1 = UINT8_MAX;
6440 #else
6441 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6442 #endif
6443 #ifdef UINT16_MAX
6444 uint16_t b2 = UINT16_MAX;
6445 #endif
6446 #ifdef UINT32_MAX
6447 uint32_t b3 = UINT32_MAX;
6448 #endif
6449 #ifdef UINT64_MAX
6450 uint64_t b4 = UINT64_MAX;
6451 #endif
6452 int_least8_t c1 = INT8_C (0x7f);
6453 int_least8_t c1max = INT_LEAST8_MAX;
6454 int_least8_t c1min = INT_LEAST8_MIN;
6455 int_least16_t c2 = INT16_C (0x7fff);
6456 int_least16_t c2max = INT_LEAST16_MAX;
6457 int_least16_t c2min = INT_LEAST16_MIN;
6458 int_least32_t c3 = INT32_C (0x7fffffff);
6459 int_least32_t c3max = INT_LEAST32_MAX;
6460 int_least32_t c3min = INT_LEAST32_MIN;
6461 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6462 int_least64_t c4max = INT_LEAST64_MAX;
6463 int_least64_t c4min = INT_LEAST64_MIN;
6464 uint_least8_t d1 = UINT8_C (0xff);
6465 uint_least8_t d1max = UINT_LEAST8_MAX;
6466 uint_least16_t d2 = UINT16_C (0xffff);
6467 uint_least16_t d2max = UINT_LEAST16_MAX;
6468 uint_least32_t d3 = UINT32_C (0xffffffff);
6469 uint_least32_t d3max = UINT_LEAST32_MAX;
6470 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6471 uint_least64_t d4max = UINT_LEAST64_MAX;
6472 int_fast8_t e1 = INT_FAST8_MAX;
6473 int_fast8_t e1min = INT_FAST8_MIN;
6474 int_fast16_t e2 = INT_FAST16_MAX;
6475 int_fast16_t e2min = INT_FAST16_MIN;
6476 int_fast32_t e3 = INT_FAST32_MAX;
6477 int_fast32_t e3min = INT_FAST32_MIN;
6478 int_fast64_t e4 = INT_FAST64_MAX;
6479 int_fast64_t e4min = INT_FAST64_MIN;
6480 uint_fast8_t f1 = UINT_FAST8_MAX;
6481 uint_fast16_t f2 = UINT_FAST16_MAX;
6482 uint_fast32_t f3 = UINT_FAST32_MAX;
6483 uint_fast64_t f4 = UINT_FAST64_MAX;
6484 #ifdef INTPTR_MAX
6485 intptr_t g = INTPTR_MAX;
6486 intptr_t gmin = INTPTR_MIN;
6487 #endif
6488 #ifdef UINTPTR_MAX
6489 uintptr_t h = UINTPTR_MAX;
6490 #endif
6491 intmax_t i = INTMAX_MAX;
6492 uintmax_t j = UINTMAX_MAX;
6493
6494 #include <limits.h> /* for CHAR_BIT */
6495 #define TYPE_MINIMUM(t) \
6496 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6497 #define TYPE_MAXIMUM(t) \
6498 ((t) ((t) 0 < (t) -1 \
6499 ? (t) -1 \
6500 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6501 struct s {
6502 int check_PTRDIFF:
6503 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6504 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6505 ? 1 : -1;
6506 /* Detect bug in FreeBSD 6.0 / ia64. */
6507 int check_SIG_ATOMIC:
6508 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6509 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6510 ? 1 : -1;
6511 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6512 int check_WCHAR:
6513 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6514 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6515 ? 1 : -1;
6516 /* Detect bug in mingw. */
6517 int check_WINT:
6518 WINT_MIN == TYPE_MINIMUM (wint_t)
6519 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6520 ? 1 : -1;
6521
6522 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6523 int check_UINT8_C:
6524 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6525 int check_UINT16_C:
6526 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6527
6528 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6529 #ifdef UINT8_MAX
6530 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6531 #endif
6532 #ifdef UINT16_MAX
6533 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6534 #endif
6535 #ifdef UINT32_MAX
6536 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6537 #endif
6538 #ifdef UINT64_MAX
6539 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6540 #endif
6541 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6542 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6543 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6544 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6545 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6546 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6547 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6548 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6549 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6550 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6551 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6552 };
6553
6554 int
6555 main ()
6556 {
6557
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 if test "$cross_compiling" = yes; then :
6564 gl_cv_header_working_stdint_h=yes
6565
6566 else
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569
6570
6571 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6572 #include <stdint.h>
6573
6574
6575 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6576 included before <wchar.h>. */
6577 #include <stddef.h>
6578 #include <signal.h>
6579 #if HAVE_WCHAR_H
6580 # include <stdio.h>
6581 # include <time.h>
6582 # include <wchar.h>
6583 #endif
6584
6585
6586 #include <stdio.h>
6587 #include <string.h>
6588 #define MVAL(macro) MVAL1(macro)
6589 #define MVAL1(expression) #expression
6590 static const char *macro_values[] =
6591 {
6592 #ifdef INT8_MAX
6593 MVAL (INT8_MAX),
6594 #endif
6595 #ifdef INT16_MAX
6596 MVAL (INT16_MAX),
6597 #endif
6598 #ifdef INT32_MAX
6599 MVAL (INT32_MAX),
6600 #endif
6601 #ifdef INT64_MAX
6602 MVAL (INT64_MAX),
6603 #endif
6604 #ifdef UINT8_MAX
6605 MVAL (UINT8_MAX),
6606 #endif
6607 #ifdef UINT16_MAX
6608 MVAL (UINT16_MAX),
6609 #endif
6610 #ifdef UINT32_MAX
6611 MVAL (UINT32_MAX),
6612 #endif
6613 #ifdef UINT64_MAX
6614 MVAL (UINT64_MAX),
6615 #endif
6616 NULL
6617 };
6618
6619 int
6620 main ()
6621 {
6622
6623 const char **mv;
6624 for (mv = macro_values; *mv != NULL; mv++)
6625 {
6626 const char *value = *mv;
6627 /* Test whether it looks like a cast expression. */
6628 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6629 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6630 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6631 || strncmp (value, "((int)"/*)*/, 6) == 0
6632 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6633 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6634 return mv - macro_values + 1;
6635 }
6636 return 0;
6637
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_run "$LINENO"; then :
6643 gl_cv_header_working_stdint_h=yes
6644 fi
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6646 conftest.$ac_objext conftest.beam conftest.$ac_ext
6647 fi
6648
6649
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6655 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6656 fi
6657 if test "$gl_cv_header_working_stdint_h" = yes; then
6658 STDINT_H=
6659 else
6660 for ac_header in sys/inttypes.h sys/bitypes.h
6661 do :
6662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6664 eval as_val=\$$as_ac_Header
6665 if test "x$as_val" = x""yes; then :
6666 cat >>confdefs.h <<_ACEOF
6667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6668 _ACEOF
6669
6670 fi
6671
6672 done
6673
6674 if test $ac_cv_header_sys_inttypes_h = yes; then
6675 HAVE_SYS_INTTYPES_H=1
6676 else
6677 HAVE_SYS_INTTYPES_H=0
6678 fi
6679
6680 if test $ac_cv_header_sys_bitypes_h = yes; then
6681 HAVE_SYS_BITYPES_H=1
6682 else
6683 HAVE_SYS_BITYPES_H=0
6684 fi
6685
6686
6687
6688
6689 if test $APPLE_UNIVERSAL_BUILD = 0; then
6690
6691
6692 for gltype in ptrdiff_t size_t ; do
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6694 $as_echo_n "checking for bit size of $gltype... " >&6; }
6695 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6700 included before <wchar.h>. */
6701 #include <stddef.h>
6702 #include <signal.h>
6703 #if HAVE_WCHAR_H
6704 # include <stdio.h>
6705 # include <time.h>
6706 # include <wchar.h>
6707 #endif
6708
6709 #include <limits.h>"; then :
6710
6711 else
6712 result=unknown
6713 fi
6714
6715 eval gl_cv_bitsizeof_${gltype}=\$result
6716
6717 fi
6718 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6720 $as_echo "$ac_res" >&6; }
6721 eval result=\$gl_cv_bitsizeof_${gltype}
6722 if test $result = unknown; then
6723 result=0
6724 fi
6725 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6726 cat >>confdefs.h <<_ACEOF
6727 #define BITSIZEOF_${GLTYPE} $result
6728 _ACEOF
6729
6730 eval BITSIZEOF_${GLTYPE}=\$result
6731 done
6732
6733
6734 fi
6735
6736
6737 for gltype in sig_atomic_t wchar_t wint_t ; do
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6739 $as_echo_n "checking for bit size of $gltype... " >&6; }
6740 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6745 included before <wchar.h>. */
6746 #include <stddef.h>
6747 #include <signal.h>
6748 #if HAVE_WCHAR_H
6749 # include <stdio.h>
6750 # include <time.h>
6751 # include <wchar.h>
6752 #endif
6753
6754 #include <limits.h>"; then :
6755
6756 else
6757 result=unknown
6758 fi
6759
6760 eval gl_cv_bitsizeof_${gltype}=\$result
6761
6762 fi
6763 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6765 $as_echo "$ac_res" >&6; }
6766 eval result=\$gl_cv_bitsizeof_${gltype}
6767 if test $result = unknown; then
6768 result=0
6769 fi
6770 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6771 cat >>confdefs.h <<_ACEOF
6772 #define BITSIZEOF_${GLTYPE} $result
6773 _ACEOF
6774
6775 eval BITSIZEOF_${GLTYPE}=\$result
6776 done
6777
6778
6779
6780
6781 for gltype in sig_atomic_t wchar_t wint_t ; do
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6783 $as_echo_n "checking whether $gltype is signed... " >&6; }
6784 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789
6790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6791 included before <wchar.h>. */
6792 #include <stddef.h>
6793 #include <signal.h>
6794 #if HAVE_WCHAR_H
6795 # include <stdio.h>
6796 # include <time.h>
6797 # include <wchar.h>
6798 #endif
6799
6800 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 result=yes
6811 else
6812 result=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 eval gl_cv_type_${gltype}_signed=\$result
6816
6817 fi
6818 eval ac_res=\$gl_cv_type_${gltype}_signed
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6820 $as_echo "$ac_res" >&6; }
6821 eval result=\$gl_cv_type_${gltype}_signed
6822 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6823 if test "$result" = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_SIGNED_${GLTYPE} 1
6826 _ACEOF
6827
6828 eval HAVE_SIGNED_${GLTYPE}=1
6829 else
6830 eval HAVE_SIGNED_${GLTYPE}=0
6831 fi
6832 done
6833
6834
6835 gl_cv_type_ptrdiff_t_signed=yes
6836 gl_cv_type_size_t_signed=no
6837 if test $APPLE_UNIVERSAL_BUILD = 0; then
6838
6839
6840 for gltype in ptrdiff_t size_t ; do
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6842 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6843 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 eval gl_cv_type_${gltype}_suffix=no
6847 eval result=\$gl_cv_type_${gltype}_signed
6848 if test "$result" = yes; then
6849 glsufu=
6850 else
6851 glsufu=u
6852 fi
6853 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6854 case $glsuf in
6855 '') gltype1='int';;
6856 l) gltype1='long int';;
6857 ll) gltype1='long long int';;
6858 i64) gltype1='__int64';;
6859 u) gltype1='unsigned int';;
6860 ul) gltype1='unsigned long int';;
6861 ull) gltype1='unsigned long long int';;
6862 ui64)gltype1='unsigned __int64';;
6863 esac
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866
6867 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6868 included before <wchar.h>. */
6869 #include <stddef.h>
6870 #include <signal.h>
6871 #if HAVE_WCHAR_H
6872 # include <stdio.h>
6873 # include <time.h>
6874 # include <wchar.h>
6875 #endif
6876
6877 extern $gltype foo;
6878 extern $gltype1 foo;
6879 int
6880 main ()
6881 {
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 eval gl_cv_type_${gltype}_suffix=\$glsuf
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 eval result=\$gl_cv_type_${gltype}_suffix
6892 test "$result" != no && break
6893 done
6894 fi
6895 eval ac_res=\$gl_cv_type_${gltype}_suffix
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6897 $as_echo "$ac_res" >&6; }
6898 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6899 eval result=\$gl_cv_type_${gltype}_suffix
6900 test "$result" = no && result=
6901 eval ${GLTYPE}_SUFFIX=\$result
6902 cat >>confdefs.h <<_ACEOF
6903 #define ${GLTYPE}_SUFFIX $result
6904 _ACEOF
6905
6906 done
6907
6908
6909 fi
6910
6911
6912 for gltype in sig_atomic_t wchar_t wint_t ; do
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6914 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6915 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 eval gl_cv_type_${gltype}_suffix=no
6919 eval result=\$gl_cv_type_${gltype}_signed
6920 if test "$result" = yes; then
6921 glsufu=
6922 else
6923 glsufu=u
6924 fi
6925 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6926 case $glsuf in
6927 '') gltype1='int';;
6928 l) gltype1='long int';;
6929 ll) gltype1='long long int';;
6930 i64) gltype1='__int64';;
6931 u) gltype1='unsigned int';;
6932 ul) gltype1='unsigned long int';;
6933 ull) gltype1='unsigned long long int';;
6934 ui64)gltype1='unsigned __int64';;
6935 esac
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938
6939 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6940 included before <wchar.h>. */
6941 #include <stddef.h>
6942 #include <signal.h>
6943 #if HAVE_WCHAR_H
6944 # include <stdio.h>
6945 # include <time.h>
6946 # include <wchar.h>
6947 #endif
6948
6949 extern $gltype foo;
6950 extern $gltype1 foo;
6951 int
6952 main ()
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 eval gl_cv_type_${gltype}_suffix=\$glsuf
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 eval result=\$gl_cv_type_${gltype}_suffix
6964 test "$result" != no && break
6965 done
6966 fi
6967 eval ac_res=\$gl_cv_type_${gltype}_suffix
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6969 $as_echo "$ac_res" >&6; }
6970 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6971 eval result=\$gl_cv_type_${gltype}_suffix
6972 test "$result" = no && result=
6973 eval ${GLTYPE}_SUFFIX=\$result
6974 cat >>confdefs.h <<_ACEOF
6975 #define ${GLTYPE}_SUFFIX $result
6976 _ACEOF
6977
6978 done
6979
6980
6981
6982 if test $BITSIZEOF_WINT_T -lt 32; then
6983 BITSIZEOF_WINT_T=32
6984 fi
6985
6986 STDINT_H=stdint.h
6987 fi
6988
6989 if test -n "$STDINT_H"; then
6990 GL_GENERATE_STDINT_H_TRUE=
6991 GL_GENERATE_STDINT_H_FALSE='#'
6992 else
6993 GL_GENERATE_STDINT_H_TRUE='#'
6994 GL_GENERATE_STDINT_H_FALSE=
6995 fi
6996
6997
6998
6999
7000
7001 GNULIB_IMAXABS=0;
7002 GNULIB_IMAXDIV=0;
7003 GNULIB_STRTOIMAX=0;
7004 GNULIB_STRTOUMAX=0;
7005 HAVE_DECL_IMAXABS=1;
7006 HAVE_DECL_IMAXDIV=1;
7007 HAVE_DECL_STRTOIMAX=1;
7008 HAVE_DECL_STRTOUMAX=1;
7009 REPLACE_STRTOIMAX=0;
7010 INT32_MAX_LT_INTMAX_MAX=1;
7011 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7012 PRI_MACROS_BROKEN=0;
7013 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7014 UINT32_MAX_LT_UINTMAX_MAX=1;
7015 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 if test $gl_cv_have_include_next = yes; then
7032 gl_cv_next_inttypes_h='<'inttypes.h'>'
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7035 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7036 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039
7040 if test $ac_cv_header_inttypes_h = yes; then
7041
7042
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 #include <inttypes.h>
7046
7047 _ACEOF
7048 case "$host_os" in
7049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7050 *) gl_absname_cpp="$ac_cpp" ;;
7051 esac
7052
7053 case "$host_os" in
7054 mingw*)
7055 gl_dirsep_regex='[/\\]'
7056 ;;
7057 *)
7058 gl_dirsep_regex='\/'
7059 ;;
7060 esac
7061 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7062
7063 gl_header_literal_regex=`echo 'inttypes.h' \
7064 | sed -e "$gl_make_literal_regex_sed"`
7065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7067 s|^/[^/]|//&|
7068 p
7069 q
7070 }'
7071 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7072 sed -n "$gl_absolute_header_sed"`'"'
7073 else
7074 gl_cv_next_inttypes_h='<'inttypes.h'>'
7075 fi
7076
7077
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7080 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7081 fi
7082 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7083
7084 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7086 gl_next_as_first_directive='<'inttypes.h'>'
7087 else
7088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7089 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7090 fi
7091 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7092
7093
7094
7095
7096
7097
7098
7099
7100 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7101 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7103 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7104 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <inttypes.h>
7110
7111 int
7112 main ()
7113 {
7114 #undef $gl_func
7115 (void) $gl_func;
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 if ac_fn_c_try_compile "$LINENO"; then :
7121 eval "$as_gl_Symbol=yes"
7122 else
7123 eval "$as_gl_Symbol=no"
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 eval ac_res=\$$as_gl_Symbol
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7129 $as_echo "$ac_res" >&6; }
7130 eval as_val=\$$as_gl_Symbol
7131 if test "x$as_val" = x""yes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7134 _ACEOF
7135
7136 eval ac_cv_have_decl_$gl_func=yes
7137 fi
7138 done
7139
7140
7141
7142 for ac_header in inttypes.h
7143 do :
7144 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7145 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7146 cat >>confdefs.h <<_ACEOF
7147 #define HAVE_INTTYPES_H 1
7148 _ACEOF
7149
7150 fi
7151
7152 done
7153
7154 if test $ac_cv_header_inttypes_h = yes; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7156 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7157 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163
7164 #include <inttypes.h>
7165 #ifdef PRId32
7166 char *p = PRId32;
7167 #endif
7168
7169 int
7170 main ()
7171 {
7172
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 gt_cv_inttypes_pri_broken=no
7179 else
7180 gt_cv_inttypes_pri_broken=yes
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7186 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7187 fi
7188 if test "$gt_cv_inttypes_pri_broken" = yes; then
7189
7190 cat >>confdefs.h <<_ACEOF
7191 #define PRI_MACROS_BROKEN 1
7192 _ACEOF
7193
7194 PRI_MACROS_BROKEN=1
7195 else
7196 PRI_MACROS_BROKEN=0
7197 fi
7198
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7202 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7203 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206
7207 if test "$cross_compiling" = yes; then :
7208
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211
7212 #if defined arm || defined __arm || defined __arm__
7213 mixed_endianness
7214 #endif
7215
7216 _ACEOF
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7219 gl_cv_cc_double_expbit0="unknown"
7220 else
7221
7222 :
7223 if test "${ac_cv_c_bigendian+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 ac_cv_c_bigendian=unknown
7227 # See if we're dealing with a universal compiler.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #ifndef __APPLE_CC__
7231 not a universal capable compiler
7232 #endif
7233 typedef int dummy;
7234
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"; then :
7237
7238 # Check for potential -arch flags. It is not universal unless
7239 # there are at least two -arch flags with different values.
7240 ac_arch=
7241 ac_prev=
7242 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7243 if test -n "$ac_prev"; then
7244 case $ac_word in
7245 i?86 | x86_64 | ppc | ppc64)
7246 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7247 ac_arch=$ac_word
7248 else
7249 ac_cv_c_bigendian=universal
7250 break
7251 fi
7252 ;;
7253 esac
7254 ac_prev=
7255 elif test "x$ac_word" = "x-arch"; then
7256 ac_prev=arch
7257 fi
7258 done
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 if test $ac_cv_c_bigendian = unknown; then
7262 # See if sys/param.h defines the BYTE_ORDER macro.
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <sys/param.h>
7267
7268 int
7269 main ()
7270 {
7271 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7272 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7273 && LITTLE_ENDIAN)
7274 bogus endian macros
7275 #endif
7276
7277 ;
7278 return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 # It does; now see whether it defined to BIG_ENDIAN or not.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <sys/types.h>
7286 #include <sys/param.h>
7287
7288 int
7289 main ()
7290 {
7291 #if BYTE_ORDER != BIG_ENDIAN
7292 not big endian
7293 #endif
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 ac_cv_c_bigendian=yes
7301 else
7302 ac_cv_c_bigendian=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 fi
7308 if test $ac_cv_c_bigendian = unknown; then
7309 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #include <limits.h>
7313
7314 int
7315 main ()
7316 {
7317 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7318 bogus endian macros
7319 #endif
7320
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326 # It does; now see whether it defined to _BIG_ENDIAN or not.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <limits.h>
7330
7331 int
7332 main ()
7333 {
7334 #ifndef _BIG_ENDIAN
7335 not big endian
7336 #endif
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 ac_cv_c_bigendian=yes
7344 else
7345 ac_cv_c_bigendian=no
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 if test $ac_cv_c_bigendian = unknown; then
7352 # Compile a test program.
7353 if test "$cross_compiling" = yes; then :
7354 # Try to guess by grepping values from an object file.
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 short int ascii_mm[] =
7358 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7359 short int ascii_ii[] =
7360 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7361 int use_ascii (int i) {
7362 return ascii_mm[i] + ascii_ii[i];
7363 }
7364 short int ebcdic_ii[] =
7365 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7366 short int ebcdic_mm[] =
7367 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7368 int use_ebcdic (int i) {
7369 return ebcdic_mm[i] + ebcdic_ii[i];
7370 }
7371 extern int foo;
7372
7373 int
7374 main ()
7375 {
7376 return use_ascii (foo) == use_ebcdic (foo);
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7383 ac_cv_c_bigendian=yes
7384 fi
7385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7386 if test "$ac_cv_c_bigendian" = unknown; then
7387 ac_cv_c_bigendian=no
7388 else
7389 # finding both strings is unlikely to happen, but who knows?
7390 ac_cv_c_bigendian=unknown
7391 fi
7392 fi
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 $ac_includes_default
7399 int
7400 main ()
7401 {
7402
7403 /* Are we little or big endian? From Harbison&Steele. */
7404 union
7405 {
7406 long int l;
7407 char c[sizeof (long int)];
7408 } u;
7409 u.l = 1;
7410 return u.c[sizeof (long int) - 1] == 1;
7411
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_run "$LINENO"; then :
7417 ac_cv_c_bigendian=no
7418 else
7419 ac_cv_c_bigendian=yes
7420 fi
7421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7422 conftest.$ac_objext conftest.beam conftest.$ac_ext
7423 fi
7424
7425 fi
7426 fi
7427 :
7428 case $ac_cv_c_bigendian in #(
7429 yes)
7430 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7431 no)
7432 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7433 universal)
7434
7435 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7436
7437 ;; #(
7438 *)
7439 gl_cv_cc_double_expbit0="unknown" ;;
7440 esac
7441
7442
7443 fi
7444 rm -f conftest*
7445
7446
7447 else
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450
7451 #include <float.h>
7452 #include <stddef.h>
7453 #include <stdio.h>
7454 #include <string.h>
7455 #define NWORDS \
7456 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7457 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7458 static unsigned int ored_words[NWORDS];
7459 static unsigned int anded_words[NWORDS];
7460 static void add_to_ored_words (double x)
7461 {
7462 memory_double m;
7463 size_t i;
7464 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7465 memset (&m, 0, sizeof (memory_double));
7466 m.value = x;
7467 for (i = 0; i < NWORDS; i++)
7468 {
7469 ored_words[i] |= m.word[i];
7470 anded_words[i] &= m.word[i];
7471 }
7472 }
7473 int main ()
7474 {
7475 size_t j;
7476 FILE *fp = fopen ("conftest.out", "w");
7477 if (fp == NULL)
7478 return 1;
7479 for (j = 0; j < NWORDS; j++)
7480 anded_words[j] = ~ (unsigned int) 0;
7481 add_to_ored_words (0.25);
7482 add_to_ored_words (0.5);
7483 add_to_ored_words (1.0);
7484 add_to_ored_words (2.0);
7485 add_to_ored_words (4.0);
7486 /* Remove bits that are common (e.g. if representation of the first mantissa
7487 bit is explicit). */
7488 for (j = 0; j < NWORDS; j++)
7489 ored_words[j] &= ~anded_words[j];
7490 /* Now find the nonzero word. */
7491 for (j = 0; j < NWORDS; j++)
7492 if (ored_words[j] != 0)
7493 break;
7494 if (j < NWORDS)
7495 {
7496 size_t i;
7497 for (i = j + 1; i < NWORDS; i++)
7498 if (ored_words[i] != 0)
7499 {
7500 fprintf (fp, "unknown");
7501 return (fclose (fp) != 0);
7502 }
7503 for (i = 0; ; i++)
7504 if ((ored_words[j] >> i) & 1)
7505 {
7506 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7507 return (fclose (fp) != 0);
7508 }
7509 }
7510 fprintf (fp, "unknown");
7511 return (fclose (fp) != 0);
7512 }
7513
7514 _ACEOF
7515 if ac_fn_c_try_run "$LINENO"; then :
7516 gl_cv_cc_double_expbit0=`cat conftest.out`
7517 else
7518 gl_cv_cc_double_expbit0="unknown"
7519 fi
7520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7521 conftest.$ac_objext conftest.beam conftest.$ac_ext
7522 fi
7523
7524 rm -f conftest.out
7525
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7528 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7529 case "$gl_cv_cc_double_expbit0" in
7530 word*bit*)
7531 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7532 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7533
7534 cat >>confdefs.h <<_ACEOF
7535 #define DBL_EXPBIT0_WORD $word
7536 _ACEOF
7537
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define DBL_EXPBIT0_BIT $bit
7541 _ACEOF
7542
7543 ;;
7544 esac
7545
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7548 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7549 if test "${ac_cv_c_bigendian+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 ac_cv_c_bigendian=unknown
7553 # See if we're dealing with a universal compiler.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #ifndef __APPLE_CC__
7557 not a universal capable compiler
7558 #endif
7559 typedef int dummy;
7560
7561 _ACEOF
7562 if ac_fn_c_try_compile "$LINENO"; then :
7563
7564 # Check for potential -arch flags. It is not universal unless
7565 # there are at least two -arch flags with different values.
7566 ac_arch=
7567 ac_prev=
7568 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7569 if test -n "$ac_prev"; then
7570 case $ac_word in
7571 i?86 | x86_64 | ppc | ppc64)
7572 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7573 ac_arch=$ac_word
7574 else
7575 ac_cv_c_bigendian=universal
7576 break
7577 fi
7578 ;;
7579 esac
7580 ac_prev=
7581 elif test "x$ac_word" = "x-arch"; then
7582 ac_prev=arch
7583 fi
7584 done
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 if test $ac_cv_c_bigendian = unknown; then
7588 # See if sys/param.h defines the BYTE_ORDER macro.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <sys/types.h>
7592 #include <sys/param.h>
7593
7594 int
7595 main ()
7596 {
7597 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7598 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7599 && LITTLE_ENDIAN)
7600 bogus endian macros
7601 #endif
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 # It does; now see whether it defined to BIG_ENDIAN or not.
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #include <sys/types.h>
7612 #include <sys/param.h>
7613
7614 int
7615 main ()
7616 {
7617 #if BYTE_ORDER != BIG_ENDIAN
7618 not big endian
7619 #endif
7620
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 ac_cv_c_bigendian=yes
7627 else
7628 ac_cv_c_bigendian=no
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 if test $ac_cv_c_bigendian = unknown; then
7635 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #include <limits.h>
7639
7640 int
7641 main ()
7642 {
7643 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7644 bogus endian macros
7645 #endif
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 # It does; now see whether it defined to _BIG_ENDIAN or not.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 #include <limits.h>
7656
7657 int
7658 main ()
7659 {
7660 #ifndef _BIG_ENDIAN
7661 not big endian
7662 #endif
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669 ac_cv_c_bigendian=yes
7670 else
7671 ac_cv_c_bigendian=no
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 fi
7677 if test $ac_cv_c_bigendian = unknown; then
7678 # Compile a test program.
7679 if test "$cross_compiling" = yes; then :
7680 # Try to guess by grepping values from an object file.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 short int ascii_mm[] =
7684 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7685 short int ascii_ii[] =
7686 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7687 int use_ascii (int i) {
7688 return ascii_mm[i] + ascii_ii[i];
7689 }
7690 short int ebcdic_ii[] =
7691 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7692 short int ebcdic_mm[] =
7693 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7694 int use_ebcdic (int i) {
7695 return ebcdic_mm[i] + ebcdic_ii[i];
7696 }
7697 extern int foo;
7698
7699 int
7700 main ()
7701 {
7702 return use_ascii (foo) == use_ebcdic (foo);
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7709 ac_cv_c_bigendian=yes
7710 fi
7711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7712 if test "$ac_cv_c_bigendian" = unknown; then
7713 ac_cv_c_bigendian=no
7714 else
7715 # finding both strings is unlikely to happen, but who knows?
7716 ac_cv_c_bigendian=unknown
7717 fi
7718 fi
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 $ac_includes_default
7725 int
7726 main ()
7727 {
7728
7729 /* Are we little or big endian? From Harbison&Steele. */
7730 union
7731 {
7732 long int l;
7733 char c[sizeof (long int)];
7734 } u;
7735 u.l = 1;
7736 return u.c[sizeof (long int) - 1] == 1;
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_run "$LINENO"; then :
7743 ac_cv_c_bigendian=no
7744 else
7745 ac_cv_c_bigendian=yes
7746 fi
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 fi
7750
7751 fi
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7754 $as_echo "$ac_cv_c_bigendian" >&6; }
7755 case $ac_cv_c_bigendian in #(
7756 yes)
7757 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7758 ;; #(
7759 no)
7760 ;; #(
7761 universal)
7762
7763 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7764
7765 ;; #(
7766 *)
7767 as_fn_error "unknown endianness
7768 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7769 esac
7770
7771
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7774 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7775 if test "${am_cv_langinfo_codeset+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <langinfo.h>
7781 int
7782 main ()
7783 {
7784 char* cs = nl_langinfo(CODESET); return !cs;
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_link "$LINENO"; then :
7790 am_cv_langinfo_codeset=yes
7791 else
7792 am_cv_langinfo_codeset=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7799 $as_echo "$am_cv_langinfo_codeset" >&6; }
7800 if test $am_cv_langinfo_codeset = yes; then
7801
7802 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7803
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7816 $as_echo_n "checking for working fcntl.h... " >&6; }
7817 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test "$cross_compiling" = yes; then :
7821 gl_cv_header_working_fcntl_h=cross-compiling
7822 else
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <sys/stat.h>
7827 #if HAVE_UNISTD_H
7828 # include <unistd.h>
7829 #else /* on Windows with MSVC */
7830 # include <io.h>
7831 # include <stdlib.h>
7832 # defined sleep(n) _sleep ((n) * 1000)
7833 #endif
7834 #include <fcntl.h>
7835 #ifndef O_NOATIME
7836 #define O_NOATIME 0
7837 #endif
7838 #ifndef O_NOFOLLOW
7839 #define O_NOFOLLOW 0
7840 #endif
7841 static int const constants[] =
7842 {
7843 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7844 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7845 };
7846
7847 int
7848 main ()
7849 {
7850
7851 int result = !constants;
7852 #if HAVE_SYMLINK
7853 {
7854 static char const sym[] = "conftest.sym";
7855 if (symlink ("/dev/null", sym) != 0)
7856 result |= 2;
7857 else
7858 {
7859 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7860 if (fd >= 0)
7861 {
7862 close (fd);
7863 result |= 4;
7864 }
7865 }
7866 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7867 result |= 2;
7868 else
7869 {
7870 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7871 if (fd >= 0)
7872 {
7873 close (fd);
7874 result |= 4;
7875 }
7876 }
7877 unlink (sym);
7878 }
7879 #endif
7880 {
7881 static char const file[] = "confdefs.h";
7882 int fd = open (file, O_RDONLY | O_NOATIME);
7883 if (fd < 0)
7884 result |= 8;
7885 else
7886 {
7887 struct stat st0;
7888 if (fstat (fd, &st0) != 0)
7889 result |= 16;
7890 else
7891 {
7892 char c;
7893 sleep (1);
7894 if (read (fd, &c, 1) != 1)
7895 result |= 24;
7896 else
7897 {
7898 if (close (fd) != 0)
7899 result |= 32;
7900 else
7901 {
7902 struct stat st1;
7903 if (stat (file, &st1) != 0)
7904 result |= 40;
7905 else
7906 if (st0.st_atime != st1.st_atime)
7907 result |= 64;
7908 }
7909 }
7910 }
7911 }
7912 }
7913 return result;
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_run "$LINENO"; then :
7919 gl_cv_header_working_fcntl_h=yes
7920 else
7921 case $? in #(
7922 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7923 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7924 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7925 *) gl_cv_header_working_fcntl_h='no';;
7926 esac
7927 fi
7928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929 conftest.$ac_objext conftest.beam conftest.$ac_ext
7930 fi
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7934 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7935
7936 case $gl_cv_header_working_fcntl_h in #(
7937 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7938 *) ac_val=1;;
7939 esac
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_WORKING_O_NOATIME $ac_val
7943 _ACEOF
7944
7945
7946 case $gl_cv_header_working_fcntl_h in #(
7947 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7948 *) ac_val=1;;
7949 esac
7950
7951 cat >>confdefs.h <<_ACEOF
7952 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7953 _ACEOF
7954
7955
7956 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7957 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7958 ac_have_decl=1
7959 else
7960 ac_have_decl=0
7961 fi
7962
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7965 _ACEOF
7966
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7969 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7970 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975
7976 #include <features.h>
7977 #ifdef __GNU_LIBRARY__
7978 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7979 Lucky GNU user
7980 #endif
7981 #endif
7982 #ifdef __UCLIBC__
7983 Lucky user
7984 #endif
7985
7986 _ACEOF
7987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7988 $EGREP "Lucky" >/dev/null 2>&1; then :
7989 ac_cv_gnu_library_2_1=yes
7990 else
7991 ac_cv_gnu_library_2_1=no
7992 fi
7993 rm -f conftest*
7994
7995
7996
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7999 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8000
8001 GLIBC21="$ac_cv_gnu_library_2_1"
8002
8003
8004
8005
8006
8007 GNULIB_BTOWC=0;
8008 GNULIB_WCTOB=0;
8009 GNULIB_MBSINIT=0;
8010 GNULIB_MBRTOWC=0;
8011 GNULIB_MBRLEN=0;
8012 GNULIB_MBSRTOWCS=0;
8013 GNULIB_MBSNRTOWCS=0;
8014 GNULIB_WCRTOMB=0;
8015 GNULIB_WCSRTOMBS=0;
8016 GNULIB_WCSNRTOMBS=0;
8017 GNULIB_WCWIDTH=0;
8018 GNULIB_WMEMCHR=0;
8019 GNULIB_WMEMCMP=0;
8020 GNULIB_WMEMCPY=0;
8021 GNULIB_WMEMMOVE=0;
8022 GNULIB_WMEMSET=0;
8023 GNULIB_WCSLEN=0;
8024 GNULIB_WCSNLEN=0;
8025 GNULIB_WCSCPY=0;
8026 GNULIB_WCPCPY=0;
8027 GNULIB_WCSNCPY=0;
8028 GNULIB_WCPNCPY=0;
8029 GNULIB_WCSCAT=0;
8030 GNULIB_WCSNCAT=0;
8031 GNULIB_WCSCMP=0;
8032 GNULIB_WCSNCMP=0;
8033 GNULIB_WCSCASECMP=0;
8034 GNULIB_WCSNCASECMP=0;
8035 GNULIB_WCSCOLL=0;
8036 GNULIB_WCSXFRM=0;
8037 GNULIB_WCSDUP=0;
8038 GNULIB_WCSCHR=0;
8039 GNULIB_WCSRCHR=0;
8040 GNULIB_WCSCSPN=0;
8041 GNULIB_WCSSPN=0;
8042 GNULIB_WCSPBRK=0;
8043 GNULIB_WCSSTR=0;
8044 GNULIB_WCSTOK=0;
8045 GNULIB_WCSWIDTH=0;
8046 HAVE_BTOWC=1;
8047 HAVE_MBSINIT=1;
8048 HAVE_MBRTOWC=1;
8049 HAVE_MBRLEN=1;
8050 HAVE_MBSRTOWCS=1;
8051 HAVE_MBSNRTOWCS=1;
8052 HAVE_WCRTOMB=1;
8053 HAVE_WCSRTOMBS=1;
8054 HAVE_WCSNRTOMBS=1;
8055 HAVE_WMEMCHR=1;
8056 HAVE_WMEMCMP=1;
8057 HAVE_WMEMCPY=1;
8058 HAVE_WMEMMOVE=1;
8059 HAVE_WMEMSET=1;
8060 HAVE_WCSLEN=1;
8061 HAVE_WCSNLEN=1;
8062 HAVE_WCSCPY=1;
8063 HAVE_WCPCPY=1;
8064 HAVE_WCSNCPY=1;
8065 HAVE_WCPNCPY=1;
8066 HAVE_WCSCAT=1;
8067 HAVE_WCSNCAT=1;
8068 HAVE_WCSCMP=1;
8069 HAVE_WCSNCMP=1;
8070 HAVE_WCSCASECMP=1;
8071 HAVE_WCSNCASECMP=1;
8072 HAVE_WCSCOLL=1;
8073 HAVE_WCSXFRM=1;
8074 HAVE_WCSDUP=1;
8075 HAVE_WCSCHR=1;
8076 HAVE_WCSRCHR=1;
8077 HAVE_WCSCSPN=1;
8078 HAVE_WCSSPN=1;
8079 HAVE_WCSPBRK=1;
8080 HAVE_WCSSTR=1;
8081 HAVE_WCSTOK=1;
8082 HAVE_WCSWIDTH=1;
8083 HAVE_DECL_WCTOB=1;
8084 HAVE_DECL_WCWIDTH=1;
8085 REPLACE_MBSTATE_T=0;
8086 REPLACE_BTOWC=0;
8087 REPLACE_WCTOB=0;
8088 REPLACE_MBSINIT=0;
8089 REPLACE_MBRTOWC=0;
8090 REPLACE_MBRLEN=0;
8091 REPLACE_MBSRTOWCS=0;
8092 REPLACE_MBSNRTOWCS=0;
8093 REPLACE_WCRTOMB=0;
8094 REPLACE_WCSRTOMBS=0;
8095 REPLACE_WCSNRTOMBS=0;
8096 REPLACE_WCWIDTH=0;
8097 REPLACE_WCSWIDTH=0;
8098
8099
8100
8101
8102
8103
8104
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8107 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8108 if test "${gt_cv_locale_ja+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114
8115 #include <locale.h>
8116 #include <time.h>
8117 #if HAVE_LANGINFO_CODESET
8118 # include <langinfo.h>
8119 #endif
8120 #include <stdlib.h>
8121 #include <string.h>
8122 struct tm t;
8123 char buf[16];
8124 int main ()
8125 {
8126 const char *p;
8127 /* Check whether the given locale name is recognized by the system. */
8128 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8129 /* On native Windows, setlocale(category, "") looks at the system settings,
8130 not at the environment variables. Also, when an encoding suffix such
8131 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8132 category of the locale to "C". */
8133 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8134 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8135 return 1;
8136 #else
8137 if (setlocale (LC_ALL, "") == NULL) return 1;
8138 #endif
8139 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8140 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8141 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8142 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8143 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8144 some unit tests fail.
8145 On MirBSD 10, when an unsupported locale is specified, setlocale()
8146 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8147 #if HAVE_LANGINFO_CODESET
8148 {
8149 const char *cs = nl_langinfo (CODESET);
8150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8151 || strcmp (cs, "UTF-8") == 0)
8152 return 1;
8153 }
8154 #endif
8155 #ifdef __CYGWIN__
8156 /* On Cygwin, avoid locale names without encoding suffix, because the
8157 locale_charset() function relies on the encoding suffix. Note that
8158 LC_ALL is set on the command line. */
8159 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8160 #endif
8161 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8162 on Cygwin 1.5.x. */
8163 if (MB_CUR_MAX == 1)
8164 return 1;
8165 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8166 This excludes the UTF-8 encoding (except on MirBSD). */
8167 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8168 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8169 for (p = buf; *p != '\0'; p++)
8170 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8171 return 1;
8172 return 0;
8173 }
8174
8175 _ACEOF
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8177 (eval $ac_link) 2>&5
8178 ac_status=$?
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8181 case "$host_os" in
8182 # Handle native Windows specially, because there setlocale() interprets
8183 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8184 # "fr" or "fra" as "French" or "French_France.1252",
8185 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8186 # "ja" as "Japanese" or "Japanese_Japan.932",
8187 # and similar.
8188 mingw*)
8189 # Note that on native Windows, the Japanese locale is
8190 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8191 # cannot use it here.
8192 gt_cv_locale_ja=none
8193 ;;
8194 *)
8195 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8196 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8197 # configure script would override the LC_ALL setting. Likewise for
8198 # LC_CTYPE, which is also set at the beginning of the configure script.
8199 # Test for the AIX locale name.
8200 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8201 gt_cv_locale_ja=ja_JP
8202 else
8203 # Test for the locale name with explicit encoding suffix.
8204 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8205 gt_cv_locale_ja=ja_JP.EUC-JP
8206 else
8207 # Test for the HP-UX, OSF/1, NetBSD locale name.
8208 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8209 gt_cv_locale_ja=ja_JP.eucJP
8210 else
8211 # Test for the IRIX, FreeBSD locale name.
8212 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8213 gt_cv_locale_ja=ja_JP.EUC
8214 else
8215 # Test for the Solaris 7 locale name.
8216 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8217 gt_cv_locale_ja=ja
8218 else
8219 # Special test for NetBSD 1.6.
8220 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8221 gt_cv_locale_ja=ja_JP.eucJP
8222 else
8223 # None found.
8224 gt_cv_locale_ja=none
8225 fi
8226 fi
8227 fi
8228 fi
8229 fi
8230 fi
8231 ;;
8232 esac
8233 fi
8234 rm -fr conftest*
8235
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8238 $as_echo "$gt_cv_locale_ja" >&6; }
8239 LOCALE_JA=$gt_cv_locale_ja
8240
8241
8242
8243
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8246 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8247 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253
8254 #include <locale.h>
8255 #include <stdlib.h>
8256 #include <time.h>
8257 #if HAVE_LANGINFO_CODESET
8258 # include <langinfo.h>
8259 #endif
8260 #include <stdlib.h>
8261 #include <string.h>
8262 struct tm t;
8263 char buf[16];
8264 int main ()
8265 {
8266 const char *p;
8267 /* Check whether the given locale name is recognized by the system. */
8268 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8269 /* On native Windows, setlocale(category, "") looks at the system settings,
8270 not at the environment variables. Also, when an encoding suffix such
8271 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8272 category of the locale to "C". */
8273 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8274 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8275 return 1;
8276 #else
8277 if (setlocale (LC_ALL, "") == NULL) return 1;
8278 #endif
8279 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8280 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8281 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8282 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8283 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8284 some unit tests fail.
8285 On MirBSD 10, when an unsupported locale is specified, setlocale()
8286 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8287 #if HAVE_LANGINFO_CODESET
8288 {
8289 const char *cs = nl_langinfo (CODESET);
8290 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8291 || strcmp (cs, "UTF-8") == 0)
8292 return 1;
8293 }
8294 #endif
8295 #ifdef __CYGWIN__
8296 /* On Cygwin, avoid locale names without encoding suffix, because the
8297 locale_charset() function relies on the encoding suffix. Note that
8298 LC_ALL is set on the command line. */
8299 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8300 #endif
8301 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8302 This excludes the UTF-8 encoding (except on MirBSD). */
8303 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8304 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8305 for (p = buf; *p != '\0'; p++)
8306 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8307 return 1;
8308 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8309 single wide character. This excludes the GB2312 and GBK encodings. */
8310 if (mblen ("\203\062\332\066", 5) != 4)
8311 return 1;
8312 return 0;
8313 }
8314
8315 _ACEOF
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8321 case "$host_os" in
8322 # Handle native Windows specially, because there setlocale() interprets
8323 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8324 # "fr" or "fra" as "French" or "French_France.1252",
8325 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8326 # "ja" as "Japanese" or "Japanese_Japan.932",
8327 # and similar.
8328 mingw*)
8329 # Test for the hypothetical native Windows locale name.
8330 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8331 gt_cv_locale_zh_CN=Chinese_China.54936
8332 else
8333 # None found.
8334 gt_cv_locale_zh_CN=none
8335 fi
8336 ;;
8337 solaris2.8)
8338 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8339 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8340 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8341 gt_cv_locale_zh_CN=none
8342 ;;
8343 *)
8344 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8345 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8346 # configure script would override the LC_ALL setting. Likewise for
8347 # LC_CTYPE, which is also set at the beginning of the configure script.
8348 # Test for the locale name without encoding suffix.
8349 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8350 gt_cv_locale_zh_CN=zh_CN
8351 else
8352 # Test for the locale name with explicit encoding suffix.
8353 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8354 gt_cv_locale_zh_CN=zh_CN.GB18030
8355 else
8356 # None found.
8357 gt_cv_locale_zh_CN=none
8358 fi
8359 fi
8360 ;;
8361 esac
8362 else
8363 # If there was a link error, due to mblen(), the system is so old that
8364 # it certainly doesn't have a chinese locale.
8365 gt_cv_locale_zh_CN=none
8366 fi
8367 rm -fr conftest*
8368
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8371 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8372 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8373
8374
8375
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8378 $as_echo_n "checking for a french Unicode locale... " >&6; }
8379 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385
8386 #include <locale.h>
8387 #include <time.h>
8388 #if HAVE_LANGINFO_CODESET
8389 # include <langinfo.h>
8390 #endif
8391 #include <stdlib.h>
8392 #include <string.h>
8393 struct tm t;
8394 char buf[16];
8395 int main () {
8396 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8397 imitates locale dependent behaviour by looking at the environment
8398 variables, and all locales use the UTF-8 encoding. */
8399 #if !(defined __BEOS__ || defined __HAIKU__)
8400 /* Check whether the given locale name is recognized by the system. */
8401 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8402 /* On native Windows, setlocale(category, "") looks at the system settings,
8403 not at the environment variables. Also, when an encoding suffix such
8404 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8405 category of the locale to "C". */
8406 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8407 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8408 return 1;
8409 # else
8410 if (setlocale (LC_ALL, "") == NULL) return 1;
8411 # endif
8412 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8413 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8414 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8415 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8416 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8417 some unit tests fail. */
8418 # if HAVE_LANGINFO_CODESET
8419 {
8420 const char *cs = nl_langinfo (CODESET);
8421 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8422 return 1;
8423 }
8424 # endif
8425 # ifdef __CYGWIN__
8426 /* On Cygwin, avoid locale names without encoding suffix, because the
8427 locale_charset() function relies on the encoding suffix. Note that
8428 LC_ALL is set on the command line. */
8429 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8430 # endif
8431 /* Check whether in the abbreviation of the second month, the second
8432 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8433 two bytes long, with UTF-8 encoding. */
8434 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8435 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8436 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8437 return 1;
8438 #endif
8439 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8440 /* Check whether the decimal separator is a comma.
8441 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8442 are nl_langinfo(RADIXCHAR) are both ".". */
8443 if (localeconv () ->decimal_point[0] != ',') return 1;
8444 #endif
8445 return 0;
8446 }
8447
8448 _ACEOF
8449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8450 (eval $ac_link) 2>&5
8451 ac_status=$?
8452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8454 case "$host_os" in
8455 # Handle native Windows specially, because there setlocale() interprets
8456 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8457 # "fr" or "fra" as "French" or "French_France.1252",
8458 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8459 # "ja" as "Japanese" or "Japanese_Japan.932",
8460 # and similar.
8461 mingw*)
8462 # Test for the hypothetical native Windows locale name.
8463 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8464 gt_cv_locale_fr_utf8=French_France.65001
8465 else
8466 # None found.
8467 gt_cv_locale_fr_utf8=none
8468 fi
8469 ;;
8470 *)
8471 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8472 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8473 # configure script would override the LC_ALL setting. Likewise for
8474 # LC_CTYPE, which is also set at the beginning of the configure script.
8475 # Test for the usual locale name.
8476 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8477 gt_cv_locale_fr_utf8=fr_FR
8478 else
8479 # Test for the locale name with explicit encoding suffix.
8480 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8481 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8482 else
8483 # Test for the Solaris 7 locale name.
8484 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8485 gt_cv_locale_fr_utf8=fr.UTF-8
8486 else
8487 # None found.
8488 gt_cv_locale_fr_utf8=none
8489 fi
8490 fi
8491 fi
8492 ;;
8493 esac
8494 fi
8495 rm -fr conftest*
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8499 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8500 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8501
8502
8503
8504
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8507 $as_echo_n "checking for a traditional french locale... " >&6; }
8508 if test "${gt_cv_locale_fr+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514
8515 #include <locale.h>
8516 #include <time.h>
8517 #if HAVE_LANGINFO_CODESET
8518 # include <langinfo.h>
8519 #endif
8520 #include <stdlib.h>
8521 #include <string.h>
8522 struct tm t;
8523 char buf[16];
8524 int main () {
8525 /* Check whether the given locale name is recognized by the system. */
8526 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8527 /* On native Windows, setlocale(category, "") looks at the system settings,
8528 not at the environment variables. Also, when an encoding suffix such
8529 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8530 category of the locale to "C". */
8531 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8532 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8533 return 1;
8534 #else
8535 if (setlocale (LC_ALL, "") == NULL) return 1;
8536 #endif
8537 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8538 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8539 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8540 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8541 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8542 some unit tests fail.
8543 On MirBSD 10, when an unsupported locale is specified, setlocale()
8544 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8545 #if HAVE_LANGINFO_CODESET
8546 {
8547 const char *cs = nl_langinfo (CODESET);
8548 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8549 || strcmp (cs, "UTF-8") == 0)
8550 return 1;
8551 }
8552 #endif
8553 #ifdef __CYGWIN__
8554 /* On Cygwin, avoid locale names without encoding suffix, because the
8555 locale_charset() function relies on the encoding suffix. Note that
8556 LC_ALL is set on the command line. */
8557 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8558 #endif
8559 /* Check whether in the abbreviation of the second month, the second
8560 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8561 one byte long. This excludes the UTF-8 encoding. */
8562 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8563 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8564 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8565 /* Check whether the decimal separator is a comma.
8566 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8567 are nl_langinfo(RADIXCHAR) are both ".". */
8568 if (localeconv () ->decimal_point[0] != ',') return 1;
8569 #endif
8570 return 0;
8571 }
8572
8573 _ACEOF
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8575 (eval $ac_link) 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8579 case "$host_os" in
8580 # Handle native Windows specially, because there setlocale() interprets
8581 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8582 # "fr" or "fra" as "French" or "French_France.1252",
8583 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8584 # "ja" as "Japanese" or "Japanese_Japan.932",
8585 # and similar.
8586 mingw*)
8587 # Test for the native Windows locale name.
8588 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8589 gt_cv_locale_fr=French_France.1252
8590 else
8591 # None found.
8592 gt_cv_locale_fr=none
8593 fi
8594 ;;
8595 *)
8596 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8597 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8598 # configure script would override the LC_ALL setting. Likewise for
8599 # LC_CTYPE, which is also set at the beginning of the configure script.
8600 # Test for the usual locale name.
8601 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8602 gt_cv_locale_fr=fr_FR
8603 else
8604 # Test for the locale name with explicit encoding suffix.
8605 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8606 gt_cv_locale_fr=fr_FR.ISO-8859-1
8607 else
8608 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8609 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8610 gt_cv_locale_fr=fr_FR.ISO8859-1
8611 else
8612 # Test for the HP-UX locale name.
8613 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8614 gt_cv_locale_fr=fr_FR.iso88591
8615 else
8616 # Test for the Solaris 7 locale name.
8617 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8618 gt_cv_locale_fr=fr
8619 else
8620 # None found.
8621 gt_cv_locale_fr=none
8622 fi
8623 fi
8624 fi
8625 fi
8626 fi
8627 ;;
8628 esac
8629 fi
8630 rm -fr conftest*
8631
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8634 $as_echo "$gt_cv_locale_fr" >&6; }
8635 LOCALE_FR=$gt_cv_locale_fr
8636
8637
8638
8639
8640
8641
8642
8643 GNULIB_FFSL=0;
8644 GNULIB_FFSLL=0;
8645 GNULIB_MEMCHR=0;
8646 GNULIB_MEMMEM=0;
8647 GNULIB_MEMPCPY=0;
8648 GNULIB_MEMRCHR=0;
8649 GNULIB_RAWMEMCHR=0;
8650 GNULIB_STPCPY=0;
8651 GNULIB_STPNCPY=0;
8652 GNULIB_STRCHRNUL=0;
8653 GNULIB_STRDUP=0;
8654 GNULIB_STRNCAT=0;
8655 GNULIB_STRNDUP=0;
8656 GNULIB_STRNLEN=0;
8657 GNULIB_STRPBRK=0;
8658 GNULIB_STRSEP=0;
8659 GNULIB_STRSTR=0;
8660 GNULIB_STRCASESTR=0;
8661 GNULIB_STRTOK_R=0;
8662 GNULIB_MBSLEN=0;
8663 GNULIB_MBSNLEN=0;
8664 GNULIB_MBSCHR=0;
8665 GNULIB_MBSRCHR=0;
8666 GNULIB_MBSSTR=0;
8667 GNULIB_MBSCASECMP=0;
8668 GNULIB_MBSNCASECMP=0;
8669 GNULIB_MBSPCASECMP=0;
8670 GNULIB_MBSCASESTR=0;
8671 GNULIB_MBSCSPN=0;
8672 GNULIB_MBSPBRK=0;
8673 GNULIB_MBSSPN=0;
8674 GNULIB_MBSSEP=0;
8675 GNULIB_MBSTOK_R=0;
8676 GNULIB_STRERROR=0;
8677 GNULIB_STRERROR_R=0;
8678 GNULIB_STRSIGNAL=0;
8679 GNULIB_STRVERSCMP=0;
8680 HAVE_MBSLEN=0;
8681 HAVE_FFSL=1;
8682 HAVE_FFSLL=1;
8683 HAVE_MEMCHR=1;
8684 HAVE_DECL_MEMMEM=1;
8685 HAVE_MEMPCPY=1;
8686 HAVE_DECL_MEMRCHR=1;
8687 HAVE_RAWMEMCHR=1;
8688 HAVE_STPCPY=1;
8689 HAVE_STPNCPY=1;
8690 HAVE_STRCHRNUL=1;
8691 HAVE_DECL_STRDUP=1;
8692 HAVE_DECL_STRNDUP=1;
8693 HAVE_DECL_STRNLEN=1;
8694 HAVE_STRPBRK=1;
8695 HAVE_STRSEP=1;
8696 HAVE_STRCASESTR=1;
8697 HAVE_DECL_STRTOK_R=1;
8698 HAVE_DECL_STRERROR_R=1;
8699 HAVE_DECL_STRSIGNAL=1;
8700 HAVE_STRVERSCMP=1;
8701 REPLACE_MEMCHR=0;
8702 REPLACE_MEMMEM=0;
8703 REPLACE_STPNCPY=0;
8704 REPLACE_STRDUP=0;
8705 REPLACE_STRSTR=0;
8706 REPLACE_STRCASESTR=0;
8707 REPLACE_STRCHRNUL=0;
8708 REPLACE_STRERROR=0;
8709 REPLACE_STRERROR_R=0;
8710 REPLACE_STRNCAT=0;
8711 REPLACE_STRNDUP=0;
8712 REPLACE_STRNLEN=0;
8713 REPLACE_STRSIGNAL=0;
8714 REPLACE_STRTOK_R=0;
8715 UNDEFINE_STRTOK_R=0;
8716
8717
8718
8719
8720
8721 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8722 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8723 # irrelevant for anonymous mappings.
8724 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8725 if test "x$ac_cv_func_mmap" = x""yes; then :
8726 gl_have_mmap=yes
8727 else
8728 gl_have_mmap=no
8729 fi
8730
8731
8732 # Try to allow MAP_ANONYMOUS.
8733 gl_have_mmap_anonymous=no
8734 if test $gl_have_mmap = yes; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8736 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739
8740 #include <sys/mman.h>
8741 #ifdef MAP_ANONYMOUS
8742 I cannot identify this map
8743 #endif
8744
8745 _ACEOF
8746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8747 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8748 gl_have_mmap_anonymous=yes
8749 fi
8750 rm -f conftest*
8751
8752 if test $gl_have_mmap_anonymous != yes; then
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 #include <sys/mman.h>
8757 #ifdef MAP_ANON
8758 I cannot identify this map
8759 #endif
8760
8761 _ACEOF
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8764
8765 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8766
8767 gl_have_mmap_anonymous=yes
8768 fi
8769 rm -f conftest*
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8773 $as_echo "$gl_have_mmap_anonymous" >&6; }
8774 if test $gl_have_mmap_anonymous = yes; then
8775
8776 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8777
8778 fi
8779 fi
8780
8781
8782
8783
8784
8785
8786 if test $HAVE_MEMCHR = 1; then
8787 # Detect platform-specific bugs in some versions of glibc:
8788 # memchr should not dereference anything with length 0
8789 # http://bugzilla.redhat.com/499689
8790 # memchr should not dereference overestimated length after a match
8791 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8792 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8793 # Assume that memchr works on platforms that lack mprotect.
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8795 $as_echo_n "checking whether memchr works... " >&6; }
8796 if test "${gl_cv_func_memchr_works+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 if test "$cross_compiling" = yes; then :
8800 gl_cv_func_memchr_works="guessing no"
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804
8805 #include <string.h>
8806 #if HAVE_SYS_MMAN_H
8807 # include <fcntl.h>
8808 # include <unistd.h>
8809 # include <sys/types.h>
8810 # include <sys/mman.h>
8811 # ifndef MAP_FILE
8812 # define MAP_FILE 0
8813 # endif
8814 #endif
8815
8816 int
8817 main ()
8818 {
8819
8820 int result = 0;
8821 char *fence = NULL;
8822 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8823 # if HAVE_MAP_ANONYMOUS
8824 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8825 const int fd = -1;
8826 # else /* !HAVE_MAP_ANONYMOUS */
8827 const int flags = MAP_FILE | MAP_PRIVATE;
8828 int fd = open ("/dev/zero", O_RDONLY, 0666);
8829 if (fd >= 0)
8830 # endif
8831 {
8832 int pagesize = getpagesize ();
8833 char *two_pages =
8834 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8835 flags, fd, 0);
8836 if (two_pages != (char *)(-1)
8837 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8838 fence = two_pages + pagesize;
8839 }
8840 #endif
8841 if (fence)
8842 {
8843 if (memchr (fence, 0, 0))
8844 result |= 1;
8845 strcpy (fence - 9, "12345678");
8846 if (memchr (fence - 9, 0, 79) != fence - 1)
8847 result |= 2;
8848 if (memchr (fence - 1, 0, 3) != fence - 1)
8849 result |= 4;
8850 }
8851 return result;
8852
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_c_try_run "$LINENO"; then :
8858 gl_cv_func_memchr_works=yes
8859 else
8860 gl_cv_func_memchr_works=no
8861 fi
8862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8863 conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 fi
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8868 $as_echo "$gl_cv_func_memchr_works" >&6; }
8869 if test "$gl_cv_func_memchr_works" != yes; then
8870 REPLACE_MEMCHR=1
8871 fi
8872 fi
8873
8874 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8875 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8876 ac_have_decl=1
8877 else
8878 ac_have_decl=0
8879 fi
8880
8881 cat >>confdefs.h <<_ACEOF
8882 #define HAVE_DECL_MEMMEM $ac_have_decl
8883 _ACEOF
8884
8885
8886
8887
8888
8889 for ac_func in memmem
8890 do :
8891 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8892 if test "x$ac_cv_func_memmem" = x""yes; then :
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_MEMMEM 1
8895 _ACEOF
8896
8897 fi
8898 done
8899
8900 if test $ac_cv_func_memmem = yes; then
8901 HAVE_MEMMEM=1
8902 else
8903 HAVE_MEMMEM=0
8904 fi
8905
8906 if test $ac_cv_have_decl_memmem = no; then
8907 HAVE_DECL_MEMMEM=0
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8910 $as_echo_n "checking whether memmem works... " >&6; }
8911 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test "$cross_compiling" = yes; then :
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917
8918 #ifdef __GNU_LIBRARY__
8919 #include <features.h>
8920 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8921 || __GLIBC_MINOR__ > 12)) \
8922 || (__GLIBC__ > 2)) \
8923 || defined __UCLIBC__
8924 Lucky user
8925 #endif
8926 #elif defined __CYGWIN__
8927 #include <cygwin/version.h>
8928 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8929 Lucky user
8930 #endif
8931 #else
8932 Lucky user
8933 #endif
8934
8935 _ACEOF
8936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8937 $EGREP "Lucky user" >/dev/null 2>&1; then :
8938 gl_cv_func_memmem_works_always="guessing yes"
8939 else
8940 gl_cv_func_memmem_works_always="guessing no"
8941 fi
8942 rm -f conftest*
8943
8944
8945 else
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948
8949 #include <string.h> /* for memmem */
8950 #define P "_EF_BF_BD"
8951 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8952 #define NEEDLE P P P P P
8953
8954 int
8955 main ()
8956 {
8957
8958 int result = 0;
8959 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8960 result |= 1;
8961 /* Check for empty needle behavior. */
8962 {
8963 const char *haystack = "AAA";
8964 if (memmem (haystack, 3, NULL, 0) != haystack)
8965 result |= 2;
8966 }
8967 return result;
8968
8969 ;
8970 return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_run "$LINENO"; then :
8974 gl_cv_func_memmem_works_always=yes
8975 else
8976 gl_cv_func_memmem_works_always=no
8977 fi
8978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8979 conftest.$ac_objext conftest.beam conftest.$ac_ext
8980 fi
8981
8982
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8985 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8986 case "$gl_cv_func_memmem_works_always" in
8987 *yes) ;;
8988 *)
8989 REPLACE_MEMMEM=1
8990 ;;
8991 esac
8992 fi
8993 :
8994
8995
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8998 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8999 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004
9005 #include <stdbool.h>
9006 #ifndef bool
9007 "error: bool is not defined"
9008 #endif
9009 #ifndef false
9010 "error: false is not defined"
9011 #endif
9012 #if false
9013 "error: false is not 0"
9014 #endif
9015 #ifndef true
9016 "error: true is not defined"
9017 #endif
9018 #if true != 1
9019 "error: true is not 1"
9020 #endif
9021 #ifndef __bool_true_false_are_defined
9022 "error: __bool_true_false_are_defined is not defined"
9023 #endif
9024
9025 struct s { _Bool s: 1; _Bool t; } s;
9026
9027 char a[true == 1 ? 1 : -1];
9028 char b[false == 0 ? 1 : -1];
9029 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9030 char d[(bool) 0.5 == true ? 1 : -1];
9031 /* See body of main program for 'e'. */
9032 char f[(_Bool) 0.0 == false ? 1 : -1];
9033 char g[true];
9034 char h[sizeof (_Bool)];
9035 char i[sizeof s.t];
9036 enum { j = false, k = true, l = false * true, m = true * 256 };
9037 /* The following fails for
9038 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9039 _Bool n[m];
9040 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9041 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9042 /* Catch a bug in an HP-UX C compiler. See
9043 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9044 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9045 */
9046 _Bool q = true;
9047 _Bool *pq = &q;
9048
9049 int
9050 main ()
9051 {
9052
9053 bool e = &s;
9054 *pq |= q;
9055 *pq |= ! q;
9056 /* Refer to every declared value, to avoid compiler optimizations. */
9057 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9058 + !m + !n + !o + !p + !q + !pq);
9059
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 ac_cv_header_stdbool_h=yes
9066 else
9067 ac_cv_header_stdbool_h=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9072 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9073 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9074 if test "x$ac_cv_type__Bool" = x""yes; then :
9075
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE__BOOL 1
9078 _ACEOF
9079
9080
9081 fi
9082
9083
9084
9085 REPLACE_NULL=0;
9086 HAVE_WCHAR_T=1;
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9090 $as_echo_n "checking for wchar_t... " >&6; }
9091 if test "${gt_cv_c_wchar_t+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 #include <stddef.h>
9097 wchar_t foo = (wchar_t)'\0';
9098 int
9099 main ()
9100 {
9101
9102 ;
9103 return 0;
9104 }
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 gt_cv_c_wchar_t=yes
9108 else
9109 gt_cv_c_wchar_t=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9114 $as_echo "$gt_cv_c_wchar_t" >&6; }
9115 if test $gt_cv_c_wchar_t = yes; then
9116
9117 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9118
9119 fi
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9122 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9123 if test "${ac_cv_c_restrict+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_cv_c_restrict=no
9127 # The order here caters to the fact that C++ does not require restrict.
9128 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 typedef int * int_ptr;
9132 int foo (int_ptr $ac_kw ip) {
9133 return ip[0];
9134 }
9135 int
9136 main ()
9137 {
9138 int s[1];
9139 int * $ac_kw t = s;
9140 t[0] = 0;
9141 return foo(t)
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 ac_cv_c_restrict=$ac_kw
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 test "$ac_cv_c_restrict" != no && break
9151 done
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9155 $as_echo "$ac_cv_c_restrict" >&6; }
9156
9157 case $ac_cv_c_restrict in
9158 restrict) ;;
9159 no) $as_echo "#define restrict /**/" >>confdefs.h
9160 ;;
9161 *) cat >>confdefs.h <<_ACEOF
9162 #define restrict $ac_cv_c_restrict
9163 _ACEOF
9164 ;;
9165 esac
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178 if test $gl_cv_have_include_next = yes; then
9179 gl_cv_next_string_h='<'string.h'>'
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9182 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9183 if test "${gl_cv_next_string_h+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <string.h>
9190
9191 _ACEOF
9192 case "$host_os" in
9193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9194 *) gl_absname_cpp="$ac_cpp" ;;
9195 esac
9196
9197 case "$host_os" in
9198 mingw*)
9199 gl_dirsep_regex='[/\\]'
9200 ;;
9201 *)
9202 gl_dirsep_regex='\/'
9203 ;;
9204 esac
9205 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9206
9207 gl_header_literal_regex=`echo 'string.h' \
9208 | sed -e "$gl_make_literal_regex_sed"`
9209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9211 s|^/[^/]|//&|
9212 p
9213 q
9214 }'
9215 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9216 sed -n "$gl_absolute_header_sed"`'"'
9217
9218
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9221 $as_echo "$gl_cv_next_string_h" >&6; }
9222 fi
9223 NEXT_STRING_H=$gl_cv_next_string_h
9224
9225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9227 gl_next_as_first_directive='<'string.h'>'
9228 else
9229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9230 gl_next_as_first_directive=$gl_cv_next_string_h
9231 fi
9232 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9233
9234
9235
9236
9237
9238
9239 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
9240 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9242 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9243 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #include <string.h>
9249
9250 int
9251 main ()
9252 {
9253 #undef $gl_func
9254 (void) $gl_func;
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_compile "$LINENO"; then :
9260 eval "$as_gl_Symbol=yes"
9261 else
9262 eval "$as_gl_Symbol=no"
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 fi
9266 eval ac_res=\$$as_gl_Symbol
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9268 $as_echo "$ac_res" >&6; }
9269 eval as_val=\$$as_gl_Symbol
9270 if test "x$as_val" = x""yes; then :
9271 cat >>confdefs.h <<_ACEOF
9272 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9273 _ACEOF
9274
9275 eval ac_cv_have_decl_$gl_func=yes
9276 fi
9277 done
9278
9279
9280
9281
9282 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9283 if test "x$ac_cv_type_pid_t" = x""yes; then :
9284
9285 else
9286
9287 cat >>confdefs.h <<_ACEOF
9288 #define pid_t int
9289 _ACEOF
9290
9291 fi
9292
9293 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9294 if test "x$ac_cv_type_mode_t" = x""yes; then :
9295
9296 else
9297
9298 cat >>confdefs.h <<_ACEOF
9299 #define mode_t int
9300 _ACEOF
9301
9302 fi
9303
9304
9305
9306 WINDOWS_64_BIT_OFF_T=0
9307
9308
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9311 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9312 if test -z "$MKDIR_P"; then
9313 if test "${ac_cv_path_mkdir+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9318 do
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_prog in mkdir gmkdir; do
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9324 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9325 'mkdir (GNU coreutils) '* | \
9326 'mkdir (coreutils) '* | \
9327 'mkdir (fileutils) '4.1*)
9328 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9329 break 3;;
9330 esac
9331 done
9332 done
9333 done
9334 IFS=$as_save_IFS
9335
9336 fi
9337
9338 if test "${ac_cv_path_mkdir+set}" = set; then
9339 MKDIR_P="$ac_cv_path_mkdir -p"
9340 else
9341 # As a last resort, use the slow shell script. Don't cache a
9342 # value for MKDIR_P within a source directory, because that will
9343 # break other packages using the cache if that directory is
9344 # removed, or if the value is a relative name.
9345 test -d ./--version && rmdir ./--version
9346 MKDIR_P="$ac_install_sh -d"
9347 fi
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9350 $as_echo "$MKDIR_P" >&6; }
9351
9352
9353 GNULIB_CHDIR=0;
9354 GNULIB_CHOWN=0;
9355 GNULIB_CLOSE=0;
9356 GNULIB_DUP=0;
9357 GNULIB_DUP2=0;
9358 GNULIB_DUP3=0;
9359 GNULIB_ENVIRON=0;
9360 GNULIB_EUIDACCESS=0;
9361 GNULIB_FACCESSAT=0;
9362 GNULIB_FCHDIR=0;
9363 GNULIB_FCHOWNAT=0;
9364 GNULIB_FDATASYNC=0;
9365 GNULIB_FSYNC=0;
9366 GNULIB_FTRUNCATE=0;
9367 GNULIB_GETCWD=0;
9368 GNULIB_GETDOMAINNAME=0;
9369 GNULIB_GETDTABLESIZE=0;
9370 GNULIB_GETGROUPS=0;
9371 GNULIB_GETHOSTNAME=0;
9372 GNULIB_GETLOGIN=0;
9373 GNULIB_GETLOGIN_R=0;
9374 GNULIB_GETPAGESIZE=0;
9375 GNULIB_GETUSERSHELL=0;
9376 GNULIB_GROUP_MEMBER=0;
9377 GNULIB_ISATTY=0;
9378 GNULIB_LCHOWN=0;
9379 GNULIB_LINK=0;
9380 GNULIB_LINKAT=0;
9381 GNULIB_LSEEK=0;
9382 GNULIB_PIPE=0;
9383 GNULIB_PIPE2=0;
9384 GNULIB_PREAD=0;
9385 GNULIB_PWRITE=0;
9386 GNULIB_READ=0;
9387 GNULIB_READLINK=0;
9388 GNULIB_READLINKAT=0;
9389 GNULIB_RMDIR=0;
9390 GNULIB_SETHOSTNAME=0;
9391 GNULIB_SLEEP=0;
9392 GNULIB_SYMLINK=0;
9393 GNULIB_SYMLINKAT=0;
9394 GNULIB_TTYNAME_R=0;
9395 GNULIB_UNISTD_H_NONBLOCKING=0;
9396 GNULIB_UNISTD_H_SIGPIPE=0;
9397 GNULIB_UNLINK=0;
9398 GNULIB_UNLINKAT=0;
9399 GNULIB_USLEEP=0;
9400 GNULIB_WRITE=0;
9401 HAVE_CHOWN=1;
9402 HAVE_DUP2=1;
9403 HAVE_DUP3=1;
9404 HAVE_EUIDACCESS=1;
9405 HAVE_FACCESSAT=1;
9406 HAVE_FCHDIR=1;
9407 HAVE_FCHOWNAT=1;
9408 HAVE_FDATASYNC=1;
9409 HAVE_FSYNC=1;
9410 HAVE_FTRUNCATE=1;
9411 HAVE_GETDTABLESIZE=1;
9412 HAVE_GETGROUPS=1;
9413 HAVE_GETHOSTNAME=1;
9414 HAVE_GETLOGIN=1;
9415 HAVE_GETPAGESIZE=1;
9416 HAVE_GROUP_MEMBER=1;
9417 HAVE_LCHOWN=1;
9418 HAVE_LINK=1;
9419 HAVE_LINKAT=1;
9420 HAVE_PIPE=1;
9421 HAVE_PIPE2=1;
9422 HAVE_PREAD=1;
9423 HAVE_PWRITE=1;
9424 HAVE_READLINK=1;
9425 HAVE_READLINKAT=1;
9426 HAVE_SETHOSTNAME=1;
9427 HAVE_SLEEP=1;
9428 HAVE_SYMLINK=1;
9429 HAVE_SYMLINKAT=1;
9430 HAVE_UNLINKAT=1;
9431 HAVE_USLEEP=1;
9432 HAVE_DECL_ENVIRON=1;
9433 HAVE_DECL_FCHDIR=1;
9434 HAVE_DECL_FDATASYNC=1;
9435 HAVE_DECL_GETDOMAINNAME=1;
9436 HAVE_DECL_GETLOGIN_R=1;
9437 HAVE_DECL_GETPAGESIZE=1;
9438 HAVE_DECL_GETUSERSHELL=1;
9439 HAVE_DECL_SETHOSTNAME=1;
9440 HAVE_DECL_TTYNAME_R=1;
9441 HAVE_OS_H=0;
9442 HAVE_SYS_PARAM_H=0;
9443 REPLACE_CHOWN=0;
9444 REPLACE_CLOSE=0;
9445 REPLACE_DUP=0;
9446 REPLACE_DUP2=0;
9447 REPLACE_FCHOWNAT=0;
9448 REPLACE_FTRUNCATE=0;
9449 REPLACE_GETCWD=0;
9450 REPLACE_GETDOMAINNAME=0;
9451 REPLACE_GETLOGIN_R=0;
9452 REPLACE_GETGROUPS=0;
9453 REPLACE_GETPAGESIZE=0;
9454 REPLACE_ISATTY=0;
9455 REPLACE_LCHOWN=0;
9456 REPLACE_LINK=0;
9457 REPLACE_LINKAT=0;
9458 REPLACE_LSEEK=0;
9459 REPLACE_PREAD=0;
9460 REPLACE_PWRITE=0;
9461 REPLACE_READ=0;
9462 REPLACE_READLINK=0;
9463 REPLACE_RMDIR=0;
9464 REPLACE_SLEEP=0;
9465 REPLACE_SYMLINK=0;
9466 REPLACE_TTYNAME_R=0;
9467 REPLACE_UNLINK=0;
9468 REPLACE_UNLINKAT=0;
9469 REPLACE_USLEEP=0;
9470 REPLACE_WRITE=0;
9471 UNISTD_H_HAVE_WINSOCK2_H=0;
9472 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9473
9474
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9477 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9478 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 gl_cv_header_wchar_h_correct_inline=yes
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484
9485 #define wcstod renamed_wcstod
9486 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9487 <wchar.h>.
9488 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9489 included before <wchar.h>. */
9490 #include <stddef.h>
9491 #include <stdio.h>
9492 #include <time.h>
9493 #include <wchar.h>
9494 extern int zero (void);
9495 int main () { return zero(); }
9496
9497 _ACEOF
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }; then
9503 mv conftest.$ac_objext conftest1.$ac_objext
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506
9507 #define wcstod renamed_wcstod
9508 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9509 <wchar.h>.
9510 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9511 included before <wchar.h>. */
9512 #include <stddef.h>
9513 #include <stdio.h>
9514 #include <time.h>
9515 #include <wchar.h>
9516 int zero (void) { return 0; }
9517
9518 _ACEOF
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }; then
9524 mv conftest.$ac_objext conftest2.$ac_objext
9525 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9526 :
9527 else
9528 gl_cv_header_wchar_h_correct_inline=no
9529 fi
9530 fi
9531 fi
9532 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9533
9534 fi
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9536 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9537 if test $gl_cv_header_wchar_h_correct_inline = no; then
9538 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9539 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9540 C99 mode. You have four options:
9541 - Add the flag -fgnu89-inline to CC and reconfigure, or
9542 - Fix your include files, using parts of
9543 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9544 - Use a gcc version older than 4.3, or
9545 - Don't use the flags -std=c99 or -std=gnu99.
9546 Configuration aborted." "$LINENO" 5
9547 fi
9548
9549
9550
9551
9552
9553 if test $ac_cv_header_features_h = yes; then
9554 HAVE_FEATURES_H=1
9555 else
9556 HAVE_FEATURES_H=0
9557 fi
9558
9559
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9562 $as_echo_n "checking for wint_t... " >&6; }
9563 if test "${gt_cv_c_wint_t+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568
9569 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9570 <wchar.h>.
9571 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9572 before <wchar.h>. */
9573 #include <stddef.h>
9574 #include <stdio.h>
9575 #include <time.h>
9576 #include <wchar.h>
9577 wint_t foo = (wchar_t)'\0';
9578 int
9579 main ()
9580 {
9581
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"; then :
9587 gt_cv_c_wint_t=yes
9588 else
9589 gt_cv_c_wint_t=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9594 $as_echo "$gt_cv_c_wint_t" >&6; }
9595 if test $gt_cv_c_wint_t = yes; then
9596
9597 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9598
9599 fi
9600
9601
9602 GNULIB_ISWBLANK=0;
9603 GNULIB_WCTYPE=0;
9604 GNULIB_ISWCTYPE=0;
9605 GNULIB_WCTRANS=0;
9606 GNULIB_TOWCTRANS=0;
9607 HAVE_ISWBLANK=1;
9608 HAVE_WCTYPE_T=1;
9609 HAVE_WCTRANS_T=1;
9610 REPLACE_ISWBLANK=0;
9611
9612
9613
9614
9615 if false; then
9616 GL_COND_LIBTOOL_TRUE=
9617 GL_COND_LIBTOOL_FALSE='#'
9618 else
9619 GL_COND_LIBTOOL_TRUE='#'
9620 GL_COND_LIBTOOL_FALSE=
9621 fi
9622
9623 gl_cond_libtool=false
9624 gl_libdeps=
9625 gl_ltlibdeps=
9626 gl_m4_base='import/m4'
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 gl_source_base='import'
9637
9638
9639 if test $ac_cv_func_alloca_works = no; then
9640 :
9641 fi
9642
9643 # Define an additional variable used in the Makefile substitution.
9644 if test $ac_cv_working_alloca_h = yes; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9646 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9647 if test "${gl_cv_rpl_alloca+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653
9654 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9655 Need own alloca
9656 #endif
9657
9658 _ACEOF
9659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9660 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9661 gl_cv_rpl_alloca=yes
9662 else
9663 gl_cv_rpl_alloca=no
9664 fi
9665 rm -f conftest*
9666
9667
9668 fi
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9670 $as_echo "$gl_cv_rpl_alloca" >&6; }
9671 if test $gl_cv_rpl_alloca = yes; then
9672
9673 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9674
9675 ALLOCA_H=alloca.h
9676 else
9677 ALLOCA_H=
9678 fi
9679 else
9680 ALLOCA_H=alloca.h
9681 fi
9682
9683 if test -n "$ALLOCA_H"; then
9684 GL_GENERATE_ALLOCA_H_TRUE=
9685 GL_GENERATE_ALLOCA_H_FALSE='#'
9686 else
9687 GL_GENERATE_ALLOCA_H_TRUE='#'
9688 GL_GENERATE_ALLOCA_H_FALSE=
9689 fi
9690
9691
9692
9693 if test "x$datarootdir" = x; then
9694 datarootdir='${datadir}'
9695
9696 fi
9697 if test "x$docdir" = x; then
9698 docdir='${datarootdir}/doc/${PACKAGE}'
9699
9700 fi
9701 if test "x$htmldir" = x; then
9702 htmldir='${docdir}'
9703
9704 fi
9705 if test "x$dvidir" = x; then
9706 dvidir='${docdir}'
9707
9708 fi
9709 if test "x$pdfdir" = x; then
9710 pdfdir='${docdir}'
9711
9712 fi
9713 if test "x$psdir" = x; then
9714 psdir='${docdir}'
9715
9716 fi
9717 if test "x$lispdir" = x; then
9718 lispdir='${datarootdir}/emacs/site-lisp'
9719
9720 fi
9721 if test "x$localedir" = x; then
9722 localedir='${datarootdir}/locale'
9723
9724 fi
9725
9726 pkglibexecdir='${libexecdir}/${PACKAGE}'
9727
9728
9729
9730
9731
9732
9733 FLOAT_H=
9734 REPLACE_FLOAT_LDBL=0
9735 case "$host_os" in
9736 aix* | beos* | openbsd* | mirbsd* | irix*)
9737 FLOAT_H=float.h
9738 ;;
9739 freebsd*)
9740 case "$host_cpu" in
9741 i[34567]86 )
9742 FLOAT_H=float.h
9743 ;;
9744 x86_64 )
9745 # On x86_64 systems, the C compiler may still be generating
9746 # 32-bit code.
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9750 yes
9751 #endif
9752 _ACEOF
9753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754 $EGREP "yes" >/dev/null 2>&1; then :
9755
9756 else
9757 FLOAT_H=float.h
9758 fi
9759 rm -f conftest*
9760
9761 ;;
9762 esac
9763 ;;
9764 linux*)
9765 case "$host_cpu" in
9766 powerpc*)
9767 FLOAT_H=float.h
9768 ;;
9769 esac
9770 ;;
9771 esac
9772 case "$host_os" in
9773 aix* | freebsd* | linux*)
9774 if test -n "$FLOAT_H"; then
9775 REPLACE_FLOAT_LDBL=1
9776 fi
9777 ;;
9778 esac
9779
9780 REPLACE_ITOLD=0
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9782 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9783 if test "${gl_cv_func_itold_works+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786
9787 if test "$cross_compiling" = yes; then :
9788 case "$host" in
9789 sparc*-*-linux*)
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 #if defined __LP64__ || defined __arch64__
9793 yes
9794 #endif
9795 _ACEOF
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 $EGREP "yes" >/dev/null 2>&1; then :
9798 gl_cv_func_itold_works="guessing no"
9799 else
9800 gl_cv_func_itold_works="guessing yes"
9801 fi
9802 rm -f conftest*
9803
9804 ;;
9805 *) gl_cv_func_itold_works="guessing yes" ;;
9806 esac
9807
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811
9812 int i = -1;
9813 volatile long double ld;
9814 int main ()
9815 {
9816 ld += i * 1.0L;
9817 if (ld > 0)
9818 return 1;
9819 return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_run "$LINENO"; then :
9823 gl_cv_func_itold_works=yes
9824 else
9825 gl_cv_func_itold_works=no
9826 fi
9827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9828 conftest.$ac_objext conftest.beam conftest.$ac_ext
9829 fi
9830
9831
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9834 $as_echo "$gl_cv_func_itold_works" >&6; }
9835 case "$gl_cv_func_itold_works" in
9836 *no)
9837 REPLACE_ITOLD=1
9838 FLOAT_H=float.h
9839 ;;
9840 esac
9841
9842 if test -n "$FLOAT_H"; then
9843
9844
9845
9846
9847
9848
9849
9850
9851 if test $gl_cv_have_include_next = yes; then
9852 gl_cv_next_float_h='<'float.h'>'
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9855 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9856 if test "${gl_cv_next_float_h+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 #include <float.h>
9863
9864 _ACEOF
9865 case "$host_os" in
9866 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9867 *) gl_absname_cpp="$ac_cpp" ;;
9868 esac
9869
9870 case "$host_os" in
9871 mingw*)
9872 gl_dirsep_regex='[/\\]'
9873 ;;
9874 *)
9875 gl_dirsep_regex='\/'
9876 ;;
9877 esac
9878 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9879
9880 gl_header_literal_regex=`echo 'float.h' \
9881 | sed -e "$gl_make_literal_regex_sed"`
9882 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9884 s|^/[^/]|//&|
9885 p
9886 q
9887 }'
9888 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9889 sed -n "$gl_absolute_header_sed"`'"'
9890
9891
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9894 $as_echo "$gl_cv_next_float_h" >&6; }
9895 fi
9896 NEXT_FLOAT_H=$gl_cv_next_float_h
9897
9898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9900 gl_next_as_first_directive='<'float.h'>'
9901 else
9902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9903 gl_next_as_first_directive=$gl_cv_next_float_h
9904 fi
9905 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9906
9907
9908
9909
9910 fi
9911
9912 if test -n "$FLOAT_H"; then
9913 GL_GENERATE_FLOAT_H_TRUE=
9914 GL_GENERATE_FLOAT_H_FALSE='#'
9915 else
9916 GL_GENERATE_FLOAT_H_TRUE='#'
9917 GL_GENERATE_FLOAT_H_FALSE=
9918 fi
9919
9920
9921
9922 if test $REPLACE_FLOAT_LDBL = 1; then
9923
9924
9925
9926
9927
9928
9929
9930
9931 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9932
9933 fi
9934 if test $REPLACE_ITOLD = 1; then
9935
9936
9937
9938
9939
9940
9941
9942
9943 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9944
9945 fi
9946
9947
9948
9949
9950
9951 FNMATCH_H=
9952 gl_fnmatch_required_lowercase=`
9953 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9954 `
9955 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9957 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9958 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 if test $gl_fnmatch_required = GNU; then
9962 gl_fnmatch_gnu_start=
9963 gl_fnmatch_gnu_end=
9964 else
9965 gl_fnmatch_gnu_start='#if 0'
9966 gl_fnmatch_gnu_end='#endif'
9967 fi
9968 if test "$cross_compiling" = yes; then :
9969 eval "$gl_fnmatch_cache_var=\"guessing no\""
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <fnmatch.h>
9974 static int
9975 y (char const *pattern, char const *string, int flags)
9976 {
9977 return fnmatch (pattern, string, flags) == 0;
9978 }
9979 static int
9980 n (char const *pattern, char const *string, int flags)
9981 {
9982 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9983 }
9984
9985 int
9986 main ()
9987 {
9988 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9989 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9990 static char const A_1[] = { 'A' - 1, 0 };
9991 static char const A01[] = { 'A' + 1, 0 };
9992 static char const a_1[] = { 'a' - 1, 0 };
9993 static char const a01[] = { 'a' + 1, 0 };
9994 static char const bs_1[] = { '\\\\' - 1, 0 };
9995 static char const bs01[] = { '\\\\' + 1, 0 };
9996 int result = 0;
9997 if (!n ("a*", "", 0))
9998 return 1;
9999 if (!y ("a*", "abc", 0))
10000 return 1;
10001 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10002 return 1;
10003 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10004 return 2;
10005 if (!y ("a\\\\bc", "abc", 0))
10006 return 3;
10007 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10008 return 3;
10009 if (!y ("*x", ".x", 0))
10010 return 4;
10011 if (!n ("*x", ".x", FNM_PERIOD))
10012 return 4;
10013 if (!y (Apat, "\\\\", 0))
10014 return 5;
10015 if (!y (Apat, "A", 0))
10016 return 5;
10017 if (!y (apat, "\\\\", 0))
10018 return 5;
10019 if (!y (apat, "a", 0))
10020 return 5;
10021 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10022 return 5;
10023 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10024 return 5;
10025 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10026 return 5;
10027 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10028 return 5;
10029 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10030 return 5;
10031 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10032 return 5;
10033 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10034 return 5;
10035 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10036 return 5;
10037 $gl_fnmatch_gnu_start
10038 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10039 result |= 8;
10040 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10041 result |= 16;
10042 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10043 result |= 32;
10044 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10045 result |= 64;
10046 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10047 result |= 64;
10048 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10049 result |= 64;
10050 $gl_fnmatch_gnu_end
10051 return result;
10052
10053 ;
10054 return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_run "$LINENO"; then :
10058 eval "$gl_fnmatch_cache_var=yes"
10059 else
10060 eval "$gl_fnmatch_cache_var=no"
10061 fi
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063 conftest.$ac_objext conftest.beam conftest.$ac_ext
10064 fi
10065
10066
10067 fi
10068 eval ac_res=\$$gl_fnmatch_cache_var
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10070 $as_echo "$ac_res" >&6; }
10071 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10072 if test "$gl_fnmatch_result" = yes; then
10073 rm -f "$gl_source_base/fnmatch.h"
10074 else
10075 FNMATCH_H=fnmatch.h
10076 fi
10077
10078 if test -n "$FNMATCH_H"; then
10079 GL_GENERATE_FNMATCH_H_TRUE=
10080 GL_GENERATE_FNMATCH_H_FALSE='#'
10081 else
10082 GL_GENERATE_FNMATCH_H_TRUE='#'
10083 GL_GENERATE_FNMATCH_H_FALSE=
10084 fi
10085
10086
10087 if test -n "$FNMATCH_H"; then
10088
10089
10090
10091
10092
10093
10094
10095
10096 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10097
10098
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10102 _ACEOF
10103
10104
10105 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10106 "
10107 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10108 ac_have_decl=1
10109 else
10110 ac_have_decl=0
10111 fi
10112
10113 cat >>confdefs.h <<_ACEOF
10114 #define HAVE_DECL_ISBLANK $ac_have_decl
10115 _ACEOF
10116
10117
10118
10119
10120 fi
10121
10122
10123
10124
10125
10126 if test -n "$FNMATCH_H"; then
10127
10128
10129
10130
10131
10132
10133
10134
10135 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10136
10137
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10141 _ACEOF
10142
10143
10144 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10145 "
10146 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10147 ac_have_decl=1
10148 else
10149 ac_have_decl=0
10150 fi
10151
10152 cat >>confdefs.h <<_ACEOF
10153 #define HAVE_DECL_ISBLANK $ac_have_decl
10154 _ACEOF
10155
10156
10157
10158
10159 fi
10160
10161
10162
10163 FREXP_LIBM=
10164 if test $gl_cv_func_frexp_no_libm = no; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10166 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10167 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170
10171 save_LIBS="$LIBS"
10172 LIBS="$LIBS -lm"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 #include <math.h>
10176 double x;
10177 int
10178 main ()
10179 {
10180 int e; return frexp (x, &e) > 0;
10181 ;
10182 return 0;
10183 }
10184 _ACEOF
10185 if ac_fn_c_try_link "$LINENO"; then :
10186 gl_cv_func_frexp_in_libm=yes
10187 else
10188 gl_cv_func_frexp_in_libm=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS="$save_LIBS"
10193
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10196 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10197 if test $gl_cv_func_frexp_in_libm = yes; then
10198 FREXP_LIBM=-lm
10199 fi
10200 fi
10201 if test $gl_cv_func_frexp_no_libm = yes \
10202 || test $gl_cv_func_frexp_in_libm = yes; then
10203 save_LIBS="$LIBS"
10204 LIBS="$LIBS $FREXP_LIBM"
10205
10206
10207
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10209 $as_echo_n "checking whether frexp works... " >&6; }
10210 if test "${gl_cv_func_frexp_works+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213
10214 if test "$cross_compiling" = yes; then :
10215 case "$host_os" in
10216 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10217 *) gl_cv_func_frexp_works="guessing yes";;
10218 esac
10219
10220 else
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223
10224 #include <float.h>
10225 #include <math.h>
10226 #include <string.h>
10227 #if HAVE_ALARM
10228 # include <unistd.h>
10229 #endif
10230 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10231 ICC 10.0 has a bug when optimizing the expression -zero.
10232 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10233 to PowerPC on Mac OS X 10.5. */
10234 #if defined __hpux || defined __sgi || defined __ICC
10235 static double
10236 compute_minus_zero (void)
10237 {
10238 return -DBL_MIN * DBL_MIN;
10239 }
10240 # define minus_zero compute_minus_zero ()
10241 #else
10242 double minus_zero = -0.0;
10243 #endif
10244 int main()
10245 {
10246 int result = 0;
10247 int i;
10248 volatile double x;
10249 double zero = 0.0;
10250 #if HAVE_ALARM
10251 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10252 number. Let the test fail in this case. */
10253 alarm (5);
10254 #endif
10255 /* Test on denormalized numbers. */
10256 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10257 ;
10258 if (x > 0.0)
10259 {
10260 int exp;
10261 double y = frexp (x, &exp);
10262 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10263 On NetBSD: y = 0.75. Correct: y = 0.5. */
10264 if (y != 0.5)
10265 result |= 1;
10266 }
10267 /* Test on infinite numbers. */
10268 x = 1.0 / zero;
10269 {
10270 int exp;
10271 double y = frexp (x, &exp);
10272 if (y != x)
10273 result |= 2;
10274 }
10275 /* Test on negative zero. */
10276 x = minus_zero;
10277 {
10278 int exp;
10279 double y = frexp (x, &exp);
10280 if (memcmp (&y, &x, sizeof x))
10281 result |= 4;
10282 }
10283 return result;
10284 }
10285 _ACEOF
10286 if ac_fn_c_try_run "$LINENO"; then :
10287 gl_cv_func_frexp_works=yes
10288 else
10289 gl_cv_func_frexp_works=no
10290 fi
10291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
10293 fi
10294
10295
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10298 $as_echo "$gl_cv_func_frexp_works" >&6; }
10299
10300 LIBS="$save_LIBS"
10301 case "$gl_cv_func_frexp_works" in
10302 *yes) gl_func_frexp=yes ;;
10303 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10304 esac
10305 else
10306 gl_func_frexp=no
10307 fi
10308 if test $gl_func_frexp = yes; then
10309
10310 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10311
10312 fi
10313
10314
10315 if test $gl_func_frexp != yes; then
10316
10317
10318
10319
10320
10321
10322
10323
10324 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10325
10326 fi
10327
10328
10329
10330
10331
10332 GNULIB_FREXP=1
10333
10334
10335
10336
10337
10338 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10349 "
10350 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10351
10352 else
10353 HAVE_DECL_FREXPL=0
10354 fi
10355
10356
10357 FREXPL_LIBM=
10358 if test $HAVE_DECL_FREXPL = 1; then
10359
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10361 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10362 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 #include <math.h>
10369 long double x;
10370 int
10371 main ()
10372 {
10373 int e; return frexpl (x, &e) > 0;
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 gl_cv_func_frexpl_no_libm=yes
10380 else
10381 gl_cv_func_frexpl_no_libm=no
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10388 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10389
10390 if test $gl_cv_func_frexpl_no_libm = no; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10392 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10393 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396
10397 save_LIBS="$LIBS"
10398 LIBS="$LIBS -lm"
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401 #include <math.h>
10402 long double x;
10403 int
10404 main ()
10405 {
10406 int e; return frexpl (x, &e) > 0;
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 gl_cv_func_frexpl_in_libm=yes
10413 else
10414 gl_cv_func_frexpl_in_libm=no
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS="$save_LIBS"
10419
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10422 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10423 if test $gl_cv_func_frexpl_in_libm = yes; then
10424 FREXPL_LIBM=-lm
10425 fi
10426 fi
10427 if test $gl_cv_func_frexpl_no_libm = yes \
10428 || test $gl_cv_func_frexpl_in_libm = yes; then
10429 save_LIBS="$LIBS"
10430 LIBS="$LIBS $FREXPL_LIBM"
10431
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10434 $as_echo_n "checking whether frexpl works... " >&6; }
10435 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438
10439 if test "$cross_compiling" = yes; then :
10440
10441 case "$host_os" in
10442 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10443 gl_cv_func_frexpl_works="guessing no";;
10444 *) gl_cv_func_frexpl_works="guessing yes";;
10445 esac
10446
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450
10451 #include <float.h>
10452 #include <math.h>
10453 /* Override the values of <float.h>, like done in float.in.h. */
10454 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10455 # undef LDBL_MIN_EXP
10456 # define LDBL_MIN_EXP (-16381)
10457 #endif
10458 #if defined __i386__ && defined __FreeBSD__
10459 # undef LDBL_MIN_EXP
10460 # define LDBL_MIN_EXP (-16381)
10461 #endif
10462 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10463 # undef LDBL_MIN_EXP
10464 # define LDBL_MIN_EXP DBL_MIN_EXP
10465 #endif
10466 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10467 # if defined __GNUC__
10468 # undef LDBL_MIN_EXP
10469 # define LDBL_MIN_EXP DBL_MIN_EXP
10470 # endif
10471 #endif
10472 extern
10473 #ifdef __cplusplus
10474 "C"
10475 #endif
10476 long double frexpl (long double, int *);
10477 int main()
10478 {
10479 int result = 0;
10480 volatile long double x;
10481 /* Test on finite numbers that fails on AIX 5.1. */
10482 x = 16.0L;
10483 {
10484 int exp = -9999;
10485 frexpl (x, &exp);
10486 if (exp != 5)
10487 result |= 1;
10488 }
10489 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10490 function returns an invalid (incorrectly normalized) value: it returns
10491 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10492 but the correct result is
10493 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10494 x = 1.01L;
10495 {
10496 int exp = -9999;
10497 long double y = frexpl (x, &exp);
10498 if (!(exp == 1 && y == 0.505L))
10499 result |= 2;
10500 }
10501 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10502 LDBL_MAX_EXP = 16384.
10503 In the loop end test, we test x against Infinity, rather than comparing
10504 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10505 {
10506 int i;
10507 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10508 {
10509 int exp = -9999;
10510 frexpl (x, &exp);
10511 if (exp != i)
10512 {
10513 result |= 4;
10514 break;
10515 }
10516 }
10517 }
10518 /* Test on denormalized numbers. */
10519 {
10520 int i;
10521 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10522 ;
10523 if (x > 0.0L)
10524 {
10525 int exp;
10526 long double y = frexpl (x, &exp);
10527 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10528 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10529 if (exp != LDBL_MIN_EXP - 1)
10530 result |= 8;
10531 }
10532 }
10533 /* Test on infinite numbers. */
10534 x = 1.0L / 0.0L;
10535 {
10536 int exp;
10537 long double y = frexpl (x, &exp);
10538 if (y != x)
10539 result |= 16;
10540 }
10541 return result;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_run "$LINENO"; then :
10545 gl_cv_func_frexpl_works=yes
10546 else
10547 gl_cv_func_frexpl_works=no
10548 fi
10549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10550 conftest.$ac_objext conftest.beam conftest.$ac_ext
10551 fi
10552
10553
10554 fi
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10556 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10557
10558 LIBS="$save_LIBS"
10559 case "$gl_cv_func_frexpl_works" in
10560 *yes) gl_func_frexpl=yes ;;
10561 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10562 esac
10563 else
10564 gl_func_frexpl=no
10565 fi
10566 if test $gl_func_frexpl = yes; then
10567
10568 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10569
10570 fi
10571 fi
10572 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10573 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10574
10575 FREXPL_LIBM="$FREXP_LIBM"
10576 else
10577 FREXPL_LIBM=
10578 fi
10579 fi
10580
10581
10582 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10583
10584
10585
10586
10587
10588
10589
10590
10591 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10592
10593 fi
10594
10595
10596
10597
10598
10599 GNULIB_FREXPL=1
10600
10601
10602
10603
10604
10605 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10606
10607
10608
10609
10610
10611
10612
10613
10614 PRIPTR_PREFIX=
10615 if test -n "$STDINT_H"; then
10616 PRIPTR_PREFIX='"l"'
10617 else
10618 for glpfx in '' l ll I64; do
10619 case $glpfx in
10620 '') gltype1='int';;
10621 l) gltype1='long int';;
10622 ll) gltype1='long long int';;
10623 I64) gltype1='__int64';;
10624 esac
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <stdint.h>
10628 extern intptr_t foo;
10629 extern $gltype1 foo;
10630 int
10631 main ()
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 PRIPTR_PREFIX='"'$glpfx'"'
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 test -n "$PRIPTR_PREFIX" && break
10643 done
10644 fi
10645
10646
10647
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10649 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10650 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 /* Work also in C++ mode. */
10656 #define __STDC_LIMIT_MACROS 1
10657
10658 /* Work if build is not clean. */
10659 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10660
10661 #include <limits.h>
10662 #if HAVE_STDINT_H
10663 #include <stdint.h>
10664 #endif
10665
10666 #if defined INT32_MAX && defined INTMAX_MAX
10667 #define CONDITION (INT32_MAX < INTMAX_MAX)
10668 #elif HAVE_LONG_LONG_INT
10669 #define CONDITION (sizeof (int) < sizeof (long long int))
10670 #else
10671 #define CONDITION 0
10672 #endif
10673 int test[CONDITION ? 1 : -1];
10674 int
10675 main ()
10676 {
10677
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10684 else
10685 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10690 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10691 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10692 INT32_MAX_LT_INTMAX_MAX=1;
10693 else
10694 INT32_MAX_LT_INTMAX_MAX=0;
10695 fi
10696
10697
10698 if test $APPLE_UNIVERSAL_BUILD = 0; then
10699
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10701 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10702 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 /* Work also in C++ mode. */
10708 #define __STDC_LIMIT_MACROS 1
10709
10710 /* Work if build is not clean. */
10711 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10712
10713 #include <limits.h>
10714 #if HAVE_STDINT_H
10715 #include <stdint.h>
10716 #endif
10717
10718 #if defined INT64_MAX
10719 #define CONDITION (INT64_MAX == LONG_MAX)
10720 #elif HAVE_LONG_LONG_INT
10721 #define CONDITION (sizeof (long long int) == sizeof (long int))
10722 #else
10723 #define CONDITION 0
10724 #endif
10725 int test[CONDITION ? 1 : -1];
10726 int
10727 main ()
10728 {
10729
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10736 else
10737 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 fi
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10742 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10743 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10744 INT64_MAX_EQ_LONG_MAX=1;
10745 else
10746 INT64_MAX_EQ_LONG_MAX=0;
10747 fi
10748
10749
10750 else
10751 INT64_MAX_EQ_LONG_MAX=-1
10752 fi
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10755 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10756 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 /* Work also in C++ mode. */
10762 #define __STDC_LIMIT_MACROS 1
10763
10764 /* Work if build is not clean. */
10765 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10766
10767 #include <limits.h>
10768 #if HAVE_STDINT_H
10769 #include <stdint.h>
10770 #endif
10771
10772 #if defined UINT32_MAX && defined UINTMAX_MAX
10773 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10774 #elif HAVE_LONG_LONG_INT
10775 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10776 #else
10777 #define CONDITION 0
10778 #endif
10779 int test[CONDITION ? 1 : -1];
10780 int
10781 main ()
10782 {
10783
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_compile "$LINENO"; then :
10789 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10790 else
10791 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10796 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10797 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10798 UINT32_MAX_LT_UINTMAX_MAX=1;
10799 else
10800 UINT32_MAX_LT_UINTMAX_MAX=0;
10801 fi
10802
10803
10804 if test $APPLE_UNIVERSAL_BUILD = 0; then
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10807 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10808 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813 /* Work also in C++ mode. */
10814 #define __STDC_LIMIT_MACROS 1
10815
10816 /* Work if build is not clean. */
10817 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10818
10819 #include <limits.h>
10820 #if HAVE_STDINT_H
10821 #include <stdint.h>
10822 #endif
10823
10824 #if defined UINT64_MAX
10825 #define CONDITION (UINT64_MAX == ULONG_MAX)
10826 #elif HAVE_LONG_LONG_INT
10827 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10828 #else
10829 #define CONDITION 0
10830 #endif
10831 int test[CONDITION ? 1 : -1];
10832 int
10833 main ()
10834 {
10835
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10842 else
10843 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10848 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10849 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10850 UINT64_MAX_EQ_ULONG_MAX=1;
10851 else
10852 UINT64_MAX_EQ_ULONG_MAX=0;
10853 fi
10854
10855
10856 else
10857 UINT64_MAX_EQ_ULONG_MAX=-1
10858 fi
10859
10860
10861
10862
10863
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10865 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10866 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include <math.h>
10873 #if __GNUC__ >= 4
10874 # undef isnand
10875 # define isnand(x) __builtin_isnan ((double)(x))
10876 #else
10877 # undef isnand
10878 # define isnand(x) isnan ((double)(x))
10879 #endif
10880 double x;
10881 int
10882 main ()
10883 {
10884 return isnand (x);
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 gl_cv_func_isnand_no_libm=yes
10891 else
10892 gl_cv_func_isnand_no_libm=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10899 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10900
10901 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10902 if test $gl_cv_func_isnand_no_libm = yes; then
10903
10904 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10905
10906 fi
10907
10908 if test $gl_func_isnand_no_libm != yes; then
10909
10910
10911
10912
10913
10914
10915
10916
10917 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10918
10919
10920
10921
10922 fi
10923
10924
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10926 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10927 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 #include <math.h>
10934 #if __GNUC__ >= 4
10935 # undef isnanl
10936 # define isnanl(x) __builtin_isnanl ((long double)(x))
10937 #elif defined isnan
10938 # undef isnanl
10939 # define isnanl(x) isnan ((long double)(x))
10940 #endif
10941 long double x;
10942 int
10943 main ()
10944 {
10945 return isnanl (x);
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 gl_cv_func_isnanl_no_libm=yes
10952 else
10953 gl_cv_func_isnanl_no_libm=no
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10960 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10961
10962 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10963 if test $gl_func_isnanl_no_libm = yes; then
10964
10965
10966
10967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10969 $as_echo_n "checking whether isnanl works... " >&6; }
10970 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973
10974 if test "$cross_compiling" = yes; then :
10975 case "$host_cpu" in
10976 # Guess no on ia64, x86_64, i386.
10977 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10978 *)
10979 case "$host_os" in
10980 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10981 *) gl_cv_func_isnanl_works="guessing yes";;
10982 esac
10983 ;;
10984 esac
10985
10986 else
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989
10990 #include <float.h>
10991 #include <limits.h>
10992 #include <math.h>
10993 #if __GNUC__ >= 4
10994 # undef isnanl
10995 # define isnanl(x) __builtin_isnanl ((long double)(x))
10996 #elif defined isnan
10997 # undef isnanl
10998 # define isnanl(x) isnan ((long double)(x))
10999 #endif
11000 #define NWORDS \
11001 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11002 typedef union { unsigned int word[NWORDS]; long double value; }
11003 memory_long_double;
11004 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11005 runtime type conversion. */
11006 #ifdef __sgi
11007 static long double NaNl ()
11008 {
11009 double zero = 0.0;
11010 return zero / zero;
11011 }
11012 #else
11013 # define NaNl() (0.0L / 0.0L)
11014 #endif
11015 int main ()
11016 {
11017 int result = 0;
11018
11019 if (!isnanl (NaNl ()))
11020 result |= 1;
11021
11022 {
11023 memory_long_double m;
11024 unsigned int i;
11025
11026 /* The isnanl function should be immune against changes in the sign bit and
11027 in the mantissa bits. The xor operation twiddles a bit that can only be
11028 a sign bit or a mantissa bit (since the exponent never extends to
11029 bit 31). */
11030 m.value = NaNl ();
11031 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11032 for (i = 0; i < NWORDS; i++)
11033 m.word[i] |= 1;
11034 if (!isnanl (m.value))
11035 result |= 1;
11036 }
11037
11038 #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
11039 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11040 of 'unsigned int' words. */
11041 # ifdef WORDS_BIGENDIAN
11042 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11043 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11044 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11045 (unsigned int) (mantlo) << 16 \
11046 }
11047 # else
11048 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11049 { mantlo, manthi, exponent }
11050 # endif
11051 { /* Quiet NaN. */
11052 static memory_long_double x =
11053 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11054 if (!isnanl (x.value))
11055 result |= 2;
11056 }
11057 {
11058 /* Signalling NaN. */
11059 static memory_long_double x =
11060 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11061 if (!isnanl (x.value))
11062 result |= 2;
11063 }
11064 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11065 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11066 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11067 Application Architecture.
11068 Table 5-2 "Floating-Point Register Encodings"
11069 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11070 */
11071 { /* Pseudo-NaN. */
11072 static memory_long_double x =
11073 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11074 if (!isnanl (x.value))
11075 result |= 4;
11076 }
11077 { /* Pseudo-Infinity. */
11078 static memory_long_double x =
11079 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11080 if (!isnanl (x.value))
11081 result |= 8;
11082 }
11083 { /* Pseudo-Zero. */
11084 static memory_long_double x =
11085 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11086 if (!isnanl (x.value))
11087 result |= 16;
11088 }
11089 { /* Unnormalized number. */
11090 static memory_long_double x =
11091 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11092 if (!isnanl (x.value))
11093 result |= 32;
11094 }
11095 { /* Pseudo-Denormal. */
11096 static memory_long_double x =
11097 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11098 if (!isnanl (x.value))
11099 result |= 64;
11100 }
11101 #endif
11102
11103 return result;
11104 }
11105 _ACEOF
11106 if ac_fn_c_try_run "$LINENO"; then :
11107 gl_cv_func_isnanl_works=yes
11108 else
11109 gl_cv_func_isnanl_works=no
11110 fi
11111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11112 conftest.$ac_objext conftest.beam conftest.$ac_ext
11113 fi
11114
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11118 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11119
11120 case "$gl_cv_func_isnanl_works" in
11121 *yes) ;;
11122 *) gl_func_isnanl_no_libm=no ;;
11123 esac
11124 fi
11125 if test $gl_func_isnanl_no_libm = yes; then
11126
11127 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11128
11129 fi
11130
11131 if test $gl_func_isnanl_no_libm != yes; then
11132
11133
11134
11135
11136
11137
11138
11139
11140 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11141
11142
11143
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11146 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11147 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150
11151 if test "$cross_compiling" = yes; then :
11152
11153 gl_cv_cc_long_double_expbit0="unknown"
11154
11155 else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158
11159 #include <float.h>
11160 #include <stddef.h>
11161 #include <stdio.h>
11162 #include <string.h>
11163 #define NWORDS \
11164 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11165 typedef union { long double value; unsigned int word[NWORDS]; }
11166 memory_long_double;
11167 static unsigned int ored_words[NWORDS];
11168 static unsigned int anded_words[NWORDS];
11169 static void add_to_ored_words (long double x)
11170 {
11171 memory_long_double m;
11172 size_t i;
11173 /* Clear it first, in case
11174 sizeof (long double) < sizeof (memory_long_double). */
11175 memset (&m, 0, sizeof (memory_long_double));
11176 m.value = x;
11177 for (i = 0; i < NWORDS; i++)
11178 {
11179 ored_words[i] |= m.word[i];
11180 anded_words[i] &= m.word[i];
11181 }
11182 }
11183 int main ()
11184 {
11185 size_t j;
11186 FILE *fp = fopen ("conftest.out", "w");
11187 if (fp == NULL)
11188 return 1;
11189 for (j = 0; j < NWORDS; j++)
11190 anded_words[j] = ~ (unsigned int) 0;
11191 add_to_ored_words (0.25L);
11192 add_to_ored_words (0.5L);
11193 add_to_ored_words (1.0L);
11194 add_to_ored_words (2.0L);
11195 add_to_ored_words (4.0L);
11196 /* Remove bits that are common (e.g. if representation of the first mantissa
11197 bit is explicit). */
11198 for (j = 0; j < NWORDS; j++)
11199 ored_words[j] &= ~anded_words[j];
11200 /* Now find the nonzero word. */
11201 for (j = 0; j < NWORDS; j++)
11202 if (ored_words[j] != 0)
11203 break;
11204 if (j < NWORDS)
11205 {
11206 size_t i;
11207 for (i = j + 1; i < NWORDS; i++)
11208 if (ored_words[i] != 0)
11209 {
11210 fprintf (fp, "unknown");
11211 return (fclose (fp) != 0);
11212 }
11213 for (i = 0; ; i++)
11214 if ((ored_words[j] >> i) & 1)
11215 {
11216 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11217 return (fclose (fp) != 0);
11218 }
11219 }
11220 fprintf (fp, "unknown");
11221 return (fclose (fp) != 0);
11222 }
11223
11224 _ACEOF
11225 if ac_fn_c_try_run "$LINENO"; then :
11226 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11227 else
11228 gl_cv_cc_long_double_expbit0="unknown"
11229 fi
11230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11231 conftest.$ac_objext conftest.beam conftest.$ac_ext
11232 fi
11233
11234 rm -f conftest.out
11235
11236 fi
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11238 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11239 case "$gl_cv_cc_long_double_expbit0" in
11240 word*bit*)
11241 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11242 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define LDBL_EXPBIT0_WORD $word
11246 _ACEOF
11247
11248
11249 cat >>confdefs.h <<_ACEOF
11250 #define LDBL_EXPBIT0_BIT $bit
11251 _ACEOF
11252
11253 ;;
11254 esac
11255
11256
11257
11258 fi
11259
11260
11261
11262
11263
11264
11265
11266
11267 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280 if test $gl_cv_have_include_next = yes; then
11281 gl_cv_next_math_h='<'math.h'>'
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11284 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11285 if test "${gl_cv_next_math_h+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288
11289 if test $ac_cv_header_math_h = yes; then
11290
11291
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 #include <math.h>
11295
11296 _ACEOF
11297 case "$host_os" in
11298 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11299 *) gl_absname_cpp="$ac_cpp" ;;
11300 esac
11301
11302 case "$host_os" in
11303 mingw*)
11304 gl_dirsep_regex='[/\\]'
11305 ;;
11306 *)
11307 gl_dirsep_regex='\/'
11308 ;;
11309 esac
11310 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11311
11312 gl_header_literal_regex=`echo 'math.h' \
11313 | sed -e "$gl_make_literal_regex_sed"`
11314 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11315 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11316 s|^/[^/]|//&|
11317 p
11318 q
11319 }'
11320 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11321 sed -n "$gl_absolute_header_sed"`'"'
11322 else
11323 gl_cv_next_math_h='<'math.h'>'
11324 fi
11325
11326
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11329 $as_echo "$gl_cv_next_math_h" >&6; }
11330 fi
11331 NEXT_MATH_H=$gl_cv_next_math_h
11332
11333 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11335 gl_next_as_first_directive='<'math.h'>'
11336 else
11337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11338 gl_next_as_first_directive=$gl_cv_next_math_h
11339 fi
11340 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11341
11342
11343
11344
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11347 $as_echo_n "checking whether NAN macro works... " >&6; }
11348 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353 #include <math.h>
11354 int
11355 main ()
11356 {
11357 /* Solaris 10 has a broken definition of NAN. Other platforms
11358 fail to provide NAN, or provide it only in C99 mode; this
11359 test only needs to fail when NAN is provided but wrong. */
11360 float f = 1.0f;
11361 #ifdef NAN
11362 f = NAN;
11363 #endif
11364 return f == 0;
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370 gl_cv_header_math_nan_works=yes
11371 else
11372 gl_cv_header_math_nan_works=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11377 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11378 if test $gl_cv_header_math_nan_works = no; then
11379 REPLACE_NAN=1
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11382 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11383 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388 #include <math.h>
11389 int
11390 main ()
11391 {
11392 /* Solaris 10 has a broken definition of HUGE_VAL. */
11393 double d = HUGE_VAL;
11394 return d == 0;
11395 ;
11396 return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 gl_cv_header_math_huge_val_works=yes
11401 else
11402 gl_cv_header_math_huge_val_works=no
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11407 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11408 if test $gl_cv_header_math_huge_val_works = no; then
11409 REPLACE_HUGE_VAL=1
11410 fi
11411
11412
11413 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
11414 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11417 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422 #include <math.h>
11423 int
11424 main ()
11425 {
11426 #undef $gl_func
11427 (void) $gl_func;
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_compile "$LINENO"; then :
11433 eval "$as_gl_Symbol=yes"
11434 else
11435 eval "$as_gl_Symbol=no"
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438 fi
11439 eval ac_res=\$$as_gl_Symbol
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11441 $as_echo "$ac_res" >&6; }
11442 eval as_val=\$$as_gl_Symbol
11443 if test "x$as_val" = x""yes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 eval ac_cv_have_decl_$gl_func=yes
11449 fi
11450 done
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11464
11465
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11468 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11469 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472
11473 case "$host_os" in
11474 # Guess no on AIX and OSF/1.
11475 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11476 # Guess yes otherwise.
11477 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11478 esac
11479 if test $LOCALE_JA != none; then
11480 if test "$cross_compiling" = yes; then :
11481 :
11482 else
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485
11486 #include <locale.h>
11487 #include <string.h>
11488 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11489 <wchar.h>.
11490 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11491 included before <wchar.h>. */
11492 #include <stddef.h>
11493 #include <stdio.h>
11494 #include <time.h>
11495 #include <wchar.h>
11496 int main ()
11497 {
11498 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11499 {
11500 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11501 mbstate_t state;
11502 wchar_t wc;
11503
11504 memset (&state, '\0', sizeof (mbstate_t));
11505 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11506 if (mbsinit (&state))
11507 return 1;
11508 }
11509 return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_run "$LINENO"; then :
11513 gl_cv_func_mbrtowc_incomplete_state=yes
11514 else
11515 gl_cv_func_mbrtowc_incomplete_state=no
11516 fi
11517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11518 conftest.$ac_objext conftest.beam conftest.$ac_ext
11519 fi
11520
11521 fi
11522
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11525 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11526
11527
11528
11529
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11531 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11532 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535
11536 case "$host_os" in
11537 # Guess no on Solaris 8.
11538 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11539 # Guess yes otherwise.
11540 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11541 esac
11542 if test $LOCALE_ZH_CN != none; then
11543 if test "$cross_compiling" = yes; then :
11544 :
11545 else
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 #include <locale.h>
11550 #include <stdlib.h>
11551 #include <string.h>
11552 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11553 <wchar.h>.
11554 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11555 included before <wchar.h>. */
11556 #include <stddef.h>
11557 #include <stdio.h>
11558 #include <time.h>
11559 #include <wchar.h>
11560 int main ()
11561 {
11562 /* This fails on Solaris 8:
11563 mbrtowc returns 2, and sets wc to 0x00F0.
11564 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11565 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11566 {
11567 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11568 mbstate_t state;
11569 wchar_t wc;
11570
11571 memset (&state, '\0', sizeof (mbstate_t));
11572 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11573 && mbtowc (&wc, input + 3, 6) == 4)
11574 return 1;
11575 }
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_run "$LINENO"; then :
11580 gl_cv_func_mbrtowc_sanitycheck=yes
11581 else
11582 gl_cv_func_mbrtowc_sanitycheck=no
11583 fi
11584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11585 conftest.$ac_objext conftest.beam conftest.$ac_ext
11586 fi
11587
11588 fi
11589
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11592 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11593
11594 REPLACE_MBSTATE_T=0
11595 case "$gl_cv_func_mbrtowc_incomplete_state" in
11596 *yes) ;;
11597 *) REPLACE_MBSTATE_T=1 ;;
11598 esac
11599 case "$gl_cv_func_mbrtowc_sanitycheck" in
11600 *yes) ;;
11601 *) REPLACE_MBSTATE_T=1 ;;
11602 esac
11603 else
11604 REPLACE_MBSTATE_T=1
11605 fi
11606
11607
11608
11609 if test $ac_cv_func_mbrtowc = no; then
11610 HAVE_MBRTOWC=0
11611 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11612 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11613 <wchar.h>.
11614 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11615 included before <wchar.h>. */
11616 #include <stddef.h>
11617 #include <stdio.h>
11618 #include <time.h>
11619 #include <wchar.h>
11620
11621 "
11622 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11623 ac_have_decl=1
11624 else
11625 ac_have_decl=0
11626 fi
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_MBRTOWC $ac_have_decl
11630 _ACEOF
11631
11632 if test $ac_cv_have_decl_mbrtowc = yes; then
11633 REPLACE_MBRTOWC=1
11634 fi
11635 else
11636 if test $REPLACE_MBSTATE_T = 1; then
11637 REPLACE_MBRTOWC=1
11638 else
11639
11640
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11643 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11644 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647
11648 case "$host_os" in
11649 # Guess no on Solaris.
11650 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11651 # Guess yes otherwise.
11652 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11653 esac
11654 if test $LOCALE_FR_UTF8 != none; then
11655 if test "$cross_compiling" = yes; then :
11656 :
11657 else
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 #include <locale.h>
11662 #include <stdlib.h>
11663 #include <string.h>
11664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11665 <wchar.h>.
11666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11667 included before <wchar.h>. */
11668 #include <stddef.h>
11669 #include <stdio.h>
11670 #include <time.h>
11671 #include <wchar.h>
11672 int main ()
11673 {
11674 int result = 0;
11675
11676 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11677 {
11678 char input[] = "\303\237er";
11679 mbstate_t state;
11680 wchar_t wc;
11681 size_t ret;
11682
11683 memset (&state, '\0', sizeof (mbstate_t));
11684 wc = (wchar_t) 0xBADFACE;
11685 ret = mbrtowc (&wc, input, 5, &state);
11686 if (ret != 2)
11687 result |= 1;
11688 if (!mbsinit (&state))
11689 result |= 2;
11690
11691 memset (&state, '\0', sizeof (mbstate_t));
11692 ret = mbrtowc (NULL, input, 5, &state);
11693 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11694 result |= 4;
11695 if (!mbsinit (&state))
11696 result |= 8;
11697 }
11698 return result;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_run "$LINENO"; then :
11702 gl_cv_func_mbrtowc_null_arg1=yes
11703 else
11704 gl_cv_func_mbrtowc_null_arg1=no
11705 fi
11706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11707 conftest.$ac_objext conftest.beam conftest.$ac_ext
11708 fi
11709
11710 fi
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11714 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11715
11716
11717
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11720 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11721 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724
11725 case "$host_os" in
11726 # Guess no on OSF/1.
11727 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11728 # Guess yes otherwise.
11729 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11730 esac
11731 if test $LOCALE_FR_UTF8 != none; then
11732 if test "$cross_compiling" = yes; then :
11733 :
11734 else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737
11738 #include <locale.h>
11739 #include <string.h>
11740 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11741 <wchar.h>.
11742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11743 included before <wchar.h>. */
11744 #include <stddef.h>
11745 #include <stdio.h>
11746 #include <time.h>
11747 #include <wchar.h>
11748 int main ()
11749 {
11750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11751 {
11752 mbstate_t state;
11753 wchar_t wc;
11754 int ret;
11755
11756 memset (&state, '\0', sizeof (mbstate_t));
11757 wc = (wchar_t) 0xBADFACE;
11758 mbrtowc (&wc, NULL, 5, &state);
11759 /* Check that wc was not modified. */
11760 if (wc != (wchar_t) 0xBADFACE)
11761 return 1;
11762 }
11763 return 0;
11764 }
11765 _ACEOF
11766 if ac_fn_c_try_run "$LINENO"; then :
11767 gl_cv_func_mbrtowc_null_arg2=yes
11768 else
11769 gl_cv_func_mbrtowc_null_arg2=no
11770 fi
11771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11772 conftest.$ac_objext conftest.beam conftest.$ac_ext
11773 fi
11774
11775 fi
11776
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11779 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11780
11781
11782
11783
11784
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11787 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11788 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791
11792 case "$host_os" in
11793 # Guess no on HP-UX, Solaris, native Windows.
11794 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11795 # Guess yes otherwise.
11796 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11797 esac
11798 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11799 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11800 if test "$cross_compiling" = yes; then :
11801 :
11802 else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805
11806 #include <locale.h>
11807 #include <string.h>
11808 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11809 <wchar.h>.
11810 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11811 included before <wchar.h>. */
11812 #include <stddef.h>
11813 #include <stdio.h>
11814 #include <time.h>
11815 #include <wchar.h>
11816 int main ()
11817 {
11818 int result = 0;
11819 int found_some_locale = 0;
11820 /* This fails on Solaris. */
11821 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11822 {
11823 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11824 mbstate_t state;
11825 wchar_t wc;
11826
11827 memset (&state, '\0', sizeof (mbstate_t));
11828 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11829 {
11830 input[1] = '\0';
11831 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11832 result |= 1;
11833 }
11834 found_some_locale = 1;
11835 }
11836 /* This fails on HP-UX 11.11. */
11837 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11838 {
11839 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11840 mbstate_t state;
11841 wchar_t wc;
11842
11843 memset (&state, '\0', sizeof (mbstate_t));
11844 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11845 {
11846 input[1] = '\0';
11847 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11848 result |= 2;
11849 }
11850 found_some_locale = 1;
11851 }
11852 /* This fails on native Windows. */
11853 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11854 {
11855 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11856 mbstate_t state;
11857 wchar_t wc;
11858
11859 memset (&state, '\0', sizeof (mbstate_t));
11860 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11861 {
11862 input[3] = '\0';
11863 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11864 result |= 4;
11865 }
11866 found_some_locale = 1;
11867 }
11868 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11869 {
11870 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11871 mbstate_t state;
11872 wchar_t wc;
11873
11874 memset (&state, '\0', sizeof (mbstate_t));
11875 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11876 {
11877 input[3] = '\0';
11878 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11879 result |= 8;
11880 }
11881 found_some_locale = 1;
11882 }
11883 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11884 {
11885 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11886 mbstate_t state;
11887 wchar_t wc;
11888
11889 memset (&state, '\0', sizeof (mbstate_t));
11890 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11891 {
11892 input[3] = '\0';
11893 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11894 result |= 16;
11895 }
11896 found_some_locale = 1;
11897 }
11898 return (found_some_locale ? result : 77);
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_run "$LINENO"; then :
11902 gl_cv_func_mbrtowc_retval=yes
11903 else
11904 if test $? != 77; then
11905 gl_cv_func_mbrtowc_retval=no
11906 fi
11907
11908 fi
11909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11911 fi
11912
11913 fi
11914
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11917 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11918
11919
11920
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11923 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11924 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927
11928 case "$host_os" in
11929 # Guess no on Solaris 8 and 9.
11930 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11931 # Guess yes otherwise.
11932 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11933 esac
11934 if test $LOCALE_ZH_CN != none; then
11935 if test "$cross_compiling" = yes; then :
11936 :
11937 else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940
11941 #include <locale.h>
11942 #include <string.h>
11943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11944 <wchar.h>.
11945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11946 included before <wchar.h>. */
11947 #include <stddef.h>
11948 #include <stdio.h>
11949 #include <time.h>
11950 #include <wchar.h>
11951 int main ()
11952 {
11953 /* This fails on Solaris 8 and 9. */
11954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11955 {
11956 mbstate_t state;
11957 wchar_t wc;
11958
11959 memset (&state, '\0', sizeof (mbstate_t));
11960 if (mbrtowc (&wc, "", 1, &state) != 0)
11961 return 1;
11962 }
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_run "$LINENO"; then :
11967 gl_cv_func_mbrtowc_nul_retval=yes
11968 else
11969 gl_cv_func_mbrtowc_nul_retval=no
11970 fi
11971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11972 conftest.$ac_objext conftest.beam conftest.$ac_ext
11973 fi
11974
11975 fi
11976
11977 fi
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11979 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11980
11981 case "$gl_cv_func_mbrtowc_null_arg1" in
11982 *yes) ;;
11983 *)
11984 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11985
11986 REPLACE_MBRTOWC=1
11987 ;;
11988 esac
11989 case "$gl_cv_func_mbrtowc_null_arg2" in
11990 *yes) ;;
11991 *)
11992 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11993
11994 REPLACE_MBRTOWC=1
11995 ;;
11996 esac
11997 case "$gl_cv_func_mbrtowc_retval" in
11998 *yes) ;;
11999 *)
12000 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12001
12002 REPLACE_MBRTOWC=1
12003 ;;
12004 esac
12005 case "$gl_cv_func_mbrtowc_nul_retval" in
12006 *yes) ;;
12007 *)
12008 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12009
12010 REPLACE_MBRTOWC=1
12011 ;;
12012 esac
12013 fi
12014 fi
12015
12016 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12017
12018
12019
12020
12021
12022
12023
12024
12025 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12026
12027
12028 :
12029
12030 fi
12031
12032
12033
12034
12035
12036 GNULIB_MBRTOWC=1
12037
12038
12039
12040
12041
12042 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12058
12059
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12062 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12063 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066
12067 case "$host_os" in
12068 # Guess no on AIX and OSF/1.
12069 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12070 # Guess yes otherwise.
12071 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12072 esac
12073 if test $LOCALE_JA != none; then
12074 if test "$cross_compiling" = yes; then :
12075 :
12076 else
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079
12080 #include <locale.h>
12081 #include <string.h>
12082 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12083 <wchar.h>.
12084 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12085 included before <wchar.h>. */
12086 #include <stddef.h>
12087 #include <stdio.h>
12088 #include <time.h>
12089 #include <wchar.h>
12090 int main ()
12091 {
12092 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12093 {
12094 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12095 mbstate_t state;
12096 wchar_t wc;
12097
12098 memset (&state, '\0', sizeof (mbstate_t));
12099 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12100 if (mbsinit (&state))
12101 return 1;
12102 }
12103 return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_run "$LINENO"; then :
12107 gl_cv_func_mbrtowc_incomplete_state=yes
12108 else
12109 gl_cv_func_mbrtowc_incomplete_state=no
12110 fi
12111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12112 conftest.$ac_objext conftest.beam conftest.$ac_ext
12113 fi
12114
12115 fi
12116
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12119 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12120
12121
12122
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12125 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12126 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129
12130 case "$host_os" in
12131 # Guess no on Solaris 8.
12132 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12133 # Guess yes otherwise.
12134 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12135 esac
12136 if test $LOCALE_ZH_CN != none; then
12137 if test "$cross_compiling" = yes; then :
12138 :
12139 else
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142
12143 #include <locale.h>
12144 #include <stdlib.h>
12145 #include <string.h>
12146 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12147 <wchar.h>.
12148 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12149 included before <wchar.h>. */
12150 #include <stddef.h>
12151 #include <stdio.h>
12152 #include <time.h>
12153 #include <wchar.h>
12154 int main ()
12155 {
12156 /* This fails on Solaris 8:
12157 mbrtowc returns 2, and sets wc to 0x00F0.
12158 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12159 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12160 {
12161 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12162 mbstate_t state;
12163 wchar_t wc;
12164
12165 memset (&state, '\0', sizeof (mbstate_t));
12166 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12167 && mbtowc (&wc, input + 3, 6) == 4)
12168 return 1;
12169 }
12170 return 0;
12171 }
12172 _ACEOF
12173 if ac_fn_c_try_run "$LINENO"; then :
12174 gl_cv_func_mbrtowc_sanitycheck=yes
12175 else
12176 gl_cv_func_mbrtowc_sanitycheck=no
12177 fi
12178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12179 conftest.$ac_objext conftest.beam conftest.$ac_ext
12180 fi
12181
12182 fi
12183
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12186 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12187
12188 REPLACE_MBSTATE_T=0
12189 case "$gl_cv_func_mbrtowc_incomplete_state" in
12190 *yes) ;;
12191 *) REPLACE_MBSTATE_T=1 ;;
12192 esac
12193 case "$gl_cv_func_mbrtowc_sanitycheck" in
12194 *yes) ;;
12195 *) REPLACE_MBSTATE_T=1 ;;
12196 esac
12197 else
12198 REPLACE_MBSTATE_T=1
12199 fi
12200
12201
12202
12203 if test $ac_cv_func_mbsinit = no; then
12204 HAVE_MBSINIT=0
12205 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12206 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12207 <wchar.h>.
12208 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12209 included before <wchar.h>. */
12210 #include <stddef.h>
12211 #include <stdio.h>
12212 #include <time.h>
12213 #include <wchar.h>
12214
12215 "
12216 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12217 ac_have_decl=1
12218 else
12219 ac_have_decl=0
12220 fi
12221
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_DECL_MBSINIT $ac_have_decl
12224 _ACEOF
12225
12226 if test $ac_cv_have_decl_mbsinit = yes; then
12227 REPLACE_MBSINIT=1
12228 fi
12229 else
12230 if test $REPLACE_MBSTATE_T = 1; then
12231 REPLACE_MBSINIT=1
12232 else
12233 case "$host_os" in
12234 mingw*) REPLACE_MBSINIT=1 ;;
12235 esac
12236 fi
12237 fi
12238
12239 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12240
12241
12242
12243
12244
12245
12246
12247
12248 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12249
12250
12251 :
12252
12253 fi
12254
12255
12256
12257
12258
12259 GNULIB_MBSINIT=1
12260
12261
12262
12263
12264
12265 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12280
12281
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12284 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12285 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288
12289 case "$host_os" in
12290 # Guess no on AIX and OSF/1.
12291 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12292 # Guess yes otherwise.
12293 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12294 esac
12295 if test $LOCALE_JA != none; then
12296 if test "$cross_compiling" = yes; then :
12297 :
12298 else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301
12302 #include <locale.h>
12303 #include <string.h>
12304 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12305 <wchar.h>.
12306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12307 included before <wchar.h>. */
12308 #include <stddef.h>
12309 #include <stdio.h>
12310 #include <time.h>
12311 #include <wchar.h>
12312 int main ()
12313 {
12314 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12315 {
12316 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12317 mbstate_t state;
12318 wchar_t wc;
12319
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12322 if (mbsinit (&state))
12323 return 1;
12324 }
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 gl_cv_func_mbrtowc_incomplete_state=yes
12330 else
12331 gl_cv_func_mbrtowc_incomplete_state=no
12332 fi
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12335 fi
12336
12337 fi
12338
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12341 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12342
12343
12344
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12347 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12348 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351
12352 case "$host_os" in
12353 # Guess no on Solaris 8.
12354 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12355 # Guess yes otherwise.
12356 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12357 esac
12358 if test $LOCALE_ZH_CN != none; then
12359 if test "$cross_compiling" = yes; then :
12360 :
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364
12365 #include <locale.h>
12366 #include <stdlib.h>
12367 #include <string.h>
12368 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12369 <wchar.h>.
12370 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12371 included before <wchar.h>. */
12372 #include <stddef.h>
12373 #include <stdio.h>
12374 #include <time.h>
12375 #include <wchar.h>
12376 int main ()
12377 {
12378 /* This fails on Solaris 8:
12379 mbrtowc returns 2, and sets wc to 0x00F0.
12380 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12381 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12382 {
12383 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12384 mbstate_t state;
12385 wchar_t wc;
12386
12387 memset (&state, '\0', sizeof (mbstate_t));
12388 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12389 && mbtowc (&wc, input + 3, 6) == 4)
12390 return 1;
12391 }
12392 return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_run "$LINENO"; then :
12396 gl_cv_func_mbrtowc_sanitycheck=yes
12397 else
12398 gl_cv_func_mbrtowc_sanitycheck=no
12399 fi
12400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12401 conftest.$ac_objext conftest.beam conftest.$ac_ext
12402 fi
12403
12404 fi
12405
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12408 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12409
12410 REPLACE_MBSTATE_T=0
12411 case "$gl_cv_func_mbrtowc_incomplete_state" in
12412 *yes) ;;
12413 *) REPLACE_MBSTATE_T=1 ;;
12414 esac
12415 case "$gl_cv_func_mbrtowc_sanitycheck" in
12416 *yes) ;;
12417 *) REPLACE_MBSTATE_T=1 ;;
12418 esac
12419 else
12420 REPLACE_MBSTATE_T=1
12421 fi
12422
12423
12424
12425 if test $ac_cv_func_mbsrtowcs = no; then
12426 HAVE_MBSRTOWCS=0
12427 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12428 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12429 <wchar.h>.
12430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12431 included before <wchar.h>. */
12432 #include <stddef.h>
12433 #include <stdio.h>
12434 #include <time.h>
12435 #include <wchar.h>
12436
12437 "
12438 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12439 ac_have_decl=1
12440 else
12441 ac_have_decl=0
12442 fi
12443
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12446 _ACEOF
12447
12448 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12449 REPLACE_MBSRTOWCS=1
12450 fi
12451 else
12452 if test $REPLACE_MBSTATE_T = 1; then
12453 REPLACE_MBSRTOWCS=1
12454 else
12455
12456
12457
12458
12459
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12462 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12463 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466
12467 case "$host_os" in
12468 # Guess no on HP-UX, Solaris, mingw.
12469 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12470 # Guess yes otherwise.
12471 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12472 esac
12473 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12474 if test "$cross_compiling" = yes; then :
12475 :
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479
12480 #include <locale.h>
12481 #include <string.h>
12482 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12483 <wchar.h>.
12484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12485 included before <wchar.h>. */
12486 #include <stddef.h>
12487 #include <stdio.h>
12488 #include <time.h>
12489 #include <wchar.h>
12490 int main ()
12491 {
12492 int result = 0;
12493 /* Test whether the function supports a NULL destination argument.
12494 This fails on native Windows. */
12495 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12496 {
12497 const char input[] = "\337er";
12498 const char *src = input;
12499 mbstate_t state;
12500
12501 memset (&state, '\0', sizeof (mbstate_t));
12502 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12503 || src != input)
12504 result |= 1;
12505 }
12506 /* Test whether the function works when started with a conversion state
12507 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12508 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12509 {
12510 const char input[] = "B\303\274\303\237er";
12511 mbstate_t state;
12512
12513 memset (&state, '\0', sizeof (mbstate_t));
12514 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12515 if (!mbsinit (&state))
12516 {
12517 const char *src = input + 2;
12518 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12519 result |= 2;
12520 }
12521 }
12522 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12523 {
12524 const char input[] = "<\306\374\313\334\270\354>";
12525 mbstate_t state;
12526
12527 memset (&state, '\0', sizeof (mbstate_t));
12528 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12529 if (!mbsinit (&state))
12530 {
12531 const char *src = input + 4;
12532 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12533 result |= 4;
12534 }
12535 }
12536 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12537 {
12538 const char input[] = "B\250\271\201\060\211\070er";
12539 mbstate_t state;
12540
12541 memset (&state, '\0', sizeof (mbstate_t));
12542 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12543 if (!mbsinit (&state))
12544 {
12545 const char *src = input + 2;
12546 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12547 result |= 8;
12548 }
12549 }
12550 return result;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_run "$LINENO"; then :
12554 gl_cv_func_mbsrtowcs_works=yes
12555 else
12556 gl_cv_func_mbsrtowcs_works=no
12557 fi
12558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12559 conftest.$ac_objext conftest.beam conftest.$ac_ext
12560 fi
12561
12562 fi
12563
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12566 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12567
12568 case "$gl_cv_func_mbsrtowcs_works" in
12569 *yes) ;;
12570 *) REPLACE_MBSRTOWCS=1 ;;
12571 esac
12572 fi
12573 fi
12574
12575 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12576
12577
12578
12579
12580
12581
12582
12583
12584 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12595
12596
12597 :
12598
12599 fi
12600
12601
12602
12603
12604
12605 GNULIB_MBSRTOWCS=1
12606
12607
12608
12609
12610
12611 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12612
12613
12614
12615
12616 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12617
12618
12619
12620
12621
12622
12623
12624
12625 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12626
12627
12628 for ac_header in bp-sym.h
12629 do :
12630 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12631 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_BP_SYM_H 1
12634 _ACEOF
12635
12636 fi
12637
12638 done
12639
12640
12641 fi
12642
12643
12644
12645
12646
12647 GNULIB_MEMCHR=1
12648
12649
12650
12651
12652
12653 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12654
12655
12656
12657
12658
12659 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12661 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12662 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test "$cross_compiling" = yes; then :
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668
12669 #include <features.h>
12670 #ifdef __GNU_LIBRARY__
12671 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12672 && !defined __UCLIBC__
12673 Lucky user
12674 #endif
12675 #endif
12676 #ifdef __CYGWIN__
12677 #include <cygwin/version.h>
12678 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12679 Lucky user
12680 #endif
12681 #endif
12682
12683 _ACEOF
12684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 $EGREP "Lucky user" >/dev/null 2>&1; then :
12686 gl_cv_func_memmem_works_fast="guessing yes"
12687 else
12688 gl_cv_func_memmem_works_fast="guessing no"
12689 fi
12690 rm -f conftest*
12691
12692
12693 else
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 #include <signal.h> /* for signal */
12698 #include <string.h> /* for memmem */
12699 #include <stdlib.h> /* for malloc */
12700 #include <unistd.h> /* for alarm */
12701 static void quit (int sig) { exit (sig + 128); }
12702
12703 int
12704 main ()
12705 {
12706
12707 int result = 0;
12708 size_t m = 1000000;
12709 char *haystack = (char *) malloc (2 * m + 1);
12710 char *needle = (char *) malloc (m + 1);
12711 /* Failure to compile this test due to missing alarm is okay,
12712 since all such platforms (mingw) also lack memmem. */
12713 signal (SIGALRM, quit);
12714 alarm (5);
12715 /* Check for quadratic performance. */
12716 if (haystack && needle)
12717 {
12718 memset (haystack, 'A', 2 * m);
12719 haystack[2 * m] = 'B';
12720 memset (needle, 'A', m);
12721 needle[m] = 'B';
12722 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12723 result |= 1;
12724 }
12725 return result;
12726
12727 ;
12728 return 0;
12729 }
12730 _ACEOF
12731 if ac_fn_c_try_run "$LINENO"; then :
12732 gl_cv_func_memmem_works_fast=yes
12733 else
12734 gl_cv_func_memmem_works_fast=no
12735 fi
12736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12737 conftest.$ac_objext conftest.beam conftest.$ac_ext
12738 fi
12739
12740
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12743 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12744 case "$gl_cv_func_memmem_works_fast" in
12745 *yes) ;;
12746 *)
12747 REPLACE_MEMMEM=1
12748 ;;
12749 esac
12750 fi
12751
12752 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12753
12754
12755
12756
12757
12758
12759
12760
12761 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12762
12763 fi
12764
12765
12766
12767
12768 for ac_func in memmem
12769 do :
12770 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12771 if test "x$ac_cv_func_memmem" = x""yes; then :
12772 cat >>confdefs.h <<_ACEOF
12773 #define HAVE_MEMMEM 1
12774 _ACEOF
12775
12776 fi
12777 done
12778
12779 if test $ac_cv_func_memmem = yes; then
12780 HAVE_MEMMEM=1
12781 else
12782 HAVE_MEMMEM=0
12783 fi
12784
12785 if test $ac_cv_have_decl_memmem = no; then
12786 HAVE_DECL_MEMMEM=0
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12789 $as_echo_n "checking whether memmem works... " >&6; }
12790 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test "$cross_compiling" = yes; then :
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796
12797 #ifdef __GNU_LIBRARY__
12798 #include <features.h>
12799 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12800 || __GLIBC_MINOR__ > 12)) \
12801 || (__GLIBC__ > 2)) \
12802 || defined __UCLIBC__
12803 Lucky user
12804 #endif
12805 #elif defined __CYGWIN__
12806 #include <cygwin/version.h>
12807 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12808 Lucky user
12809 #endif
12810 #else
12811 Lucky user
12812 #endif
12813
12814 _ACEOF
12815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12816 $EGREP "Lucky user" >/dev/null 2>&1; then :
12817 gl_cv_func_memmem_works_always="guessing yes"
12818 else
12819 gl_cv_func_memmem_works_always="guessing no"
12820 fi
12821 rm -f conftest*
12822
12823
12824 else
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 #include <string.h> /* for memmem */
12829 #define P "_EF_BF_BD"
12830 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12831 #define NEEDLE P P P P P
12832
12833 int
12834 main ()
12835 {
12836
12837 int result = 0;
12838 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12839 result |= 1;
12840 /* Check for empty needle behavior. */
12841 {
12842 const char *haystack = "AAA";
12843 if (memmem (haystack, 3, NULL, 0) != haystack)
12844 result |= 2;
12845 }
12846 return result;
12847
12848 ;
12849 return 0;
12850 }
12851 _ACEOF
12852 if ac_fn_c_try_run "$LINENO"; then :
12853 gl_cv_func_memmem_works_always=yes
12854 else
12855 gl_cv_func_memmem_works_always=no
12856 fi
12857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12858 conftest.$ac_objext conftest.beam conftest.$ac_ext
12859 fi
12860
12861
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12864 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12865 case "$gl_cv_func_memmem_works_always" in
12866 *yes) ;;
12867 *)
12868 REPLACE_MEMMEM=1
12869 ;;
12870 esac
12871 fi
12872 :
12873
12874 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12875
12876
12877
12878
12879
12880
12881
12882
12883 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12884
12885 fi
12886
12887
12888
12889
12890
12891 GNULIB_MEMMEM=1
12892
12893
12894
12895
12896
12897 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12898
12899
12900
12901
12902
12903
12904
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12907 $as_echo_n "checking for ssize_t... " >&6; }
12908 if test "${gt_cv_ssize_t+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <sys/types.h>
12914 int
12915 main ()
12916 {
12917 int x = sizeof (ssize_t *) + sizeof (ssize_t);
12918 return !x;
12919 ;
12920 return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_compile "$LINENO"; then :
12924 gt_cv_ssize_t=yes
12925 else
12926 gt_cv_ssize_t=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
12931 $as_echo "$gt_cv_ssize_t" >&6; }
12932 if test $gt_cv_ssize_t = no; then
12933
12934 $as_echo "#define ssize_t int" >>confdefs.h
12935
12936 fi
12937
12938
12939
12940
12941 # Define two additional variables used in the Makefile substitution.
12942
12943 if test "$ac_cv_header_stdbool_h" = yes; then
12944 STDBOOL_H=''
12945 else
12946 STDBOOL_H='stdbool.h'
12947 fi
12948
12949 if test -n "$STDBOOL_H"; then
12950 GL_GENERATE_STDBOOL_H_TRUE=
12951 GL_GENERATE_STDBOOL_H_FALSE='#'
12952 else
12953 GL_GENERATE_STDBOOL_H_TRUE='#'
12954 GL_GENERATE_STDBOOL_H_FALSE=
12955 fi
12956
12957
12958 if test "$ac_cv_type__Bool" = yes; then
12959 HAVE__BOOL=1
12960 else
12961 HAVE__BOOL=0
12962 fi
12963
12964
12965
12966
12967
12968 STDDEF_H=
12969 if test $gt_cv_c_wchar_t = no; then
12970 HAVE_WCHAR_T=0
12971 STDDEF_H=stddef.h
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12974 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12975 if test "${gl_cv_decl_null_works+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #include <stddef.h>
12981 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12982
12983 int
12984 main ()
12985 {
12986
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 gl_cv_decl_null_works=yes
12993 else
12994 gl_cv_decl_null_works=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12999 $as_echo "$gl_cv_decl_null_works" >&6; }
13000 if test $gl_cv_decl_null_works = no; then
13001 REPLACE_NULL=1
13002 STDDEF_H=stddef.h
13003 fi
13004
13005 if test -n "$STDDEF_H"; then
13006 GL_GENERATE_STDDEF_H_TRUE=
13007 GL_GENERATE_STDDEF_H_FALSE='#'
13008 else
13009 GL_GENERATE_STDDEF_H_TRUE='#'
13010 GL_GENERATE_STDDEF_H_FALSE=
13011 fi
13012
13013 if test -n "$STDDEF_H"; then
13014
13015
13016
13017
13018
13019
13020
13021
13022 if test $gl_cv_have_include_next = yes; then
13023 gl_cv_next_stddef_h='<'stddef.h'>'
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13026 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13027 if test "${gl_cv_next_stddef_h+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <stddef.h>
13034
13035 _ACEOF
13036 case "$host_os" in
13037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13038 *) gl_absname_cpp="$ac_cpp" ;;
13039 esac
13040
13041 case "$host_os" in
13042 mingw*)
13043 gl_dirsep_regex='[/\\]'
13044 ;;
13045 *)
13046 gl_dirsep_regex='\/'
13047 ;;
13048 esac
13049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13050
13051 gl_header_literal_regex=`echo 'stddef.h' \
13052 | sed -e "$gl_make_literal_regex_sed"`
13053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13055 s|^/[^/]|//&|
13056 p
13057 q
13058 }'
13059 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13060 sed -n "$gl_absolute_header_sed"`'"'
13061
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13065 $as_echo "$gl_cv_next_stddef_h" >&6; }
13066 fi
13067 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13068
13069 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13071 gl_next_as_first_directive='<'stddef.h'>'
13072 else
13073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13074 gl_next_as_first_directive=$gl_cv_next_stddef_h
13075 fi
13076 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13077
13078
13079
13080
13081 fi
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097 if test $gl_cv_have_include_next = yes; then
13098 gl_cv_next_sys_types_h='<'sys/types.h'>'
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13101 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13102 if test "${gl_cv_next_sys_types_h+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <sys/types.h>
13109
13110 _ACEOF
13111 case "$host_os" in
13112 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13113 *) gl_absname_cpp="$ac_cpp" ;;
13114 esac
13115
13116 case "$host_os" in
13117 mingw*)
13118 gl_dirsep_regex='[/\\]'
13119 ;;
13120 *)
13121 gl_dirsep_regex='\/'
13122 ;;
13123 esac
13124 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13125
13126 gl_header_literal_regex=`echo 'sys/types.h' \
13127 | sed -e "$gl_make_literal_regex_sed"`
13128 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13129 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13130 s|^/[^/]|//&|
13131 p
13132 q
13133 }'
13134 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13135 sed -n "$gl_absolute_header_sed"`'"'
13136
13137
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13140 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13141 fi
13142 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13143
13144 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13146 gl_next_as_first_directive='<'sys/types.h'>'
13147 else
13148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13149 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13150 fi
13151 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 if test $gl_cv_have_include_next = yes; then
13178 gl_cv_next_unistd_h='<'unistd.h'>'
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
13181 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
13182 if test "${gl_cv_next_unistd_h+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185
13186 if test $ac_cv_header_unistd_h = yes; then
13187
13188
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 #include <unistd.h>
13192
13193 _ACEOF
13194 case "$host_os" in
13195 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13196 *) gl_absname_cpp="$ac_cpp" ;;
13197 esac
13198
13199 case "$host_os" in
13200 mingw*)
13201 gl_dirsep_regex='[/\\]'
13202 ;;
13203 *)
13204 gl_dirsep_regex='\/'
13205 ;;
13206 esac
13207 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13208
13209 gl_header_literal_regex=`echo 'unistd.h' \
13210 | sed -e "$gl_make_literal_regex_sed"`
13211 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13212 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13213 s|^/[^/]|//&|
13214 p
13215 q
13216 }'
13217 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13218 sed -n "$gl_absolute_header_sed"`'"'
13219 else
13220 gl_cv_next_unistd_h='<'unistd.h'>'
13221 fi
13222
13223
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
13226 $as_echo "$gl_cv_next_unistd_h" >&6; }
13227 fi
13228 NEXT_UNISTD_H=$gl_cv_next_unistd_h
13229
13230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13232 gl_next_as_first_directive='<'unistd.h'>'
13233 else
13234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13235 gl_next_as_first_directive=$gl_cv_next_unistd_h
13236 fi
13237 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
13238
13239
13240
13241
13242 if test $ac_cv_header_unistd_h = yes; then
13243 HAVE_UNISTD_H=1
13244 else
13245 HAVE_UNISTD_H=0
13246 fi
13247
13248
13249
13250
13251
13252
13253
13254 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
13255 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13257 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13258 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263
13264 #if HAVE_UNISTD_H
13265 # include <unistd.h>
13266 #endif
13267 /* Some systems declare various items in the wrong headers. */
13268 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13269 # include <fcntl.h>
13270 # include <stdio.h>
13271 # include <stdlib.h>
13272 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13273 # include <io.h>
13274 # endif
13275 #endif
13276
13277 int
13278 main ()
13279 {
13280 #undef $gl_func
13281 (void) $gl_func;
13282 ;
13283 return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 eval "$as_gl_Symbol=yes"
13288 else
13289 eval "$as_gl_Symbol=no"
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 fi
13293 eval ac_res=\$$as_gl_Symbol
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13295 $as_echo "$ac_res" >&6; }
13296 eval as_val=\$$as_gl_Symbol
13297 if test "x$as_val" = x""yes; then :
13298 cat >>confdefs.h <<_ACEOF
13299 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13300 _ACEOF
13301
13302 eval ac_cv_have_decl_$gl_func=yes
13303 fi
13304 done
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319 if test $gl_cv_have_include_next = yes; then
13320 gl_cv_next_wchar_h='<'wchar.h'>'
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13323 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13324 if test "${gl_cv_next_wchar_h+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327
13328 if test $ac_cv_header_wchar_h = yes; then
13329
13330
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <wchar.h>
13334
13335 _ACEOF
13336 case "$host_os" in
13337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13338 *) gl_absname_cpp="$ac_cpp" ;;
13339 esac
13340
13341 case "$host_os" in
13342 mingw*)
13343 gl_dirsep_regex='[/\\]'
13344 ;;
13345 *)
13346 gl_dirsep_regex='\/'
13347 ;;
13348 esac
13349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13350
13351 gl_header_literal_regex=`echo 'wchar.h' \
13352 | sed -e "$gl_make_literal_regex_sed"`
13353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13355 s|^/[^/]|//&|
13356 p
13357 q
13358 }'
13359 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13360 sed -n "$gl_absolute_header_sed"`'"'
13361 else
13362 gl_cv_next_wchar_h='<'wchar.h'>'
13363 fi
13364
13365
13366 fi
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13368 $as_echo "$gl_cv_next_wchar_h" >&6; }
13369 fi
13370 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13371
13372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13374 gl_next_as_first_directive='<'wchar.h'>'
13375 else
13376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13377 gl_next_as_first_directive=$gl_cv_next_wchar_h
13378 fi
13379 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13380
13381
13382
13383
13384 if test $ac_cv_header_wchar_h = yes; then
13385 HAVE_WCHAR_H=1
13386 else
13387 HAVE_WCHAR_H=0
13388 fi
13389
13390
13391
13392
13393
13394 if test $gt_cv_c_wint_t = yes; then
13395 HAVE_WINT_T=1
13396 else
13397 HAVE_WINT_T=0
13398 fi
13399
13400
13401
13402 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
13403 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13405 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13406 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411
13412 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13413 <wchar.h>.
13414 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13415 included before <wchar.h>. */
13416 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13417 # include <stddef.h>
13418 # include <stdio.h>
13419 # include <time.h>
13420 #endif
13421 #include <wchar.h>
13422
13423 int
13424 main ()
13425 {
13426 #undef $gl_func
13427 (void) $gl_func;
13428 ;
13429 return 0;
13430 }
13431 _ACEOF
13432 if ac_fn_c_try_compile "$LINENO"; then :
13433 eval "$as_gl_Symbol=yes"
13434 else
13435 eval "$as_gl_Symbol=no"
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 eval ac_res=\$$as_gl_Symbol
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13441 $as_echo "$ac_res" >&6; }
13442 eval as_val=\$$as_gl_Symbol
13443 if test "x$as_val" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13446 _ACEOF
13447
13448 eval ac_cv_have_decl_$gl_func=yes
13449 fi
13450 done
13451
13452
13453
13454
13455
13456
13457
13458 if test $ac_cv_func_iswcntrl = yes; then
13459 HAVE_ISWCNTRL=1
13460 else
13461 HAVE_ISWCNTRL=0
13462 fi
13463
13464
13465
13466 if test $gt_cv_c_wint_t = yes; then
13467 HAVE_WINT_T=1
13468 else
13469 HAVE_WINT_T=0
13470 fi
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 if test $gl_cv_have_include_next = yes; then
13483 gl_cv_next_wctype_h='<'wctype.h'>'
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13486 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13487 if test "${gl_cv_next_wctype_h+set}" = set; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490
13491 if test $ac_cv_header_wctype_h = yes; then
13492
13493
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <wctype.h>
13497
13498 _ACEOF
13499 case "$host_os" in
13500 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13501 *) gl_absname_cpp="$ac_cpp" ;;
13502 esac
13503
13504 case "$host_os" in
13505 mingw*)
13506 gl_dirsep_regex='[/\\]'
13507 ;;
13508 *)
13509 gl_dirsep_regex='\/'
13510 ;;
13511 esac
13512 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13513
13514 gl_header_literal_regex=`echo 'wctype.h' \
13515 | sed -e "$gl_make_literal_regex_sed"`
13516 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13518 s|^/[^/]|//&|
13519 p
13520 q
13521 }'
13522 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13523 sed -n "$gl_absolute_header_sed"`'"'
13524 else
13525 gl_cv_next_wctype_h='<'wctype.h'>'
13526 fi
13527
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13531 $as_echo "$gl_cv_next_wctype_h" >&6; }
13532 fi
13533 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
13534
13535 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13537 gl_next_as_first_directive='<'wctype.h'>'
13538 else
13539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13540 gl_next_as_first_directive=$gl_cv_next_wctype_h
13541 fi
13542 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13543
13544
13545
13546
13547 if test $ac_cv_header_wctype_h = yes; then
13548 if test $ac_cv_func_iswcntrl = yes; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13550 $as_echo_n "checking whether iswcntrl works... " >&6; }
13551 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554
13555 if test "$cross_compiling" = yes; then :
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 #include <stdlib.h>
13559 #if __GNU_LIBRARY__ == 1
13560 Linux libc5 i18n is broken.
13561 #endif
13562 int
13563 main ()
13564 {
13565
13566 ;
13567 return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 gl_cv_func_iswcntrl_works="guessing yes"
13572 else
13573 gl_cv_func_iswcntrl_works="guessing no"
13574 fi
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576
13577 else
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580
13581 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13582 included before <wchar.h>.
13583 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13584 must be included before <wchar.h>. */
13585 #include <stddef.h>
13586 #include <stdio.h>
13587 #include <time.h>
13588 #include <wchar.h>
13589 #include <wctype.h>
13590 int main () { return iswprint ('x') == 0; }
13591
13592 _ACEOF
13593 if ac_fn_c_try_run "$LINENO"; then :
13594 gl_cv_func_iswcntrl_works=yes
13595 else
13596 gl_cv_func_iswcntrl_works=no
13597 fi
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599 conftest.$ac_objext conftest.beam conftest.$ac_ext
13600 fi
13601
13602
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13605 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13606 fi
13607 HAVE_WCTYPE_H=1
13608 else
13609 HAVE_WCTYPE_H=0
13610 fi
13611
13612
13613 case "$gl_cv_func_iswcntrl_works" in
13614 *yes) REPLACE_ISWCNTRL=0 ;;
13615 *) REPLACE_ISWCNTRL=1 ;;
13616 esac
13617
13618
13619 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13620 :
13621 fi
13622
13623 if test $REPLACE_ISWCNTRL = 1; then
13624 REPLACE_TOWLOWER=1
13625 else
13626 for ac_func in towlower
13627 do :
13628 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13629 if test "x$ac_cv_func_towlower" = x""yes; then :
13630 cat >>confdefs.h <<_ACEOF
13631 #define HAVE_TOWLOWER 1
13632 _ACEOF
13633
13634 fi
13635 done
13636
13637 if test $ac_cv_func_towlower = yes; then
13638 REPLACE_TOWLOWER=0
13639 else
13640 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13641 included before <wchar.h>.
13642 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13643 must be included before <wchar.h>. */
13644 #include <stddef.h>
13645 #include <stdio.h>
13646 #include <time.h>
13647 #include <wchar.h>
13648 #if HAVE_WCTYPE_H
13649 # include <wctype.h>
13650 #endif
13651
13652 "
13653 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13654 ac_have_decl=1
13655 else
13656 ac_have_decl=0
13657 fi
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_DECL_TOWLOWER $ac_have_decl
13661 _ACEOF
13662
13663 if test $ac_cv_have_decl_towlower = yes; then
13664 REPLACE_TOWLOWER=1
13665 else
13666 REPLACE_TOWLOWER=0
13667 fi
13668 fi
13669 fi
13670
13671
13672 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13673 :
13674 fi
13675
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13677 $as_echo_n "checking for wctype_t... " >&6; }
13678 if test "${gl_cv_type_wctype_t+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13684 included before <wchar.h>.
13685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13686 must be included before <wchar.h>. */
13687 #include <stddef.h>
13688 #include <stdio.h>
13689 #include <time.h>
13690 #include <wchar.h>
13691 #if HAVE_WCTYPE_H
13692 # include <wctype.h>
13693 #endif
13694 wctype_t a;
13695
13696 int
13697 main ()
13698 {
13699
13700 ;
13701 return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 gl_cv_type_wctype_t=yes
13706 else
13707 gl_cv_type_wctype_t=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13713 $as_echo "$gl_cv_type_wctype_t" >&6; }
13714 if test $gl_cv_type_wctype_t = no; then
13715 HAVE_WCTYPE_T=0
13716 fi
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13719 $as_echo_n "checking for wctrans_t... " >&6; }
13720 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13726 included before <wchar.h>.
13727 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13728 must be included before <wchar.h>. */
13729 #include <stddef.h>
13730 #include <stdio.h>
13731 #include <time.h>
13732 #include <wchar.h>
13733 #include <wctype.h>
13734 wctrans_t a;
13735
13736 int
13737 main ()
13738 {
13739
13740 ;
13741 return 0;
13742 }
13743 _ACEOF
13744 if ac_fn_c_try_compile "$LINENO"; then :
13745 gl_cv_type_wctrans_t=yes
13746 else
13747 gl_cv_type_wctrans_t=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13753 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13754 if test $gl_cv_type_wctrans_t = no; then
13755 HAVE_WCTRANS_T=0
13756 fi
13757
13758
13759 for gl_func in wctype iswctype wctrans towctrans ; do
13760 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13762 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13763 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768
13769 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13770 <wchar.h>.
13771 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13772 included before <wchar.h>. */
13773 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13774 # include <stddef.h>
13775 # include <stdio.h>
13776 # include <time.h>
13777 # include <wchar.h>
13778 #endif
13779 #include <wctype.h>
13780
13781 int
13782 main ()
13783 {
13784 #undef $gl_func
13785 (void) $gl_func;
13786 ;
13787 return 0;
13788 }
13789 _ACEOF
13790 if ac_fn_c_try_compile "$LINENO"; then :
13791 eval "$as_gl_Symbol=yes"
13792 else
13793 eval "$as_gl_Symbol=no"
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 fi
13797 eval ac_res=\$$as_gl_Symbol
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13799 $as_echo "$ac_res" >&6; }
13800 eval as_val=\$$as_gl_Symbol
13801 if test "x$as_val" = x""yes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13804 _ACEOF
13805
13806 eval ac_cv_have_decl_$gl_func=yes
13807 fi
13808 done
13809
13810
13811 # End of code from modules
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821 gltests_libdeps=
13822 gltests_ltlibdeps=
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832 gl_source_base='tests'
13833 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
13834
13835 gl_module_indicator_condition=$gltests_WITNESS
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845 LIBGNU_LIBDEPS="$gl_libdeps"
13846
13847 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13848
13849
13850
13851 # We don't use automake, but gnulib does. This line lets us generate
13852 # its Makefile.in.
13853 am__api_version='1.11'
13854
13855 # Find a good install program. We prefer a C program (faster),
13856 # so one script is as good as another. But avoid the broken or
13857 # incompatible versions:
13858 # SysV /etc/install, /usr/sbin/install
13859 # SunOS /usr/etc/install
13860 # IRIX /sbin/install
13861 # AIX /bin/install
13862 # AmigaOS /C/install, which installs bootblocks on floppy discs
13863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13866 # OS/2's system install, which has a completely different semantic
13867 # ./install, which can be erroneously created by make from ./install.sh.
13868 # Reject install programs that cannot install multiple files.
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13871 if test -z "$INSTALL"; then
13872 if test "${ac_cv_path_install+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13877 do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 # Account for people who put trailing slashes in PATH elements.
13881 case $as_dir/ in #((
13882 ./ | .// | /[cC]/* | \
13883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13885 /usr/ucb/* ) ;;
13886 *)
13887 # OSF1 and SCO ODT 3.0 have their own names for install.
13888 # Don't use installbsd from OSF since it installs stuff as root
13889 # by default.
13890 for ac_prog in ginstall scoinst install; do
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13893 if test $ac_prog = install &&
13894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13895 # AIX install. It has an incompatible calling convention.
13896 :
13897 elif test $ac_prog = install &&
13898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13899 # program-specific install script used by HP pwplus--don't use.
13900 :
13901 else
13902 rm -rf conftest.one conftest.two conftest.dir
13903 echo one > conftest.one
13904 echo two > conftest.two
13905 mkdir conftest.dir
13906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13907 test -s conftest.one && test -s conftest.two &&
13908 test -s conftest.dir/conftest.one &&
13909 test -s conftest.dir/conftest.two
13910 then
13911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13912 break 3
13913 fi
13914 fi
13915 fi
13916 done
13917 done
13918 ;;
13919 esac
13920
13921 done
13922 IFS=$as_save_IFS
13923
13924 rm -rf conftest.one conftest.two conftest.dir
13925
13926 fi
13927 if test "${ac_cv_path_install+set}" = set; then
13928 INSTALL=$ac_cv_path_install
13929 else
13930 # As a last resort, use the slow shell script. Don't cache a
13931 # value for INSTALL within a source directory, because that will
13932 # break other packages using the cache if that directory is
13933 # removed, or if the value is a relative name.
13934 INSTALL=$ac_install_sh
13935 fi
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13938 $as_echo "$INSTALL" >&6; }
13939
13940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13941 # It thinks the first close brace ends the variable substitution.
13942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13943
13944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13945
13946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13949 $as_echo_n "checking whether build environment is sane... " >&6; }
13950 # Just in case
13951 sleep 1
13952 echo timestamp > conftest.file
13953 # Reject unsafe characters in $srcdir or the absolute working directory
13954 # name. Accept space and tab only in the latter.
13955 am_lf='
13956 '
13957 case `pwd` in
13958 *[\\\"\#\$\&\'\`$am_lf]*)
13959 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13960 esac
13961 case $srcdir in
13962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13963 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13964 esac
13965
13966 # Do `set' in a subshell so we don't clobber the current shell's
13967 # arguments. Must try -L first in case configure is actually a
13968 # symlink; some systems play weird games with the mod time of symlinks
13969 # (eg FreeBSD returns the mod time of the symlink's containing
13970 # directory).
13971 if (
13972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13973 if test "$*" = "X"; then
13974 # -L didn't work.
13975 set X `ls -t "$srcdir/configure" conftest.file`
13976 fi
13977 rm -f conftest.file
13978 if test "$*" != "X $srcdir/configure conftest.file" \
13979 && test "$*" != "X conftest.file $srcdir/configure"; then
13980
13981 # If neither matched, then we have a broken ls. This can happen
13982 # if, for instance, CONFIG_SHELL is bash and it inherits a
13983 # broken ls alias from the environment. This has actually
13984 # happened. Such a system could not be considered "sane".
13985 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13986 alias in your environment" "$LINENO" 5
13987 fi
13988
13989 test "$2" = conftest.file
13990 )
13991 then
13992 # Ok.
13993 :
13994 else
13995 as_fn_error "newly created file is older than distributed files!
13996 Check your system clock" "$LINENO" 5
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14000 test "$program_prefix" != NONE &&
14001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14002 # Use a double $ so make ignores it.
14003 test "$program_suffix" != NONE &&
14004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14005 # Double any \ or $.
14006 # By default was `s,x,x', remove it if useless.
14007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14009
14010 # expand $ac_aux_dir to an absolute path
14011 am_aux_dir=`cd $ac_aux_dir && pwd`
14012
14013 if test x"${MISSING+set}" != xset; then
14014 case $am_aux_dir in
14015 *\ * | *\ *)
14016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14017 *)
14018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14019 esac
14020 fi
14021 # Use eval to expand $SHELL
14022 if eval "$MISSING --run true"; then
14023 am_missing_run="$MISSING --run "
14024 else
14025 am_missing_run=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14028 fi
14029
14030 if test x"${install_sh}" != xset; then
14031 case $am_aux_dir in
14032 *\ * | *\ *)
14033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14034 *)
14035 install_sh="\${SHELL} $am_aux_dir/install-sh"
14036 esac
14037 fi
14038
14039 # Installed binaries are usually stripped using `strip' when the user
14040 # run `make install-strip'. However `strip' might not be the right
14041 # tool to use in cross-compilation environments, therefore Automake
14042 # will honor the `STRIP' environment variable to overrule this program.
14043 if test "$cross_compiling" != no; then
14044 if test -n "$ac_tool_prefix"; then
14045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14046 set dummy ${ac_tool_prefix}strip; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if test "${ac_cv_prog_STRIP+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 if test -n "$STRIP"; then
14053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14054 else
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi
14071 fi
14072 STRIP=$ac_cv_prog_STRIP
14073 if test -n "$STRIP"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14075 $as_echo "$STRIP" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080
14081
14082 fi
14083 if test -z "$ac_cv_prog_STRIP"; then
14084 ac_ct_STRIP=$STRIP
14085 # Extract the first word of "strip", so it can be a program name with args.
14086 set dummy strip; ac_word=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 if test -n "$ac_ct_STRIP"; then
14093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14094 else
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14097 do
14098 IFS=$as_save_IFS
14099 test -z "$as_dir" && as_dir=.
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102 ac_cv_prog_ac_ct_STRIP="strip"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14104 break 2
14105 fi
14106 done
14107 done
14108 IFS=$as_save_IFS
14109
14110 fi
14111 fi
14112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14113 if test -n "$ac_ct_STRIP"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14115 $as_echo "$ac_ct_STRIP" >&6; }
14116 else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14119 fi
14120
14121 if test "x$ac_ct_STRIP" = x; then
14122 STRIP=":"
14123 else
14124 case $cross_compiling:$ac_tool_warned in
14125 yes:)
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14128 ac_tool_warned=yes ;;
14129 esac
14130 STRIP=$ac_ct_STRIP
14131 fi
14132 else
14133 STRIP="$ac_cv_prog_STRIP"
14134 fi
14135
14136 fi
14137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14138
14139 mkdir_p="$MKDIR_P"
14140 case $mkdir_p in
14141 [\\/$]* | ?:[\\/]*) ;;
14142 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14143 esac
14144
14145 for ac_prog in gawk mawk nawk awk
14146 do
14147 # Extract the first word of "$ac_prog", so it can be a program name with args.
14148 set dummy $ac_prog; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if test "${ac_cv_prog_AWK+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if test -n "$AWK"; then
14155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14159 do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_AWK="$ac_prog"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14167 fi
14168 done
14169 done
14170 IFS=$as_save_IFS
14171
14172 fi
14173 fi
14174 AWK=$ac_cv_prog_AWK
14175 if test -n "$AWK"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14177 $as_echo "$AWK" >&6; }
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14181 fi
14182
14183
14184 test -n "$AWK" && break
14185 done
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14188 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14189 set x ${MAKE-make}
14190 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat >conftest.make <<\_ACEOF
14195 SHELL = /bin/sh
14196 all:
14197 @echo '@@@%%%=$(MAKE)=@@@%%%'
14198 _ACEOF
14199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14201 *@@@%%%=?*=@@@%%%*)
14202 eval ac_cv_prog_make_${ac_make}_set=yes;;
14203 *)
14204 eval ac_cv_prog_make_${ac_make}_set=no;;
14205 esac
14206 rm -f conftest.make
14207 fi
14208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 $as_echo "yes" >&6; }
14211 SET_MAKE=
14212 else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14215 SET_MAKE="MAKE=${MAKE-make}"
14216 fi
14217
14218 rm -rf .tst 2>/dev/null
14219 mkdir .tst 2>/dev/null
14220 if test -d .tst; then
14221 am__leading_dot=.
14222 else
14223 am__leading_dot=_
14224 fi
14225 rmdir .tst 2>/dev/null
14226
14227 DEPDIR="${am__leading_dot}deps"
14228
14229 ac_config_commands="$ac_config_commands depfiles"
14230
14231
14232 am_make=${MAKE-make}
14233 cat > confinc << 'END'
14234 am__doit:
14235 @echo this is the am__doit target
14236 .PHONY: am__doit
14237 END
14238 # If we don't find an include directive, just comment out the code.
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14240 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14241 am__include="#"
14242 am__quote=
14243 _am_result=none
14244 # First try GNU make style include.
14245 echo "include confinc" > confmf
14246 # Ignore all kinds of additional output from `make'.
14247 case `$am_make -s -f confmf 2> /dev/null` in #(
14248 *the\ am__doit\ target*)
14249 am__include=include
14250 am__quote=
14251 _am_result=GNU
14252 ;;
14253 esac
14254 # Now try BSD make style include.
14255 if test "$am__include" = "#"; then
14256 echo '.include "confinc"' > confmf
14257 case `$am_make -s -f confmf 2> /dev/null` in #(
14258 *the\ am__doit\ target*)
14259 am__include=.include
14260 am__quote="\""
14261 _am_result=BSD
14262 ;;
14263 esac
14264 fi
14265
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14268 $as_echo "$_am_result" >&6; }
14269 rm -f confinc confmf
14270
14271 # Check whether --enable-dependency-tracking was given.
14272 if test "${enable_dependency_tracking+set}" = set; then :
14273 enableval=$enable_dependency_tracking;
14274 fi
14275
14276 if test "x$enable_dependency_tracking" != xno; then
14277 am_depcomp="$ac_aux_dir/depcomp"
14278 AMDEPBACKSLASH='\'
14279 fi
14280 if test "x$enable_dependency_tracking" != xno; then
14281 AMDEP_TRUE=
14282 AMDEP_FALSE='#'
14283 else
14284 AMDEP_TRUE='#'
14285 AMDEP_FALSE=
14286 fi
14287
14288
14289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14291 # is not polluted with repeated "-I."
14292 am__isrc=' -I$(srcdir)'
14293 # test to see if srcdir already configured
14294 if test -f $srcdir/config.status; then
14295 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14296 fi
14297 fi
14298
14299 # test whether we have cygpath
14300 if test -z "$CYGPATH_W"; then
14301 if (cygpath --version) >/dev/null 2>/dev/null; then
14302 CYGPATH_W='cygpath -w'
14303 else
14304 CYGPATH_W=echo
14305 fi
14306 fi
14307
14308
14309 # Define the identity of the package.
14310 PACKAGE=libgnu
14311 VERSION=UNUSED-VERSION
14312
14313
14314 # Some tools Automake needs.
14315
14316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14317
14318
14319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14320
14321
14322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14323
14324
14325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14326
14327
14328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14329
14330 # We need awk for the "check" target. The system "awk" is bad on
14331 # some platforms.
14332 # Always define AMTAR for backward compatibility.
14333
14334 AMTAR=${AMTAR-"${am_missing_run}tar"}
14335
14336 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14337
14338
14339
14340
14341 depcc="$CC" am_compiler_list=
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14344 $as_echo_n "checking dependency style of $depcc... " >&6; }
14345 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14349 # We make a subdir and do the tests there. Otherwise we can end up
14350 # making bogus files that we don't know about and never remove. For
14351 # instance it was reported that on HP-UX the gcc test will end up
14352 # making a dummy file named `D' -- because `-MD' means `put the output
14353 # in D'.
14354 mkdir conftest.dir
14355 # Copy depcomp to subdir because otherwise we won't find it if we're
14356 # using a relative directory.
14357 cp "$am_depcomp" conftest.dir
14358 cd conftest.dir
14359 # We will build objects and dependencies in a subdirectory because
14360 # it helps to detect inapplicable dependency modes. For instance
14361 # both Tru64's cc and ICC support -MD to output dependencies as a
14362 # side effect of compilation, but ICC will put the dependencies in
14363 # the current directory while Tru64 will put them in the object
14364 # directory.
14365 mkdir sub
14366
14367 am_cv_CC_dependencies_compiler_type=none
14368 if test "$am_compiler_list" = ""; then
14369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14370 fi
14371 am__universal=false
14372 case " $depcc " in #(
14373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14374 esac
14375
14376 for depmode in $am_compiler_list; do
14377 # Setup a source with many dependencies, because some compilers
14378 # like to wrap large dependency lists on column 80 (with \), and
14379 # we should not choose a depcomp mode which is confused by this.
14380 #
14381 # We need to recreate these files for each test, as the compiler may
14382 # overwrite some of them when testing with obscure command lines.
14383 # This happens at least with the AIX C compiler.
14384 : > sub/conftest.c
14385 for i in 1 2 3 4 5 6; do
14386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14388 # Solaris 8's {/usr,}/bin/sh.
14389 touch sub/conftst$i.h
14390 done
14391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14392
14393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14394 # mode. It turns out that the SunPro C++ compiler does not properly
14395 # handle `-M -o', and we need to detect this. Also, some Intel
14396 # versions had trouble with output in subdirs
14397 am__obj=sub/conftest.${OBJEXT-o}
14398 am__minus_obj="-o $am__obj"
14399 case $depmode in
14400 gcc)
14401 # This depmode causes a compiler race in universal mode.
14402 test "$am__universal" = false || continue
14403 ;;
14404 nosideeffect)
14405 # after this tag, mechanisms are not by side-effect, so they'll
14406 # only be used when explicitly requested
14407 if test "x$enable_dependency_tracking" = xyes; then
14408 continue
14409 else
14410 break
14411 fi
14412 ;;
14413 msvisualcpp | msvcmsys)
14414 # This compiler won't grok `-c -o', but also, the minuso test has
14415 # not run yet. These depmodes are late enough in the game, and
14416 # so weak that their functioning should not be impacted.
14417 am__obj=conftest.${OBJEXT-o}
14418 am__minus_obj=
14419 ;;
14420 none) break ;;
14421 esac
14422 if depmode=$depmode \
14423 source=sub/conftest.c object=$am__obj \
14424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14426 >/dev/null 2>conftest.err &&
14427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14431 # icc doesn't choke on unknown options, it will just issue warnings
14432 # or remarks (even with -Werror). So we grep stderr for any message
14433 # that says an option was ignored or not supported.
14434 # When given -MP, icc 7.0 and 7.1 complain thusly:
14435 # icc: Command line warning: ignoring option '-M'; no argument required
14436 # The diagnosis changed in icc 8.0:
14437 # icc: Command line remark: option '-MP' not supported
14438 if (grep 'ignoring option' conftest.err ||
14439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14440 am_cv_CC_dependencies_compiler_type=$depmode
14441 break
14442 fi
14443 fi
14444 done
14445
14446 cd ..
14447 rm -rf conftest.dir
14448 else
14449 am_cv_CC_dependencies_compiler_type=none
14450 fi
14451
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14454 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14455 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14456
14457 if
14458 test "x$enable_dependency_tracking" != xno \
14459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14460 am__fastdepCC_TRUE=
14461 am__fastdepCC_FALSE='#'
14462 else
14463 am__fastdepCC_TRUE='#'
14464 am__fastdepCC_FALSE=
14465 fi
14466
14467
14468
14469
14470 # --------------------- #
14471 # Checks for programs. #
14472 # --------------------- #
14473
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14476 $as_echo_n "checking whether ln -s works... " >&6; }
14477 LN_S=$as_ln_s
14478 if test "$LN_S" = "ln -s"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14480 $as_echo "yes" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14483 $as_echo "no, using $LN_S" >&6; }
14484 fi
14485
14486 if test -n "$ac_tool_prefix"; then
14487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490 $as_echo_n "checking for $ac_word... " >&6; }
14491 if test "${ac_cv_prog_RANLIB+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 if test -n "$RANLIB"; then
14495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14496 else
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14499 do
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
14503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 break 2
14507 fi
14508 done
14509 done
14510 IFS=$as_save_IFS
14511
14512 fi
14513 fi
14514 RANLIB=$ac_cv_prog_RANLIB
14515 if test -n "$RANLIB"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14517 $as_echo "$RANLIB" >&6; }
14518 else
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14521 fi
14522
14523
14524 fi
14525 if test -z "$ac_cv_prog_RANLIB"; then
14526 ac_ct_RANLIB=$RANLIB
14527 # Extract the first word of "ranlib", so it can be a program name with args.
14528 set dummy ranlib; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 if test -n "$ac_ct_RANLIB"; then
14535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14536 else
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14539 do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14544 ac_cv_prog_ac_ct_RANLIB="ranlib"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14547 fi
14548 done
14549 done
14550 IFS=$as_save_IFS
14551
14552 fi
14553 fi
14554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14555 if test -n "$ac_ct_RANLIB"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14557 $as_echo "$ac_ct_RANLIB" >&6; }
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14561 fi
14562
14563 if test "x$ac_ct_RANLIB" = x; then
14564 RANLIB=":"
14565 else
14566 case $cross_compiling:$ac_tool_warned in
14567 yes:)
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14570 ac_tool_warned=yes ;;
14571 esac
14572 RANLIB=$ac_ct_RANLIB
14573 fi
14574 else
14575 RANLIB="$ac_cv_prog_RANLIB"
14576 fi
14577
14578
14579 if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14581 set dummy ${ac_tool_prefix}ar; ac_word=$2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 $as_echo_n "checking for $ac_word... " >&6; }
14584 if test "${ac_cv_prog_AR+set}" = set; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 if test -n "$AR"; then
14588 ac_cv_prog_AR="$AR" # Let the user override the test.
14589 else
14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591 for as_dir in $PATH
14592 do
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597 ac_cv_prog_AR="${ac_tool_prefix}ar"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601 done
14602 done
14603 IFS=$as_save_IFS
14604
14605 fi
14606 fi
14607 AR=$ac_cv_prog_AR
14608 if test -n "$AR"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14610 $as_echo "$AR" >&6; }
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14614 fi
14615
14616
14617 fi
14618 if test -z "$ac_cv_prog_AR"; then
14619 ac_ct_AR=$AR
14620 # Extract the first word of "ar", so it can be a program name with args.
14621 set dummy ar; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$ac_ct_AR"; then
14628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14632 do
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_ac_ct_AR="ar"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14640 fi
14641 done
14642 done
14643 IFS=$as_save_IFS
14644
14645 fi
14646 fi
14647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14648 if test -n "$ac_ct_AR"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14650 $as_echo "$ac_ct_AR" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655
14656 if test "x$ac_ct_AR" = x; then
14657 AR=""
14658 else
14659 case $cross_compiling:$ac_tool_warned in
14660 yes:)
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14663 ac_tool_warned=yes ;;
14664 esac
14665 AR=$ac_ct_AR
14666 fi
14667 else
14668 AR="$ac_cv_prog_AR"
14669 fi
14670
14671
14672 # ---------------------- #
14673 # Checks for libraries. #
14674 # ---------------------- #
14675
14676 ac_config_files="$ac_config_files Makefile import/Makefile"
14677
14678 ac_config_commands="$ac_config_commands default"
14679
14680 cat >confcache <<\_ACEOF
14681 # This file is a shell script that caches the results of configure
14682 # tests run on this system so they can be shared between configure
14683 # scripts and configure runs, see configure's option --config-cache.
14684 # It is not useful on other systems. If it contains results you don't
14685 # want to keep, you may remove or edit it.
14686 #
14687 # config.status only pays attention to the cache file if you give it
14688 # the --recheck option to rerun configure.
14689 #
14690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14692 # following values.
14693
14694 _ACEOF
14695
14696 # The following way of writing the cache mishandles newlines in values,
14697 # but we know of no workaround that is simple, portable, and efficient.
14698 # So, we kill variables containing newlines.
14699 # Ultrix sh set writes to stderr and can't be redirected directly,
14700 # and sets the high bit in the cache file unless we assign to the vars.
14701 (
14702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14703 eval ac_val=\$$ac_var
14704 case $ac_val in #(
14705 *${as_nl}*)
14706 case $ac_var in #(
14707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14709 esac
14710 case $ac_var in #(
14711 _ | IFS | as_nl) ;; #(
14712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14713 *) { eval $ac_var=; unset $ac_var;} ;;
14714 esac ;;
14715 esac
14716 done
14717
14718 (set) 2>&1 |
14719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14720 *${as_nl}ac_space=\ *)
14721 # `set' does not quote correctly, so add quotes: double-quote
14722 # substitution turns \\\\ into \\, and sed turns \\ into \.
14723 sed -n \
14724 "s/'/'\\\\''/g;
14725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14726 ;; #(
14727 *)
14728 # `set' quotes correctly as required by POSIX, so do not add quotes.
14729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14730 ;;
14731 esac |
14732 sort
14733 ) |
14734 sed '
14735 /^ac_cv_env_/b end
14736 t clear
14737 :clear
14738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14739 t end
14740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14741 :end' >>confcache
14742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14743 if test -w "$cache_file"; then
14744 test "x$cache_file" != "x/dev/null" &&
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14746 $as_echo "$as_me: updating cache $cache_file" >&6;}
14747 cat confcache >$cache_file
14748 else
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14751 fi
14752 fi
14753 rm -f confcache
14754
14755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14756 # Let make expand exec_prefix.
14757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14758
14759 DEFS=-DHAVE_CONFIG_H
14760
14761 ac_libobjs=
14762 ac_ltlibobjs=
14763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14764 # 1. Remove the extension, and $U if already installed.
14765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14768 # will be set to the directory where LIBOBJS objects are built.
14769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14771 done
14772 LIBOBJS=$ac_libobjs
14773
14774 LTLIBOBJS=$ac_ltlibobjs
14775
14776
14777 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14778 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14780 fi
14781 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14782 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14784 fi
14785 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14786 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14788 fi
14789 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14790 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14792 fi
14793 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14794 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14796 fi
14797 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14798 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14800 fi
14801
14802
14803 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14804 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14808 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811
14812 gl_libobjs=
14813 gl_ltlibobjs=
14814 if test -n "$gl_LIBOBJS"; then
14815 # Remove the extension.
14816 sed_drop_objext='s/\.o$//;s/\.obj$//'
14817 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14818 gl_libobjs="$gl_libobjs $i.$ac_objext"
14819 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14820 done
14821 fi
14822 gl_LIBOBJS=$gl_libobjs
14823
14824 gl_LTLIBOBJS=$gl_ltlibobjs
14825
14826
14827
14828 gltests_libobjs=
14829 gltests_ltlibobjs=
14830 if test -n "$gltests_LIBOBJS"; then
14831 # Remove the extension.
14832 sed_drop_objext='s/\.o$//;s/\.obj$//'
14833 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14834 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14835 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14836 done
14837 fi
14838 gltests_LIBOBJS=$gltests_libobjs
14839
14840 gltests_LTLIBOBJS=$gltests_ltlibobjs
14841
14842
14843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14844 as_fn_error "conditional \"AMDEP\" was never defined.
14845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14846 fi
14847 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14848 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14850 fi
14851 if test -n "$EXEEXT"; then
14852 am__EXEEXT_TRUE=
14853 am__EXEEXT_FALSE='#'
14854 else
14855 am__EXEEXT_TRUE='#'
14856 am__EXEEXT_FALSE=
14857 fi
14858
14859
14860 : ${CONFIG_STATUS=./config.status}
14861 ac_write_fail=0
14862 ac_clean_files_save=$ac_clean_files
14863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14866 as_write_fail=0
14867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14868 #! $SHELL
14869 # Generated by $as_me.
14870 # Run this file to recreate the current configuration.
14871 # Compiler output produced by configure, useful for debugging
14872 # configure, is in config.log if it exists.
14873
14874 debug=false
14875 ac_cs_recheck=false
14876 ac_cs_silent=false
14877
14878 SHELL=\${CONFIG_SHELL-$SHELL}
14879 export SHELL
14880 _ASEOF
14881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14882 ## -------------------- ##
14883 ## M4sh Initialization. ##
14884 ## -------------------- ##
14885
14886 # Be more Bourne compatible
14887 DUALCASE=1; export DUALCASE # for MKS sh
14888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14889 emulate sh
14890 NULLCMD=:
14891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14892 # is contrary to our usage. Disable this feature.
14893 alias -g '${1+"$@"}'='"$@"'
14894 setopt NO_GLOB_SUBST
14895 else
14896 case `(set -o) 2>/dev/null` in #(
14897 *posix*) :
14898 set -o posix ;; #(
14899 *) :
14900 ;;
14901 esac
14902 fi
14903
14904
14905 as_nl='
14906 '
14907 export as_nl
14908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14912 # Prefer a ksh shell builtin over an external printf program on Solaris,
14913 # but without wasting forks for bash or zsh.
14914 if test -z "$BASH_VERSION$ZSH_VERSION" \
14915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14916 as_echo='print -r --'
14917 as_echo_n='print -rn --'
14918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14919 as_echo='printf %s\n'
14920 as_echo_n='printf %s'
14921 else
14922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14924 as_echo_n='/usr/ucb/echo -n'
14925 else
14926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14927 as_echo_n_body='eval
14928 arg=$1;
14929 case $arg in #(
14930 *"$as_nl"*)
14931 expr "X$arg" : "X\\(.*\\)$as_nl";
14932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14933 esac;
14934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14935 '
14936 export as_echo_n_body
14937 as_echo_n='sh -c $as_echo_n_body as_echo'
14938 fi
14939 export as_echo_body
14940 as_echo='sh -c $as_echo_body as_echo'
14941 fi
14942
14943 # The user is always right.
14944 if test "${PATH_SEPARATOR+set}" != set; then
14945 PATH_SEPARATOR=:
14946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14948 PATH_SEPARATOR=';'
14949 }
14950 fi
14951
14952
14953 # IFS
14954 # We need space, tab and new line, in precisely that order. Quoting is
14955 # there to prevent editors from complaining about space-tab.
14956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14957 # splitting by setting IFS to empty value.)
14958 IFS=" "" $as_nl"
14959
14960 # Find who we are. Look in the path if we contain no directory separator.
14961 case $0 in #((
14962 *[\\/]* ) as_myself=$0 ;;
14963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14964 for as_dir in $PATH
14965 do
14966 IFS=$as_save_IFS
14967 test -z "$as_dir" && as_dir=.
14968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14969 done
14970 IFS=$as_save_IFS
14971
14972 ;;
14973 esac
14974 # We did not find ourselves, most probably we were run as `sh COMMAND'
14975 # in which case we are not to be found in the path.
14976 if test "x$as_myself" = x; then
14977 as_myself=$0
14978 fi
14979 if test ! -f "$as_myself"; then
14980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14981 exit 1
14982 fi
14983
14984 # Unset variables that we do not need and which cause bugs (e.g. in
14985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14986 # suppresses any "Segmentation fault" message there. '((' could
14987 # trigger a bug in pdksh 5.2.14.
14988 for as_var in BASH_ENV ENV MAIL MAILPATH
14989 do eval test x\${$as_var+set} = xset \
14990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14991 done
14992 PS1='$ '
14993 PS2='> '
14994 PS4='+ '
14995
14996 # NLS nuisances.
14997 LC_ALL=C
14998 export LC_ALL
14999 LANGUAGE=C
15000 export LANGUAGE
15001
15002 # CDPATH.
15003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15004
15005
15006 # as_fn_error ERROR [LINENO LOG_FD]
15007 # ---------------------------------
15008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15010 # script with status $?, using 1 if that was 0.
15011 as_fn_error ()
15012 {
15013 as_status=$?; test $as_status -eq 0 && as_status=1
15014 if test "$3"; then
15015 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15017 fi
15018 $as_echo "$as_me: error: $1" >&2
15019 as_fn_exit $as_status
15020 } # as_fn_error
15021
15022
15023 # as_fn_set_status STATUS
15024 # -----------------------
15025 # Set $? to STATUS, without forking.
15026 as_fn_set_status ()
15027 {
15028 return $1
15029 } # as_fn_set_status
15030
15031 # as_fn_exit STATUS
15032 # -----------------
15033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15034 as_fn_exit ()
15035 {
15036 set +e
15037 as_fn_set_status $1
15038 exit $1
15039 } # as_fn_exit
15040
15041 # as_fn_unset VAR
15042 # ---------------
15043 # Portably unset VAR.
15044 as_fn_unset ()
15045 {
15046 { eval $1=; unset $1;}
15047 }
15048 as_unset=as_fn_unset
15049 # as_fn_append VAR VALUE
15050 # ----------------------
15051 # Append the text in VALUE to the end of the definition contained in VAR. Take
15052 # advantage of any shell optimizations that allow amortized linear growth over
15053 # repeated appends, instead of the typical quadratic growth present in naive
15054 # implementations.
15055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15056 eval 'as_fn_append ()
15057 {
15058 eval $1+=\$2
15059 }'
15060 else
15061 as_fn_append ()
15062 {
15063 eval $1=\$$1\$2
15064 }
15065 fi # as_fn_append
15066
15067 # as_fn_arith ARG...
15068 # ------------------
15069 # Perform arithmetic evaluation on the ARGs, and store the result in the
15070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15071 # must be portable across $(()) and expr.
15072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15073 eval 'as_fn_arith ()
15074 {
15075 as_val=$(( $* ))
15076 }'
15077 else
15078 as_fn_arith ()
15079 {
15080 as_val=`expr "$@" || test $? -eq 1`
15081 }
15082 fi # as_fn_arith
15083
15084
15085 if expr a : '\(a\)' >/dev/null 2>&1 &&
15086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15087 as_expr=expr
15088 else
15089 as_expr=false
15090 fi
15091
15092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15093 as_basename=basename
15094 else
15095 as_basename=false
15096 fi
15097
15098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15099 as_dirname=dirname
15100 else
15101 as_dirname=false
15102 fi
15103
15104 as_me=`$as_basename -- "$0" ||
15105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15106 X"$0" : 'X\(//\)$' \| \
15107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15108 $as_echo X/"$0" |
15109 sed '/^.*\/\([^/][^/]*\)\/*$/{
15110 s//\1/
15111 q
15112 }
15113 /^X\/\(\/\/\)$/{
15114 s//\1/
15115 q
15116 }
15117 /^X\/\(\/\).*/{
15118 s//\1/
15119 q
15120 }
15121 s/.*/./; q'`
15122
15123 # Avoid depending upon Character Ranges.
15124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15127 as_cr_digits='0123456789'
15128 as_cr_alnum=$as_cr_Letters$as_cr_digits
15129
15130 ECHO_C= ECHO_N= ECHO_T=
15131 case `echo -n x` in #(((((
15132 -n*)
15133 case `echo 'xy\c'` in
15134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15135 xy) ECHO_C='\c';;
15136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15137 ECHO_T=' ';;
15138 esac;;
15139 *)
15140 ECHO_N='-n';;
15141 esac
15142
15143 rm -f conf$$ conf$$.exe conf$$.file
15144 if test -d conf$$.dir; then
15145 rm -f conf$$.dir/conf$$.file
15146 else
15147 rm -f conf$$.dir
15148 mkdir conf$$.dir 2>/dev/null
15149 fi
15150 if (echo >conf$$.file) 2>/dev/null; then
15151 if ln -s conf$$.file conf$$ 2>/dev/null; then
15152 as_ln_s='ln -s'
15153 # ... but there are two gotchas:
15154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15156 # In both cases, we have to default to `cp -p'.
15157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15158 as_ln_s='cp -p'
15159 elif ln conf$$.file conf$$ 2>/dev/null; then
15160 as_ln_s=ln
15161 else
15162 as_ln_s='cp -p'
15163 fi
15164 else
15165 as_ln_s='cp -p'
15166 fi
15167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15168 rmdir conf$$.dir 2>/dev/null
15169
15170
15171 # as_fn_mkdir_p
15172 # -------------
15173 # Create "$as_dir" as a directory, including parents if necessary.
15174 as_fn_mkdir_p ()
15175 {
15176
15177 case $as_dir in #(
15178 -*) as_dir=./$as_dir;;
15179 esac
15180 test -d "$as_dir" || eval $as_mkdir_p || {
15181 as_dirs=
15182 while :; do
15183 case $as_dir in #(
15184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15185 *) as_qdir=$as_dir;;
15186 esac
15187 as_dirs="'$as_qdir' $as_dirs"
15188 as_dir=`$as_dirname -- "$as_dir" ||
15189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15190 X"$as_dir" : 'X\(//\)[^/]' \| \
15191 X"$as_dir" : 'X\(//\)$' \| \
15192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15193 $as_echo X"$as_dir" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15195 s//\1/
15196 q
15197 }
15198 /^X\(\/\/\)[^/].*/{
15199 s//\1/
15200 q
15201 }
15202 /^X\(\/\/\)$/{
15203 s//\1/
15204 q
15205 }
15206 /^X\(\/\).*/{
15207 s//\1/
15208 q
15209 }
15210 s/.*/./; q'`
15211 test -d "$as_dir" && break
15212 done
15213 test -z "$as_dirs" || eval "mkdir $as_dirs"
15214 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15215
15216
15217 } # as_fn_mkdir_p
15218 if mkdir -p . 2>/dev/null; then
15219 as_mkdir_p='mkdir -p "$as_dir"'
15220 else
15221 test -d ./-p && rmdir ./-p
15222 as_mkdir_p=false
15223 fi
15224
15225 if test -x / >/dev/null 2>&1; then
15226 as_test_x='test -x'
15227 else
15228 if ls -dL / >/dev/null 2>&1; then
15229 as_ls_L_option=L
15230 else
15231 as_ls_L_option=
15232 fi
15233 as_test_x='
15234 eval sh -c '\''
15235 if test -d "$1"; then
15236 test -d "$1/.";
15237 else
15238 case $1 in #(
15239 -*)set "./$1";;
15240 esac;
15241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15242 ???[sx]*):;;*)false;;esac;fi
15243 '\'' sh
15244 '
15245 fi
15246 as_executable_p=$as_test_x
15247
15248 # Sed expression to map a string onto a valid CPP name.
15249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15250
15251 # Sed expression to map a string onto a valid variable name.
15252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15253
15254
15255 exec 6>&1
15256 ## ----------------------------------- ##
15257 ## Main body of $CONFIG_STATUS script. ##
15258 ## ----------------------------------- ##
15259 _ASEOF
15260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15261
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # Save the log message, to keep $0 and so on meaningful, and to
15264 # report actual input values of CONFIG_FILES etc. instead of their
15265 # values after options handling.
15266 ac_log="
15267 This file was extended by $as_me, which was
15268 generated by GNU Autoconf 2.64. Invocation command line was
15269
15270 CONFIG_FILES = $CONFIG_FILES
15271 CONFIG_HEADERS = $CONFIG_HEADERS
15272 CONFIG_LINKS = $CONFIG_LINKS
15273 CONFIG_COMMANDS = $CONFIG_COMMANDS
15274 $ $0 $@
15275
15276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15277 "
15278
15279 _ACEOF
15280
15281 case $ac_config_files in *"
15282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15283 esac
15284
15285 case $ac_config_headers in *"
15286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15287 esac
15288
15289
15290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291 # Files that config.status was made for.
15292 config_files="$ac_config_files"
15293 config_headers="$ac_config_headers"
15294 config_commands="$ac_config_commands"
15295
15296 _ACEOF
15297
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 ac_cs_usage="\
15300 \`$as_me' instantiates files and other configuration actions
15301 from templates according to the current configuration. Unless the files
15302 and actions are specified as TAGs, all are instantiated by default.
15303
15304 Usage: $0 [OPTION]... [TAG]...
15305
15306 -h, --help print this help, then exit
15307 -V, --version print version number and configuration settings, then exit
15308 -q, --quiet, --silent
15309 do not print progress messages
15310 -d, --debug don't remove temporary files
15311 --recheck update $as_me by reconfiguring in the same conditions
15312 --file=FILE[:TEMPLATE]
15313 instantiate the configuration file FILE
15314 --header=FILE[:TEMPLATE]
15315 instantiate the configuration header FILE
15316
15317 Configuration files:
15318 $config_files
15319
15320 Configuration headers:
15321 $config_headers
15322
15323 Configuration commands:
15324 $config_commands
15325
15326 Report bugs to the package provider."
15327
15328 _ACEOF
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 ac_cs_version="\\
15331 config.status
15332 configured by $0, generated by GNU Autoconf 2.64,
15333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15334
15335 Copyright (C) 2009 Free Software Foundation, Inc.
15336 This config.status script is free software; the Free Software Foundation
15337 gives unlimited permission to copy, distribute and modify it."
15338
15339 ac_pwd='$ac_pwd'
15340 srcdir='$srcdir'
15341 INSTALL='$INSTALL'
15342 MKDIR_P='$MKDIR_P'
15343 AWK='$AWK'
15344 test -n "\$AWK" || AWK=awk
15345 _ACEOF
15346
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348 # The default lists apply if the user does not specify any file.
15349 ac_need_defaults=:
15350 while test $# != 0
15351 do
15352 case $1 in
15353 --*=*)
15354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15356 ac_shift=:
15357 ;;
15358 *)
15359 ac_option=$1
15360 ac_optarg=$2
15361 ac_shift=shift
15362 ;;
15363 esac
15364
15365 case $ac_option in
15366 # Handling of the options.
15367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15368 ac_cs_recheck=: ;;
15369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15370 $as_echo "$ac_cs_version"; exit ;;
15371 --debug | --debu | --deb | --de | --d | -d )
15372 debug=: ;;
15373 --file | --fil | --fi | --f )
15374 $ac_shift
15375 case $ac_optarg in
15376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15377 esac
15378 as_fn_append CONFIG_FILES " '$ac_optarg'"
15379 ac_need_defaults=false;;
15380 --header | --heade | --head | --hea )
15381 $ac_shift
15382 case $ac_optarg in
15383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15384 esac
15385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15386 ac_need_defaults=false;;
15387 --he | --h)
15388 # Conflict between --help and --header
15389 as_fn_error "ambiguous option: \`$1'
15390 Try \`$0 --help' for more information.";;
15391 --help | --hel | -h )
15392 $as_echo "$ac_cs_usage"; exit ;;
15393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15395 ac_cs_silent=: ;;
15396
15397 # This is an error.
15398 -*) as_fn_error "unrecognized option: \`$1'
15399 Try \`$0 --help' for more information." ;;
15400
15401 *) as_fn_append ac_config_targets " $1"
15402 ac_need_defaults=false ;;
15403
15404 esac
15405 shift
15406 done
15407
15408 ac_configure_extra_args=
15409
15410 if $ac_cs_silent; then
15411 exec 6>/dev/null
15412 ac_configure_extra_args="$ac_configure_extra_args --silent"
15413 fi
15414
15415 _ACEOF
15416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417 if \$ac_cs_recheck; then
15418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15419 shift
15420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15421 CONFIG_SHELL='$SHELL'
15422 export CONFIG_SHELL
15423 exec "\$@"
15424 fi
15425
15426 _ACEOF
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 exec 5>>config.log
15429 {
15430 echo
15431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15432 ## Running $as_me. ##
15433 _ASBOX
15434 $as_echo "$ac_log"
15435 } >&5
15436
15437 _ACEOF
15438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15439 #
15440 # INIT-COMMANDS
15441 #
15442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15443
15444 _ACEOF
15445
15446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447
15448 # Handling of arguments.
15449 for ac_config_target in $ac_config_targets
15450 do
15451 case $ac_config_target in
15452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15455 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
15456 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15457
15458 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15459 esac
15460 done
15461
15462
15463 # If the user did not use the arguments to specify the items to instantiate,
15464 # then the envvar interface is used. Set only those that are not.
15465 # We use the long form for the default assignment because of an extremely
15466 # bizarre bug on SunOS 4.1.3.
15467 if $ac_need_defaults; then
15468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15471 fi
15472
15473 # Have a temporary directory for convenience. Make it in the build tree
15474 # simply because there is no reason against having it here, and in addition,
15475 # creating and moving files from /tmp can sometimes cause problems.
15476 # Hook for its removal unless debugging.
15477 # Note that there is a small window in which the directory will not be cleaned:
15478 # after its creation but before its name has been assigned to `$tmp'.
15479 $debug ||
15480 {
15481 tmp=
15482 trap 'exit_status=$?
15483 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15484 ' 0
15485 trap 'as_fn_exit 1' 1 2 13 15
15486 }
15487 # Create a (secure) tmp directory for tmp files.
15488
15489 {
15490 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15491 test -n "$tmp" && test -d "$tmp"
15492 } ||
15493 {
15494 tmp=./conf$$-$RANDOM
15495 (umask 077 && mkdir "$tmp")
15496 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15497
15498 # Set up the scripts for CONFIG_FILES section.
15499 # No need to generate them if there are no CONFIG_FILES.
15500 # This happens for instance with `./config.status config.h'.
15501 if test -n "$CONFIG_FILES"; then
15502
15503
15504 ac_cr=`echo X | tr X '\015'`
15505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15506 # But we know of no other shell where ac_cr would be empty at this
15507 # point, so we can use a bashism as a fallback.
15508 if test "x$ac_cr" = x; then
15509 eval ac_cr=\$\'\\r\'
15510 fi
15511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15513 ac_cs_awk_cr='\r'
15514 else
15515 ac_cs_awk_cr=$ac_cr
15516 fi
15517
15518 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15519 _ACEOF
15520
15521
15522 {
15523 echo "cat >conf$$subs.awk <<_ACEOF" &&
15524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15525 echo "_ACEOF"
15526 } >conf$$subs.sh ||
15527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15528 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15529 ac_delim='%!_!# '
15530 for ac_last_try in false false false false false :; do
15531 . ./conf$$subs.sh ||
15532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15533
15534 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15535 if test $ac_delim_n = $ac_delim_num; then
15536 break
15537 elif $ac_last_try; then
15538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15539 else
15540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15541 fi
15542 done
15543 rm -f conf$$subs.sh
15544
15545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15547 _ACEOF
15548 sed -n '
15549 h
15550 s/^/S["/; s/!.*/"]=/
15551 p
15552 g
15553 s/^[^!]*!//
15554 :repl
15555 t repl
15556 s/'"$ac_delim"'$//
15557 t delim
15558 :nl
15559 h
15560 s/\(.\{148\}\).*/\1/
15561 t more1
15562 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15563 p
15564 n
15565 b repl
15566 :more1
15567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15568 p
15569 g
15570 s/.\{148\}//
15571 t nl
15572 :delim
15573 h
15574 s/\(.\{148\}\).*/\1/
15575 t more2
15576 s/["\\]/\\&/g; s/^/"/; s/$/"/
15577 p
15578 b
15579 :more2
15580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15581 p
15582 g
15583 s/.\{148\}//
15584 t delim
15585 ' <conf$$subs.awk | sed '
15586 /^[^""]/{
15587 N
15588 s/\n//
15589 }
15590 ' >>$CONFIG_STATUS || ac_write_fail=1
15591 rm -f conf$$subs.awk
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 _ACAWK
15594 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15595 for (key in S) S_is_set[key] = 1
15596 FS = "\a"
15597
15598 }
15599 {
15600 line = $ 0
15601 nfields = split(line, field, "@")
15602 substed = 0
15603 len = length(field[1])
15604 for (i = 2; i < nfields; i++) {
15605 key = field[i]
15606 keylen = length(key)
15607 if (S_is_set[key]) {
15608 value = S[key]
15609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15610 len += length(value) + length(field[++i])
15611 substed = 1
15612 } else
15613 len += 1 + keylen
15614 }
15615
15616 print line
15617 }
15618
15619 _ACAWK
15620 _ACEOF
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15624 else
15625 cat
15626 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15627 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15628 _ACEOF
15629
15630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15632 # trailing colons and then remove the whole line if VPATH becomes empty
15633 # (actually we leave an empty line to preserve line numbers).
15634 if test "x$srcdir" = x.; then
15635 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15636 s/:*\$(srcdir):*/:/
15637 s/:*\${srcdir}:*/:/
15638 s/:*@srcdir@:*/:/
15639 s/^\([^=]*=[ ]*\):*/\1/
15640 s/:*$//
15641 s/^[^=]*=[ ]*$//
15642 }'
15643 fi
15644
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 fi # test -n "$CONFIG_FILES"
15647
15648 # Set up the scripts for CONFIG_HEADERS section.
15649 # No need to generate them if there are no CONFIG_HEADERS.
15650 # This happens for instance with `./config.status Makefile'.
15651 if test -n "$CONFIG_HEADERS"; then
15652 cat >"$tmp/defines.awk" <<\_ACAWK ||
15653 BEGIN {
15654 _ACEOF
15655
15656 # Transform confdefs.h into an awk script `defines.awk', embedded as
15657 # here-document in config.status, that substitutes the proper values into
15658 # config.h.in to produce config.h.
15659
15660 # Create a delimiter string that does not exist in confdefs.h, to ease
15661 # handling of long lines.
15662 ac_delim='%!_!# '
15663 for ac_last_try in false false :; do
15664 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15665 if test -z "$ac_t"; then
15666 break
15667 elif $ac_last_try; then
15668 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15669 else
15670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15671 fi
15672 done
15673
15674 # For the awk script, D is an array of macro values keyed by name,
15675 # likewise P contains macro parameters if any. Preserve backslash
15676 # newline sequences.
15677
15678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15679 sed -n '
15680 s/.\{148\}/&'"$ac_delim"'/g
15681 t rset
15682 :rset
15683 s/^[ ]*#[ ]*define[ ][ ]*/ /
15684 t def
15685 d
15686 :def
15687 s/\\$//
15688 t bsnl
15689 s/["\\]/\\&/g
15690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15691 D["\1"]=" \3"/p
15692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15693 d
15694 :bsnl
15695 s/["\\]/\\&/g
15696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15697 D["\1"]=" \3\\\\\\n"\\/p
15698 t cont
15699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15700 t cont
15701 d
15702 :cont
15703 n
15704 s/.\{148\}/&'"$ac_delim"'/g
15705 t clear
15706 :clear
15707 s/\\$//
15708 t bsnlc
15709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15710 d
15711 :bsnlc
15712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15713 b cont
15714 ' <confdefs.h | sed '
15715 s/'"$ac_delim"'/"\\\
15716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15717
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 for (key in D) D_is_set[key] = 1
15720 FS = "\a"
15721 }
15722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15723 line = \$ 0
15724 split(line, arg, " ")
15725 if (arg[1] == "#") {
15726 defundef = arg[2]
15727 mac1 = arg[3]
15728 } else {
15729 defundef = substr(arg[1], 2)
15730 mac1 = arg[2]
15731 }
15732 split(mac1, mac2, "(") #)
15733 macro = mac2[1]
15734 prefix = substr(line, 1, index(line, defundef) - 1)
15735 if (D_is_set[macro]) {
15736 # Preserve the white space surrounding the "#".
15737 print prefix "define", macro P[macro] D[macro]
15738 next
15739 } else {
15740 # Replace #undef with comments. This is necessary, for example,
15741 # in the case of _POSIX_SOURCE, which is predefined and required
15742 # on some systems where configure will not decide to define it.
15743 if (defundef == "undef") {
15744 print "/*", prefix defundef, macro, "*/"
15745 next
15746 }
15747 }
15748 }
15749 { print }
15750 _ACAWK
15751 _ACEOF
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15754 fi # test -n "$CONFIG_HEADERS"
15755
15756
15757 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15758 shift
15759 for ac_tag
15760 do
15761 case $ac_tag in
15762 :[FHLC]) ac_mode=$ac_tag; continue;;
15763 esac
15764 case $ac_mode$ac_tag in
15765 :[FHL]*:*);;
15766 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15767 :[FH]-) ac_tag=-:-;;
15768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15769 esac
15770 ac_save_IFS=$IFS
15771 IFS=:
15772 set x $ac_tag
15773 IFS=$ac_save_IFS
15774 shift
15775 ac_file=$1
15776 shift
15777
15778 case $ac_mode in
15779 :L) ac_source=$1;;
15780 :[FH])
15781 ac_file_inputs=
15782 for ac_f
15783 do
15784 case $ac_f in
15785 -) ac_f="$tmp/stdin";;
15786 *) # Look for the file first in the build tree, then in the source tree
15787 # (if the path is not absolute). The absolute path cannot be DOS-style,
15788 # because $ac_f cannot contain `:'.
15789 test -f "$ac_f" ||
15790 case $ac_f in
15791 [\\/$]*) false;;
15792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15793 esac ||
15794 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15795 esac
15796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15797 as_fn_append ac_file_inputs " '$ac_f'"
15798 done
15799
15800 # Let's still pretend it is `configure' which instantiates (i.e., don't
15801 # use $as_me), people would be surprised to read:
15802 # /* config.h. Generated by config.status. */
15803 configure_input='Generated from '`
15804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15805 `' by configure.'
15806 if test x"$ac_file" != x-; then
15807 configure_input="$ac_file. $configure_input"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15809 $as_echo "$as_me: creating $ac_file" >&6;}
15810 fi
15811 # Neutralize special characters interpreted by sed in replacement strings.
15812 case $configure_input in #(
15813 *\&* | *\|* | *\\* )
15814 ac_sed_conf_input=`$as_echo "$configure_input" |
15815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15816 *) ac_sed_conf_input=$configure_input;;
15817 esac
15818
15819 case $ac_tag in
15820 *:-:* | *:-) cat >"$tmp/stdin" \
15821 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15822 esac
15823 ;;
15824 esac
15825
15826 ac_dir=`$as_dirname -- "$ac_file" ||
15827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15828 X"$ac_file" : 'X\(//\)[^/]' \| \
15829 X"$ac_file" : 'X\(//\)$' \| \
15830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15831 $as_echo X"$ac_file" |
15832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15833 s//\1/
15834 q
15835 }
15836 /^X\(\/\/\)[^/].*/{
15837 s//\1/
15838 q
15839 }
15840 /^X\(\/\/\)$/{
15841 s//\1/
15842 q
15843 }
15844 /^X\(\/\).*/{
15845 s//\1/
15846 q
15847 }
15848 s/.*/./; q'`
15849 as_dir="$ac_dir"; as_fn_mkdir_p
15850 ac_builddir=.
15851
15852 case "$ac_dir" in
15853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15854 *)
15855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15856 # A ".." for each directory in $ac_dir_suffix.
15857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15858 case $ac_top_builddir_sub in
15859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15861 esac ;;
15862 esac
15863 ac_abs_top_builddir=$ac_pwd
15864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15865 # for backward compatibility:
15866 ac_top_builddir=$ac_top_build_prefix
15867
15868 case $srcdir in
15869 .) # We are building in place.
15870 ac_srcdir=.
15871 ac_top_srcdir=$ac_top_builddir_sub
15872 ac_abs_top_srcdir=$ac_pwd ;;
15873 [\\/]* | ?:[\\/]* ) # Absolute name.
15874 ac_srcdir=$srcdir$ac_dir_suffix;
15875 ac_top_srcdir=$srcdir
15876 ac_abs_top_srcdir=$srcdir ;;
15877 *) # Relative name.
15878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15879 ac_top_srcdir=$ac_top_build_prefix$srcdir
15880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15881 esac
15882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15883
15884
15885 case $ac_mode in
15886 :F)
15887 #
15888 # CONFIG_FILE
15889 #
15890
15891 case $INSTALL in
15892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15894 esac
15895 ac_MKDIR_P=$MKDIR_P
15896 case $MKDIR_P in
15897 [\\/$]* | ?:[\\/]* ) ;;
15898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15899 esac
15900 _ACEOF
15901
15902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903 # If the template does not know about datarootdir, expand it.
15904 # FIXME: This hack should be removed a few years after 2.60.
15905 ac_datarootdir_hack=; ac_datarootdir_seen=
15906 ac_sed_dataroot='
15907 /datarootdir/ {
15908 p
15909 q
15910 }
15911 /@datadir@/p
15912 /@docdir@/p
15913 /@infodir@/p
15914 /@localedir@/p
15915 /@mandir@/p'
15916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15917 *datarootdir*) ac_datarootdir_seen=yes;;
15918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15921 _ACEOF
15922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923 ac_datarootdir_hack='
15924 s&@datadir@&$datadir&g
15925 s&@docdir@&$docdir&g
15926 s&@infodir@&$infodir&g
15927 s&@localedir@&$localedir&g
15928 s&@mandir@&$mandir&g
15929 s&\\\${datarootdir}&$datarootdir&g' ;;
15930 esac
15931 _ACEOF
15932
15933 # Neutralize VPATH when `$srcdir' = `.'.
15934 # Shell code in configure.ac might set extrasub.
15935 # FIXME: do we really want to maintain this feature?
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 ac_sed_extra="$ac_vpsub
15938 $extrasub
15939 _ACEOF
15940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15941 :t
15942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15943 s|@configure_input@|$ac_sed_conf_input|;t t
15944 s&@top_builddir@&$ac_top_builddir_sub&;t t
15945 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15946 s&@srcdir@&$ac_srcdir&;t t
15947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15948 s&@top_srcdir@&$ac_top_srcdir&;t t
15949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15950 s&@builddir@&$ac_builddir&;t t
15951 s&@abs_builddir@&$ac_abs_builddir&;t t
15952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15953 s&@INSTALL@&$ac_INSTALL&;t t
15954 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15955 $ac_datarootdir_hack
15956 "
15957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15958 || as_fn_error "could not create $ac_file" "$LINENO" 5
15959
15960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15964 which seems to be undefined. Please make sure it is defined." >&5
15965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15966 which seems to be undefined. Please make sure it is defined." >&2;}
15967
15968 rm -f "$tmp/stdin"
15969 case $ac_file in
15970 -) cat "$tmp/out" && rm -f "$tmp/out";;
15971 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15972 esac \
15973 || as_fn_error "could not create $ac_file" "$LINENO" 5
15974 ;;
15975 :H)
15976 #
15977 # CONFIG_HEADER
15978 #
15979 if test x"$ac_file" != x-; then
15980 {
15981 $as_echo "/* $configure_input */" \
15982 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15983 } >"$tmp/config.h" \
15984 || as_fn_error "could not create $ac_file" "$LINENO" 5
15985 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15988 else
15989 rm -f "$ac_file"
15990 mv "$tmp/config.h" "$ac_file" \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15992 fi
15993 else
15994 $as_echo "/* $configure_input */" \
15995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15996 || as_fn_error "could not create -" "$LINENO" 5
15997 fi
15998 # Compute "$ac_file"'s index in $config_headers.
15999 _am_arg="$ac_file"
16000 _am_stamp_count=1
16001 for _am_header in $config_headers :; do
16002 case $_am_header in
16003 $_am_arg | $_am_arg:* )
16004 break ;;
16005 * )
16006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16007 esac
16008 done
16009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16011 X"$_am_arg" : 'X\(//\)[^/]' \| \
16012 X"$_am_arg" : 'X\(//\)$' \| \
16013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16014 $as_echo X"$_am_arg" |
16015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16016 s//\1/
16017 q
16018 }
16019 /^X\(\/\/\)[^/].*/{
16020 s//\1/
16021 q
16022 }
16023 /^X\(\/\/\)$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\(\/\).*/{
16028 s//\1/
16029 q
16030 }
16031 s/.*/./; q'`/stamp-h$_am_stamp_count
16032 ;;
16033
16034 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16035 $as_echo "$as_me: executing $ac_file commands" >&6;}
16036 ;;
16037 esac
16038
16039
16040 case $ac_file$ac_mode in
16041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16042 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16043 # are listed without --file. Let's play safe and only enable the eval
16044 # if we detect the quoting.
16045 case $CONFIG_FILES in
16046 *\'*) eval set x "$CONFIG_FILES" ;;
16047 *) set x $CONFIG_FILES ;;
16048 esac
16049 shift
16050 for mf
16051 do
16052 # Strip MF so we end up with the name of the file.
16053 mf=`echo "$mf" | sed -e 's/:.*$//'`
16054 # Check whether this is an Automake generated Makefile or not.
16055 # We used to match only the files named `Makefile.in', but
16056 # some people rename them; so instead we look at the file content.
16057 # Grep'ing the first line is not enough: some people post-process
16058 # each Makefile.in and add a new line on top of each file to say so.
16059 # Grep'ing the whole file is not good either: AIX grep has a line
16060 # limit of 2048, but all sed's we know have understand at least 4000.
16061 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16062 dirpart=`$as_dirname -- "$mf" ||
16063 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16064 X"$mf" : 'X\(//\)[^/]' \| \
16065 X"$mf" : 'X\(//\)$' \| \
16066 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16067 $as_echo X"$mf" |
16068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16069 s//\1/
16070 q
16071 }
16072 /^X\(\/\/\)[^/].*/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\/\)$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\).*/{
16081 s//\1/
16082 q
16083 }
16084 s/.*/./; q'`
16085 else
16086 continue
16087 fi
16088 # Extract the definition of DEPDIR, am__include, and am__quote
16089 # from the Makefile without running `make'.
16090 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16091 test -z "$DEPDIR" && continue
16092 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16093 test -z "am__include" && continue
16094 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16095 # When using ansi2knr, U may be empty or an underscore; expand it
16096 U=`sed -n 's/^U = //p' < "$mf"`
16097 # Find all dependency output files, they are included files with
16098 # $(DEPDIR) in their names. We invoke sed twice because it is the
16099 # simplest approach to changing $(DEPDIR) to its actual value in the
16100 # expansion.
16101 for file in `sed -n "
16102 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16103 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16104 # Make sure the directory exists.
16105 test -f "$dirpart/$file" && continue
16106 fdir=`$as_dirname -- "$file" ||
16107 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16108 X"$file" : 'X\(//\)[^/]' \| \
16109 X"$file" : 'X\(//\)$' \| \
16110 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16111 $as_echo X"$file" |
16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\/\)[^/].*/{
16117 s//\1/
16118 q
16119 }
16120 /^X\(\/\/\)$/{
16121 s//\1/
16122 q
16123 }
16124 /^X\(\/\).*/{
16125 s//\1/
16126 q
16127 }
16128 s/.*/./; q'`
16129 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16130 # echo "creating $dirpart/$file"
16131 echo '# dummy' > "$dirpart/$file"
16132 done
16133 done
16134 }
16135 ;;
16136 "default":C)
16137 case x$CONFIG_HEADERS in
16138 xconfig.h:config.in)
16139 echo > stamp-h ;;
16140 esac
16141 ;;
16142
16143 esac
16144 done # for ac_tag
16145
16146
16147 as_fn_exit 0
16148 _ACEOF
16149 ac_clean_files=$ac_clean_files_save
16150
16151 test $ac_write_fail = 0 ||
16152 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16153
16154
16155 # configure is writing to config.log, and then calls config.status.
16156 # config.status does its own redirection, appending to config.log.
16157 # Unfortunately, on DOS this fails, as config.log is still kept open
16158 # by configure, so config.status won't be able to write to it; its
16159 # output is simply discarded. So we exec the FD to /dev/null,
16160 # effectively closing config.log, so it can be properly (re)opened and
16161 # appended to by config.status. When coming back to configure, we
16162 # need to make the FD available again.
16163 if test "$no_create" != yes; then
16164 ac_cs_success=:
16165 ac_config_status_args=
16166 test "$silent" = yes &&
16167 ac_config_status_args="$ac_config_status_args --quiet"
16168 exec 5>/dev/null
16169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16170 exec 5>>config.log
16171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16172 # would make configure fail if this is the last instruction.
16173 $ac_cs_success || as_fn_exit $?
16174 fi
16175 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16177 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16178 fi
16179
16180
16181 exit 0
This page took 0.566178 seconds and 4 git commands to generate.