Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / all-pc / boot / grub2-aros / configure
blob8e5614073ee622a2c9b0a1abb21c3fb6ada70c45
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GRUB 2.02~beta2.
5 # Report bugs to <bug-grub@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='GRUB'
582 PACKAGE_TARNAME='grub'
583 PACKAGE_VERSION='2.02~beta2'
584 PACKAGE_STRING='GRUB 2.02~beta2'
585 PACKAGE_BUGREPORT='bug-grub@gnu.org'
586 PACKAGE_URL=''
588 ac_unique_file="include/grub/dl.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 gt_needs=
626 ac_func_list=
627 ac_header_list=
628 gl_fnmatch_required=POSIX
629 gl_getopt_required=POSIX
630 gl_getopt_required=POSIX
631 ac_subst_vars='gltests_LTLIBOBJS
632 gltests_LIBOBJS
633 gl_LTLIBOBJS
634 gl_LIBOBJS
635 am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 COND_HAVE_EXEC_FALSE
640 COND_HAVE_EXEC_TRUE
641 COND_STARFIELD_FALSE
642 COND_STARFIELD_TRUE
643 COND_HAVE_ASM_USCORE_FALSE
644 COND_HAVE_ASM_USCORE_TRUE
645 COND_HAVE_CXX_FALSE
646 COND_HAVE_CXX_TRUE
647 COND_ENABLE_BOOT_TIME_STATS_FALSE
648 COND_ENABLE_BOOT_TIME_STATS_TRUE
649 COND_ENABLE_CACHE_STATS_FALSE
650 COND_ENABLE_CACHE_STATS_TRUE
651 COND_ENABLE_EFIEMU_FALSE
652 COND_ENABLE_EFIEMU_TRUE
653 COND_APPLE_LINKER_FALSE
654 COND_APPLE_LINKER_TRUE
655 HAVE_FONT_SOURCE
656 COND_HAVE_FONT_SOURCE_FALSE
657 COND_HAVE_FONT_SOURCE_TRUE
658 COND_GRUB_MOUNT_FALSE
659 COND_GRUB_MOUNT_TRUE
660 COND_GRUB_MKFONT_FALSE
661 COND_GRUB_MKFONT_TRUE
662 COND_GRUB_EMU_PCI_FALSE
663 COND_GRUB_EMU_PCI_TRUE
664 COND_GRUB_EMU_SDL_FALSE
665 COND_GRUB_EMU_SDL_TRUE
666 COND_GRUB_EMU_USB_FALSE
667 COND_GRUB_EMU_USB_TRUE
668 COND_MAN_PAGES_FALSE
669 COND_MAN_PAGES_TRUE
670 COND_HOST_ILLUMOS_FALSE
671 COND_HOST_ILLUMOS_TRUE
672 COND_HOST_XNU_FALSE
673 COND_HOST_XNU_TRUE
674 COND_HOST_KFREEBSD_FALSE
675 COND_HOST_KFREEBSD_TRUE
676 COND_HOST_WINDOWS_FALSE
677 COND_HOST_WINDOWS_TRUE
678 COND_HOST_NETBSD_FALSE
679 COND_HOST_NETBSD_TRUE
680 COND_HOST_LINUX_FALSE
681 COND_HOST_LINUX_TRUE
682 COND_HOST_HURD_FALSE
683 COND_HOST_HURD_TRUE
684 COND_arm64_efi_FALSE
685 COND_arm64_efi_TRUE
686 COND_arm64_FALSE
687 COND_arm64_TRUE
688 COND_arm_efi_FALSE
689 COND_arm_efi_TRUE
690 COND_arm_uboot_FALSE
691 COND_arm_uboot_TRUE
692 COND_arm_FALSE
693 COND_arm_TRUE
694 COND_mipseb_FALSE
695 COND_mipseb_TRUE
696 COND_mipsel_FALSE
697 COND_mipsel_TRUE
698 COND_mips_FALSE
699 COND_mips_TRUE
700 COND_powerpc_ieee1275_FALSE
701 COND_powerpc_ieee1275_TRUE
702 COND_sparc64_emu_FALSE
703 COND_sparc64_emu_TRUE
704 COND_sparc64_ieee1275_FALSE
705 COND_sparc64_ieee1275_TRUE
706 COND_mips_arc_FALSE
707 COND_mips_arc_TRUE
708 COND_mips_qemu_mips_FALSE
709 COND_mips_qemu_mips_TRUE
710 COND_mips_loongson_FALSE
711 COND_mips_loongson_TRUE
712 COND_x86_64_xen_FALSE
713 COND_x86_64_xen_TRUE
714 COND_i386_xen_FALSE
715 COND_i386_xen_TRUE
716 COND_x86_64_efi_FALSE
717 COND_x86_64_efi_TRUE
718 COND_i386_multiboot_FALSE
719 COND_i386_multiboot_TRUE
720 COND_i386_coreboot_FALSE
721 COND_i386_coreboot_TRUE
722 COND_i386_ieee1275_FALSE
723 COND_i386_ieee1275_TRUE
724 COND_i386_qemu_FALSE
725 COND_i386_qemu_TRUE
726 COND_ia64_efi_FALSE
727 COND_ia64_efi_TRUE
728 COND_i386_efi_FALSE
729 COND_i386_efi_TRUE
730 COND_i386_pc_FALSE
731 COND_i386_pc_TRUE
732 COND_clang_FALSE
733 COND_clang_TRUE
734 COND_emu_FALSE
735 COND_emu_TRUE
736 COND_real_platform_FALSE
737 COND_real_platform_TRUE
738 BUILD_LIBM
739 HOST_CCASFLAGS
740 HOST_CPPFLAGS
741 HOST_LDFLAGS
742 HOST_CFLAGS
743 TARGET_APPLE_LINKER
744 TARGET_IMG_BASE_LDOPT
745 TARGET_IMG_CFLAGS
746 TARGET_IMG_LDFLAGS
747 TARGET_CCASFLAGS
748 TARGET_CPPFLAGS
749 TARGET_LDFLAGS
750 TARGET_CFLAGS
751 TARGET_CC_VERSION
752 TARGET_MODULE_FORMAT
753 TARGET_OBJ2ELF
754 TARGET_CCAS
755 TARGET_CPP
756 TARGET_LDFLAGS_STATIC_LIBGCC
757 TARGET_LIBGCC
758 GRUB_PLATFORM
759 GRUB_TARGET_CPU
760 END_SYMBOL
761 BSS_START_SYMBOL
762 DATA32
763 ADDR32
764 HAVE_ASM_USCORE
765 GRUB_BOOT_MACHINE_LINK_ADDR
766 LIBNVPAIR
767 LIBZFS
768 LIBLZMA
769 LIBGEOM
770 LIBDEVMAPPER
771 enable_grub_mount
772 FONT_SOURCE
773 DJVU_FONT_SOURCE
774 build_freetype_libs
775 build_freetype_cflags
776 BUILD_FREETYPE
777 BUILD_WORDS_BIGENDIAN
778 BUILD_SIZEOF_VOID_P
779 BUILD_SIZEOF_LONG
780 freetype_libs
781 freetype_cflags
782 enable_grub_mkfont
783 ac_ct_FREETYPE
784 FREETYPE
785 enable_grub_emu_pci
786 enable_grub_emu_usb
787 enable_grub_emu_sdl
788 LIBPCIACCESS
789 LIBSDL
790 LIBUSB
791 BOOT_TIME_STATS
792 DISK_CACHE_STATS
793 TARGET_NMFLAGS_DEFINED_ONLY
794 TARGET_NMFLAGS_MINUS_P
795 TARGET_LDFLAGS_OLDMAGIC
796 TARGET_OBJCONV
797 EFIEMU64_LINK_FORMAT
798 enable_efiemu
799 BUILD_LDFLAGS
800 BUILD_CPPFLAGS
801 BUILD_CFLAGS
802 HOST_CC
803 TARGET_RANLIB
804 TARGET_NM
805 TARGET_STRIP
806 ac_ct_TARGET_OBJCOPY
807 TARGET_OBJCOPY
808 ac_ct_TARGET_CC
809 TARGET_CC
810 LIBGNU_LTLIBDEPS
811 LIBGNU_LIBDEPS
812 gltests_WITNESS
813 REPLACE_TOWLOWER
814 REPLACE_ISWCNTRL
815 HAVE_WCTYPE_H
816 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
817 NEXT_WCTYPE_H
818 HAVE_ISWCNTRL
819 REPLACE_ISWBLANK
820 HAVE_WCTRANS_T
821 HAVE_WCTYPE_T
822 HAVE_ISWBLANK
823 GNULIB_TOWCTRANS
824 GNULIB_WCTRANS
825 GNULIB_ISWCTYPE
826 GNULIB_WCTYPE
827 GNULIB_ISWBLANK
828 HAVE_WINT_T
829 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
830 NEXT_WCHAR_H
831 HAVE_FEATURES_H
832 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
833 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
834 LIBUNISTRING_UNIWIDTH_H
835 LIBUNISTRING_UNITYPES_H
836 HAVE_UNISTD_H
837 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
838 NEXT_UNISTD_H
839 GL_GENERATE_SYSEXITS_H_FALSE
840 GL_GENERATE_SYSEXITS_H_TRUE
841 SYSEXITS_H
842 HAVE_SYSEXITS_H
843 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
844 NEXT_SYSEXITS_H
845 WINDOWS_64_BIT_OFF_T
846 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
847 NEXT_SYS_TYPES_H
848 HAVE_STRINGS_H
849 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
850 NEXT_STRINGS_H
851 NEXT_AS_FIRST_DIRECTIVE_STRING_H
852 NEXT_STRING_H
853 HAVE_WINSOCK2_H
854 HAVE_DECL_STRNCASECMP
855 HAVE_STRCASECMP
856 HAVE_FFS
857 GNULIB_FFS
858 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
859 NEXT_STDLIB_H
860 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
861 NEXT_STDIO_H
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
864 STDINT_H
865 WINT_T_SUFFIX
866 WCHAR_T_SUFFIX
867 SIG_ATOMIC_T_SUFFIX
868 SIZE_T_SUFFIX
869 PTRDIFF_T_SUFFIX
870 HAVE_SIGNED_WINT_T
871 HAVE_SIGNED_WCHAR_T
872 HAVE_SIGNED_SIG_ATOMIC_T
873 BITSIZEOF_WINT_T
874 BITSIZEOF_WCHAR_T
875 BITSIZEOF_SIG_ATOMIC_T
876 BITSIZEOF_SIZE_T
877 BITSIZEOF_PTRDIFF_T
878 HAVE_SYS_BITYPES_H
879 HAVE_SYS_INTTYPES_H
880 HAVE_STDINT_H
881 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
882 NEXT_STDINT_H
883 HAVE_SYS_TYPES_H
884 HAVE_INTTYPES_H
885 HAVE_WCHAR_H
886 HAVE_UNSIGNED_LONG_LONG_INT
887 HAVE_LONG_LONG_INT
888 HAVE__BOOL
889 GL_GENERATE_STDBOOL_H_FALSE
890 GL_GENERATE_STDBOOL_H_TRUE
891 STDBOOL_H
892 GL_GENERATE_STDALIGN_H_FALSE
893 GL_GENERATE_STDALIGN_H_TRUE
894 STDALIGN_H
895 APPLE_UNIVERSAL_BUILD
896 HAVE_MSVC_INVALID_PARAMETER_HANDLER
897 UNDEFINE_STRTOK_R
898 REPLACE_STRTOK_R
899 REPLACE_STRSIGNAL
900 REPLACE_STRNLEN
901 REPLACE_STRNDUP
902 REPLACE_STRNCAT
903 REPLACE_STRERROR_R
904 REPLACE_STRERROR
905 REPLACE_STRCHRNUL
906 REPLACE_STRCASESTR
907 REPLACE_STRSTR
908 REPLACE_STRDUP
909 REPLACE_STPNCPY
910 REPLACE_MEMMEM
911 REPLACE_MEMCHR
912 HAVE_STRVERSCMP
913 HAVE_DECL_STRSIGNAL
914 HAVE_DECL_STRERROR_R
915 HAVE_DECL_STRTOK_R
916 HAVE_STRCASESTR
917 HAVE_STRSEP
918 HAVE_STRPBRK
919 HAVE_DECL_STRNLEN
920 HAVE_DECL_STRNDUP
921 HAVE_DECL_STRDUP
922 HAVE_STRCHRNUL
923 HAVE_STPNCPY
924 HAVE_STPCPY
925 HAVE_RAWMEMCHR
926 HAVE_DECL_MEMRCHR
927 HAVE_MEMPCPY
928 HAVE_DECL_MEMMEM
929 HAVE_MEMCHR
930 HAVE_FFSLL
931 HAVE_FFSL
932 HAVE_MBSLEN
933 GNULIB_STRVERSCMP
934 GNULIB_STRSIGNAL
935 GNULIB_STRERROR_R
936 GNULIB_STRERROR
937 GNULIB_MBSTOK_R
938 GNULIB_MBSSEP
939 GNULIB_MBSSPN
940 GNULIB_MBSPBRK
941 GNULIB_MBSCSPN
942 GNULIB_MBSCASESTR
943 GNULIB_MBSPCASECMP
944 GNULIB_MBSNCASECMP
945 GNULIB_MBSCASECMP
946 GNULIB_MBSSTR
947 GNULIB_MBSRCHR
948 GNULIB_MBSCHR
949 GNULIB_MBSNLEN
950 GNULIB_MBSLEN
951 GNULIB_STRTOK_R
952 GNULIB_STRCASESTR
953 GNULIB_STRSTR
954 GNULIB_STRSEP
955 GNULIB_STRPBRK
956 GNULIB_STRNLEN
957 GNULIB_STRNDUP
958 GNULIB_STRNCAT
959 GNULIB_STRDUP
960 GNULIB_STRCHRNUL
961 GNULIB_STPNCPY
962 GNULIB_STPCPY
963 GNULIB_RAWMEMCHR
964 GNULIB_MEMRCHR
965 GNULIB_MEMPCPY
966 GNULIB_MEMMEM
967 GNULIB_MEMCHR
968 GNULIB_FFSLL
969 GNULIB_FFSL
970 LOCALE_FR_UTF8
971 LOCALE_ZH_CN
972 LOCALE_JA
973 REPLACE_WCTOMB
974 REPLACE_UNSETENV
975 REPLACE_STRTOD
976 REPLACE_SETENV
977 REPLACE_REALPATH
978 REPLACE_REALLOC
979 REPLACE_RANDOM_R
980 REPLACE_PUTENV
981 REPLACE_PTSNAME_R
982 REPLACE_PTSNAME
983 REPLACE_MKSTEMP
984 REPLACE_MBTOWC
985 REPLACE_MALLOC
986 REPLACE_CANONICALIZE_FILE_NAME
987 REPLACE_CALLOC
988 HAVE_DECL_UNSETENV
989 HAVE_UNLOCKPT
990 HAVE_SYS_LOADAVG_H
991 HAVE_STRUCT_RANDOM_DATA
992 HAVE_STRTOULL
993 HAVE_STRTOLL
994 HAVE_STRTOD
995 HAVE_DECL_SETENV
996 HAVE_SETENV
997 HAVE_SECURE_GETENV
998 HAVE_RPMATCH
999 HAVE_REALPATH
1000 HAVE_RANDOM_R
1001 HAVE_RANDOM_H
1002 HAVE_RANDOM
1003 HAVE_PTSNAME_R
1004 HAVE_PTSNAME
1005 HAVE_POSIX_OPENPT
1006 HAVE_MKSTEMPS
1007 HAVE_MKSTEMP
1008 HAVE_MKOSTEMPS
1009 HAVE_MKOSTEMP
1010 HAVE_MKDTEMP
1011 HAVE_GRANTPT
1012 HAVE_GETSUBOPT
1013 HAVE_DECL_GETLOADAVG
1014 HAVE_CANONICALIZE_FILE_NAME
1015 HAVE_ATOLL
1016 HAVE__EXIT
1017 GNULIB_WCTOMB
1018 GNULIB_UNSETENV
1019 GNULIB_UNLOCKPT
1020 GNULIB_SYSTEM_POSIX
1021 GNULIB_STRTOULL
1022 GNULIB_STRTOLL
1023 GNULIB_STRTOD
1024 GNULIB_SETENV
1025 GNULIB_SECURE_GETENV
1026 GNULIB_RPMATCH
1027 GNULIB_REALPATH
1028 GNULIB_REALLOC_POSIX
1029 GNULIB_RANDOM_R
1030 GNULIB_RANDOM
1031 GNULIB_PUTENV
1032 GNULIB_PTSNAME_R
1033 GNULIB_PTSNAME
1034 GNULIB_POSIX_OPENPT
1035 GNULIB_MKSTEMPS
1036 GNULIB_MKSTEMP
1037 GNULIB_MKOSTEMPS
1038 GNULIB_MKOSTEMP
1039 GNULIB_MKDTEMP
1040 GNULIB_MBTOWC
1041 GNULIB_MALLOC_POSIX
1042 GNULIB_GRANTPT
1043 GNULIB_GETSUBOPT
1044 GNULIB_GETLOADAVG
1045 GNULIB_CANONICALIZE_FILE_NAME
1046 GNULIB_CALLOC_POSIX
1047 GNULIB_ATOLL
1048 GNULIB__EXIT
1049 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1050 NEXT_LOCALE_H
1051 HAVE_XLOCALE_H
1052 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1053 NEXT_STDDEF_H
1054 GL_GENERATE_STDDEF_H_FALSE
1055 GL_GENERATE_STDDEF_H_TRUE
1056 STDDEF_H
1057 HAVE_WCHAR_T
1058 REPLACE_NULL
1059 REPLACE_STRUCT_LCONV
1060 REPLACE_DUPLOCALE
1061 REPLACE_SETLOCALE
1062 REPLACE_LOCALECONV
1063 HAVE_DUPLOCALE
1064 GNULIB_DUPLOCALE
1065 GNULIB_SETLOCALE
1066 GNULIB_LOCALECONV
1067 LOCALCHARSET_TESTS_ENVIRONMENT
1068 GLIBC21
1069 HAVE_LANGINFO_YESEXPR
1070 HAVE_LANGINFO_ERA
1071 HAVE_LANGINFO_T_FMT_AMPM
1072 HAVE_LANGINFO_CODESET
1073 HAVE_LANGINFO_H
1074 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1075 NEXT_LANGINFO_H
1076 REPLACE_NL_LANGINFO
1077 HAVE_NL_LANGINFO
1078 GNULIB_NL_LANGINFO
1079 GNULIB_GL_UNISTD_H_GETOPT
1080 GETOPT_H
1081 HAVE_GETOPT_H
1082 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1083 NEXT_GETOPT_H
1084 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1085 UNISTD_H_HAVE_WINSOCK2_H
1086 REPLACE_WRITE
1087 REPLACE_USLEEP
1088 REPLACE_UNLINKAT
1089 REPLACE_UNLINK
1090 REPLACE_TTYNAME_R
1091 REPLACE_SYMLINK
1092 REPLACE_SLEEP
1093 REPLACE_RMDIR
1094 REPLACE_READLINK
1095 REPLACE_READ
1096 REPLACE_PWRITE
1097 REPLACE_PREAD
1098 REPLACE_LSEEK
1099 REPLACE_LINKAT
1100 REPLACE_LINK
1101 REPLACE_LCHOWN
1102 REPLACE_ISATTY
1103 REPLACE_GETPAGESIZE
1104 REPLACE_GETGROUPS
1105 REPLACE_GETLOGIN_R
1106 REPLACE_GETDOMAINNAME
1107 REPLACE_GETCWD
1108 REPLACE_FTRUNCATE
1109 REPLACE_FCHOWNAT
1110 REPLACE_DUP2
1111 REPLACE_DUP
1112 REPLACE_CLOSE
1113 REPLACE_CHOWN
1114 HAVE_SYS_PARAM_H
1115 HAVE_OS_H
1116 HAVE_DECL_TTYNAME_R
1117 HAVE_DECL_SETHOSTNAME
1118 HAVE_DECL_GETUSERSHELL
1119 HAVE_DECL_GETPAGESIZE
1120 HAVE_DECL_GETLOGIN_R
1121 HAVE_DECL_GETDOMAINNAME
1122 HAVE_DECL_FDATASYNC
1123 HAVE_DECL_FCHDIR
1124 HAVE_DECL_ENVIRON
1125 HAVE_USLEEP
1126 HAVE_UNLINKAT
1127 HAVE_SYMLINKAT
1128 HAVE_SYMLINK
1129 HAVE_SLEEP
1130 HAVE_SETHOSTNAME
1131 HAVE_READLINKAT
1132 HAVE_READLINK
1133 HAVE_PWRITE
1134 HAVE_PREAD
1135 HAVE_PIPE2
1136 HAVE_PIPE
1137 HAVE_LINKAT
1138 HAVE_LINK
1139 HAVE_LCHOWN
1140 HAVE_GROUP_MEMBER
1141 HAVE_GETPAGESIZE
1142 HAVE_GETLOGIN
1143 HAVE_GETHOSTNAME
1144 HAVE_GETGROUPS
1145 HAVE_GETDTABLESIZE
1146 HAVE_FTRUNCATE
1147 HAVE_FSYNC
1148 HAVE_FDATASYNC
1149 HAVE_FCHOWNAT
1150 HAVE_FCHDIR
1151 HAVE_FACCESSAT
1152 HAVE_EUIDACCESS
1153 HAVE_DUP3
1154 HAVE_DUP2
1155 HAVE_CHOWN
1156 GNULIB_WRITE
1157 GNULIB_USLEEP
1158 GNULIB_UNLINKAT
1159 GNULIB_UNLINK
1160 GNULIB_UNISTD_H_SIGPIPE
1161 GNULIB_UNISTD_H_NONBLOCKING
1162 GNULIB_TTYNAME_R
1163 GNULIB_SYMLINKAT
1164 GNULIB_SYMLINK
1165 GNULIB_SLEEP
1166 GNULIB_SETHOSTNAME
1167 GNULIB_RMDIR
1168 GNULIB_READLINKAT
1169 GNULIB_READLINK
1170 GNULIB_READ
1171 GNULIB_PWRITE
1172 GNULIB_PREAD
1173 GNULIB_PIPE2
1174 GNULIB_PIPE
1175 GNULIB_LSEEK
1176 GNULIB_LINKAT
1177 GNULIB_LINK
1178 GNULIB_LCHOWN
1179 GNULIB_ISATTY
1180 GNULIB_GROUP_MEMBER
1181 GNULIB_GETUSERSHELL
1182 GNULIB_GETPAGESIZE
1183 GNULIB_GETLOGIN_R
1184 GNULIB_GETLOGIN
1185 GNULIB_GETHOSTNAME
1186 GNULIB_GETGROUPS
1187 GNULIB_GETDTABLESIZE
1188 GNULIB_GETDOMAINNAME
1189 GNULIB_GETCWD
1190 GNULIB_FTRUNCATE
1191 GNULIB_FSYNC
1192 GNULIB_FDATASYNC
1193 GNULIB_FCHOWNAT
1194 GNULIB_FCHDIR
1195 GNULIB_FACCESSAT
1196 GNULIB_EUIDACCESS
1197 GNULIB_ENVIRON
1198 GNULIB_DUP3
1199 GNULIB_DUP2
1200 GNULIB_DUP
1201 GNULIB_CLOSE
1202 GNULIB_CHOWN
1203 GNULIB_CHDIR
1204 REPLACE_VSPRINTF
1205 REPLACE_VSNPRINTF
1206 REPLACE_VPRINTF
1207 REPLACE_VFPRINTF
1208 REPLACE_VDPRINTF
1209 REPLACE_VASPRINTF
1210 REPLACE_TMPFILE
1211 REPLACE_STDIO_WRITE_FUNCS
1212 REPLACE_STDIO_READ_FUNCS
1213 REPLACE_SPRINTF
1214 REPLACE_SNPRINTF
1215 REPLACE_RENAMEAT
1216 REPLACE_RENAME
1217 REPLACE_REMOVE
1218 REPLACE_PRINTF
1219 REPLACE_POPEN
1220 REPLACE_PERROR
1221 REPLACE_OBSTACK_PRINTF
1222 REPLACE_GETLINE
1223 REPLACE_GETDELIM
1224 REPLACE_FTELLO
1225 REPLACE_FTELL
1226 REPLACE_FSEEKO
1227 REPLACE_FSEEK
1228 REPLACE_FREOPEN
1229 REPLACE_FPURGE
1230 REPLACE_FPRINTF
1231 REPLACE_FOPEN
1232 REPLACE_FFLUSH
1233 REPLACE_FDOPEN
1234 REPLACE_FCLOSE
1235 REPLACE_DPRINTF
1236 HAVE_VDPRINTF
1237 HAVE_VASPRINTF
1238 HAVE_RENAMEAT
1239 HAVE_POPEN
1240 HAVE_PCLOSE
1241 HAVE_FTELLO
1242 HAVE_FSEEKO
1243 HAVE_DPRINTF
1244 HAVE_DECL_VSNPRINTF
1245 HAVE_DECL_SNPRINTF
1246 HAVE_DECL_OBSTACK_PRINTF
1247 HAVE_DECL_GETLINE
1248 HAVE_DECL_GETDELIM
1249 HAVE_DECL_FTELLO
1250 HAVE_DECL_FSEEKO
1251 HAVE_DECL_FPURGE
1252 GNULIB_VSPRINTF_POSIX
1253 GNULIB_VSNPRINTF
1254 GNULIB_VPRINTF_POSIX
1255 GNULIB_VPRINTF
1256 GNULIB_VFPRINTF_POSIX
1257 GNULIB_VFPRINTF
1258 GNULIB_VDPRINTF
1259 GNULIB_VSCANF
1260 GNULIB_VFSCANF
1261 GNULIB_VASPRINTF
1262 GNULIB_TMPFILE
1263 GNULIB_STDIO_H_SIGPIPE
1264 GNULIB_STDIO_H_NONBLOCKING
1265 GNULIB_SPRINTF_POSIX
1266 GNULIB_SNPRINTF
1267 GNULIB_SCANF
1268 GNULIB_RENAMEAT
1269 GNULIB_RENAME
1270 GNULIB_REMOVE
1271 GNULIB_PUTS
1272 GNULIB_PUTCHAR
1273 GNULIB_PUTC
1274 GNULIB_PRINTF_POSIX
1275 GNULIB_PRINTF
1276 GNULIB_POPEN
1277 GNULIB_PERROR
1278 GNULIB_PCLOSE
1279 GNULIB_OBSTACK_PRINTF_POSIX
1280 GNULIB_OBSTACK_PRINTF
1281 GNULIB_GETLINE
1282 GNULIB_GETDELIM
1283 GNULIB_GETCHAR
1284 GNULIB_GETC
1285 GNULIB_FWRITE
1286 GNULIB_FTELLO
1287 GNULIB_FTELL
1288 GNULIB_FSEEKO
1289 GNULIB_FSEEK
1290 GNULIB_FSCANF
1291 GNULIB_FREOPEN
1292 GNULIB_FREAD
1293 GNULIB_FPUTS
1294 GNULIB_FPUTC
1295 GNULIB_FPURGE
1296 GNULIB_FPRINTF_POSIX
1297 GNULIB_FPRINTF
1298 GNULIB_FOPEN
1299 GNULIB_FGETS
1300 GNULIB_FGETC
1301 GNULIB_FFLUSH
1302 GNULIB_FDOPEN
1303 GNULIB_FCLOSE
1304 GNULIB_DPRINTF
1305 GL_GENERATE_FNMATCH_H_FALSE
1306 GL_GENERATE_FNMATCH_H_TRUE
1307 FNMATCH_H
1308 REPLACE_ITOLD
1309 GL_GENERATE_FLOAT_H_FALSE
1310 GL_GENERATE_FLOAT_H_TRUE
1311 FLOAT_H
1312 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1313 NEXT_FLOAT_H
1314 EOVERFLOW_VALUE
1315 EOVERFLOW_HIDDEN
1316 ENOLINK_VALUE
1317 ENOLINK_HIDDEN
1318 EMULTIHOP_VALUE
1319 EMULTIHOP_HIDDEN
1320 GL_GENERATE_ERRNO_H_FALSE
1321 GL_GENERATE_ERRNO_H_TRUE
1322 ERRNO_H
1323 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1324 NEXT_ERRNO_H
1325 PRAGMA_COLUMNS
1326 PRAGMA_SYSTEM_HEADER
1327 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1328 INCLUDE_NEXT
1329 pkglibexecdir
1330 lispdir
1331 LOCALE_FR
1332 REPLACE_WCSWIDTH
1333 REPLACE_WCWIDTH
1334 REPLACE_WCSNRTOMBS
1335 REPLACE_WCSRTOMBS
1336 REPLACE_WCRTOMB
1337 REPLACE_MBSNRTOWCS
1338 REPLACE_MBSRTOWCS
1339 REPLACE_MBRLEN
1340 REPLACE_MBRTOWC
1341 REPLACE_MBSINIT
1342 REPLACE_WCTOB
1343 REPLACE_BTOWC
1344 REPLACE_MBSTATE_T
1345 HAVE_DECL_WCWIDTH
1346 HAVE_DECL_WCTOB
1347 HAVE_WCSWIDTH
1348 HAVE_WCSTOK
1349 HAVE_WCSSTR
1350 HAVE_WCSPBRK
1351 HAVE_WCSSPN
1352 HAVE_WCSCSPN
1353 HAVE_WCSRCHR
1354 HAVE_WCSCHR
1355 HAVE_WCSDUP
1356 HAVE_WCSXFRM
1357 HAVE_WCSCOLL
1358 HAVE_WCSNCASECMP
1359 HAVE_WCSCASECMP
1360 HAVE_WCSNCMP
1361 HAVE_WCSCMP
1362 HAVE_WCSNCAT
1363 HAVE_WCSCAT
1364 HAVE_WCPNCPY
1365 HAVE_WCSNCPY
1366 HAVE_WCPCPY
1367 HAVE_WCSCPY
1368 HAVE_WCSNLEN
1369 HAVE_WCSLEN
1370 HAVE_WMEMSET
1371 HAVE_WMEMMOVE
1372 HAVE_WMEMCPY
1373 HAVE_WMEMCMP
1374 HAVE_WMEMCHR
1375 HAVE_WCSNRTOMBS
1376 HAVE_WCSRTOMBS
1377 HAVE_WCRTOMB
1378 HAVE_MBSNRTOWCS
1379 HAVE_MBSRTOWCS
1380 HAVE_MBRLEN
1381 HAVE_MBRTOWC
1382 HAVE_MBSINIT
1383 HAVE_BTOWC
1384 GNULIB_WCSWIDTH
1385 GNULIB_WCSTOK
1386 GNULIB_WCSSTR
1387 GNULIB_WCSPBRK
1388 GNULIB_WCSSPN
1389 GNULIB_WCSCSPN
1390 GNULIB_WCSRCHR
1391 GNULIB_WCSCHR
1392 GNULIB_WCSDUP
1393 GNULIB_WCSXFRM
1394 GNULIB_WCSCOLL
1395 GNULIB_WCSNCASECMP
1396 GNULIB_WCSCASECMP
1397 GNULIB_WCSNCMP
1398 GNULIB_WCSCMP
1399 GNULIB_WCSNCAT
1400 GNULIB_WCSCAT
1401 GNULIB_WCPNCPY
1402 GNULIB_WCSNCPY
1403 GNULIB_WCPCPY
1404 GNULIB_WCSCPY
1405 GNULIB_WCSNLEN
1406 GNULIB_WCSLEN
1407 GNULIB_WMEMSET
1408 GNULIB_WMEMMOVE
1409 GNULIB_WMEMCPY
1410 GNULIB_WMEMCMP
1411 GNULIB_WMEMCHR
1412 GNULIB_WCWIDTH
1413 GNULIB_WCSNRTOMBS
1414 GNULIB_WCSRTOMBS
1415 GNULIB_WCRTOMB
1416 GNULIB_MBSNRTOWCS
1417 GNULIB_MBSRTOWCS
1418 GNULIB_MBRLEN
1419 GNULIB_MBRTOWC
1420 GNULIB_MBSINIT
1421 GNULIB_WCTOB
1422 GNULIB_BTOWC
1423 GL_GENERATE_ALLOCA_H_FALSE
1424 GL_GENERATE_ALLOCA_H_TRUE
1425 ALLOCA_H
1426 ALLOCA
1427 GL_COND_LIBTOOL_FALSE
1428 GL_COND_LIBTOOL_TRUE
1429 BUILD_EXEEXT
1430 BUILD_CC
1431 LIBUTIL
1432 HELP2MAN
1433 POSUB
1434 LTLIBINTL
1435 LIBINTL
1436 INTLLIBS
1437 LTLIBICONV
1438 LIBICONV
1439 INTL_MACOSX_LIBS
1440 XGETTEXT_EXTRA_OPTIONS
1441 MSGMERGE
1442 XGETTEXT_015
1443 XGETTEXT
1444 GMSGFMT_015
1445 MSGFMT_015
1446 GMSGFMT
1447 MSGFMT
1448 GETTEXT_MACRO_VERSION
1449 USE_NLS
1450 HAVE_CXX
1451 am__fastdepCCAS_FALSE
1452 am__fastdepCCAS_TRUE
1453 CCASDEPMODE
1454 CCASFLAGS
1455 CCAS
1456 am__fastdepCXX_FALSE
1457 am__fastdepCXX_TRUE
1458 CXXDEPMODE
1459 ac_ct_CXX
1460 CXXFLAGS
1462 ARFLAGS
1464 EGREP
1465 GREP
1467 LN_S
1468 YFLAGS
1469 LEXLIB
1470 am__fastdepCC_FALSE
1471 am__fastdepCC_TRUE
1472 CCDEPMODE
1473 am__nodep
1474 AMDEPBACKSLASH
1475 AMDEP_FALSE
1476 AMDEP_TRUE
1477 am__quote
1478 am__include
1479 DEPDIR
1480 OBJEXT
1481 EXEEXT
1482 ac_ct_CC
1483 CPPFLAGS
1484 LDFLAGS
1485 CFLAGS
1487 LEX_OUTPUT_ROOT
1489 RANLIB
1490 YACC
1492 grubdirname
1493 bootdirname
1494 platform
1495 host_kernel
1496 TARGET_DECOMPRESSOR_LINK_ADDR
1497 TARGET_LINK_ADDR
1498 grub_file
1499 grub_render_label
1500 grub_sparc64_setup
1501 grub_set_default
1502 grub_script_check
1503 grub_reboot
1504 grub_probe
1505 grub_mkrescue
1506 grub_mkrelpath
1507 grub_mkpasswd_pbkdf2
1508 grub_mklayout
1509 grub_glue_efi
1510 grub_mkimage
1511 grub_mkfont
1512 grub_mkconfig
1513 grub_install
1514 grub_editenv
1515 grub_bios_setup
1516 AM_BACKSLASH
1517 AM_DEFAULT_VERBOSITY
1518 AM_DEFAULT_V
1519 AM_V
1520 am__untar
1521 am__tar
1522 AMTAR
1523 am__leading_dot
1524 SET_MAKE
1526 mkdir_p
1527 MKDIR_P
1528 INSTALL_STRIP_PROGRAM
1529 STRIP
1530 install_sh
1531 MAKEINFO
1532 AUTOHEADER
1533 AUTOMAKE
1534 AUTOCONF
1535 ACLOCAL
1536 VERSION
1537 PACKAGE
1538 CYGPATH_W
1539 am__isrc
1540 INSTALL_DATA
1541 INSTALL_SCRIPT
1542 INSTALL_PROGRAM
1543 target_os
1544 target_vendor
1545 target_cpu
1546 target
1547 host_os
1548 host_vendor
1549 host_cpu
1550 host
1551 build_os
1552 build_vendor
1553 build_cpu
1554 build
1555 target_alias
1556 host_alias
1557 build_alias
1558 LIBS
1559 ECHO_T
1560 ECHO_N
1561 ECHO_C
1562 DEFS
1563 mandir
1564 localedir
1565 libdir
1566 psdir
1567 pdfdir
1568 dvidir
1569 htmldir
1570 infodir
1571 docdir
1572 oldincludedir
1573 includedir
1574 localstatedir
1575 sharedstatedir
1576 sysconfdir
1577 datadir
1578 datarootdir
1579 libexecdir
1580 sbindir
1581 bindir
1582 program_transform_name
1583 prefix
1584 exec_prefix
1585 PACKAGE_URL
1586 PACKAGE_BUGREPORT
1587 PACKAGE_STRING
1588 PACKAGE_VERSION
1589 PACKAGE_TARNAME
1590 PACKAGE_NAME
1591 PATH_SEPARATOR
1592 SHELL'
1593 ac_subst_files=''
1594 ac_user_opts='
1595 enable_option_checking
1596 enable_silent_rules
1597 with_platform
1598 with_bootdir
1599 with_grubdir
1600 enable_dependency_tracking
1601 enable_nls
1602 with_gnu_ld
1603 enable_rpath
1604 with_libiconv_prefix
1605 with_libintl_prefix
1606 enable_largefile
1607 with_included_regex
1608 enable_efiemu
1609 enable_mm_debug
1610 enable_cache_stats
1611 enable_boot_time
1612 enable_grub_emu_usb
1613 enable_grub_emu_sdl
1614 enable_grub_emu_pci
1615 enable_grub_mkfont
1616 enable_grub_themes
1617 enable_grub_mount
1618 enable_device_mapper
1619 enable_liblzma
1620 enable_libzfs
1621 enable_werror
1623 ac_precious_vars='build_alias
1624 host_alias
1625 target_alias
1627 CFLAGS
1628 LDFLAGS
1629 LIBS
1630 CPPFLAGS
1631 YACC
1632 YFLAGS
1635 CXXFLAGS
1637 CCAS
1638 CCASFLAGS'
1641 # Initialize some variables set by options.
1642 ac_init_help=
1643 ac_init_version=false
1644 ac_unrecognized_opts=
1645 ac_unrecognized_sep=
1646 # The variables have the same names as the options, with
1647 # dashes changed to underlines.
1648 cache_file=/dev/null
1649 exec_prefix=NONE
1650 no_create=
1651 no_recursion=
1652 prefix=NONE
1653 program_prefix=NONE
1654 program_suffix=NONE
1655 program_transform_name=s,x,x,
1656 silent=
1657 site=
1658 srcdir=
1659 verbose=
1660 x_includes=NONE
1661 x_libraries=NONE
1663 # Installation directory options.
1664 # These are left unexpanded so users can "make install exec_prefix=/foo"
1665 # and all the variables that are supposed to be based on exec_prefix
1666 # by default will actually change.
1667 # Use braces instead of parens because sh, perl, etc. also accept them.
1668 # (The list follows the same order as the GNU Coding Standards.)
1669 bindir='${exec_prefix}/bin'
1670 sbindir='${exec_prefix}/sbin'
1671 libexecdir='${exec_prefix}/libexec'
1672 datarootdir='${prefix}/share'
1673 datadir='${datarootdir}'
1674 sysconfdir='${prefix}/etc'
1675 sharedstatedir='${prefix}/com'
1676 localstatedir='${prefix}/var'
1677 includedir='${prefix}/include'
1678 oldincludedir='/usr/include'
1679 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1680 infodir='${datarootdir}/info'
1681 htmldir='${docdir}'
1682 dvidir='${docdir}'
1683 pdfdir='${docdir}'
1684 psdir='${docdir}'
1685 libdir='${exec_prefix}/lib'
1686 localedir='${datarootdir}/locale'
1687 mandir='${datarootdir}/man'
1689 ac_prev=
1690 ac_dashdash=
1691 for ac_option
1693 # If the previous option needs an argument, assign it.
1694 if test -n "$ac_prev"; then
1695 eval $ac_prev=\$ac_option
1696 ac_prev=
1697 continue
1700 case $ac_option in
1701 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1702 *=) ac_optarg= ;;
1703 *) ac_optarg=yes ;;
1704 esac
1706 # Accept the important Cygnus configure options, so we can diagnose typos.
1708 case $ac_dashdash$ac_option in
1710 ac_dashdash=yes ;;
1712 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1713 ac_prev=bindir ;;
1714 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1715 bindir=$ac_optarg ;;
1717 -build | --build | --buil | --bui | --bu)
1718 ac_prev=build_alias ;;
1719 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1720 build_alias=$ac_optarg ;;
1722 -cache-file | --cache-file | --cache-fil | --cache-fi \
1723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1724 ac_prev=cache_file ;;
1725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1727 cache_file=$ac_optarg ;;
1729 --config-cache | -C)
1730 cache_file=config.cache ;;
1732 -datadir | --datadir | --datadi | --datad)
1733 ac_prev=datadir ;;
1734 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1735 datadir=$ac_optarg ;;
1737 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1738 | --dataroo | --dataro | --datar)
1739 ac_prev=datarootdir ;;
1740 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1741 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1742 datarootdir=$ac_optarg ;;
1744 -disable-* | --disable-*)
1745 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748 as_fn_error $? "invalid feature name: $ac_useropt"
1749 ac_useropt_orig=$ac_useropt
1750 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1753 "enable_$ac_useropt"
1754 "*) ;;
1755 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1756 ac_unrecognized_sep=', ';;
1757 esac
1758 eval enable_$ac_useropt=no ;;
1760 -docdir | --docdir | --docdi | --doc | --do)
1761 ac_prev=docdir ;;
1762 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1763 docdir=$ac_optarg ;;
1765 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1766 ac_prev=dvidir ;;
1767 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1768 dvidir=$ac_optarg ;;
1770 -enable-* | --enable-*)
1771 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1774 as_fn_error $? "invalid feature name: $ac_useropt"
1775 ac_useropt_orig=$ac_useropt
1776 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1779 "enable_$ac_useropt"
1780 "*) ;;
1781 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1782 ac_unrecognized_sep=', ';;
1783 esac
1784 eval enable_$ac_useropt=\$ac_optarg ;;
1786 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1787 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1788 | --exec | --exe | --ex)
1789 ac_prev=exec_prefix ;;
1790 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1791 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1792 | --exec=* | --exe=* | --ex=*)
1793 exec_prefix=$ac_optarg ;;
1795 -gas | --gas | --ga | --g)
1796 # Obsolete; use --with-gas.
1797 with_gas=yes ;;
1799 -help | --help | --hel | --he | -h)
1800 ac_init_help=long ;;
1801 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1802 ac_init_help=recursive ;;
1803 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1804 ac_init_help=short ;;
1806 -host | --host | --hos | --ho)
1807 ac_prev=host_alias ;;
1808 -host=* | --host=* | --hos=* | --ho=*)
1809 host_alias=$ac_optarg ;;
1811 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1812 ac_prev=htmldir ;;
1813 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1814 | --ht=*)
1815 htmldir=$ac_optarg ;;
1817 -includedir | --includedir | --includedi | --included | --include \
1818 | --includ | --inclu | --incl | --inc)
1819 ac_prev=includedir ;;
1820 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1821 | --includ=* | --inclu=* | --incl=* | --inc=*)
1822 includedir=$ac_optarg ;;
1824 -infodir | --infodir | --infodi | --infod | --info | --inf)
1825 ac_prev=infodir ;;
1826 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1827 infodir=$ac_optarg ;;
1829 -libdir | --libdir | --libdi | --libd)
1830 ac_prev=libdir ;;
1831 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1832 libdir=$ac_optarg ;;
1834 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1835 | --libexe | --libex | --libe)
1836 ac_prev=libexecdir ;;
1837 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1838 | --libexe=* | --libex=* | --libe=*)
1839 libexecdir=$ac_optarg ;;
1841 -localedir | --localedir | --localedi | --localed | --locale)
1842 ac_prev=localedir ;;
1843 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1844 localedir=$ac_optarg ;;
1846 -localstatedir | --localstatedir | --localstatedi | --localstated \
1847 | --localstate | --localstat | --localsta | --localst | --locals)
1848 ac_prev=localstatedir ;;
1849 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1850 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1851 localstatedir=$ac_optarg ;;
1853 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1854 ac_prev=mandir ;;
1855 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1856 mandir=$ac_optarg ;;
1858 -nfp | --nfp | --nf)
1859 # Obsolete; use --without-fp.
1860 with_fp=no ;;
1862 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1863 | --no-cr | --no-c | -n)
1864 no_create=yes ;;
1866 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1867 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1868 no_recursion=yes ;;
1870 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1871 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1872 | --oldin | --oldi | --old | --ol | --o)
1873 ac_prev=oldincludedir ;;
1874 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1875 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1876 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1877 oldincludedir=$ac_optarg ;;
1879 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1880 ac_prev=prefix ;;
1881 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1882 prefix=$ac_optarg ;;
1884 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1885 | --program-pre | --program-pr | --program-p)
1886 ac_prev=program_prefix ;;
1887 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1888 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1889 program_prefix=$ac_optarg ;;
1891 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1892 | --program-suf | --program-su | --program-s)
1893 ac_prev=program_suffix ;;
1894 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1895 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1896 program_suffix=$ac_optarg ;;
1898 -program-transform-name | --program-transform-name \
1899 | --program-transform-nam | --program-transform-na \
1900 | --program-transform-n | --program-transform- \
1901 | --program-transform | --program-transfor \
1902 | --program-transfo | --program-transf \
1903 | --program-trans | --program-tran \
1904 | --progr-tra | --program-tr | --program-t)
1905 ac_prev=program_transform_name ;;
1906 -program-transform-name=* | --program-transform-name=* \
1907 | --program-transform-nam=* | --program-transform-na=* \
1908 | --program-transform-n=* | --program-transform-=* \
1909 | --program-transform=* | --program-transfor=* \
1910 | --program-transfo=* | --program-transf=* \
1911 | --program-trans=* | --program-tran=* \
1912 | --progr-tra=* | --program-tr=* | --program-t=*)
1913 program_transform_name=$ac_optarg ;;
1915 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1916 ac_prev=pdfdir ;;
1917 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1918 pdfdir=$ac_optarg ;;
1920 -psdir | --psdir | --psdi | --psd | --ps)
1921 ac_prev=psdir ;;
1922 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1923 psdir=$ac_optarg ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 silent=yes ;;
1929 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1930 ac_prev=sbindir ;;
1931 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1932 | --sbi=* | --sb=*)
1933 sbindir=$ac_optarg ;;
1935 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1936 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1937 | --sharedst | --shareds | --shared | --share | --shar \
1938 | --sha | --sh)
1939 ac_prev=sharedstatedir ;;
1940 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1941 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1942 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1943 | --sha=* | --sh=*)
1944 sharedstatedir=$ac_optarg ;;
1946 -site | --site | --sit)
1947 ac_prev=site ;;
1948 -site=* | --site=* | --sit=*)
1949 site=$ac_optarg ;;
1951 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1952 ac_prev=srcdir ;;
1953 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1954 srcdir=$ac_optarg ;;
1956 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1957 | --syscon | --sysco | --sysc | --sys | --sy)
1958 ac_prev=sysconfdir ;;
1959 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1960 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1961 sysconfdir=$ac_optarg ;;
1963 -target | --target | --targe | --targ | --tar | --ta | --t)
1964 ac_prev=target_alias ;;
1965 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1966 target_alias=$ac_optarg ;;
1968 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1969 verbose=yes ;;
1971 -version | --version | --versio | --versi | --vers | -V)
1972 ac_init_version=: ;;
1974 -with-* | --with-*)
1975 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1978 as_fn_error $? "invalid package name: $ac_useropt"
1979 ac_useropt_orig=$ac_useropt
1980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1983 "with_$ac_useropt"
1984 "*) ;;
1985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1986 ac_unrecognized_sep=', ';;
1987 esac
1988 eval with_$ac_useropt=\$ac_optarg ;;
1990 -without-* | --without-*)
1991 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1992 # Reject names that are not valid shell variable names.
1993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1994 as_fn_error $? "invalid package name: $ac_useropt"
1995 ac_useropt_orig=$ac_useropt
1996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997 case $ac_user_opts in
1999 "with_$ac_useropt"
2000 "*) ;;
2001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2002 ac_unrecognized_sep=', ';;
2003 esac
2004 eval with_$ac_useropt=no ;;
2006 --x)
2007 # Obsolete; use --with-x.
2008 with_x=yes ;;
2010 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2011 | --x-incl | --x-inc | --x-in | --x-i)
2012 ac_prev=x_includes ;;
2013 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2014 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2015 x_includes=$ac_optarg ;;
2017 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2018 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2019 ac_prev=x_libraries ;;
2020 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2021 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2022 x_libraries=$ac_optarg ;;
2024 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2025 Try \`$0 --help' for more information"
2028 *=*)
2029 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2030 # Reject names that are not valid shell variable names.
2031 case $ac_envvar in #(
2032 '' | [0-9]* | *[!_$as_cr_alnum]* )
2033 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2034 esac
2035 eval $ac_envvar=\$ac_optarg
2036 export $ac_envvar ;;
2039 # FIXME: should be removed in autoconf 3.0.
2040 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2041 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2042 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2043 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2046 esac
2047 done
2049 if test -n "$ac_prev"; then
2050 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2051 as_fn_error $? "missing argument to $ac_option"
2054 if test -n "$ac_unrecognized_opts"; then
2055 case $enable_option_checking in
2056 no) ;;
2057 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2058 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2059 esac
2062 # Check all directory arguments for consistency.
2063 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2064 datadir sysconfdir sharedstatedir localstatedir includedir \
2065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2066 libdir localedir mandir
2068 eval ac_val=\$$ac_var
2069 # Remove trailing slashes.
2070 case $ac_val in
2071 */ )
2072 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2073 eval $ac_var=\$ac_val;;
2074 esac
2075 # Be sure to have absolute directory names.
2076 case $ac_val in
2077 [\\/$]* | ?:[\\/]* ) continue;;
2078 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2079 esac
2080 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2081 done
2083 # There might be people who depend on the old broken behavior: `$host'
2084 # used to hold the argument of --host etc.
2085 # FIXME: To remove some day.
2086 build=$build_alias
2087 host=$host_alias
2088 target=$target_alias
2090 # FIXME: To remove some day.
2091 if test "x$host_alias" != x; then
2092 if test "x$build_alias" = x; then
2093 cross_compiling=maybe
2094 elif test "x$build_alias" != "x$host_alias"; then
2095 cross_compiling=yes
2099 ac_tool_prefix=
2100 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2102 test "$silent" = yes && exec 6>/dev/null
2105 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2106 ac_ls_di=`ls -di .` &&
2107 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2108 as_fn_error $? "working directory cannot be determined"
2109 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2110 as_fn_error $? "pwd does not report name of working directory"
2113 # Find the source files, if location was not specified.
2114 if test -z "$srcdir"; then
2115 ac_srcdir_defaulted=yes
2116 # Try the directory containing this script, then the parent directory.
2117 ac_confdir=`$as_dirname -- "$as_myself" ||
2118 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2119 X"$as_myself" : 'X\(//\)[^/]' \| \
2120 X"$as_myself" : 'X\(//\)$' \| \
2121 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2122 $as_echo X"$as_myself" |
2123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2124 s//\1/
2127 /^X\(\/\/\)[^/].*/{
2128 s//\1/
2131 /^X\(\/\/\)$/{
2132 s//\1/
2135 /^X\(\/\).*/{
2136 s//\1/
2139 s/.*/./; q'`
2140 srcdir=$ac_confdir
2141 if test ! -r "$srcdir/$ac_unique_file"; then
2142 srcdir=..
2144 else
2145 ac_srcdir_defaulted=no
2147 if test ! -r "$srcdir/$ac_unique_file"; then
2148 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2149 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2152 ac_abs_confdir=`(
2153 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2154 pwd)`
2155 # When building in place, set srcdir=.
2156 if test "$ac_abs_confdir" = "$ac_pwd"; then
2157 srcdir=.
2159 # Remove unnecessary trailing slashes from srcdir.
2160 # Double slashes in file names in object file debugging info
2161 # mess up M-x gdb in Emacs.
2162 case $srcdir in
2163 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2164 esac
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2167 eval ac_env_${ac_var}_value=\$${ac_var}
2168 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2169 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2170 done
2173 # Report the --help message.
2175 if test "$ac_init_help" = "long"; then
2176 # Omit some internal or obsolete options to make the list less imposing.
2177 # This message is too long to be a string in the A/UX 3.1 sh.
2178 cat <<_ACEOF
2179 \`configure' configures GRUB 2.02~beta2 to adapt to many kinds of systems.
2181 Usage: $0 [OPTION]... [VAR=VALUE]...
2183 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2184 VAR=VALUE. See below for descriptions of some of the useful variables.
2186 Defaults for the options are specified in brackets.
2188 Configuration:
2189 -h, --help display this help and exit
2190 --help=short display options specific to this package
2191 --help=recursive display the short help of all the included packages
2192 -V, --version display version information and exit
2193 -q, --quiet, --silent do not print \`checking ...' messages
2194 --cache-file=FILE cache test results in FILE [disabled]
2195 -C, --config-cache alias for \`--cache-file=config.cache'
2196 -n, --no-create do not create output files
2197 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2199 Installation directories:
2200 --prefix=PREFIX install architecture-independent files in PREFIX
2201 [$ac_default_prefix]
2202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2203 [PREFIX]
2205 By default, \`make install' will install all the files in
2206 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2207 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2208 for instance \`--prefix=\$HOME'.
2210 For better control, use the options below.
2212 Fine tuning of the installation directories:
2213 --bindir=DIR user executables [EPREFIX/bin]
2214 --sbindir=DIR system admin executables [EPREFIX/sbin]
2215 --libexecdir=DIR program executables [EPREFIX/libexec]
2216 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2217 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2218 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2219 --libdir=DIR object code libraries [EPREFIX/lib]
2220 --includedir=DIR C header files [PREFIX/include]
2221 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2222 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2223 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2224 --infodir=DIR info documentation [DATAROOTDIR/info]
2225 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2226 --mandir=DIR man documentation [DATAROOTDIR/man]
2227 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
2228 --htmldir=DIR html documentation [DOCDIR]
2229 --dvidir=DIR dvi documentation [DOCDIR]
2230 --pdfdir=DIR pdf documentation [DOCDIR]
2231 --psdir=DIR ps documentation [DOCDIR]
2232 _ACEOF
2234 cat <<\_ACEOF
2236 Program names:
2237 --program-prefix=PREFIX prepend PREFIX to installed program names
2238 --program-suffix=SUFFIX append SUFFIX to installed program names
2239 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2241 System types:
2242 --build=BUILD configure for building on BUILD [guessed]
2243 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2244 --target=TARGET configure for building compilers for TARGET [HOST]
2245 _ACEOF
2248 if test -n "$ac_init_help"; then
2249 case $ac_init_help in
2250 short | recursive ) echo "Configuration of GRUB 2.02~beta2:";;
2251 esac
2252 cat <<\_ACEOF
2254 Optional Features:
2255 --disable-option-checking ignore unrecognized --enable/--with options
2256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2258 --enable-silent-rules less verbose build output (undo: "make V=1")
2259 --disable-silent-rules verbose build output (undo: "make V=0")
2260 --enable-dependency-tracking
2261 do not reject slow dependency extractors
2262 --disable-dependency-tracking
2263 speeds up one-time build
2264 --disable-nls do not use Native Language Support
2265 --disable-rpath do not hardcode runtime library paths
2266 --disable-largefile omit support for large files
2267 --enable-efiemu build and install the efiemu runtimes
2268 (default=guessed)
2269 --enable-mm-debug include memory manager debugging
2270 --enable-cache-stats enable disk cache statistics collection
2271 --enable-boot-time enable boot time statistics collection
2272 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
2273 with USB support (default=guessed)
2274 --enable-grub-emu-sdl build and install the `grub-emu' debugging utility
2275 with SDL support (default=guessed)
2276 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2277 with PCI support (potentially dangerous)
2278 (default=no)
2279 --enable-grub-mkfont build and install the `grub-mkfont' utility
2280 (default=guessed)
2281 --enable-grub-themes build and install GRUB themes (default=guessed)
2282 --enable-grub-mount build and install the `grub-mount' utility
2283 (default=guessed)
2284 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2285 --enable-liblzma enable liblzma integration (default=guessed)
2286 --enable-libzfs enable libzfs integration (default=guessed)
2287 --disable-werror do not use -Werror when building GRUB
2289 Optional Packages:
2290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2292 --with-platform=PLATFORM
2293 select the host platform [[guessed]]
2294 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2295 --with-grubdir=DIR set the name of grub directory [[guessed]]
2296 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2297 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2298 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2299 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2300 --without-libintl-prefix don't search for libintl in includedir and libdir
2301 --without-included-regex
2302 don't compile regex; this is the default on systems
2303 with recent-enough versions of the GNU C Library
2304 (use with caution on other systems).
2306 Some influential environment variables:
2307 CC C compiler command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2310 nonstandard directory <lib dir>
2311 LIBS libraries to pass to the linker, e.g. -l<library>
2312 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2313 you have headers in a nonstandard directory <include dir>
2314 YACC The `Yet Another Compiler Compiler' implementation to use.
2315 Defaults to the first program found out of: `bison -y', `byacc',
2316 `yacc'.
2317 YFLAGS The list of arguments that will be passed by default to $YACC.
2318 This script will default YFLAGS to the empty string to avoid a
2319 default value of `-d' given by some make applications.
2320 CPP C preprocessor
2321 CXX C++ compiler command
2322 CXXFLAGS C++ compiler flags
2323 CCAS assembler compiler command (defaults to CC)
2324 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2326 Use these variables to override the choices made by `configure' or to help
2327 it to find libraries and programs with nonstandard names/locations.
2329 Report bugs to <bug-grub@gnu.org>.
2330 _ACEOF
2331 ac_status=$?
2334 if test "$ac_init_help" = "recursive"; then
2335 # If there are subdirs, report their specific --help.
2336 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2337 test -d "$ac_dir" ||
2338 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2339 continue
2340 ac_builddir=.
2342 case "$ac_dir" in
2343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2346 # A ".." for each directory in $ac_dir_suffix.
2347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2348 case $ac_top_builddir_sub in
2349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2351 esac ;;
2352 esac
2353 ac_abs_top_builddir=$ac_pwd
2354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2355 # for backward compatibility:
2356 ac_top_builddir=$ac_top_build_prefix
2358 case $srcdir in
2359 .) # We are building in place.
2360 ac_srcdir=.
2361 ac_top_srcdir=$ac_top_builddir_sub
2362 ac_abs_top_srcdir=$ac_pwd ;;
2363 [\\/]* | ?:[\\/]* ) # Absolute name.
2364 ac_srcdir=$srcdir$ac_dir_suffix;
2365 ac_top_srcdir=$srcdir
2366 ac_abs_top_srcdir=$srcdir ;;
2367 *) # Relative name.
2368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2369 ac_top_srcdir=$ac_top_build_prefix$srcdir
2370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2371 esac
2372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2374 cd "$ac_dir" || { ac_status=$?; continue; }
2375 # Check for guested configure.
2376 if test -f "$ac_srcdir/configure.gnu"; then
2377 echo &&
2378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2379 elif test -f "$ac_srcdir/configure"; then
2380 echo &&
2381 $SHELL "$ac_srcdir/configure" --help=recursive
2382 else
2383 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2384 fi || ac_status=$?
2385 cd "$ac_pwd" || { ac_status=$?; break; }
2386 done
2389 test -n "$ac_init_help" && exit $ac_status
2390 if $ac_init_version; then
2391 cat <<\_ACEOF
2392 GRUB configure 2.02~beta2
2393 generated by GNU Autoconf 2.69
2395 Copyright (C) 2012 Free Software Foundation, Inc.
2396 This configure script is free software; the Free Software Foundation
2397 gives unlimited permission to copy, distribute and modify it.
2398 _ACEOF
2399 exit
2402 ## ------------------------ ##
2403 ## Autoconf initialization. ##
2404 ## ------------------------ ##
2406 # ac_fn_c_try_compile LINENO
2407 # --------------------------
2408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2409 ac_fn_c_try_compile ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 rm -f conftest.$ac_objext
2413 if { { ac_try="$ac_compile"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_compile") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } && {
2429 test -z "$ac_c_werror_flag" ||
2430 test ! -s conftest.err
2431 } && test -s conftest.$ac_objext; then :
2432 ac_retval=0
2433 else
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 ac_retval=1
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_c_try_compile
2444 # ac_fn_c_try_link LINENO
2445 # -----------------------
2446 # Try to link conftest.$ac_ext, and return whether this succeeded.
2447 ac_fn_c_try_link ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 test -x conftest$ac_exeext
2472 }; then :
2473 ac_retval=0
2474 else
2475 $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 ac_retval=1
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status $ac_retval
2488 } # ac_fn_c_try_link
2490 # ac_fn_c_try_cpp LINENO
2491 # ----------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_c_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2504 ac_status=$?
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } > conftest.i && {
2512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2513 test ! -s conftest.err
2514 }; then :
2515 ac_retval=0
2516 else
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 ac_retval=1
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 as_fn_set_status $ac_retval
2525 } # ac_fn_c_try_cpp
2527 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2528 # -------------------------------------------------------
2529 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2530 # the include files in INCLUDES and setting the cache variable VAR
2531 # accordingly.
2532 ac_fn_c_check_header_mongrel ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 if eval \${$3+:} false; then :
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if eval \${$3+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 else
2545 # Is the header compilable?
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2547 $as_echo_n "checking $2 usability... " >&6; }
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2551 #include <$2>
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 ac_header_compiler=yes
2555 else
2556 ac_header_compiler=no
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2560 $as_echo "$ac_header_compiler" >&6; }
2562 # Is the header present?
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2564 $as_echo_n "checking $2 presence... " >&6; }
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2567 #include <$2>
2568 _ACEOF
2569 if ac_fn_c_try_cpp "$LINENO"; then :
2570 ac_header_preproc=yes
2571 else
2572 ac_header_preproc=no
2574 rm -f conftest.err conftest.i conftest.$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2576 $as_echo "$ac_header_preproc" >&6; }
2578 # So? What about this header?
2579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2580 yes:no: )
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2582 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2584 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2586 no:yes:* )
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2588 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2590 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2592 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2594 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2596 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2597 ( $as_echo "## ------------------------------- ##
2598 ## Report this to bug-grub@gnu.org ##
2599 ## ------------------------------- ##"
2600 ) | sed "s/^/$as_me: WARNING: /" >&2
2602 esac
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604 $as_echo_n "checking for $2... " >&6; }
2605 if eval \${$3+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 eval "$3=\$ac_header_compiler"
2610 eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616 } # ac_fn_c_check_header_mongrel
2618 # ac_fn_c_try_run LINENO
2619 # ----------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2621 # that executables *can* be run.
2622 ac_fn_c_try_run ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>&5
2633 ac_status=$?
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2636 { { case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_try") 2>&5
2643 ac_status=$?
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; }; }; then :
2646 ac_retval=0
2647 else
2648 $as_echo "$as_me: program exited with status $ac_status" >&5
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=$ac_status
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_c_try_run
2660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2661 # -------------------------------------------------------
2662 # Tests whether HEADER exists and can be compiled using the include files in
2663 # INCLUDES, setting the cache variable VAR accordingly.
2664 ac_fn_c_check_header_compile ()
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if eval \${$3+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2675 #include <$2>
2676 _ACEOF
2677 if ac_fn_c_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679 else
2680 eval "$3=no"
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689 } # ac_fn_c_check_header_compile
2691 # ac_fn_cxx_try_compile LINENO
2692 # ----------------------------
2693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_cxx_try_compile ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext
2698 if { { ac_try="$ac_compile"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_compile") 2>conftest.err
2706 ac_status=$?
2707 if test -s conftest.err; then
2708 grep -v '^ *+' conftest.err >conftest.er1
2709 cat conftest.er1 >&5
2710 mv -f conftest.er1 conftest.err
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_cxx_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_retval=1
2724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2725 as_fn_set_status $ac_retval
2727 } # ac_fn_cxx_try_compile
2729 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2730 # --------------------------------------------
2731 # Tries to find the compile-time value of EXPR in a program that includes
2732 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2733 # computed
2734 ac_fn_c_compute_int ()
2736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2737 if test "$cross_compiling" = yes; then
2738 # Depending upon the size, compute the lo and hi bounds.
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2743 main (void)
2745 static int test_array [1 - 2 * !(($2) >= 0)];
2746 test_array [0] = 0;
2747 return test_array [0];
2750 return 0;
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_lo=0 ac_mid=0
2755 while :; do
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2760 main (void)
2762 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2763 test_array [0] = 0;
2764 return test_array [0];
2767 return 0;
2769 _ACEOF
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_hi=$ac_mid; break
2772 else
2773 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2774 if test $ac_lo -le $ac_mid; then
2775 ac_lo= ac_hi=
2776 break
2778 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 done
2782 else
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2787 main (void)
2789 static int test_array [1 - 2 * !(($2) < 0)];
2790 test_array [0] = 0;
2791 return test_array [0];
2794 return 0;
2796 _ACEOF
2797 if ac_fn_c_try_compile "$LINENO"; then :
2798 ac_hi=-1 ac_mid=-1
2799 while :; do
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2804 main (void)
2806 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2807 test_array [0] = 0;
2808 return test_array [0];
2811 return 0;
2813 _ACEOF
2814 if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_lo=$ac_mid; break
2816 else
2817 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2818 if test $ac_mid -le $ac_hi; then
2819 ac_lo= ac_hi=
2820 break
2822 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 done
2826 else
2827 ac_lo= ac_hi=
2829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 # Binary search between lo and hi bounds.
2833 while test "x$ac_lo" != "x$ac_hi"; do
2834 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2839 main (void)
2841 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2842 test_array [0] = 0;
2843 return test_array [0];
2846 return 0;
2848 _ACEOF
2849 if ac_fn_c_try_compile "$LINENO"; then :
2850 ac_hi=$ac_mid
2851 else
2852 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 done
2856 case $ac_lo in #((
2857 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2858 '') ac_retval=1 ;;
2859 esac
2860 else
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2864 static long int longval () { return $2; }
2865 static unsigned long int ulongval () { return $2; }
2866 #include <stdio.h>
2867 #include <stdlib.h>
2869 main (void)
2872 FILE *f = fopen ("conftest.val", "w");
2873 if (! f)
2874 return 1;
2875 if (($2) < 0)
2877 long int i = longval ();
2878 if (i != ($2))
2879 return 1;
2880 fprintf (f, "%ld", i);
2882 else
2884 unsigned long int i = ulongval ();
2885 if (i != ($2))
2886 return 1;
2887 fprintf (f, "%lu", i);
2889 /* Do not output a trailing newline, as this causes \r\n confusion
2890 on some platforms. */
2891 return ferror (f) || fclose (f) != 0;
2894 return 0;
2896 _ACEOF
2897 if ac_fn_c_try_run "$LINENO"; then :
2898 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2899 else
2900 ac_retval=1
2902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2903 conftest.$ac_objext conftest.beam conftest.$ac_ext
2904 rm -f conftest.val
2907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908 as_fn_set_status $ac_retval
2910 } # ac_fn_c_compute_int
2912 # ac_fn_c_check_func LINENO FUNC VAR
2913 # ----------------------------------
2914 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2915 ac_fn_c_check_func ()
2917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2919 $as_echo_n "checking for $2... " >&6; }
2920 if eval \${$3+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2927 #define $2 innocuous_$2
2929 /* System header to define __stub macros and hopefully few prototypes,
2930 which can conflict with char $2 (); below.
2931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 <limits.h> exists even on freestanding compilers. */
2934 #ifdef __STDC__
2935 # include <limits.h>
2936 #else
2937 # include <assert.h>
2938 #endif
2940 #undef $2
2942 /* Override any GCC internal prototype to avoid an error.
2943 Use char because int might match the return type of a GCC
2944 builtin and then its argument prototype would still apply. */
2945 #ifdef __cplusplus
2946 extern "C"
2947 #endif
2948 char $2 ();
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined __stub_$2 || defined __stub___$2
2953 choke me
2954 #endif
2957 main (void)
2959 return $2 ();
2961 return 0;
2963 _ACEOF
2964 if ac_fn_c_try_link "$LINENO"; then :
2965 eval "$3=yes"
2966 else
2967 eval "$3=no"
2969 rm -f core conftest.err conftest.$ac_objext \
2970 conftest$ac_exeext conftest.$ac_ext
2972 eval ac_res=\$$3
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2974 $as_echo "$ac_res" >&6; }
2975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2977 } # ac_fn_c_check_func
2979 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2980 # ----------------------------------------------------
2981 # Tries to find if the field MEMBER exists in type AGGR, after including
2982 # INCLUDES, setting cache variable VAR accordingly.
2983 ac_fn_c_check_member ()
2985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2987 $as_echo_n "checking for $2.$3... " >&6; }
2988 if eval \${$4+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2995 main (void)
2997 static $2 ac_aggr;
2998 if (ac_aggr.$3)
2999 return 0;
3001 return 0;
3003 _ACEOF
3004 if ac_fn_c_try_compile "$LINENO"; then :
3005 eval "$4=yes"
3006 else
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3011 main (void)
3013 static $2 ac_aggr;
3014 if (sizeof ac_aggr.$3)
3015 return 0;
3017 return 0;
3019 _ACEOF
3020 if ac_fn_c_try_compile "$LINENO"; then :
3021 eval "$4=yes"
3022 else
3023 eval "$4=no"
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 eval ac_res=\$$4
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3031 $as_echo "$ac_res" >&6; }
3032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3034 } # ac_fn_c_check_member
3036 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3037 # -------------------------------------------
3038 # Tests whether TYPE exists after having included INCLUDES, setting cache
3039 # variable VAR accordingly.
3040 ac_fn_c_check_type ()
3042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044 $as_echo_n "checking for $2... " >&6; }
3045 if eval \${$3+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 eval "$3=no"
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3053 main (void)
3055 if (sizeof ($2))
3056 return 0;
3058 return 0;
3060 _ACEOF
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main (void)
3068 if (sizeof (($2)))
3069 return 0;
3071 return 0;
3073 _ACEOF
3074 if ac_fn_c_try_compile "$LINENO"; then :
3076 else
3077 eval "$3=yes"
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 eval ac_res=\$$3
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3085 $as_echo "$ac_res" >&6; }
3086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3088 } # ac_fn_c_check_type
3090 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3091 # ---------------------------------------------
3092 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3093 # accordingly.
3094 ac_fn_c_check_decl ()
3096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3097 as_decl_name=`echo $2|sed 's/ *(.*//'`
3098 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3100 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3101 if eval \${$3+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main (void)
3110 #ifndef $as_decl_name
3111 #ifdef __cplusplus
3112 (void) $as_decl_use;
3113 #else
3114 (void) $as_decl_name;
3115 #endif
3116 #endif
3119 return 0;
3121 _ACEOF
3122 if ac_fn_c_try_compile "$LINENO"; then :
3123 eval "$3=yes"
3124 else
3125 eval "$3=no"
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 eval ac_res=\$$3
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3131 $as_echo "$ac_res" >&6; }
3132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3134 } # ac_fn_c_check_decl
3135 cat >config.log <<_ACEOF
3136 This file contains any messages produced by compilers while
3137 running configure, to aid debugging if configure makes a mistake.
3139 It was created by GRUB $as_me 2.02~beta2, which was
3140 generated by GNU Autoconf 2.69. Invocation command line was
3142 $ $0 $@
3144 _ACEOF
3145 exec 5>>config.log
3147 cat <<_ASUNAME
3148 ## --------- ##
3149 ## Platform. ##
3150 ## --------- ##
3152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3169 _ASUNAME
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 $as_echo "PATH: $as_dir"
3177 done
3178 IFS=$as_save_IFS
3180 } >&5
3182 cat >&5 <<_ACEOF
3185 ## ----------- ##
3186 ## Core tests. ##
3187 ## ----------- ##
3189 _ACEOF
3192 # Keep a trace of the command line.
3193 # Strip out --no-create and --no-recursion so they do not pile up.
3194 # Strip out --silent because we don't want to record it for future runs.
3195 # Also quote any args containing shell meta-characters.
3196 # Make two passes to allow for proper duplicate-argument suppression.
3197 ac_configure_args=
3198 ac_configure_args0=
3199 ac_configure_args1=
3200 ac_must_keep_next=false
3201 for ac_pass in 1 2
3203 for ac_arg
3205 case $ac_arg in
3206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3208 | -silent | --silent | --silen | --sile | --sil)
3209 continue ;;
3210 *\'*)
3211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3212 esac
3213 case $ac_pass in
3214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3216 as_fn_append ac_configure_args1 " '$ac_arg'"
3217 if test $ac_must_keep_next = true; then
3218 ac_must_keep_next=false # Got value, back to normal.
3219 else
3220 case $ac_arg in
3221 *=* | --config-cache | -C | -disable-* | --disable-* \
3222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3224 | -with-* | --with-* | -without-* | --without-* | --x)
3225 case "$ac_configure_args0 " in
3226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3227 esac
3229 -* ) ac_must_keep_next=true ;;
3230 esac
3232 as_fn_append ac_configure_args " '$ac_arg'"
3234 esac
3235 done
3236 done
3237 { ac_configure_args0=; unset ac_configure_args0;}
3238 { ac_configure_args1=; unset ac_configure_args1;}
3240 # When interrupted or exit'd, cleanup temporary files, and complete
3241 # config.log. We remove comments because anyway the quotes in there
3242 # would cause problems or look ugly.
3243 # WARNING: Use '\'' to represent an apostrophe within the trap.
3244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3245 trap 'exit_status=$?
3246 # Save into config.log some information that might help in debugging.
3248 echo
3250 $as_echo "## ---------------- ##
3251 ## Cache variables. ##
3252 ## ---------------- ##"
3253 echo
3254 # The following way of writing the cache mishandles newlines in values,
3256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257 eval ac_val=\$$ac_var
3258 case $ac_val in #(
3259 *${as_nl}*)
3260 case $ac_var in #(
3261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3263 esac
3264 case $ac_var in #(
3265 _ | IFS | as_nl) ;; #(
3266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3267 *) { eval $ac_var=; unset $ac_var;} ;;
3268 esac ;;
3269 esac
3270 done
3271 (set) 2>&1 |
3272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273 *${as_nl}ac_space=\ *)
3274 sed -n \
3275 "s/'\''/'\''\\\\'\'''\''/g;
3276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3277 ;; #(
3279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3281 esac |
3282 sort
3284 echo
3286 $as_echo "## ----------------- ##
3287 ## Output variables. ##
3288 ## ----------------- ##"
3289 echo
3290 for ac_var in $ac_subst_vars
3292 eval ac_val=\$$ac_var
3293 case $ac_val in
3294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295 esac
3296 $as_echo "$ac_var='\''$ac_val'\''"
3297 done | sort
3298 echo
3300 if test -n "$ac_subst_files"; then
3301 $as_echo "## ------------------- ##
3302 ## File substitutions. ##
3303 ## ------------------- ##"
3304 echo
3305 for ac_var in $ac_subst_files
3307 eval ac_val=\$$ac_var
3308 case $ac_val in
3309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3310 esac
3311 $as_echo "$ac_var='\''$ac_val'\''"
3312 done | sort
3313 echo
3316 if test -s confdefs.h; then
3317 $as_echo "## ----------- ##
3318 ## confdefs.h. ##
3319 ## ----------- ##"
3320 echo
3321 cat confdefs.h
3322 echo
3324 test "$ac_signal" != 0 &&
3325 $as_echo "$as_me: caught signal $ac_signal"
3326 $as_echo "$as_me: exit $exit_status"
3327 } >&5
3328 rm -f core *.core core.conftest.* &&
3329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3330 exit $exit_status
3332 for ac_signal in 1 2 13 15; do
3333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3334 done
3335 ac_signal=0
3337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3338 rm -f -r conftest* confdefs.h
3340 $as_echo "/* confdefs.h */" > confdefs.h
3342 # Predefined preprocessor variables.
3344 cat >>confdefs.h <<_ACEOF
3345 #define PACKAGE_NAME "$PACKAGE_NAME"
3346 _ACEOF
3348 cat >>confdefs.h <<_ACEOF
3349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3350 _ACEOF
3352 cat >>confdefs.h <<_ACEOF
3353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3354 _ACEOF
3356 cat >>confdefs.h <<_ACEOF
3357 #define PACKAGE_STRING "$PACKAGE_STRING"
3358 _ACEOF
3360 cat >>confdefs.h <<_ACEOF
3361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3362 _ACEOF
3364 cat >>confdefs.h <<_ACEOF
3365 #define PACKAGE_URL "$PACKAGE_URL"
3366 _ACEOF
3369 # Let the site file select an alternate cache file if it wants to.
3370 # Prefer an explicitly selected file to automatically selected ones.
3371 ac_site_file1=NONE
3372 ac_site_file2=NONE
3373 if test -n "$CONFIG_SITE"; then
3374 # We do not want a PATH search for config.site.
3375 case $CONFIG_SITE in #((
3376 -*) ac_site_file1=./$CONFIG_SITE;;
3377 */*) ac_site_file1=$CONFIG_SITE;;
3378 *) ac_site_file1=./$CONFIG_SITE;;
3379 esac
3380 elif test "x$prefix" != xNONE; then
3381 ac_site_file1=$prefix/share/config.site
3382 ac_site_file2=$prefix/etc/config.site
3383 else
3384 ac_site_file1=$ac_default_prefix/share/config.site
3385 ac_site_file2=$ac_default_prefix/etc/config.site
3387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3389 test "x$ac_site_file" = xNONE && continue
3390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3393 sed 's/^/| /' "$ac_site_file" >&5
3394 . "$ac_site_file" \
3395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "failed to load site script $ac_site_file
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 done
3402 if test -r "$cache_file"; then
3403 # Some versions of bash will fail to source /dev/null (special files
3404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3407 $as_echo "$as_me: loading cache $cache_file" >&6;}
3408 case $cache_file in
3409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3410 *) . "./$cache_file";;
3411 esac
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3415 $as_echo "$as_me: creating cache $cache_file" >&6;}
3416 >$cache_file
3419 gt_needs="$gt_needs "
3420 as_fn_append ac_func_list " flockfile"
3421 as_fn_append ac_func_list " funlockfile"
3422 as_fn_append ac_header_list " features.h"
3423 as_fn_append ac_header_list " linewrap.h"
3424 as_fn_append ac_func_list " btowc"
3425 as_fn_append ac_func_list " isblank"
3426 as_fn_append ac_func_list " iswctype"
3427 as_fn_append ac_func_list " mbsrtowcs"
3428 as_fn_append ac_func_list " mempcpy"
3429 as_fn_append ac_func_list " wmemchr"
3430 as_fn_append ac_func_list " wmemcpy"
3431 as_fn_append ac_func_list " wmempcpy"
3432 as_fn_append ac_header_list " wctype.h"
3433 as_fn_append ac_func_list " getdelim"
3434 gl_getopt_required=GNU
3435 as_fn_append ac_header_list " getopt.h"
3436 as_fn_append ac_header_list " langinfo.h"
3437 as_fn_append ac_header_list " unistd.h"
3438 as_fn_append ac_func_list " symlink"
3439 as_fn_append ac_header_list " xlocale.h"
3440 as_fn_append ac_func_list " mbsinit"
3441 as_fn_append ac_func_list " mbrtowc"
3442 as_fn_append ac_header_list " wchar.h"
3443 as_fn_append ac_func_list " isascii"
3444 as_fn_append ac_header_list " sys/mman.h"
3445 as_fn_append ac_func_list " mprotect"
3446 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3447 as_fn_append ac_func_list " nl_langinfo"
3448 as_fn_append ac_func_list " wcscoll"
3449 as_fn_append ac_func_list " sleep"
3450 as_fn_append ac_header_list " stdint.h"
3451 as_fn_append ac_header_list " sys/socket.h"
3452 as_fn_append ac_header_list " strings.h"
3453 as_fn_append ac_func_list " strndup"
3454 as_fn_append ac_header_list " sysexits.h"
3455 as_fn_append ac_func_list " vasnprintf"
3456 as_fn_append ac_func_list " snprintf"
3457 as_fn_append ac_func_list " wcrtomb"
3458 as_fn_append ac_func_list " iswcntrl"
3459 as_fn_append ac_func_list " wcwidth"
3460 # Check that the precious variables saved in the cache have kept the same
3461 # value.
3462 ac_cache_corrupted=false
3463 for ac_var in $ac_precious_vars; do
3464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3465 eval ac_new_set=\$ac_env_${ac_var}_set
3466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3467 eval ac_new_val=\$ac_env_${ac_var}_value
3468 case $ac_old_set,$ac_new_set in
3469 set,)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3471 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3472 ac_cache_corrupted=: ;;
3473 ,set)
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3475 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3476 ac_cache_corrupted=: ;;
3477 ,);;
3479 if test "x$ac_old_val" != "x$ac_new_val"; then
3480 # differences in whitespace do not lead to failure.
3481 ac_old_val_w=`echo x $ac_old_val`
3482 ac_new_val_w=`echo x $ac_new_val`
3483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3486 ac_cache_corrupted=:
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3490 eval $ac_var=\$ac_old_val
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3493 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3496 fi;;
3497 esac
3498 # Pass precious variables to config.status.
3499 if test "$ac_new_set" = set; then
3500 case $ac_new_val in
3501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3502 *) ac_arg=$ac_var=$ac_new_val ;;
3503 esac
3504 case " $ac_configure_args " in
3505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3507 esac
3509 done
3510 if $ac_cache_corrupted; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3515 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3517 ## -------------------- ##
3518 ## Main body of script. ##
3519 ## -------------------- ##
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 ac_aux_dir=
3530 for ac_dir in build-aux "$srcdir"/build-aux; do
3531 if test -f "$ac_dir/install-sh"; then
3532 ac_aux_dir=$ac_dir
3533 ac_install_sh="$ac_aux_dir/install-sh -c"
3534 break
3535 elif test -f "$ac_dir/install.sh"; then
3536 ac_aux_dir=$ac_dir
3537 ac_install_sh="$ac_aux_dir/install.sh -c"
3538 break
3539 elif test -f "$ac_dir/shtool"; then
3540 ac_aux_dir=$ac_dir
3541 ac_install_sh="$ac_aux_dir/shtool install -c"
3542 break
3544 done
3545 if test -z "$ac_aux_dir"; then
3546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3549 # These three variables are undocumented and unsupported,
3550 # and are intended to be withdrawn in a future Autoconf release.
3551 # They can cause serious problems if a builder's source tree is in a directory
3552 # whose full name contains unusual characters.
3553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3559 # We don't want -g -O2 by default in CFLAGS
3560 : ${CFLAGS=""}
3562 # Checks for build, host and target systems.
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568 $as_echo_n "checking build system type... " >&6; }
3569 if ${ac_cv_build+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x &&
3576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586 esac
3587 build=$ac_cv_build
3588 ac_save_IFS=$IFS; IFS='-'
3589 set x $ac_cv_build
3590 shift
3591 build_cpu=$1
3592 build_vendor=$2
3593 shift; shift
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3596 build_os=$*
3597 IFS=$ac_save_IFS
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 $as_echo_n "checking host system type... " >&6; }
3603 if ${ac_cv_host+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3608 else
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3616 case $ac_cv_host in
3617 *-*-*) ;;
3618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3619 esac
3620 host=$ac_cv_host
3621 ac_save_IFS=$IFS; IFS='-'
3622 set x $ac_cv_host
3623 shift
3624 host_cpu=$1
3625 host_vendor=$2
3626 shift; shift
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3629 host_os=$*
3630 IFS=$ac_save_IFS
3631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634 save_program_prefix="${program_prefix}"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3636 $as_echo_n "checking target system type... " >&6; }
3637 if ${ac_cv_target+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test "x$target_alias" = x; then
3641 ac_cv_target=$ac_cv_host
3642 else
3643 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3649 $as_echo "$ac_cv_target" >&6; }
3650 case $ac_cv_target in
3651 *-*-*) ;;
3652 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3653 esac
3654 target=$ac_cv_target
3655 ac_save_IFS=$IFS; IFS='-'
3656 set x $ac_cv_target
3657 shift
3658 target_cpu=$1
3659 target_vendor=$2
3660 shift; shift
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3663 target_os=$*
3664 IFS=$ac_save_IFS
3665 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3668 # The aliases save the names the user supplied, while $host etc.
3669 # will get canonicalized.
3670 test -n "$target_alias" &&
3671 test "$program_prefix$program_suffix$program_transform_name" = \
3672 NONENONEs,x,x, &&
3673 program_prefix=${target_alias}-
3674 program_prefix="${save_program_prefix}"
3676 am__api_version='1.13'
3678 # Find a good install program. We prefer a C program (faster),
3679 # so one script is as good as another. But avoid the broken or
3680 # incompatible versions:
3681 # SysV /etc/install, /usr/sbin/install
3682 # SunOS /usr/etc/install
3683 # IRIX /sbin/install
3684 # AIX /bin/install
3685 # AmigaOS /C/install, which installs bootblocks on floppy discs
3686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3689 # OS/2's system install, which has a completely different semantic
3690 # ./install, which can be erroneously created by make from ./install.sh.
3691 # Reject install programs that cannot install multiple files.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3694 if test -z "$INSTALL"; then
3695 if ${ac_cv_path_install+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 # Account for people who put trailing slashes in PATH elements.
3704 case $as_dir/ in #((
3705 ./ | .// | /[cC]/* | \
3706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3708 /usr/ucb/* ) ;;
3710 # OSF1 and SCO ODT 3.0 have their own names for install.
3711 # Don't use installbsd from OSF since it installs stuff as root
3712 # by default.
3713 for ac_prog in ginstall scoinst install; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3716 if test $ac_prog = install &&
3717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # AIX install. It has an incompatible calling convention.
3720 elif test $ac_prog = install &&
3721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # program-specific install script used by HP pwplus--don't use.
3724 else
3725 rm -rf conftest.one conftest.two conftest.dir
3726 echo one > conftest.one
3727 echo two > conftest.two
3728 mkdir conftest.dir
3729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3730 test -s conftest.one && test -s conftest.two &&
3731 test -s conftest.dir/conftest.one &&
3732 test -s conftest.dir/conftest.two
3733 then
3734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3735 break 3
3739 done
3740 done
3742 esac
3744 done
3745 IFS=$as_save_IFS
3747 rm -rf conftest.one conftest.two conftest.dir
3750 if test "${ac_cv_path_install+set}" = set; then
3751 INSTALL=$ac_cv_path_install
3752 else
3753 # As a last resort, use the slow shell script. Don't cache a
3754 # value for INSTALL within a source directory, because that will
3755 # break other packages using the cache if that directory is
3756 # removed, or if the value is a relative name.
3757 INSTALL=$ac_install_sh
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3761 $as_echo "$INSTALL" >&6; }
3763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3764 # It thinks the first close brace ends the variable substitution.
3765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3772 $as_echo_n "checking whether build environment is sane... " >&6; }
3773 # Reject unsafe characters in $srcdir or the absolute working directory
3774 # name. Accept space and tab only in the latter.
3775 am_lf='
3777 case `pwd` in
3778 *[\\\"\#\$\&\'\`$am_lf]*)
3779 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3780 esac
3781 case $srcdir in
3782 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3783 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3784 esac
3786 # Do 'set' in a subshell so we don't clobber the current shell's
3787 # arguments. Must try -L first in case configure is actually a
3788 # symlink; some systems play weird games with the mod time of symlinks
3789 # (eg FreeBSD returns the mod time of the symlink's containing
3790 # directory).
3791 if (
3792 am_has_slept=no
3793 for am_try in 1 2; do
3794 echo "timestamp, slept: $am_has_slept" > conftest.file
3795 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3796 if test "$*" = "X"; then
3797 # -L didn't work.
3798 set X `ls -t "$srcdir/configure" conftest.file`
3800 if test "$*" != "X $srcdir/configure conftest.file" \
3801 && test "$*" != "X conftest.file $srcdir/configure"; then
3803 # If neither matched, then we have a broken ls. This can happen
3804 # if, for instance, CONFIG_SHELL is bash and it inherits a
3805 # broken ls alias from the environment. This has actually
3806 # happened. Such a system could not be considered "sane".
3807 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3808 alias in your environment" "$LINENO" 5
3810 if test "$2" = conftest.file || test $am_try -eq 2; then
3811 break
3813 # Just in case.
3814 sleep 1
3815 am_has_slept=yes
3816 done
3817 test "$2" = conftest.file
3819 then
3820 # Ok.
3822 else
3823 as_fn_error $? "newly created file is older than distributed files!
3824 Check your system clock" "$LINENO" 5
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3828 # If we didn't sleep, we still need to ensure time stamps of config.status and
3829 # generated files are strictly newer.
3830 am_sleep_pid=
3831 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3832 ( sleep 1 ) &
3833 am_sleep_pid=$!
3836 rm -f conftest.file
3838 test "$program_prefix" != NONE &&
3839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3840 # Use a double $ so make ignores it.
3841 test "$program_suffix" != NONE &&
3842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3843 # Double any \ or $.
3844 # By default was `s,x,x', remove it if useless.
3845 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3846 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3848 # expand $ac_aux_dir to an absolute path
3849 am_aux_dir=`cd $ac_aux_dir && pwd`
3851 if test x"${MISSING+set}" != xset; then
3852 case $am_aux_dir in
3853 *\ * | *\ *)
3854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3857 esac
3859 # Use eval to expand $SHELL
3860 if eval "$MISSING --is-lightweight"; then
3861 am_missing_run="$MISSING "
3862 else
3863 am_missing_run=
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3865 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3868 if test x"${install_sh}" != xset; then
3869 case $am_aux_dir in
3870 *\ * | *\ *)
3871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3873 install_sh="\${SHELL} $am_aux_dir/install-sh"
3874 esac
3877 # Installed binaries are usually stripped using 'strip' when the user
3878 # run "make install-strip". However 'strip' might not be the right
3879 # tool to use in cross-compilation environments, therefore Automake
3880 # will honor the 'STRIP' environment variable to overrule this program.
3881 if test "$cross_compiling" != no; then
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3884 set dummy ${ac_tool_prefix}strip; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_STRIP+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -n "$STRIP"; then
3891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 STRIP=$ac_cv_prog_STRIP
3911 if test -n "$STRIP"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3913 $as_echo "$STRIP" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3921 if test -z "$ac_cv_prog_STRIP"; then
3922 ac_ct_STRIP=$STRIP
3923 # Extract the first word of "strip", so it can be a program name with args.
3924 set dummy strip; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -n "$ac_ct_STRIP"; then
3931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_STRIP="strip"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3946 IFS=$as_save_IFS
3950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3951 if test -n "$ac_ct_STRIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3953 $as_echo "$ac_ct_STRIP" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3959 if test "x$ac_ct_STRIP" = x; then
3960 STRIP=":"
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963 yes:)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned=yes ;;
3967 esac
3968 STRIP=$ac_ct_STRIP
3970 else
3971 STRIP="$ac_cv_prog_STRIP"
3975 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3978 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3979 if test -z "$MKDIR_P"; then
3980 if ${ac_cv_path_mkdir+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in mkdir gmkdir; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3992 'mkdir (GNU coreutils) '* | \
3993 'mkdir (coreutils) '* | \
3994 'mkdir (fileutils) '4.1*)
3995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3996 break 3;;
3997 esac
3998 done
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 test -d ./--version && rmdir ./--version
4006 if test "${ac_cv_path_mkdir+set}" = set; then
4007 MKDIR_P="$ac_cv_path_mkdir -p"
4008 else
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for MKDIR_P within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 MKDIR_P="$ac_install_sh -d"
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4017 $as_echo "$MKDIR_P" >&6; }
4019 for ac_prog in gawk mawk nawk awk
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy $ac_prog; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_AWK+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$AWK"; then
4029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_AWK="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4042 done
4043 done
4044 IFS=$as_save_IFS
4048 AWK=$ac_cv_prog_AWK
4049 if test -n "$AWK"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4051 $as_echo "$AWK" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4058 test -n "$AWK" && break
4059 done
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4062 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4063 set x ${MAKE-make}
4064 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4065 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat >conftest.make <<\_ACEOF
4069 SHELL = /bin/sh
4070 all:
4071 @echo '@@@%%%=$(MAKE)=@@@%%%'
4072 _ACEOF
4073 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4074 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4075 *@@@%%%=?*=@@@%%%*)
4076 eval ac_cv_prog_make_${ac_make}_set=yes;;
4078 eval ac_cv_prog_make_${ac_make}_set=no;;
4079 esac
4080 rm -f conftest.make
4082 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 SET_MAKE=
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 SET_MAKE="MAKE=${MAKE-make}"
4092 rm -rf .tst 2>/dev/null
4093 mkdir .tst 2>/dev/null
4094 if test -d .tst; then
4095 am__leading_dot=.
4096 else
4097 am__leading_dot=_
4099 rmdir .tst 2>/dev/null
4101 # Check whether --enable-silent-rules was given.
4102 if test "${enable_silent_rules+set}" = set; then :
4103 enableval=$enable_silent_rules;
4106 case $enable_silent_rules in # (((
4107 yes) AM_DEFAULT_VERBOSITY=0;;
4108 no) AM_DEFAULT_VERBOSITY=1;;
4109 *) AM_DEFAULT_VERBOSITY=1;;
4110 esac
4111 am_make=${MAKE-make}
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4113 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4114 if ${am_cv_make_support_nested_variables+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if $as_echo 'TRUE=$(BAR$(V))
4118 BAR0=false
4119 BAR1=true
4121 am__doit:
4122 @$(TRUE)
4123 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4124 am_cv_make_support_nested_variables=yes
4125 else
4126 am_cv_make_support_nested_variables=no
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4130 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4131 if test $am_cv_make_support_nested_variables = yes; then
4132 AM_V='$(V)'
4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4134 else
4135 AM_V=$AM_DEFAULT_VERBOSITY
4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4138 AM_BACKSLASH='\'
4140 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4142 # is not polluted with repeated "-I."
4143 am__isrc=' -I$(srcdir)'
4144 # test to see if srcdir already configured
4145 if test -f $srcdir/config.status; then
4146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4150 # test whether we have cygpath
4151 if test -z "$CYGPATH_W"; then
4152 if (cygpath --version) >/dev/null 2>/dev/null; then
4153 CYGPATH_W='cygpath -w'
4154 else
4155 CYGPATH_W=echo
4160 # Define the identity of the package.
4161 PACKAGE='grub'
4162 VERSION='2.02~beta2'
4165 cat >>confdefs.h <<_ACEOF
4166 #define PACKAGE "$PACKAGE"
4167 _ACEOF
4170 cat >>confdefs.h <<_ACEOF
4171 #define VERSION "$VERSION"
4172 _ACEOF
4174 # Some tools Automake needs.
4176 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4179 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4182 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4185 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4188 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4190 # For better backward compatibility. To be removed once Automake 1.9.x
4191 # dies out for good. For more background, see:
4192 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4193 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4194 mkdir_p='$(MKDIR_P)'
4196 # We need awk for the "check" target. The system "awk" is bad on
4197 # some platforms.
4198 # Always define AMTAR for backward compatibility. Yes, it's still used
4199 # in the wild :-( We should find a proper way to deprecate it ...
4200 AMTAR='$${TAR-tar}'
4203 # We'll loop over all known methods to create a tar archive until one works.
4204 _am_tools='gnutar pax cpio none'
4206 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4215 ac_config_headers="$ac_config_headers config-util.h"
4218 # Program name transformations
4220 grub_bios_setup=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4222 grub_editenv=`$as_echo grub-editenv | sed "$program_transform_name"`
4224 grub_install=`$as_echo grub-install | sed "$program_transform_name"`
4226 grub_mkconfig=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4228 grub_mkfont=`$as_echo grub-mkfont | sed "$program_transform_name"`
4230 grub_mkimage=`$as_echo grub-mkimage | sed "$program_transform_name"`
4232 grub_glue_efi=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4234 grub_mklayout=`$as_echo grub-mklayout | sed "$program_transform_name"`
4236 grub_mkpasswd_pbkdf2=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4238 grub_mkrelpath=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4240 grub_mkrescue=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4242 grub_probe=`$as_echo grub-probe | sed "$program_transform_name"`
4244 grub_reboot=`$as_echo grub-reboot | sed "$program_transform_name"`
4246 grub_script_check=`$as_echo grub-script-check | sed "$program_transform_name"`
4248 grub_set_default=`$as_echo grub-set-default | sed "$program_transform_name"`
4250 grub_sparc64_setup=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4252 grub_render_label=`$as_echo grub-render-label | sed "$program_transform_name"`
4254 grub_file=`$as_echo grub-file | sed "$program_transform_name"`
4257 # Optimization flag. Allow user to override.
4258 if test "x$TARGET_CFLAGS" = x; then
4259 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
4262 # Default HOST_CPPFLAGS
4263 HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
4264 HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
4265 HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4267 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
4268 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
4269 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
4271 case "$target_cpu" in
4272 i[3456]86) target_cpu=i386 ;;
4273 amd64) target_cpu=x86_64 ;;
4274 sparc) target_cpu=sparc64 ;;
4275 mipsel|mips64el)
4276 target_cpu=mipsel
4277 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1"
4279 mips|mips64)
4280 target_cpu=mips
4281 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1"
4283 arm*)
4284 target_cpu=arm
4286 aarch64*)
4287 target_cpu=arm64
4289 esac
4291 # Specify the platform (such as firmware).
4293 # Check whether --with-platform was given.
4294 if test "${with_platform+set}" = set; then :
4295 withval=$with_platform;
4299 # Guess the platform if not specified.
4300 if test "x$with_platform" = x; then
4301 case "$target_cpu"-"$target_vendor" in
4302 i386-apple) platform=efi ;;
4303 i386-*) platform=pc ;;
4304 x86_64-apple) platform=efi ;;
4305 x86_64-*) platform=pc ;;
4306 powerpc-*) platform=ieee1275 ;;
4307 powerpc64-*) platform=ieee1275 ;;
4308 sparc64-*) platform=ieee1275 ;;
4309 mipsel-*) platform=loongson ;;
4310 mips-*) platform=arc ;;
4311 ia64-*) platform=efi ;;
4312 arm-*) platform=uboot ;;
4313 arm64-*) platform=efi ;;
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&5
4316 $as_echo "$as_me: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&2;}
4317 platform=none
4319 esac
4320 else
4321 platform="$with_platform"
4324 case "$target_cpu"-"$platform" in
4325 x86_64-efi) ;;
4326 x86_64-emu) ;;
4327 x86_64-xen) ;;
4328 x86_64-none) ;;
4329 x86_64-*) target_cpu=i386 ;;
4330 powerpc64-ieee1275) target_cpu=powerpc ;;
4331 esac
4333 # Check if the platform is supported, make final adjustments.
4334 case "$target_cpu"-"$platform" in
4335 i386-efi) ;;
4336 x86_64-efi) ;;
4337 i386-xen) ;;
4338 x86_64-xen) ;;
4339 i386-pc) ;;
4340 i386-multiboot) ;;
4341 i386-coreboot) ;;
4342 i386-linuxbios) platform=coreboot ;;
4343 i386-ieee1275) ;;
4344 i386-qemu) ;;
4345 powerpc-ieee1275) ;;
4346 sparc64-ieee1275) ;;
4347 ia64-efi) ;;
4348 mips-qemu_mips) ;;
4349 mips-qemu-mips) platform=qemu_mips;;
4350 mips-arc) ;;
4351 mipsel-arc) ;;
4352 mipsel-qemu_mips) ;;
4353 mipsel-qemu-mips) platform=qemu_mips;;
4354 mipsel-yeeloong) platform=loongson ;;
4355 mipsel-fuloong) platform=loongson ;;
4356 mipsel-loongson) ;;
4357 arm-uboot) ;;
4358 arm-efi) ;;
4359 arm64-efi) ;;
4360 *-emu) ;;
4361 *-none) ;;
4362 *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
4363 esac
4365 if test x$platform != xemu ; then
4366 case "$target_cpu" in
4367 i386 | powerpc) target_m32=1 ;;
4368 x86_64 | sparc64) target_m64=1 ;;
4369 esac
4372 if test x"$target_cpu-$platform" = xsparc64-emu ; then
4373 target_m64=1
4376 case "$target_os" in
4377 windows* | mingw32*) target_os=cygwin ;;
4378 esac
4380 # This normalizes the names, and creates a new variable ("host_kernel")
4381 # while at it, since the mapping is not always 1:1 (e.g. different OSes
4382 # using the same kernel type).
4383 case "$host_os" in
4384 gnu*) host_kernel=hurd ;;
4385 linux*) host_kernel=linux ;;
4386 freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
4387 netbsd*) host_kernel=netbsd ;;
4388 solaris*) host_kernel=illumos ;;
4389 darwin*) host_kernel=xnu ;;
4390 cygwin | windows* | mingw32*) host_kernel=windows ;;
4391 esac
4393 case "$host_os" in
4394 cygwin | windows* | mingw32*) have_exec=n ;;
4395 aros*) have_exec=n ;;
4396 *) have_exec=y;;
4397 esac
4399 case "$platform" in
4400 coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4401 multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4402 efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
4403 xen) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
4404 ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
4405 uboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
4406 qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4407 pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4408 emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
4409 loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4410 qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
4411 arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
4412 esac
4413 if test x${target_cpu} = xmipsel ; then
4414 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4415 else
4416 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4419 case "${target_cpu}-$platform" in
4420 mips-arc)
4421 TARGET_LINK_ADDR=0x88200000
4422 TARGET_DECOMPRESSOR_LINK_ADDR=0x88100000
4424 mipsel-arc)
4425 TARGET_LINK_ADDR=0x80700000
4426 TARGET_DECOMPRESSOR_LINK_ADDR=0x80600000
4428 mips*-qemu_mips | mips*-loongson)
4429 TARGET_DECOMPRESSOR_LINK_ADDR=0x80100000
4431 esac
4436 TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4445 # Define default variables
4447 have_with_bootdir=n
4449 # Check whether --with-bootdir was given.
4450 if test "${with_bootdir+set}" = set; then :
4451 withval=$with_bootdir; have_with_bootdir=y
4452 else
4453 have_with_bootdir=n
4456 if test x$have_with_bootdir = xy; then
4457 bootdirname="$with_bootdir"
4458 else
4459 case "$host_os" in
4460 netbsd* | openbsd*)
4461 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4462 bootdirname='' ;;
4463 *) bootdirname='boot' ;;
4464 esac
4469 cat >>confdefs.h <<_ACEOF
4470 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4471 _ACEOF
4475 # Check whether --with-grubdir was given.
4476 if test "${with_grubdir+set}" = set; then :
4477 withval=$with_grubdir; grubdirname="$with_grubdir"
4478 else
4479 grubdirname="$PACKAGE"
4485 cat >>confdefs.h <<_ACEOF
4486 #define GRUB_DIR_NAME "$grubdirname"
4487 _ACEOF
4491 # Checks for build programs.
4494 # Although cmp is listed in the GNU Coding Standards as a command which
4495 # can used directly, OpenBSD lacks cmp in the default installation.
4496 for ac_prog in cmp
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_prog_CMP+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 if test -n "$CMP"; then
4506 ac_cv_prog_CMP="$CMP" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_CMP="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4519 done
4520 done
4521 IFS=$as_save_IFS
4525 CMP=$ac_cv_prog_CMP
4526 if test -n "$CMP"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4528 $as_echo "$CMP" >&6; }
4529 else
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$CMP" && break
4536 done
4538 if test "x$CMP" = x; then
4539 as_fn_error $? "cmp is not found" "$LINENO" 5
4542 for ac_prog in bison
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_YACC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$YACC"; then
4552 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_YACC="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 YACC=$ac_cv_prog_YACC
4572 if test -n "$YACC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4574 $as_echo "$YACC" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$YACC" && break
4582 done
4584 if test "x$YACC" = x; then
4585 as_fn_error $? "bison is not found" "$LINENO" 5
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_RANLIB+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$RANLIB"; then
4597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 RANLIB=$ac_cv_prog_RANLIB
4617 if test -n "$RANLIB"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4619 $as_echo "$RANLIB" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4627 if test -z "$ac_cv_prog_RANLIB"; then
4628 ac_ct_RANLIB=$RANLIB
4629 # Extract the first word of "ranlib", so it can be a program name with args.
4630 set dummy ranlib; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_RANLIB"; then
4637 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_ac_ct_RANLIB="ranlib"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4657 if test -n "$ac_ct_RANLIB"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4659 $as_echo "$ac_ct_RANLIB" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4665 if test "x$ac_ct_RANLIB" = x; then
4666 RANLIB=":"
4667 else
4668 case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674 RANLIB=$ac_ct_RANLIB
4676 else
4677 RANLIB="$ac_cv_prog_RANLIB"
4681 for ac_prog in gawk mawk nawk awk
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_AWK+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$AWK"; then
4691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_AWK="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 AWK=$ac_cv_prog_AWK
4711 if test -n "$AWK"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4713 $as_echo "$AWK" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$AWK" && break
4721 done
4723 DEPDIR="${am__leading_dot}deps"
4725 ac_config_commands="$ac_config_commands depfiles"
4728 am_make=${MAKE-make}
4729 cat > confinc << 'END'
4730 am__doit:
4731 @echo this is the am__doit target
4732 .PHONY: am__doit
4734 # If we don't find an include directive, just comment out the code.
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4737 am__include="#"
4738 am__quote=
4739 _am_result=none
4740 # First try GNU make style include.
4741 echo "include confinc" > confmf
4742 # Ignore all kinds of additional output from 'make'.
4743 case `$am_make -s -f confmf 2> /dev/null` in #(
4744 *the\ am__doit\ target*)
4745 am__include=include
4746 am__quote=
4747 _am_result=GNU
4749 esac
4750 # Now try BSD make style include.
4751 if test "$am__include" = "#"; then
4752 echo '.include "confinc"' > confmf
4753 case `$am_make -s -f confmf 2> /dev/null` in #(
4754 *the\ am__doit\ target*)
4755 am__include=.include
4756 am__quote="\""
4757 _am_result=BSD
4759 esac
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4764 $as_echo "$_am_result" >&6; }
4765 rm -f confinc confmf
4767 # Check whether --enable-dependency-tracking was given.
4768 if test "${enable_dependency_tracking+set}" = set; then :
4769 enableval=$enable_dependency_tracking;
4772 if test "x$enable_dependency_tracking" != xno; then
4773 am_depcomp="$ac_aux_dir/depcomp"
4774 AMDEPBACKSLASH='\'
4775 am__nodep='_no'
4777 if test "x$enable_dependency_tracking" != xno; then
4778 AMDEP_TRUE=
4779 AMDEP_FALSE='#'
4780 else
4781 AMDEP_TRUE='#'
4782 AMDEP_FALSE=
4786 ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CC+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 CC=$ac_cv_prog_CC
4820 if test -n "$CC"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4822 $as_echo "$CC" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4830 if test -z "$ac_cv_prog_CC"; then
4831 ac_ct_CC=$CC
4832 # Extract the first word of "gcc", so it can be a program name with args.
4833 set dummy gcc; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$ac_ct_CC"; then
4840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_CC="gcc"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4862 $as_echo "$ac_ct_CC" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_ct_CC" = x; then
4869 CC=""
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 CC=$ac_ct_CC
4879 else
4880 CC="$ac_cv_prog_CC"
4883 if test -z "$CC"; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}cc; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_CC+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$CC"; then
4893 ac_cv_prog_CC="$CC" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_CC="${ac_tool_prefix}cc"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4906 done
4907 done
4908 IFS=$as_save_IFS
4912 CC=$ac_cv_prog_CC
4913 if test -n "$CC"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 $as_echo "$CC" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4924 if test -z "$CC"; then
4925 # Extract the first word of "cc", so it can be a program name with args.
4926 set dummy cc; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_CC+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$CC"; then
4933 ac_cv_prog_CC="$CC" # Let the user override the test.
4934 else
4935 ac_prog_rejected=no
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4944 ac_prog_rejected=yes
4945 continue
4947 ac_cv_prog_CC="cc"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4955 if test $ac_prog_rejected = yes; then
4956 # We found a bogon in the path, so make sure we never use it.
4957 set dummy $ac_cv_prog_CC
4958 shift
4959 if test $# != 0; then
4960 # We chose a different compiler from the bogus one.
4961 # However, it has the same basename, so the bogon will be chosen
4962 # first if we set CC to just the basename; use the full file name.
4963 shift
4964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4969 CC=$ac_cv_prog_CC
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4980 if test -z "$CC"; then
4981 if test -n "$ac_tool_prefix"; then
4982 for ac_prog in cl.exe
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_CC+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC="$CC" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 CC=$ac_cv_prog_CC
5012 if test -n "$CC"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 $as_echo "$CC" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$CC" && break
5022 done
5024 if test -z "$CC"; then
5025 ac_ct_CC=$CC
5026 for ac_prog in cl.exe
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_CC="$ac_prog"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5051 IFS=$as_save_IFS
5055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5056 if test -n "$ac_ct_CC"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5058 $as_echo "$ac_ct_CC" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5065 test -n "$ac_ct_CC" && break
5066 done
5068 if test "x$ac_ct_CC" = x; then
5069 CC=""
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned=yes ;;
5076 esac
5077 CC=$ac_ct_CC
5084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error $? "no acceptable C compiler found in \$PATH
5087 See \`config.log' for more details" "$LINENO" 5; }
5089 # Provide some information about the compiler.
5090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5091 set X $ac_compile
5092 ac_compiler=$2
5093 for ac_option in --version -v -V -qversion; do
5094 { { ac_try="$ac_compiler $ac_option >&5"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5102 ac_status=$?
5103 if test -s conftest.err; then
5104 sed '10a\
5105 ... rest of stderr output deleted ...
5106 10q' conftest.err >conftest.er1
5107 cat conftest.er1 >&5
5109 rm -f conftest.er1 conftest.err
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 done
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5118 main (void)
5122 return 0;
5124 _ACEOF
5125 ac_clean_files_save=$ac_clean_files
5126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5127 # Try to create an executable without -o first, disregard a.out.
5128 # It will help us diagnose broken compilers, and finding out an intuition
5129 # of exeext.
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5131 $as_echo_n "checking whether the C compiler works... " >&6; }
5132 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5134 # The possible output files:
5135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5137 ac_rmfiles=
5138 for ac_file in $ac_files
5140 case $ac_file in
5141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5143 esac
5144 done
5145 rm -f $ac_rmfiles
5147 if { { ac_try="$ac_link_default"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_link_default") 2>&5
5155 ac_status=$?
5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then :
5158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5161 # so that the user can short-circuit this test for compilers unknown to
5162 # Autoconf.
5163 for ac_file in $ac_files ''
5165 test -f "$ac_file" || continue
5166 case $ac_file in
5167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5169 [ab].out )
5170 # We found the default executable, but exeext='' is most
5171 # certainly right.
5172 break;;
5173 *.* )
5174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5175 then :; else
5176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178 # We set ac_cv_exeext here because the later test for it is not
5179 # safe: cross compilers may not add the suffix if given an `-o'
5180 # argument, so we may need to know it at that point already.
5181 # Even if this section looks crufty: it has the advantage of
5182 # actually working.
5183 break;;
5185 break;;
5186 esac
5187 done
5188 test "$ac_cv_exeext" = no && ac_cv_exeext=
5190 else
5191 ac_file=''
5193 if test -z "$ac_file"; then :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201 as_fn_error 77 "C compiler cannot create executables
5202 See \`config.log' for more details" "$LINENO" 5; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5208 $as_echo_n "checking for C compiler default output file name... " >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5210 $as_echo "$ac_file" >&6; }
5211 ac_exeext=$ac_cv_exeext
5213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5214 ac_clean_files=$ac_clean_files_save
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5216 $as_echo_n "checking for suffix of executables... " >&6; }
5217 if { { ac_try="$ac_link"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_link") 2>&5
5225 ac_status=$?
5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227 test $ac_status = 0; }; then :
5228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5230 # work properly (i.e., refer to `conftest.exe'), while it won't with
5231 # `rm'.
5232 for ac_file in conftest.exe conftest conftest.*; do
5233 test -f "$ac_file" || continue
5234 case $ac_file in
5235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5237 break;;
5238 * ) break;;
5239 esac
5240 done
5241 else
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5245 See \`config.log' for more details" "$LINENO" 5; }
5247 rm -f conftest conftest$ac_cv_exeext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5249 $as_echo "$ac_cv_exeext" >&6; }
5251 rm -f conftest.$ac_ext
5252 EXEEXT=$ac_cv_exeext
5253 ac_exeext=$EXEEXT
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <stdio.h>
5258 main (void)
5260 FILE *f = fopen ("conftest.out", "w");
5261 return ferror (f) || fclose (f) != 0;
5264 return 0;
5266 _ACEOF
5267 ac_clean_files="$ac_clean_files conftest.out"
5268 # Check that the compiler produces executables we can run. If not, either
5269 # the compiler is broken, or we cross compile.
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5271 $as_echo_n "checking whether we are cross compiling... " >&6; }
5272 if test "$cross_compiling" != yes; then
5273 { { ac_try="$ac_link"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279 $as_echo "$ac_try_echo"; } >&5
5280 (eval "$ac_link") 2>&5
5281 ac_status=$?
5282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5283 test $ac_status = 0; }
5284 if { ac_try='./conftest$ac_cv_exeext'
5285 { { case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_try") 2>&5
5292 ac_status=$?
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }; }; then
5295 cross_compiling=no
5296 else
5297 if test "$cross_compiling" = maybe; then
5298 cross_compiling=yes
5299 else
5300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5302 as_fn_error $? "cannot run C compiled programs.
5303 If you meant to cross compile, use \`--host'.
5304 See \`config.log' for more details" "$LINENO" 5; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5309 $as_echo "$cross_compiling" >&6; }
5311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5312 ac_clean_files=$ac_clean_files_save
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5314 $as_echo_n "checking for suffix of object files... " >&6; }
5315 if ${ac_cv_objext+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5322 main (void)
5326 return 0;
5328 _ACEOF
5329 rm -f conftest.o conftest.obj
5330 if { { ac_try="$ac_compile"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5336 $as_echo "$ac_try_echo"; } >&5
5337 (eval "$ac_compile") 2>&5
5338 ac_status=$?
5339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340 test $ac_status = 0; }; then :
5341 for ac_file in conftest.o conftest.obj conftest.*; do
5342 test -f "$ac_file" || continue;
5343 case $ac_file in
5344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5346 break;;
5347 esac
5348 done
5349 else
5350 $as_echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5355 as_fn_error $? "cannot compute suffix of object files: cannot compile
5356 See \`config.log' for more details" "$LINENO" 5; }
5358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5361 $as_echo "$ac_cv_objext" >&6; }
5362 OBJEXT=$ac_cv_objext
5363 ac_objext=$OBJEXT
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5366 if ${ac_cv_c_compiler_gnu+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5373 main (void)
5375 #ifndef __GNUC__
5376 choke me
5377 #endif
5380 return 0;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_compiler_gnu=yes
5385 else
5386 ac_compiler_gnu=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5394 if test $ac_compiler_gnu = yes; then
5395 GCC=yes
5396 else
5397 GCC=
5399 ac_test_CFLAGS=${CFLAGS+set}
5400 ac_save_CFLAGS=$CFLAGS
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5403 if ${ac_cv_prog_cc_g+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 ac_save_c_werror_flag=$ac_c_werror_flag
5407 ac_c_werror_flag=yes
5408 ac_cv_prog_cc_g=no
5409 CFLAGS="-g"
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5414 main (void)
5418 return 0;
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_prog_cc_g=yes
5423 else
5424 CFLAGS=""
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5429 main (void)
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5438 else
5439 ac_c_werror_flag=$ac_save_c_werror_flag
5440 CFLAGS="-g"
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5445 main (void)
5449 return 0;
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_prog_cc_g=yes
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5463 $as_echo "$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5472 else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5481 if ${ac_cv_prog_cc_c89+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 ac_cv_prog_cc_c89=no
5485 ac_save_CC=$CC
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #include <stdarg.h>
5489 #include <stdio.h>
5490 struct stat;
5491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5492 struct buf { int x; };
5493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494 static char *e (p, i)
5495 char **p;
5496 int i;
5498 return p[i];
5500 static char *f (char * (*g) (char **, int), char **p, ...)
5502 char *s;
5503 va_list v;
5504 va_start (v,p);
5505 s = g (p, va_arg (v,int));
5506 va_end (v);
5507 return s;
5510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 as 'x'. The following induces an error, until -std is added to get
5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5515 array size at least. It's necessary to write '\x00'==0 to get something
5516 that's true only with -std. */
5517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520 inside strings and character constants. */
5521 #define FOO(x) 'x'
5522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5524 int test (int i, double x);
5525 struct s1 {int (*f) (int a);};
5526 struct s2 {int (*f) (double a);};
5527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5528 int argc;
5529 char **argv;
5531 main (void)
5533 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5535 return 0;
5537 _ACEOF
5538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5541 CC="$ac_save_CC $ac_arg"
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 ac_cv_prog_cc_c89=$ac_arg
5545 rm -f core conftest.err conftest.$ac_objext
5546 test "x$ac_cv_prog_cc_c89" != "xno" && break
5547 done
5548 rm -f conftest.$ac_ext
5549 CC=$ac_save_CC
5552 # AC_CACHE_VAL
5553 case "x$ac_cv_prog_cc_c89" in
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5556 $as_echo "none needed" >&6; } ;;
5557 xno)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5559 $as_echo "unsupported" >&6; } ;;
5561 CC="$CC $ac_cv_prog_cc_c89"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5564 esac
5565 if test "x$ac_cv_prog_cc_c89" != xno; then :
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 depcc="$CC" am_compiler_list=
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5578 $as_echo_n "checking dependency style of $depcc... " >&6; }
5579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5583 # We make a subdir and do the tests there. Otherwise we can end up
5584 # making bogus files that we don't know about and never remove. For
5585 # instance it was reported that on HP-UX the gcc test will end up
5586 # making a dummy file named 'D' -- because '-MD' means "put the output
5587 # in D".
5588 rm -rf conftest.dir
5589 mkdir conftest.dir
5590 # Copy depcomp to subdir because otherwise we won't find it if we're
5591 # using a relative directory.
5592 cp "$am_depcomp" conftest.dir
5593 cd conftest.dir
5594 # We will build objects and dependencies in a subdirectory because
5595 # it helps to detect inapplicable dependency modes. For instance
5596 # both Tru64's cc and ICC support -MD to output dependencies as a
5597 # side effect of compilation, but ICC will put the dependencies in
5598 # the current directory while Tru64 will put them in the object
5599 # directory.
5600 mkdir sub
5602 am_cv_CC_dependencies_compiler_type=none
5603 if test "$am_compiler_list" = ""; then
5604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5606 am__universal=false
5607 case " $depcc " in #(
5608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5609 esac
5611 for depmode in $am_compiler_list; do
5612 # Setup a source with many dependencies, because some compilers
5613 # like to wrap large dependency lists on column 80 (with \), and
5614 # we should not choose a depcomp mode which is confused by this.
5616 # We need to recreate these files for each test, as the compiler may
5617 # overwrite some of them when testing with obscure command lines.
5618 # This happens at least with the AIX C compiler.
5619 : > sub/conftest.c
5620 for i in 1 2 3 4 5 6; do
5621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5623 # Solaris 10 /bin/sh.
5624 echo '/* dummy */' > sub/conftst$i.h
5625 done
5626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5629 # mode. It turns out that the SunPro C++ compiler does not properly
5630 # handle '-M -o', and we need to detect this. Also, some Intel
5631 # versions had trouble with output in subdirs.
5632 am__obj=sub/conftest.${OBJEXT-o}
5633 am__minus_obj="-o $am__obj"
5634 case $depmode in
5635 gcc)
5636 # This depmode causes a compiler race in universal mode.
5637 test "$am__universal" = false || continue
5639 nosideeffect)
5640 # After this tag, mechanisms are not by side-effect, so they'll
5641 # only be used when explicitly requested.
5642 if test "x$enable_dependency_tracking" = xyes; then
5643 continue
5644 else
5645 break
5648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5649 # This compiler won't grok '-c -o', but also, the minuso test has
5650 # not run yet. These depmodes are late enough in the game, and
5651 # so weak that their functioning should not be impacted.
5652 am__obj=conftest.${OBJEXT-o}
5653 am__minus_obj=
5655 none) break ;;
5656 esac
5657 if depmode=$depmode \
5658 source=sub/conftest.c object=$am__obj \
5659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5661 >/dev/null 2>conftest.err &&
5662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5666 # icc doesn't choke on unknown options, it will just issue warnings
5667 # or remarks (even with -Werror). So we grep stderr for any message
5668 # that says an option was ignored or not supported.
5669 # When given -MP, icc 7.0 and 7.1 complain thusly:
5670 # icc: Command line warning: ignoring option '-M'; no argument required
5671 # The diagnosis changed in icc 8.0:
5672 # icc: Command line remark: option '-MP' not supported
5673 if (grep 'ignoring option' conftest.err ||
5674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5675 am_cv_CC_dependencies_compiler_type=$depmode
5676 break
5679 done
5681 cd ..
5682 rm -rf conftest.dir
5683 else
5684 am_cv_CC_dependencies_compiler_type=none
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5693 test "x$enable_dependency_tracking" != xno \
5694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5695 am__fastdepCC_TRUE=
5696 am__fastdepCC_FALSE='#'
5697 else
5698 am__fastdepCC_TRUE='#'
5699 am__fastdepCC_FALSE=
5704 for ac_prog in flex lex
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_LEX+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$LEX"; then
5714 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_LEX="$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5729 IFS=$as_save_IFS
5733 LEX=$ac_cv_prog_LEX
5734 if test -n "$LEX"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5736 $as_echo "$LEX" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5743 test -n "$LEX" && break
5744 done
5745 test -n "$LEX" || LEX=":"
5747 if test "x$LEX" != "x:"; then
5748 cat >conftest.l <<_ACEOF
5750 a { ECHO; }
5751 b { REJECT; }
5752 c { yymore (); }
5753 d { yyless (1); }
5754 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5755 yyless ((input () != 0)); }
5756 f { unput (yytext[0]); }
5757 . { BEGIN INITIAL; }
5759 #ifdef YYTEXT_POINTER
5760 extern char *yytext;
5761 #endif
5763 main (void)
5765 return ! yylex () + ! yywrap ();
5767 _ACEOF
5768 { { ac_try="$LEX conftest.l"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5774 $as_echo "$ac_try_echo"; } >&5
5775 (eval "$LEX conftest.l") 2>&5
5776 ac_status=$?
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5780 $as_echo_n "checking lex output file root... " >&6; }
5781 if ${ac_cv_prog_lex_root+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5785 if test -f lex.yy.c; then
5786 ac_cv_prog_lex_root=lex.yy
5787 elif test -f lexyy.c; then
5788 ac_cv_prog_lex_root=lexyy
5789 else
5790 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5794 $as_echo "$ac_cv_prog_lex_root" >&6; }
5795 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5797 if test -z "${LEXLIB+set}"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5799 $as_echo_n "checking lex library... " >&6; }
5800 if ${ac_cv_lib_lex+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5804 ac_save_LIBS=$LIBS
5805 ac_cv_lib_lex='none needed'
5806 for ac_lib in '' -lfl -ll; do
5807 LIBS="$ac_lib $ac_save_LIBS"
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 `cat $LEX_OUTPUT_ROOT.c`
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 ac_cv_lib_lex=$ac_lib
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 test "$ac_cv_lib_lex" != 'none needed' && break
5818 done
5819 LIBS=$ac_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5823 $as_echo "$ac_cv_lib_lex" >&6; }
5824 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5829 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5830 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 # POSIX says lex can declare yytext either as a pointer or an array; the
5834 # default is implementation-dependent. Figure out which it is, since
5835 # not all implementations provide the %pointer and %array declarations.
5836 ac_cv_prog_lex_yytext_pointer=no
5837 ac_save_LIBS=$LIBS
5838 LIBS="$LEXLIB $ac_save_LIBS"
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 #define YYTEXT_POINTER 1
5843 `cat $LEX_OUTPUT_ROOT.c`
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 ac_cv_prog_lex_yytext_pointer=yes
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5850 LIBS=$ac_save_LIBS
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5854 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5855 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5857 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5860 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5863 for ac_prog in 'bison -y' byacc
5865 # Extract the first word of "$ac_prog", so it can be a program name with args.
5866 set dummy $ac_prog; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_YACC+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -n "$YACC"; then
5873 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_YACC="$ac_prog"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5886 done
5887 done
5888 IFS=$as_save_IFS
5892 YACC=$ac_cv_prog_YACC
5893 if test -n "$YACC"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5895 $as_echo "$YACC" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5902 test -n "$YACC" && break
5903 done
5904 test -n "$YACC" || YACC="yacc"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5908 set x ${MAKE-make}
5909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5910 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 cat >conftest.make <<\_ACEOF
5914 SHELL = /bin/sh
5915 all:
5916 @echo '@@@%%%=$(MAKE)=@@@%%%'
5917 _ACEOF
5918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5920 *@@@%%%=?*=@@@%%%*)
5921 eval ac_cv_prog_make_${ac_make}_set=yes;;
5923 eval ac_cv_prog_make_${ac_make}_set=no;;
5924 esac
5925 rm -f conftest.make
5927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5929 $as_echo "yes" >&6; }
5930 SET_MAKE=
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 SET_MAKE="MAKE=${MAKE-make}"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5939 $as_echo_n "checking whether ln -s works... " >&6; }
5940 LN_S=$as_ln_s
5941 if test "$LN_S" = "ln -s"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 $as_echo "yes" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5946 $as_echo "no, using $LN_S" >&6; }
5950 if test "x$LEX" = "x:"; then
5951 as_fn_error $? "flex is not found" "$LINENO" 5
5952 else
5953 version=`$LEX --version | $AWK '{ split($0,tmp," "); split(tmp[2],x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5954 if test -n "$version" -a "$version" -ge 20535; then
5956 else
5957 as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5961 # These are not a "must".
5962 for ac_prog in makeinfo true
5964 # Extract the first word of "$ac_prog", so it can be a program name with args.
5965 set dummy $ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_path_MAKEINFO+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 case $MAKEINFO in
5972 [\\/]* | ?:[\\/]*)
5973 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5987 done
5988 done
5989 IFS=$as_save_IFS
5992 esac
5994 MAKEINFO=$ac_cv_path_MAKEINFO
5995 if test -n "$MAKEINFO"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5997 $as_echo "$MAKEINFO" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6004 test -n "$MAKEINFO" && break
6005 done
6009 # Checks for host programs.
6012 ac_ext=c
6013 ac_cpp='$CPP $CPPFLAGS'
6014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_CC+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$CC"; then
6026 ac_cv_prog_CC="$CC" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6039 done
6040 done
6041 IFS=$as_save_IFS
6045 CC=$ac_cv_prog_CC
6046 if test -n "$CC"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6048 $as_echo "$CC" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6056 if test -z "$ac_cv_prog_CC"; then
6057 ac_ct_CC=$CC
6058 # Extract the first word of "gcc", so it can be a program name with args.
6059 set dummy gcc; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$ac_ct_CC"; then
6066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_CC="gcc"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6079 done
6080 done
6081 IFS=$as_save_IFS
6085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6086 if test -n "$ac_ct_CC"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6088 $as_echo "$ac_ct_CC" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6094 if test "x$ac_ct_CC" = x; then
6095 CC=""
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 CC=$ac_ct_CC
6105 else
6106 CC="$ac_cv_prog_CC"
6109 if test -z "$CC"; then
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}cc; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_CC+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$CC"; then
6119 ac_cv_prog_CC="$CC" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_CC="${ac_tool_prefix}cc"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6132 done
6133 done
6134 IFS=$as_save_IFS
6138 CC=$ac_cv_prog_CC
6139 if test -n "$CC"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6141 $as_echo "$CC" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6150 if test -z "$CC"; then
6151 # Extract the first word of "cc", so it can be a program name with args.
6152 set dummy cc; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_CC+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$CC"; then
6159 ac_cv_prog_CC="$CC" # Let the user override the test.
6160 else
6161 ac_prog_rejected=no
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6170 ac_prog_rejected=yes
6171 continue
6173 ac_cv_prog_CC="cc"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6181 if test $ac_prog_rejected = yes; then
6182 # We found a bogon in the path, so make sure we never use it.
6183 set dummy $ac_cv_prog_CC
6184 shift
6185 if test $# != 0; then
6186 # We chose a different compiler from the bogus one.
6187 # However, it has the same basename, so the bogon will be chosen
6188 # first if we set CC to just the basename; use the full file name.
6189 shift
6190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6195 CC=$ac_cv_prog_CC
6196 if test -n "$CC"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6198 $as_echo "$CC" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 if test -z "$CC"; then
6207 if test -n "$ac_tool_prefix"; then
6208 for ac_prog in cl.exe
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_CC+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$CC"; then
6218 ac_cv_prog_CC="$CC" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6237 CC=$ac_cv_prog_CC
6238 if test -n "$CC"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6240 $as_echo "$CC" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 test -n "$CC" && break
6248 done
6250 if test -z "$CC"; then
6251 ac_ct_CC=$CC
6252 for ac_prog in cl.exe
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$ac_ct_CC"; then
6262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_CC="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6282 if test -n "$ac_ct_CC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6284 $as_echo "$ac_ct_CC" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$ac_ct_CC" && break
6292 done
6294 if test "x$ac_ct_CC" = x; then
6295 CC=""
6296 else
6297 case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303 CC=$ac_ct_CC
6310 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6312 as_fn_error $? "no acceptable C compiler found in \$PATH
6313 See \`config.log' for more details" "$LINENO" 5; }
6315 # Provide some information about the compiler.
6316 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6317 set X $ac_compile
6318 ac_compiler=$2
6319 for ac_option in --version -v -V -qversion; do
6320 { { ac_try="$ac_compiler $ac_option >&5"
6321 case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324 esac
6325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6326 $as_echo "$ac_try_echo"; } >&5
6327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6328 ac_status=$?
6329 if test -s conftest.err; then
6330 sed '10a\
6331 ... rest of stderr output deleted ...
6332 10q' conftest.err >conftest.er1
6333 cat conftest.er1 >&5
6335 rm -f conftest.er1 conftest.err
6336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337 test $ac_status = 0; }
6338 done
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6341 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6342 if ${ac_cv_c_compiler_gnu+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6349 main (void)
6351 #ifndef __GNUC__
6352 choke me
6353 #endif
6356 return 0;
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360 ac_compiler_gnu=yes
6361 else
6362 ac_compiler_gnu=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6369 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6370 if test $ac_compiler_gnu = yes; then
6371 GCC=yes
6372 else
6373 GCC=
6375 ac_test_CFLAGS=${CFLAGS+set}
6376 ac_save_CFLAGS=$CFLAGS
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6378 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6379 if ${ac_cv_prog_cc_g+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 ac_save_c_werror_flag=$ac_c_werror_flag
6383 ac_c_werror_flag=yes
6384 ac_cv_prog_cc_g=no
6385 CFLAGS="-g"
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6390 main (void)
6394 return 0;
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 ac_cv_prog_cc_g=yes
6399 else
6400 CFLAGS=""
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6405 main (void)
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6414 else
6415 ac_c_werror_flag=$ac_save_c_werror_flag
6416 CFLAGS="-g"
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6421 main (void)
6425 return 0;
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429 ac_cv_prog_cc_g=yes
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 ac_c_werror_flag=$ac_save_c_werror_flag
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6439 $as_echo "$ac_cv_prog_cc_g" >&6; }
6440 if test "$ac_test_CFLAGS" = set; then
6441 CFLAGS=$ac_save_CFLAGS
6442 elif test $ac_cv_prog_cc_g = yes; then
6443 if test "$GCC" = yes; then
6444 CFLAGS="-g -O2"
6445 else
6446 CFLAGS="-g"
6448 else
6449 if test "$GCC" = yes; then
6450 CFLAGS="-O2"
6451 else
6452 CFLAGS=
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6457 if ${ac_cv_prog_cc_c89+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 ac_cv_prog_cc_c89=no
6461 ac_save_CC=$CC
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <stdarg.h>
6465 #include <stdio.h>
6466 struct stat;
6467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6468 struct buf { int x; };
6469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6470 static char *e (p, i)
6471 char **p;
6472 int i;
6474 return p[i];
6476 static char *f (char * (*g) (char **, int), char **p, ...)
6478 char *s;
6479 va_list v;
6480 va_start (v,p);
6481 s = g (p, va_arg (v,int));
6482 va_end (v);
6483 return s;
6486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6487 function prototypes and stuff, but not '\xHH' hex character constants.
6488 These don't provoke an error unfortunately, instead are silently treated
6489 as 'x'. The following induces an error, until -std is added to get
6490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6491 array size at least. It's necessary to write '\x00'==0 to get something
6492 that's true only with -std. */
6493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6496 inside strings and character constants. */
6497 #define FOO(x) 'x'
6498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6500 int test (int i, double x);
6501 struct s1 {int (*f) (int a);};
6502 struct s2 {int (*f) (double a);};
6503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6504 int argc;
6505 char **argv;
6507 main (void)
6509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6511 return 0;
6513 _ACEOF
6514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6517 CC="$ac_save_CC $ac_arg"
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_prog_cc_c89=$ac_arg
6521 rm -f core conftest.err conftest.$ac_objext
6522 test "x$ac_cv_prog_cc_c89" != "xno" && break
6523 done
6524 rm -f conftest.$ac_ext
6525 CC=$ac_save_CC
6528 # AC_CACHE_VAL
6529 case "x$ac_cv_prog_cc_c89" in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6532 $as_echo "none needed" >&6; } ;;
6533 xno)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6535 $as_echo "unsupported" >&6; } ;;
6537 CC="$CC $ac_cv_prog_cc_c89"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6539 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6540 esac
6541 if test "x$ac_cv_prog_cc_c89" != xno; then :
6545 ac_ext=c
6546 ac_cpp='$CPP $CPPFLAGS'
6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551 depcc="$CC" am_compiler_list=
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6554 $as_echo_n "checking dependency style of $depcc... " >&6; }
6555 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6559 # We make a subdir and do the tests there. Otherwise we can end up
6560 # making bogus files that we don't know about and never remove. For
6561 # instance it was reported that on HP-UX the gcc test will end up
6562 # making a dummy file named 'D' -- because '-MD' means "put the output
6563 # in D".
6564 rm -rf conftest.dir
6565 mkdir conftest.dir
6566 # Copy depcomp to subdir because otherwise we won't find it if we're
6567 # using a relative directory.
6568 cp "$am_depcomp" conftest.dir
6569 cd conftest.dir
6570 # We will build objects and dependencies in a subdirectory because
6571 # it helps to detect inapplicable dependency modes. For instance
6572 # both Tru64's cc and ICC support -MD to output dependencies as a
6573 # side effect of compilation, but ICC will put the dependencies in
6574 # the current directory while Tru64 will put them in the object
6575 # directory.
6576 mkdir sub
6578 am_cv_CC_dependencies_compiler_type=none
6579 if test "$am_compiler_list" = ""; then
6580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6582 am__universal=false
6583 case " $depcc " in #(
6584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6585 esac
6587 for depmode in $am_compiler_list; do
6588 # Setup a source with many dependencies, because some compilers
6589 # like to wrap large dependency lists on column 80 (with \), and
6590 # we should not choose a depcomp mode which is confused by this.
6592 # We need to recreate these files for each test, as the compiler may
6593 # overwrite some of them when testing with obscure command lines.
6594 # This happens at least with the AIX C compiler.
6595 : > sub/conftest.c
6596 for i in 1 2 3 4 5 6; do
6597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6598 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6599 # Solaris 10 /bin/sh.
6600 echo '/* dummy */' > sub/conftst$i.h
6601 done
6602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6604 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6605 # mode. It turns out that the SunPro C++ compiler does not properly
6606 # handle '-M -o', and we need to detect this. Also, some Intel
6607 # versions had trouble with output in subdirs.
6608 am__obj=sub/conftest.${OBJEXT-o}
6609 am__minus_obj="-o $am__obj"
6610 case $depmode in
6611 gcc)
6612 # This depmode causes a compiler race in universal mode.
6613 test "$am__universal" = false || continue
6615 nosideeffect)
6616 # After this tag, mechanisms are not by side-effect, so they'll
6617 # only be used when explicitly requested.
6618 if test "x$enable_dependency_tracking" = xyes; then
6619 continue
6620 else
6621 break
6624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6625 # This compiler won't grok '-c -o', but also, the minuso test has
6626 # not run yet. These depmodes are late enough in the game, and
6627 # so weak that their functioning should not be impacted.
6628 am__obj=conftest.${OBJEXT-o}
6629 am__minus_obj=
6631 none) break ;;
6632 esac
6633 if depmode=$depmode \
6634 source=sub/conftest.c object=$am__obj \
6635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6637 >/dev/null 2>conftest.err &&
6638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6642 # icc doesn't choke on unknown options, it will just issue warnings
6643 # or remarks (even with -Werror). So we grep stderr for any message
6644 # that says an option was ignored or not supported.
6645 # When given -MP, icc 7.0 and 7.1 complain thusly:
6646 # icc: Command line warning: ignoring option '-M'; no argument required
6647 # The diagnosis changed in icc 8.0:
6648 # icc: Command line remark: option '-MP' not supported
6649 if (grep 'ignoring option' conftest.err ||
6650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6651 am_cv_CC_dependencies_compiler_type=$depmode
6652 break
6655 done
6657 cd ..
6658 rm -rf conftest.dir
6659 else
6660 am_cv_CC_dependencies_compiler_type=none
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6665 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6666 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6669 test "x$enable_dependency_tracking" != xno \
6670 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6671 am__fastdepCC_TRUE=
6672 am__fastdepCC_FALSE='#'
6673 else
6674 am__fastdepCC_TRUE='#'
6675 am__fastdepCC_FALSE=
6679 ac_ext=c
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6685 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6686 # On Suns, sometimes $CPP names a directory.
6687 if test -n "$CPP" && test -d "$CPP"; then
6688 CPP=
6690 if test -z "$CPP"; then
6691 if ${ac_cv_prog_CPP+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 # Double quotes because CPP needs to be expanded
6695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6697 ac_preproc_ok=false
6698 for ac_c_preproc_warn_flag in '' yes
6700 # Use a header file that comes with gcc, so configuring glibc
6701 # with a fresh cross-compiler works.
6702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703 # <limits.h> exists even on freestanding compilers.
6704 # On the NeXT, cc -E runs the code through the compiler's parser,
6705 # not just through cpp. "Syntax error" is here to catch this case.
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #ifdef __STDC__
6709 # include <limits.h>
6710 #else
6711 # include <assert.h>
6712 #endif
6713 Syntax error
6714 _ACEOF
6715 if ac_fn_c_try_cpp "$LINENO"; then :
6717 else
6718 # Broken: fails on valid input.
6719 continue
6721 rm -f conftest.err conftest.i conftest.$ac_ext
6723 # OK, works on sane cases. Now check whether nonexistent headers
6724 # can be detected and how.
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <ac_nonexistent.h>
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730 # Broken: success on invalid input.
6731 continue
6732 else
6733 # Passes both tests.
6734 ac_preproc_ok=:
6735 break
6737 rm -f conftest.err conftest.i conftest.$ac_ext
6739 done
6740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741 rm -f conftest.i conftest.err conftest.$ac_ext
6742 if $ac_preproc_ok; then :
6743 break
6746 done
6747 ac_cv_prog_CPP=$CPP
6750 CPP=$ac_cv_prog_CPP
6751 else
6752 ac_cv_prog_CPP=$CPP
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6755 $as_echo "$CPP" >&6; }
6756 ac_preproc_ok=false
6757 for ac_c_preproc_warn_flag in '' yes
6759 # Use a header file that comes with gcc, so configuring glibc
6760 # with a fresh cross-compiler works.
6761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 # <limits.h> exists even on freestanding compilers.
6763 # On the NeXT, cc -E runs the code through the compiler's parser,
6764 # not just through cpp. "Syntax error" is here to catch this case.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #ifdef __STDC__
6768 # include <limits.h>
6769 #else
6770 # include <assert.h>
6771 #endif
6772 Syntax error
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6776 else
6777 # Broken: fails on valid input.
6778 continue
6780 rm -f conftest.err conftest.i conftest.$ac_ext
6782 # OK, works on sane cases. Now check whether nonexistent headers
6783 # can be detected and how.
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <ac_nonexistent.h>
6787 _ACEOF
6788 if ac_fn_c_try_cpp "$LINENO"; then :
6789 # Broken: success on invalid input.
6790 continue
6791 else
6792 # Passes both tests.
6793 ac_preproc_ok=:
6794 break
6796 rm -f conftest.err conftest.i conftest.$ac_ext
6798 done
6799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6800 rm -f conftest.i conftest.err conftest.$ac_ext
6801 if $ac_preproc_ok; then :
6803 else
6804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6806 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6807 See \`config.log' for more details" "$LINENO" 5; }
6810 ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6819 if ${ac_cv_path_GREP+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -z "$GREP"; then
6823 ac_path_GREP_found=false
6824 # Loop through the user's path and test for each of PROGNAME-LIST
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_prog in grep ggrep; do
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6833 as_fn_executable_p "$ac_path_GREP" || continue
6834 # Check for GNU ac_path_GREP and select it if it is found.
6835 # Check for GNU $ac_path_GREP
6836 case `"$ac_path_GREP" --version 2>&1` in
6837 *GNU*)
6838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6840 ac_count=0
6841 $as_echo_n 0123456789 >"conftest.in"
6842 while :
6844 cat "conftest.in" "conftest.in" >"conftest.tmp"
6845 mv "conftest.tmp" "conftest.in"
6846 cp "conftest.in" "conftest.nl"
6847 $as_echo 'GREP' >> "conftest.nl"
6848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6850 as_fn_arith $ac_count + 1 && ac_count=$as_val
6851 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6852 # Best one so far, save it but keep looking for a better one
6853 ac_cv_path_GREP="$ac_path_GREP"
6854 ac_path_GREP_max=$ac_count
6856 # 10*(2^10) chars as input seems more than enough
6857 test $ac_count -gt 10 && break
6858 done
6859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6860 esac
6862 $ac_path_GREP_found && break 3
6863 done
6864 done
6865 done
6866 IFS=$as_save_IFS
6867 if test -z "$ac_cv_path_GREP"; then
6868 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6870 else
6871 ac_cv_path_GREP=$GREP
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6876 $as_echo "$ac_cv_path_GREP" >&6; }
6877 GREP="$ac_cv_path_GREP"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6881 $as_echo_n "checking for egrep... " >&6; }
6882 if ${ac_cv_path_EGREP+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6886 then ac_cv_path_EGREP="$GREP -E"
6887 else
6888 if test -z "$EGREP"; then
6889 ac_path_EGREP_found=false
6890 # Loop through the user's path and test for each of PROGNAME-LIST
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_prog in egrep; do
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6899 as_fn_executable_p "$ac_path_EGREP" || continue
6900 # Check for GNU ac_path_EGREP and select it if it is found.
6901 # Check for GNU $ac_path_EGREP
6902 case `"$ac_path_EGREP" --version 2>&1` in
6903 *GNU*)
6904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6906 ac_count=0
6907 $as_echo_n 0123456789 >"conftest.in"
6908 while :
6910 cat "conftest.in" "conftest.in" >"conftest.tmp"
6911 mv "conftest.tmp" "conftest.in"
6912 cp "conftest.in" "conftest.nl"
6913 $as_echo 'EGREP' >> "conftest.nl"
6914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6916 as_fn_arith $ac_count + 1 && ac_count=$as_val
6917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6918 # Best one so far, save it but keep looking for a better one
6919 ac_cv_path_EGREP="$ac_path_EGREP"
6920 ac_path_EGREP_max=$ac_count
6922 # 10*(2^10) chars as input seems more than enough
6923 test $ac_count -gt 10 && break
6924 done
6925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6926 esac
6928 $ac_path_EGREP_found && break 3
6929 done
6930 done
6931 done
6932 IFS=$as_save_IFS
6933 if test -z "$ac_cv_path_EGREP"; then
6934 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6936 else
6937 ac_cv_path_EGREP=$EGREP
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6943 $as_echo "$ac_cv_path_EGREP" >&6; }
6944 EGREP="$ac_cv_path_EGREP"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6950 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6951 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6958 #ifdef __ACK__
6959 Amsterdam
6960 #endif
6962 _ACEOF
6963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6965 gl_cv_c_amsterdam_compiler=yes
6966 else
6967 gl_cv_c_amsterdam_compiler=no
6969 rm -f conftest*
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6974 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6975 if test -z "$AR"; then
6976 if test $gl_cv_c_amsterdam_compiler = yes; then
6977 AR='cc -c.a'
6978 if test -z "$ARFLAGS"; then
6979 ARFLAGS='-o'
6981 else
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}ar; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_AR+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$AR"; then
6991 ac_cv_prog_AR="$AR" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_AR="${ac_tool_prefix}ar"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7004 done
7005 done
7006 IFS=$as_save_IFS
7010 AR=$ac_cv_prog_AR
7011 if test -n "$AR"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7013 $as_echo "$AR" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7021 if test -z "$ac_cv_prog_AR"; then
7022 ac_ct_AR=$AR
7023 # Extract the first word of "ar", so it can be a program name with args.
7024 set dummy ar; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$ac_ct_AR"; then
7031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_AR="ar"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7044 done
7045 done
7046 IFS=$as_save_IFS
7050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7051 if test -n "$ac_ct_AR"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7053 $as_echo "$ac_ct_AR" >&6; }
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7059 if test "x$ac_ct_AR" = x; then
7060 AR="ar"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 AR=$ac_ct_AR
7070 else
7071 AR="$ac_cv_prog_AR"
7074 if test -z "$ARFLAGS"; then
7075 ARFLAGS='cru'
7078 else
7079 if test -z "$ARFLAGS"; then
7080 ARFLAGS='cru'
7085 if test -z "$RANLIB"; then
7086 if test $gl_cv_c_amsterdam_compiler = yes; then
7087 RANLIB=':'
7088 else
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_RANLIB+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$RANLIB"; then
7098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7111 done
7112 done
7113 IFS=$as_save_IFS
7117 RANLIB=$ac_cv_prog_RANLIB
7118 if test -n "$RANLIB"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7120 $as_echo "$RANLIB" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7128 if test -z "$ac_cv_prog_RANLIB"; then
7129 ac_ct_RANLIB=$RANLIB
7130 # Extract the first word of "ranlib", so it can be a program name with args.
7131 set dummy ranlib; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$ac_ct_RANLIB"; then
7138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_RANLIB="ranlib"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7151 done
7152 done
7153 IFS=$as_save_IFS
7157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7158 if test -n "$ac_ct_RANLIB"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7160 $as_echo "$ac_ct_RANLIB" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7166 if test "x$ac_ct_RANLIB" = x; then
7167 RANLIB=":"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 RANLIB=$ac_ct_RANLIB
7177 else
7178 RANLIB="$ac_cv_prog_RANLIB"
7185 if test "x$CC" != xcc; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7187 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7190 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7192 set dummy $CC; ac_cc=`$as_echo "$2" |
7193 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7194 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7201 main (void)
7205 return 0;
7207 _ACEOF
7208 # Make sure it works both with $CC and with simple cc.
7209 # We do the test twice because some compilers refuse to overwrite an
7210 # existing .o file with -o, though they will create one.
7211 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7212 rm -f conftest2.*
7213 if { { case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7218 $as_echo "$ac_try_echo"; } >&5
7219 (eval "$ac_try") 2>&5
7220 ac_status=$?
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } &&
7223 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226 esac
7227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7228 $as_echo "$ac_try_echo"; } >&5
7229 (eval "$ac_try") 2>&5
7230 ac_status=$?
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; };
7233 then
7234 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7235 if test "x$CC" != xcc; then
7236 # Test first that cc exists at all.
7237 if { ac_try='cc -c conftest.$ac_ext >&5'
7238 { { case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7243 $as_echo "$ac_try_echo"; } >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; }; }; then
7248 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7249 rm -f conftest2.*
7250 if { { case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7255 $as_echo "$ac_try_echo"; } >&5
7256 (eval "$ac_try") 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; } &&
7260 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7265 $as_echo "$ac_try_echo"; } >&5
7266 (eval "$ac_try") 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; };
7270 then
7271 # cc works too.
7273 else
7274 # cc exists but doesn't like -o.
7275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7279 else
7280 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7282 rm -f core conftest*
7285 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7292 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7296 # FIXME: we rely on the cache variable name because
7297 # there is no other way.
7298 set dummy $CC
7299 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7300 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7301 if test "$am_t" != yes; then
7302 # Losing compiler, so override with the script.
7303 # FIXME: It is wrong to rewrite CC.
7304 # But if we don't then we get into trouble of one sort or another.
7305 # A longer-term fix would be to have automake use am__CC in this case,
7306 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7307 CC="$am_aux_dir/compile $CC"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7312 $as_echo_n "checking for ANSI C header files... " >&6; }
7313 if ${ac_cv_header_stdc+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <stdlib.h>
7319 #include <stdarg.h>
7320 #include <string.h>
7321 #include <float.h>
7324 main (void)
7328 return 0;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 ac_cv_header_stdc=yes
7333 else
7334 ac_cv_header_stdc=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 if test $ac_cv_header_stdc = yes; then
7339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 #include <string.h>
7344 _ACEOF
7345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346 $EGREP "memchr" >/dev/null 2>&1; then :
7348 else
7349 ac_cv_header_stdc=no
7351 rm -f conftest*
7355 if test $ac_cv_header_stdc = yes; then
7356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 #include <stdlib.h>
7361 _ACEOF
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363 $EGREP "free" >/dev/null 2>&1; then :
7365 else
7366 ac_cv_header_stdc=no
7368 rm -f conftest*
7372 if test $ac_cv_header_stdc = yes; then
7373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7374 if test "$cross_compiling" = yes; then :
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <ctype.h>
7380 #include <stdlib.h>
7381 #if ((' ' & 0x0FF) == 0x020)
7382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7384 #else
7385 # define ISLOWER(c) \
7386 (('a' <= (c) && (c) <= 'i') \
7387 || ('j' <= (c) && (c) <= 'r') \
7388 || ('s' <= (c) && (c) <= 'z'))
7389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7390 #endif
7392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7394 main ()
7396 int i;
7397 for (i = 0; i < 256; i++)
7398 if (XOR (islower (i), ISLOWER (i))
7399 || toupper (i) != TOUPPER (i))
7400 return 2;
7401 return 0;
7403 _ACEOF
7404 if ac_fn_c_try_run "$LINENO"; then :
7406 else
7407 ac_cv_header_stdc=no
7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7410 conftest.$ac_objext conftest.beam conftest.$ac_ext
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7416 $as_echo "$ac_cv_header_stdc" >&6; }
7417 if test $ac_cv_header_stdc = yes; then
7419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7425 inttypes.h stdint.h unistd.h
7426 do :
7427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7431 cat >>confdefs.h <<_ACEOF
7432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7433 _ACEOF
7437 done
7441 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7442 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7443 MINIX=yes
7444 else
7445 MINIX=
7449 if test "$MINIX" = yes; then
7451 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7454 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7457 $as_echo "#define _MINIX 1" >>confdefs.h
7460 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7466 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7467 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7473 # define __EXTENSIONS__ 1
7474 $ac_includes_default
7476 main (void)
7480 return 0;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 ac_cv_safe_to_define___extensions__=yes
7485 else
7486 ac_cv_safe_to_define___extensions__=no
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7491 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7492 test $ac_cv_safe_to_define___extensions__ = yes &&
7493 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7495 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7497 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7499 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7501 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7503 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7506 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7507 if ${ac_cv_should_define__xopen_source+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 ac_cv_should_define__xopen_source=no
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7514 #include <wchar.h>
7515 mbstate_t x;
7517 main (void)
7521 return 0;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7526 else
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7530 #define _XOPEN_SOURCE 500
7531 #include <wchar.h>
7532 mbstate_t x;
7534 main (void)
7538 return 0;
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 ac_cv_should_define__xopen_source=yes
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7549 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7550 test $ac_cv_should_define__xopen_source = yes &&
7551 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7563 # Code from module alloca:
7564 # Code from module alloca-opt:
7565 # Code from module argp:
7566 # Code from module btowc:
7567 # Code from module configmake:
7568 # Code from module dirname-lgpl:
7569 # Code from module dosname:
7570 # Code from module double-slash-root:
7571 # Code from module errno:
7572 # Code from module error:
7573 # Code from module extensions:
7575 # Code from module extern-inline:
7576 # Code from module float:
7577 # Code from module fnmatch:
7578 # Code from module getdelim:
7579 # Code from module getline:
7580 # Code from module getopt-gnu:
7581 # Code from module getopt-posix:
7582 # Code from module gettext:
7583 # Code from module gettext-h:
7584 # Code from module havelib:
7585 # Code from module include_next:
7586 # Code from module intprops:
7587 # Code from module langinfo:
7588 # Code from module localcharset:
7589 # Code from module locale:
7590 # Code from module localeconv:
7591 # Code from module malloc-gnu:
7592 # Code from module malloc-posix:
7593 # Code from module mbrtowc:
7594 # Code from module mbsinit:
7595 # Code from module mbsrtowcs:
7596 # Code from module mbswidth:
7597 # Code from module mbtowc:
7598 # Code from module memchr:
7599 # Code from module mempcpy:
7600 # Code from module msvc-inval:
7601 # Code from module msvc-nothrow:
7602 # Code from module multiarch:
7603 # Code from module nl_langinfo:
7604 # Code from module nocrash:
7605 # Code from module progname:
7606 # Code from module rawmemchr:
7607 # Code from module realloc-posix:
7608 # Code from module regex:
7609 # Code from module size_max:
7610 # Code from module sleep:
7611 # Code from module snippet/_Noreturn:
7612 # Code from module snippet/arg-nonnull:
7613 # Code from module snippet/c++defs:
7614 # Code from module snippet/warn-on-use:
7615 # Code from module ssize_t:
7616 # Code from module stdalign:
7617 # Code from module stdbool:
7618 # Code from module stddef:
7619 # Code from module stdint:
7620 # Code from module stdio:
7621 # Code from module stdlib:
7622 # Code from module strcase:
7623 # Code from module strchrnul:
7624 # Code from module streq:
7625 # Code from module strerror:
7626 # Code from module strerror-override:
7627 # Code from module string:
7628 # Code from module strings:
7629 # Code from module strndup:
7630 # Code from module strnlen:
7631 # Code from module strnlen1:
7632 # Code from module sys_types:
7633 # Code from module sysexits:
7634 # Code from module unistd:
7635 # Code from module unitypes:
7636 # Code from module uniwidth/base:
7637 # Code from module uniwidth/width:
7638 # Code from module vasnprintf:
7639 # Code from module verify:
7640 # Code from module vsnprintf:
7641 # Code from module wchar:
7642 # Code from module wcrtomb:
7643 # Code from module wctype-h:
7644 # Code from module wcwidth:
7645 # Code from module xsize:
7647 ac_ext=cpp
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7652 if test -z "$CXX"; then
7653 if test -n "$CCC"; then
7654 CXX=$CCC
7655 else
7656 if test -n "$ac_tool_prefix"; then
7657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_CXX+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$CXX"; then
7667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7682 IFS=$as_save_IFS
7686 CXX=$ac_cv_prog_CXX
7687 if test -n "$CXX"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7689 $as_echo "$CXX" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$CXX" && break
7697 done
7699 if test -z "$CXX"; then
7700 ac_ct_CXX=$CXX
7701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7703 # Extract the first word of "$ac_prog", so it can be a program name with args.
7704 set dummy $ac_prog; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$ac_ct_CXX"; then
7711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_CXX="$ac_prog"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7724 done
7725 done
7726 IFS=$as_save_IFS
7730 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7731 if test -n "$ac_ct_CXX"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7733 $as_echo "$ac_ct_CXX" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 test -n "$ac_ct_CXX" && break
7741 done
7743 if test "x$ac_ct_CXX" = x; then
7744 CXX="g++"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 CXX=$ac_ct_CXX
7758 # Provide some information about the compiler.
7759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7760 set X $ac_compile
7761 ac_compiler=$2
7762 for ac_option in --version -v -V -qversion; do
7763 { { ac_try="$ac_compiler $ac_option >&5"
7764 case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7769 $as_echo "$ac_try_echo"; } >&5
7770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7771 ac_status=$?
7772 if test -s conftest.err; then
7773 sed '10a\
7774 ... rest of stderr output deleted ...
7775 10q' conftest.err >conftest.er1
7776 cat conftest.er1 >&5
7778 rm -f conftest.er1 conftest.err
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }
7781 done
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7784 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7785 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7792 main ()
7794 #ifndef __GNUC__
7795 choke me
7796 #endif
7799 return 0;
7801 _ACEOF
7802 if ac_fn_cxx_try_compile "$LINENO"; then :
7803 ac_compiler_gnu=yes
7804 else
7805 ac_compiler_gnu=no
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7812 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7813 if test $ac_compiler_gnu = yes; then
7814 GXX=yes
7815 else
7816 GXX=
7818 ac_test_CXXFLAGS=${CXXFLAGS+set}
7819 ac_save_CXXFLAGS=$CXXFLAGS
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7821 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7822 if ${ac_cv_prog_cxx_g+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7826 ac_cxx_werror_flag=yes
7827 ac_cv_prog_cxx_g=no
7828 CXXFLAGS="-g"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7833 main ()
7837 return 0;
7839 _ACEOF
7840 if ac_fn_cxx_try_compile "$LINENO"; then :
7841 ac_cv_prog_cxx_g=yes
7842 else
7843 CXXFLAGS=""
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7848 main ()
7852 return 0;
7854 _ACEOF
7855 if ac_fn_cxx_try_compile "$LINENO"; then :
7857 else
7858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7859 CXXFLAGS="-g"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7864 main ()
7868 return 0;
7870 _ACEOF
7871 if ac_fn_cxx_try_compile "$LINENO"; then :
7872 ac_cv_prog_cxx_g=yes
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7883 if test "$ac_test_CXXFLAGS" = set; then
7884 CXXFLAGS=$ac_save_CXXFLAGS
7885 elif test $ac_cv_prog_cxx_g = yes; then
7886 if test "$GXX" = yes; then
7887 CXXFLAGS="-g -O2"
7888 else
7889 CXXFLAGS="-g"
7891 else
7892 if test "$GXX" = yes; then
7893 CXXFLAGS="-O2"
7894 else
7895 CXXFLAGS=
7898 ac_ext=c
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 depcc="$CXX" am_compiler_list=
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7907 $as_echo_n "checking dependency style of $depcc... " >&6; }
7908 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7912 # We make a subdir and do the tests there. Otherwise we can end up
7913 # making bogus files that we don't know about and never remove. For
7914 # instance it was reported that on HP-UX the gcc test will end up
7915 # making a dummy file named 'D' -- because '-MD' means "put the output
7916 # in D".
7917 rm -rf conftest.dir
7918 mkdir conftest.dir
7919 # Copy depcomp to subdir because otherwise we won't find it if we're
7920 # using a relative directory.
7921 cp "$am_depcomp" conftest.dir
7922 cd conftest.dir
7923 # We will build objects and dependencies in a subdirectory because
7924 # it helps to detect inapplicable dependency modes. For instance
7925 # both Tru64's cc and ICC support -MD to output dependencies as a
7926 # side effect of compilation, but ICC will put the dependencies in
7927 # the current directory while Tru64 will put them in the object
7928 # directory.
7929 mkdir sub
7931 am_cv_CXX_dependencies_compiler_type=none
7932 if test "$am_compiler_list" = ""; then
7933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7935 am__universal=false
7936 case " $depcc " in #(
7937 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7938 esac
7940 for depmode in $am_compiler_list; do
7941 # Setup a source with many dependencies, because some compilers
7942 # like to wrap large dependency lists on column 80 (with \), and
7943 # we should not choose a depcomp mode which is confused by this.
7945 # We need to recreate these files for each test, as the compiler may
7946 # overwrite some of them when testing with obscure command lines.
7947 # This happens at least with the AIX C compiler.
7948 : > sub/conftest.c
7949 for i in 1 2 3 4 5 6; do
7950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7951 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7952 # Solaris 10 /bin/sh.
7953 echo '/* dummy */' > sub/conftst$i.h
7954 done
7955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7957 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7958 # mode. It turns out that the SunPro C++ compiler does not properly
7959 # handle '-M -o', and we need to detect this. Also, some Intel
7960 # versions had trouble with output in subdirs.
7961 am__obj=sub/conftest.${OBJEXT-o}
7962 am__minus_obj="-o $am__obj"
7963 case $depmode in
7964 gcc)
7965 # This depmode causes a compiler race in universal mode.
7966 test "$am__universal" = false || continue
7968 nosideeffect)
7969 # After this tag, mechanisms are not by side-effect, so they'll
7970 # only be used when explicitly requested.
7971 if test "x$enable_dependency_tracking" = xyes; then
7972 continue
7973 else
7974 break
7977 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7978 # This compiler won't grok '-c -o', but also, the minuso test has
7979 # not run yet. These depmodes are late enough in the game, and
7980 # so weak that their functioning should not be impacted.
7981 am__obj=conftest.${OBJEXT-o}
7982 am__minus_obj=
7984 none) break ;;
7985 esac
7986 if depmode=$depmode \
7987 source=sub/conftest.c object=$am__obj \
7988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7989 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7990 >/dev/null 2>conftest.err &&
7991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7993 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7995 # icc doesn't choke on unknown options, it will just issue warnings
7996 # or remarks (even with -Werror). So we grep stderr for any message
7997 # that says an option was ignored or not supported.
7998 # When given -MP, icc 7.0 and 7.1 complain thusly:
7999 # icc: Command line warning: ignoring option '-M'; no argument required
8000 # The diagnosis changed in icc 8.0:
8001 # icc: Command line remark: option '-MP' not supported
8002 if (grep 'ignoring option' conftest.err ||
8003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8004 am_cv_CXX_dependencies_compiler_type=$depmode
8005 break
8008 done
8010 cd ..
8011 rm -rf conftest.dir
8012 else
8013 am_cv_CXX_dependencies_compiler_type=none
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8022 test "x$enable_dependency_tracking" != xno \
8023 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8024 am__fastdepCXX_TRUE=
8025 am__fastdepCXX_FALSE='#'
8026 else
8027 am__fastdepCXX_TRUE='#'
8028 am__fastdepCXX_FALSE=
8032 # FIXME: we rely on the cache variable name because
8033 # there is no other way.
8034 set dummy $CC
8035 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
8036 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
8037 if test "$am_t" != yes; then
8038 # Losing compiler, so override with the script.
8039 # FIXME: It is wrong to rewrite CC.
8040 # But if we don't then we get into trouble of one sort or another.
8041 # A longer-term fix would be to have automake use am__CC in this case,
8042 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8043 CC="$am_aux_dir/compile $CC"
8047 # By default we simply use the C compiler to build assembly code.
8049 test "${CCAS+set}" = set || CCAS=$CC
8050 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8054 depcc="$CCAS" am_compiler_list=
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8057 $as_echo_n "checking dependency style of $depcc... " >&6; }
8058 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8062 # We make a subdir and do the tests there. Otherwise we can end up
8063 # making bogus files that we don't know about and never remove. For
8064 # instance it was reported that on HP-UX the gcc test will end up
8065 # making a dummy file named 'D' -- because '-MD' means "put the output
8066 # in D".
8067 rm -rf conftest.dir
8068 mkdir conftest.dir
8069 # Copy depcomp to subdir because otherwise we won't find it if we're
8070 # using a relative directory.
8071 cp "$am_depcomp" conftest.dir
8072 cd conftest.dir
8073 # We will build objects and dependencies in a subdirectory because
8074 # it helps to detect inapplicable dependency modes. For instance
8075 # both Tru64's cc and ICC support -MD to output dependencies as a
8076 # side effect of compilation, but ICC will put the dependencies in
8077 # the current directory while Tru64 will put them in the object
8078 # directory.
8079 mkdir sub
8081 am_cv_CCAS_dependencies_compiler_type=none
8082 if test "$am_compiler_list" = ""; then
8083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8085 am__universal=false
8088 for depmode in $am_compiler_list; do
8089 # Setup a source with many dependencies, because some compilers
8090 # like to wrap large dependency lists on column 80 (with \), and
8091 # we should not choose a depcomp mode which is confused by this.
8093 # We need to recreate these files for each test, as the compiler may
8094 # overwrite some of them when testing with obscure command lines.
8095 # This happens at least with the AIX C compiler.
8096 : > sub/conftest.c
8097 for i in 1 2 3 4 5 6; do
8098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8100 # Solaris 10 /bin/sh.
8101 echo '/* dummy */' > sub/conftst$i.h
8102 done
8103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8106 # mode. It turns out that the SunPro C++ compiler does not properly
8107 # handle '-M -o', and we need to detect this. Also, some Intel
8108 # versions had trouble with output in subdirs.
8109 am__obj=sub/conftest.${OBJEXT-o}
8110 am__minus_obj="-o $am__obj"
8111 case $depmode in
8112 gcc)
8113 # This depmode causes a compiler race in universal mode.
8114 test "$am__universal" = false || continue
8116 nosideeffect)
8117 # After this tag, mechanisms are not by side-effect, so they'll
8118 # only be used when explicitly requested.
8119 if test "x$enable_dependency_tracking" = xyes; then
8120 continue
8121 else
8122 break
8125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8126 # This compiler won't grok '-c -o', but also, the minuso test has
8127 # not run yet. These depmodes are late enough in the game, and
8128 # so weak that their functioning should not be impacted.
8129 am__obj=conftest.${OBJEXT-o}
8130 am__minus_obj=
8132 none) break ;;
8133 esac
8134 if depmode=$depmode \
8135 source=sub/conftest.c object=$am__obj \
8136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8138 >/dev/null 2>conftest.err &&
8139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8143 # icc doesn't choke on unknown options, it will just issue warnings
8144 # or remarks (even with -Werror). So we grep stderr for any message
8145 # that says an option was ignored or not supported.
8146 # When given -MP, icc 7.0 and 7.1 complain thusly:
8147 # icc: Command line warning: ignoring option '-M'; no argument required
8148 # The diagnosis changed in icc 8.0:
8149 # icc: Command line remark: option '-MP' not supported
8150 if (grep 'ignoring option' conftest.err ||
8151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8152 am_cv_CCAS_dependencies_compiler_type=$depmode
8153 break
8156 done
8158 cd ..
8159 rm -rf conftest.dir
8160 else
8161 am_cv_CCAS_dependencies_compiler_type=none
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8166 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8167 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8170 test "x$enable_dependency_tracking" != xno \
8171 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8172 am__fastdepCCAS_TRUE=
8173 am__fastdepCCAS_FALSE='#'
8174 else
8175 am__fastdepCCAS_TRUE='#'
8176 am__fastdepCCAS_FALSE=
8181 # Must be GCC.
8182 test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
8184 # Extract the first word of "$CXX", so it can be a program name with args.
8185 set dummy $CXX; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_HAVE_CXX+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$HAVE_CXX"; then
8192 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_HAVE_CXX="yes"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8205 done
8206 done
8207 IFS=$as_save_IFS
8209 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
8212 HAVE_CXX=$ac_cv_prog_HAVE_CXX
8213 if test -n "$HAVE_CXX"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
8215 $as_echo "$HAVE_CXX" >&6; }
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8226 $as_echo_n "checking whether NLS is requested... " >&6; }
8227 # Check whether --enable-nls was given.
8228 if test "${enable_nls+set}" = set; then :
8229 enableval=$enable_nls; USE_NLS=$enableval
8230 else
8231 USE_NLS=yes
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8235 $as_echo "$USE_NLS" >&6; }
8240 GETTEXT_MACRO_VERSION=0.18
8245 # Prepare PATH_SEPARATOR.
8246 # The user is always right.
8247 if test "${PATH_SEPARATOR+set}" != set; then
8248 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8249 # contains only /bin. Note that ksh looks also at the FPATH variable,
8250 # so we have to set that as well for the test.
8251 PATH_SEPARATOR=:
8252 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8253 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8254 || PATH_SEPARATOR=';'
8258 # Find out how to test for executable files. Don't use a zero-byte file,
8259 # as systems may use methods other than mode bits to determine executability.
8260 cat >conf$$.file <<_ASEOF
8261 #! /bin/sh
8262 exit 0
8263 _ASEOF
8264 chmod +x conf$$.file
8265 if test -x conf$$.file >/dev/null 2>&1; then
8266 ac_executable_p="test -x"
8267 else
8268 ac_executable_p="test -f"
8270 rm -f conf$$.file
8272 # Extract the first word of "msgfmt", so it can be a program name with args.
8273 set dummy msgfmt; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_path_MSGFMT+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 case "$MSGFMT" in
8280 [\\/]* | ?:[\\/]*)
8281 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8285 for ac_dir in $PATH; do
8286 IFS="$ac_save_IFS"
8287 test -z "$ac_dir" && ac_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8290 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8291 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8292 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8293 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8294 break 2
8297 done
8298 done
8299 IFS="$ac_save_IFS"
8300 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8302 esac
8304 MSGFMT="$ac_cv_path_MSGFMT"
8305 if test "$MSGFMT" != ":"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8307 $as_echo "$MSGFMT" >&6; }
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8314 set dummy gmsgfmt; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_path_GMSGFMT+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 case $GMSGFMT in
8321 [\\/]* | ?:[\\/]*)
8322 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8340 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8342 esac
8344 GMSGFMT=$ac_cv_path_GMSGFMT
8345 if test -n "$GMSGFMT"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8347 $as_echo "$GMSGFMT" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8356 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
8357 *) MSGFMT_015=$MSGFMT ;;
8358 esac
8360 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8361 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8362 *) GMSGFMT_015=$GMSGFMT ;;
8363 esac
8367 # Prepare PATH_SEPARATOR.
8368 # The user is always right.
8369 if test "${PATH_SEPARATOR+set}" != set; then
8370 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8371 # contains only /bin. Note that ksh looks also at the FPATH variable,
8372 # so we have to set that as well for the test.
8373 PATH_SEPARATOR=:
8374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8375 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8376 || PATH_SEPARATOR=';'
8380 # Find out how to test for executable files. Don't use a zero-byte file,
8381 # as systems may use methods other than mode bits to determine executability.
8382 cat >conf$$.file <<_ASEOF
8383 #! /bin/sh
8384 exit 0
8385 _ASEOF
8386 chmod +x conf$$.file
8387 if test -x conf$$.file >/dev/null 2>&1; then
8388 ac_executable_p="test -x"
8389 else
8390 ac_executable_p="test -f"
8392 rm -f conf$$.file
8394 # Extract the first word of "xgettext", so it can be a program name with args.
8395 set dummy xgettext; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_path_XGETTEXT+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 case "$XGETTEXT" in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8406 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8407 for ac_dir in $PATH; do
8408 IFS="$ac_save_IFS"
8409 test -z "$ac_dir" && ac_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8412 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8413 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8414 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8415 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8416 break 2
8419 done
8420 done
8421 IFS="$ac_save_IFS"
8422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8424 esac
8426 XGETTEXT="$ac_cv_path_XGETTEXT"
8427 if test "$XGETTEXT" != ":"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8429 $as_echo "$XGETTEXT" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8435 rm -f messages.po
8437 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8438 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8439 *) XGETTEXT_015=$XGETTEXT ;;
8440 esac
8444 # Prepare PATH_SEPARATOR.
8445 # The user is always right.
8446 if test "${PATH_SEPARATOR+set}" != set; then
8447 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8448 # contains only /bin. Note that ksh looks also at the FPATH variable,
8449 # so we have to set that as well for the test.
8450 PATH_SEPARATOR=:
8451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8452 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8453 || PATH_SEPARATOR=';'
8457 # Find out how to test for executable files. Don't use a zero-byte file,
8458 # as systems may use methods other than mode bits to determine executability.
8459 cat >conf$$.file <<_ASEOF
8460 #! /bin/sh
8461 exit 0
8462 _ASEOF
8463 chmod +x conf$$.file
8464 if test -x conf$$.file >/dev/null 2>&1; then
8465 ac_executable_p="test -x"
8466 else
8467 ac_executable_p="test -f"
8469 rm -f conf$$.file
8471 # Extract the first word of "msgmerge", so it can be a program name with args.
8472 set dummy msgmerge; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_path_MSGMERGE+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 case "$MSGMERGE" in
8479 [\\/]* | ?:[\\/]*)
8480 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8483 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8484 for ac_dir in $PATH; do
8485 IFS="$ac_save_IFS"
8486 test -z "$ac_dir" && ac_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8489 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8490 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8491 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8492 break 2
8495 done
8496 done
8497 IFS="$ac_save_IFS"
8498 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8500 esac
8502 MSGMERGE="$ac_cv_path_MSGMERGE"
8503 if test "$MSGMERGE" != ":"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8505 $as_echo "$MSGMERGE" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8512 test -n "$localedir" || localedir='${datadir}/locale'
8515 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8518 ac_config_commands="$ac_config_commands po-directories"
8522 if test "X$prefix" = "XNONE"; then
8523 acl_final_prefix="$ac_default_prefix"
8524 else
8525 acl_final_prefix="$prefix"
8527 if test "X$exec_prefix" = "XNONE"; then
8528 acl_final_exec_prefix='${prefix}'
8529 else
8530 acl_final_exec_prefix="$exec_prefix"
8532 acl_save_prefix="$prefix"
8533 prefix="$acl_final_prefix"
8534 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8535 prefix="$acl_save_prefix"
8539 # Check whether --with-gnu-ld was given.
8540 if test "${with_gnu_ld+set}" = set; then :
8541 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8542 else
8543 with_gnu_ld=no
8546 # Prepare PATH_SEPARATOR.
8547 # The user is always right.
8548 if test "${PATH_SEPARATOR+set}" != set; then
8549 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8550 # contains only /bin. Note that ksh looks also at the FPATH variable,
8551 # so we have to set that as well for the test.
8552 PATH_SEPARATOR=:
8553 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8554 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8555 || PATH_SEPARATOR=';'
8559 ac_prog=ld
8560 if test "$GCC" = yes; then
8561 # Check if gcc -print-prog-name=ld gives a path.
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8563 $as_echo_n "checking for ld used by $CC... " >&6; }
8564 case $host in
8565 *-*-mingw*)
8566 # gcc leaves a trailing carriage return which upsets mingw
8567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8570 esac
8571 case $ac_prog in
8572 # Accept absolute paths.
8573 [\\/]* | ?:[\\/]*)
8574 re_direlt='/[^/][^/]*/\.\./'
8575 # Canonicalize the pathname of ld
8576 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8577 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
8578 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8579 done
8580 test -z "$LD" && LD="$ac_prog"
8583 # If it fails, then pretend we aren't using GCC.
8584 ac_prog=ld
8587 # If it is relative, then search for the first ld in PATH.
8588 with_gnu_ld=unknown
8590 esac
8591 elif test "$with_gnu_ld" = yes; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8593 $as_echo_n "checking for GNU ld... " >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8596 $as_echo_n "checking for non-GNU ld... " >&6; }
8598 if ${acl_cv_path_LD+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -z "$LD"; then
8602 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8603 for ac_dir in $PATH; do
8604 IFS="$acl_save_ifs"
8605 test -z "$ac_dir" && ac_dir=.
8606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8607 acl_cv_path_LD="$ac_dir/$ac_prog"
8608 # Check to see if the program is GNU ld. I'd rather use --version,
8609 # but apparently some variants of GNU ld only accept -v.
8610 # Break only if it was the GNU/non-GNU ld that we prefer.
8611 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8612 *GNU* | *'with BFD'*)
8613 test "$with_gnu_ld" != no && break
8616 test "$with_gnu_ld" != yes && break
8618 esac
8620 done
8621 IFS="$acl_save_ifs"
8622 else
8623 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8627 LD="$acl_cv_path_LD"
8628 if test -n "$LD"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8630 $as_echo "$LD" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8635 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8637 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8638 if ${acl_cv_prog_gnu_ld+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8642 case `$LD -v 2>&1 </dev/null` in
8643 *GNU* | *'with BFD'*)
8644 acl_cv_prog_gnu_ld=yes
8647 acl_cv_prog_gnu_ld=no
8649 esac
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8652 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8653 with_gnu_ld=$acl_cv_prog_gnu_ld
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8659 $as_echo_n "checking for shared library run path origin... " >&6; }
8660 if ${acl_cv_rpath+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8664 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8665 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8666 . ./conftest.sh
8667 rm -f ./conftest.sh
8668 acl_cv_rpath=done
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8672 $as_echo "$acl_cv_rpath" >&6; }
8673 wl="$acl_cv_wl"
8674 acl_libext="$acl_cv_libext"
8675 acl_shlibext="$acl_cv_shlibext"
8676 acl_libname_spec="$acl_cv_libname_spec"
8677 acl_library_names_spec="$acl_cv_library_names_spec"
8678 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8679 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8680 acl_hardcode_direct="$acl_cv_hardcode_direct"
8681 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8682 # Check whether --enable-rpath was given.
8683 if test "${enable_rpath+set}" = set; then :
8684 enableval=$enable_rpath; :
8685 else
8686 enable_rpath=yes
8692 acl_libdirstem=lib
8693 acl_libdirstem2=
8694 case "$host_os" in
8695 solaris*)
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8697 $as_echo_n "checking for 64-bit host... " >&6; }
8698 if ${gl_cv_solaris_64bit+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 #ifdef _LP64
8705 sixtyfour bits
8706 #endif
8708 _ACEOF
8709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8711 gl_cv_solaris_64bit=yes
8712 else
8713 gl_cv_solaris_64bit=no
8715 rm -f conftest*
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8720 $as_echo "$gl_cv_solaris_64bit" >&6; }
8721 if test $gl_cv_solaris_64bit = yes; then
8722 acl_libdirstem=lib/64
8723 case "$host_cpu" in
8724 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8725 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8726 esac
8730 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8731 if test -n "$searchpath"; then
8732 acl_save_IFS="${IFS= }"; IFS=":"
8733 for searchdir in $searchpath; do
8734 if test -d "$searchdir"; then
8735 case "$searchdir" in
8736 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8737 */../ | */.. )
8738 # Better ignore directories of this form. They are misleading.
8740 *) searchdir=`cd "$searchdir" && pwd`
8741 case "$searchdir" in
8742 */lib64 ) acl_libdirstem=lib64 ;;
8743 esac ;;
8744 esac
8746 done
8747 IFS="$acl_save_IFS"
8750 esac
8751 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8764 use_additional=yes
8766 acl_save_prefix="$prefix"
8767 prefix="$acl_final_prefix"
8768 acl_save_exec_prefix="$exec_prefix"
8769 exec_prefix="$acl_final_exec_prefix"
8771 eval additional_includedir=\"$includedir\"
8772 eval additional_libdir=\"$libdir\"
8774 exec_prefix="$acl_save_exec_prefix"
8775 prefix="$acl_save_prefix"
8778 # Check whether --with-libiconv-prefix was given.
8779 if test "${with_libiconv_prefix+set}" = set; then :
8780 withval=$with_libiconv_prefix;
8781 if test "X$withval" = "Xno"; then
8782 use_additional=no
8783 else
8784 if test "X$withval" = "X"; then
8786 acl_save_prefix="$prefix"
8787 prefix="$acl_final_prefix"
8788 acl_save_exec_prefix="$exec_prefix"
8789 exec_prefix="$acl_final_exec_prefix"
8791 eval additional_includedir=\"$includedir\"
8792 eval additional_libdir=\"$libdir\"
8794 exec_prefix="$acl_save_exec_prefix"
8795 prefix="$acl_save_prefix"
8797 else
8798 additional_includedir="$withval/include"
8799 additional_libdir="$withval/$acl_libdirstem"
8800 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8801 && ! test -d "$withval/$acl_libdirstem"; then
8802 additional_libdir="$withval/$acl_libdirstem2"
8809 LIBICONV=
8810 LTLIBICONV=
8811 INCICONV=
8812 LIBICONV_PREFIX=
8813 HAVE_LIBICONV=
8814 rpathdirs=
8815 ltrpathdirs=
8816 names_already_handled=
8817 names_next_round='iconv '
8818 while test -n "$names_next_round"; do
8819 names_this_round="$names_next_round"
8820 names_next_round=
8821 for name in $names_this_round; do
8822 already_handled=
8823 for n in $names_already_handled; do
8824 if test "$n" = "$name"; then
8825 already_handled=yes
8826 break
8828 done
8829 if test -z "$already_handled"; then
8830 names_already_handled="$names_already_handled $name"
8831 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8832 eval value=\"\$HAVE_LIB$uppername\"
8833 if test -n "$value"; then
8834 if test "$value" = yes; then
8835 eval value=\"\$LIB$uppername\"
8836 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8837 eval value=\"\$LTLIB$uppername\"
8838 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8839 else
8842 else
8843 found_dir=
8844 found_la=
8845 found_so=
8846 found_a=
8847 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8848 if test -n "$acl_shlibext"; then
8849 shrext=".$acl_shlibext" # typically: shrext=.so
8850 else
8851 shrext=
8853 if test $use_additional = yes; then
8854 dir="$additional_libdir"
8855 if test -n "$acl_shlibext"; then
8856 if test -f "$dir/$libname$shrext"; then
8857 found_dir="$dir"
8858 found_so="$dir/$libname$shrext"
8859 else
8860 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8861 ver=`(cd "$dir" && \
8862 for f in "$libname$shrext".*; do echo "$f"; done \
8863 | sed -e "s,^$libname$shrext\\\\.,," \
8864 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8865 | sed 1q ) 2>/dev/null`
8866 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8867 found_dir="$dir"
8868 found_so="$dir/$libname$shrext.$ver"
8870 else
8871 eval library_names=\"$acl_library_names_spec\"
8872 for f in $library_names; do
8873 if test -f "$dir/$f"; then
8874 found_dir="$dir"
8875 found_so="$dir/$f"
8876 break
8878 done
8882 if test "X$found_dir" = "X"; then
8883 if test -f "$dir/$libname.$acl_libext"; then
8884 found_dir="$dir"
8885 found_a="$dir/$libname.$acl_libext"
8888 if test "X$found_dir" != "X"; then
8889 if test -f "$dir/$libname.la"; then
8890 found_la="$dir/$libname.la"
8894 if test "X$found_dir" = "X"; then
8895 for x in $LDFLAGS $LTLIBICONV; do
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
8901 eval x=\"$x\"
8902 exec_prefix="$acl_save_exec_prefix"
8903 prefix="$acl_save_prefix"
8905 case "$x" in
8906 -L*)
8907 dir=`echo "X$x" | sed -e 's/^X-L//'`
8908 if test -n "$acl_shlibext"; then
8909 if test -f "$dir/$libname$shrext"; then
8910 found_dir="$dir"
8911 found_so="$dir/$libname$shrext"
8912 else
8913 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8914 ver=`(cd "$dir" && \
8915 for f in "$libname$shrext".*; do echo "$f"; done \
8916 | sed -e "s,^$libname$shrext\\\\.,," \
8917 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8918 | sed 1q ) 2>/dev/null`
8919 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8920 found_dir="$dir"
8921 found_so="$dir/$libname$shrext.$ver"
8923 else
8924 eval library_names=\"$acl_library_names_spec\"
8925 for f in $library_names; do
8926 if test -f "$dir/$f"; then
8927 found_dir="$dir"
8928 found_so="$dir/$f"
8929 break
8931 done
8935 if test "X$found_dir" = "X"; then
8936 if test -f "$dir/$libname.$acl_libext"; then
8937 found_dir="$dir"
8938 found_a="$dir/$libname.$acl_libext"
8941 if test "X$found_dir" != "X"; then
8942 if test -f "$dir/$libname.la"; then
8943 found_la="$dir/$libname.la"
8947 esac
8948 if test "X$found_dir" != "X"; then
8949 break
8951 done
8953 if test "X$found_dir" != "X"; then
8954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8955 if test "X$found_so" != "X"; then
8956 if test "$enable_rpath" = no \
8957 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8958 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8959 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8960 else
8961 haveit=
8962 for x in $ltrpathdirs; do
8963 if test "X$x" = "X$found_dir"; then
8964 haveit=yes
8965 break
8967 done
8968 if test -z "$haveit"; then
8969 ltrpathdirs="$ltrpathdirs $found_dir"
8971 if test "$acl_hardcode_direct" = yes; then
8972 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8973 else
8974 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8976 haveit=
8977 for x in $rpathdirs; do
8978 if test "X$x" = "X$found_dir"; then
8979 haveit=yes
8980 break
8982 done
8983 if test -z "$haveit"; then
8984 rpathdirs="$rpathdirs $found_dir"
8986 else
8987 haveit=
8988 for x in $LDFLAGS $LIBICONV; do
8990 acl_save_prefix="$prefix"
8991 prefix="$acl_final_prefix"
8992 acl_save_exec_prefix="$exec_prefix"
8993 exec_prefix="$acl_final_exec_prefix"
8994 eval x=\"$x\"
8995 exec_prefix="$acl_save_exec_prefix"
8996 prefix="$acl_save_prefix"
8998 if test "X$x" = "X-L$found_dir"; then
8999 haveit=yes
9000 break
9002 done
9003 if test -z "$haveit"; then
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9006 if test "$acl_hardcode_minus_L" != no; then
9007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9008 else
9009 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9014 else
9015 if test "X$found_a" != "X"; then
9016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9017 else
9018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9021 additional_includedir=
9022 case "$found_dir" in
9023 */$acl_libdirstem | */$acl_libdirstem/)
9024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9025 if test "$name" = 'iconv'; then
9026 LIBICONV_PREFIX="$basedir"
9028 additional_includedir="$basedir/include"
9030 */$acl_libdirstem2 | */$acl_libdirstem2/)
9031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9032 if test "$name" = 'iconv'; then
9033 LIBICONV_PREFIX="$basedir"
9035 additional_includedir="$basedir/include"
9037 esac
9038 if test "X$additional_includedir" != "X"; then
9039 if test "X$additional_includedir" != "X/usr/include"; then
9040 haveit=
9041 if test "X$additional_includedir" = "X/usr/local/include"; then
9042 if test -n "$GCC"; then
9043 case $host_os in
9044 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9045 esac
9048 if test -z "$haveit"; then
9049 for x in $CPPFLAGS $INCICONV; do
9051 acl_save_prefix="$prefix"
9052 prefix="$acl_final_prefix"
9053 acl_save_exec_prefix="$exec_prefix"
9054 exec_prefix="$acl_final_exec_prefix"
9055 eval x=\"$x\"
9056 exec_prefix="$acl_save_exec_prefix"
9057 prefix="$acl_save_prefix"
9059 if test "X$x" = "X-I$additional_includedir"; then
9060 haveit=yes
9061 break
9063 done
9064 if test -z "$haveit"; then
9065 if test -d "$additional_includedir"; then
9066 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9072 if test -n "$found_la"; then
9073 save_libdir="$libdir"
9074 case "$found_la" in
9075 */* | *\\*) . "$found_la" ;;
9076 *) . "./$found_la" ;;
9077 esac
9078 libdir="$save_libdir"
9079 for dep in $dependency_libs; do
9080 case "$dep" in
9081 -L*)
9082 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9083 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9084 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9085 haveit=
9086 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9087 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9088 if test -n "$GCC"; then
9089 case $host_os in
9090 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9091 esac
9094 if test -z "$haveit"; then
9095 haveit=
9096 for x in $LDFLAGS $LIBICONV; do
9098 acl_save_prefix="$prefix"
9099 prefix="$acl_final_prefix"
9100 acl_save_exec_prefix="$exec_prefix"
9101 exec_prefix="$acl_final_exec_prefix"
9102 eval x=\"$x\"
9103 exec_prefix="$acl_save_exec_prefix"
9104 prefix="$acl_save_prefix"
9106 if test "X$x" = "X-L$additional_libdir"; then
9107 haveit=yes
9108 break
9110 done
9111 if test -z "$haveit"; then
9112 if test -d "$additional_libdir"; then
9113 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9116 haveit=
9117 for x in $LDFLAGS $LTLIBICONV; do
9119 acl_save_prefix="$prefix"
9120 prefix="$acl_final_prefix"
9121 acl_save_exec_prefix="$exec_prefix"
9122 exec_prefix="$acl_final_exec_prefix"
9123 eval x=\"$x\"
9124 exec_prefix="$acl_save_exec_prefix"
9125 prefix="$acl_save_prefix"
9127 if test "X$x" = "X-L$additional_libdir"; then
9128 haveit=yes
9129 break
9131 done
9132 if test -z "$haveit"; then
9133 if test -d "$additional_libdir"; then
9134 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9140 -R*)
9141 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9142 if test "$enable_rpath" != no; then
9143 haveit=
9144 for x in $rpathdirs; do
9145 if test "X$x" = "X$dir"; then
9146 haveit=yes
9147 break
9149 done
9150 if test -z "$haveit"; then
9151 rpathdirs="$rpathdirs $dir"
9153 haveit=
9154 for x in $ltrpathdirs; do
9155 if test "X$x" = "X$dir"; then
9156 haveit=yes
9157 break
9159 done
9160 if test -z "$haveit"; then
9161 ltrpathdirs="$ltrpathdirs $dir"
9165 -l*)
9166 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9168 *.la)
9169 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9172 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9173 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9175 esac
9176 done
9178 else
9179 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9184 done
9185 done
9186 if test "X$rpathdirs" != "X"; then
9187 if test -n "$acl_hardcode_libdir_separator"; then
9188 alldirs=
9189 for found_dir in $rpathdirs; do
9190 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9191 done
9192 acl_save_libdir="$libdir"
9193 libdir="$alldirs"
9194 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9195 libdir="$acl_save_libdir"
9196 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9197 else
9198 for found_dir in $rpathdirs; do
9199 acl_save_libdir="$libdir"
9200 libdir="$found_dir"
9201 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9202 libdir="$acl_save_libdir"
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9204 done
9207 if test "X$ltrpathdirs" != "X"; then
9208 for found_dir in $ltrpathdirs; do
9209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9210 done
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9244 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9245 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 gt_save_LIBS="$LIBS"
9249 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 #include <CoreFoundation/CFPreferences.h>
9254 main (void)
9256 CFPreferencesCopyAppValue(NULL, NULL)
9258 return 0;
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 gt_cv_func_CFPreferencesCopyAppValue=yes
9263 else
9264 gt_cv_func_CFPreferencesCopyAppValue=no
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS="$gt_save_LIBS"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9271 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9272 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9274 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9278 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9279 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 gt_save_LIBS="$LIBS"
9283 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <CoreFoundation/CFLocale.h>
9288 main (void)
9290 CFLocaleCopyCurrent();
9292 return 0;
9294 _ACEOF
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 gt_cv_func_CFLocaleCopyCurrent=yes
9297 else
9298 gt_cv_func_CFLocaleCopyCurrent=no
9300 rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LIBS="$gt_save_LIBS"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9305 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9306 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9308 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9311 INTL_MACOSX_LIBS=
9312 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9313 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9321 LIBINTL=
9322 LTLIBINTL=
9323 POSUB=
9325 case " $gt_needs " in
9326 *" need-formatstring-macros "*) gt_api_version=3 ;;
9327 *" need-ngettext "*) gt_api_version=2 ;;
9328 *) gt_api_version=1 ;;
9329 esac
9330 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9331 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9333 if test "$USE_NLS" = "yes"; then
9334 gt_use_preinstalled_gnugettext=no
9337 if test $gt_api_version -ge 3; then
9338 gt_revision_test_code='
9339 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9340 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9341 #endif
9342 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9344 else
9345 gt_revision_test_code=
9347 if test $gt_api_version -ge 2; then
9348 gt_expression_test_code=' + * ngettext ("", "", 0)'
9349 else
9350 gt_expression_test_code=
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9354 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9355 if eval \${$gt_func_gnugettext_libc+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9361 #include <libintl.h>
9362 $gt_revision_test_code
9363 extern int _nl_msg_cat_cntr;
9364 extern int *_nl_domain_bindings;
9367 main (void)
9370 bindtextdomain ("", "");
9371 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9374 return 0;
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 eval "$gt_func_gnugettext_libc=yes"
9379 else
9380 eval "$gt_func_gnugettext_libc=no"
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9385 eval ac_res=\$$gt_func_gnugettext_libc
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9387 $as_echo "$ac_res" >&6; }
9389 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9395 am_save_CPPFLAGS="$CPPFLAGS"
9397 for element in $INCICONV; do
9398 haveit=
9399 for x in $CPPFLAGS; do
9401 acl_save_prefix="$prefix"
9402 prefix="$acl_final_prefix"
9403 acl_save_exec_prefix="$exec_prefix"
9404 exec_prefix="$acl_final_exec_prefix"
9405 eval x=\"$x\"
9406 exec_prefix="$acl_save_exec_prefix"
9407 prefix="$acl_save_prefix"
9409 if test "X$x" = "X$element"; then
9410 haveit=yes
9411 break
9413 done
9414 if test -z "$haveit"; then
9415 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9417 done
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9421 $as_echo_n "checking for iconv... " >&6; }
9422 if ${am_cv_func_iconv+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9426 am_cv_func_iconv="no, consider installing GNU libiconv"
9427 am_cv_lib_iconv=no
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9431 #include <stdlib.h>
9432 #include <iconv.h>
9435 main (void)
9437 iconv_t cd = iconv_open("","");
9438 iconv(cd,NULL,NULL,NULL,NULL);
9439 iconv_close(cd);
9441 return 0;
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 am_cv_func_iconv=yes
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 if test "$am_cv_func_iconv" != yes; then
9450 am_save_LIBS="$LIBS"
9451 LIBS="$LIBS $LIBICONV"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #include <stdlib.h>
9456 #include <iconv.h>
9459 main (void)
9461 iconv_t cd = iconv_open("","");
9462 iconv(cd,NULL,NULL,NULL,NULL);
9463 iconv_close(cd);
9465 return 0;
9467 _ACEOF
9468 if ac_fn_c_try_link "$LINENO"; then :
9469 am_cv_lib_iconv=yes
9470 am_cv_func_iconv=yes
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LIBS="$am_save_LIBS"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9479 $as_echo "$am_cv_func_iconv" >&6; }
9480 if test "$am_cv_func_iconv" = yes; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9482 $as_echo_n "checking for working iconv... " >&6; }
9483 if ${am_cv_func_iconv_works+:} false; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9487 am_save_LIBS="$LIBS"
9488 if test $am_cv_lib_iconv = yes; then
9489 LIBS="$LIBS $LIBICONV"
9491 if test "$cross_compiling" = yes; then :
9493 case "$host_os" in
9494 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9495 *) am_cv_func_iconv_works="guessing yes" ;;
9496 esac
9498 else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9502 #include <iconv.h>
9503 #include <string.h>
9504 int main ()
9506 int result = 0;
9507 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9508 returns. */
9510 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9511 if (cd_utf8_to_88591 != (iconv_t)(-1))
9513 static const char input[] = "\342\202\254"; /* EURO SIGN */
9514 char buf[10];
9515 const char *inptr = input;
9516 size_t inbytesleft = strlen (input);
9517 char *outptr = buf;
9518 size_t outbytesleft = sizeof (buf);
9519 size_t res = iconv (cd_utf8_to_88591,
9520 (char **) &inptr, &inbytesleft,
9521 &outptr, &outbytesleft);
9522 if (res == 0)
9523 result |= 1;
9524 iconv_close (cd_utf8_to_88591);
9527 /* Test against Solaris 10 bug: Failures are not distinguishable from
9528 successful returns. */
9530 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9531 if (cd_ascii_to_88591 != (iconv_t)(-1))
9533 static const char input[] = "\263";
9534 char buf[10];
9535 const char *inptr = input;
9536 size_t inbytesleft = strlen (input);
9537 char *outptr = buf;
9538 size_t outbytesleft = sizeof (buf);
9539 size_t res = iconv (cd_ascii_to_88591,
9540 (char **) &inptr, &inbytesleft,
9541 &outptr, &outbytesleft);
9542 if (res == 0)
9543 result |= 2;
9544 iconv_close (cd_ascii_to_88591);
9547 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9549 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9550 if (cd_88591_to_utf8 != (iconv_t)(-1))
9552 static const char input[] = "\304";
9553 static char buf[2] = { (char)0xDE, (char)0xAD };
9554 const char *inptr = input;
9555 size_t inbytesleft = 1;
9556 char *outptr = buf;
9557 size_t outbytesleft = 1;
9558 size_t res = iconv (cd_88591_to_utf8,
9559 (char **) &inptr, &inbytesleft,
9560 &outptr, &outbytesleft);
9561 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9562 result |= 4;
9563 iconv_close (cd_88591_to_utf8);
9566 #if 0 /* This bug could be worked around by the caller. */
9567 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9569 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9570 if (cd_88591_to_utf8 != (iconv_t)(-1))
9572 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9573 char buf[50];
9574 const char *inptr = input;
9575 size_t inbytesleft = strlen (input);
9576 char *outptr = buf;
9577 size_t outbytesleft = sizeof (buf);
9578 size_t res = iconv (cd_88591_to_utf8,
9579 (char **) &inptr, &inbytesleft,
9580 &outptr, &outbytesleft);
9581 if ((int)res > 0)
9582 result |= 8;
9583 iconv_close (cd_88591_to_utf8);
9586 #endif
9587 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9588 provided. */
9589 if (/* Try standardized names. */
9590 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9591 /* Try IRIX, OSF/1 names. */
9592 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9593 /* Try AIX names. */
9594 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9595 /* Try HP-UX names. */
9596 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9597 result |= 16;
9598 return result;
9600 _ACEOF
9601 if ac_fn_c_try_run "$LINENO"; then :
9602 am_cv_func_iconv_works=yes
9603 else
9604 am_cv_func_iconv_works=no
9606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9607 conftest.$ac_objext conftest.beam conftest.$ac_ext
9610 LIBS="$am_save_LIBS"
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9614 $as_echo "$am_cv_func_iconv_works" >&6; }
9615 case "$am_cv_func_iconv_works" in
9616 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9617 *) am_func_iconv=yes ;;
9618 esac
9619 else
9620 am_func_iconv=no am_cv_lib_iconv=no
9622 if test "$am_func_iconv" = yes; then
9624 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9627 if test "$am_cv_lib_iconv" = yes; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9629 $as_echo_n "checking how to link with libiconv... " >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9631 $as_echo "$LIBICONV" >&6; }
9632 else
9633 CPPFLAGS="$am_save_CPPFLAGS"
9634 LIBICONV=
9635 LTLIBICONV=
9648 use_additional=yes
9650 acl_save_prefix="$prefix"
9651 prefix="$acl_final_prefix"
9652 acl_save_exec_prefix="$exec_prefix"
9653 exec_prefix="$acl_final_exec_prefix"
9655 eval additional_includedir=\"$includedir\"
9656 eval additional_libdir=\"$libdir\"
9658 exec_prefix="$acl_save_exec_prefix"
9659 prefix="$acl_save_prefix"
9662 # Check whether --with-libintl-prefix was given.
9663 if test "${with_libintl_prefix+set}" = set; then :
9664 withval=$with_libintl_prefix;
9665 if test "X$withval" = "Xno"; then
9666 use_additional=no
9667 else
9668 if test "X$withval" = "X"; then
9670 acl_save_prefix="$prefix"
9671 prefix="$acl_final_prefix"
9672 acl_save_exec_prefix="$exec_prefix"
9673 exec_prefix="$acl_final_exec_prefix"
9675 eval additional_includedir=\"$includedir\"
9676 eval additional_libdir=\"$libdir\"
9678 exec_prefix="$acl_save_exec_prefix"
9679 prefix="$acl_save_prefix"
9681 else
9682 additional_includedir="$withval/include"
9683 additional_libdir="$withval/$acl_libdirstem"
9684 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9685 && ! test -d "$withval/$acl_libdirstem"; then
9686 additional_libdir="$withval/$acl_libdirstem2"
9693 LIBINTL=
9694 LTLIBINTL=
9695 INCINTL=
9696 LIBINTL_PREFIX=
9697 HAVE_LIBINTL=
9698 rpathdirs=
9699 ltrpathdirs=
9700 names_already_handled=
9701 names_next_round='intl '
9702 while test -n "$names_next_round"; do
9703 names_this_round="$names_next_round"
9704 names_next_round=
9705 for name in $names_this_round; do
9706 already_handled=
9707 for n in $names_already_handled; do
9708 if test "$n" = "$name"; then
9709 already_handled=yes
9710 break
9712 done
9713 if test -z "$already_handled"; then
9714 names_already_handled="$names_already_handled $name"
9715 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9716 eval value=\"\$HAVE_LIB$uppername\"
9717 if test -n "$value"; then
9718 if test "$value" = yes; then
9719 eval value=\"\$LIB$uppername\"
9720 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9721 eval value=\"\$LTLIB$uppername\"
9722 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9723 else
9726 else
9727 found_dir=
9728 found_la=
9729 found_so=
9730 found_a=
9731 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9732 if test -n "$acl_shlibext"; then
9733 shrext=".$acl_shlibext" # typically: shrext=.so
9734 else
9735 shrext=
9737 if test $use_additional = yes; then
9738 dir="$additional_libdir"
9739 if test -n "$acl_shlibext"; then
9740 if test -f "$dir/$libname$shrext"; then
9741 found_dir="$dir"
9742 found_so="$dir/$libname$shrext"
9743 else
9744 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9745 ver=`(cd "$dir" && \
9746 for f in "$libname$shrext".*; do echo "$f"; done \
9747 | sed -e "s,^$libname$shrext\\\\.,," \
9748 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9749 | sed 1q ) 2>/dev/null`
9750 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9751 found_dir="$dir"
9752 found_so="$dir/$libname$shrext.$ver"
9754 else
9755 eval library_names=\"$acl_library_names_spec\"
9756 for f in $library_names; do
9757 if test -f "$dir/$f"; then
9758 found_dir="$dir"
9759 found_so="$dir/$f"
9760 break
9762 done
9766 if test "X$found_dir" = "X"; then
9767 if test -f "$dir/$libname.$acl_libext"; then
9768 found_dir="$dir"
9769 found_a="$dir/$libname.$acl_libext"
9772 if test "X$found_dir" != "X"; then
9773 if test -f "$dir/$libname.la"; then
9774 found_la="$dir/$libname.la"
9778 if test "X$found_dir" = "X"; then
9779 for x in $LDFLAGS $LTLIBINTL; do
9781 acl_save_prefix="$prefix"
9782 prefix="$acl_final_prefix"
9783 acl_save_exec_prefix="$exec_prefix"
9784 exec_prefix="$acl_final_exec_prefix"
9785 eval x=\"$x\"
9786 exec_prefix="$acl_save_exec_prefix"
9787 prefix="$acl_save_prefix"
9789 case "$x" in
9790 -L*)
9791 dir=`echo "X$x" | sed -e 's/^X-L//'`
9792 if test -n "$acl_shlibext"; then
9793 if test -f "$dir/$libname$shrext"; then
9794 found_dir="$dir"
9795 found_so="$dir/$libname$shrext"
9796 else
9797 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9798 ver=`(cd "$dir" && \
9799 for f in "$libname$shrext".*; do echo "$f"; done \
9800 | sed -e "s,^$libname$shrext\\\\.,," \
9801 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9802 | sed 1q ) 2>/dev/null`
9803 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9804 found_dir="$dir"
9805 found_so="$dir/$libname$shrext.$ver"
9807 else
9808 eval library_names=\"$acl_library_names_spec\"
9809 for f in $library_names; do
9810 if test -f "$dir/$f"; then
9811 found_dir="$dir"
9812 found_so="$dir/$f"
9813 break
9815 done
9819 if test "X$found_dir" = "X"; then
9820 if test -f "$dir/$libname.$acl_libext"; then
9821 found_dir="$dir"
9822 found_a="$dir/$libname.$acl_libext"
9825 if test "X$found_dir" != "X"; then
9826 if test -f "$dir/$libname.la"; then
9827 found_la="$dir/$libname.la"
9831 esac
9832 if test "X$found_dir" != "X"; then
9833 break
9835 done
9837 if test "X$found_dir" != "X"; then
9838 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9839 if test "X$found_so" != "X"; then
9840 if test "$enable_rpath" = no \
9841 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9842 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9843 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9844 else
9845 haveit=
9846 for x in $ltrpathdirs; do
9847 if test "X$x" = "X$found_dir"; then
9848 haveit=yes
9849 break
9851 done
9852 if test -z "$haveit"; then
9853 ltrpathdirs="$ltrpathdirs $found_dir"
9855 if test "$acl_hardcode_direct" = yes; then
9856 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9857 else
9858 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9859 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9860 haveit=
9861 for x in $rpathdirs; do
9862 if test "X$x" = "X$found_dir"; then
9863 haveit=yes
9864 break
9866 done
9867 if test -z "$haveit"; then
9868 rpathdirs="$rpathdirs $found_dir"
9870 else
9871 haveit=
9872 for x in $LDFLAGS $LIBINTL; do
9874 acl_save_prefix="$prefix"
9875 prefix="$acl_final_prefix"
9876 acl_save_exec_prefix="$exec_prefix"
9877 exec_prefix="$acl_final_exec_prefix"
9878 eval x=\"$x\"
9879 exec_prefix="$acl_save_exec_prefix"
9880 prefix="$acl_save_prefix"
9882 if test "X$x" = "X-L$found_dir"; then
9883 haveit=yes
9884 break
9886 done
9887 if test -z "$haveit"; then
9888 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9890 if test "$acl_hardcode_minus_L" != no; then
9891 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9892 else
9893 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9898 else
9899 if test "X$found_a" != "X"; then
9900 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9901 else
9902 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9905 additional_includedir=
9906 case "$found_dir" in
9907 */$acl_libdirstem | */$acl_libdirstem/)
9908 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9909 if test "$name" = 'intl'; then
9910 LIBINTL_PREFIX="$basedir"
9912 additional_includedir="$basedir/include"
9914 */$acl_libdirstem2 | */$acl_libdirstem2/)
9915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9916 if test "$name" = 'intl'; then
9917 LIBINTL_PREFIX="$basedir"
9919 additional_includedir="$basedir/include"
9921 esac
9922 if test "X$additional_includedir" != "X"; then
9923 if test "X$additional_includedir" != "X/usr/include"; then
9924 haveit=
9925 if test "X$additional_includedir" = "X/usr/local/include"; then
9926 if test -n "$GCC"; then
9927 case $host_os in
9928 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9929 esac
9932 if test -z "$haveit"; then
9933 for x in $CPPFLAGS $INCINTL; do
9935 acl_save_prefix="$prefix"
9936 prefix="$acl_final_prefix"
9937 acl_save_exec_prefix="$exec_prefix"
9938 exec_prefix="$acl_final_exec_prefix"
9939 eval x=\"$x\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9943 if test "X$x" = "X-I$additional_includedir"; then
9944 haveit=yes
9945 break
9947 done
9948 if test -z "$haveit"; then
9949 if test -d "$additional_includedir"; then
9950 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9956 if test -n "$found_la"; then
9957 save_libdir="$libdir"
9958 case "$found_la" in
9959 */* | *\\*) . "$found_la" ;;
9960 *) . "./$found_la" ;;
9961 esac
9962 libdir="$save_libdir"
9963 for dep in $dependency_libs; do
9964 case "$dep" in
9965 -L*)
9966 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9967 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9968 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9969 haveit=
9970 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9971 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9972 if test -n "$GCC"; then
9973 case $host_os in
9974 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9975 esac
9978 if test -z "$haveit"; then
9979 haveit=
9980 for x in $LDFLAGS $LIBINTL; do
9982 acl_save_prefix="$prefix"
9983 prefix="$acl_final_prefix"
9984 acl_save_exec_prefix="$exec_prefix"
9985 exec_prefix="$acl_final_exec_prefix"
9986 eval x=\"$x\"
9987 exec_prefix="$acl_save_exec_prefix"
9988 prefix="$acl_save_prefix"
9990 if test "X$x" = "X-L$additional_libdir"; then
9991 haveit=yes
9992 break
9994 done
9995 if test -z "$haveit"; then
9996 if test -d "$additional_libdir"; then
9997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10000 haveit=
10001 for x in $LDFLAGS $LTLIBINTL; do
10003 acl_save_prefix="$prefix"
10004 prefix="$acl_final_prefix"
10005 acl_save_exec_prefix="$exec_prefix"
10006 exec_prefix="$acl_final_exec_prefix"
10007 eval x=\"$x\"
10008 exec_prefix="$acl_save_exec_prefix"
10009 prefix="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10012 haveit=yes
10013 break
10015 done
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10024 -R*)
10025 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10026 if test "$enable_rpath" != no; then
10027 haveit=
10028 for x in $rpathdirs; do
10029 if test "X$x" = "X$dir"; then
10030 haveit=yes
10031 break
10033 done
10034 if test -z "$haveit"; then
10035 rpathdirs="$rpathdirs $dir"
10037 haveit=
10038 for x in $ltrpathdirs; do
10039 if test "X$x" = "X$dir"; then
10040 haveit=yes
10041 break
10043 done
10044 if test -z "$haveit"; then
10045 ltrpathdirs="$ltrpathdirs $dir"
10049 -l*)
10050 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10052 *.la)
10053 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10056 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10059 esac
10060 done
10062 else
10063 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10064 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10068 done
10069 done
10070 if test "X$rpathdirs" != "X"; then
10071 if test -n "$acl_hardcode_libdir_separator"; then
10072 alldirs=
10073 for found_dir in $rpathdirs; do
10074 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10075 done
10076 acl_save_libdir="$libdir"
10077 libdir="$alldirs"
10078 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10079 libdir="$acl_save_libdir"
10080 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10081 else
10082 for found_dir in $rpathdirs; do
10083 acl_save_libdir="$libdir"
10084 libdir="$found_dir"
10085 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10086 libdir="$acl_save_libdir"
10087 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10088 done
10091 if test "X$ltrpathdirs" != "X"; then
10092 for found_dir in $ltrpathdirs; do
10093 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10094 done
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10103 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10104 if eval \${$gt_func_gnugettext_libintl+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 gt_save_CPPFLAGS="$CPPFLAGS"
10108 CPPFLAGS="$CPPFLAGS $INCINTL"
10109 gt_save_LIBS="$LIBS"
10110 LIBS="$LIBS $LIBINTL"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 #include <libintl.h>
10115 $gt_revision_test_code
10116 extern int _nl_msg_cat_cntr;
10117 extern
10118 #ifdef __cplusplus
10120 #endif
10121 const char *_nl_expand_alias (const char *);
10124 main (void)
10127 bindtextdomain ("", "");
10128 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10131 return 0;
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 eval "$gt_func_gnugettext_libintl=yes"
10136 else
10137 eval "$gt_func_gnugettext_libintl=no"
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10142 LIBS="$LIBS $LIBICONV"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 #include <libintl.h>
10147 $gt_revision_test_code
10148 extern int _nl_msg_cat_cntr;
10149 extern
10150 #ifdef __cplusplus
10152 #endif
10153 const char *_nl_expand_alias (const char *);
10156 main (void)
10159 bindtextdomain ("", "");
10160 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10163 return 0;
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167 LIBINTL="$LIBINTL $LIBICONV"
10168 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10169 eval "$gt_func_gnugettext_libintl=yes"
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10175 CPPFLAGS="$gt_save_CPPFLAGS"
10176 LIBS="$gt_save_LIBS"
10178 eval ac_res=\$$gt_func_gnugettext_libintl
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10180 $as_echo "$ac_res" >&6; }
10183 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10184 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10185 && test "$PACKAGE" != gettext-runtime \
10186 && test "$PACKAGE" != gettext-tools; }; then
10187 gt_use_preinstalled_gnugettext=yes
10188 else
10189 LIBINTL=
10190 LTLIBINTL=
10191 INCINTL=
10196 if test -n "$INTL_MACOSX_LIBS"; then
10197 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10198 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10199 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10200 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10204 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10205 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10207 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10209 else
10210 USE_NLS=no
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10215 $as_echo_n "checking whether to use NLS... " >&6; }
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10217 $as_echo "$USE_NLS" >&6; }
10218 if test "$USE_NLS" = "yes"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10220 $as_echo_n "checking where the gettext function comes from... " >&6; }
10221 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10222 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10223 gt_source="external libintl"
10224 else
10225 gt_source="libc"
10227 else
10228 gt_source="included intl directory"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10231 $as_echo "$gt_source" >&6; }
10234 if test "$USE_NLS" = "yes"; then
10236 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10237 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10239 $as_echo_n "checking how to link with libintl... " >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10241 $as_echo "$LIBINTL" >&6; }
10243 for element in $INCINTL; do
10244 haveit=
10245 for x in $CPPFLAGS; do
10247 acl_save_prefix="$prefix"
10248 prefix="$acl_final_prefix"
10249 acl_save_exec_prefix="$exec_prefix"
10250 exec_prefix="$acl_final_exec_prefix"
10251 eval x=\"$x\"
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10255 if test "X$x" = "X$element"; then
10256 haveit=yes
10257 break
10259 done
10260 if test -z "$haveit"; then
10261 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10263 done
10268 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10271 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10275 POSUB=po
10280 INTLLIBS="$LIBINTL"
10287 # Check whether --enable-largefile was given.
10288 if test "${enable_largefile+set}" = set; then :
10289 enableval=$enable_largefile;
10292 if test "$enable_largefile" != no; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10295 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10296 if ${ac_cv_sys_largefile_CC+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 ac_cv_sys_largefile_CC=no
10300 if test "$GCC" != yes; then
10301 ac_save_CC=$CC
10302 while :; do
10303 # IRIX 6.2 and later do not support large files by default,
10304 # so use the C compiler's -n32 option if that helps.
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <sys/types.h>
10308 /* Check that off_t can represent 2**63 - 1 correctly.
10309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10310 since some C++ compilers masquerading as C compilers
10311 incorrectly reject 9223372036854775807. */
10312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10314 && LARGE_OFF_T % 2147483647 == 1)
10315 ? 1 : -1];
10317 main (void)
10321 return 0;
10323 _ACEOF
10324 if ac_fn_c_try_compile "$LINENO"; then :
10325 break
10327 rm -f core conftest.err conftest.$ac_objext
10328 CC="$CC -n32"
10329 if ac_fn_c_try_compile "$LINENO"; then :
10330 ac_cv_sys_largefile_CC=' -n32'; break
10332 rm -f core conftest.err conftest.$ac_objext
10333 break
10334 done
10335 CC=$ac_save_CC
10336 rm -f conftest.$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10340 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10341 if test "$ac_cv_sys_largefile_CC" != no; then
10342 CC=$CC$ac_cv_sys_largefile_CC
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10346 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10347 if ${ac_cv_sys_file_offset_bits+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 while :; do
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <sys/types.h>
10354 /* Check that off_t can represent 2**63 - 1 correctly.
10355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10356 since some C++ compilers masquerading as C compilers
10357 incorrectly reject 9223372036854775807. */
10358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10360 && LARGE_OFF_T % 2147483647 == 1)
10361 ? 1 : -1];
10363 main (void)
10367 return 0;
10369 _ACEOF
10370 if ac_fn_c_try_compile "$LINENO"; then :
10371 ac_cv_sys_file_offset_bits=no; break
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 #define _FILE_OFFSET_BITS 64
10377 #include <sys/types.h>
10378 /* Check that off_t can represent 2**63 - 1 correctly.
10379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10380 since some C++ compilers masquerading as C compilers
10381 incorrectly reject 9223372036854775807. */
10382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10384 && LARGE_OFF_T % 2147483647 == 1)
10385 ? 1 : -1];
10387 main (void)
10391 return 0;
10393 _ACEOF
10394 if ac_fn_c_try_compile "$LINENO"; then :
10395 ac_cv_sys_file_offset_bits=64; break
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 ac_cv_sys_file_offset_bits=unknown
10399 break
10400 done
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10403 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10404 case $ac_cv_sys_file_offset_bits in #(
10405 no | unknown) ;;
10407 cat >>confdefs.h <<_ACEOF
10408 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10409 _ACEOF
10411 esac
10412 rm -rf conftest*
10413 if test $ac_cv_sys_file_offset_bits = unknown; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10415 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10416 if ${ac_cv_sys_large_files+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 while :; do
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #include <sys/types.h>
10423 /* Check that off_t can represent 2**63 - 1 correctly.
10424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10425 since some C++ compilers masquerading as C compilers
10426 incorrectly reject 9223372036854775807. */
10427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10429 && LARGE_OFF_T % 2147483647 == 1)
10430 ? 1 : -1];
10432 main (void)
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_compile "$LINENO"; then :
10440 ac_cv_sys_large_files=no; break
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 #define _LARGE_FILES 1
10446 #include <sys/types.h>
10447 /* Check that off_t can represent 2**63 - 1 correctly.
10448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10449 since some C++ compilers masquerading as C compilers
10450 incorrectly reject 9223372036854775807. */
10451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10453 && LARGE_OFF_T % 2147483647 == 1)
10454 ? 1 : -1];
10456 main (void)
10460 return 0;
10462 _ACEOF
10463 if ac_fn_c_try_compile "$LINENO"; then :
10464 ac_cv_sys_large_files=1; break
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 ac_cv_sys_large_files=unknown
10468 break
10469 done
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10472 $as_echo "$ac_cv_sys_large_files" >&6; }
10473 case $ac_cv_sys_large_files in #(
10474 no | unknown) ;;
10476 cat >>confdefs.h <<_ACEOF
10477 #define _LARGE_FILES $ac_cv_sys_large_files
10478 _ACEOF
10480 esac
10481 rm -rf conftest*
10488 # Identify characteristics of the host architecture.
10489 unset ac_cv_c_bigendian
10491 if test x"$target_cpu-$platform" = xsparc64-emu ; then
10492 CFLAGS="$CFLAGS -m64"
10493 HOST_CFLAGS="$HOST_CFLAGS -m64"
10496 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10497 HOST_CPPFLAGS="$HOST_CPPFLAGS -D_FILE_OFFSET_BITS=64"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10500 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10501 if ${ac_cv_c_bigendian+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 ac_cv_c_bigendian=unknown
10505 # See if we're dealing with a universal compiler.
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 #ifndef __APPLE_CC__
10509 not a universal capable compiler
10510 #endif
10511 typedef int dummy;
10513 _ACEOF
10514 if ac_fn_c_try_compile "$LINENO"; then :
10516 # Check for potential -arch flags. It is not universal unless
10517 # there are at least two -arch flags with different values.
10518 ac_arch=
10519 ac_prev=
10520 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10521 if test -n "$ac_prev"; then
10522 case $ac_word in
10523 i?86 | x86_64 | ppc | ppc64)
10524 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10525 ac_arch=$ac_word
10526 else
10527 ac_cv_c_bigendian=universal
10528 break
10531 esac
10532 ac_prev=
10533 elif test "x$ac_word" = "x-arch"; then
10534 ac_prev=arch
10536 done
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 if test $ac_cv_c_bigendian = unknown; then
10540 # See if sys/param.h defines the BYTE_ORDER macro.
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543 #include <sys/types.h>
10544 #include <sys/param.h>
10547 main (void)
10549 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10550 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10551 && LITTLE_ENDIAN)
10552 bogus endian macros
10553 #endif
10556 return 0;
10558 _ACEOF
10559 if ac_fn_c_try_compile "$LINENO"; then :
10560 # It does; now see whether it defined to BIG_ENDIAN or not.
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <sys/types.h>
10564 #include <sys/param.h>
10567 main (void)
10569 #if BYTE_ORDER != BIG_ENDIAN
10570 not big endian
10571 #endif
10574 return 0;
10576 _ACEOF
10577 if ac_fn_c_try_compile "$LINENO"; then :
10578 ac_cv_c_bigendian=yes
10579 else
10580 ac_cv_c_bigendian=no
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 if test $ac_cv_c_bigendian = unknown; then
10587 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <limits.h>
10593 main (void)
10595 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10596 bogus endian macros
10597 #endif
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"; then :
10604 # It does; now see whether it defined to _BIG_ENDIAN or not.
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 #include <limits.h>
10610 main (void)
10612 #ifndef _BIG_ENDIAN
10613 not big endian
10614 #endif
10617 return 0;
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 ac_cv_c_bigendian=yes
10622 else
10623 ac_cv_c_bigendian=no
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 if test $ac_cv_c_bigendian = unknown; then
10630 # Compile a test program.
10631 if test "$cross_compiling" = yes; then :
10632 # Try to guess by grepping values from an object file.
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 short int ascii_mm[] =
10636 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10637 short int ascii_ii[] =
10638 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10639 int use_ascii (int i) {
10640 return ascii_mm[i] + ascii_ii[i];
10642 short int ebcdic_ii[] =
10643 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10644 short int ebcdic_mm[] =
10645 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10646 int use_ebcdic (int i) {
10647 return ebcdic_mm[i] + ebcdic_ii[i];
10649 extern int foo;
10652 main (void)
10654 return use_ascii (foo) == use_ebcdic (foo);
10656 return 0;
10658 _ACEOF
10659 if ac_fn_c_try_compile "$LINENO"; then :
10660 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10661 ac_cv_c_bigendian=yes
10663 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10664 if test "$ac_cv_c_bigendian" = unknown; then
10665 ac_cv_c_bigendian=no
10666 else
10667 # finding both strings is unlikely to happen, but who knows?
10668 ac_cv_c_bigendian=unknown
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 $ac_includes_default
10678 main (void)
10681 /* Are we little or big endian? From Harbison&Steele. */
10682 union
10684 long int l;
10685 char c[sizeof (long int)];
10686 } u;
10687 u.l = 1;
10688 return u.c[sizeof (long int) - 1] == 1;
10691 return 0;
10693 _ACEOF
10694 if ac_fn_c_try_run "$LINENO"; then :
10695 ac_cv_c_bigendian=no
10696 else
10697 ac_cv_c_bigendian=yes
10699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10700 conftest.$ac_objext conftest.beam conftest.$ac_ext
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10706 $as_echo "$ac_cv_c_bigendian" >&6; }
10707 case $ac_cv_c_bigendian in #(
10708 yes)
10709 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10710 ;; #(
10712 ;; #(
10713 universal)
10715 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10717 ;; #(
10719 as_fn_error $? "unknown endianness
10720 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10721 esac
10723 # The cast to long int works around a bug in the HP C Compiler
10724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10726 # This bug is HP SR number 8606223364.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10728 $as_echo_n "checking size of void *... " >&6; }
10729 if ${ac_cv_sizeof_void_p+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
10734 else
10735 if test "$ac_cv_type_void_p" = yes; then
10736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10738 as_fn_error 77 "cannot compute sizeof (void *)
10739 See \`config.log' for more details" "$LINENO" 5; }
10740 else
10741 ac_cv_sizeof_void_p=0
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10747 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10751 cat >>confdefs.h <<_ACEOF
10752 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10753 _ACEOF
10756 # The cast to long int works around a bug in the HP C Compiler
10757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10759 # This bug is HP SR number 8606223364.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10761 $as_echo_n "checking size of long... " >&6; }
10762 if ${ac_cv_sizeof_long+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10767 else
10768 if test "$ac_cv_type_long" = yes; then
10769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10771 as_fn_error 77 "cannot compute sizeof (long)
10772 See \`config.log' for more details" "$LINENO" 5; }
10773 else
10774 ac_cv_sizeof_long=0
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10780 $as_echo "$ac_cv_sizeof_long" >&6; }
10784 cat >>confdefs.h <<_ACEOF
10785 #define SIZEOF_LONG $ac_cv_sizeof_long
10786 _ACEOF
10790 case "$host_os" in
10791 cygwin | windows* | mingw32*)
10792 HOST_CPPFLAGS="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10793 CPPFLAGS="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10794 # The cast to long int works around a bug in the HP C Compiler
10795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10797 # This bug is HP SR number 8606223364.
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
10799 $as_echo_n "checking size of TCHAR... " >&6; }
10800 if ${ac_cv_sizeof_TCHAR+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR" "#include <windows.h>
10804 "; then :
10806 else
10807 if test "$ac_cv_type_TCHAR" = yes; then
10808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10810 as_fn_error 77 "cannot compute sizeof (TCHAR)
10811 See \`config.log' for more details" "$LINENO" 5; }
10812 else
10813 ac_cv_sizeof_TCHAR=0
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
10819 $as_echo "$ac_cv_sizeof_TCHAR" >&6; }
10823 cat >>confdefs.h <<_ACEOF
10824 #define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
10825 _ACEOF
10829 esac
10831 case "$host_os" in
10832 cygwin | windows* | mingw32* | aros*)
10835 # The cast to long int works around a bug in the HP C Compiler
10836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10838 # This bug is HP SR number 8606223364.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10840 $as_echo_n "checking size of off_t... " >&6; }
10841 if ${ac_cv_sizeof_off_t+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10846 else
10847 if test "$ac_cv_type_off_t" = yes; then
10848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10850 as_fn_error 77 "cannot compute sizeof (off_t)
10851 See \`config.log' for more details" "$LINENO" 5; }
10852 else
10853 ac_cv_sizeof_off_t=0
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10859 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10863 cat >>confdefs.h <<_ACEOF
10864 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10865 _ACEOF
10868 test x"$ac_cv_sizeof_off_t" = x8 || as_fn_error $? "Large file support is required" "$LINENO" 5;;
10869 esac
10871 if test x$USE_NLS = xno; then
10872 HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext"
10875 if test "x$cross_compiling" = xyes; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
10877 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
10878 else
10879 # Extract the first word of "help2man", so it can be a program name with args.
10880 set dummy help2man; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_HELP2MAN+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 case $HELP2MAN in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10902 done
10903 done
10904 IFS=$as_save_IFS
10907 esac
10909 HELP2MAN=$ac_cv_path_HELP2MAN
10910 if test -n "$HELP2MAN"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
10912 $as_echo "$HELP2MAN" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10921 # Check for functions and headers.
10922 for ac_func in posix_memalign memalign getextmntent
10923 do :
10924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10929 _ACEOF
10932 done
10934 for ac_header in sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h
10935 do :
10936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10939 cat >>confdefs.h <<_ACEOF
10940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 _ACEOF
10945 done
10948 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
10949 #include <sys/param.h>
10950 #include <sys/mount.h>
10952 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
10956 _ACEOF
10962 ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
10963 #include <sys/param.h>
10964 #include <sys/mount.h>
10966 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes; then :
10968 cat >>confdefs.h <<_ACEOF
10969 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
10970 _ACEOF
10976 # For opendisk() and getrawpartition() on NetBSD.
10977 # Used in util/deviceiter.c and in util/hostdisk.c.
10978 ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
10979 if test "x$ac_cv_header_util_h" = xyes; then :
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
10982 $as_echo_n "checking for opendisk in -lutil... " >&6; }
10983 if ${ac_cv_lib_util_opendisk+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 ac_check_lib_save_LIBS=$LIBS
10987 LIBS="-lutil $LIBS"
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char opendisk ();
10999 main (void)
11001 return opendisk ();
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_util_opendisk=yes
11008 else
11009 ac_cv_lib_util_opendisk=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
11016 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
11017 if test "x$ac_cv_lib_util_opendisk" = xyes; then :
11019 LIBUTIL="-lutil"
11021 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
11027 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
11028 if ${ac_cv_lib_util_getrawpartition+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lutil $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char getrawpartition ();
11044 main (void)
11046 return getrawpartition ();
11048 return 0;
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_util_getrawpartition=yes
11053 else
11054 ac_cv_lib_util_getrawpartition=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
11061 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
11062 if test "x$ac_cv_lib_util_getrawpartition" = xyes; then :
11064 LIBUTIL="-lutil"
11066 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
11078 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
11079 if ${grub_cv_host_cc_wtrampolines+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11083 SAVED_CFLAGS="$CFLAGS"
11084 CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #include <stdarg.h>
11088 int va_arg_func (int fixed, va_list args);
11090 main (void)
11094 return 0;
11096 _ACEOF
11097 if ac_fn_c_try_compile "$LINENO"; then :
11098 grub_cv_host_cc_wtrampolines=yes
11099 else
11100 grub_cv_host_cc_wtrampolines=no
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 CFLAGS="$SAVED_CFLAGS"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
11107 $as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
11109 if test x"$grub_host_cv_cc_wtrampolines" = xyes ; then
11110 HOST_CFLAGS="$HOST_CFLAGS -Wtrampolines"
11114 # Check for host and build compilers.
11116 HOST_CC=$CC
11117 for ac_prog in gcc egcs cc
11119 # Extract the first word of "$ac_prog", so it can be a program name with args.
11120 set dummy $ac_prog; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_prog_BUILD_CC+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test -n "$BUILD_CC"; then
11127 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11128 else
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136 ac_cv_prog_BUILD_CC="$ac_prog"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11140 done
11141 done
11142 IFS=$as_save_IFS
11146 BUILD_CC=$ac_cv_prog_BUILD_CC
11147 if test -n "$BUILD_CC"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11149 $as_echo "$BUILD_CC" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11156 test -n "$BUILD_CC" && break
11157 done
11159 test -z "$BUILD_CC" && as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
11160 BUILD_CPP="$BUILD_CC -E"
11162 case "$build_os" in
11163 haiku*) BUILD_LIBM= ;;
11164 *) BUILD_LIBM=-lm ;;
11165 esac
11168 case "$build_os" in
11169 cygwin*|mingw32*|mingw64*) BUILD_EXEEXT=.exe ;;
11170 *) BUILD_EXEEXT= ;;
11171 esac
11174 # For gnulib.
11180 LIBC_FATAL_STDERR_=1
11181 export LIBC_FATAL_STDERR_
11183 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11184 if test "x$ac_cv_type_size_t" = xyes; then :
11186 else
11188 cat >>confdefs.h <<_ACEOF
11189 #define size_t unsigned int
11190 _ACEOF
11194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11195 # for constant arguments. Useless!
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11197 $as_echo_n "checking for working alloca.h... " >&6; }
11198 if ${ac_cv_working_alloca_h+:} false; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #include <alloca.h>
11205 main (void)
11207 char *p = (char *) alloca (2 * sizeof (int));
11208 if (p) return 0;
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_working_alloca_h=yes
11215 else
11216 ac_cv_working_alloca_h=no
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11222 $as_echo "$ac_cv_working_alloca_h" >&6; }
11223 if test $ac_cv_working_alloca_h = yes; then
11225 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11230 $as_echo_n "checking for alloca... " >&6; }
11231 if ${ac_cv_func_alloca_works+:} false; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236 #ifdef __GNUC__
11237 # define alloca __builtin_alloca
11238 #else
11239 # ifdef _MSC_VER
11240 # include <malloc.h>
11241 # define alloca _alloca
11242 # else
11243 # ifdef HAVE_ALLOCA_H
11244 # include <alloca.h>
11245 # else
11246 # ifdef _AIX
11247 #pragma alloca
11248 # else
11249 # ifndef alloca /* predefined by HP cc +Olibcalls */
11250 void *alloca (size_t);
11251 # endif
11252 # endif
11253 # endif
11254 # endif
11255 #endif
11258 main (void)
11260 char *p = (char *) alloca (1);
11261 if (p) return 0;
11263 return 0;
11265 _ACEOF
11266 if ac_fn_c_try_link "$LINENO"; then :
11267 ac_cv_func_alloca_works=yes
11268 else
11269 ac_cv_func_alloca_works=no
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11275 $as_echo "$ac_cv_func_alloca_works" >&6; }
11277 if test $ac_cv_func_alloca_works = yes; then
11279 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11281 else
11282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11283 # that cause trouble. Some versions do not even contain alloca or
11284 # contain a buggy version. If you still want to use their alloca,
11285 # use ar to extract alloca.o from them instead of compiling alloca.c.
11291 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11293 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11297 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11298 if ${ac_cv_os_cray+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #if defined CRAY && ! defined CRAY2
11304 webecray
11305 #else
11306 wenotbecray
11307 #endif
11309 _ACEOF
11310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11311 $EGREP "webecray" >/dev/null 2>&1; then :
11312 ac_cv_os_cray=yes
11313 else
11314 ac_cv_os_cray=no
11316 rm -f conftest*
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11320 $as_echo "$ac_cv_os_cray" >&6; }
11321 if test $ac_cv_os_cray = yes; then
11322 for ac_func in _getb67 GETB67 getb67; do
11323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11325 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11327 cat >>confdefs.h <<_ACEOF
11328 #define CRAY_STACKSEG_END $ac_func
11329 _ACEOF
11331 break
11334 done
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11338 $as_echo_n "checking stack direction for C alloca... " >&6; }
11339 if ${ac_cv_c_stack_direction+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test "$cross_compiling" = yes; then :
11343 ac_cv_c_stack_direction=0
11344 else
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11347 $ac_includes_default
11349 find_stack_direction (int *addr, int depth)
11351 int dir, dummy = 0;
11352 if (! addr)
11353 addr = &dummy;
11354 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11355 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11356 return dir + dummy;
11360 main (int argc, char **argv)
11362 return find_stack_direction (0, argc + !argv + 20) < 0;
11364 _ACEOF
11365 if ac_fn_c_try_run "$LINENO"; then :
11366 ac_cv_c_stack_direction=1
11367 else
11368 ac_cv_c_stack_direction=-1
11370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11371 conftest.$ac_objext conftest.beam conftest.$ac_ext
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11376 $as_echo "$ac_cv_c_stack_direction" >&6; }
11377 cat >>confdefs.h <<_ACEOF
11378 #define STACK_DIRECTION $ac_cv_c_stack_direction
11379 _ACEOF
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11385 $as_echo_n "checking for inline... " >&6; }
11386 if ${ac_cv_c_inline+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 ac_cv_c_inline=no
11390 for ac_kw in inline __inline__ __inline; do
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393 #ifndef __cplusplus
11394 typedef int foo_t;
11395 static $ac_kw foo_t static_foo () {return 0; }
11396 $ac_kw foo_t foo () {return 0; }
11397 #endif
11399 _ACEOF
11400 if ac_fn_c_try_compile "$LINENO"; then :
11401 ac_cv_c_inline=$ac_kw
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 test "$ac_cv_c_inline" != no && break
11405 done
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11409 $as_echo "$ac_cv_c_inline" >&6; }
11411 case $ac_cv_c_inline in
11412 inline | yes) ;;
11414 case $ac_cv_c_inline in
11415 no) ac_val=;;
11416 *) ac_val=$ac_cv_c_inline;;
11417 esac
11418 cat >>confdefs.h <<_ACEOF
11419 #ifndef __cplusplus
11420 #define inline $ac_val
11421 #endif
11422 _ACEOF
11424 esac
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11427 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11428 if ${ac_cv_c_restrict+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_cv_c_restrict=no
11432 # The order here caters to the fact that C++ does not require restrict.
11433 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 typedef int * int_ptr;
11437 int foo (int_ptr $ac_kw ip) {
11438 return ip[0];
11441 main (void)
11443 int s[1];
11444 int * $ac_kw t = s;
11445 t[0] = 0;
11446 return foo(t)
11448 return 0;
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452 ac_cv_c_restrict=$ac_kw
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 test "$ac_cv_c_restrict" != no && break
11456 done
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11460 $as_echo "$ac_cv_c_restrict" >&6; }
11462 case $ac_cv_c_restrict in
11463 restrict) ;;
11464 no) $as_echo "#define restrict /**/" >>confdefs.h
11466 *) cat >>confdefs.h <<_ACEOF
11467 #define restrict $ac_cv_c_restrict
11468 _ACEOF
11470 esac
11472 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
11473 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
11474 ac_have_decl=1
11475 else
11476 ac_have_decl=0
11479 cat >>confdefs.h <<_ACEOF
11480 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
11481 _ACEOF
11483 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
11484 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
11485 ac_have_decl=1
11486 else
11487 ac_have_decl=0
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
11492 _ACEOF
11494 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
11495 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
11496 ac_have_decl=1
11497 else
11498 ac_have_decl=0
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
11503 _ACEOF
11505 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
11506 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
11507 ac_have_decl=1
11508 else
11509 ac_have_decl=0
11512 cat >>confdefs.h <<_ACEOF
11513 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
11514 _ACEOF
11516 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
11517 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
11518 ac_have_decl=1
11519 else
11520 ac_have_decl=0
11523 cat >>confdefs.h <<_ACEOF
11524 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
11525 _ACEOF
11527 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
11528 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
11529 ac_have_decl=1
11530 else
11531 ac_have_decl=0
11534 cat >>confdefs.h <<_ACEOF
11535 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
11536 _ACEOF
11538 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
11539 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
11540 ac_have_decl=1
11541 else
11542 ac_have_decl=0
11545 cat >>confdefs.h <<_ACEOF
11546 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
11547 _ACEOF
11549 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
11550 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
11551 ac_have_decl=1
11552 else
11553 ac_have_decl=0
11556 cat >>confdefs.h <<_ACEOF
11557 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
11558 _ACEOF
11560 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
11561 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
11562 ac_have_decl=1
11563 else
11564 ac_have_decl=0
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
11569 _ACEOF
11571 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11572 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11573 ac_have_decl=1
11574 else
11575 ac_have_decl=0
11578 cat >>confdefs.h <<_ACEOF
11579 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11580 _ACEOF
11582 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
11583 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
11584 ac_have_decl=1
11585 else
11586 ac_have_decl=0
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
11591 _ACEOF
11593 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
11594 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
11595 ac_have_decl=1
11596 else
11597 ac_have_decl=0
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
11602 _ACEOF
11604 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
11605 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
11606 ac_have_decl=1
11607 else
11608 ac_have_decl=0
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
11613 _ACEOF
11618 for ac_func in $ac_func_list
11619 do :
11620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11622 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11623 cat >>confdefs.h <<_ACEOF
11624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11625 _ACEOF
11628 done
11637 for ac_header in $ac_header_list
11638 do :
11639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11643 cat >>confdefs.h <<_ACEOF
11644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11645 _ACEOF
11649 done
11656 XGETTEXT_EXTRA_OPTIONS=
11659 GNULIB_BTOWC=0;
11660 GNULIB_WCTOB=0;
11661 GNULIB_MBSINIT=0;
11662 GNULIB_MBRTOWC=0;
11663 GNULIB_MBRLEN=0;
11664 GNULIB_MBSRTOWCS=0;
11665 GNULIB_MBSNRTOWCS=0;
11666 GNULIB_WCRTOMB=0;
11667 GNULIB_WCSRTOMBS=0;
11668 GNULIB_WCSNRTOMBS=0;
11669 GNULIB_WCWIDTH=0;
11670 GNULIB_WMEMCHR=0;
11671 GNULIB_WMEMCMP=0;
11672 GNULIB_WMEMCPY=0;
11673 GNULIB_WMEMMOVE=0;
11674 GNULIB_WMEMSET=0;
11675 GNULIB_WCSLEN=0;
11676 GNULIB_WCSNLEN=0;
11677 GNULIB_WCSCPY=0;
11678 GNULIB_WCPCPY=0;
11679 GNULIB_WCSNCPY=0;
11680 GNULIB_WCPNCPY=0;
11681 GNULIB_WCSCAT=0;
11682 GNULIB_WCSNCAT=0;
11683 GNULIB_WCSCMP=0;
11684 GNULIB_WCSNCMP=0;
11685 GNULIB_WCSCASECMP=0;
11686 GNULIB_WCSNCASECMP=0;
11687 GNULIB_WCSCOLL=0;
11688 GNULIB_WCSXFRM=0;
11689 GNULIB_WCSDUP=0;
11690 GNULIB_WCSCHR=0;
11691 GNULIB_WCSRCHR=0;
11692 GNULIB_WCSCSPN=0;
11693 GNULIB_WCSSPN=0;
11694 GNULIB_WCSPBRK=0;
11695 GNULIB_WCSSTR=0;
11696 GNULIB_WCSTOK=0;
11697 GNULIB_WCSWIDTH=0;
11698 HAVE_BTOWC=1;
11699 HAVE_MBSINIT=1;
11700 HAVE_MBRTOWC=1;
11701 HAVE_MBRLEN=1;
11702 HAVE_MBSRTOWCS=1;
11703 HAVE_MBSNRTOWCS=1;
11704 HAVE_WCRTOMB=1;
11705 HAVE_WCSRTOMBS=1;
11706 HAVE_WCSNRTOMBS=1;
11707 HAVE_WMEMCHR=1;
11708 HAVE_WMEMCMP=1;
11709 HAVE_WMEMCPY=1;
11710 HAVE_WMEMMOVE=1;
11711 HAVE_WMEMSET=1;
11712 HAVE_WCSLEN=1;
11713 HAVE_WCSNLEN=1;
11714 HAVE_WCSCPY=1;
11715 HAVE_WCPCPY=1;
11716 HAVE_WCSNCPY=1;
11717 HAVE_WCPNCPY=1;
11718 HAVE_WCSCAT=1;
11719 HAVE_WCSNCAT=1;
11720 HAVE_WCSCMP=1;
11721 HAVE_WCSNCMP=1;
11722 HAVE_WCSCASECMP=1;
11723 HAVE_WCSNCASECMP=1;
11724 HAVE_WCSCOLL=1;
11725 HAVE_WCSXFRM=1;
11726 HAVE_WCSDUP=1;
11727 HAVE_WCSCHR=1;
11728 HAVE_WCSRCHR=1;
11729 HAVE_WCSCSPN=1;
11730 HAVE_WCSSPN=1;
11731 HAVE_WCSPBRK=1;
11732 HAVE_WCSSTR=1;
11733 HAVE_WCSTOK=1;
11734 HAVE_WCSWIDTH=1;
11735 HAVE_DECL_WCTOB=1;
11736 HAVE_DECL_WCWIDTH=1;
11737 REPLACE_MBSTATE_T=0;
11738 REPLACE_BTOWC=0;
11739 REPLACE_WCTOB=0;
11740 REPLACE_MBSINIT=0;
11741 REPLACE_MBRTOWC=0;
11742 REPLACE_MBRLEN=0;
11743 REPLACE_MBSRTOWCS=0;
11744 REPLACE_MBSNRTOWCS=0;
11745 REPLACE_WCRTOMB=0;
11746 REPLACE_WCSRTOMBS=0;
11747 REPLACE_WCSNRTOMBS=0;
11748 REPLACE_WCWIDTH=0;
11749 REPLACE_WCSWIDTH=0;
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11753 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11754 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 gl_cv_header_wchar_h_correct_inline=yes
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11761 #define wcstod renamed_wcstod
11762 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11763 <wchar.h>.
11764 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11765 included before <wchar.h>. */
11766 #include <stddef.h>
11767 #include <stdio.h>
11768 #include <time.h>
11769 #include <wchar.h>
11770 extern int zero (void);
11771 int main () { return zero(); }
11773 _ACEOF
11774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11775 (eval $ac_compile) 2>&5
11776 ac_status=$?
11777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778 test $ac_status = 0; }; then
11779 mv conftest.$ac_objext conftest1.$ac_objext
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #define wcstod renamed_wcstod
11784 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11785 <wchar.h>.
11786 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11787 included before <wchar.h>. */
11788 #include <stddef.h>
11789 #include <stdio.h>
11790 #include <time.h>
11791 #include <wchar.h>
11792 int zero (void) { return 0; }
11794 _ACEOF
11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11796 (eval $ac_compile) 2>&5
11797 ac_status=$?
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; }; then
11800 mv conftest.$ac_objext conftest2.$ac_objext
11801 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11803 else
11804 gl_cv_header_wchar_h_correct_inline=no
11808 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11812 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11813 if test $gl_cv_header_wchar_h_correct_inline = no; then
11814 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11815 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11816 C99 mode. You have four options:
11817 - Add the flag -fgnu89-inline to CC and reconfigure, or
11818 - Fix your include files, using parts of
11819 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11820 - Use a gcc version older than 4.3, or
11821 - Don't use the flags -std=c99 or -std=gnu99.
11822 Configuration aborted." "$LINENO" 5
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11829 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11830 if ${am_cv_langinfo_codeset+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <langinfo.h>
11837 main (void)
11839 char* cs = nl_langinfo(CODESET); return !cs;
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 am_cv_langinfo_codeset=yes
11846 else
11847 am_cv_langinfo_codeset=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11854 $as_echo "$am_cv_langinfo_codeset" >&6; }
11855 if test $am_cv_langinfo_codeset = yes; then
11857 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11865 $as_echo_n "checking for a traditional french locale... " >&6; }
11866 if ${gt_cv_locale_fr+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11873 #include <locale.h>
11874 #include <time.h>
11875 #if HAVE_LANGINFO_CODESET
11876 # include <langinfo.h>
11877 #endif
11878 #include <stdlib.h>
11879 #include <string.h>
11880 struct tm t;
11881 char buf[16];
11882 int main () {
11883 /* Check whether the given locale name is recognized by the system. */
11884 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11885 /* On native Windows, setlocale(category, "") looks at the system settings,
11886 not at the environment variables. Also, when an encoding suffix such
11887 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11888 category of the locale to "C". */
11889 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11890 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11891 return 1;
11892 #else
11893 if (setlocale (LC_ALL, "") == NULL) return 1;
11894 #endif
11895 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11896 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11897 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11898 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11899 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11900 some unit tests fail.
11901 On MirBSD 10, when an unsupported locale is specified, setlocale()
11902 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11903 #if HAVE_LANGINFO_CODESET
11905 const char *cs = nl_langinfo (CODESET);
11906 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11907 || strcmp (cs, "UTF-8") == 0)
11908 return 1;
11910 #endif
11911 #ifdef __CYGWIN__
11912 /* On Cygwin, avoid locale names without encoding suffix, because the
11913 locale_charset() function relies on the encoding suffix. Note that
11914 LC_ALL is set on the command line. */
11915 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11916 #endif
11917 /* Check whether in the abbreviation of the second month, the second
11918 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11919 one byte long. This excludes the UTF-8 encoding. */
11920 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11921 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11922 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11923 /* Check whether the decimal separator is a comma.
11924 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11925 are nl_langinfo(RADIXCHAR) are both ".". */
11926 if (localeconv () ->decimal_point[0] != ',') return 1;
11927 #endif
11928 return 0;
11931 _ACEOF
11932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11933 (eval $ac_link) 2>&5
11934 ac_status=$?
11935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11937 case "$host_os" in
11938 # Handle native Windows specially, because there setlocale() interprets
11939 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11940 # "fr" or "fra" as "French" or "French_France.1252",
11941 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11942 # "ja" as "Japanese" or "Japanese_Japan.932",
11943 # and similar.
11944 mingw*)
11945 # Test for the native Windows locale name.
11946 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11947 gt_cv_locale_fr=French_France.1252
11948 else
11949 # None found.
11950 gt_cv_locale_fr=none
11954 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11955 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11956 # configure script would override the LC_ALL setting. Likewise for
11957 # LC_CTYPE, which is also set at the beginning of the configure script.
11958 # Test for the usual locale name.
11959 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11960 gt_cv_locale_fr=fr_FR
11961 else
11962 # Test for the locale name with explicit encoding suffix.
11963 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11964 gt_cv_locale_fr=fr_FR.ISO-8859-1
11965 else
11966 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11967 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11968 gt_cv_locale_fr=fr_FR.ISO8859-1
11969 else
11970 # Test for the HP-UX locale name.
11971 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11972 gt_cv_locale_fr=fr_FR.iso88591
11973 else
11974 # Test for the Solaris 7 locale name.
11975 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11976 gt_cv_locale_fr=fr
11977 else
11978 # None found.
11979 gt_cv_locale_fr=none
11986 esac
11988 rm -fr conftest*
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11992 $as_echo "$gt_cv_locale_fr" >&6; }
11993 LOCALE_FR=$gt_cv_locale_fr
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11999 $as_echo_n "checking whether // is distinct from /... " >&6; }
12000 if ${gl_cv_double_slash_root+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 if test x"$cross_compiling" = xyes ; then
12004 # When cross-compiling, there is no way to tell whether // is special
12005 # short of a list of hosts. However, the only known hosts to date
12006 # that have a distinct // are Apollo DomainOS (too old to port to),
12007 # Cygwin, and z/OS. If anyone knows of another system for which // has
12008 # special semantics and is distinct from /, please report it to
12009 # <bug-gnulib@gnu.org>.
12010 case $host in
12011 *-cygwin | i370-ibm-openedition)
12012 gl_cv_double_slash_root=yes ;;
12014 # Be optimistic and assume that / and // are the same when we
12015 # don't know.
12016 gl_cv_double_slash_root='unknown, assuming no' ;;
12017 esac
12018 else
12019 set x `ls -di / // 2>/dev/null`
12020 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12021 gl_cv_double_slash_root=no
12022 else
12023 gl_cv_double_slash_root=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12028 $as_echo "$gl_cv_double_slash_root" >&6; }
12029 if test "$gl_cv_double_slash_root" = yes; then
12031 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
12038 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12039 if ${gl_cv_have_include_next+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 rm -rf conftestd1a conftestd1b conftestd2
12043 mkdir conftestd1a conftestd1b conftestd2
12044 cat <<EOF > conftestd1a/conftest.h
12045 #define DEFINED_IN_CONFTESTD1
12046 #include_next <conftest.h>
12047 #ifdef DEFINED_IN_CONFTESTD2
12048 int foo;
12049 #else
12050 #error "include_next doesn't work"
12051 #endif
12053 cat <<EOF > conftestd1b/conftest.h
12054 #define DEFINED_IN_CONFTESTD1
12055 #include <stdio.h>
12056 #include_next <conftest.h>
12057 #ifdef DEFINED_IN_CONFTESTD2
12058 int foo;
12059 #else
12060 #error "include_next doesn't work"
12061 #endif
12063 cat <<EOF > conftestd2/conftest.h
12064 #ifndef DEFINED_IN_CONFTESTD1
12065 #error "include_next test doesn't work"
12066 #endif
12067 #define DEFINED_IN_CONFTESTD2
12069 gl_save_CPPFLAGS="$CPPFLAGS"
12070 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 #include <conftest.h>
12074 _ACEOF
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076 gl_cv_have_include_next=yes
12077 else
12078 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 #include <conftest.h>
12082 _ACEOF
12083 if ac_fn_c_try_compile "$LINENO"; then :
12084 gl_cv_have_include_next=buggy
12085 else
12086 gl_cv_have_include_next=no
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 CPPFLAGS="$gl_save_CPPFLAGS"
12093 rm -rf conftestd1a conftestd1b conftestd2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
12097 $as_echo "$gl_cv_have_include_next" >&6; }
12098 PRAGMA_SYSTEM_HEADER=
12099 if test $gl_cv_have_include_next = yes; then
12100 INCLUDE_NEXT=include_next
12101 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12102 if test -n "$GCC"; then
12103 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12105 else
12106 if test $gl_cv_have_include_next = buggy; then
12107 INCLUDE_NEXT=include
12108 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12109 else
12110 INCLUDE_NEXT=include
12111 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
12118 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12119 if ${gl_cv_pragma_columns+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 #ifdef __TANDEM
12126 choke me
12127 #endif
12129 _ACEOF
12130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12131 $EGREP "choke me" >/dev/null 2>&1; then :
12132 gl_cv_pragma_columns=yes
12133 else
12134 gl_cv_pragma_columns=no
12136 rm -f conftest*
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
12141 $as_echo "$gl_cv_pragma_columns" >&6; }
12142 if test $gl_cv_pragma_columns = yes; then
12143 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12144 else
12145 PRAGMA_COLUMNS=
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
12152 $as_echo_n "checking for complete errno.h... " >&6; }
12153 if ${gl_cv_header_errno_h_complete+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 #include <errno.h>
12161 #if !defined ETXTBSY
12162 booboo
12163 #endif
12164 #if !defined ENOMSG
12165 booboo
12166 #endif
12167 #if !defined EIDRM
12168 booboo
12169 #endif
12170 #if !defined ENOLINK
12171 booboo
12172 #endif
12173 #if !defined EPROTO
12174 booboo
12175 #endif
12176 #if !defined EMULTIHOP
12177 booboo
12178 #endif
12179 #if !defined EBADMSG
12180 booboo
12181 #endif
12182 #if !defined EOVERFLOW
12183 booboo
12184 #endif
12185 #if !defined ENOTSUP
12186 booboo
12187 #endif
12188 #if !defined ENETRESET
12189 booboo
12190 #endif
12191 #if !defined ECONNABORTED
12192 booboo
12193 #endif
12194 #if !defined ESTALE
12195 booboo
12196 #endif
12197 #if !defined EDQUOT
12198 booboo
12199 #endif
12200 #if !defined ECANCELED
12201 booboo
12202 #endif
12203 #if !defined EOWNERDEAD
12204 booboo
12205 #endif
12206 #if !defined ENOTRECOVERABLE
12207 booboo
12208 #endif
12209 #if !defined EILSEQ
12210 booboo
12211 #endif
12213 _ACEOF
12214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12215 $EGREP "booboo" >/dev/null 2>&1; then :
12216 gl_cv_header_errno_h_complete=no
12217 else
12218 gl_cv_header_errno_h_complete=yes
12220 rm -f conftest*
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
12225 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12226 if test $gl_cv_header_errno_h_complete = yes; then
12227 ERRNO_H=''
12228 else
12237 if test $gl_cv_have_include_next = yes; then
12238 gl_cv_next_errno_h='<'errno.h'>'
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
12241 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12242 if ${gl_cv_next_errno_h+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 #include <errno.h>
12250 _ACEOF
12251 case "$host_os" in
12252 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12253 *) gl_absname_cpp="$ac_cpp" ;;
12254 esac
12256 case "$host_os" in
12257 mingw*)
12258 gl_dirsep_regex='[/\\]'
12261 gl_dirsep_regex='\/'
12263 esac
12264 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12266 gl_header_literal_regex=`echo 'errno.h' \
12267 | sed -e "$gl_make_literal_regex_sed"`
12268 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12269 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12270 s|^/[^/]|//&|
12274 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12275 sed -n "$gl_absolute_header_sed"`'"'
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
12280 $as_echo "$gl_cv_next_errno_h" >&6; }
12282 NEXT_ERRNO_H=$gl_cv_next_errno_h
12284 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12286 gl_next_as_first_directive='<'errno.h'>'
12287 else
12288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12289 gl_next_as_first_directive=$gl_cv_next_errno_h
12291 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12296 ERRNO_H='errno.h'
12299 if test -n "$ERRNO_H"; then
12300 GL_GENERATE_ERRNO_H_TRUE=
12301 GL_GENERATE_ERRNO_H_FALSE='#'
12302 else
12303 GL_GENERATE_ERRNO_H_TRUE='#'
12304 GL_GENERATE_ERRNO_H_FALSE=
12308 if test -n "$ERRNO_H"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
12310 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12311 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 #include <errno.h>
12319 #ifdef EMULTIHOP
12321 #endif
12323 _ACEOF
12324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325 $EGREP "yes" >/dev/null 2>&1; then :
12326 gl_cv_header_errno_h_EMULTIHOP=yes
12327 else
12328 gl_cv_header_errno_h_EMULTIHOP=no
12330 rm -f conftest*
12332 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12336 #define _XOPEN_SOURCE_EXTENDED 1
12337 #include <errno.h>
12338 #ifdef EMULTIHOP
12340 #endif
12342 _ACEOF
12343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12344 $EGREP "yes" >/dev/null 2>&1; then :
12345 gl_cv_header_errno_h_EMULTIHOP=hidden
12347 rm -f conftest*
12349 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12350 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
12351 #define _XOPEN_SOURCE_EXTENDED 1
12352 #include <errno.h>
12353 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12354 #include <stdio.h>
12355 #include <stdlib.h>
12356 "; then :
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12365 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12366 case $gl_cv_header_errno_h_EMULTIHOP in
12367 yes | no)
12368 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12371 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12373 esac
12379 if test -n "$ERRNO_H"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
12381 $as_echo_n "checking for ENOLINK value... " >&6; }
12382 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 #include <errno.h>
12390 #ifdef ENOLINK
12392 #endif
12394 _ACEOF
12395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12396 $EGREP "yes" >/dev/null 2>&1; then :
12397 gl_cv_header_errno_h_ENOLINK=yes
12398 else
12399 gl_cv_header_errno_h_ENOLINK=no
12401 rm -f conftest*
12403 if test $gl_cv_header_errno_h_ENOLINK = no; then
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12407 #define _XOPEN_SOURCE_EXTENDED 1
12408 #include <errno.h>
12409 #ifdef ENOLINK
12411 #endif
12413 _ACEOF
12414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12415 $EGREP "yes" >/dev/null 2>&1; then :
12416 gl_cv_header_errno_h_ENOLINK=hidden
12418 rm -f conftest*
12420 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12421 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
12422 #define _XOPEN_SOURCE_EXTENDED 1
12423 #include <errno.h>
12424 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12425 #include <stdio.h>
12426 #include <stdlib.h>
12427 "; then :
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
12436 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
12437 case $gl_cv_header_errno_h_ENOLINK in
12438 yes | no)
12439 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
12442 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
12444 esac
12450 if test -n "$ERRNO_H"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
12452 $as_echo_n "checking for EOVERFLOW value... " >&6; }
12453 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 #include <errno.h>
12461 #ifdef EOVERFLOW
12463 #endif
12465 _ACEOF
12466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12467 $EGREP "yes" >/dev/null 2>&1; then :
12468 gl_cv_header_errno_h_EOVERFLOW=yes
12469 else
12470 gl_cv_header_errno_h_EOVERFLOW=no
12472 rm -f conftest*
12474 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 #define _XOPEN_SOURCE_EXTENDED 1
12479 #include <errno.h>
12480 #ifdef EOVERFLOW
12482 #endif
12484 _ACEOF
12485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12486 $EGREP "yes" >/dev/null 2>&1; then :
12487 gl_cv_header_errno_h_EOVERFLOW=hidden
12489 rm -f conftest*
12491 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
12492 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
12493 #define _XOPEN_SOURCE_EXTENDED 1
12494 #include <errno.h>
12495 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12496 #include <stdio.h>
12497 #include <stdlib.h>
12498 "; then :
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12507 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12508 case $gl_cv_header_errno_h_EOVERFLOW in
12509 yes | no)
12510 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
12513 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
12515 esac
12521 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12522 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12523 ac_have_decl=1
12524 else
12525 ac_have_decl=0
12528 cat >>confdefs.h <<_ACEOF
12529 #define HAVE_DECL_STRERROR_R $ac_have_decl
12530 _ACEOF
12532 for ac_func in strerror_r
12533 do :
12534 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12535 if test "x$ac_cv_func_strerror_r" = xyes; then :
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_STRERROR_R 1
12538 _ACEOF
12541 done
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12544 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12545 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12549 ac_cv_func_strerror_r_char_p=no
12550 if test $ac_cv_have_decl_strerror_r = yes; then
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 $ac_includes_default
12555 main (void)
12558 char buf[100];
12559 char x = *strerror_r (0, buf, sizeof buf);
12560 char *p = strerror_r (0, buf, sizeof buf);
12561 return !p || x;
12564 return 0;
12566 _ACEOF
12567 if ac_fn_c_try_compile "$LINENO"; then :
12568 ac_cv_func_strerror_r_char_p=yes
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 else
12572 # strerror_r is not declared. Choose between
12573 # systems that have relatively inaccessible declarations for the
12574 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12575 # former has a strerror_r that returns char*, while the latter
12576 # has a strerror_r that returns `int'.
12577 # This test should segfault on the DEC system.
12578 if test "$cross_compiling" = yes; then :
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 $ac_includes_default
12584 extern char *strerror_r ();
12586 main (void)
12588 char buf[100];
12589 char x = *strerror_r (0, buf, sizeof buf);
12590 return ! isalpha (x);
12592 return 0;
12594 _ACEOF
12595 if ac_fn_c_try_run "$LINENO"; then :
12596 ac_cv_func_strerror_r_char_p=yes
12598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12599 conftest.$ac_objext conftest.beam conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12606 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12607 if test $ac_cv_func_strerror_r_char_p = yes; then
12609 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12619 $as_echo_n "checking for mbstate_t... " >&6; }
12620 if ${ac_cv_type_mbstate_t+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 $ac_includes_default
12626 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12627 <wchar.h>.
12628 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12629 included before <wchar.h>. */
12630 #include <stddef.h>
12631 #include <stdio.h>
12632 #include <time.h>
12633 #include <wchar.h>
12635 main (void)
12637 mbstate_t x; return sizeof x;
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643 ac_cv_type_mbstate_t=yes
12644 else
12645 ac_cv_type_mbstate_t=no
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12650 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12651 if test $ac_cv_type_mbstate_t = yes; then
12653 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12655 else
12657 $as_echo "#define mbstate_t int" >>confdefs.h
12678 GNULIB_DPRINTF=0;
12679 GNULIB_FCLOSE=0;
12680 GNULIB_FDOPEN=0;
12681 GNULIB_FFLUSH=0;
12682 GNULIB_FGETC=0;
12683 GNULIB_FGETS=0;
12684 GNULIB_FOPEN=0;
12685 GNULIB_FPRINTF=0;
12686 GNULIB_FPRINTF_POSIX=0;
12687 GNULIB_FPURGE=0;
12688 GNULIB_FPUTC=0;
12689 GNULIB_FPUTS=0;
12690 GNULIB_FREAD=0;
12691 GNULIB_FREOPEN=0;
12692 GNULIB_FSCANF=0;
12693 GNULIB_FSEEK=0;
12694 GNULIB_FSEEKO=0;
12695 GNULIB_FTELL=0;
12696 GNULIB_FTELLO=0;
12697 GNULIB_FWRITE=0;
12698 GNULIB_GETC=0;
12699 GNULIB_GETCHAR=0;
12700 GNULIB_GETDELIM=0;
12701 GNULIB_GETLINE=0;
12702 GNULIB_OBSTACK_PRINTF=0;
12703 GNULIB_OBSTACK_PRINTF_POSIX=0;
12704 GNULIB_PCLOSE=0;
12705 GNULIB_PERROR=0;
12706 GNULIB_POPEN=0;
12707 GNULIB_PRINTF=0;
12708 GNULIB_PRINTF_POSIX=0;
12709 GNULIB_PUTC=0;
12710 GNULIB_PUTCHAR=0;
12711 GNULIB_PUTS=0;
12712 GNULIB_REMOVE=0;
12713 GNULIB_RENAME=0;
12714 GNULIB_RENAMEAT=0;
12715 GNULIB_SCANF=0;
12716 GNULIB_SNPRINTF=0;
12717 GNULIB_SPRINTF_POSIX=0;
12718 GNULIB_STDIO_H_NONBLOCKING=0;
12719 GNULIB_STDIO_H_SIGPIPE=0;
12720 GNULIB_TMPFILE=0;
12721 GNULIB_VASPRINTF=0;
12722 GNULIB_VFSCANF=0;
12723 GNULIB_VSCANF=0;
12724 GNULIB_VDPRINTF=0;
12725 GNULIB_VFPRINTF=0;
12726 GNULIB_VFPRINTF_POSIX=0;
12727 GNULIB_VPRINTF=0;
12728 GNULIB_VPRINTF_POSIX=0;
12729 GNULIB_VSNPRINTF=0;
12730 GNULIB_VSPRINTF_POSIX=0;
12731 HAVE_DECL_FPURGE=1;
12732 HAVE_DECL_FSEEKO=1;
12733 HAVE_DECL_FTELLO=1;
12734 HAVE_DECL_GETDELIM=1;
12735 HAVE_DECL_GETLINE=1;
12736 HAVE_DECL_OBSTACK_PRINTF=1;
12737 HAVE_DECL_SNPRINTF=1;
12738 HAVE_DECL_VSNPRINTF=1;
12739 HAVE_DPRINTF=1;
12740 HAVE_FSEEKO=1;
12741 HAVE_FTELLO=1;
12742 HAVE_PCLOSE=1;
12743 HAVE_POPEN=1;
12744 HAVE_RENAMEAT=1;
12745 HAVE_VASPRINTF=1;
12746 HAVE_VDPRINTF=1;
12747 REPLACE_DPRINTF=0;
12748 REPLACE_FCLOSE=0;
12749 REPLACE_FDOPEN=0;
12750 REPLACE_FFLUSH=0;
12751 REPLACE_FOPEN=0;
12752 REPLACE_FPRINTF=0;
12753 REPLACE_FPURGE=0;
12754 REPLACE_FREOPEN=0;
12755 REPLACE_FSEEK=0;
12756 REPLACE_FSEEKO=0;
12757 REPLACE_FTELL=0;
12758 REPLACE_FTELLO=0;
12759 REPLACE_GETDELIM=0;
12760 REPLACE_GETLINE=0;
12761 REPLACE_OBSTACK_PRINTF=0;
12762 REPLACE_PERROR=0;
12763 REPLACE_POPEN=0;
12764 REPLACE_PRINTF=0;
12765 REPLACE_REMOVE=0;
12766 REPLACE_RENAME=0;
12767 REPLACE_RENAMEAT=0;
12768 REPLACE_SNPRINTF=0;
12769 REPLACE_SPRINTF=0;
12770 REPLACE_STDIO_READ_FUNCS=0;
12771 REPLACE_STDIO_WRITE_FUNCS=0;
12772 REPLACE_TMPFILE=0;
12773 REPLACE_VASPRINTF=0;
12774 REPLACE_VDPRINTF=0;
12775 REPLACE_VFPRINTF=0;
12776 REPLACE_VPRINTF=0;
12777 REPLACE_VSNPRINTF=0;
12778 REPLACE_VSPRINTF=0;
12780 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
12781 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
12782 ac_have_decl=1
12783 else
12784 ac_have_decl=0
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_DECL_GETDELIM $ac_have_decl
12789 _ACEOF
12793 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
12794 if test "x$ac_cv_have_decl_getline" = xyes; then :
12795 ac_have_decl=1
12796 else
12797 ac_have_decl=0
12800 cat >>confdefs.h <<_ACEOF
12801 #define HAVE_DECL_GETLINE $ac_have_decl
12802 _ACEOF
12805 GNULIB_CHDIR=0;
12806 GNULIB_CHOWN=0;
12807 GNULIB_CLOSE=0;
12808 GNULIB_DUP=0;
12809 GNULIB_DUP2=0;
12810 GNULIB_DUP3=0;
12811 GNULIB_ENVIRON=0;
12812 GNULIB_EUIDACCESS=0;
12813 GNULIB_FACCESSAT=0;
12814 GNULIB_FCHDIR=0;
12815 GNULIB_FCHOWNAT=0;
12816 GNULIB_FDATASYNC=0;
12817 GNULIB_FSYNC=0;
12818 GNULIB_FTRUNCATE=0;
12819 GNULIB_GETCWD=0;
12820 GNULIB_GETDOMAINNAME=0;
12821 GNULIB_GETDTABLESIZE=0;
12822 GNULIB_GETGROUPS=0;
12823 GNULIB_GETHOSTNAME=0;
12824 GNULIB_GETLOGIN=0;
12825 GNULIB_GETLOGIN_R=0;
12826 GNULIB_GETPAGESIZE=0;
12827 GNULIB_GETUSERSHELL=0;
12828 GNULIB_GROUP_MEMBER=0;
12829 GNULIB_ISATTY=0;
12830 GNULIB_LCHOWN=0;
12831 GNULIB_LINK=0;
12832 GNULIB_LINKAT=0;
12833 GNULIB_LSEEK=0;
12834 GNULIB_PIPE=0;
12835 GNULIB_PIPE2=0;
12836 GNULIB_PREAD=0;
12837 GNULIB_PWRITE=0;
12838 GNULIB_READ=0;
12839 GNULIB_READLINK=0;
12840 GNULIB_READLINKAT=0;
12841 GNULIB_RMDIR=0;
12842 GNULIB_SETHOSTNAME=0;
12843 GNULIB_SLEEP=0;
12844 GNULIB_SYMLINK=0;
12845 GNULIB_SYMLINKAT=0;
12846 GNULIB_TTYNAME_R=0;
12847 GNULIB_UNISTD_H_NONBLOCKING=0;
12848 GNULIB_UNISTD_H_SIGPIPE=0;
12849 GNULIB_UNLINK=0;
12850 GNULIB_UNLINKAT=0;
12851 GNULIB_USLEEP=0;
12852 GNULIB_WRITE=0;
12853 HAVE_CHOWN=1;
12854 HAVE_DUP2=1;
12855 HAVE_DUP3=1;
12856 HAVE_EUIDACCESS=1;
12857 HAVE_FACCESSAT=1;
12858 HAVE_FCHDIR=1;
12859 HAVE_FCHOWNAT=1;
12860 HAVE_FDATASYNC=1;
12861 HAVE_FSYNC=1;
12862 HAVE_FTRUNCATE=1;
12863 HAVE_GETDTABLESIZE=1;
12864 HAVE_GETGROUPS=1;
12865 HAVE_GETHOSTNAME=1;
12866 HAVE_GETLOGIN=1;
12867 HAVE_GETPAGESIZE=1;
12868 HAVE_GROUP_MEMBER=1;
12869 HAVE_LCHOWN=1;
12870 HAVE_LINK=1;
12871 HAVE_LINKAT=1;
12872 HAVE_PIPE=1;
12873 HAVE_PIPE2=1;
12874 HAVE_PREAD=1;
12875 HAVE_PWRITE=1;
12876 HAVE_READLINK=1;
12877 HAVE_READLINKAT=1;
12878 HAVE_SETHOSTNAME=1;
12879 HAVE_SLEEP=1;
12880 HAVE_SYMLINK=1;
12881 HAVE_SYMLINKAT=1;
12882 HAVE_UNLINKAT=1;
12883 HAVE_USLEEP=1;
12884 HAVE_DECL_ENVIRON=1;
12885 HAVE_DECL_FCHDIR=1;
12886 HAVE_DECL_FDATASYNC=1;
12887 HAVE_DECL_GETDOMAINNAME=1;
12888 HAVE_DECL_GETLOGIN_R=1;
12889 HAVE_DECL_GETPAGESIZE=1;
12890 HAVE_DECL_GETUSERSHELL=1;
12891 HAVE_DECL_SETHOSTNAME=1;
12892 HAVE_DECL_TTYNAME_R=1;
12893 HAVE_OS_H=0;
12894 HAVE_SYS_PARAM_H=0;
12895 REPLACE_CHOWN=0;
12896 REPLACE_CLOSE=0;
12897 REPLACE_DUP=0;
12898 REPLACE_DUP2=0;
12899 REPLACE_FCHOWNAT=0;
12900 REPLACE_FTRUNCATE=0;
12901 REPLACE_GETCWD=0;
12902 REPLACE_GETDOMAINNAME=0;
12903 REPLACE_GETLOGIN_R=0;
12904 REPLACE_GETGROUPS=0;
12905 REPLACE_GETPAGESIZE=0;
12906 REPLACE_ISATTY=0;
12907 REPLACE_LCHOWN=0;
12908 REPLACE_LINK=0;
12909 REPLACE_LINKAT=0;
12910 REPLACE_LSEEK=0;
12911 REPLACE_PREAD=0;
12912 REPLACE_PWRITE=0;
12913 REPLACE_READ=0;
12914 REPLACE_READLINK=0;
12915 REPLACE_RMDIR=0;
12916 REPLACE_SLEEP=0;
12917 REPLACE_SYMLINK=0;
12918 REPLACE_TTYNAME_R=0;
12919 REPLACE_UNLINK=0;
12920 REPLACE_UNLINKAT=0;
12921 REPLACE_USLEEP=0;
12922 REPLACE_WRITE=0;
12923 UNISTD_H_HAVE_WINSOCK2_H=0;
12924 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
12942 if test $gl_cv_have_include_next = yes; then
12943 gl_cv_next_getopt_h='<'getopt.h'>'
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12946 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
12947 if ${gl_cv_next_getopt_h+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12951 if test $ac_cv_header_getopt_h = yes; then
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956 #include <getopt.h>
12958 _ACEOF
12959 case "$host_os" in
12960 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12961 *) gl_absname_cpp="$ac_cpp" ;;
12962 esac
12964 case "$host_os" in
12965 mingw*)
12966 gl_dirsep_regex='[/\\]'
12969 gl_dirsep_regex='\/'
12971 esac
12972 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12974 gl_header_literal_regex=`echo 'getopt.h' \
12975 | sed -e "$gl_make_literal_regex_sed"`
12976 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12977 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12978 s|^/[^/]|//&|
12982 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12983 sed -n "$gl_absolute_header_sed"`'"'
12984 else
12985 gl_cv_next_getopt_h='<'getopt.h'>'
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12991 $as_echo "$gl_cv_next_getopt_h" >&6; }
12993 NEXT_GETOPT_H=$gl_cv_next_getopt_h
12995 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12997 gl_next_as_first_directive='<'getopt.h'>'
12998 else
12999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13000 gl_next_as_first_directive=$gl_cv_next_getopt_h
13002 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13007 if test $ac_cv_header_getopt_h = yes; then
13008 HAVE_GETOPT_H=1
13009 else
13010 HAVE_GETOPT_H=0
13014 gl_replace_getopt=
13016 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13017 for ac_header in getopt.h
13018 do :
13019 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13020 if test "x$ac_cv_header_getopt_h" = xyes; then :
13021 cat >>confdefs.h <<_ACEOF
13022 #define HAVE_GETOPT_H 1
13023 _ACEOF
13025 else
13026 gl_replace_getopt=yes
13029 done
13033 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13034 for ac_func in getopt_long_only
13035 do :
13036 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13037 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13038 cat >>confdefs.h <<_ACEOF
13039 #define HAVE_GETOPT_LONG_ONLY 1
13040 _ACEOF
13042 else
13043 gl_replace_getopt=yes
13045 done
13049 if test -z "$gl_replace_getopt"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13051 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13052 if ${gl_cv_func_getopt_posix+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13056 if test $cross_compiling = no; then
13057 if test "$cross_compiling" = yes; then :
13058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13060 as_fn_error $? "cannot run test program while cross compiling
13061 See \`config.log' for more details" "$LINENO" 5; }
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 #include <unistd.h>
13067 #include <stdlib.h>
13068 #include <string.h>
13071 main ()
13073 static char program[] = "program";
13074 static char a[] = "-a";
13075 static char foo[] = "foo";
13076 static char bar[] = "bar";
13077 char *argv[] = { program, a, foo, bar, NULL };
13078 int c;
13080 c = getopt (4, argv, "ab");
13081 if (!(c == 'a'))
13082 return 1;
13083 c = getopt (4, argv, "ab");
13084 if (!(c == -1))
13085 return 2;
13086 if (!(optind == 2))
13087 return 3;
13088 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_run "$LINENO"; then :
13093 gl_cv_func_getopt_posix=maybe
13094 else
13095 gl_cv_func_getopt_posix=no
13097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13098 conftest.$ac_objext conftest.beam conftest.$ac_ext
13101 if test $gl_cv_func_getopt_posix = maybe; then
13102 if test "$cross_compiling" = yes; then :
13103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13105 as_fn_error $? "cannot run test program while cross compiling
13106 See \`config.log' for more details" "$LINENO" 5; }
13107 else
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13111 #include <unistd.h>
13112 #include <stdlib.h>
13113 #include <string.h>
13116 main ()
13118 static char program[] = "program";
13119 static char donald[] = "donald";
13120 static char p[] = "-p";
13121 static char billy[] = "billy";
13122 static char duck[] = "duck";
13123 static char a[] = "-a";
13124 static char bar[] = "bar";
13125 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13126 int c;
13128 c = getopt (7, argv, "+abp:q:");
13129 if (!(c == -1))
13130 return 4;
13131 if (!(strcmp (argv[0], "program") == 0))
13132 return 5;
13133 if (!(strcmp (argv[1], "donald") == 0))
13134 return 6;
13135 if (!(strcmp (argv[2], "-p") == 0))
13136 return 7;
13137 if (!(strcmp (argv[3], "billy") == 0))
13138 return 8;
13139 if (!(strcmp (argv[4], "duck") == 0))
13140 return 9;
13141 if (!(strcmp (argv[5], "-a") == 0))
13142 return 10;
13143 if (!(strcmp (argv[6], "bar") == 0))
13144 return 11;
13145 if (!(optind == 1))
13146 return 12;
13147 return 0;
13150 _ACEOF
13151 if ac_fn_c_try_run "$LINENO"; then :
13152 gl_cv_func_getopt_posix=maybe
13153 else
13154 gl_cv_func_getopt_posix=no
13156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13157 conftest.$ac_objext conftest.beam conftest.$ac_ext
13161 if test $gl_cv_func_getopt_posix = maybe; then
13162 if test "$cross_compiling" = yes; then :
13163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13165 as_fn_error $? "cannot run test program while cross compiling
13166 See \`config.log' for more details" "$LINENO" 5; }
13167 else
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #include <unistd.h>
13172 #include <stdlib.h>
13173 #include <string.h>
13176 main ()
13178 static char program[] = "program";
13179 static char ab[] = "-ab";
13180 char *argv[3] = { program, ab, NULL };
13181 if (getopt (2, argv, "ab:") != 'a')
13182 return 13;
13183 if (getopt (2, argv, "ab:") != '?')
13184 return 14;
13185 if (optopt != 'b')
13186 return 15;
13187 if (optind != 2)
13188 return 16;
13189 return 0;
13192 _ACEOF
13193 if ac_fn_c_try_run "$LINENO"; then :
13194 gl_cv_func_getopt_posix=yes
13195 else
13196 gl_cv_func_getopt_posix=no
13198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13199 conftest.$ac_objext conftest.beam conftest.$ac_ext
13203 else
13204 case "$host_os" in
13205 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
13206 *) gl_cv_func_getopt_posix="guessing yes";;
13207 esac
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13212 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13213 case "$gl_cv_func_getopt_posix" in
13214 *no) gl_replace_getopt=yes ;;
13215 esac
13218 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13220 $as_echo_n "checking for working GNU getopt function... " >&6; }
13221 if ${gl_cv_func_getopt_gnu+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13225 # optstring is necessary for programs like m4 that have POSIX-mandated
13226 # semantics for supporting options interspersed with files.
13227 # Also, since getopt_long is a GNU extension, we require optind=0.
13228 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13229 # so take care to revert to the correct (non-)export state.
13230 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13231 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13232 xx) gl_had_POSIXLY_CORRECT=exported ;;
13233 x) gl_had_POSIXLY_CORRECT=yes ;;
13234 *) gl_had_POSIXLY_CORRECT= ;;
13235 esac
13236 POSIXLY_CORRECT=1
13237 export POSIXLY_CORRECT
13238 if test "$cross_compiling" = yes; then :
13239 gl_cv_func_getopt_gnu="guessing no"
13241 else
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244 #include <getopt.h>
13245 #include <stddef.h>
13246 #include <string.h>
13248 #include <stdlib.h>
13249 #if defined __MACH__ && defined __APPLE__
13250 /* Avoid a crash on Mac OS X. */
13251 #include <mach/mach.h>
13252 #include <mach/mach_error.h>
13253 #include <mach/thread_status.h>
13254 #include <mach/exception.h>
13255 #include <mach/task.h>
13256 #include <pthread.h>
13257 /* The exception port on which our thread listens. */
13258 static mach_port_t our_exception_port;
13259 /* The main function of the thread listening for exceptions of type
13260 EXC_BAD_ACCESS. */
13261 static void *
13262 mach_exception_thread (void *arg)
13264 /* Buffer for a message to be received. */
13265 struct {
13266 mach_msg_header_t head;
13267 mach_msg_body_t msgh_body;
13268 char data[1024];
13269 } msg;
13270 mach_msg_return_t retval;
13271 /* Wait for a message on the exception port. */
13272 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13273 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13274 if (retval != MACH_MSG_SUCCESS)
13275 abort ();
13276 exit (1);
13278 static void
13279 nocrash_init (void)
13281 mach_port_t self = mach_task_self ();
13282 /* Allocate a port on which the thread shall listen for exceptions. */
13283 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13284 == KERN_SUCCESS) {
13285 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
13286 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13287 MACH_MSG_TYPE_MAKE_SEND)
13288 == KERN_SUCCESS) {
13289 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
13290 for us. */
13291 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13292 /* Create the thread listening on the exception port. */
13293 pthread_attr_t attr;
13294 pthread_t thread;
13295 if (pthread_attr_init (&attr) == 0
13296 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13297 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13298 pthread_attr_destroy (&attr);
13299 /* Replace the exception port info for these exceptions with our own.
13300 Note that we replace the exception port for the entire task, not only
13301 for a particular thread. This has the effect that when our exception
13302 port gets the message, the thread specific exception port has already
13303 been asked, and we don't need to bother about it.
13304 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
13305 task_set_exception_ports (self, mask, our_exception_port,
13306 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13311 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13312 /* Avoid a crash on native Windows. */
13313 #define WIN32_LEAN_AND_MEAN
13314 #include <windows.h>
13315 #include <winerror.h>
13316 static LONG WINAPI
13317 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13319 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13321 case EXCEPTION_ACCESS_VIOLATION:
13322 case EXCEPTION_IN_PAGE_ERROR:
13323 case EXCEPTION_STACK_OVERFLOW:
13324 case EXCEPTION_GUARD_PAGE:
13325 case EXCEPTION_PRIV_INSTRUCTION:
13326 case EXCEPTION_ILLEGAL_INSTRUCTION:
13327 case EXCEPTION_DATATYPE_MISALIGNMENT:
13328 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13329 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13330 exit (1);
13332 return EXCEPTION_CONTINUE_SEARCH;
13334 static void
13335 nocrash_init (void)
13337 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13339 #else
13340 /* Avoid a crash on POSIX systems. */
13341 #include <signal.h>
13342 /* A POSIX signal handler. */
13343 static void
13344 exception_handler (int sig)
13346 exit (1);
13348 static void
13349 nocrash_init (void)
13351 #ifdef SIGSEGV
13352 signal (SIGSEGV, exception_handler);
13353 #endif
13354 #ifdef SIGBUS
13355 signal (SIGBUS, exception_handler);
13356 #endif
13358 #endif
13362 main (void)
13365 int result = 0;
13367 nocrash_init();
13369 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13370 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13371 OSF/1 5.1, Solaris 10. */
13373 static char conftest[] = "conftest";
13374 static char plus[] = "-+";
13375 char *argv[3] = { conftest, plus, NULL };
13376 opterr = 0;
13377 if (getopt (2, argv, "+a") != '?')
13378 result |= 1;
13380 /* This code succeeds on glibc 2.8, mingw,
13381 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13382 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13384 static char program[] = "program";
13385 static char p[] = "-p";
13386 static char foo[] = "foo";
13387 static char bar[] = "bar";
13388 char *argv[] = { program, p, foo, bar, NULL };
13390 optind = 1;
13391 if (getopt (4, argv, "p::") != 'p')
13392 result |= 2;
13393 else if (optarg != NULL)
13394 result |= 4;
13395 else if (getopt (4, argv, "p::") != -1)
13396 result |= 6;
13397 else if (optind != 2)
13398 result |= 8;
13400 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13402 static char program[] = "program";
13403 static char foo[] = "foo";
13404 static char p[] = "-p";
13405 char *argv[] = { program, foo, p, NULL };
13406 optind = 0;
13407 if (getopt (3, argv, "-p") != 1)
13408 result |= 16;
13409 else if (getopt (3, argv, "-p") != 'p')
13410 result |= 16;
13412 /* This code fails on glibc 2.11. */
13414 static char program[] = "program";
13415 static char b[] = "-b";
13416 static char a[] = "-a";
13417 char *argv[] = { program, b, a, NULL };
13418 optind = opterr = 0;
13419 if (getopt (3, argv, "+:a:b") != 'b')
13420 result |= 32;
13421 else if (getopt (3, argv, "+:a:b") != ':')
13422 result |= 32;
13424 /* This code dumps core on glibc 2.14. */
13426 static char program[] = "program";
13427 static char w[] = "-W";
13428 static char dummy[] = "dummy";
13429 char *argv[] = { program, w, dummy, NULL };
13430 optind = opterr = 1;
13431 if (getopt (3, argv, "W;") != 'W')
13432 result |= 64;
13434 return result;
13437 return 0;
13439 _ACEOF
13440 if ac_fn_c_try_run "$LINENO"; then :
13441 gl_cv_func_getopt_gnu=yes
13442 else
13443 gl_cv_func_getopt_gnu=no
13445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13446 conftest.$ac_objext conftest.beam conftest.$ac_ext
13449 case $gl_had_POSIXLY_CORRECT in
13450 exported) ;;
13451 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13452 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13453 esac
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13457 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13458 if test "$gl_cv_func_getopt_gnu" != yes; then
13459 gl_replace_getopt=yes
13460 else
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13462 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
13463 if ${gl_cv_func_getopt_long_gnu+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 if test "$cross_compiling" = yes; then :
13467 case "$host_os" in
13468 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
13469 *) gl_cv_func_getopt_long_gnu="guessing yes";;
13470 esac
13472 else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #include <getopt.h>
13476 #include <stddef.h>
13477 #include <string.h>
13480 main (void)
13482 static const struct option long_options[] =
13484 { "xtremely-",no_argument, NULL, 1003 },
13485 { "xtra", no_argument, NULL, 1001 },
13486 { "xtreme", no_argument, NULL, 1002 },
13487 { "xtremely", no_argument, NULL, 1003 },
13488 { NULL, 0, NULL, 0 }
13490 /* This code fails on OpenBSD 5.0. */
13492 static char program[] = "program";
13493 static char xtremel[] = "--xtremel";
13494 char *argv[] = { program, xtremel, NULL };
13495 int option_index;
13496 optind = 1; opterr = 0;
13497 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13498 return 1;
13500 return 0;
13503 return 0;
13505 _ACEOF
13506 if ac_fn_c_try_run "$LINENO"; then :
13507 gl_cv_func_getopt_long_gnu=yes
13508 else
13509 gl_cv_func_getopt_long_gnu=no
13511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13512 conftest.$ac_objext conftest.beam conftest.$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13518 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
13519 case "$gl_cv_func_getopt_long_gnu" in
13520 *yes) ;;
13521 *) gl_replace_getopt=yes ;;
13522 esac
13531 REPLACE_GETOPT=1
13533 if test $REPLACE_GETOPT = 1; then
13535 GETOPT_H=getopt.h
13537 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13543 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13544 if test "x$ac_cv_have_decl_getenv" = xyes; then :
13545 ac_have_decl=1
13546 else
13547 ac_have_decl=0
13550 cat >>confdefs.h <<_ACEOF
13551 #define HAVE_DECL_GETENV $ac_have_decl
13552 _ACEOF
13555 GNULIB_NL_LANGINFO=0;
13556 HAVE_NL_LANGINFO=1;
13557 REPLACE_NL_LANGINFO=0;
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
13571 $as_echo_n "checking for working fcntl.h... " >&6; }
13572 if ${gl_cv_header_working_fcntl_h+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test "$cross_compiling" = yes; then :
13576 gl_cv_header_working_fcntl_h=cross-compiling
13577 else
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #include <sys/types.h>
13581 #include <sys/stat.h>
13582 #if HAVE_UNISTD_H
13583 # include <unistd.h>
13584 #else /* on Windows with MSVC */
13585 # include <io.h>
13586 # include <stdlib.h>
13587 # defined sleep(n) _sleep ((n) * 1000)
13588 #endif
13589 #include <fcntl.h>
13590 #ifndef O_NOATIME
13591 #define O_NOATIME 0
13592 #endif
13593 #ifndef O_NOFOLLOW
13594 #define O_NOFOLLOW 0
13595 #endif
13596 static int const constants[] =
13598 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13599 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13603 main (void)
13606 int result = !constants;
13607 #if HAVE_SYMLINK
13609 static char const sym[] = "conftest.sym";
13610 if (symlink ("/dev/null", sym) != 0)
13611 result |= 2;
13612 else
13614 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
13615 if (fd >= 0)
13617 close (fd);
13618 result |= 4;
13621 if (unlink (sym) != 0 || symlink (".", sym) != 0)
13622 result |= 2;
13623 else
13625 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
13626 if (fd >= 0)
13628 close (fd);
13629 result |= 4;
13632 unlink (sym);
13634 #endif
13636 static char const file[] = "confdefs.h";
13637 int fd = open (file, O_RDONLY | O_NOATIME);
13638 if (fd < 0)
13639 result |= 8;
13640 else
13642 struct stat st0;
13643 if (fstat (fd, &st0) != 0)
13644 result |= 16;
13645 else
13647 char c;
13648 sleep (1);
13649 if (read (fd, &c, 1) != 1)
13650 result |= 24;
13651 else
13653 if (close (fd) != 0)
13654 result |= 32;
13655 else
13657 struct stat st1;
13658 if (stat (file, &st1) != 0)
13659 result |= 40;
13660 else
13661 if (st0.st_atime != st1.st_atime)
13662 result |= 64;
13668 return result;
13670 return 0;
13672 _ACEOF
13673 if ac_fn_c_try_run "$LINENO"; then :
13674 gl_cv_header_working_fcntl_h=yes
13675 else
13676 case $? in #(
13677 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
13678 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
13679 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
13680 *) gl_cv_header_working_fcntl_h='no';;
13681 esac
13683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13684 conftest.$ac_objext conftest.beam conftest.$ac_ext
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
13689 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
13691 case $gl_cv_header_working_fcntl_h in #(
13692 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
13693 *) ac_val=1;;
13694 esac
13696 cat >>confdefs.h <<_ACEOF
13697 #define HAVE_WORKING_O_NOATIME $ac_val
13698 _ACEOF
13701 case $gl_cv_header_working_fcntl_h in #(
13702 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
13703 *) ac_val=1;;
13704 esac
13706 cat >>confdefs.h <<_ACEOF
13707 #define HAVE_WORKING_O_NOFOLLOW $ac_val
13708 _ACEOF
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13713 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
13714 if ${ac_cv_gnu_library_2_1+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13720 #include <features.h>
13721 #ifdef __GNU_LIBRARY__
13722 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13723 Lucky GNU user
13724 #endif
13725 #endif
13726 #ifdef __UCLIBC__
13727 Lucky user
13728 #endif
13730 _ACEOF
13731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13732 $EGREP "Lucky" >/dev/null 2>&1; then :
13733 ac_cv_gnu_library_2_1=yes
13734 else
13735 ac_cv_gnu_library_2_1=no
13737 rm -f conftest*
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13743 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13745 GLIBC21="$ac_cv_gnu_library_2_1"
13749 GNULIB_LOCALECONV=0;
13750 GNULIB_SETLOCALE=0;
13751 GNULIB_DUPLOCALE=0;
13752 HAVE_DUPLOCALE=1;
13753 REPLACE_LOCALECONV=0;
13754 REPLACE_SETLOCALE=0;
13755 REPLACE_DUPLOCALE=0;
13756 REPLACE_STRUCT_LCONV=0;
13759 REPLACE_NULL=0;
13760 HAVE_WCHAR_T=1;
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13764 $as_echo_n "checking for wchar_t... " >&6; }
13765 if ${gt_cv_c_wchar_t+:} false; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 #include <stddef.h>
13771 wchar_t foo = (wchar_t)'\0';
13773 main (void)
13777 return 0;
13779 _ACEOF
13780 if ac_fn_c_try_compile "$LINENO"; then :
13781 gt_cv_c_wchar_t=yes
13782 else
13783 gt_cv_c_wchar_t=no
13785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13788 $as_echo "$gt_cv_c_wchar_t" >&6; }
13789 if test $gt_cv_c_wchar_t = yes; then
13791 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13798 STDDEF_H=
13799 if test $gt_cv_c_wchar_t = no; then
13800 HAVE_WCHAR_T=0
13801 STDDEF_H=stddef.h
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13804 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13805 if ${gl_cv_decl_null_works+:} false; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 #include <stddef.h>
13811 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13814 main (void)
13818 return 0;
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 gl_cv_decl_null_works=yes
13823 else
13824 gl_cv_decl_null_works=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13829 $as_echo "$gl_cv_decl_null_works" >&6; }
13830 if test $gl_cv_decl_null_works = no; then
13831 REPLACE_NULL=1
13832 STDDEF_H=stddef.h
13835 if test -n "$STDDEF_H"; then
13836 GL_GENERATE_STDDEF_H_TRUE=
13837 GL_GENERATE_STDDEF_H_FALSE='#'
13838 else
13839 GL_GENERATE_STDDEF_H_TRUE='#'
13840 GL_GENERATE_STDDEF_H_FALSE=
13843 if test -n "$STDDEF_H"; then
13852 if test $gl_cv_have_include_next = yes; then
13853 gl_cv_next_stddef_h='<'stddef.h'>'
13854 else
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13856 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13857 if ${gl_cv_next_stddef_h+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 #include <stddef.h>
13865 _ACEOF
13866 case "$host_os" in
13867 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13868 *) gl_absname_cpp="$ac_cpp" ;;
13869 esac
13871 case "$host_os" in
13872 mingw*)
13873 gl_dirsep_regex='[/\\]'
13876 gl_dirsep_regex='\/'
13878 esac
13879 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13881 gl_header_literal_regex=`echo 'stddef.h' \
13882 | sed -e "$gl_make_literal_regex_sed"`
13883 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13884 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13885 s|^/[^/]|//&|
13889 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13890 sed -n "$gl_absolute_header_sed"`'"'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13895 $as_echo "$gl_cv_next_stddef_h" >&6; }
13897 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13901 gl_next_as_first_directive='<'stddef.h'>'
13902 else
13903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13904 gl_next_as_first_directive=$gl_cv_next_stddef_h
13906 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13916 GNULIB__EXIT=0;
13917 GNULIB_ATOLL=0;
13918 GNULIB_CALLOC_POSIX=0;
13919 GNULIB_CANONICALIZE_FILE_NAME=0;
13920 GNULIB_GETLOADAVG=0;
13921 GNULIB_GETSUBOPT=0;
13922 GNULIB_GRANTPT=0;
13923 GNULIB_MALLOC_POSIX=0;
13924 GNULIB_MBTOWC=0;
13925 GNULIB_MKDTEMP=0;
13926 GNULIB_MKOSTEMP=0;
13927 GNULIB_MKOSTEMPS=0;
13928 GNULIB_MKSTEMP=0;
13929 GNULIB_MKSTEMPS=0;
13930 GNULIB_POSIX_OPENPT=0;
13931 GNULIB_PTSNAME=0;
13932 GNULIB_PTSNAME_R=0;
13933 GNULIB_PUTENV=0;
13934 GNULIB_RANDOM=0;
13935 GNULIB_RANDOM_R=0;
13936 GNULIB_REALLOC_POSIX=0;
13937 GNULIB_REALPATH=0;
13938 GNULIB_RPMATCH=0;
13939 GNULIB_SECURE_GETENV=0;
13940 GNULIB_SETENV=0;
13941 GNULIB_STRTOD=0;
13942 GNULIB_STRTOLL=0;
13943 GNULIB_STRTOULL=0;
13944 GNULIB_SYSTEM_POSIX=0;
13945 GNULIB_UNLOCKPT=0;
13946 GNULIB_UNSETENV=0;
13947 GNULIB_WCTOMB=0;
13948 HAVE__EXIT=1;
13949 HAVE_ATOLL=1;
13950 HAVE_CANONICALIZE_FILE_NAME=1;
13951 HAVE_DECL_GETLOADAVG=1;
13952 HAVE_GETSUBOPT=1;
13953 HAVE_GRANTPT=1;
13954 HAVE_MKDTEMP=1;
13955 HAVE_MKOSTEMP=1;
13956 HAVE_MKOSTEMPS=1;
13957 HAVE_MKSTEMP=1;
13958 HAVE_MKSTEMPS=1;
13959 HAVE_POSIX_OPENPT=1;
13960 HAVE_PTSNAME=1;
13961 HAVE_PTSNAME_R=1;
13962 HAVE_RANDOM=1;
13963 HAVE_RANDOM_H=1;
13964 HAVE_RANDOM_R=1;
13965 HAVE_REALPATH=1;
13966 HAVE_RPMATCH=1;
13967 HAVE_SECURE_GETENV=1;
13968 HAVE_SETENV=1;
13969 HAVE_DECL_SETENV=1;
13970 HAVE_STRTOD=1;
13971 HAVE_STRTOLL=1;
13972 HAVE_STRTOULL=1;
13973 HAVE_STRUCT_RANDOM_DATA=1;
13974 HAVE_SYS_LOADAVG_H=0;
13975 HAVE_UNLOCKPT=1;
13976 HAVE_DECL_UNSETENV=1;
13977 REPLACE_CALLOC=0;
13978 REPLACE_CANONICALIZE_FILE_NAME=0;
13979 REPLACE_MALLOC=0;
13980 REPLACE_MBTOWC=0;
13981 REPLACE_MKSTEMP=0;
13982 REPLACE_PTSNAME=0;
13983 REPLACE_PTSNAME_R=0;
13984 REPLACE_PUTENV=0;
13985 REPLACE_RANDOM_R=0;
13986 REPLACE_REALLOC=0;
13987 REPLACE_REALPATH=0;
13988 REPLACE_SETENV=0;
13989 REPLACE_STRTOD=0;
13990 REPLACE_UNSETENV=0;
13991 REPLACE_WCTOMB=0;
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13995 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13996 if ${gl_cv_func_malloc_posix+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14004 main (void)
14006 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14007 choke me
14008 #endif
14011 return 0;
14013 _ACEOF
14014 if ac_fn_c_try_compile "$LINENO"; then :
14015 gl_cv_func_malloc_posix=yes
14016 else
14017 gl_cv_func_malloc_posix=no
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14023 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14033 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14034 if ${gt_cv_locale_ja+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14041 #include <locale.h>
14042 #include <time.h>
14043 #if HAVE_LANGINFO_CODESET
14044 # include <langinfo.h>
14045 #endif
14046 #include <stdlib.h>
14047 #include <string.h>
14048 struct tm t;
14049 char buf[16];
14050 int main ()
14052 const char *p;
14053 /* Check whether the given locale name is recognized by the system. */
14054 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14055 /* On native Windows, setlocale(category, "") looks at the system settings,
14056 not at the environment variables. Also, when an encoding suffix such
14057 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14058 category of the locale to "C". */
14059 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14060 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14061 return 1;
14062 #else
14063 if (setlocale (LC_ALL, "") == NULL) return 1;
14064 #endif
14065 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14066 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14067 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14068 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14069 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14070 some unit tests fail.
14071 On MirBSD 10, when an unsupported locale is specified, setlocale()
14072 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14073 #if HAVE_LANGINFO_CODESET
14075 const char *cs = nl_langinfo (CODESET);
14076 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14077 || strcmp (cs, "UTF-8") == 0)
14078 return 1;
14080 #endif
14081 #ifdef __CYGWIN__
14082 /* On Cygwin, avoid locale names without encoding suffix, because the
14083 locale_charset() function relies on the encoding suffix. Note that
14084 LC_ALL is set on the command line. */
14085 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14086 #endif
14087 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14088 on Cygwin 1.5.x. */
14089 if (MB_CUR_MAX == 1)
14090 return 1;
14091 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14092 This excludes the UTF-8 encoding (except on MirBSD). */
14093 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14094 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14095 for (p = buf; *p != '\0'; p++)
14096 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14097 return 1;
14098 return 0;
14101 _ACEOF
14102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14103 (eval $ac_link) 2>&5
14104 ac_status=$?
14105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14107 case "$host_os" in
14108 # Handle native Windows specially, because there setlocale() interprets
14109 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14110 # "fr" or "fra" as "French" or "French_France.1252",
14111 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14112 # "ja" as "Japanese" or "Japanese_Japan.932",
14113 # and similar.
14114 mingw*)
14115 # Note that on native Windows, the Japanese locale is
14116 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14117 # cannot use it here.
14118 gt_cv_locale_ja=none
14121 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14122 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14123 # configure script would override the LC_ALL setting. Likewise for
14124 # LC_CTYPE, which is also set at the beginning of the configure script.
14125 # Test for the AIX locale name.
14126 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14127 gt_cv_locale_ja=ja_JP
14128 else
14129 # Test for the locale name with explicit encoding suffix.
14130 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14131 gt_cv_locale_ja=ja_JP.EUC-JP
14132 else
14133 # Test for the HP-UX, OSF/1, NetBSD locale name.
14134 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14135 gt_cv_locale_ja=ja_JP.eucJP
14136 else
14137 # Test for the IRIX, FreeBSD locale name.
14138 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14139 gt_cv_locale_ja=ja_JP.EUC
14140 else
14141 # Test for the Solaris 7 locale name.
14142 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14143 gt_cv_locale_ja=ja
14144 else
14145 # Special test for NetBSD 1.6.
14146 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14147 gt_cv_locale_ja=ja_JP.eucJP
14148 else
14149 # None found.
14150 gt_cv_locale_ja=none
14158 esac
14160 rm -fr conftest*
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14164 $as_echo "$gt_cv_locale_ja" >&6; }
14165 LOCALE_JA=$gt_cv_locale_ja
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14172 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14173 if ${gt_cv_locale_zh_CN+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14180 #include <locale.h>
14181 #include <stdlib.h>
14182 #include <time.h>
14183 #if HAVE_LANGINFO_CODESET
14184 # include <langinfo.h>
14185 #endif
14186 #include <stdlib.h>
14187 #include <string.h>
14188 struct tm t;
14189 char buf[16];
14190 int main ()
14192 const char *p;
14193 /* Check whether the given locale name is recognized by the system. */
14194 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14195 /* On native Windows, setlocale(category, "") looks at the system settings,
14196 not at the environment variables. Also, when an encoding suffix such
14197 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14198 category of the locale to "C". */
14199 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14200 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14201 return 1;
14202 #else
14203 if (setlocale (LC_ALL, "") == NULL) return 1;
14204 #endif
14205 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14206 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14207 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14208 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14209 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14210 some unit tests fail.
14211 On MirBSD 10, when an unsupported locale is specified, setlocale()
14212 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14213 #if HAVE_LANGINFO_CODESET
14215 const char *cs = nl_langinfo (CODESET);
14216 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14217 || strcmp (cs, "UTF-8") == 0)
14218 return 1;
14220 #endif
14221 #ifdef __CYGWIN__
14222 /* On Cygwin, avoid locale names without encoding suffix, because the
14223 locale_charset() function relies on the encoding suffix. Note that
14224 LC_ALL is set on the command line. */
14225 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14226 #endif
14227 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14228 This excludes the UTF-8 encoding (except on MirBSD). */
14229 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14230 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14231 for (p = buf; *p != '\0'; p++)
14232 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14233 return 1;
14234 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14235 single wide character. This excludes the GB2312 and GBK encodings. */
14236 if (mblen ("\203\062\332\066", 5) != 4)
14237 return 1;
14238 return 0;
14241 _ACEOF
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14243 (eval $ac_link) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14247 case "$host_os" in
14248 # Handle native Windows specially, because there setlocale() interprets
14249 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14250 # "fr" or "fra" as "French" or "French_France.1252",
14251 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14252 # "ja" as "Japanese" or "Japanese_Japan.932",
14253 # and similar.
14254 mingw*)
14255 # Test for the hypothetical native Windows locale name.
14256 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14257 gt_cv_locale_zh_CN=Chinese_China.54936
14258 else
14259 # None found.
14260 gt_cv_locale_zh_CN=none
14263 solaris2.8)
14264 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14265 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14266 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14267 gt_cv_locale_zh_CN=none
14270 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14271 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14272 # configure script would override the LC_ALL setting. Likewise for
14273 # LC_CTYPE, which is also set at the beginning of the configure script.
14274 # Test for the locale name without encoding suffix.
14275 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14276 gt_cv_locale_zh_CN=zh_CN
14277 else
14278 # Test for the locale name with explicit encoding suffix.
14279 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14280 gt_cv_locale_zh_CN=zh_CN.GB18030
14281 else
14282 # None found.
14283 gt_cv_locale_zh_CN=none
14287 esac
14288 else
14289 # If there was a link error, due to mblen(), the system is so old that
14290 # it certainly doesn't have a chinese locale.
14291 gt_cv_locale_zh_CN=none
14293 rm -fr conftest*
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14297 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14298 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14304 $as_echo_n "checking for a french Unicode locale... " >&6; }
14305 if ${gt_cv_locale_fr_utf8+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 #include <locale.h>
14313 #include <time.h>
14314 #if HAVE_LANGINFO_CODESET
14315 # include <langinfo.h>
14316 #endif
14317 #include <stdlib.h>
14318 #include <string.h>
14319 struct tm t;
14320 char buf[16];
14321 int main () {
14322 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14323 imitates locale dependent behaviour by looking at the environment
14324 variables, and all locales use the UTF-8 encoding. */
14325 #if !(defined __BEOS__ || defined __HAIKU__)
14326 /* Check whether the given locale name is recognized by the system. */
14327 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14328 /* On native Windows, setlocale(category, "") looks at the system settings,
14329 not at the environment variables. Also, when an encoding suffix such
14330 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14331 category of the locale to "C". */
14332 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14333 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14334 return 1;
14335 # else
14336 if (setlocale (LC_ALL, "") == NULL) return 1;
14337 # endif
14338 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14339 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14340 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14341 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14342 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14343 some unit tests fail. */
14344 # if HAVE_LANGINFO_CODESET
14346 const char *cs = nl_langinfo (CODESET);
14347 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14348 return 1;
14350 # endif
14351 # ifdef __CYGWIN__
14352 /* On Cygwin, avoid locale names without encoding suffix, because the
14353 locale_charset() function relies on the encoding suffix. Note that
14354 LC_ALL is set on the command line. */
14355 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14356 # endif
14357 /* Check whether in the abbreviation of the second month, the second
14358 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14359 two bytes long, with UTF-8 encoding. */
14360 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14361 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14362 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14363 return 1;
14364 #endif
14365 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14366 /* Check whether the decimal separator is a comma.
14367 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14368 are nl_langinfo(RADIXCHAR) are both ".". */
14369 if (localeconv () ->decimal_point[0] != ',') return 1;
14370 #endif
14371 return 0;
14374 _ACEOF
14375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14376 (eval $ac_link) 2>&5
14377 ac_status=$?
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14380 case "$host_os" in
14381 # Handle native Windows specially, because there setlocale() interprets
14382 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14383 # "fr" or "fra" as "French" or "French_France.1252",
14384 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14385 # "ja" as "Japanese" or "Japanese_Japan.932",
14386 # and similar.
14387 mingw*)
14388 # Test for the hypothetical native Windows locale name.
14389 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14390 gt_cv_locale_fr_utf8=French_France.65001
14391 else
14392 # None found.
14393 gt_cv_locale_fr_utf8=none
14397 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14398 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14399 # configure script would override the LC_ALL setting. Likewise for
14400 # LC_CTYPE, which is also set at the beginning of the configure script.
14401 # Test for the usual locale name.
14402 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14403 gt_cv_locale_fr_utf8=fr_FR
14404 else
14405 # Test for the locale name with explicit encoding suffix.
14406 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14407 gt_cv_locale_fr_utf8=fr_FR.UTF-8
14408 else
14409 # Test for the Solaris 7 locale name.
14410 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14411 gt_cv_locale_fr_utf8=fr.UTF-8
14412 else
14413 # None found.
14414 gt_cv_locale_fr_utf8=none
14419 esac
14421 rm -fr conftest*
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14425 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14426 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
14438 GNULIB_FFSL=0;
14439 GNULIB_FFSLL=0;
14440 GNULIB_MEMCHR=0;
14441 GNULIB_MEMMEM=0;
14442 GNULIB_MEMPCPY=0;
14443 GNULIB_MEMRCHR=0;
14444 GNULIB_RAWMEMCHR=0;
14445 GNULIB_STPCPY=0;
14446 GNULIB_STPNCPY=0;
14447 GNULIB_STRCHRNUL=0;
14448 GNULIB_STRDUP=0;
14449 GNULIB_STRNCAT=0;
14450 GNULIB_STRNDUP=0;
14451 GNULIB_STRNLEN=0;
14452 GNULIB_STRPBRK=0;
14453 GNULIB_STRSEP=0;
14454 GNULIB_STRSTR=0;
14455 GNULIB_STRCASESTR=0;
14456 GNULIB_STRTOK_R=0;
14457 GNULIB_MBSLEN=0;
14458 GNULIB_MBSNLEN=0;
14459 GNULIB_MBSCHR=0;
14460 GNULIB_MBSRCHR=0;
14461 GNULIB_MBSSTR=0;
14462 GNULIB_MBSCASECMP=0;
14463 GNULIB_MBSNCASECMP=0;
14464 GNULIB_MBSPCASECMP=0;
14465 GNULIB_MBSCASESTR=0;
14466 GNULIB_MBSCSPN=0;
14467 GNULIB_MBSPBRK=0;
14468 GNULIB_MBSSPN=0;
14469 GNULIB_MBSSEP=0;
14470 GNULIB_MBSTOK_R=0;
14471 GNULIB_STRERROR=0;
14472 GNULIB_STRERROR_R=0;
14473 GNULIB_STRSIGNAL=0;
14474 GNULIB_STRVERSCMP=0;
14475 HAVE_MBSLEN=0;
14476 HAVE_FFSL=1;
14477 HAVE_FFSLL=1;
14478 HAVE_MEMCHR=1;
14479 HAVE_DECL_MEMMEM=1;
14480 HAVE_MEMPCPY=1;
14481 HAVE_DECL_MEMRCHR=1;
14482 HAVE_RAWMEMCHR=1;
14483 HAVE_STPCPY=1;
14484 HAVE_STPNCPY=1;
14485 HAVE_STRCHRNUL=1;
14486 HAVE_DECL_STRDUP=1;
14487 HAVE_DECL_STRNDUP=1;
14488 HAVE_DECL_STRNLEN=1;
14489 HAVE_STRPBRK=1;
14490 HAVE_STRSEP=1;
14491 HAVE_STRCASESTR=1;
14492 HAVE_DECL_STRTOK_R=1;
14493 HAVE_DECL_STRERROR_R=1;
14494 HAVE_DECL_STRSIGNAL=1;
14495 HAVE_STRVERSCMP=1;
14496 REPLACE_MEMCHR=0;
14497 REPLACE_MEMMEM=0;
14498 REPLACE_STPNCPY=0;
14499 REPLACE_STRDUP=0;
14500 REPLACE_STRSTR=0;
14501 REPLACE_STRCASESTR=0;
14502 REPLACE_STRCHRNUL=0;
14503 REPLACE_STRERROR=0;
14504 REPLACE_STRERROR_R=0;
14505 REPLACE_STRNCAT=0;
14506 REPLACE_STRNDUP=0;
14507 REPLACE_STRNLEN=0;
14508 REPLACE_STRSIGNAL=0;
14509 REPLACE_STRTOK_R=0;
14510 UNDEFINE_STRTOK_R=0;
14516 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14517 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14518 # irrelevant for anonymous mappings.
14519 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14520 if test "x$ac_cv_func_mmap" = xyes; then :
14521 gl_have_mmap=yes
14522 else
14523 gl_have_mmap=no
14527 # Try to allow MAP_ANONYMOUS.
14528 gl_have_mmap_anonymous=no
14529 if test $gl_have_mmap = yes; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14531 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14535 #include <sys/mman.h>
14536 #ifdef MAP_ANONYMOUS
14537 I cannot identify this map
14538 #endif
14540 _ACEOF
14541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14542 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14543 gl_have_mmap_anonymous=yes
14545 rm -f conftest*
14547 if test $gl_have_mmap_anonymous != yes; then
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 #include <sys/mman.h>
14552 #ifdef MAP_ANON
14553 I cannot identify this map
14554 #endif
14556 _ACEOF
14557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14560 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14562 gl_have_mmap_anonymous=yes
14564 rm -f conftest*
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14568 $as_echo "$gl_have_mmap_anonymous" >&6; }
14569 if test $gl_have_mmap_anonymous = yes; then
14571 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14581 if test $HAVE_MEMCHR = 1; then
14582 # Detect platform-specific bugs in some versions of glibc:
14583 # memchr should not dereference anything with length 0
14584 # http://bugzilla.redhat.com/499689
14585 # memchr should not dereference overestimated length after a match
14586 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14587 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14588 # Assume that memchr works on platforms that lack mprotect.
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14590 $as_echo_n "checking whether memchr works... " >&6; }
14591 if ${gl_cv_func_memchr_works+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 if test "$cross_compiling" = yes; then :
14595 gl_cv_func_memchr_works="guessing no"
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14600 #include <string.h>
14601 #if HAVE_SYS_MMAN_H
14602 # include <fcntl.h>
14603 # include <unistd.h>
14604 # include <sys/types.h>
14605 # include <sys/mman.h>
14606 # ifndef MAP_FILE
14607 # define MAP_FILE 0
14608 # endif
14609 #endif
14612 main (void)
14615 int result = 0;
14616 char *fence = NULL;
14617 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14618 # if HAVE_MAP_ANONYMOUS
14619 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14620 const int fd = -1;
14621 # else /* !HAVE_MAP_ANONYMOUS */
14622 const int flags = MAP_FILE | MAP_PRIVATE;
14623 int fd = open ("/dev/zero", O_RDONLY, 0666);
14624 if (fd >= 0)
14625 # endif
14627 int pagesize = getpagesize ();
14628 char *two_pages =
14629 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14630 flags, fd, 0);
14631 if (two_pages != (char *)(-1)
14632 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14633 fence = two_pages + pagesize;
14635 #endif
14636 if (fence)
14638 if (memchr (fence, 0, 0))
14639 result |= 1;
14640 strcpy (fence - 9, "12345678");
14641 if (memchr (fence - 9, 0, 79) != fence - 1)
14642 result |= 2;
14643 if (memchr (fence - 1, 0, 3) != fence - 1)
14644 result |= 4;
14646 return result;
14649 return 0;
14651 _ACEOF
14652 if ac_fn_c_try_run "$LINENO"; then :
14653 gl_cv_func_memchr_works=yes
14654 else
14655 gl_cv_func_memchr_works=no
14657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14658 conftest.$ac_objext conftest.beam conftest.$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14663 $as_echo "$gl_cv_func_memchr_works" >&6; }
14664 if test "$gl_cv_func_memchr_works" != yes; then
14665 REPLACE_MEMCHR=1
14672 gl_cv_c_multiarch=no
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 #ifndef __APPLE_CC__
14676 not a universal capable compiler
14677 #endif
14678 typedef int dummy;
14680 _ACEOF
14681 if ac_fn_c_try_compile "$LINENO"; then :
14683 arch=
14684 prev=
14685 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14686 if test -n "$prev"; then
14687 case $word in
14688 i?86 | x86_64 | ppc | ppc64)
14689 if test -z "$arch" || test "$arch" = "$word"; then
14690 arch="$word"
14691 else
14692 gl_cv_c_multiarch=yes
14695 esac
14696 prev=
14697 else
14698 if test "x$word" = "x-arch"; then
14699 prev=arch
14702 done
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 if test $gl_cv_c_multiarch = yes; then
14707 APPLE_UNIVERSAL_BUILD=1
14708 else
14709 APPLE_UNIVERSAL_BUILD=0
14715 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14716 if test "x$ac_cv_have_decl_alarm" = xyes; then :
14717 ac_have_decl=1
14718 else
14719 ac_have_decl=0
14722 cat >>confdefs.h <<_ACEOF
14723 #define HAVE_DECL_ALARM $ac_have_decl
14724 _ACEOF
14728 for ac_header in stdlib.h
14729 do :
14730 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_stdlib_h" = xyes; then :
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STDLIB_H 1
14734 _ACEOF
14738 done
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14741 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14742 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 if test "$cross_compiling" = yes; then :
14746 case "$host_os" in
14747 # Guess yes on platforms where we know the result.
14748 *-gnu* | freebsd* | netbsd* | openbsd* \
14749 | hpux* | solaris* | cygwin* | mingw*)
14750 ac_cv_func_malloc_0_nonnull=yes ;;
14751 # If we don't know, assume the worst.
14752 *) ac_cv_func_malloc_0_nonnull=no ;;
14753 esac
14755 else
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14759 # include <stdlib.h>
14760 #else
14761 char *malloc ();
14762 #endif
14765 main (void)
14767 return ! malloc (0);
14769 return 0;
14772 _ACEOF
14773 if ac_fn_c_try_run "$LINENO"; then :
14774 ac_cv_func_malloc_0_nonnull=yes
14775 else
14776 ac_cv_func_malloc_0_nonnull=no
14778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14779 conftest.$ac_objext conftest.beam conftest.$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14785 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14786 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14787 gl_cv_func_malloc_0_nonnull=1
14788 else
14789 gl_cv_func_malloc_0_nonnull=0
14793 cat >>confdefs.h <<_ACEOF
14794 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14795 _ACEOF
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14803 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14804 if ${ac_cv_header_stdbool_h+:} false; then :
14805 $as_echo_n "(cached) " >&6
14806 else
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14810 #include <stdbool.h>
14811 #ifndef bool
14812 "error: bool is not defined"
14813 #endif
14814 #ifndef false
14815 "error: false is not defined"
14816 #endif
14817 #if false
14818 "error: false is not 0"
14819 #endif
14820 #ifndef true
14821 "error: true is not defined"
14822 #endif
14823 #if true != 1
14824 "error: true is not 1"
14825 #endif
14826 #ifndef __bool_true_false_are_defined
14827 "error: __bool_true_false_are_defined is not defined"
14828 #endif
14830 struct s { _Bool s: 1; _Bool t; } s;
14832 char a[true == 1 ? 1 : -1];
14833 char b[false == 0 ? 1 : -1];
14834 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14835 char d[(bool) 0.5 == true ? 1 : -1];
14836 /* See body of main program for 'e'. */
14837 char f[(_Bool) 0.0 == false ? 1 : -1];
14838 char g[true];
14839 char h[sizeof (_Bool)];
14840 char i[sizeof s.t];
14841 enum { j = false, k = true, l = false * true, m = true * 256 };
14842 /* The following fails for
14843 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14844 _Bool n[m];
14845 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14846 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14847 /* Catch a bug in an HP-UX C compiler. See
14848 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14849 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14851 _Bool q = true;
14852 _Bool *pq = &q;
14855 main (void)
14858 bool e = &s;
14859 *pq |= q;
14860 *pq |= ! q;
14861 /* Refer to every declared value, to avoid compiler optimizations. */
14862 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14863 + !m + !n + !o + !p + !q + !pq);
14866 return 0;
14868 _ACEOF
14869 if ac_fn_c_try_compile "$LINENO"; then :
14870 ac_cv_header_stdbool_h=yes
14871 else
14872 ac_cv_header_stdbool_h=no
14874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14877 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14878 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14879 if test "x$ac_cv_type__Bool" = xyes; then :
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE__BOOL 1
14883 _ACEOF
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14891 $as_echo_n "checking for unsigned long long int... " >&6; }
14892 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 ac_cv_type_unsigned_long_long_int=yes
14896 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14900 /* For now, do not test the preprocessor; as of 2007 there are too many
14901 implementations with broken preprocessors. Perhaps this can
14902 be revisited in 2012. In the meantime, code should not expect
14903 #if to work with literals wider than 32 bits. */
14904 /* Test literals. */
14905 long long int ll = 9223372036854775807ll;
14906 long long int nll = -9223372036854775807LL;
14907 unsigned long long int ull = 18446744073709551615ULL;
14908 /* Test constant expressions. */
14909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14910 ? 1 : -1)];
14911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14912 ? 1 : -1)];
14913 int i = 63;
14915 main (void)
14917 /* Test availability of runtime routines for shift and division. */
14918 long long int llmax = 9223372036854775807ll;
14919 unsigned long long int ullmax = 18446744073709551615ull;
14920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14921 | (llmax / ll) | (llmax % ll)
14922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14923 | (ullmax / ull) | (ullmax % ull));
14925 return 0;
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"; then :
14931 else
14932 ac_cv_type_unsigned_long_long_int=no
14934 rm -f core conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14939 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14940 if test $ac_cv_type_unsigned_long_long_int = yes; then
14942 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14949 $as_echo_n "checking for long long int... " >&6; }
14950 if ${ac_cv_type_long_long_int+:} false; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 ac_cv_type_long_long_int=yes
14954 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14955 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14956 if test $ac_cv_type_long_long_int = yes; then
14957 if test "$cross_compiling" = yes; then :
14959 else
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 #include <limits.h>
14963 #ifndef LLONG_MAX
14964 # define HALF \
14965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14966 # define LLONG_MAX (HALF - 1 + HALF)
14967 #endif
14969 main (void)
14971 long long int n = 1;
14972 int i;
14973 for (i = 0; ; i++)
14975 long long int m = n << i;
14976 if (m >> i != n)
14977 return 1;
14978 if (LLONG_MAX / 2 < m)
14979 break;
14981 return 0;
14983 return 0;
14985 _ACEOF
14986 if ac_fn_c_try_run "$LINENO"; then :
14988 else
14989 ac_cv_type_long_long_int=no
14991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14992 conftest.$ac_objext conftest.beam conftest.$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14999 $as_echo "$ac_cv_type_long_long_int" >&6; }
15000 if test $ac_cv_type_long_long_int = yes; then
15002 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15011 if test $ac_cv_type_long_long_int = yes; then
15012 HAVE_LONG_LONG_INT=1
15013 else
15014 HAVE_LONG_LONG_INT=0
15018 if test $ac_cv_type_unsigned_long_long_int = yes; then
15019 HAVE_UNSIGNED_LONG_LONG_INT=1
15020 else
15021 HAVE_UNSIGNED_LONG_LONG_INT=0
15026 if test $ac_cv_header_wchar_h = yes; then
15027 HAVE_WCHAR_H=1
15028 else
15029 HAVE_WCHAR_H=0
15033 if test $ac_cv_header_inttypes_h = yes; then
15034 HAVE_INTTYPES_H=1
15035 else
15036 HAVE_INTTYPES_H=0
15040 if test $ac_cv_header_sys_types_h = yes; then
15041 HAVE_SYS_TYPES_H=1
15042 else
15043 HAVE_SYS_TYPES_H=0
15056 if test $gl_cv_have_include_next = yes; then
15057 gl_cv_next_stdint_h='<'stdint.h'>'
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15060 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15061 if ${gl_cv_next_stdint_h+:} false; then :
15062 $as_echo_n "(cached) " >&6
15063 else
15065 if test $ac_cv_header_stdint_h = yes; then
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070 #include <stdint.h>
15072 _ACEOF
15073 case "$host_os" in
15074 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15075 *) gl_absname_cpp="$ac_cpp" ;;
15076 esac
15078 case "$host_os" in
15079 mingw*)
15080 gl_dirsep_regex='[/\\]'
15083 gl_dirsep_regex='\/'
15085 esac
15086 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15088 gl_header_literal_regex=`echo 'stdint.h' \
15089 | sed -e "$gl_make_literal_regex_sed"`
15090 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15091 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15092 s|^/[^/]|//&|
15096 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15097 sed -n "$gl_absolute_header_sed"`'"'
15098 else
15099 gl_cv_next_stdint_h='<'stdint.h'>'
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15105 $as_echo "$gl_cv_next_stdint_h" >&6; }
15107 NEXT_STDINT_H=$gl_cv_next_stdint_h
15109 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15111 gl_next_as_first_directive='<'stdint.h'>'
15112 else
15113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15114 gl_next_as_first_directive=$gl_cv_next_stdint_h
15116 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15121 if test $ac_cv_header_stdint_h = yes; then
15122 HAVE_STDINT_H=1
15123 else
15124 HAVE_STDINT_H=0
15128 if test $ac_cv_header_stdint_h = yes; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15130 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15131 if ${gl_cv_header_working_stdint_h+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134 gl_cv_header_working_stdint_h=no
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15139 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15140 #include <stdint.h>
15141 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15142 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15143 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15144 #endif
15147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15148 included before <wchar.h>. */
15149 #include <stddef.h>
15150 #include <signal.h>
15151 #if HAVE_WCHAR_H
15152 # include <stdio.h>
15153 # include <time.h>
15154 # include <wchar.h>
15155 #endif
15158 #ifdef INT8_MAX
15159 int8_t a1 = INT8_MAX;
15160 int8_t a1min = INT8_MIN;
15161 #endif
15162 #ifdef INT16_MAX
15163 int16_t a2 = INT16_MAX;
15164 int16_t a2min = INT16_MIN;
15165 #endif
15166 #ifdef INT32_MAX
15167 int32_t a3 = INT32_MAX;
15168 int32_t a3min = INT32_MIN;
15169 #endif
15170 #ifdef INT64_MAX
15171 int64_t a4 = INT64_MAX;
15172 int64_t a4min = INT64_MIN;
15173 #endif
15174 #ifdef UINT8_MAX
15175 uint8_t b1 = UINT8_MAX;
15176 #else
15177 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15178 #endif
15179 #ifdef UINT16_MAX
15180 uint16_t b2 = UINT16_MAX;
15181 #endif
15182 #ifdef UINT32_MAX
15183 uint32_t b3 = UINT32_MAX;
15184 #endif
15185 #ifdef UINT64_MAX
15186 uint64_t b4 = UINT64_MAX;
15187 #endif
15188 int_least8_t c1 = INT8_C (0x7f);
15189 int_least8_t c1max = INT_LEAST8_MAX;
15190 int_least8_t c1min = INT_LEAST8_MIN;
15191 int_least16_t c2 = INT16_C (0x7fff);
15192 int_least16_t c2max = INT_LEAST16_MAX;
15193 int_least16_t c2min = INT_LEAST16_MIN;
15194 int_least32_t c3 = INT32_C (0x7fffffff);
15195 int_least32_t c3max = INT_LEAST32_MAX;
15196 int_least32_t c3min = INT_LEAST32_MIN;
15197 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15198 int_least64_t c4max = INT_LEAST64_MAX;
15199 int_least64_t c4min = INT_LEAST64_MIN;
15200 uint_least8_t d1 = UINT8_C (0xff);
15201 uint_least8_t d1max = UINT_LEAST8_MAX;
15202 uint_least16_t d2 = UINT16_C (0xffff);
15203 uint_least16_t d2max = UINT_LEAST16_MAX;
15204 uint_least32_t d3 = UINT32_C (0xffffffff);
15205 uint_least32_t d3max = UINT_LEAST32_MAX;
15206 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15207 uint_least64_t d4max = UINT_LEAST64_MAX;
15208 int_fast8_t e1 = INT_FAST8_MAX;
15209 int_fast8_t e1min = INT_FAST8_MIN;
15210 int_fast16_t e2 = INT_FAST16_MAX;
15211 int_fast16_t e2min = INT_FAST16_MIN;
15212 int_fast32_t e3 = INT_FAST32_MAX;
15213 int_fast32_t e3min = INT_FAST32_MIN;
15214 int_fast64_t e4 = INT_FAST64_MAX;
15215 int_fast64_t e4min = INT_FAST64_MIN;
15216 uint_fast8_t f1 = UINT_FAST8_MAX;
15217 uint_fast16_t f2 = UINT_FAST16_MAX;
15218 uint_fast32_t f3 = UINT_FAST32_MAX;
15219 uint_fast64_t f4 = UINT_FAST64_MAX;
15220 #ifdef INTPTR_MAX
15221 intptr_t g = INTPTR_MAX;
15222 intptr_t gmin = INTPTR_MIN;
15223 #endif
15224 #ifdef UINTPTR_MAX
15225 uintptr_t h = UINTPTR_MAX;
15226 #endif
15227 intmax_t i = INTMAX_MAX;
15228 uintmax_t j = UINTMAX_MAX;
15230 #include <limits.h> /* for CHAR_BIT */
15231 #define TYPE_MINIMUM(t) \
15232 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15233 #define TYPE_MAXIMUM(t) \
15234 ((t) ((t) 0 < (t) -1 \
15235 ? (t) -1 \
15236 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15237 struct s {
15238 int check_PTRDIFF:
15239 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15240 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15241 ? 1 : -1;
15242 /* Detect bug in FreeBSD 6.0 / ia64. */
15243 int check_SIG_ATOMIC:
15244 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15245 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15246 ? 1 : -1;
15247 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15248 int check_WCHAR:
15249 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15250 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15251 ? 1 : -1;
15252 /* Detect bug in mingw. */
15253 int check_WINT:
15254 WINT_MIN == TYPE_MINIMUM (wint_t)
15255 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15256 ? 1 : -1;
15258 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15259 int check_UINT8_C:
15260 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15261 int check_UINT16_C:
15262 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15264 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15265 #ifdef UINT8_MAX
15266 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15267 #endif
15268 #ifdef UINT16_MAX
15269 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15270 #endif
15271 #ifdef UINT32_MAX
15272 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15273 #endif
15274 #ifdef UINT64_MAX
15275 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15276 #endif
15277 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15278 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15279 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15280 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15281 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15282 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15283 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15284 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15285 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15286 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15287 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15291 main (void)
15295 return 0;
15297 _ACEOF
15298 if ac_fn_c_try_compile "$LINENO"; then :
15299 if test "$cross_compiling" = yes; then :
15300 gl_cv_header_working_stdint_h=yes
15302 else
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15307 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15308 #include <stdint.h>
15311 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15312 included before <wchar.h>. */
15313 #include <stddef.h>
15314 #include <signal.h>
15315 #if HAVE_WCHAR_H
15316 # include <stdio.h>
15317 # include <time.h>
15318 # include <wchar.h>
15319 #endif
15322 #include <stdio.h>
15323 #include <string.h>
15324 #define MVAL(macro) MVAL1(macro)
15325 #define MVAL1(expression) #expression
15326 static const char *macro_values[] =
15328 #ifdef INT8_MAX
15329 MVAL (INT8_MAX),
15330 #endif
15331 #ifdef INT16_MAX
15332 MVAL (INT16_MAX),
15333 #endif
15334 #ifdef INT32_MAX
15335 MVAL (INT32_MAX),
15336 #endif
15337 #ifdef INT64_MAX
15338 MVAL (INT64_MAX),
15339 #endif
15340 #ifdef UINT8_MAX
15341 MVAL (UINT8_MAX),
15342 #endif
15343 #ifdef UINT16_MAX
15344 MVAL (UINT16_MAX),
15345 #endif
15346 #ifdef UINT32_MAX
15347 MVAL (UINT32_MAX),
15348 #endif
15349 #ifdef UINT64_MAX
15350 MVAL (UINT64_MAX),
15351 #endif
15352 NULL
15356 main (void)
15359 const char **mv;
15360 for (mv = macro_values; *mv != NULL; mv++)
15362 const char *value = *mv;
15363 /* Test whether it looks like a cast expression. */
15364 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15365 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15366 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15367 || strncmp (value, "((int)"/*)*/, 6) == 0
15368 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15369 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15370 return mv - macro_values + 1;
15372 return 0;
15375 return 0;
15377 _ACEOF
15378 if ac_fn_c_try_run "$LINENO"; then :
15379 gl_cv_header_working_stdint_h=yes
15381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15382 conftest.$ac_objext conftest.beam conftest.$ac_ext
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15391 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15393 if test "$gl_cv_header_working_stdint_h" = yes; then
15394 STDINT_H=
15395 else
15396 for ac_header in sys/inttypes.h sys/bitypes.h
15397 do :
15398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15401 cat >>confdefs.h <<_ACEOF
15402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403 _ACEOF
15407 done
15409 if test $ac_cv_header_sys_inttypes_h = yes; then
15410 HAVE_SYS_INTTYPES_H=1
15411 else
15412 HAVE_SYS_INTTYPES_H=0
15415 if test $ac_cv_header_sys_bitypes_h = yes; then
15416 HAVE_SYS_BITYPES_H=1
15417 else
15418 HAVE_SYS_BITYPES_H=0
15424 if test $APPLE_UNIVERSAL_BUILD = 0; then
15427 for gltype in ptrdiff_t size_t ; do
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15429 $as_echo_n "checking for bit size of $gltype... " >&6; }
15430 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15434 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15435 included before <wchar.h>. */
15436 #include <stddef.h>
15437 #include <signal.h>
15438 #if HAVE_WCHAR_H
15439 # include <stdio.h>
15440 # include <time.h>
15441 # include <wchar.h>
15442 #endif
15444 #include <limits.h>"; then :
15446 else
15447 result=unknown
15450 eval gl_cv_bitsizeof_${gltype}=\$result
15453 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15455 $as_echo "$ac_res" >&6; }
15456 eval result=\$gl_cv_bitsizeof_${gltype}
15457 if test $result = unknown; then
15458 result=0
15460 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15461 cat >>confdefs.h <<_ACEOF
15462 #define BITSIZEOF_${GLTYPE} $result
15463 _ACEOF
15465 eval BITSIZEOF_${GLTYPE}=\$result
15466 done
15472 for gltype in sig_atomic_t wchar_t wint_t ; do
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15474 $as_echo_n "checking for bit size of $gltype... " >&6; }
15475 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15479 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15480 included before <wchar.h>. */
15481 #include <stddef.h>
15482 #include <signal.h>
15483 #if HAVE_WCHAR_H
15484 # include <stdio.h>
15485 # include <time.h>
15486 # include <wchar.h>
15487 #endif
15489 #include <limits.h>"; then :
15491 else
15492 result=unknown
15495 eval gl_cv_bitsizeof_${gltype}=\$result
15498 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15500 $as_echo "$ac_res" >&6; }
15501 eval result=\$gl_cv_bitsizeof_${gltype}
15502 if test $result = unknown; then
15503 result=0
15505 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15506 cat >>confdefs.h <<_ACEOF
15507 #define BITSIZEOF_${GLTYPE} $result
15508 _ACEOF
15510 eval BITSIZEOF_${GLTYPE}=\$result
15511 done
15516 for gltype in sig_atomic_t wchar_t wint_t ; do
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15518 $as_echo_n "checking whether $gltype is signed... " >&6; }
15519 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
15520 $as_echo_n "(cached) " >&6
15521 else
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15525 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15526 included before <wchar.h>. */
15527 #include <stddef.h>
15528 #include <signal.h>
15529 #if HAVE_WCHAR_H
15530 # include <stdio.h>
15531 # include <time.h>
15532 # include <wchar.h>
15533 #endif
15535 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15537 main (void)
15541 return 0;
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545 result=yes
15546 else
15547 result=no
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 eval gl_cv_type_${gltype}_signed=\$result
15553 eval ac_res=\$gl_cv_type_${gltype}_signed
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15555 $as_echo "$ac_res" >&6; }
15556 eval result=\$gl_cv_type_${gltype}_signed
15557 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15558 if test "$result" = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_SIGNED_${GLTYPE} 1
15561 _ACEOF
15563 eval HAVE_SIGNED_${GLTYPE}=1
15564 else
15565 eval HAVE_SIGNED_${GLTYPE}=0
15567 done
15570 gl_cv_type_ptrdiff_t_signed=yes
15571 gl_cv_type_size_t_signed=no
15572 if test $APPLE_UNIVERSAL_BUILD = 0; then
15575 for gltype in ptrdiff_t size_t ; do
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15577 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15578 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 eval gl_cv_type_${gltype}_suffix=no
15582 eval result=\$gl_cv_type_${gltype}_signed
15583 if test "$result" = yes; then
15584 glsufu=
15585 else
15586 glsufu=u
15588 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15589 case $glsuf in
15590 '') gltype1='int';;
15591 l) gltype1='long int';;
15592 ll) gltype1='long long int';;
15593 i64) gltype1='__int64';;
15594 u) gltype1='unsigned int';;
15595 ul) gltype1='unsigned long int';;
15596 ull) gltype1='unsigned long long int';;
15597 ui64)gltype1='unsigned __int64';;
15598 esac
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15602 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15603 included before <wchar.h>. */
15604 #include <stddef.h>
15605 #include <signal.h>
15606 #if HAVE_WCHAR_H
15607 # include <stdio.h>
15608 # include <time.h>
15609 # include <wchar.h>
15610 #endif
15612 extern $gltype foo;
15613 extern $gltype1 foo;
15615 main (void)
15619 return 0;
15621 _ACEOF
15622 if ac_fn_c_try_compile "$LINENO"; then :
15623 eval gl_cv_type_${gltype}_suffix=\$glsuf
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 eval result=\$gl_cv_type_${gltype}_suffix
15627 test "$result" != no && break
15628 done
15630 eval ac_res=\$gl_cv_type_${gltype}_suffix
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15632 $as_echo "$ac_res" >&6; }
15633 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15634 eval result=\$gl_cv_type_${gltype}_suffix
15635 test "$result" = no && result=
15636 eval ${GLTYPE}_SUFFIX=\$result
15637 cat >>confdefs.h <<_ACEOF
15638 #define ${GLTYPE}_SUFFIX $result
15639 _ACEOF
15641 done
15647 for gltype in sig_atomic_t wchar_t wint_t ; do
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15649 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15650 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 eval gl_cv_type_${gltype}_suffix=no
15654 eval result=\$gl_cv_type_${gltype}_signed
15655 if test "$result" = yes; then
15656 glsufu=
15657 else
15658 glsufu=u
15660 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15661 case $glsuf in
15662 '') gltype1='int';;
15663 l) gltype1='long int';;
15664 ll) gltype1='long long int';;
15665 i64) gltype1='__int64';;
15666 u) gltype1='unsigned int';;
15667 ul) gltype1='unsigned long int';;
15668 ull) gltype1='unsigned long long int';;
15669 ui64)gltype1='unsigned __int64';;
15670 esac
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15674 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15675 included before <wchar.h>. */
15676 #include <stddef.h>
15677 #include <signal.h>
15678 #if HAVE_WCHAR_H
15679 # include <stdio.h>
15680 # include <time.h>
15681 # include <wchar.h>
15682 #endif
15684 extern $gltype foo;
15685 extern $gltype1 foo;
15687 main (void)
15691 return 0;
15693 _ACEOF
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 eval gl_cv_type_${gltype}_suffix=\$glsuf
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 eval result=\$gl_cv_type_${gltype}_suffix
15699 test "$result" != no && break
15700 done
15702 eval ac_res=\$gl_cv_type_${gltype}_suffix
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15704 $as_echo "$ac_res" >&6; }
15705 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15706 eval result=\$gl_cv_type_${gltype}_suffix
15707 test "$result" = no && result=
15708 eval ${GLTYPE}_SUFFIX=\$result
15709 cat >>confdefs.h <<_ACEOF
15710 #define ${GLTYPE}_SUFFIX $result
15711 _ACEOF
15713 done
15717 if test $BITSIZEOF_WINT_T -lt 32; then
15718 BITSIZEOF_WINT_T=32
15721 STDINT_H=stdint.h
15724 if test -n "$STDINT_H"; then
15725 GL_GENERATE_STDINT_H_TRUE=
15726 GL_GENERATE_STDINT_H_FALSE='#'
15727 else
15728 GL_GENERATE_STDINT_H_TRUE='#'
15729 GL_GENERATE_STDINT_H_FALSE=
15734 GNULIB_FFS=0;
15735 HAVE_FFS=1;
15736 HAVE_STRCASECMP=1;
15737 HAVE_DECL_STRNCASECMP=1;
15740 REPLACE_STRERROR_0=0
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15742 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15743 if ${gl_cv_func_strerror_0_works+:} false; then :
15744 $as_echo_n "(cached) " >&6
15745 else
15746 if test "$cross_compiling" = yes; then :
15747 case "$host_os" in
15748 # Guess yes on glibc systems.
15749 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15750 # If we don't know, assume the worst.
15751 *) gl_cv_func_strerror_0_works="guessing no" ;;
15752 esac
15754 else
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757 #include <string.h>
15758 #include <errno.h>
15761 main (void)
15763 int result = 0;
15764 char *str;
15765 errno = 0;
15766 str = strerror (0);
15767 if (!*str) result |= 1;
15768 if (errno) result |= 2;
15769 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15770 result |= 4;
15771 return result;
15773 return 0;
15775 _ACEOF
15776 if ac_fn_c_try_run "$LINENO"; then :
15777 gl_cv_func_strerror_0_works=yes
15778 else
15779 gl_cv_func_strerror_0_works=no
15781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15782 conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15788 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15789 case "$gl_cv_func_strerror_0_works" in
15790 *yes) ;;
15792 REPLACE_STRERROR_0=1
15794 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15797 esac
15812 if test $gl_cv_have_include_next = yes; then
15813 gl_cv_next_string_h='<'string.h'>'
15814 else
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15816 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15817 if ${gl_cv_next_string_h+:} false; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 #include <string.h>
15825 _ACEOF
15826 case "$host_os" in
15827 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15828 *) gl_absname_cpp="$ac_cpp" ;;
15829 esac
15831 case "$host_os" in
15832 mingw*)
15833 gl_dirsep_regex='[/\\]'
15836 gl_dirsep_regex='\/'
15838 esac
15839 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15841 gl_header_literal_regex=`echo 'string.h' \
15842 | sed -e "$gl_make_literal_regex_sed"`
15843 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15845 s|^/[^/]|//&|
15849 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15850 sed -n "$gl_absolute_header_sed"`'"'
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15855 $as_echo "$gl_cv_next_string_h" >&6; }
15857 NEXT_STRING_H=$gl_cv_next_string_h
15859 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15861 gl_next_as_first_directive='<'string.h'>'
15862 else
15863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15864 gl_next_as_first_directive=$gl_cv_next_string_h
15866 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15873 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
15874 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15876 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15877 if eval \${$as_gl_Symbol+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 #include <string.h>
15885 main (void)
15887 #undef $gl_func
15888 (void) $gl_func;
15890 return 0;
15892 _ACEOF
15893 if ac_fn_c_try_compile "$LINENO"; then :
15894 eval "$as_gl_Symbol=yes"
15895 else
15896 eval "$as_gl_Symbol=no"
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 eval ac_res=\$$as_gl_Symbol
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15902 $as_echo "$ac_res" >&6; }
15903 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15904 cat >>confdefs.h <<_ACEOF
15905 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15906 _ACEOF
15908 eval ac_cv_have_decl_$gl_func=yes
15910 done
15927 if test $gl_cv_have_include_next = yes; then
15928 gl_cv_next_strings_h='<'strings.h'>'
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15931 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
15932 if ${gl_cv_next_strings_h+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15936 if test $ac_cv_header_strings_h = yes; then
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 #include <strings.h>
15943 _ACEOF
15944 case "$host_os" in
15945 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15946 *) gl_absname_cpp="$ac_cpp" ;;
15947 esac
15949 case "$host_os" in
15950 mingw*)
15951 gl_dirsep_regex='[/\\]'
15954 gl_dirsep_regex='\/'
15956 esac
15957 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15959 gl_header_literal_regex=`echo 'strings.h' \
15960 | sed -e "$gl_make_literal_regex_sed"`
15961 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15962 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15963 s|^/[^/]|//&|
15967 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15968 sed -n "$gl_absolute_header_sed"`'"'
15969 else
15970 gl_cv_next_strings_h='<'strings.h'>'
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15976 $as_echo "$gl_cv_next_strings_h" >&6; }
15978 NEXT_STRINGS_H=$gl_cv_next_strings_h
15980 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15982 gl_next_as_first_directive='<'strings.h'>'
15983 else
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15985 gl_next_as_first_directive=$gl_cv_next_strings_h
15987 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
15992 if test $ac_cv_header_strings_h = yes; then
15993 HAVE_STRINGS_H=1
15994 else
15995 HAVE_STRINGS_H=0
16000 for gl_func in ffs strcasecmp strncasecmp; do
16001 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16003 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16004 if eval \${$as_gl_Symbol+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16010 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
16011 <strings.h>. */
16012 #include <sys/types.h>
16013 #include <strings.h>
16016 main (void)
16018 #undef $gl_func
16019 (void) $gl_func;
16021 return 0;
16023 _ACEOF
16024 if ac_fn_c_try_compile "$LINENO"; then :
16025 eval "$as_gl_Symbol=yes"
16026 else
16027 eval "$as_gl_Symbol=no"
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 eval ac_res=\$$as_gl_Symbol
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16033 $as_echo "$ac_res" >&6; }
16034 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16035 cat >>confdefs.h <<_ACEOF
16036 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16037 _ACEOF
16039 eval ac_cv_have_decl_$gl_func=yes
16041 done
16044 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
16045 if test "x$ac_cv_have_decl_strndup" = xyes; then :
16046 ac_have_decl=1
16047 else
16048 ac_have_decl=0
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_DECL_STRNDUP $ac_have_decl
16053 _ACEOF
16057 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16058 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16059 ac_have_decl=1
16060 else
16061 ac_have_decl=0
16064 cat >>confdefs.h <<_ACEOF
16065 #define HAVE_DECL_STRNLEN $ac_have_decl
16066 _ACEOF
16070 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16071 if test "x$ac_cv_type_pid_t" = xyes; then :
16073 else
16075 cat >>confdefs.h <<_ACEOF
16076 #define pid_t int
16077 _ACEOF
16081 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16082 if test "x$ac_cv_type_mode_t" = xyes; then :
16084 else
16086 cat >>confdefs.h <<_ACEOF
16087 #define mode_t int
16088 _ACEOF
16094 WINDOWS_64_BIT_OFF_T=0
16108 if test $gl_cv_have_include_next = yes; then
16109 gl_cv_next_sys_types_h='<'sys/types.h'>'
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16112 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16113 if ${gl_cv_next_sys_types_h+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #include <sys/types.h>
16121 _ACEOF
16122 case "$host_os" in
16123 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16124 *) gl_absname_cpp="$ac_cpp" ;;
16125 esac
16127 case "$host_os" in
16128 mingw*)
16129 gl_dirsep_regex='[/\\]'
16132 gl_dirsep_regex='\/'
16134 esac
16135 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16137 gl_header_literal_regex=`echo 'sys/types.h' \
16138 | sed -e "$gl_make_literal_regex_sed"`
16139 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16141 s|^/[^/]|//&|
16145 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16146 sed -n "$gl_absolute_header_sed"`'"'
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16151 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16153 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16155 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16157 gl_next_as_first_directive='<'sys/types.h'>'
16158 else
16159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16160 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16162 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16182 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
16187 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
16192 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
16199 if test "$HAVE_LIBUNISTRING" = yes; then
16200 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
16201 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
16202 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16209 $as_echo_n "checking for wint_t... " >&6; }
16210 if ${gt_cv_c_wint_t+:} false; then :
16211 $as_echo_n "(cached) " >&6
16212 else
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16217 <wchar.h>.
16218 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16219 before <wchar.h>. */
16220 #include <stddef.h>
16221 #include <stdio.h>
16222 #include <time.h>
16223 #include <wchar.h>
16224 wint_t foo = (wchar_t)'\0';
16226 main (void)
16230 return 0;
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 gt_cv_c_wint_t=yes
16235 else
16236 gt_cv_c_wint_t=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16241 $as_echo "$gt_cv_c_wint_t" >&6; }
16242 if test $gt_cv_c_wint_t = yes; then
16244 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16250 if test $ac_cv_header_features_h = yes; then
16251 HAVE_FEATURES_H=1
16252 else
16253 HAVE_FEATURES_H=0
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16259 $as_echo_n "checking for inttypes.h... " >&6; }
16260 if ${gl_cv_header_inttypes_h+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16266 #include <sys/types.h>
16267 #include <inttypes.h>
16270 main (void)
16272 uintmax_t i = (uintmax_t) -1; return !i;
16274 return 0;
16276 _ACEOF
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278 gl_cv_header_inttypes_h=yes
16279 else
16280 gl_cv_header_inttypes_h=no
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16285 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16286 if test $gl_cv_header_inttypes_h = yes; then
16288 cat >>confdefs.h <<_ACEOF
16289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16290 _ACEOF
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16296 $as_echo_n "checking for stdint.h... " >&6; }
16297 if ${gl_cv_header_stdint_h+:} false; then :
16298 $as_echo_n "(cached) " >&6
16299 else
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <sys/types.h>
16303 #include <stdint.h>
16305 main (void)
16307 uintmax_t i = (uintmax_t) -1; return !i;
16309 return 0;
16311 _ACEOF
16312 if ac_fn_c_try_compile "$LINENO"; then :
16313 gl_cv_header_stdint_h=yes
16314 else
16315 gl_cv_header_stdint_h=no
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16320 $as_echo "$gl_cv_header_stdint_h" >&6; }
16321 if test $gl_cv_header_stdint_h = yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define HAVE_STDINT_H_WITH_UINTMAX 1
16325 _ACEOF
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16333 $as_echo_n "checking for intmax_t... " >&6; }
16334 if ${gt_cv_c_intmax_t+:} false; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16340 #include <stddef.h>
16341 #include <stdlib.h>
16342 #if HAVE_STDINT_H_WITH_UINTMAX
16343 #include <stdint.h>
16344 #endif
16345 #if HAVE_INTTYPES_H_WITH_UINTMAX
16346 #include <inttypes.h>
16347 #endif
16350 main (void)
16352 intmax_t x = -1; return !x;
16354 return 0;
16356 _ACEOF
16357 if ac_fn_c_try_compile "$LINENO"; then :
16358 gt_cv_c_intmax_t=yes
16359 else
16360 gt_cv_c_intmax_t=no
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16365 $as_echo "$gt_cv_c_intmax_t" >&6; }
16366 if test $gt_cv_c_intmax_t = yes; then
16368 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16370 else
16372 test $ac_cv_type_long_long_int = yes \
16373 && ac_type='long long' \
16374 || ac_type='long'
16376 cat >>confdefs.h <<_ACEOF
16377 #define intmax_t $ac_type
16378 _ACEOF
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16384 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16385 if ${gl_cv_cc_double_expbit0+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16389 if test "$cross_compiling" = yes; then :
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 #if defined arm || defined __arm || defined __arm__
16395 mixed_endianness
16396 #endif
16398 _ACEOF
16399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16400 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
16401 gl_cv_cc_double_expbit0="unknown"
16402 else
16405 if ${ac_cv_c_bigendian+:} false; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16408 ac_cv_c_bigendian=unknown
16409 # See if we're dealing with a universal compiler.
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #ifndef __APPLE_CC__
16413 not a universal capable compiler
16414 #endif
16415 typedef int dummy;
16417 _ACEOF
16418 if ac_fn_c_try_compile "$LINENO"; then :
16420 # Check for potential -arch flags. It is not universal unless
16421 # there are at least two -arch flags with different values.
16422 ac_arch=
16423 ac_prev=
16424 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16425 if test -n "$ac_prev"; then
16426 case $ac_word in
16427 i?86 | x86_64 | ppc | ppc64)
16428 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16429 ac_arch=$ac_word
16430 else
16431 ac_cv_c_bigendian=universal
16432 break
16435 esac
16436 ac_prev=
16437 elif test "x$ac_word" = "x-arch"; then
16438 ac_prev=arch
16440 done
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 if test $ac_cv_c_bigendian = unknown; then
16444 # See if sys/param.h defines the BYTE_ORDER macro.
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 #include <sys/types.h>
16448 #include <sys/param.h>
16451 main (void)
16453 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16454 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16455 && LITTLE_ENDIAN)
16456 bogus endian macros
16457 #endif
16460 return 0;
16462 _ACEOF
16463 if ac_fn_c_try_compile "$LINENO"; then :
16464 # It does; now see whether it defined to BIG_ENDIAN or not.
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 #include <sys/types.h>
16468 #include <sys/param.h>
16471 main (void)
16473 #if BYTE_ORDER != BIG_ENDIAN
16474 not big endian
16475 #endif
16478 return 0;
16480 _ACEOF
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482 ac_cv_c_bigendian=yes
16483 else
16484 ac_cv_c_bigendian=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 if test $ac_cv_c_bigendian = unknown; then
16491 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 #include <limits.h>
16497 main (void)
16499 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16500 bogus endian macros
16501 #endif
16504 return 0;
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"; then :
16508 # It does; now see whether it defined to _BIG_ENDIAN or not.
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 #include <limits.h>
16514 main (void)
16516 #ifndef _BIG_ENDIAN
16517 not big endian
16518 #endif
16521 return 0;
16523 _ACEOF
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 ac_cv_c_bigendian=yes
16526 else
16527 ac_cv_c_bigendian=no
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 if test $ac_cv_c_bigendian = unknown; then
16534 # Compile a test program.
16535 if test "$cross_compiling" = yes; then :
16536 # Try to guess by grepping values from an object file.
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 short int ascii_mm[] =
16540 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16541 short int ascii_ii[] =
16542 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16543 int use_ascii (int i) {
16544 return ascii_mm[i] + ascii_ii[i];
16546 short int ebcdic_ii[] =
16547 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16548 short int ebcdic_mm[] =
16549 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16550 int use_ebcdic (int i) {
16551 return ebcdic_mm[i] + ebcdic_ii[i];
16553 extern int foo;
16556 main (void)
16558 return use_ascii (foo) == use_ebcdic (foo);
16560 return 0;
16562 _ACEOF
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16565 ac_cv_c_bigendian=yes
16567 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16568 if test "$ac_cv_c_bigendian" = unknown; then
16569 ac_cv_c_bigendian=no
16570 else
16571 # finding both strings is unlikely to happen, but who knows?
16572 ac_cv_c_bigendian=unknown
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 else
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 $ac_includes_default
16582 main (void)
16585 /* Are we little or big endian? From Harbison&Steele. */
16586 union
16588 long int l;
16589 char c[sizeof (long int)];
16590 } u;
16591 u.l = 1;
16592 return u.c[sizeof (long int) - 1] == 1;
16595 return 0;
16597 _ACEOF
16598 if ac_fn_c_try_run "$LINENO"; then :
16599 ac_cv_c_bigendian=no
16600 else
16601 ac_cv_c_bigendian=yes
16603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16604 conftest.$ac_objext conftest.beam conftest.$ac_ext
16610 case $ac_cv_c_bigendian in #(
16611 yes)
16612 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
16614 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
16615 universal)
16617 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16619 ;; #(
16621 gl_cv_cc_double_expbit0="unknown" ;;
16622 esac
16626 rm -f conftest*
16629 else
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16633 #include <float.h>
16634 #include <stddef.h>
16635 #include <stdio.h>
16636 #include <string.h>
16637 #define NWORDS \
16638 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16639 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16640 static unsigned int ored_words[NWORDS];
16641 static unsigned int anded_words[NWORDS];
16642 static void add_to_ored_words (double x)
16644 memory_double m;
16645 size_t i;
16646 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16647 memset (&m, 0, sizeof (memory_double));
16648 m.value = x;
16649 for (i = 0; i < NWORDS; i++)
16651 ored_words[i] |= m.word[i];
16652 anded_words[i] &= m.word[i];
16655 int main ()
16657 size_t j;
16658 FILE *fp = fopen ("conftest.out", "w");
16659 if (fp == NULL)
16660 return 1;
16661 for (j = 0; j < NWORDS; j++)
16662 anded_words[j] = ~ (unsigned int) 0;
16663 add_to_ored_words (0.25);
16664 add_to_ored_words (0.5);
16665 add_to_ored_words (1.0);
16666 add_to_ored_words (2.0);
16667 add_to_ored_words (4.0);
16668 /* Remove bits that are common (e.g. if representation of the first mantissa
16669 bit is explicit). */
16670 for (j = 0; j < NWORDS; j++)
16671 ored_words[j] &= ~anded_words[j];
16672 /* Now find the nonzero word. */
16673 for (j = 0; j < NWORDS; j++)
16674 if (ored_words[j] != 0)
16675 break;
16676 if (j < NWORDS)
16678 size_t i;
16679 for (i = j + 1; i < NWORDS; i++)
16680 if (ored_words[i] != 0)
16682 fprintf (fp, "unknown");
16683 return (fclose (fp) != 0);
16685 for (i = 0; ; i++)
16686 if ((ored_words[j] >> i) & 1)
16688 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16689 return (fclose (fp) != 0);
16692 fprintf (fp, "unknown");
16693 return (fclose (fp) != 0);
16696 _ACEOF
16697 if ac_fn_c_try_run "$LINENO"; then :
16698 gl_cv_cc_double_expbit0=`cat conftest.out`
16699 else
16700 gl_cv_cc_double_expbit0="unknown"
16702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16703 conftest.$ac_objext conftest.beam conftest.$ac_ext
16706 rm -f conftest.out
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16710 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
16711 case "$gl_cv_cc_double_expbit0" in
16712 word*bit*)
16713 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16714 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16716 cat >>confdefs.h <<_ACEOF
16717 #define DBL_EXPBIT0_WORD $word
16718 _ACEOF
16721 cat >>confdefs.h <<_ACEOF
16722 #define DBL_EXPBIT0_BIT $bit
16723 _ACEOF
16726 esac
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
16737 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
16738 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16742 if test "$cross_compiling" = yes; then :
16744 case "$host_os" in
16745 # Guess yes on glibc systems.
16746 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16747 # Guess yes on FreeBSD >= 5.
16748 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
16749 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16750 # Guess yes on Mac OS X >= 10.3.
16751 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
16752 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16753 # Guess yes on OpenBSD >= 3.9.
16754 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
16755 gl_cv_func_snprintf_retval_c99="guessing no";;
16756 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16757 # Guess yes on Solaris >= 2.10.
16758 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
16759 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
16760 # Guess yes on AIX >= 4.
16761 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
16762 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16763 # Guess yes on NetBSD >= 3.
16764 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
16765 gl_cv_func_snprintf_retval_c99="guessing no";;
16766 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16767 # Guess yes on BeOS.
16768 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16769 # If we don't know, assume the worst.
16770 *) gl_cv_func_snprintf_retval_c99="guessing no";;
16771 esac
16773 else
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16777 #include <stdio.h>
16778 #include <string.h>
16779 #if HAVE_SNPRINTF
16780 # define my_snprintf snprintf
16781 #else
16782 # include <stdarg.h>
16783 static int my_snprintf (char *buf, int size, const char *format, ...)
16785 va_list args;
16786 int ret;
16787 va_start (args, format);
16788 ret = vsnprintf (buf, size, format, args);
16789 va_end (args);
16790 return ret;
16792 #endif
16793 static char buf[100];
16794 int main ()
16796 strcpy (buf, "ABCDEF");
16797 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
16798 return 1;
16799 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16800 return 2;
16801 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16802 return 3;
16803 return 0;
16805 _ACEOF
16806 if ac_fn_c_try_run "$LINENO"; then :
16807 gl_cv_func_snprintf_retval_c99=yes
16808 else
16809 gl_cv_func_snprintf_retval_c99=no
16811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16812 conftest.$ac_objext conftest.beam conftest.$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16818 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
16825 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16826 do :
16827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16830 cat >>confdefs.h <<_ACEOF
16831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 _ACEOF
16835 done
16837 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16839 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
16840 ac_have_decl=1
16841 else
16842 ac_have_decl=0
16845 cat >>confdefs.h <<_ACEOF
16846 #define HAVE_DECL__SNPRINTF $ac_have_decl
16847 _ACEOF
16851 case "$gl_cv_func_snprintf_retval_c99" in
16852 *yes)
16854 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16857 esac
16859 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16860 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16861 ac_have_decl=1
16862 else
16863 ac_have_decl=0
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16868 _ACEOF
16873 GNULIB_ISWBLANK=0;
16874 GNULIB_WCTYPE=0;
16875 GNULIB_ISWCTYPE=0;
16876 GNULIB_WCTRANS=0;
16877 GNULIB_TOWCTRANS=0;
16878 HAVE_ISWBLANK=1;
16879 HAVE_WCTYPE_T=1;
16880 HAVE_WCTRANS_T=1;
16881 REPLACE_ISWBLANK=0;
16888 if false; then
16889 GL_COND_LIBTOOL_TRUE=
16890 GL_COND_LIBTOOL_FALSE='#'
16891 else
16892 GL_COND_LIBTOOL_TRUE='#'
16893 GL_COND_LIBTOOL_FALSE=
16896 gl_cond_libtool=false
16897 gl_libdeps=
16898 gl_ltlibdeps=
16899 gl_m4_base='m4'
16909 gl_source_base='grub-core/gnulib'
16912 if test $ac_cv_func_alloca_works = no; then
16916 # Define an additional variable used in the Makefile substitution.
16917 if test $ac_cv_working_alloca_h = yes; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16919 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16920 if ${gl_cv_rpl_alloca+:} false; then :
16921 $as_echo_n "(cached) " >&6
16922 else
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16928 Need own alloca
16929 #endif
16931 _ACEOF
16932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16933 $EGREP "Need own alloca" >/dev/null 2>&1; then :
16934 gl_cv_rpl_alloca=yes
16935 else
16936 gl_cv_rpl_alloca=no
16938 rm -f conftest*
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16943 $as_echo "$gl_cv_rpl_alloca" >&6; }
16944 if test $gl_cv_rpl_alloca = yes; then
16946 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16948 ALLOCA_H=alloca.h
16949 else
16950 ALLOCA_H=
16952 else
16953 ALLOCA_H=alloca.h
16956 if test -n "$ALLOCA_H"; then
16957 GL_GENERATE_ALLOCA_H_TRUE=
16958 GL_GENERATE_ALLOCA_H_FALSE='#'
16959 else
16960 GL_GENERATE_ALLOCA_H_TRUE='#'
16961 GL_GENERATE_ALLOCA_H_FALSE=
16970 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16972 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
16973 ac_have_decl=1
16974 else
16975 ac_have_decl=0
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16980 _ACEOF
16981 if test $ac_have_decl = 1; then :
16983 else
16985 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16989 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16991 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
16992 ac_have_decl=1
16993 else
16994 ac_have_decl=0
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16999 _ACEOF
17000 if test $ac_have_decl = 1; then :
17002 else
17004 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17009 # Check if program_invocation_name and program_invocation_short_name
17010 # are defined elsewhere. It is improbable that only one of them will
17011 # be defined and other not, I prefer to stay on the safe side and to
17012 # test each one separately.
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17014 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017 #include <argp.h>
17019 main (void)
17021 program_invocation_name = "test";
17023 return 0;
17025 _ACEOF
17026 if ac_fn_c_try_link "$LINENO"; then :
17028 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17031 $as_echo "yes" >&6; }
17032 else
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17036 rm -f core conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17040 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 #include <argp.h>
17045 main (void)
17047 program_invocation_short_name = "test";
17049 return 0;
17051 _ACEOF
17052 if ac_fn_c_try_link "$LINENO"; then :
17054 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17057 $as_echo "yes" >&6; }
17058 else
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17083 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17087 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17095 if test $ac_cv_func_btowc = no; then
17096 HAVE_BTOWC=0
17097 else
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17103 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17104 if ${gl_cv_func_btowc_nul+:} false; then :
17105 $as_echo_n "(cached) " >&6
17106 else
17108 if test "$cross_compiling" = yes; then :
17110 case "$host_os" in
17111 # Guess no on Cygwin.
17112 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
17113 # Guess yes otherwise.
17114 *) gl_cv_func_btowc_nul="guessing yes" ;;
17115 esac
17117 else
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17121 #include <string.h>
17122 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17123 <wchar.h>.
17124 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17125 included before <wchar.h>. */
17126 #include <stddef.h>
17127 #include <stdio.h>
17128 #include <time.h>
17129 #include <wchar.h>
17130 int main ()
17132 if (btowc ('\0') != 0)
17133 return 1;
17134 return 0;
17136 _ACEOF
17137 if ac_fn_c_try_run "$LINENO"; then :
17138 gl_cv_func_btowc_nul=yes
17139 else
17140 gl_cv_func_btowc_nul=no
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17143 conftest.$ac_objext conftest.beam conftest.$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17149 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17152 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17153 if ${gl_cv_func_btowc_eof+:} false; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17157 case "$host_os" in
17158 # Guess no on IRIX.
17159 irix*) gl_cv_func_btowc_eof="guessing no" ;;
17160 # Guess yes otherwise.
17161 *) gl_cv_func_btowc_eof="guessing yes" ;;
17162 esac
17163 if test $LOCALE_FR != none; then
17164 if test "$cross_compiling" = yes; then :
17166 else
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17170 #include <locale.h>
17171 #include <string.h>
17172 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17173 <wchar.h>.
17174 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17175 included before <wchar.h>. */
17176 #include <stddef.h>
17177 #include <stdio.h>
17178 #include <time.h>
17179 #include <wchar.h>
17180 int main ()
17182 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17184 if (btowc (EOF) != WEOF)
17185 return 1;
17187 return 0;
17189 _ACEOF
17190 if ac_fn_c_try_run "$LINENO"; then :
17191 gl_cv_func_btowc_eof=yes
17192 else
17193 gl_cv_func_btowc_eof=no
17195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17196 conftest.$ac_objext conftest.beam conftest.$ac_ext
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17203 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17205 case "$gl_cv_func_btowc_nul" in
17206 *yes) ;;
17207 *) REPLACE_BTOWC=1 ;;
17208 esac
17209 case "$gl_cv_func_btowc_eof" in
17210 *yes) ;;
17211 *) REPLACE_BTOWC=1 ;;
17212 esac
17215 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
17224 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
17235 GNULIB_BTOWC=1
17241 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17246 if test "x$datarootdir" = x; then
17247 datarootdir='${datadir}'
17250 if test "x$docdir" = x; then
17251 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
17254 if test "x$htmldir" = x; then
17255 htmldir='${docdir}'
17258 if test "x$dvidir" = x; then
17259 dvidir='${docdir}'
17262 if test "x$pdfdir" = x; then
17263 pdfdir='${docdir}'
17266 if test "x$psdir" = x; then
17267 psdir='${docdir}'
17270 if test "x$lispdir" = x; then
17271 lispdir='${datarootdir}/emacs/site-lisp'
17274 if test "x$localedir" = x; then
17275 localedir='${datarootdir}/locale'
17279 pkglibexecdir='${libexecdir}/${PACKAGE}'
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17289 $as_echo_n "checking whether // is distinct from /... " >&6; }
17290 if ${gl_cv_double_slash_root+:} false; then :
17291 $as_echo_n "(cached) " >&6
17292 else
17293 if test x"$cross_compiling" = xyes ; then
17294 # When cross-compiling, there is no way to tell whether // is special
17295 # short of a list of hosts. However, the only known hosts to date
17296 # that have a distinct // are Apollo DomainOS (too old to port to),
17297 # Cygwin, and z/OS. If anyone knows of another system for which // has
17298 # special semantics and is distinct from /, please report it to
17299 # <bug-gnulib@gnu.org>.
17300 case $host in
17301 *-cygwin | i370-ibm-openedition)
17302 gl_cv_double_slash_root=yes ;;
17304 # Be optimistic and assume that / and // are the same when we
17305 # don't know.
17306 gl_cv_double_slash_root='unknown, assuming no' ;;
17307 esac
17308 else
17309 set x `ls -di / // 2>/dev/null`
17310 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
17311 gl_cv_double_slash_root=no
17312 else
17313 gl_cv_double_slash_root=yes
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17318 $as_echo "$gl_cv_double_slash_root" >&6; }
17319 if test "$gl_cv_double_slash_root" = yes; then
17321 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17328 $as_echo_n "checking for error_at_line... " >&6; }
17329 if ${ac_cv_lib_error_at_line+:} false; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 #include <error.h>
17336 main (void)
17338 error_at_line (0, 0, "", 0, "an error occurred");
17340 return 0;
17342 _ACEOF
17343 if ac_fn_c_try_link "$LINENO"; then :
17344 ac_cv_lib_error_at_line=yes
17345 else
17346 ac_cv_lib_error_at_line=no
17348 rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17352 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17354 if test $ac_cv_lib_error_at_line = no; then
17363 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
17372 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17376 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17382 FLOAT_H=
17383 REPLACE_FLOAT_LDBL=0
17384 case "$host_os" in
17385 aix* | beos* | openbsd* | mirbsd* | irix*)
17386 FLOAT_H=float.h
17388 freebsd*)
17389 case "$host_cpu" in
17390 i[34567]86 )
17391 FLOAT_H=float.h
17393 x86_64 )
17394 # On x86_64 systems, the C compiler may still be generating
17395 # 32-bit code.
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
17400 #endif
17401 _ACEOF
17402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17403 $EGREP "yes" >/dev/null 2>&1; then :
17405 else
17406 FLOAT_H=float.h
17408 rm -f conftest*
17411 esac
17413 linux*)
17414 case "$host_cpu" in
17415 powerpc*)
17416 FLOAT_H=float.h
17418 esac
17420 esac
17421 case "$host_os" in
17422 aix* | freebsd* | linux*)
17423 if test -n "$FLOAT_H"; then
17424 REPLACE_FLOAT_LDBL=1
17427 esac
17429 REPLACE_ITOLD=0
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17431 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17432 if ${gl_cv_func_itold_works+:} false; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17436 if test "$cross_compiling" = yes; then :
17437 case "$host" in
17438 sparc*-*-linux*)
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #if defined __LP64__ || defined __arch64__
17443 #endif
17444 _ACEOF
17445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17446 $EGREP "yes" >/dev/null 2>&1; then :
17447 gl_cv_func_itold_works="guessing no"
17448 else
17449 gl_cv_func_itold_works="guessing yes"
17451 rm -f conftest*
17454 *) gl_cv_func_itold_works="guessing yes" ;;
17455 esac
17457 else
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17461 int i = -1;
17462 volatile long double ld;
17463 int main ()
17465 ld += i * 1.0L;
17466 if (ld > 0)
17467 return 1;
17468 return 0;
17470 _ACEOF
17471 if ac_fn_c_try_run "$LINENO"; then :
17472 gl_cv_func_itold_works=yes
17473 else
17474 gl_cv_func_itold_works=no
17476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17477 conftest.$ac_objext conftest.beam conftest.$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17483 $as_echo "$gl_cv_func_itold_works" >&6; }
17484 case "$gl_cv_func_itold_works" in
17485 *no)
17486 REPLACE_ITOLD=1
17487 FLOAT_H=float.h
17489 esac
17491 if test -n "$FLOAT_H"; then
17500 if test $gl_cv_have_include_next = yes; then
17501 gl_cv_next_float_h='<'float.h'>'
17502 else
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17504 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17505 if ${gl_cv_next_float_h+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 #include <float.h>
17513 _ACEOF
17514 case "$host_os" in
17515 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17516 *) gl_absname_cpp="$ac_cpp" ;;
17517 esac
17519 case "$host_os" in
17520 mingw*)
17521 gl_dirsep_regex='[/\\]'
17524 gl_dirsep_regex='\/'
17526 esac
17527 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17529 gl_header_literal_regex=`echo 'float.h' \
17530 | sed -e "$gl_make_literal_regex_sed"`
17531 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17532 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17533 s|^/[^/]|//&|
17537 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17538 sed -n "$gl_absolute_header_sed"`'"'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17543 $as_echo "$gl_cv_next_float_h" >&6; }
17545 NEXT_FLOAT_H=$gl_cv_next_float_h
17547 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive='<'float.h'>'
17550 else
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive=$gl_cv_next_float_h
17554 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
17561 if test -n "$FLOAT_H"; then
17562 GL_GENERATE_FLOAT_H_TRUE=
17563 GL_GENERATE_FLOAT_H_FALSE='#'
17564 else
17565 GL_GENERATE_FLOAT_H_TRUE='#'
17566 GL_GENERATE_FLOAT_H_FALSE=
17571 if test $REPLACE_FLOAT_LDBL = 1; then
17580 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
17583 if test $REPLACE_ITOLD = 1; then
17592 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
17600 FNMATCH_H=
17601 gl_fnmatch_required_lowercase=`
17602 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17604 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17606 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17607 if eval \${$gl_fnmatch_cache_var+:} false; then :
17608 $as_echo_n "(cached) " >&6
17609 else
17610 if test $gl_fnmatch_required = GNU; then
17611 gl_fnmatch_gnu_start=
17612 gl_fnmatch_gnu_end=
17613 else
17614 gl_fnmatch_gnu_start='#if 0'
17615 gl_fnmatch_gnu_end='#endif'
17617 if test "$cross_compiling" = yes; then :
17618 eval "$gl_fnmatch_cache_var=\"guessing no\""
17619 else
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 #include <fnmatch.h>
17623 static int
17624 y (char const *pattern, char const *string, int flags)
17626 return fnmatch (pattern, string, flags) == 0;
17628 static int
17629 n (char const *pattern, char const *string, int flags)
17631 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17635 main (void)
17637 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17638 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17639 static char const A_1[] = { 'A' - 1, 0 };
17640 static char const A01[] = { 'A' + 1, 0 };
17641 static char const a_1[] = { 'a' - 1, 0 };
17642 static char const a01[] = { 'a' + 1, 0 };
17643 static char const bs_1[] = { '\\\\' - 1, 0 };
17644 static char const bs01[] = { '\\\\' + 1, 0 };
17645 int result = 0;
17646 if (!n ("a*", "", 0))
17647 return 1;
17648 if (!y ("a*", "abc", 0))
17649 return 1;
17650 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17651 return 1;
17652 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17653 return 2;
17654 if (!y ("a\\\\bc", "abc", 0))
17655 return 3;
17656 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17657 return 3;
17658 if (!y ("*x", ".x", 0))
17659 return 4;
17660 if (!n ("*x", ".x", FNM_PERIOD))
17661 return 4;
17662 if (!y (Apat, "\\\\", 0))
17663 return 5;
17664 if (!y (Apat, "A", 0))
17665 return 5;
17666 if (!y (apat, "\\\\", 0))
17667 return 5;
17668 if (!y (apat, "a", 0))
17669 return 5;
17670 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17671 return 5;
17672 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17673 return 5;
17674 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17675 return 5;
17676 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17677 return 5;
17678 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17679 return 5;
17680 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17681 return 5;
17682 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17683 return 5;
17684 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17685 return 5;
17686 $gl_fnmatch_gnu_start
17687 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17688 result |= 8;
17689 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17690 result |= 16;
17691 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17692 result |= 32;
17693 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17694 result |= 64;
17695 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17696 result |= 64;
17697 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17698 result |= 64;
17699 $gl_fnmatch_gnu_end
17700 return result;
17703 return 0;
17705 _ACEOF
17706 if ac_fn_c_try_run "$LINENO"; then :
17707 eval "$gl_fnmatch_cache_var=yes"
17708 else
17709 eval "$gl_fnmatch_cache_var=no"
17711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17712 conftest.$ac_objext conftest.beam conftest.$ac_ext
17717 eval ac_res=\$$gl_fnmatch_cache_var
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17719 $as_echo "$ac_res" >&6; }
17720 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17721 if test "$gl_fnmatch_result" = yes; then
17722 rm -f "$gl_source_base/fnmatch.h"
17723 else
17724 FNMATCH_H=fnmatch.h
17727 if test -n "$FNMATCH_H"; then
17728 GL_GENERATE_FNMATCH_H_TRUE=
17729 GL_GENERATE_FNMATCH_H_FALSE='#'
17730 else
17731 GL_GENERATE_FNMATCH_H_TRUE='#'
17732 GL_GENERATE_FNMATCH_H_FALSE=
17736 if test -n "$FNMATCH_H"; then
17745 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
17749 cat >>confdefs.h <<_ACEOF
17750 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17751 _ACEOF
17754 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17756 if test "x$ac_cv_have_decl_isblank" = xyes; then :
17757 ac_have_decl=1
17758 else
17759 ac_have_decl=0
17762 cat >>confdefs.h <<_ACEOF
17763 #define HAVE_DECL_ISBLANK $ac_have_decl
17764 _ACEOF
17778 if test $ac_cv_func_getdelim = yes; then
17779 HAVE_GETDELIM=1
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
17781 $as_echo_n "checking for working getdelim function... " >&6; }
17782 if ${gl_cv_func_working_getdelim+:} false; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17785 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17786 if test "$cross_compiling" = yes; then :
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17790 #include <features.h>
17791 #ifdef __GNU_LIBRARY__
17792 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17793 Lucky GNU user
17794 #endif
17795 #endif
17797 _ACEOF
17798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17799 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17800 gl_cv_func_working_getdelim="guessing yes"
17801 else
17802 gl_cv_func_working_getdelim="guessing no"
17804 rm -f conftest*
17807 else
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 # include <stdio.h>
17812 # include <stdlib.h>
17813 # include <string.h>
17814 int main ()
17816 FILE *in = fopen ("./conftest.data", "r");
17817 if (!in)
17818 return 1;
17820 /* Test result for a NULL buffer and a zero size.
17821 Based on a test program from Karl Heuer. */
17822 char *line = NULL;
17823 size_t siz = 0;
17824 int len = getdelim (&line, &siz, '\n', in);
17825 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17826 return 2;
17829 /* Test result for a NULL buffer and a non-zero size.
17830 This crashes on FreeBSD 8.0. */
17831 char *line = NULL;
17832 size_t siz = (size_t)(~0) / 4;
17833 if (getdelim (&line, &siz, '\n', in) == -1)
17834 return 3;
17836 return 0;
17839 _ACEOF
17840 if ac_fn_c_try_run "$LINENO"; then :
17841 gl_cv_func_working_getdelim=yes
17842 else
17843 gl_cv_func_working_getdelim=no
17845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17846 conftest.$ac_objext conftest.beam conftest.$ac_ext
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
17851 $as_echo "$gl_cv_func_working_getdelim" >&6; }
17852 case "$gl_cv_func_working_getdelim" in
17853 *no)
17854 REPLACE_GETDELIM=1
17856 esac
17857 else
17858 HAVE_GETDELIM=0
17861 if test $ac_cv_have_decl_getdelim = no; then
17862 HAVE_DECL_GETDELIM=0
17865 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
17874 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
17877 for ac_func in flockfile funlockfile
17878 do :
17879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17882 cat >>confdefs.h <<_ACEOF
17883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17884 _ACEOF
17887 done
17889 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
17890 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
17891 ac_have_decl=1
17892 else
17893 ac_have_decl=0
17896 cat >>confdefs.h <<_ACEOF
17897 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
17898 _ACEOF
17907 GNULIB_GETDELIM=1
17913 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
17924 gl_getline_needs_run_time_check=no
17925 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17926 if test "x$ac_cv_func_getline" = xyes; then :
17927 gl_getline_needs_run_time_check=yes
17928 else
17929 am_cv_func_working_getline=no
17932 if test $gl_getline_needs_run_time_check = yes; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
17934 $as_echo_n "checking for working getline function... " >&6; }
17935 if ${am_cv_func_working_getline+:} false; then :
17936 $as_echo_n "(cached) " >&6
17937 else
17938 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17939 if test "$cross_compiling" = yes; then :
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17943 #include <features.h>
17944 #ifdef __GNU_LIBRARY__
17945 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17946 Lucky GNU user
17947 #endif
17948 #endif
17950 _ACEOF
17951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17952 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17953 am_cv_func_working_getline="guessing yes"
17954 else
17955 am_cv_func_working_getline="guessing no"
17957 rm -f conftest*
17960 else
17961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17964 # include <stdio.h>
17965 # include <stdlib.h>
17966 # include <string.h>
17967 int main ()
17969 FILE *in = fopen ("./conftest.data", "r");
17970 if (!in)
17971 return 1;
17973 /* Test result for a NULL buffer and a zero size.
17974 Based on a test program from Karl Heuer. */
17975 char *line = NULL;
17976 size_t siz = 0;
17977 int len = getline (&line, &siz, in);
17978 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17979 return 2;
17982 /* Test result for a NULL buffer and a non-zero size.
17983 This crashes on FreeBSD 8.0. */
17984 char *line = NULL;
17985 size_t siz = (size_t)(~0) / 4;
17986 if (getline (&line, &siz, in) == -1)
17987 return 3;
17989 return 0;
17992 _ACEOF
17993 if ac_fn_c_try_run "$LINENO"; then :
17994 am_cv_func_working_getline=yes
17995 else
17996 am_cv_func_working_getline=no
17998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17999 conftest.$ac_objext conftest.beam conftest.$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
18004 $as_echo "$am_cv_func_working_getline" >&6; }
18007 if test $ac_cv_have_decl_getline = no; then
18008 HAVE_DECL_GETLINE=0
18011 case "$am_cv_func_working_getline" in
18012 *no)
18013 REPLACE_GETLINE=1
18015 esac
18017 if test $REPLACE_GETLINE = 1; then
18026 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
18037 GNULIB_GETLINE=1
18043 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
18052 if test $REPLACE_GETOPT = 1; then
18061 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18071 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18076 GNULIB_GL_UNISTD_H_GETOPT=1
18081 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18089 REPLACE_GETOPT=1
18091 if test $REPLACE_GETOPT = 1; then
18093 GETOPT_H=getopt.h
18095 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18101 if test $REPLACE_GETOPT = 1; then
18110 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18120 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18125 GNULIB_GL_UNISTD_H_GETOPT=1
18145 if test $gl_cv_have_include_next = yes; then
18146 gl_cv_next_langinfo_h='<'langinfo.h'>'
18147 else
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
18149 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
18150 if ${gl_cv_next_langinfo_h+:} false; then :
18151 $as_echo_n "(cached) " >&6
18152 else
18154 if test $ac_cv_header_langinfo_h = yes; then
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 #include <langinfo.h>
18161 _ACEOF
18162 case "$host_os" in
18163 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18164 *) gl_absname_cpp="$ac_cpp" ;;
18165 esac
18167 case "$host_os" in
18168 mingw*)
18169 gl_dirsep_regex='[/\\]'
18172 gl_dirsep_regex='\/'
18174 esac
18175 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18177 gl_header_literal_regex=`echo 'langinfo.h' \
18178 | sed -e "$gl_make_literal_regex_sed"`
18179 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18181 s|^/[^/]|//&|
18185 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18186 sed -n "$gl_absolute_header_sed"`'"'
18187 else
18188 gl_cv_next_langinfo_h='<'langinfo.h'>'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
18194 $as_echo "$gl_cv_next_langinfo_h" >&6; }
18196 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
18198 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18200 gl_next_as_first_directive='<'langinfo.h'>'
18201 else
18202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18203 gl_next_as_first_directive=$gl_cv_next_langinfo_h
18205 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
18211 HAVE_LANGINFO_CODESET=0
18212 HAVE_LANGINFO_T_FMT_AMPM=0
18213 HAVE_LANGINFO_ERA=0
18214 HAVE_LANGINFO_YESEXPR=0
18216 if test $ac_cv_header_langinfo_h = yes; then
18217 HAVE_LANGINFO_H=1
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
18219 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
18220 if ${gl_cv_header_langinfo_codeset+:} false; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #include <langinfo.h>
18226 int a = CODESET;
18229 main (void)
18233 return 0;
18235 _ACEOF
18236 if ac_fn_c_try_compile "$LINENO"; then :
18237 gl_cv_header_langinfo_codeset=yes
18238 else
18239 gl_cv_header_langinfo_codeset=no
18241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
18245 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
18246 if test $gl_cv_header_langinfo_codeset = yes; then
18247 HAVE_LANGINFO_CODESET=1
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
18250 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
18251 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
18252 $as_echo_n "(cached) " >&6
18253 else
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256 #include <langinfo.h>
18257 int a = T_FMT_AMPM;
18260 main (void)
18264 return 0;
18266 _ACEOF
18267 if ac_fn_c_try_compile "$LINENO"; then :
18268 gl_cv_header_langinfo_t_fmt_ampm=yes
18269 else
18270 gl_cv_header_langinfo_t_fmt_ampm=no
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
18276 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
18277 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
18278 HAVE_LANGINFO_T_FMT_AMPM=1
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
18281 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
18282 if ${gl_cv_header_langinfo_era+:} false; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <langinfo.h>
18288 int a = ERA;
18291 main (void)
18295 return 0;
18297 _ACEOF
18298 if ac_fn_c_try_compile "$LINENO"; then :
18299 gl_cv_header_langinfo_era=yes
18300 else
18301 gl_cv_header_langinfo_era=no
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
18307 $as_echo "$gl_cv_header_langinfo_era" >&6; }
18308 if test $gl_cv_header_langinfo_era = yes; then
18309 HAVE_LANGINFO_ERA=1
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
18312 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
18313 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
18314 $as_echo_n "(cached) " >&6
18315 else
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18318 #include <langinfo.h>
18319 int a = YESEXPR;
18322 main (void)
18326 return 0;
18328 _ACEOF
18329 if ac_fn_c_try_compile "$LINENO"; then :
18330 gl_cv_header_langinfo_yesexpr=yes
18331 else
18332 gl_cv_header_langinfo_yesexpr=no
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
18338 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
18339 if test $gl_cv_header_langinfo_yesexpr = yes; then
18340 HAVE_LANGINFO_YESEXPR=1
18342 else
18343 HAVE_LANGINFO_H=0
18352 for gl_func in nl_langinfo; do
18353 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18355 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18356 if eval \${$as_gl_Symbol+:} false; then :
18357 $as_echo_n "(cached) " >&6
18358 else
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361 #include <langinfo.h>
18364 main (void)
18366 #undef $gl_func
18367 (void) $gl_func;
18369 return 0;
18371 _ACEOF
18372 if ac_fn_c_try_compile "$LINENO"; then :
18373 eval "$as_gl_Symbol=yes"
18374 else
18375 eval "$as_gl_Symbol=no"
18377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 eval ac_res=\$$as_gl_Symbol
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18381 $as_echo "$ac_res" >&6; }
18382 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18383 cat >>confdefs.h <<_ACEOF
18384 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18385 _ACEOF
18387 eval ac_cv_have_decl_$gl_func=yes
18389 done
18400 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18410 case "$host_os" in
18411 solaris*)
18413 $as_echo "#define _LCONV_C99 1" >>confdefs.h
18416 esac
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
18419 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
18420 if ${gl_cv_header_locale_h_posix2001+:} false; then :
18421 $as_echo_n "(cached) " >&6
18422 else
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18425 #include <locale.h>
18426 int x = LC_MESSAGES;
18427 int y = sizeof (((struct lconv *) 0)->decimal_point);
18429 main (void)
18433 return 0;
18435 _ACEOF
18436 if ac_fn_c_try_compile "$LINENO"; then :
18437 gl_cv_header_locale_h_posix2001=yes
18438 else
18439 gl_cv_header_locale_h_posix2001=no
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
18444 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
18447 if test $ac_cv_header_xlocale_h = yes; then
18448 HAVE_XLOCALE_H=1
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
18450 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
18451 if ${gl_cv_header_locale_has_locale_t+:} false; then :
18452 $as_echo_n "(cached) " >&6
18453 else
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 #include <locale.h>
18457 locale_t x;
18459 main (void)
18463 return 0;
18465 _ACEOF
18466 if ac_fn_c_try_compile "$LINENO"; then :
18467 gl_cv_header_locale_has_locale_t=yes
18468 else
18469 gl_cv_header_locale_has_locale_t=no
18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
18475 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
18476 if test $gl_cv_header_locale_has_locale_t = yes; then
18477 gl_cv_header_locale_h_needs_xlocale_h=no
18478 else
18479 gl_cv_header_locale_h_needs_xlocale_h=yes
18481 else
18482 HAVE_XLOCALE_H=0
18483 gl_cv_header_locale_h_needs_xlocale_h=no
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
18488 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
18489 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 #include <locale.h>
18495 struct lconv l;
18496 int x = sizeof (l.decimal_point);
18497 int y = sizeof (l.int_p_cs_precedes);
18499 main (void)
18503 return 0;
18505 _ACEOF
18506 if ac_fn_c_try_compile "$LINENO"; then :
18507 gl_cv_sys_struct_lconv_ok=yes
18508 else
18509 gl_cv_sys_struct_lconv_ok=no
18511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
18515 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
18516 if test $gl_cv_sys_struct_lconv_ok = no; then
18517 REPLACE_STRUCT_LCONV=1
18528 if test $gl_cv_have_include_next = yes; then
18529 gl_cv_next_locale_h='<'locale.h'>'
18530 else
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
18532 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
18533 if ${gl_cv_next_locale_h+:} false; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 #include <locale.h>
18541 _ACEOF
18542 case "$host_os" in
18543 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18544 *) gl_absname_cpp="$ac_cpp" ;;
18545 esac
18547 case "$host_os" in
18548 mingw*)
18549 gl_dirsep_regex='[/\\]'
18552 gl_dirsep_regex='\/'
18554 esac
18555 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18557 gl_header_literal_regex=`echo 'locale.h' \
18558 | sed -e "$gl_make_literal_regex_sed"`
18559 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18560 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18561 s|^/[^/]|//&|
18565 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18566 sed -n "$gl_absolute_header_sed"`'"'
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
18571 $as_echo "$gl_cv_next_locale_h" >&6; }
18573 NEXT_LOCALE_H=$gl_cv_next_locale_h
18575 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18576 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18577 gl_next_as_first_directive='<'locale.h'>'
18578 else
18579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18580 gl_next_as_first_directive=$gl_cv_next_locale_h
18582 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
18589 for gl_func in setlocale duplocale; do
18590 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18592 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18593 if eval \${$as_gl_Symbol+:} false; then :
18594 $as_echo_n "(cached) " >&6
18595 else
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 #include <locale.h>
18599 /* Some systems provide declarations in a non-standard header. */
18600 #if HAVE_XLOCALE_H
18601 # include <xlocale.h>
18602 #endif
18605 main (void)
18607 #undef $gl_func
18608 (void) $gl_func;
18610 return 0;
18612 _ACEOF
18613 if ac_fn_c_try_compile "$LINENO"; then :
18614 eval "$as_gl_Symbol=yes"
18615 else
18616 eval "$as_gl_Symbol=no"
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 eval ac_res=\$$as_gl_Symbol
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18622 $as_echo "$ac_res" >&6; }
18623 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18624 cat >>confdefs.h <<_ACEOF
18625 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18626 _ACEOF
18628 eval ac_cv_have_decl_$gl_func=yes
18630 done
18637 if test $REPLACE_STRUCT_LCONV = 1; then
18638 REPLACE_LOCALECONV=1
18641 if test $REPLACE_LOCALECONV = 1; then
18650 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
18653 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
18655 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
18659 _ACEOF
18671 GNULIB_LOCALECONV=1
18677 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
18684 for ac_header in stdlib.h
18685 do :
18686 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18687 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_STDLIB_H 1
18690 _ACEOF
18694 done
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18697 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18698 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18699 $as_echo_n "(cached) " >&6
18700 else
18701 if test "$cross_compiling" = yes; then :
18702 case "$host_os" in
18703 # Guess yes on platforms where we know the result.
18704 *-gnu* | freebsd* | netbsd* | openbsd* \
18705 | hpux* | solaris* | cygwin* | mingw*)
18706 ac_cv_func_malloc_0_nonnull=yes ;;
18707 # If we don't know, assume the worst.
18708 *) ac_cv_func_malloc_0_nonnull=no ;;
18709 esac
18711 else
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18715 # include <stdlib.h>
18716 #else
18717 char *malloc ();
18718 #endif
18721 main (void)
18723 return ! malloc (0);
18725 return 0;
18728 _ACEOF
18729 if ac_fn_c_try_run "$LINENO"; then :
18730 ac_cv_func_malloc_0_nonnull=yes
18731 else
18732 ac_cv_func_malloc_0_nonnull=no
18734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18735 conftest.$ac_objext conftest.beam conftest.$ac_ext
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18741 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18742 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18744 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
18746 else
18747 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
18749 REPLACE_MALLOC=1
18754 if test $REPLACE_MALLOC = 1; then
18763 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18768 cat >>confdefs.h <<_ACEOF
18769 #define GNULIB_MALLOC_GNU 1
18770 _ACEOF
18776 if test $gl_cv_func_malloc_posix = yes; then
18778 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18780 else
18781 REPLACE_MALLOC=1
18784 if test $REPLACE_MALLOC = 1; then
18793 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18801 GNULIB_MALLOC_POSIX=1
18807 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18821 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18826 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18827 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
18828 $as_echo_n "(cached) " >&6
18829 else
18831 case "$host_os" in
18832 # Guess no on AIX and OSF/1.
18833 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18834 # Guess yes otherwise.
18835 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18836 esac
18837 if test $LOCALE_JA != none; then
18838 if test "$cross_compiling" = yes; then :
18840 else
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18844 #include <locale.h>
18845 #include <string.h>
18846 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18847 <wchar.h>.
18848 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18849 included before <wchar.h>. */
18850 #include <stddef.h>
18851 #include <stdio.h>
18852 #include <time.h>
18853 #include <wchar.h>
18854 int main ()
18856 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18858 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18859 mbstate_t state;
18860 wchar_t wc;
18862 memset (&state, '\0', sizeof (mbstate_t));
18863 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18864 if (mbsinit (&state))
18865 return 1;
18867 return 0;
18869 _ACEOF
18870 if ac_fn_c_try_run "$LINENO"; then :
18871 gl_cv_func_mbrtowc_incomplete_state=yes
18872 else
18873 gl_cv_func_mbrtowc_incomplete_state=no
18875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18876 conftest.$ac_objext conftest.beam conftest.$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18883 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18889 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18890 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
18891 $as_echo_n "(cached) " >&6
18892 else
18894 case "$host_os" in
18895 # Guess no on Solaris 8.
18896 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18897 # Guess yes otherwise.
18898 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18899 esac
18900 if test $LOCALE_ZH_CN != none; then
18901 if test "$cross_compiling" = yes; then :
18903 else
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 #include <locale.h>
18908 #include <stdlib.h>
18909 #include <string.h>
18910 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18911 <wchar.h>.
18912 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18913 included before <wchar.h>. */
18914 #include <stddef.h>
18915 #include <stdio.h>
18916 #include <time.h>
18917 #include <wchar.h>
18918 int main ()
18920 /* This fails on Solaris 8:
18921 mbrtowc returns 2, and sets wc to 0x00F0.
18922 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18923 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18925 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18926 mbstate_t state;
18927 wchar_t wc;
18929 memset (&state, '\0', sizeof (mbstate_t));
18930 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18931 && mbtowc (&wc, input + 3, 6) == 4)
18932 return 1;
18934 return 0;
18936 _ACEOF
18937 if ac_fn_c_try_run "$LINENO"; then :
18938 gl_cv_func_mbrtowc_sanitycheck=yes
18939 else
18940 gl_cv_func_mbrtowc_sanitycheck=no
18942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18943 conftest.$ac_objext conftest.beam conftest.$ac_ext
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18950 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18952 REPLACE_MBSTATE_T=0
18953 case "$gl_cv_func_mbrtowc_incomplete_state" in
18954 *yes) ;;
18955 *) REPLACE_MBSTATE_T=1 ;;
18956 esac
18957 case "$gl_cv_func_mbrtowc_sanitycheck" in
18958 *yes) ;;
18959 *) REPLACE_MBSTATE_T=1 ;;
18960 esac
18961 else
18962 REPLACE_MBSTATE_T=1
18967 if test $ac_cv_func_mbrtowc = no; then
18968 HAVE_MBRTOWC=0
18969 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18970 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18971 <wchar.h>.
18972 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18973 included before <wchar.h>. */
18974 #include <stddef.h>
18975 #include <stdio.h>
18976 #include <time.h>
18977 #include <wchar.h>
18980 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
18981 ac_have_decl=1
18982 else
18983 ac_have_decl=0
18986 cat >>confdefs.h <<_ACEOF
18987 #define HAVE_DECL_MBRTOWC $ac_have_decl
18988 _ACEOF
18990 if test $ac_cv_have_decl_mbrtowc = yes; then
18991 REPLACE_MBRTOWC=1
18993 else
18994 if test $REPLACE_MBSTATE_T = 1; then
18995 REPLACE_MBRTOWC=1
18996 else
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19001 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19002 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19006 case "$host_os" in
19007 # Guess no on Solaris.
19008 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
19009 # Guess yes otherwise.
19010 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
19011 esac
19012 if test $LOCALE_FR_UTF8 != none; then
19013 if test "$cross_compiling" = yes; then :
19015 else
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19019 #include <locale.h>
19020 #include <stdlib.h>
19021 #include <string.h>
19022 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19023 <wchar.h>.
19024 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19025 included before <wchar.h>. */
19026 #include <stddef.h>
19027 #include <stdio.h>
19028 #include <time.h>
19029 #include <wchar.h>
19030 int main ()
19032 int result = 0;
19034 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19036 char input[] = "\303\237er";
19037 mbstate_t state;
19038 wchar_t wc;
19039 size_t ret;
19041 memset (&state, '\0', sizeof (mbstate_t));
19042 wc = (wchar_t) 0xBADFACE;
19043 ret = mbrtowc (&wc, input, 5, &state);
19044 if (ret != 2)
19045 result |= 1;
19046 if (!mbsinit (&state))
19047 result |= 2;
19049 memset (&state, '\0', sizeof (mbstate_t));
19050 ret = mbrtowc (NULL, input, 5, &state);
19051 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19052 result |= 4;
19053 if (!mbsinit (&state))
19054 result |= 8;
19056 return result;
19058 _ACEOF
19059 if ac_fn_c_try_run "$LINENO"; then :
19060 gl_cv_func_mbrtowc_null_arg1=yes
19061 else
19062 gl_cv_func_mbrtowc_null_arg1=no
19064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19065 conftest.$ac_objext conftest.beam conftest.$ac_ext
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19072 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19078 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19079 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
19080 $as_echo_n "(cached) " >&6
19081 else
19083 case "$host_os" in
19084 # Guess no on OSF/1.
19085 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
19086 # Guess yes otherwise.
19087 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
19088 esac
19089 if test $LOCALE_FR_UTF8 != none; then
19090 if test "$cross_compiling" = yes; then :
19092 else
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19096 #include <locale.h>
19097 #include <string.h>
19098 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19099 <wchar.h>.
19100 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19101 included before <wchar.h>. */
19102 #include <stddef.h>
19103 #include <stdio.h>
19104 #include <time.h>
19105 #include <wchar.h>
19106 int main ()
19108 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19110 mbstate_t state;
19111 wchar_t wc;
19112 int ret;
19114 memset (&state, '\0', sizeof (mbstate_t));
19115 wc = (wchar_t) 0xBADFACE;
19116 mbrtowc (&wc, NULL, 5, &state);
19117 /* Check that wc was not modified. */
19118 if (wc != (wchar_t) 0xBADFACE)
19119 return 1;
19121 return 0;
19123 _ACEOF
19124 if ac_fn_c_try_run "$LINENO"; then :
19125 gl_cv_func_mbrtowc_null_arg2=yes
19126 else
19127 gl_cv_func_mbrtowc_null_arg2=no
19129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19130 conftest.$ac_objext conftest.beam conftest.$ac_ext
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19137 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19145 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19146 if ${gl_cv_func_mbrtowc_retval+:} false; then :
19147 $as_echo_n "(cached) " >&6
19148 else
19150 case "$host_os" in
19151 # Guess no on HP-UX, Solaris, native Windows.
19152 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
19153 # Guess yes otherwise.
19154 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
19155 esac
19156 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
19157 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
19158 if test "$cross_compiling" = yes; then :
19160 else
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19164 #include <locale.h>
19165 #include <string.h>
19166 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19167 <wchar.h>.
19168 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19169 included before <wchar.h>. */
19170 #include <stddef.h>
19171 #include <stdio.h>
19172 #include <time.h>
19173 #include <wchar.h>
19174 int main ()
19176 int result = 0;
19177 int found_some_locale = 0;
19178 /* This fails on Solaris. */
19179 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19181 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19182 mbstate_t state;
19183 wchar_t wc;
19185 memset (&state, '\0', sizeof (mbstate_t));
19186 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19188 input[1] = '\0';
19189 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19190 result |= 1;
19192 found_some_locale = 1;
19194 /* This fails on HP-UX 11.11. */
19195 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19197 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19198 mbstate_t state;
19199 wchar_t wc;
19201 memset (&state, '\0', sizeof (mbstate_t));
19202 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19204 input[1] = '\0';
19205 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19206 result |= 2;
19208 found_some_locale = 1;
19210 /* This fails on native Windows. */
19211 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19213 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19214 mbstate_t state;
19215 wchar_t wc;
19217 memset (&state, '\0', sizeof (mbstate_t));
19218 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19220 input[3] = '\0';
19221 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19222 result |= 4;
19224 found_some_locale = 1;
19226 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19228 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19229 mbstate_t state;
19230 wchar_t wc;
19232 memset (&state, '\0', sizeof (mbstate_t));
19233 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19235 input[3] = '\0';
19236 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19237 result |= 8;
19239 found_some_locale = 1;
19241 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19243 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19244 mbstate_t state;
19245 wchar_t wc;
19247 memset (&state, '\0', sizeof (mbstate_t));
19248 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19250 input[3] = '\0';
19251 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19252 result |= 16;
19254 found_some_locale = 1;
19256 return (found_some_locale ? result : 77);
19258 _ACEOF
19259 if ac_fn_c_try_run "$LINENO"; then :
19260 gl_cv_func_mbrtowc_retval=yes
19261 else
19262 if test $? != 77; then
19263 gl_cv_func_mbrtowc_retval=no
19267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19268 conftest.$ac_objext conftest.beam conftest.$ac_ext
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19275 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19281 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19282 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
19283 $as_echo_n "(cached) " >&6
19284 else
19286 case "$host_os" in
19287 # Guess no on Solaris 8 and 9.
19288 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
19289 # Guess yes otherwise.
19290 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
19291 esac
19292 if test $LOCALE_ZH_CN != none; then
19293 if test "$cross_compiling" = yes; then :
19295 else
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19299 #include <locale.h>
19300 #include <string.h>
19301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19302 <wchar.h>.
19303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19304 included before <wchar.h>. */
19305 #include <stddef.h>
19306 #include <stdio.h>
19307 #include <time.h>
19308 #include <wchar.h>
19309 int main ()
19311 /* This fails on Solaris 8 and 9. */
19312 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19314 mbstate_t state;
19315 wchar_t wc;
19317 memset (&state, '\0', sizeof (mbstate_t));
19318 if (mbrtowc (&wc, "", 1, &state) != 0)
19319 return 1;
19321 return 0;
19323 _ACEOF
19324 if ac_fn_c_try_run "$LINENO"; then :
19325 gl_cv_func_mbrtowc_nul_retval=yes
19326 else
19327 gl_cv_func_mbrtowc_nul_retval=no
19329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19330 conftest.$ac_objext conftest.beam conftest.$ac_ext
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19337 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19339 case "$gl_cv_func_mbrtowc_null_arg1" in
19340 *yes) ;;
19342 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19344 REPLACE_MBRTOWC=1
19346 esac
19347 case "$gl_cv_func_mbrtowc_null_arg2" in
19348 *yes) ;;
19350 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19352 REPLACE_MBRTOWC=1
19354 esac
19355 case "$gl_cv_func_mbrtowc_retval" in
19356 *yes) ;;
19358 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19360 REPLACE_MBRTOWC=1
19362 esac
19363 case "$gl_cv_func_mbrtowc_nul_retval" in
19364 *yes) ;;
19366 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19368 REPLACE_MBRTOWC=1
19370 esac
19374 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
19383 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
19394 GNULIB_MBRTOWC=1
19400 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19415 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19420 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19421 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19422 $as_echo_n "(cached) " >&6
19423 else
19425 case "$host_os" in
19426 # Guess no on AIX and OSF/1.
19427 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19428 # Guess yes otherwise.
19429 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19430 esac
19431 if test $LOCALE_JA != none; then
19432 if test "$cross_compiling" = yes; then :
19434 else
19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19438 #include <locale.h>
19439 #include <string.h>
19440 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19441 <wchar.h>.
19442 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19443 included before <wchar.h>. */
19444 #include <stddef.h>
19445 #include <stdio.h>
19446 #include <time.h>
19447 #include <wchar.h>
19448 int main ()
19450 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19452 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19453 mbstate_t state;
19454 wchar_t wc;
19456 memset (&state, '\0', sizeof (mbstate_t));
19457 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19458 if (mbsinit (&state))
19459 return 1;
19461 return 0;
19463 _ACEOF
19464 if ac_fn_c_try_run "$LINENO"; then :
19465 gl_cv_func_mbrtowc_incomplete_state=yes
19466 else
19467 gl_cv_func_mbrtowc_incomplete_state=no
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19470 conftest.$ac_objext conftest.beam conftest.$ac_ext
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19484 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19485 $as_echo_n "(cached) " >&6
19486 else
19488 case "$host_os" in
19489 # Guess no on Solaris 8.
19490 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19491 # Guess yes otherwise.
19492 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19493 esac
19494 if test $LOCALE_ZH_CN != none; then
19495 if test "$cross_compiling" = yes; then :
19497 else
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19501 #include <locale.h>
19502 #include <stdlib.h>
19503 #include <string.h>
19504 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19505 <wchar.h>.
19506 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19507 included before <wchar.h>. */
19508 #include <stddef.h>
19509 #include <stdio.h>
19510 #include <time.h>
19511 #include <wchar.h>
19512 int main ()
19514 /* This fails on Solaris 8:
19515 mbrtowc returns 2, and sets wc to 0x00F0.
19516 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19517 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19519 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19520 mbstate_t state;
19521 wchar_t wc;
19523 memset (&state, '\0', sizeof (mbstate_t));
19524 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19525 && mbtowc (&wc, input + 3, 6) == 4)
19526 return 1;
19528 return 0;
19530 _ACEOF
19531 if ac_fn_c_try_run "$LINENO"; then :
19532 gl_cv_func_mbrtowc_sanitycheck=yes
19533 else
19534 gl_cv_func_mbrtowc_sanitycheck=no
19536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19537 conftest.$ac_objext conftest.beam conftest.$ac_ext
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19544 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19546 REPLACE_MBSTATE_T=0
19547 case "$gl_cv_func_mbrtowc_incomplete_state" in
19548 *yes) ;;
19549 *) REPLACE_MBSTATE_T=1 ;;
19550 esac
19551 case "$gl_cv_func_mbrtowc_sanitycheck" in
19552 *yes) ;;
19553 *) REPLACE_MBSTATE_T=1 ;;
19554 esac
19555 else
19556 REPLACE_MBSTATE_T=1
19561 if test $ac_cv_func_mbsinit = no; then
19562 HAVE_MBSINIT=0
19563 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19564 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19565 <wchar.h>.
19566 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19567 included before <wchar.h>. */
19568 #include <stddef.h>
19569 #include <stdio.h>
19570 #include <time.h>
19571 #include <wchar.h>
19574 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
19575 ac_have_decl=1
19576 else
19577 ac_have_decl=0
19580 cat >>confdefs.h <<_ACEOF
19581 #define HAVE_DECL_MBSINIT $ac_have_decl
19582 _ACEOF
19584 if test $ac_cv_have_decl_mbsinit = yes; then
19585 REPLACE_MBSINIT=1
19587 else
19588 if test $REPLACE_MBSTATE_T = 1; then
19589 REPLACE_MBSINIT=1
19590 else
19591 case "$host_os" in
19592 mingw*) REPLACE_MBSINIT=1 ;;
19593 esac
19597 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
19606 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
19617 GNULIB_MBSINIT=1
19623 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
19637 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19642 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19643 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19644 $as_echo_n "(cached) " >&6
19645 else
19647 case "$host_os" in
19648 # Guess no on AIX and OSF/1.
19649 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19650 # Guess yes otherwise.
19651 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19652 esac
19653 if test $LOCALE_JA != none; then
19654 if test "$cross_compiling" = yes; then :
19656 else
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19660 #include <locale.h>
19661 #include <string.h>
19662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19663 <wchar.h>.
19664 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19665 included before <wchar.h>. */
19666 #include <stddef.h>
19667 #include <stdio.h>
19668 #include <time.h>
19669 #include <wchar.h>
19670 int main ()
19672 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19674 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19675 mbstate_t state;
19676 wchar_t wc;
19678 memset (&state, '\0', sizeof (mbstate_t));
19679 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19680 if (mbsinit (&state))
19681 return 1;
19683 return 0;
19685 _ACEOF
19686 if ac_fn_c_try_run "$LINENO"; then :
19687 gl_cv_func_mbrtowc_incomplete_state=yes
19688 else
19689 gl_cv_func_mbrtowc_incomplete_state=no
19691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19692 conftest.$ac_objext conftest.beam conftest.$ac_ext
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19699 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19705 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19706 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19710 case "$host_os" in
19711 # Guess no on Solaris 8.
19712 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19713 # Guess yes otherwise.
19714 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19715 esac
19716 if test $LOCALE_ZH_CN != none; then
19717 if test "$cross_compiling" = yes; then :
19719 else
19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19723 #include <locale.h>
19724 #include <stdlib.h>
19725 #include <string.h>
19726 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19727 <wchar.h>.
19728 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19729 included before <wchar.h>. */
19730 #include <stddef.h>
19731 #include <stdio.h>
19732 #include <time.h>
19733 #include <wchar.h>
19734 int main ()
19736 /* This fails on Solaris 8:
19737 mbrtowc returns 2, and sets wc to 0x00F0.
19738 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19739 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19741 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19742 mbstate_t state;
19743 wchar_t wc;
19745 memset (&state, '\0', sizeof (mbstate_t));
19746 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19747 && mbtowc (&wc, input + 3, 6) == 4)
19748 return 1;
19750 return 0;
19752 _ACEOF
19753 if ac_fn_c_try_run "$LINENO"; then :
19754 gl_cv_func_mbrtowc_sanitycheck=yes
19755 else
19756 gl_cv_func_mbrtowc_sanitycheck=no
19758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19759 conftest.$ac_objext conftest.beam conftest.$ac_ext
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19766 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19768 REPLACE_MBSTATE_T=0
19769 case "$gl_cv_func_mbrtowc_incomplete_state" in
19770 *yes) ;;
19771 *) REPLACE_MBSTATE_T=1 ;;
19772 esac
19773 case "$gl_cv_func_mbrtowc_sanitycheck" in
19774 *yes) ;;
19775 *) REPLACE_MBSTATE_T=1 ;;
19776 esac
19777 else
19778 REPLACE_MBSTATE_T=1
19783 if test $ac_cv_func_mbsrtowcs = no; then
19784 HAVE_MBSRTOWCS=0
19785 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19786 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19787 <wchar.h>.
19788 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19789 included before <wchar.h>. */
19790 #include <stddef.h>
19791 #include <stdio.h>
19792 #include <time.h>
19793 #include <wchar.h>
19796 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
19797 ac_have_decl=1
19798 else
19799 ac_have_decl=0
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19804 _ACEOF
19806 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19807 REPLACE_MBSRTOWCS=1
19809 else
19810 if test $REPLACE_MBSTATE_T = 1; then
19811 REPLACE_MBSRTOWCS=1
19812 else
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19820 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19821 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
19822 $as_echo_n "(cached) " >&6
19823 else
19825 case "$host_os" in
19826 # Guess no on HP-UX, Solaris, mingw.
19827 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
19828 # Guess yes otherwise.
19829 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
19830 esac
19831 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19832 if test "$cross_compiling" = yes; then :
19834 else
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19838 #include <locale.h>
19839 #include <string.h>
19840 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19841 <wchar.h>.
19842 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19843 included before <wchar.h>. */
19844 #include <stddef.h>
19845 #include <stdio.h>
19846 #include <time.h>
19847 #include <wchar.h>
19848 int main ()
19850 int result = 0;
19851 /* Test whether the function supports a NULL destination argument.
19852 This fails on native Windows. */
19853 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19855 const char input[] = "\337er";
19856 const char *src = input;
19857 mbstate_t state;
19859 memset (&state, '\0', sizeof (mbstate_t));
19860 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19861 || src != input)
19862 result |= 1;
19864 /* Test whether the function works when started with a conversion state
19865 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19866 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19868 const char input[] = "B\303\274\303\237er";
19869 mbstate_t state;
19871 memset (&state, '\0', sizeof (mbstate_t));
19872 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19873 if (!mbsinit (&state))
19875 const char *src = input + 2;
19876 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19877 result |= 2;
19880 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19882 const char input[] = "<\306\374\313\334\270\354>";
19883 mbstate_t state;
19885 memset (&state, '\0', sizeof (mbstate_t));
19886 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19887 if (!mbsinit (&state))
19889 const char *src = input + 4;
19890 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19891 result |= 4;
19894 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19896 const char input[] = "B\250\271\201\060\211\070er";
19897 mbstate_t state;
19899 memset (&state, '\0', sizeof (mbstate_t));
19900 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19901 if (!mbsinit (&state))
19903 const char *src = input + 2;
19904 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19905 result |= 8;
19908 return result;
19910 _ACEOF
19911 if ac_fn_c_try_run "$LINENO"; then :
19912 gl_cv_func_mbsrtowcs_works=yes
19913 else
19914 gl_cv_func_mbsrtowcs_works=no
19916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19917 conftest.$ac_objext conftest.beam conftest.$ac_ext
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19924 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19926 case "$gl_cv_func_mbsrtowcs_works" in
19927 *yes) ;;
19928 *) REPLACE_MBSRTOWCS=1 ;;
19929 esac
19933 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
19942 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19952 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19963 GNULIB_MBSRTOWCS=1
19969 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
19978 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
19979 if ${ac_cv_have_decl_mbswidth+:} false; then :
19980 $as_echo_n "(cached) " >&6
19981 else
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19986 <wchar.h>.
19987 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19988 before <wchar.h>. */
19989 #include <stddef.h>
19990 #include <stdio.h>
19991 #include <time.h>
19992 #include <wchar.h>
19995 main (void)
19998 char *p = (char *) mbswidth;
19999 return !p;
20002 return 0;
20004 _ACEOF
20005 if ac_fn_c_try_compile "$LINENO"; then :
20006 ac_cv_have_decl_mbswidth=yes
20007 else
20008 ac_cv_have_decl_mbswidth=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
20013 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
20014 if test $ac_cv_have_decl_mbswidth = yes; then
20015 ac_val=1
20016 else
20017 ac_val=0
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
20022 _ACEOF
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20028 $as_echo_n "checking for mbstate_t... " >&6; }
20029 if ${ac_cv_type_mbstate_t+:} false; then :
20030 $as_echo_n "(cached) " >&6
20031 else
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034 $ac_includes_default
20035 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20036 <wchar.h>.
20037 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20038 included before <wchar.h>. */
20039 #include <stddef.h>
20040 #include <stdio.h>
20041 #include <time.h>
20042 #include <wchar.h>
20044 main (void)
20046 mbstate_t x; return sizeof x;
20048 return 0;
20050 _ACEOF
20051 if ac_fn_c_try_compile "$LINENO"; then :
20052 ac_cv_type_mbstate_t=yes
20053 else
20054 ac_cv_type_mbstate_t=no
20056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20059 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20060 if test $ac_cv_type_mbstate_t = yes; then
20062 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20064 else
20066 $as_echo "#define mbstate_t int" >>confdefs.h
20074 if false; then
20075 REPLACE_MBTOWC=1
20078 if test $REPLACE_MBTOWC = 1; then
20087 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
20098 GNULIB_MBTOWC=1
20104 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20109 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20118 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20121 for ac_header in bp-sym.h
20122 do :
20123 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20124 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_BP_SYM_H 1
20127 _ACEOF
20131 done
20140 GNULIB_MEMCHR=1
20146 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20156 for ac_func in mempcpy
20157 do :
20158 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20159 if test "x$ac_cv_func_mempcpy" = xyes; then :
20160 cat >>confdefs.h <<_ACEOF
20161 #define HAVE_MEMPCPY 1
20162 _ACEOF
20165 done
20167 if test $ac_cv_func_mempcpy = no; then
20168 HAVE_MEMPCPY=0
20171 if test $HAVE_MEMPCPY = 0; then
20180 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
20191 GNULIB_MEMPCPY=1
20197 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20203 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20204 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20206 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20208 else
20209 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20213 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20222 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
20228 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20237 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20245 if test $ac_cv_func_nl_langinfo = yes; then
20246 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
20248 $as_echo_n "checking whether YESEXPR works... " >&6; }
20249 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
20250 $as_echo_n "(cached) " >&6
20251 else
20252 if test "$cross_compiling" = yes; then :
20254 case "$host_os" in
20255 # Guess no on irix systems.
20256 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
20257 # Guess yes elsewhere.
20258 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
20259 esac
20261 else
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20264 #include <langinfo.h>
20267 main (void)
20269 return !*nl_langinfo(YESEXPR);
20272 return 0;
20274 _ACEOF
20275 if ac_fn_c_try_run "$LINENO"; then :
20276 gl_cv_func_nl_langinfo_yesexpr_works=yes
20277 else
20278 gl_cv_func_nl_langinfo_yesexpr_works=no
20280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20281 conftest.$ac_objext conftest.beam conftest.$ac_ext
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
20287 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
20288 case $gl_cv_func_nl_langinfo_yesexpr_works in
20289 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
20290 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
20291 esac
20293 cat >>confdefs.h <<_ACEOF
20294 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
20295 _ACEOF
20297 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
20298 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
20300 else
20301 REPLACE_NL_LANGINFO=1
20303 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
20306 else
20307 HAVE_NL_LANGINFO=0
20310 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
20319 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
20327 GNULIB_NL_LANGINFO=1
20333 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
20337 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20339 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
20340 ac_have_decl=1
20341 else
20342 ac_have_decl=0
20345 cat >>confdefs.h <<_ACEOF
20346 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20347 _ACEOF
20349 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20351 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
20352 ac_have_decl=1
20353 else
20354 ac_have_decl=0
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20359 _ACEOF
20365 for ac_func in rawmemchr
20366 do :
20367 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20368 if test "x$ac_cv_func_rawmemchr" = xyes; then :
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_RAWMEMCHR 1
20371 _ACEOF
20374 done
20376 if test $ac_cv_func_rawmemchr = no; then
20377 HAVE_RAWMEMCHR=0
20380 if test $HAVE_RAWMEMCHR = 0; then
20389 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
20398 GNULIB_RAWMEMCHR=1
20404 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20411 if test $gl_cv_func_malloc_posix = yes; then
20413 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20415 else
20416 REPLACE_REALLOC=1
20419 if test $REPLACE_REALLOC = 1; then
20428 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
20436 GNULIB_REALLOC_POSIX=1
20442 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20448 # Check whether --with-included-regex was given.
20449 if test "${with_included_regex+set}" = set; then :
20450 withval=$with_included_regex;
20454 case $with_included_regex in #(
20455 yes|no) ac_use_included_regex=$with_included_regex
20458 # If the system regex support is good enough that it passes the
20459 # following run test, then default to *not* using the included regex.c.
20460 # If cross compiling, assume the test would fail and use the included
20461 # regex.c.
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
20464 $as_echo_n "checking for working re_compile_pattern... " >&6; }
20465 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
20466 $as_echo_n "(cached) " >&6
20467 else
20468 if test "$cross_compiling" = yes; then :
20469 gl_cv_func_re_compile_pattern_working=no
20470 else
20471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20473 #include <regex.h>
20475 #include <locale.h>
20476 #include <limits.h>
20477 #include <string.h>
20478 #if HAVE_DECL_ALARM
20479 # include <unistd.h>
20480 # include <signal.h>
20481 #endif
20484 main (void)
20486 int result = 0;
20487 static struct re_pattern_buffer regex;
20488 unsigned char folded_chars[UCHAR_MAX + 1];
20489 int i;
20490 const char *s;
20491 struct re_registers regs;
20493 #if HAVE_DECL_ALARM
20494 /* Some builds of glibc go into an infinite loop on this test. */
20495 signal (SIGALRM, SIG_DFL);
20496 alarm (2);
20497 #endif
20498 if (setlocale (LC_ALL, "en_US.UTF-8"))
20501 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20502 This test needs valgrind to catch the bug on Debian
20503 GNU/Linux 3.1 x86, but it might catch the bug better
20504 on other platforms and it shouldn't hurt to try the
20505 test here. */
20506 static char const pat[] = "insert into";
20507 static char const data[] =
20508 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20509 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20510 | RE_ICASE);
20511 memset (&regex, 0, sizeof regex);
20512 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20513 if (s)
20514 result |= 1;
20515 else if (re_search (&regex, data, sizeof data - 1,
20516 0, sizeof data - 1, &regs)
20517 != -1)
20518 result |= 1;
20522 /* This test is from glibc bug 15078.
20523 The test case is from Andreas Schwab in
20524 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
20526 static char const pat[] = "[^x]x";
20527 static char const data[] =
20528 "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80"
20529 "\xba\xe1\x80\xaf\xe1\x80\x95\xe1\x80\xbax";
20530 re_set_syntax (0);
20531 memset (&regex, 0, sizeof regex);
20532 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20533 if (s)
20534 result |= 1;
20535 else if (re_search (&regex, data, sizeof data - 1,
20536 0, sizeof data - 1, 0)
20537 != 21)
20538 result |= 1;
20541 if (! setlocale (LC_ALL, "C"))
20542 return 1;
20545 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
20546 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20547 memset (&regex, 0, sizeof regex);
20548 s = re_compile_pattern ("a[^x]b", 6, &regex);
20549 if (s)
20550 result |= 2;
20551 /* This should fail, but succeeds for glibc-2.5. */
20552 else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
20553 result |= 2;
20555 /* This regular expression is from Spencer ere test number 75
20556 in grep-2.3. */
20557 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20558 memset (&regex, 0, sizeof regex);
20559 for (i = 0; i <= UCHAR_MAX; i++)
20560 folded_chars[i] = i;
20561 regex.translate = folded_chars;
20562 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
20563 /* This should fail with _Invalid character class name_ error. */
20564 if (!s)
20565 result |= 4;
20567 /* Ensure that [b-a] is diagnosed as invalid, when
20568 using RE_NO_EMPTY_RANGES. */
20569 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
20570 memset (&regex, 0, sizeof regex);
20571 s = re_compile_pattern ("a[b-a]", 6, &regex);
20572 if (s == 0)
20573 result |= 8;
20575 /* This should succeed, but does not for glibc-2.1.3. */
20576 memset (&regex, 0, sizeof regex);
20577 s = re_compile_pattern ("{1", 2, &regex);
20578 if (s)
20579 result |= 8;
20581 /* The following example is derived from a problem report
20582 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
20583 memset (&regex, 0, sizeof regex);
20584 s = re_compile_pattern ("[an\371]*n", 7, &regex);
20585 if (s)
20586 result |= 8;
20587 /* This should match, but does not for glibc-2.2.1. */
20588 else if (re_match (&regex, "an", 2, 0, &regs) != 2)
20589 result |= 8;
20591 memset (&regex, 0, sizeof regex);
20592 s = re_compile_pattern ("x", 1, &regex);
20593 if (s)
20594 result |= 8;
20595 /* glibc-2.2.93 does not work with a negative RANGE argument. */
20596 else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
20597 result |= 8;
20599 /* The version of regex.c in older versions of gnulib
20600 ignored RE_ICASE. Detect that problem too. */
20601 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20602 memset (&regex, 0, sizeof regex);
20603 s = re_compile_pattern ("x", 1, &regex);
20604 if (s)
20605 result |= 16;
20606 else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
20607 result |= 16;
20609 /* Catch a bug reported by Vin Shelton in
20610 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20612 re_set_syntax (RE_SYNTAX_POSIX_BASIC
20613 & ~RE_CONTEXT_INVALID_DUP
20614 & ~RE_NO_EMPTY_RANGES);
20615 memset (&regex, 0, sizeof regex);
20616 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
20617 if (s)
20618 result |= 32;
20620 /* REG_STARTEND was added to glibc on 2004-01-15.
20621 Reject older versions. */
20622 if (! REG_STARTEND)
20623 result |= 64;
20625 #if 0
20626 /* It would be nice to reject hosts whose regoff_t values are too
20627 narrow (including glibc on hosts with 64-bit ptrdiff_t and
20628 32-bit int), but we should wait until glibc implements this
20629 feature. Otherwise, support for equivalence classes and
20630 multibyte collation symbols would always be broken except
20631 when compiling --without-included-regex. */
20632 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20633 || sizeof (regoff_t) < sizeof (ssize_t))
20634 result |= 64;
20635 #endif
20637 return result;
20640 return 0;
20642 _ACEOF
20643 if ac_fn_c_try_run "$LINENO"; then :
20644 gl_cv_func_re_compile_pattern_working=yes
20645 else
20646 gl_cv_func_re_compile_pattern_working=no
20648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20649 conftest.$ac_objext conftest.beam conftest.$ac_ext
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
20654 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20655 case $gl_cv_func_re_compile_pattern_working in #(
20656 yes) ac_use_included_regex=no;; #(
20657 no) ac_use_included_regex=yes;;
20658 esac
20660 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
20662 esac
20664 if test $ac_use_included_regex = yes; then
20666 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
20669 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
20672 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
20675 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
20678 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
20681 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
20684 $as_echo "#define re_search rpl_re_search" >>confdefs.h
20687 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
20690 $as_echo "#define re_match rpl_re_match" >>confdefs.h
20693 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
20696 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
20699 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
20702 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
20705 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
20708 $as_echo "#define regexec rpl_regexec" >>confdefs.h
20711 $as_echo "#define regerror rpl_regerror" >>confdefs.h
20714 $as_echo "#define regfree rpl_regfree" >>confdefs.h
20718 if test $ac_use_included_regex = yes; then
20727 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
20735 for ac_header in libintl.h
20736 do :
20737 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
20738 if test "x$ac_cv_header_libintl_h" = xyes; then :
20739 cat >>confdefs.h <<_ACEOF
20740 #define HAVE_LIBINTL_H 1
20741 _ACEOF
20745 done
20748 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20750 if test "x$ac_cv_have_decl_isblank" = xyes; then :
20751 ac_have_decl=1
20752 else
20753 ac_have_decl=0
20756 cat >>confdefs.h <<_ACEOF
20757 #define HAVE_DECL_ISBLANK $ac_have_decl
20758 _ACEOF
20763 for ac_header in stdint.h
20764 do :
20765 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20766 if test "x$ac_cv_header_stdint_h" = xyes; then :
20767 cat >>confdefs.h <<_ACEOF
20768 #define HAVE_STDINT_H 1
20769 _ACEOF
20773 done
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20776 $as_echo_n "checking for SIZE_MAX... " >&6; }
20777 if ${gl_cv_size_max+:} false; then :
20778 $as_echo_n "(cached) " >&6
20779 else
20781 gl_cv_size_max=
20782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h. */
20785 #include <limits.h>
20786 #if HAVE_STDINT_H
20787 #include <stdint.h>
20788 #endif
20789 #ifdef SIZE_MAX
20790 Found it
20791 #endif
20793 _ACEOF
20794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20795 $EGREP "Found it" >/dev/null 2>&1; then :
20796 gl_cv_size_max=yes
20798 rm -f conftest*
20800 if test -z "$gl_cv_size_max"; then
20801 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
20802 #include <limits.h>"; then :
20804 else
20805 size_t_bits_minus_1=
20808 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20810 else
20811 fits_in_uint=
20814 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20815 if test $fits_in_uint = 1; then
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 #include <stddef.h>
20819 extern size_t foo;
20820 extern unsigned long foo;
20823 main (void)
20827 return 0;
20829 _ACEOF
20830 if ac_fn_c_try_compile "$LINENO"; then :
20831 fits_in_uint=0
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835 if test $fits_in_uint = 1; then
20836 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20837 else
20838 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20840 else
20841 gl_cv_size_max='((size_t)~(size_t)0)'
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20847 $as_echo "$gl_cv_size_max" >&6; }
20848 if test "$gl_cv_size_max" != yes; then
20850 cat >>confdefs.h <<_ACEOF
20851 #define SIZE_MAX $gl_cv_size_max
20852 _ACEOF
20859 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
20861 if test "x$ac_cv_have_decl_sleep" = xyes; then :
20862 ac_have_decl=1
20863 else
20864 ac_have_decl=0
20867 cat >>confdefs.h <<_ACEOF
20868 #define HAVE_DECL_SLEEP $ac_have_decl
20869 _ACEOF
20872 if test $ac_cv_have_decl_sleep != yes; then
20873 HAVE_SLEEP=0
20874 else
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
20876 $as_echo_n "checking for working sleep... " >&6; }
20877 if ${gl_cv_func_sleep_works+:} false; then :
20878 $as_echo_n "(cached) " >&6
20879 else
20880 if test "$cross_compiling" = yes; then :
20881 case "$host_os" in
20882 # Guess yes on glibc systems.
20883 *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
20884 # If we don't know, assume the worst.
20885 *) gl_cv_func_sleep_works="guessing no" ;;
20886 esac
20888 else
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20892 #include <errno.h>
20893 #include <unistd.h>
20894 #include <signal.h>
20895 static void
20896 handle_alarm (int sig)
20898 if (sig != SIGALRM)
20899 _exit (2);
20903 main (void)
20906 /* Failure to compile this test due to missing alarm is okay,
20907 since all such platforms (mingw) also lack sleep. */
20908 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
20909 unsigned int remaining;
20910 signal (SIGALRM, handle_alarm);
20911 alarm (1);
20912 remaining = sleep (pentecost);
20913 if (remaining > pentecost)
20914 return 3;
20915 if (remaining <= pentecost - 10)
20916 return 4;
20917 return 0;
20920 return 0;
20922 _ACEOF
20923 if ac_fn_c_try_run "$LINENO"; then :
20924 gl_cv_func_sleep_works=yes
20925 else
20926 gl_cv_func_sleep_works=no
20928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20929 conftest.$ac_objext conftest.beam conftest.$ac_ext
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
20934 $as_echo "$gl_cv_func_sleep_works" >&6; }
20935 case "$gl_cv_func_sleep_works" in
20936 *yes) ;;
20938 REPLACE_SLEEP=1
20940 esac
20943 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
20952 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
20960 GNULIB_SLEEP=1
20966 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20972 $as_echo_n "checking for ssize_t... " >&6; }
20973 if ${gt_cv_ssize_t+:} false; then :
20974 $as_echo_n "(cached) " >&6
20975 else
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20978 #include <sys/types.h>
20980 main (void)
20982 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20983 return !x;
20985 return 0;
20987 _ACEOF
20988 if ac_fn_c_try_compile "$LINENO"; then :
20989 gt_cv_ssize_t=yes
20990 else
20991 gt_cv_ssize_t=no
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20996 $as_echo "$gt_cv_ssize_t" >&6; }
20997 if test $gt_cv_ssize_t = no; then
20999 $as_echo "#define ssize_t int" >>confdefs.h
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21005 $as_echo_n "checking for working stdalign.h... " >&6; }
21006 if ${gl_cv_header_working_stdalign_h+:} false; then :
21007 $as_echo_n "(cached) " >&6
21008 else
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21011 #include <stdalign.h>
21012 #include <stddef.h>
21014 /* Test that alignof yields a result consistent with offsetof.
21015 This catches GCC bug 52023
21016 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21017 #ifdef __cplusplus
21018 template <class t> struct alignof_helper { char a; t b; };
21019 # define ao(type) offsetof (alignof_helper<type>, b)
21020 #else
21021 # define ao(type) offsetof (struct { char a; type b; }, b)
21022 #endif
21023 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21024 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21025 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21027 /* Test _Alignas only on platforms where gnulib can help. */
21028 #if \
21029 (__GNUC__ || __IBMC__ || __IBMCPP__ \
21030 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
21031 struct alignas_test { char c; char alignas (8) alignas_8; };
21032 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
21033 ? 1 : -1];
21034 #endif
21037 main (void)
21041 return 0;
21043 _ACEOF
21044 if ac_fn_c_try_compile "$LINENO"; then :
21045 gl_cv_header_working_stdalign_h=yes
21046 else
21047 gl_cv_header_working_stdalign_h=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21052 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21054 if test $gl_cv_header_working_stdalign_h = yes; then
21055 STDALIGN_H=''
21056 else
21057 STDALIGN_H='stdalign.h'
21061 if test -n "$STDALIGN_H"; then
21062 GL_GENERATE_STDALIGN_H_TRUE=
21063 GL_GENERATE_STDALIGN_H_FALSE='#'
21064 else
21065 GL_GENERATE_STDALIGN_H_TRUE='#'
21066 GL_GENERATE_STDALIGN_H_FALSE=
21073 # Define two additional variables used in the Makefile substitution.
21075 if test "$ac_cv_header_stdbool_h" = yes; then
21076 STDBOOL_H=''
21077 else
21078 STDBOOL_H='stdbool.h'
21081 if test -n "$STDBOOL_H"; then
21082 GL_GENERATE_STDBOOL_H_TRUE=
21083 GL_GENERATE_STDBOOL_H_FALSE='#'
21084 else
21085 GL_GENERATE_STDBOOL_H_TRUE='#'
21086 GL_GENERATE_STDBOOL_H_FALSE=
21090 if test "$ac_cv_type__Bool" = yes; then
21091 HAVE__BOOL=1
21092 else
21093 HAVE__BOOL=0
21100 STDDEF_H=
21101 if test $gt_cv_c_wchar_t = no; then
21102 HAVE_WCHAR_T=0
21103 STDDEF_H=stddef.h
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21106 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21107 if ${gl_cv_decl_null_works+:} false; then :
21108 $as_echo_n "(cached) " >&6
21109 else
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <stddef.h>
21113 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21116 main (void)
21120 return 0;
21122 _ACEOF
21123 if ac_fn_c_try_compile "$LINENO"; then :
21124 gl_cv_decl_null_works=yes
21125 else
21126 gl_cv_decl_null_works=no
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21131 $as_echo "$gl_cv_decl_null_works" >&6; }
21132 if test $gl_cv_decl_null_works = no; then
21133 REPLACE_NULL=1
21134 STDDEF_H=stddef.h
21137 if test -n "$STDDEF_H"; then
21138 GL_GENERATE_STDDEF_H_TRUE=
21139 GL_GENERATE_STDDEF_H_FALSE='#'
21140 else
21141 GL_GENERATE_STDDEF_H_TRUE='#'
21142 GL_GENERATE_STDDEF_H_FALSE=
21145 if test -n "$STDDEF_H"; then
21154 if test $gl_cv_have_include_next = yes; then
21155 gl_cv_next_stddef_h='<'stddef.h'>'
21156 else
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21158 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21159 if ${gl_cv_next_stddef_h+:} false; then :
21160 $as_echo_n "(cached) " >&6
21161 else
21163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21167 _ACEOF
21168 case "$host_os" in
21169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21170 *) gl_absname_cpp="$ac_cpp" ;;
21171 esac
21173 case "$host_os" in
21174 mingw*)
21175 gl_dirsep_regex='[/\\]'
21178 gl_dirsep_regex='\/'
21180 esac
21181 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21183 gl_header_literal_regex=`echo 'stddef.h' \
21184 | sed -e "$gl_make_literal_regex_sed"`
21185 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21186 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21187 s|^/[^/]|//&|
21191 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21192 sed -n "$gl_absolute_header_sed"`'"'
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21197 $as_echo "$gl_cv_next_stddef_h" >&6; }
21199 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21203 gl_next_as_first_directive='<'stddef.h'>'
21204 else
21205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21206 gl_next_as_first_directive=$gl_cv_next_stddef_h
21208 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21226 if test $gl_cv_have_include_next = yes; then
21227 gl_cv_next_stdio_h='<'stdio.h'>'
21228 else
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21230 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21231 if ${gl_cv_next_stdio_h+:} false; then :
21232 $as_echo_n "(cached) " >&6
21233 else
21235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21237 #include <stdio.h>
21239 _ACEOF
21240 case "$host_os" in
21241 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21242 *) gl_absname_cpp="$ac_cpp" ;;
21243 esac
21245 case "$host_os" in
21246 mingw*)
21247 gl_dirsep_regex='[/\\]'
21250 gl_dirsep_regex='\/'
21252 esac
21253 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21255 gl_header_literal_regex=`echo 'stdio.h' \
21256 | sed -e "$gl_make_literal_regex_sed"`
21257 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21258 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21259 s|^/[^/]|//&|
21263 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21264 sed -n "$gl_absolute_header_sed"`'"'
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21269 $as_echo "$gl_cv_next_stdio_h" >&6; }
21271 NEXT_STDIO_H=$gl_cv_next_stdio_h
21273 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21275 gl_next_as_first_directive='<'stdio.h'>'
21276 else
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21278 gl_next_as_first_directive=$gl_cv_next_stdio_h
21280 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21286 GNULIB_FSCANF=1
21289 cat >>confdefs.h <<_ACEOF
21290 #define GNULIB_FSCANF 1
21291 _ACEOF
21294 GNULIB_SCANF=1
21297 cat >>confdefs.h <<_ACEOF
21298 #define GNULIB_SCANF 1
21299 _ACEOF
21302 GNULIB_FGETC=1
21303 GNULIB_GETC=1
21304 GNULIB_GETCHAR=1
21305 GNULIB_FGETS=1
21306 GNULIB_FREAD=1
21309 GNULIB_FPRINTF=1
21310 GNULIB_PRINTF=1
21311 GNULIB_VFPRINTF=1
21312 GNULIB_VPRINTF=1
21313 GNULIB_FPUTC=1
21314 GNULIB_PUTC=1
21315 GNULIB_PUTCHAR=1
21316 GNULIB_FPUTS=1
21317 GNULIB_PUTS=1
21318 GNULIB_FWRITE=1
21323 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
21324 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21326 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21327 if eval \${$as_gl_Symbol+:} false; then :
21328 $as_echo_n "(cached) " >&6
21329 else
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332 #include <stdio.h>
21335 main (void)
21337 #undef $gl_func
21338 (void) $gl_func;
21340 return 0;
21342 _ACEOF
21343 if ac_fn_c_try_compile "$LINENO"; then :
21344 eval "$as_gl_Symbol=yes"
21345 else
21346 eval "$as_gl_Symbol=no"
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 eval ac_res=\$$as_gl_Symbol
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21352 $as_echo "$ac_res" >&6; }
21353 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21354 cat >>confdefs.h <<_ACEOF
21355 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21356 _ACEOF
21358 eval ac_cv_have_decl_$gl_func=yes
21360 done
21373 if test $gl_cv_have_include_next = yes; then
21374 gl_cv_next_stdlib_h='<'stdlib.h'>'
21375 else
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21377 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21378 if ${gl_cv_next_stdlib_h+:} false; then :
21379 $as_echo_n "(cached) " >&6
21380 else
21382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h. */
21384 #include <stdlib.h>
21386 _ACEOF
21387 case "$host_os" in
21388 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21389 *) gl_absname_cpp="$ac_cpp" ;;
21390 esac
21392 case "$host_os" in
21393 mingw*)
21394 gl_dirsep_regex='[/\\]'
21397 gl_dirsep_regex='\/'
21399 esac
21400 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21402 gl_header_literal_regex=`echo 'stdlib.h' \
21403 | sed -e "$gl_make_literal_regex_sed"`
21404 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21405 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21406 s|^/[^/]|//&|
21410 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21411 sed -n "$gl_absolute_header_sed"`'"'
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21416 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21418 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21420 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21422 gl_next_as_first_directive='<'stdlib.h'>'
21423 else
21424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21425 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21427 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21434 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
21435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21438 if eval \${$as_gl_Symbol+:} false; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21443 #include <stdlib.h>
21444 #if HAVE_SYS_LOADAVG_H
21445 # include <sys/loadavg.h>
21446 #endif
21447 #if HAVE_RANDOM_H
21448 # include <random.h>
21449 #endif
21452 main (void)
21454 #undef $gl_func
21455 (void) $gl_func;
21457 return 0;
21459 _ACEOF
21460 if ac_fn_c_try_compile "$LINENO"; then :
21461 eval "$as_gl_Symbol=yes"
21462 else
21463 eval "$as_gl_Symbol=no"
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 eval ac_res=\$$as_gl_Symbol
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21469 $as_echo "$ac_res" >&6; }
21470 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21471 cat >>confdefs.h <<_ACEOF
21472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21473 _ACEOF
21475 eval ac_cv_have_decl_$gl_func=yes
21477 done
21483 for ac_func in strcasecmp
21484 do :
21485 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21486 if test "x$ac_cv_func_strcasecmp" = xyes; then :
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_STRCASECMP 1
21489 _ACEOF
21492 done
21494 if test $ac_cv_func_strcasecmp = no; then
21495 HAVE_STRCASECMP=0
21500 for ac_func in strncasecmp
21501 do :
21502 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
21503 if test "x$ac_cv_func_strncasecmp" = xyes; then :
21504 cat >>confdefs.h <<_ACEOF
21505 #define HAVE_STRNCASECMP 1
21506 _ACEOF
21509 done
21511 if test $ac_cv_func_strncasecmp = yes; then
21512 HAVE_STRNCASECMP=1
21513 else
21514 HAVE_STRNCASECMP=0
21516 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
21517 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
21518 ac_have_decl=1
21519 else
21520 ac_have_decl=0
21523 cat >>confdefs.h <<_ACEOF
21524 #define HAVE_DECL_STRNCASECMP $ac_have_decl
21525 _ACEOF
21527 if test $ac_cv_have_decl_strncasecmp = no; then
21528 HAVE_DECL_STRNCASECMP=0
21532 if test $HAVE_STRCASECMP = 0; then
21541 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
21547 if test $HAVE_STRNCASECMP = 0; then
21556 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
21566 for ac_func in strchrnul
21567 do :
21568 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21569 if test "x$ac_cv_func_strchrnul" = xyes; then :
21570 cat >>confdefs.h <<_ACEOF
21571 #define HAVE_STRCHRNUL 1
21572 _ACEOF
21575 done
21577 if test $ac_cv_func_strchrnul = no; then
21578 HAVE_STRCHRNUL=0
21579 else
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21581 $as_echo_n "checking whether strchrnul works... " >&6; }
21582 if ${gl_cv_func_strchrnul_works+:} false; then :
21583 $as_echo_n "(cached) " >&6
21584 else
21585 if test "$cross_compiling" = yes; then :
21586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21589 #if defined __CYGWIN__
21590 #include <cygwin/version.h>
21591 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21592 Lucky user
21593 #endif
21594 #else
21595 Lucky user
21596 #endif
21598 _ACEOF
21599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600 $EGREP "Lucky user" >/dev/null 2>&1; then :
21601 gl_cv_func_strchrnul_works="guessing yes"
21602 else
21603 gl_cv_func_strchrnul_works="guessing no"
21605 rm -f conftest*
21608 else
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21612 #include <string.h> /* for strchrnul */
21615 main (void)
21617 const char *buf = "a";
21618 return strchrnul (buf, 'b') != buf + 1;
21621 return 0;
21623 _ACEOF
21624 if ac_fn_c_try_run "$LINENO"; then :
21625 gl_cv_func_strchrnul_works=yes
21626 else
21627 gl_cv_func_strchrnul_works=no
21629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21630 conftest.$ac_objext conftest.beam conftest.$ac_ext
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21636 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21637 case "$gl_cv_func_strchrnul_works" in
21638 *yes) ;;
21639 *) REPLACE_STRCHRNUL=1 ;;
21640 esac
21643 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
21652 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
21661 GNULIB_STRCHRNUL=1
21667 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21676 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21678 $as_echo_n "checking for working strerror function... " >&6; }
21679 if ${gl_cv_func_working_strerror+:} false; then :
21680 $as_echo_n "(cached) " >&6
21681 else
21682 if test "$cross_compiling" = yes; then :
21683 case "$host_os" in
21684 # Guess yes on glibc systems.
21685 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
21686 # If we don't know, assume the worst.
21687 *) gl_cv_func_working_strerror="guessing no" ;;
21688 esac
21690 else
21691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21693 #include <string.h>
21696 main (void)
21698 if (!*strerror (-2)) return 1;
21700 return 0;
21702 _ACEOF
21703 if ac_fn_c_try_run "$LINENO"; then :
21704 gl_cv_func_working_strerror=yes
21705 else
21706 gl_cv_func_working_strerror=no
21708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21709 conftest.$ac_objext conftest.beam conftest.$ac_ext
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21715 $as_echo "$gl_cv_func_working_strerror" >&6; }
21716 case "$gl_cv_func_working_strerror" in
21717 *yes) ;;
21719 REPLACE_STRERROR=1
21721 esac
21723 else
21724 REPLACE_STRERROR=1
21727 if test $REPLACE_STRERROR = 1; then
21736 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
21741 cat >>confdefs.h <<_ACEOF
21742 #define GNULIB_STRERROR 1
21743 _ACEOF
21751 GNULIB_STRERROR=1
21757 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21763 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
21772 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
21778 if test $ac_cv_header_sys_socket_h != yes; then
21779 for ac_header in winsock2.h
21780 do :
21781 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21782 if test "x$ac_cv_header_winsock2_h" = xyes; then :
21783 cat >>confdefs.h <<_ACEOF
21784 #define HAVE_WINSOCK2_H 1
21785 _ACEOF
21789 done
21792 if test "$ac_cv_header_winsock2_h" = yes; then
21793 HAVE_WINSOCK2_H=1
21794 UNISTD_H_HAVE_WINSOCK2_H=1
21795 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21796 else
21797 HAVE_WINSOCK2_H=0
21814 if test $ac_cv_have_decl_strndup = no; then
21815 HAVE_DECL_STRNDUP=0
21818 if test $ac_cv_func_strndup = yes; then
21819 HAVE_STRNDUP=1
21820 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21822 $as_echo_n "checking for working strndup... " >&6; }
21823 if ${gl_cv_func_strndup_works+:} false; then :
21824 $as_echo_n "(cached) " >&6
21825 else
21826 if test "$cross_compiling" = yes; then :
21828 case $host_os in
21829 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
21830 *) gl_cv_func_strndup_works="guessing yes";;
21831 esac
21833 else
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 #include <string.h>
21838 #include <stdlib.h>
21840 main (void)
21843 #if !HAVE_DECL_STRNDUP
21844 extern
21845 #ifdef __cplusplus
21847 #endif
21848 char *strndup (const char *, size_t);
21849 #endif
21850 char *s;
21851 s = strndup ("some longer string", 15);
21852 free (s);
21853 s = strndup ("shorter string", 13);
21854 return s[13] != '\0';
21856 return 0;
21858 _ACEOF
21859 if ac_fn_c_try_run "$LINENO"; then :
21860 gl_cv_func_strndup_works=yes
21861 else
21862 gl_cv_func_strndup_works=no
21864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21865 conftest.$ac_objext conftest.beam conftest.$ac_ext
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21870 $as_echo "$gl_cv_func_strndup_works" >&6; }
21871 case $gl_cv_func_strndup_works in
21872 *no) REPLACE_STRNDUP=1 ;;
21873 esac
21874 else
21875 HAVE_STRNDUP=0
21878 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
21887 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
21895 GNULIB_STRNDUP=1
21901 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21911 if test $ac_cv_have_decl_strnlen = no; then
21912 HAVE_DECL_STRNLEN=0
21913 else
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21916 $as_echo_n "checking for working strnlen... " >&6; }
21917 if ${ac_cv_func_strnlen_working+:} false; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920 if test "$cross_compiling" = yes; then :
21921 # Guess no on AIX systems, yes otherwise.
21922 case "$host_os" in
21923 aix*) ac_cv_func_strnlen_working=no;;
21924 *) ac_cv_func_strnlen_working=yes;;
21925 esac
21926 else
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 $ac_includes_default
21931 main (void)
21934 #define S "foobar"
21935 #define S_LEN (sizeof S - 1)
21937 /* At least one implementation is buggy: that of AIX 4.3 would
21938 give strnlen (S, 1) == 3. */
21940 int i;
21941 for (i = 0; i < S_LEN + 1; ++i)
21943 int expected = i <= S_LEN ? i : S_LEN;
21944 if (strnlen (S, i) != expected)
21945 return 1;
21947 return 0;
21950 return 0;
21952 _ACEOF
21953 if ac_fn_c_try_run "$LINENO"; then :
21954 ac_cv_func_strnlen_working=yes
21955 else
21956 ac_cv_func_strnlen_working=no
21958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21959 conftest.$ac_objext conftest.beam conftest.$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21964 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21965 test $ac_cv_func_strnlen_working = no && :
21968 if test $ac_cv_func_strnlen_working = no; then
21969 REPLACE_STRNLEN=1
21973 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
21982 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
21991 GNULIB_STRNLEN=1
21997 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22005 if test $ac_cv_header_sysexits_h = yes; then
22006 HAVE_SYSEXITS_H=1
22016 if test $gl_cv_have_include_next = yes; then
22017 gl_cv_next_sysexits_h='<'sysexits.h'>'
22018 else
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
22020 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
22021 if ${gl_cv_next_sysexits_h+:} false; then :
22022 $as_echo_n "(cached) " >&6
22023 else
22025 if test $ac_cv_header_sysexits_h = yes; then
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030 #include <sysexits.h>
22032 _ACEOF
22033 case "$host_os" in
22034 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22035 *) gl_absname_cpp="$ac_cpp" ;;
22036 esac
22038 case "$host_os" in
22039 mingw*)
22040 gl_dirsep_regex='[/\\]'
22043 gl_dirsep_regex='\/'
22045 esac
22046 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22048 gl_header_literal_regex=`echo 'sysexits.h' \
22049 | sed -e "$gl_make_literal_regex_sed"`
22050 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22051 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22052 s|^/[^/]|//&|
22056 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22057 sed -n "$gl_absolute_header_sed"`'"'
22058 else
22059 gl_cv_next_sysexits_h='<'sysexits.h'>'
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
22065 $as_echo "$gl_cv_next_sysexits_h" >&6; }
22067 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
22069 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22071 gl_next_as_first_directive='<'sysexits.h'>'
22072 else
22073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22074 gl_next_as_first_directive=$gl_cv_next_sysexits_h
22076 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <sysexits.h>
22085 main (void)
22087 switch (0)
22089 case EX_OK:
22090 case EX_USAGE:
22091 case EX_DATAERR:
22092 case EX_NOINPUT:
22093 case EX_NOUSER:
22094 case EX_NOHOST:
22095 case EX_UNAVAILABLE:
22096 case EX_SOFTWARE:
22097 case EX_OSERR:
22098 case EX_OSFILE:
22099 case EX_CANTCREAT:
22100 case EX_IOERR:
22101 case EX_TEMPFAIL:
22102 case EX_PROTOCOL:
22103 case EX_NOPERM:
22104 case EX_CONFIG:
22105 break;
22109 return 0;
22111 _ACEOF
22112 if ac_fn_c_try_compile "$LINENO"; then :
22113 SYSEXITS_H=
22114 else
22115 SYSEXITS_H=sysexits.h
22117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118 else
22119 HAVE_SYSEXITS_H=0
22120 SYSEXITS_H=sysexits.h
22124 if test -n "$SYSEXITS_H"; then
22125 GL_GENERATE_SYSEXITS_H_TRUE=
22126 GL_GENERATE_SYSEXITS_H_FALSE='#'
22127 else
22128 GL_GENERATE_SYSEXITS_H_TRUE='#'
22129 GL_GENERATE_SYSEXITS_H_FALSE=
22145 if test $gl_cv_have_include_next = yes; then
22146 gl_cv_next_unistd_h='<'unistd.h'>'
22147 else
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22149 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22150 if ${gl_cv_next_unistd_h+:} false; then :
22151 $as_echo_n "(cached) " >&6
22152 else
22154 if test $ac_cv_header_unistd_h = yes; then
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22159 #include <unistd.h>
22161 _ACEOF
22162 case "$host_os" in
22163 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22164 *) gl_absname_cpp="$ac_cpp" ;;
22165 esac
22167 case "$host_os" in
22168 mingw*)
22169 gl_dirsep_regex='[/\\]'
22172 gl_dirsep_regex='\/'
22174 esac
22175 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22177 gl_header_literal_regex=`echo 'unistd.h' \
22178 | sed -e "$gl_make_literal_regex_sed"`
22179 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22181 s|^/[^/]|//&|
22185 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22186 sed -n "$gl_absolute_header_sed"`'"'
22187 else
22188 gl_cv_next_unistd_h='<'unistd.h'>'
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22194 $as_echo "$gl_cv_next_unistd_h" >&6; }
22196 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22198 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22200 gl_next_as_first_directive='<'unistd.h'>'
22201 else
22202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22203 gl_next_as_first_directive=$gl_cv_next_unistd_h
22205 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22210 if test $ac_cv_header_unistd_h = yes; then
22211 HAVE_UNISTD_H=1
22212 else
22213 HAVE_UNISTD_H=0
22222 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
22223 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22225 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22226 if eval \${$as_gl_Symbol+:} false; then :
22227 $as_echo_n "(cached) " >&6
22228 else
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22232 #if HAVE_UNISTD_H
22233 # include <unistd.h>
22234 #endif
22235 /* Some systems declare various items in the wrong headers. */
22236 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22237 # include <fcntl.h>
22238 # include <stdio.h>
22239 # include <stdlib.h>
22240 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22241 # include <io.h>
22242 # endif
22243 #endif
22246 main (void)
22248 #undef $gl_func
22249 (void) $gl_func;
22251 return 0;
22253 _ACEOF
22254 if ac_fn_c_try_compile "$LINENO"; then :
22255 eval "$as_gl_Symbol=yes"
22256 else
22257 eval "$as_gl_Symbol=no"
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 eval ac_res=\$$as_gl_Symbol
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22263 $as_echo "$ac_res" >&6; }
22264 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22265 cat >>confdefs.h <<_ACEOF
22266 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22267 _ACEOF
22269 eval ac_cv_have_decl_$gl_func=yes
22271 done
22276 if { test "$HAVE_LIBUNISTRING" != yes \
22277 || {
22281 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22282 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22283 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22284 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22285 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22294 }; then
22295 LIBUNISTRING_UNITYPES_H='unitypes.h'
22296 else
22297 LIBUNISTRING_UNITYPES_H=
22303 if { test "$HAVE_LIBUNISTRING" != yes \
22304 || {
22308 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22309 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22310 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22311 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22312 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22321 }; then
22322 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
22323 else
22324 LIBUNISTRING_UNIWIDTH_H=
22330 if { test "$HAVE_LIBUNISTRING" != yes \
22331 || {
22335 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22336 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22337 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22338 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22339 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
22348 }; then
22349 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
22350 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
22351 else
22352 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
22353 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
22359 if test $ac_cv_func_vasnprintf = no; then
22370 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
22380 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
22390 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
22400 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
22402 if test $ac_cv_func_vasnprintf = yes; then
22404 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
22418 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22419 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22421 else
22423 $as_echo "#define ptrdiff_t long" >>confdefs.h
22438 gl_cv_func_vsnprintf_usable=no
22439 for ac_func in vsnprintf
22440 do :
22441 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22442 if test "x$ac_cv_func_vsnprintf" = xyes; then :
22443 cat >>confdefs.h <<_ACEOF
22444 #define HAVE_VSNPRINTF 1
22445 _ACEOF
22448 done
22450 if test $ac_cv_func_vsnprintf = yes; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22455 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22456 if ${gl_cv_func_snprintf_size1+:} false; then :
22457 $as_echo_n "(cached) " >&6
22458 else
22460 if test "$cross_compiling" = yes; then :
22461 gl_cv_func_snprintf_size1="guessing yes"
22462 else
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22466 #include <stdio.h>
22467 #if HAVE_SNPRINTF
22468 # define my_snprintf snprintf
22469 #else
22470 # include <stdarg.h>
22471 static int my_snprintf (char *buf, int size, const char *format, ...)
22473 va_list args;
22474 int ret;
22475 va_start (args, format);
22476 ret = vsnprintf (buf, size, format, args);
22477 va_end (args);
22478 return ret;
22480 #endif
22481 int main()
22483 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22484 my_snprintf (buf, 1, "%d", 12345);
22485 return buf[1] != 'E';
22487 _ACEOF
22488 if ac_fn_c_try_run "$LINENO"; then :
22489 gl_cv_func_snprintf_size1=yes
22490 else
22491 gl_cv_func_snprintf_size1=no
22493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22494 conftest.$ac_objext conftest.beam conftest.$ac_ext
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22500 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22502 case "$gl_cv_func_snprintf_size1" in
22503 *yes)
22505 case "$gl_cv_func_snprintf_retval_c99" in
22506 *yes)
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22510 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22511 if ${gl_cv_func_printf_positions+:} false; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22515 if test "$cross_compiling" = yes; then :
22517 case "$host_os" in
22518 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22519 gl_cv_func_printf_positions="guessing no";;
22520 beos*) gl_cv_func_printf_positions="guessing no";;
22521 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22522 *) gl_cv_func_printf_positions="guessing yes";;
22523 esac
22525 else
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22529 #include <stdio.h>
22530 #include <string.h>
22531 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22532 dollar expansion (possibly an autoconf bug). */
22533 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22534 static char buf[100];
22535 int main ()
22537 sprintf (buf, format, 33, 55);
22538 return (strcmp (buf, "55 33") != 0);
22540 _ACEOF
22541 if ac_fn_c_try_run "$LINENO"; then :
22542 gl_cv_func_printf_positions=yes
22543 else
22544 gl_cv_func_printf_positions=no
22546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22547 conftest.$ac_objext conftest.beam conftest.$ac_ext
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22553 $as_echo "$gl_cv_func_printf_positions" >&6; }
22555 case "$gl_cv_func_printf_positions" in
22556 *yes)
22557 gl_cv_func_vsnprintf_usable=yes
22559 esac
22561 esac
22563 esac
22565 if test $gl_cv_func_vsnprintf_usable = no; then
22576 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
22578 if test $ac_cv_func_vsnprintf = yes; then
22579 REPLACE_VSNPRINTF=1
22585 if test $ac_cv_have_decl_vsnprintf = no; then
22586 HAVE_DECL_VSNPRINTF=0
22594 GNULIB_VSNPRINTF=1
22600 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22616 if test $gl_cv_have_include_next = yes; then
22617 gl_cv_next_wchar_h='<'wchar.h'>'
22618 else
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22620 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22621 if ${gl_cv_next_wchar_h+:} false; then :
22622 $as_echo_n "(cached) " >&6
22623 else
22625 if test $ac_cv_header_wchar_h = yes; then
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22630 #include <wchar.h>
22632 _ACEOF
22633 case "$host_os" in
22634 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22635 *) gl_absname_cpp="$ac_cpp" ;;
22636 esac
22638 case "$host_os" in
22639 mingw*)
22640 gl_dirsep_regex='[/\\]'
22643 gl_dirsep_regex='\/'
22645 esac
22646 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22648 gl_header_literal_regex=`echo 'wchar.h' \
22649 | sed -e "$gl_make_literal_regex_sed"`
22650 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22651 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22652 s|^/[^/]|//&|
22656 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22657 sed -n "$gl_absolute_header_sed"`'"'
22658 else
22659 gl_cv_next_wchar_h='<'wchar.h'>'
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22665 $as_echo "$gl_cv_next_wchar_h" >&6; }
22667 NEXT_WCHAR_H=$gl_cv_next_wchar_h
22669 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22671 gl_next_as_first_directive='<'wchar.h'>'
22672 else
22673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22674 gl_next_as_first_directive=$gl_cv_next_wchar_h
22676 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
22681 if test $ac_cv_header_wchar_h = yes; then
22682 HAVE_WCHAR_H=1
22683 else
22684 HAVE_WCHAR_H=0
22691 if test $gt_cv_c_wint_t = yes; then
22692 HAVE_WINT_T=1
22693 else
22694 HAVE_WINT_T=0
22699 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
22700 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22702 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22703 if eval \${$as_gl_Symbol+:} false; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22709 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22710 <wchar.h>.
22711 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22712 included before <wchar.h>. */
22713 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22714 # include <stddef.h>
22715 # include <stdio.h>
22716 # include <time.h>
22717 #endif
22718 #include <wchar.h>
22721 main (void)
22723 #undef $gl_func
22724 (void) $gl_func;
22726 return 0;
22728 _ACEOF
22729 if ac_fn_c_try_compile "$LINENO"; then :
22730 eval "$as_gl_Symbol=yes"
22731 else
22732 eval "$as_gl_Symbol=no"
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 eval ac_res=\$$as_gl_Symbol
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22738 $as_echo "$ac_res" >&6; }
22739 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22740 cat >>confdefs.h <<_ACEOF
22741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22742 _ACEOF
22744 eval ac_cv_have_decl_$gl_func=yes
22746 done
22759 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22764 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22765 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22769 case "$host_os" in
22770 # Guess no on AIX and OSF/1.
22771 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
22772 # Guess yes otherwise.
22773 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
22774 esac
22775 if test $LOCALE_JA != none; then
22776 if test "$cross_compiling" = yes; then :
22778 else
22779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h. */
22782 #include <locale.h>
22783 #include <string.h>
22784 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22785 <wchar.h>.
22786 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22787 included before <wchar.h>. */
22788 #include <stddef.h>
22789 #include <stdio.h>
22790 #include <time.h>
22791 #include <wchar.h>
22792 int main ()
22794 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22796 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22797 mbstate_t state;
22798 wchar_t wc;
22800 memset (&state, '\0', sizeof (mbstate_t));
22801 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22802 if (mbsinit (&state))
22803 return 1;
22805 return 0;
22807 _ACEOF
22808 if ac_fn_c_try_run "$LINENO"; then :
22809 gl_cv_func_mbrtowc_incomplete_state=yes
22810 else
22811 gl_cv_func_mbrtowc_incomplete_state=no
22813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22814 conftest.$ac_objext conftest.beam conftest.$ac_ext
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22821 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22827 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22828 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22832 case "$host_os" in
22833 # Guess no on Solaris 8.
22834 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
22835 # Guess yes otherwise.
22836 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
22837 esac
22838 if test $LOCALE_ZH_CN != none; then
22839 if test "$cross_compiling" = yes; then :
22841 else
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 #include <locale.h>
22846 #include <stdlib.h>
22847 #include <string.h>
22848 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22849 <wchar.h>.
22850 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22851 included before <wchar.h>. */
22852 #include <stddef.h>
22853 #include <stdio.h>
22854 #include <time.h>
22855 #include <wchar.h>
22856 int main ()
22858 /* This fails on Solaris 8:
22859 mbrtowc returns 2, and sets wc to 0x00F0.
22860 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22861 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22863 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22864 mbstate_t state;
22865 wchar_t wc;
22867 memset (&state, '\0', sizeof (mbstate_t));
22868 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22869 && mbtowc (&wc, input + 3, 6) == 4)
22870 return 1;
22872 return 0;
22874 _ACEOF
22875 if ac_fn_c_try_run "$LINENO"; then :
22876 gl_cv_func_mbrtowc_sanitycheck=yes
22877 else
22878 gl_cv_func_mbrtowc_sanitycheck=no
22880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22881 conftest.$ac_objext conftest.beam conftest.$ac_ext
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22888 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22890 REPLACE_MBSTATE_T=0
22891 case "$gl_cv_func_mbrtowc_incomplete_state" in
22892 *yes) ;;
22893 *) REPLACE_MBSTATE_T=1 ;;
22894 esac
22895 case "$gl_cv_func_mbrtowc_sanitycheck" in
22896 *yes) ;;
22897 *) REPLACE_MBSTATE_T=1 ;;
22898 esac
22899 else
22900 REPLACE_MBSTATE_T=1
22905 if test $ac_cv_func_wcrtomb = no; then
22906 HAVE_WCRTOMB=0
22907 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
22908 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22909 <wchar.h>.
22910 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22911 included before <wchar.h>. */
22912 #include <stddef.h>
22913 #include <stdio.h>
22914 #include <time.h>
22915 #include <wchar.h>
22918 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
22919 ac_have_decl=1
22920 else
22921 ac_have_decl=0
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_DECL_WCRTOMB $ac_have_decl
22926 _ACEOF
22928 if test $ac_cv_have_decl_wcrtomb = yes; then
22929 REPLACE_WCRTOMB=1
22931 else
22932 if test $REPLACE_MBSTATE_T = 1; then
22933 REPLACE_WCRTOMB=1
22934 else
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
22941 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
22942 if ${gl_cv_func_wcrtomb_retval+:} false; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22946 case "$host_os" in
22947 # Guess no on AIX 4, OSF/1 and Solaris.
22948 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
22949 # Guess yes otherwise.
22950 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
22951 esac
22952 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
22953 if test "$cross_compiling" = yes; then :
22955 else
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22959 #include <locale.h>
22960 #include <string.h>
22961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22962 <wchar.h>.
22963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22964 included before <wchar.h>. */
22965 #include <stddef.h>
22966 #include <stdio.h>
22967 #include <time.h>
22968 #include <wchar.h>
22969 int main ()
22971 int result = 0;
22972 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22974 if (wcrtomb (NULL, 0, NULL) != 1)
22975 result |= 1;
22977 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22979 if (wcrtomb (NULL, 0, NULL) != 1)
22980 result |= 2;
22982 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22984 if (wcrtomb (NULL, 0, NULL) != 1)
22985 result |= 4;
22987 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22989 if (wcrtomb (NULL, 0, NULL) != 1)
22990 result |= 8;
22992 return result;
22994 _ACEOF
22995 if ac_fn_c_try_run "$LINENO"; then :
22996 gl_cv_func_wcrtomb_retval=yes
22997 else
22998 gl_cv_func_wcrtomb_retval=no
23000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23001 conftest.$ac_objext conftest.beam conftest.$ac_ext
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
23008 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
23009 case "$gl_cv_func_wcrtomb_retval" in
23010 *yes) ;;
23011 *) REPLACE_WCRTOMB=1 ;;
23012 esac
23016 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
23025 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
23036 GNULIB_WCRTOMB=1
23042 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
23051 if test $ac_cv_func_iswcntrl = yes; then
23052 HAVE_ISWCNTRL=1
23053 else
23054 HAVE_ISWCNTRL=0
23059 if test $gt_cv_c_wint_t = yes; then
23060 HAVE_WINT_T=1
23061 else
23062 HAVE_WINT_T=0
23075 if test $gl_cv_have_include_next = yes; then
23076 gl_cv_next_wctype_h='<'wctype.h'>'
23077 else
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23079 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23080 if ${gl_cv_next_wctype_h+:} false; then :
23081 $as_echo_n "(cached) " >&6
23082 else
23084 if test $ac_cv_header_wctype_h = yes; then
23087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23089 #include <wctype.h>
23091 _ACEOF
23092 case "$host_os" in
23093 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23094 *) gl_absname_cpp="$ac_cpp" ;;
23095 esac
23097 case "$host_os" in
23098 mingw*)
23099 gl_dirsep_regex='[/\\]'
23102 gl_dirsep_regex='\/'
23104 esac
23105 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23107 gl_header_literal_regex=`echo 'wctype.h' \
23108 | sed -e "$gl_make_literal_regex_sed"`
23109 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23110 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23111 s|^/[^/]|//&|
23115 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23116 sed -n "$gl_absolute_header_sed"`'"'
23117 else
23118 gl_cv_next_wctype_h='<'wctype.h'>'
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23124 $as_echo "$gl_cv_next_wctype_h" >&6; }
23126 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
23128 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23130 gl_next_as_first_directive='<'wctype.h'>'
23131 else
23132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23133 gl_next_as_first_directive=$gl_cv_next_wctype_h
23135 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
23140 if test $ac_cv_header_wctype_h = yes; then
23141 if test $ac_cv_func_iswcntrl = yes; then
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23143 $as_echo_n "checking whether iswcntrl works... " >&6; }
23144 if ${gl_cv_func_iswcntrl_works+:} false; then :
23145 $as_echo_n "(cached) " >&6
23146 else
23148 if test "$cross_compiling" = yes; then :
23149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23151 #include <stdlib.h>
23152 #if __GNU_LIBRARY__ == 1
23153 Linux libc5 i18n is broken.
23154 #endif
23156 main (void)
23160 return 0;
23162 _ACEOF
23163 if ac_fn_c_try_compile "$LINENO"; then :
23164 gl_cv_func_iswcntrl_works="guessing yes"
23165 else
23166 gl_cv_func_iswcntrl_works="guessing no"
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 else
23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23175 included before <wchar.h>.
23176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23177 must be included before <wchar.h>. */
23178 #include <stddef.h>
23179 #include <stdio.h>
23180 #include <time.h>
23181 #include <wchar.h>
23182 #include <wctype.h>
23183 int main () { return iswprint ('x') == 0; }
23185 _ACEOF
23186 if ac_fn_c_try_run "$LINENO"; then :
23187 gl_cv_func_iswcntrl_works=yes
23188 else
23189 gl_cv_func_iswcntrl_works=no
23191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23192 conftest.$ac_objext conftest.beam conftest.$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23198 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23200 HAVE_WCTYPE_H=1
23201 else
23202 HAVE_WCTYPE_H=0
23206 case "$gl_cv_func_iswcntrl_works" in
23207 *yes) REPLACE_ISWCNTRL=0 ;;
23208 *) REPLACE_ISWCNTRL=1 ;;
23209 esac
23212 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
23216 if test $REPLACE_ISWCNTRL = 1; then
23217 REPLACE_TOWLOWER=1
23218 else
23219 for ac_func in towlower
23220 do :
23221 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
23222 if test "x$ac_cv_func_towlower" = xyes; then :
23223 cat >>confdefs.h <<_ACEOF
23224 #define HAVE_TOWLOWER 1
23225 _ACEOF
23228 done
23230 if test $ac_cv_func_towlower = yes; then
23231 REPLACE_TOWLOWER=0
23232 else
23233 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23234 included before <wchar.h>.
23235 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23236 must be included before <wchar.h>. */
23237 #include <stddef.h>
23238 #include <stdio.h>
23239 #include <time.h>
23240 #include <wchar.h>
23241 #if HAVE_WCTYPE_H
23242 # include <wctype.h>
23243 #endif
23246 if test "x$ac_cv_have_decl_towlower" = xyes; then :
23247 ac_have_decl=1
23248 else
23249 ac_have_decl=0
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_DECL_TOWLOWER $ac_have_decl
23254 _ACEOF
23256 if test $ac_cv_have_decl_towlower = yes; then
23257 REPLACE_TOWLOWER=1
23258 else
23259 REPLACE_TOWLOWER=0
23265 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23270 $as_echo_n "checking for wctype_t... " >&6; }
23271 if ${gl_cv_type_wctype_t+:} false; then :
23272 $as_echo_n "(cached) " >&6
23273 else
23274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23275 /* end confdefs.h. */
23276 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23277 included before <wchar.h>.
23278 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23279 must be included before <wchar.h>. */
23280 #include <stddef.h>
23281 #include <stdio.h>
23282 #include <time.h>
23283 #include <wchar.h>
23284 #if HAVE_WCTYPE_H
23285 # include <wctype.h>
23286 #endif
23287 wctype_t a;
23290 main (void)
23294 return 0;
23296 _ACEOF
23297 if ac_fn_c_try_compile "$LINENO"; then :
23298 gl_cv_type_wctype_t=yes
23299 else
23300 gl_cv_type_wctype_t=no
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23306 $as_echo "$gl_cv_type_wctype_t" >&6; }
23307 if test $gl_cv_type_wctype_t = no; then
23308 HAVE_WCTYPE_T=0
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23312 $as_echo_n "checking for wctrans_t... " >&6; }
23313 if ${gl_cv_type_wctrans_t+:} false; then :
23314 $as_echo_n "(cached) " >&6
23315 else
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23319 included before <wchar.h>.
23320 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23321 must be included before <wchar.h>. */
23322 #include <stddef.h>
23323 #include <stdio.h>
23324 #include <time.h>
23325 #include <wchar.h>
23326 #include <wctype.h>
23327 wctrans_t a;
23330 main (void)
23334 return 0;
23336 _ACEOF
23337 if ac_fn_c_try_compile "$LINENO"; then :
23338 gl_cv_type_wctrans_t=yes
23339 else
23340 gl_cv_type_wctrans_t=no
23342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23346 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23347 if test $gl_cv_type_wctrans_t = no; then
23348 HAVE_WCTRANS_T=0
23352 for gl_func in wctype iswctype wctrans towctrans ; do
23353 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23355 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23356 if eval \${$as_gl_Symbol+:} false; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360 /* end confdefs.h. */
23362 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23363 <wchar.h>.
23364 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23365 included before <wchar.h>. */
23366 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23367 # include <stddef.h>
23368 # include <stdio.h>
23369 # include <time.h>
23370 # include <wchar.h>
23371 #endif
23372 #include <wctype.h>
23375 main (void)
23377 #undef $gl_func
23378 (void) $gl_func;
23380 return 0;
23382 _ACEOF
23383 if ac_fn_c_try_compile "$LINENO"; then :
23384 eval "$as_gl_Symbol=yes"
23385 else
23386 eval "$as_gl_Symbol=no"
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 eval ac_res=\$$as_gl_Symbol
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23392 $as_echo "$ac_res" >&6; }
23393 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23394 cat >>confdefs.h <<_ACEOF
23395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23396 _ACEOF
23398 eval ac_cv_have_decl_$gl_func=yes
23400 done
23414 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
23415 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23416 #include <string.h>
23417 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23418 <wchar.h>.
23419 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23420 before <wchar.h>. */
23421 #include <stddef.h>
23422 #include <stdio.h>
23423 #include <time.h>
23424 #include <wchar.h>
23427 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
23428 ac_have_decl=1
23429 else
23430 ac_have_decl=0
23433 cat >>confdefs.h <<_ACEOF
23434 #define HAVE_DECL_WCWIDTH $ac_have_decl
23435 _ACEOF
23437 if test $ac_cv_have_decl_wcwidth != yes; then
23438 HAVE_DECL_WCWIDTH=0
23441 if test $ac_cv_func_wcwidth = yes; then
23442 HAVE_WCWIDTH=1
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
23444 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
23445 if ${gl_cv_func_wcwidth_works+:} false; then :
23446 $as_echo_n "(cached) " >&6
23447 else
23449 if test "$cross_compiling" = yes; then :
23451 case "$host_os" in
23452 # Guess yes on glibc and AIX 7 systems.
23453 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
23454 *) gl_cv_func_wcwidth_works="guessing no";;
23455 esac
23457 else
23458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h. */
23461 #include <locale.h>
23462 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23463 #include <string.h>
23464 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23465 <wchar.h>.
23466 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23467 before <wchar.h>. */
23468 #include <stddef.h>
23469 #include <stdio.h>
23470 #include <time.h>
23471 #include <wchar.h>
23472 #if !HAVE_DECL_WCWIDTH
23473 extern
23474 # ifdef __cplusplus
23476 # endif
23477 int wcwidth (int);
23478 #endif
23479 int main ()
23481 int result = 0;
23482 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
23484 if (wcwidth (0x0301) > 0)
23485 result |= 1;
23486 if (wcwidth (0x05B0) > 0)
23487 result |= 2;
23488 if (wcwidth (0x200B) > 0)
23489 result |= 4;
23491 return result;
23493 _ACEOF
23494 if ac_fn_c_try_run "$LINENO"; then :
23495 gl_cv_func_wcwidth_works=yes
23496 else
23497 gl_cv_func_wcwidth_works=no
23499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23500 conftest.$ac_objext conftest.beam conftest.$ac_ext
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
23506 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
23507 case "$gl_cv_func_wcwidth_works" in
23508 *yes) ;;
23509 *no) REPLACE_WCWIDTH=1 ;;
23510 esac
23511 else
23512 HAVE_WCWIDTH=0
23515 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
23524 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
23532 GNULIB_WCWIDTH=1
23538 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
23544 for ac_header in stdint.h
23545 do :
23546 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23547 if test "x$ac_cv_header_stdint_h" = xyes; then :
23548 cat >>confdefs.h <<_ACEOF
23549 #define HAVE_STDINT_H 1
23550 _ACEOF
23554 done
23557 # End of code from modules
23567 gltests_libdeps=
23568 gltests_ltlibdeps=
23578 gl_source_base='tests'
23579 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
23581 gl_module_indicator_condition=$gltests_WITNESS
23591 LIBGNU_LIBDEPS="$gl_libdeps"
23593 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23597 WARN_FLAGS="-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes"
23598 EXTRA_WARN_FLAGS="-Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2"
23600 HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
23603 $as_echo_n "checking which extra warnings work... " >&6; }
23604 if ${grub_cv_cc_w_extra_flags+:} false; then :
23605 $as_echo_n "(cached) " >&6
23606 else
23608 SAVED_CFLAGS="$CFLAGS"
23609 grub_cv_cc_w_extra_flags=
23610 for x in $EXTRA_WARN_FLAGS; do
23611 CFLAGS="$HOST_CFLAGS $x -Werror"
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23616 main (void)
23620 return 0;
23622 _ACEOF
23623 if ac_fn_c_try_link "$LINENO"; then :
23624 flag=1
23625 else
23626 flag=0
23628 rm -f core conftest.err conftest.$ac_objext \
23629 conftest$ac_exeext conftest.$ac_ext
23630 if test x$flag = x1 ; then
23631 grub_cv_cc_w_extra_flags="$grub_cv_cc_w_extra_flags $x"
23633 done
23634 CFLAGS="$SAVED_CFLAGS"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
23638 $as_echo "$grub_cv_cc_w_extra_flags" >&6; }
23640 HOST_CFLAGS="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
23643 # Check for target programs.
23646 # Find tools for the target.
23647 if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
23648 tmp_ac_tool_prefix="$ac_tool_prefix"
23649 ac_tool_prefix=$target_alias-
23651 if test -n "$ac_tool_prefix"; then
23652 for ac_prog in gcc egcs cc
23654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23657 $as_echo_n "checking for $ac_word... " >&6; }
23658 if ${ac_cv_prog_TARGET_CC+:} false; then :
23659 $as_echo_n "(cached) " >&6
23660 else
23661 if test -n "$TARGET_CC"; then
23662 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
23663 else
23664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23665 for as_dir in $PATH
23667 IFS=$as_save_IFS
23668 test -z "$as_dir" && as_dir=.
23669 for ac_exec_ext in '' $ac_executable_extensions; do
23670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23671 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
23672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23673 break 2
23675 done
23676 done
23677 IFS=$as_save_IFS
23681 TARGET_CC=$ac_cv_prog_TARGET_CC
23682 if test -n "$TARGET_CC"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
23684 $as_echo "$TARGET_CC" >&6; }
23685 else
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687 $as_echo "no" >&6; }
23691 test -n "$TARGET_CC" && break
23692 done
23694 if test -z "$TARGET_CC"; then
23695 ac_ct_TARGET_CC=$TARGET_CC
23696 for ac_prog in gcc egcs cc
23698 # Extract the first word of "$ac_prog", so it can be a program name with args.
23699 set dummy $ac_prog; ac_word=$2
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23701 $as_echo_n "checking for $ac_word... " >&6; }
23702 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false; then :
23703 $as_echo_n "(cached) " >&6
23704 else
23705 if test -n "$ac_ct_TARGET_CC"; then
23706 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
23707 else
23708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23709 for as_dir in $PATH
23711 IFS=$as_save_IFS
23712 test -z "$as_dir" && as_dir=.
23713 for ac_exec_ext in '' $ac_executable_extensions; do
23714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23715 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
23716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23717 break 2
23719 done
23720 done
23721 IFS=$as_save_IFS
23725 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
23726 if test -n "$ac_ct_TARGET_CC"; then
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
23728 $as_echo "$ac_ct_TARGET_CC" >&6; }
23729 else
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23731 $as_echo "no" >&6; }
23735 test -n "$ac_ct_TARGET_CC" && break
23736 done
23738 if test "x$ac_ct_TARGET_CC" = x; then
23739 TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
23740 else
23741 case $cross_compiling:$ac_tool_warned in
23742 yes:)
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23745 ac_tool_warned=yes ;;
23746 esac
23747 TARGET_CC=$ac_ct_TARGET_CC
23751 if test -n "$ac_tool_prefix"; then
23752 for ac_prog in gobjcopy objcopy
23754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23757 $as_echo_n "checking for $ac_word... " >&6; }
23758 if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
23759 $as_echo_n "(cached) " >&6
23760 else
23761 if test -n "$TARGET_OBJCOPY"; then
23762 ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
23763 else
23764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23765 for as_dir in $PATH
23767 IFS=$as_save_IFS
23768 test -z "$as_dir" && as_dir=.
23769 for ac_exec_ext in '' $ac_executable_extensions; do
23770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23771 ac_cv_prog_TARGET_OBJCOPY="$ac_tool_prefix$ac_prog"
23772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23773 break 2
23775 done
23776 done
23777 IFS=$as_save_IFS
23781 TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
23782 if test -n "$TARGET_OBJCOPY"; then
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
23784 $as_echo "$TARGET_OBJCOPY" >&6; }
23785 else
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787 $as_echo "no" >&6; }
23791 test -n "$TARGET_OBJCOPY" && break
23792 done
23794 if test -z "$TARGET_OBJCOPY"; then
23795 ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
23796 for ac_prog in gobjcopy objcopy
23798 # Extract the first word of "$ac_prog", so it can be a program name with args.
23799 set dummy $ac_prog; ac_word=$2
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23801 $as_echo_n "checking for $ac_word... " >&6; }
23802 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23806 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
23807 else
23808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23809 for as_dir in $PATH
23811 IFS=$as_save_IFS
23812 test -z "$as_dir" && as_dir=.
23813 for ac_exec_ext in '' $ac_executable_extensions; do
23814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23815 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_prog"
23816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23817 break 2
23819 done
23820 done
23821 IFS=$as_save_IFS
23825 ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
23826 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
23828 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
23829 else
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23831 $as_echo "no" >&6; }
23835 test -n "$ac_ct_TARGET_OBJCOPY" && break
23836 done
23838 if test "x$ac_ct_TARGET_OBJCOPY" = x; then
23839 TARGET_OBJCOPY=""
23840 else
23841 case $cross_compiling:$ac_tool_warned in
23842 yes:)
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23845 ac_tool_warned=yes ;;
23846 esac
23847 TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
23851 if test -n "$ac_tool_prefix"; then
23852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23853 set dummy ${ac_tool_prefix}strip; ac_word=$2
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23855 $as_echo_n "checking for $ac_word... " >&6; }
23856 if ${ac_cv_prog_TARGET_STRIP+:} false; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23859 if test -n "$TARGET_STRIP"; then
23860 ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
23861 else
23862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23863 for as_dir in $PATH
23865 IFS=$as_save_IFS
23866 test -z "$as_dir" && as_dir=.
23867 for ac_exec_ext in '' $ac_executable_extensions; do
23868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23869 ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
23870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23871 break 2
23873 done
23874 done
23875 IFS=$as_save_IFS
23879 TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
23880 if test -n "$TARGET_STRIP"; then
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
23882 $as_echo "$TARGET_STRIP" >&6; }
23883 else
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23885 $as_echo "no" >&6; }
23890 if test -z "$ac_cv_prog_TARGET_STRIP"; then
23891 ac_ct_TARGET_STRIP=$TARGET_STRIP
23892 # Extract the first word of "strip", so it can be a program name with args.
23893 set dummy strip; ac_word=$2
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23895 $as_echo_n "checking for $ac_word... " >&6; }
23896 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 if test -n "$ac_ct_TARGET_STRIP"; then
23900 ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
23901 else
23902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23903 for as_dir in $PATH
23905 IFS=$as_save_IFS
23906 test -z "$as_dir" && as_dir=.
23907 for ac_exec_ext in '' $ac_executable_extensions; do
23908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23909 ac_cv_prog_ac_ct_TARGET_STRIP="strip"
23910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23911 break 2
23913 done
23914 done
23915 IFS=$as_save_IFS
23919 ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
23920 if test -n "$ac_ct_TARGET_STRIP"; then
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
23922 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
23923 else
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925 $as_echo "no" >&6; }
23928 if test "x$ac_ct_TARGET_STRIP" = x; then
23929 TARGET_STRIP=""
23930 else
23931 case $cross_compiling:$ac_tool_warned in
23932 yes:)
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23935 ac_tool_warned=yes ;;
23936 esac
23937 TARGET_STRIP=$ac_ct_TARGET_STRIP
23939 else
23940 TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
23943 if test -n "$ac_tool_prefix"; then
23944 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
23945 set dummy ${ac_tool_prefix}nm; ac_word=$2
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23947 $as_echo_n "checking for $ac_word... " >&6; }
23948 if ${ac_cv_prog_TARGET_NM+:} false; then :
23949 $as_echo_n "(cached) " >&6
23950 else
23951 if test -n "$TARGET_NM"; then
23952 ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
23953 else
23954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23955 for as_dir in $PATH
23957 IFS=$as_save_IFS
23958 test -z "$as_dir" && as_dir=.
23959 for ac_exec_ext in '' $ac_executable_extensions; do
23960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23961 ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
23962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23963 break 2
23965 done
23966 done
23967 IFS=$as_save_IFS
23971 TARGET_NM=$ac_cv_prog_TARGET_NM
23972 if test -n "$TARGET_NM"; then
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
23974 $as_echo "$TARGET_NM" >&6; }
23975 else
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 $as_echo "no" >&6; }
23982 if test -z "$ac_cv_prog_TARGET_NM"; then
23983 ac_ct_TARGET_NM=$TARGET_NM
23984 # Extract the first word of "nm", so it can be a program name with args.
23985 set dummy nm; ac_word=$2
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23987 $as_echo_n "checking for $ac_word... " >&6; }
23988 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 if test -n "$ac_ct_TARGET_NM"; then
23992 ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
23993 else
23994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23995 for as_dir in $PATH
23997 IFS=$as_save_IFS
23998 test -z "$as_dir" && as_dir=.
23999 for ac_exec_ext in '' $ac_executable_extensions; do
24000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24001 ac_cv_prog_ac_ct_TARGET_NM="nm"
24002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24003 break 2
24005 done
24006 done
24007 IFS=$as_save_IFS
24011 ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
24012 if test -n "$ac_ct_TARGET_NM"; then
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24014 $as_echo "$ac_ct_TARGET_NM" >&6; }
24015 else
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24017 $as_echo "no" >&6; }
24020 if test "x$ac_ct_TARGET_NM" = x; then
24021 TARGET_NM=""
24022 else
24023 case $cross_compiling:$ac_tool_warned in
24024 yes:)
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24027 ac_tool_warned=yes ;;
24028 esac
24029 TARGET_NM=$ac_ct_TARGET_NM
24031 else
24032 TARGET_NM="$ac_cv_prog_TARGET_NM"
24035 if test -n "$ac_tool_prefix"; then
24036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24039 $as_echo_n "checking for $ac_word... " >&6; }
24040 if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24043 if test -n "$TARGET_RANLIB"; then
24044 ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
24045 else
24046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24047 for as_dir in $PATH
24049 IFS=$as_save_IFS
24050 test -z "$as_dir" && as_dir=.
24051 for ac_exec_ext in '' $ac_executable_extensions; do
24052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24053 ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24055 break 2
24057 done
24058 done
24059 IFS=$as_save_IFS
24063 TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24064 if test -n "$TARGET_RANLIB"; then
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24066 $as_echo "$TARGET_RANLIB" >&6; }
24067 else
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24069 $as_echo "no" >&6; }
24074 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24075 ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24076 # Extract the first word of "ranlib", so it can be a program name with args.
24077 set dummy ranlib; ac_word=$2
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24079 $as_echo_n "checking for $ac_word... " >&6; }
24080 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24081 $as_echo_n "(cached) " >&6
24082 else
24083 if test -n "$ac_ct_TARGET_RANLIB"; then
24084 ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24085 else
24086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24087 for as_dir in $PATH
24089 IFS=$as_save_IFS
24090 test -z "$as_dir" && as_dir=.
24091 for ac_exec_ext in '' $ac_executable_extensions; do
24092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24093 ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24095 break 2
24097 done
24098 done
24099 IFS=$as_save_IFS
24103 ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24104 if test -n "$ac_ct_TARGET_RANLIB"; then
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24106 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24107 else
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109 $as_echo "no" >&6; }
24112 if test "x$ac_ct_TARGET_RANLIB" = x; then
24113 TARGET_RANLIB=""
24114 else
24115 case $cross_compiling:$ac_tool_warned in
24116 yes:)
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24119 ac_tool_warned=yes ;;
24120 esac
24121 TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24123 else
24124 TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
24128 ac_tool_prefix="$tmp_ac_tool_prefix"
24129 else
24130 if test "x$TARGET_CC" = x; then
24131 TARGET_CC=$CC
24133 if test -n "$ac_tool_prefix"; then
24134 for ac_prog in gobjcopy objcopy
24136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24139 $as_echo_n "checking for $ac_word... " >&6; }
24140 if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
24141 $as_echo_n "(cached) " >&6
24142 else
24143 if test -n "$TARGET_OBJCOPY"; then
24144 ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
24145 else
24146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24147 for as_dir in $PATH
24149 IFS=$as_save_IFS
24150 test -z "$as_dir" && as_dir=.
24151 for ac_exec_ext in '' $ac_executable_extensions; do
24152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24153 ac_cv_prog_TARGET_OBJCOPY="$ac_tool_prefix$ac_prog"
24154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24155 break 2
24157 done
24158 done
24159 IFS=$as_save_IFS
24163 TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
24164 if test -n "$TARGET_OBJCOPY"; then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
24166 $as_echo "$TARGET_OBJCOPY" >&6; }
24167 else
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24169 $as_echo "no" >&6; }
24173 test -n "$TARGET_OBJCOPY" && break
24174 done
24176 if test -z "$TARGET_OBJCOPY"; then
24177 ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
24178 for ac_prog in gobjcopy objcopy
24180 # Extract the first word of "$ac_prog", so it can be a program name with args.
24181 set dummy $ac_prog; ac_word=$2
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24183 $as_echo_n "checking for $ac_word... " >&6; }
24184 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
24185 $as_echo_n "(cached) " >&6
24186 else
24187 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24188 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
24189 else
24190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24191 for as_dir in $PATH
24193 IFS=$as_save_IFS
24194 test -z "$as_dir" && as_dir=.
24195 for ac_exec_ext in '' $ac_executable_extensions; do
24196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24197 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_prog"
24198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24199 break 2
24201 done
24202 done
24203 IFS=$as_save_IFS
24207 ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
24208 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
24210 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
24211 else
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24213 $as_echo "no" >&6; }
24217 test -n "$ac_ct_TARGET_OBJCOPY" && break
24218 done
24220 if test "x$ac_ct_TARGET_OBJCOPY" = x; then
24221 TARGET_OBJCOPY=""
24222 else
24223 case $cross_compiling:$ac_tool_warned in
24224 yes:)
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24227 ac_tool_warned=yes ;;
24228 esac
24229 TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
24233 if test -n "$ac_tool_prefix"; then
24234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24235 set dummy ${ac_tool_prefix}strip; ac_word=$2
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24237 $as_echo_n "checking for $ac_word... " >&6; }
24238 if ${ac_cv_prog_TARGET_STRIP+:} false; then :
24239 $as_echo_n "(cached) " >&6
24240 else
24241 if test -n "$TARGET_STRIP"; then
24242 ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
24243 else
24244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24245 for as_dir in $PATH
24247 IFS=$as_save_IFS
24248 test -z "$as_dir" && as_dir=.
24249 for ac_exec_ext in '' $ac_executable_extensions; do
24250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24251 ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
24252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24253 break 2
24255 done
24256 done
24257 IFS=$as_save_IFS
24261 TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
24262 if test -n "$TARGET_STRIP"; then
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
24264 $as_echo "$TARGET_STRIP" >&6; }
24265 else
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24272 if test -z "$ac_cv_prog_TARGET_STRIP"; then
24273 ac_ct_TARGET_STRIP=$TARGET_STRIP
24274 # Extract the first word of "strip", so it can be a program name with args.
24275 set dummy strip; ac_word=$2
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24277 $as_echo_n "checking for $ac_word... " >&6; }
24278 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
24279 $as_echo_n "(cached) " >&6
24280 else
24281 if test -n "$ac_ct_TARGET_STRIP"; then
24282 ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
24283 else
24284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24285 for as_dir in $PATH
24287 IFS=$as_save_IFS
24288 test -z "$as_dir" && as_dir=.
24289 for ac_exec_ext in '' $ac_executable_extensions; do
24290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24291 ac_cv_prog_ac_ct_TARGET_STRIP="strip"
24292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24293 break 2
24295 done
24296 done
24297 IFS=$as_save_IFS
24301 ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
24302 if test -n "$ac_ct_TARGET_STRIP"; then
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
24304 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
24305 else
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307 $as_echo "no" >&6; }
24310 if test "x$ac_ct_TARGET_STRIP" = x; then
24311 TARGET_STRIP=""
24312 else
24313 case $cross_compiling:$ac_tool_warned in
24314 yes:)
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24317 ac_tool_warned=yes ;;
24318 esac
24319 TARGET_STRIP=$ac_ct_TARGET_STRIP
24321 else
24322 TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
24325 if test -n "$ac_tool_prefix"; then
24326 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
24327 set dummy ${ac_tool_prefix}nm; ac_word=$2
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24329 $as_echo_n "checking for $ac_word... " >&6; }
24330 if ${ac_cv_prog_TARGET_NM+:} false; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 if test -n "$TARGET_NM"; then
24334 ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
24335 else
24336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24337 for as_dir in $PATH
24339 IFS=$as_save_IFS
24340 test -z "$as_dir" && as_dir=.
24341 for ac_exec_ext in '' $ac_executable_extensions; do
24342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24343 ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
24344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24345 break 2
24347 done
24348 done
24349 IFS=$as_save_IFS
24353 TARGET_NM=$ac_cv_prog_TARGET_NM
24354 if test -n "$TARGET_NM"; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
24356 $as_echo "$TARGET_NM" >&6; }
24357 else
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24359 $as_echo "no" >&6; }
24364 if test -z "$ac_cv_prog_TARGET_NM"; then
24365 ac_ct_TARGET_NM=$TARGET_NM
24366 # Extract the first word of "nm", so it can be a program name with args.
24367 set dummy nm; ac_word=$2
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24369 $as_echo_n "checking for $ac_word... " >&6; }
24370 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
24371 $as_echo_n "(cached) " >&6
24372 else
24373 if test -n "$ac_ct_TARGET_NM"; then
24374 ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
24375 else
24376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24377 for as_dir in $PATH
24379 IFS=$as_save_IFS
24380 test -z "$as_dir" && as_dir=.
24381 for ac_exec_ext in '' $ac_executable_extensions; do
24382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24383 ac_cv_prog_ac_ct_TARGET_NM="nm"
24384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24385 break 2
24387 done
24388 done
24389 IFS=$as_save_IFS
24393 ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
24394 if test -n "$ac_ct_TARGET_NM"; then
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24396 $as_echo "$ac_ct_TARGET_NM" >&6; }
24397 else
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24402 if test "x$ac_ct_TARGET_NM" = x; then
24403 TARGET_NM=""
24404 else
24405 case $cross_compiling:$ac_tool_warned in
24406 yes:)
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24409 ac_tool_warned=yes ;;
24410 esac
24411 TARGET_NM=$ac_ct_TARGET_NM
24413 else
24414 TARGET_NM="$ac_cv_prog_TARGET_NM"
24417 if test -n "$ac_tool_prefix"; then
24418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24421 $as_echo_n "checking for $ac_word... " >&6; }
24422 if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
24423 $as_echo_n "(cached) " >&6
24424 else
24425 if test -n "$TARGET_RANLIB"; then
24426 ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
24427 else
24428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24429 for as_dir in $PATH
24431 IFS=$as_save_IFS
24432 test -z "$as_dir" && as_dir=.
24433 for ac_exec_ext in '' $ac_executable_extensions; do
24434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24435 ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24437 break 2
24439 done
24440 done
24441 IFS=$as_save_IFS
24445 TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24446 if test -n "$TARGET_RANLIB"; then
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24448 $as_echo "$TARGET_RANLIB" >&6; }
24449 else
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24451 $as_echo "no" >&6; }
24456 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24457 ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24458 # Extract the first word of "ranlib", so it can be a program name with args.
24459 set dummy ranlib; ac_word=$2
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24461 $as_echo_n "checking for $ac_word... " >&6; }
24462 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24463 $as_echo_n "(cached) " >&6
24464 else
24465 if test -n "$ac_ct_TARGET_RANLIB"; then
24466 ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24467 else
24468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24469 for as_dir in $PATH
24471 IFS=$as_save_IFS
24472 test -z "$as_dir" && as_dir=.
24473 for ac_exec_ext in '' $ac_executable_extensions; do
24474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24475 ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24477 break 2
24479 done
24480 done
24481 IFS=$as_save_IFS
24485 ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24486 if test -n "$ac_ct_TARGET_RANLIB"; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24488 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24489 else
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24494 if test "x$ac_ct_TARGET_RANLIB" = x; then
24495 TARGET_RANLIB=""
24496 else
24497 case $cross_compiling:$ac_tool_warned in
24498 yes:)
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24501 ac_tool_warned=yes ;;
24502 esac
24503 TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24505 else
24506 TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
24522 # Test the C compiler for the target environment.
24523 tmp_CC="$CC"
24524 tmp_CFLAGS="$CFLAGS"
24525 tmp_LDFLAGS="$LDFLAGS"
24526 tmp_CPPFLAGS="$CPPFLAGS"
24527 tmp_LIBS="$LIBS"
24528 CC="$TARGET_CC"
24529 CFLAGS="$TARGET_CFLAGS"
24530 CPPFLAGS="$TARGET_CPPFLAGS"
24531 LDFLAGS="$TARGET_LDFLAGS"
24532 LIBS=""
24534 # debug flags.
24535 TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
24536 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
24538 if test "x$target_cpu" != xi386 && test "x$target_cpu" != xx86_64; then
24539 TARGET_CFLAGS="$TARGET_CFLAGS -Wcast-align"
24542 TARGET_CC_VERSION="$(LC_ALL=C $TARGET_CC --version | head -n1)"
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
24545 $as_echo_n "checking which extra warnings work... " >&6; }
24546 if ${grub_cv_target_cc_w_extra_flags+:} false; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24550 LDFLAGS="$TARGET_LDFLAGS -nostdlib -static"
24552 grub_cv_target_cc_w_extra_flags=
24553 for x in $EXTRA_WARN_FLAGS; do
24554 CFLAGS="$TARGET_CFLAGS $x -Werror"
24555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24558 asm (".globl start; start:");
24559 void __main (void);
24560 void __main (void) {}
24561 int main (void);
24564 main (void)
24568 return 0;
24570 _ACEOF
24571 if ac_fn_c_try_link "$LINENO"; then :
24572 flag=1
24573 else
24574 flag=0
24576 rm -f core conftest.err conftest.$ac_objext \
24577 conftest$ac_exeext conftest.$ac_ext
24578 if test x$flag = x1 ; then
24579 grub_cv_target_cc_w_extra_flags="$grub_cv_target_cc_w_extra_flags $x"
24581 done
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
24585 $as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
24587 TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
24590 $as_echo_n "checking if compiling with clang... " >&6; }
24591 if { as_var=grub_cv_cc_target_clang
24593 CFLAGS="$TARGET_CFLAGS"
24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h. */
24598 main (void)
24601 #ifdef __clang__
24602 #error "is clang"
24603 #endif
24606 return 0;
24608 _ACEOF
24609 if ac_fn_c_try_compile "$LINENO"; then :
24610 grub_cv_cc_target_clang=no
24611 else
24612 grub_cv_cc_target_clang=yes
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24615 $as_echo_n "(cached) " >&6
24617 eval ac_res=\$grub_cv_cc_target_clang
24619 CFLAGS="$TARGET_CFLAGS"
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24624 main (void)
24627 #ifdef __clang__
24628 #error "is clang"
24629 #endif
24632 return 0;
24634 _ACEOF
24635 if ac_fn_c_try_compile "$LINENO"; then :
24636 grub_cv_cc_target_clang=no
24637 else
24638 grub_cv_cc_target_clang=yes
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24642 $as_echo "$ac_res" >&6; }
24644 # on x86 clang doesn't support .code16
24645 # on arm clang doesn't support .arch directive
24646 # on mips clang doesn't support privilegied instructions, doubleword store/load
24647 # and crashes with hand-written assembly
24648 if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 \
24649 || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm \
24650 || test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ); then
24651 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24654 if test "x$grub_cv_cc_target_clang" = xyes && test "x$target_cpu" = xpowerpc; then
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang can handle ame instruction" >&5
24656 $as_echo_n "checking if clang can handle ame instruction... " >&6; }
24657 if { as_var=grub_cv_cc_target_clang_ame
24659 CFLAGS="$TARGET_CFLAGS"
24660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661 /* end confdefs.h. */
24664 main (void)
24667 unsigned int a = 0, b = 0;
24668 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24669 if (a)
24670 return 1;
24673 return 0;
24675 _ACEOF
24676 if ac_fn_c_try_compile "$LINENO"; then :
24677 grub_cv_cc_target_clang_ame=yes
24678 else
24679 grub_cv_cc_target_clang_ame=no
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24682 $as_echo_n "(cached) " >&6
24684 eval ac_res=\$grub_cv_cc_target_clang_ame
24686 CFLAGS="$TARGET_CFLAGS"
24687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h. */
24691 main (void)
24694 unsigned int a = 0, b = 0;
24695 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24696 if (a)
24697 return 1;
24700 return 0;
24702 _ACEOF
24703 if ac_fn_c_try_compile "$LINENO"; then :
24704 grub_cv_cc_target_clang_ame=yes
24705 else
24706 grub_cv_cc_target_clang_ame=no
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24710 $as_echo "$ac_res" >&6; }
24711 # clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
24712 # used by gcrypt
24713 if test x$grub_cv_cc_target_clang_ame = xno ; then
24714 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24715 TARGET_CFLAGS="$TARGET_CFLAGS -no-integrated-as"
24719 if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then
24720 TARGET_CFLAGS="$TARGET_CFLAGS -march=i386"
24723 if test "x$target_m32" = x1; then
24724 # Force 32-bit mode.
24725 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
24726 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
24727 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
24728 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
24729 TARGET_MODULE_FORMAT="elf32"
24732 if test "x$target_m64" = x1; then
24733 # Force 64-bit mode.
24734 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
24735 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
24736 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
24737 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
24738 TARGET_MODULE_FORMAT="elf64"
24741 if test "x$grub_cv_cc_target_clang" = xno && test "x$target_cpu" = xi386 && test "x$platform" != xemu && test "x$platform" != xefi; then
24742 TARGET_CFLAGS="$TARGET_CFLAGS -mrtd -mregparm=3"
24745 # on mips redirect cache flushing function to non-existant one.
24746 if test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ; then
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
24748 $as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
24749 if ${grub_cv_cc_mflush_func+:} false; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24753 CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h. */
24758 main (void)
24762 return 0;
24764 _ACEOF
24765 if ac_fn_c_try_compile "$LINENO"; then :
24766 grub_cv_cc_mflush_func=yes
24767 else
24768 grub_cv_cc_mflush_func=no
24770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
24774 $as_echo "$grub_cv_cc_mflush_func" >&6; }
24776 if test "x$grub_cv_cc_mflush_func" = xyes; then
24777 TARGET_CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring"
24782 # Force no alignment to save space on i386.
24783 if test "x$target_cpu" = xi386; then
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
24785 $as_echo_n "checking whether -falign-loops works... " >&6; }
24786 if ${grub_cv_cc_falign_loop+:} false; then :
24787 $as_echo_n "(cached) " >&6
24788 else
24790 CFLAGS="$TARGET_CFLAGS -falign-loops=1 -Werror"
24791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24792 /* end confdefs.h. */
24795 main (void)
24799 return 0;
24801 _ACEOF
24802 if ac_fn_c_try_compile "$LINENO"; then :
24803 grub_cv_cc_falign_loop=yes
24804 else
24805 grub_cv_cc_falign_loop=no
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
24811 $as_echo "$grub_cv_cc_falign_loop" >&6; }
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
24814 $as_echo_n "checking whether -malign-loops works... " >&6; }
24815 if ${grub_cv_cc_malign_loop+:} false; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24819 CFLAGS="$TARGET_CFLAGS -malign-loops=1 -Werror"
24820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24821 /* end confdefs.h. */
24824 main (void)
24828 return 0;
24830 _ACEOF
24831 if ac_fn_c_try_compile "$LINENO"; then :
24832 grub_cv_cc_malign_loop=yes
24833 else
24834 grub_cv_cc_malign_loop=no
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
24840 $as_echo "$grub_cv_cc_malign_loop" >&6; }
24842 if test "x$grub_cv_cc_falign_loop" = xyes; then
24843 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
24844 elif test "x$grub_cv_cc_malign_loop" = xyes; then
24845 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
24850 $as_echo_n "checking whether -freg-struct-return works... " >&6; }
24851 if ${grub_cv_cc_freg_struct_return+:} false; then :
24852 $as_echo_n "(cached) " >&6
24853 else
24855 CFLAGS="$TARGET_CFLAGS -freg-struct-return -Werror"
24856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24860 main (void)
24864 return 0;
24866 _ACEOF
24867 if ac_fn_c_try_compile "$LINENO"; then :
24868 grub_cv_cc_freg_struct_return=yes
24869 else
24870 grub_cv_cc_freg_struct_return=no
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
24876 $as_echo "$grub_cv_cc_freg_struct_return" >&6; }
24878 if test "x$grub_cv_cc_freg_struct_return" = xyes; then
24879 TARGET_CFLAGS="$TARGET_CFLAGS -freg-struct-return"
24882 if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then
24883 # Some toolchains enable these features by default, but they need
24884 # registers that aren't set up properly in GRUB.
24885 TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
24888 # GRUB doesn't use float or doubles at all. Yet some toolchains may decide
24889 # that floats are a good fit to run instead of what's written in the code.
24890 # Given that floating point unit is disabled (if present to begin with)
24891 # when GRUB is running which may result in various hard crashes.
24892 if test "x$target_cpu" = xarm64; then
24893 TARGET_CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd"
24894 else
24895 TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float"
24898 # By default, GCC 4.4 generates .eh_frame sections containing unwind
24899 # information in some cases where it previously did not. GRUB doesn't need
24900 # these and they just use up vital space. Restore the old compiler
24901 # behaviour.
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
24903 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
24904 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24908 CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910 /* end confdefs.h. */
24913 main (void)
24917 return 0;
24919 _ACEOF
24920 if ac_fn_c_try_compile "$LINENO"; then :
24921 grub_cv_cc_fno_dwarf2_cfi_asm=yes
24922 else
24923 grub_cv_cc_fno_dwarf2_cfi_asm=no
24925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
24929 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
24931 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
24932 TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24935 if test x"$target_os" = xcygwin; then
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
24937 $as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
24938 if ${grub_cv_cc_no_reorder_functions+:} false; then :
24939 $as_echo_n "(cached) " >&6
24940 else
24942 CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24944 /* end confdefs.h. */
24947 main (void)
24951 return 0;
24953 _ACEOF
24954 if ac_fn_c_try_compile "$LINENO"; then :
24955 grub_cv_cc_no_reorder_functions=yes
24956 else
24957 grub_cv_cc_no_reorder_functions=no
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
24963 $as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
24966 if test x"$target_os" = xcygwin && test "x$grub_cv_cc_no_reorder_functions" = xyes; then
24967 TARGET_CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24970 # By default, GCC 4.6 generates .eh_frame sections containing unwind
24971 # information in some cases where it previously did not. GRUB doesn't need
24972 # these and they just use up vital space. Restore the old compiler
24973 # behaviour.
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
24975 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
24976 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false; then :
24977 $as_echo_n "(cached) " >&6
24978 else
24980 CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24985 main (void)
24989 return 0;
24991 _ACEOF
24992 if ac_fn_c_try_compile "$LINENO"; then :
24993 grub_cv_cc_fno_asynchronous_unwind_tables=yes
24994 else
24995 grub_cv_cc_fno_asynchronous_unwind_tables=no
24997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
25001 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
25003 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes; then
25004 TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
25007 # Check whether --enable-efiemu was given.
25008 if test "${enable_efiemu+set}" = set; then :
25009 enableval=$enable_efiemu;
25012 if test x"$enable_efiemu" = xno ; then
25013 efiemu_excuse="explicitly disabled"
25015 if test x"$grub_cv_target_cc_link_format" = x-mi386pe || test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
25016 efiemu_excuse="not available on cygwin"
25018 if test x"$target_cpu" != xi386 ; then
25019 efiemu_excuse="only available on i386"
25021 if test x"$platform" = xefi ; then
25022 efiemu_excuse="not available on efi"
25024 if test x"$efiemu_excuse" = x ; then
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
25026 $as_echo_n "checking whether options required for efiemu work... " >&6; }
25027 if ${grub_cv_cc_efiemu+:} false; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25031 CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h. */
25036 main (void)
25040 return 0;
25042 _ACEOF
25043 if ac_fn_c_try_compile "$LINENO"; then :
25044 grub_cv_cc_efiemu=yes
25045 else
25046 grub_cv_cc_efiemu=no
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
25052 $as_echo "$grub_cv_cc_efiemu" >&6; }
25053 if test x$grub_cv_cc_efiemu = xno; then
25054 efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
25057 if test x"$efiemu_excuse" = x ; then
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
25059 $as_echo_n "checking for efiemu64 linking format... " >&6; }
25060 if ${grub_cv_target_cc_efiemu64_link_format+:} false; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25064 grub_cv_target_cc_efiemu64_link_format=unknown
25065 for format in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64; do
25066 CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25067 LDFLAGS="-m64 -Wl,$format -nostdlib -static"
25068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25069 /* end confdefs.h. */
25071 asm (".globl start; start:");
25072 asm (".globl _start; _start:");
25073 asm (".globl __start; __start:");
25074 void __main (void);
25075 void __main (void) {}
25078 main (void)
25082 return 0;
25084 _ACEOF
25085 if ac_fn_c_try_link "$LINENO"; then :
25086 flag=1
25087 else
25088 flag=0
25090 rm -f core conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25092 if test x"$flag" = x1; then
25093 grub_cv_target_cc_efiemu64_link_format="$format"
25094 break
25096 done
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
25099 $as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
25100 if test x"$grub_cv_target_cc_efiemu64_link_format" = xunknown; then
25101 efiemu_excuse="no suitable link format for efiemu64 found"
25102 else
25103 EFIEMU64_LINK_FORMAT="-Wl,$grub_cv_target_cc_efiemu64_link_format"
25106 if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
25107 as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
25109 if test x"$efiemu_excuse" = x ; then
25110 enable_efiemu=yes
25111 else
25112 enable_efiemu=no
25117 CFLAGS="$TARGET_CFLAGS"
25120 if test x"$platform" = xemu ; then
25121 TARGET_OBJ2ELF=
25122 grub_cv_target_cc_link_format=
25123 case "$host_os" in
25124 *darwin* | *mac*)
25125 grub_cv_target_cc_link_format="-arch,${target_cpu}"
25126 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25128 *windows* | *cygwin* | *mingw*)
25129 if test x${target_cpu} = xi386 ; then
25130 grub_cv_target_cc_link_format=-mi386pe
25131 TARGET_OBJ2ELF='./build-grub-pe2elf$(BUILD_EXEEXT)'
25133 if test x${target_cpu} = xx86_64 ; then
25134 grub_cv_target_cc_link_format=-mi386pep
25135 TARGET_OBJ2ELF='./build-grub-pep2elf$(BUILD_EXEEXT)'
25137 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25139 esac
25140 elif test x"$target_cpu" = xi386 || test x"$target_cpu" = xx86_64; then
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
25142 $as_echo_n "checking for target linking format... " >&6; }
25143 if ${grub_cv_target_cc_link_format+:} false; then :
25144 $as_echo_n "(cached) " >&6
25145 else
25147 grub_cv_target_cc_link_format=unknown
25148 for format in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
25149 if test x${target_cpu} != xi386 && test x$format = x-mi386pe; then
25150 continue
25152 if test x${target_cpu} != xx86_64 && test x$format = x-mi386pep; then
25153 continue
25155 CFLAGS="$TARGET_CFLAGS"
25156 LDFLAGS="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25160 asm (".globl start; start:");
25161 asm (".globl _start; _start:");
25162 asm (".globl __start; __start:");
25163 void __main (void);
25164 void __main (void) {}
25167 main (void)
25171 return 0;
25173 _ACEOF
25174 if ac_fn_c_try_link "$LINENO"; then :
25175 flag=1
25176 else
25177 flag=0
25179 rm -f core conftest.err conftest.$ac_objext \
25180 conftest$ac_exeext conftest.$ac_ext
25181 if test x"$flag" = x1; then
25182 grub_cv_target_cc_link_format="$format"
25183 break
25185 done
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
25188 $as_echo "$grub_cv_target_cc_link_format" >&6; }
25189 if test x"$grub_cv_target_cc_link_format" = xunknown; then
25190 as_fn_error $? "no suitable link format found" "$LINENO" 5
25192 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25193 if test x"$grub_cv_target_cc_link_format" = x-mi386pe ; then
25194 TARGET_OBJ2ELF='./build-grub-pe2elf$(BUILD_EXEEXT)'
25196 if test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
25197 TARGET_OBJ2ELF='./build-grub-pep2elf$(BUILD_EXEEXT)'
25201 if test x$grub_cv_target_cc_link_format = x-arch,i386 || test x$grub_cv_target_cc_link_format = x-arch,x86_64; then
25202 TARGET_APPLE_LINKER=1
25203 # Extract the first word of "objconv", so it can be a program name with args.
25204 set dummy objconv; ac_word=$2
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25206 $as_echo_n "checking for $ac_word... " >&6; }
25207 if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 if test -n "$TARGET_OBJCONV"; then
25211 ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25212 else
25213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25214 for as_dir in $PATH
25216 IFS=$as_save_IFS
25217 test -z "$as_dir" && as_dir=.
25218 for ac_exec_ext in '' $ac_executable_extensions; do
25219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25220 ac_cv_prog_TARGET_OBJCONV="objconv"
25221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25222 break 2
25224 done
25225 done
25226 IFS=$as_save_IFS
25230 TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25231 if test -n "$TARGET_OBJCONV"; then
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25233 $as_echo "$TARGET_OBJCONV" >&6; }
25234 else
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25236 $as_echo "no" >&6; }
25240 if test "x$TARGET_OBJCONV" = x ; then
25241 # Extract the first word of "objconv", so it can be a program name with args.
25242 set dummy objconv; ac_word=$2
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25244 $as_echo_n "checking for $ac_word... " >&6; }
25245 if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25246 $as_echo_n "(cached) " >&6
25247 else
25248 if test -n "$TARGET_OBJCONV"; then
25249 ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25250 else
25251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25252 for as_dir in .
25254 IFS=$as_save_IFS
25255 test -z "$as_dir" && as_dir=.
25256 for ac_exec_ext in '' $ac_executable_extensions; do
25257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25258 ac_cv_prog_TARGET_OBJCONV="./objconv"
25259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25260 break 2
25262 done
25263 done
25264 IFS=$as_save_IFS
25268 TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25269 if test -n "$TARGET_OBJCONV"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25271 $as_echo "$TARGET_OBJCONV" >&6; }
25272 else
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25279 if test "x$TARGET_OBJCONV" = x ; then
25280 as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
25282 TARGET_IMG_LDSCRIPT=
25283 TARGET_IMG_CFLAGS="-static"
25284 TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25285 TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25286 TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
25287 TARGET_LDFLAGS_OLDMAGIC=""
25288 elif test x$grub_cv_target_cc_link_format = x-mi386pe || test x$grub_cv_target_cc_link_format = x-mi386pep ; then
25289 TARGET_APPLE_LINKER=0
25290 TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
25291 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25292 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
25293 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25294 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25295 TARGET_IMG_CFLAGS=
25296 else
25297 TARGET_APPLE_LINKER=0
25298 TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
25299 TARGET_IMG_LDSCRIPT=
25300 TARGET_IMG_LDFLAGS='-Wl,-N'
25301 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
25302 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25303 TARGET_IMG_CFLAGS=
25309 LDFLAGS="$TARGET_LDFLAGS"
25311 if test "$target_cpu" = x86_64 || test "$target_cpu-$platform" = sparc64-emu ; then
25312 # Use large model to support 4G memory
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
25314 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
25315 if ${grub_cv_cc_mcmodel+:} false; then :
25316 $as_echo_n "(cached) " >&6
25317 else
25319 CFLAGS="$TARGET_CFLAGS -mcmodel=large"
25320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25324 main (void)
25328 return 0;
25330 _ACEOF
25331 if ac_fn_c_try_compile "$LINENO"; then :
25332 grub_cv_cc_mcmodel=yes
25333 else
25334 grub_cv_cc_mcmodel=no
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
25340 $as_echo "$grub_cv_cc_mcmodel" >&6; }
25341 if test "x$grub_cv_cc_mcmodel" = xyes; then
25342 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
25343 elif test "$target_cpu-$platform" = sparc64-emu; then
25344 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
25348 if test "$target_cpu"-"$platform" = x86_64-efi; then
25349 # EFI writes to stack below %rsp, we must not use the red zone
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
25351 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
25352 if ${grub_cv_cc_no_red_zone+:} false; then :
25353 $as_echo_n "(cached) " >&6
25354 else
25356 CFLAGS="$TARGET_CFLAGS -mno-red-zone"
25357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25358 /* end confdefs.h. */
25361 main (void)
25365 return 0;
25367 _ACEOF
25368 if ac_fn_c_try_compile "$LINENO"; then :
25369 grub_cv_cc_no_red_zone=yes
25370 else
25371 grub_cv_cc_no_red_zone=no
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
25377 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
25378 if test "x$grub_cv_cc_no_red_zone" = xno; then
25379 as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
25382 TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
25385 if test "x$target_cpu" = xarm; then
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mlong-calls works" >&5
25387 $as_echo_n "checking whether option -mlong-calls works... " >&6; }
25388 if ${grub_cv_cc_mlong_calls+:} false; then :
25389 $as_echo_n "(cached) " >&6
25390 else
25392 CFLAGS="$TARGET_CFLAGS -mlong-calls -Werror"
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25397 main (void)
25401 return 0;
25403 _ACEOF
25404 if ac_fn_c_try_compile "$LINENO"; then :
25405 grub_cv_cc_mlong_calls=yes
25406 else
25407 grub_cv_cc_mlong_calls=no
25409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mlong_calls" >&5
25413 $as_echo "$grub_cv_cc_mlong_calls" >&6; }
25414 if test "x$grub_cv_cc_mlong_calls" = xyes; then
25415 TARGET_CFLAGS="$TARGET_CFLAGS -mlong-calls"
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
25418 $as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
25419 if ${grub_cv_cc_mthumb_interwork+:} false; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25423 CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25428 main (void)
25432 return 0;
25434 _ACEOF
25435 if ac_fn_c_try_compile "$LINENO"; then :
25436 grub_cv_cc_mthumb_interwork=yes
25437 else
25438 grub_cv_cc_mthumb_interwork=no
25440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
25444 $as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
25445 if test "x$grub_cv_cc_mthumb_interwork" = xyes; then
25446 TARGET_CFLAGS="$TARGET_CFLAGS -mthumb-interwork"
25447 elif test "x$grub_cv_cc_target_clang" = xno ; then
25448 as_fn_error $? "your compiler doesn't support -mthumb-interwork" "$LINENO" 5
25449 else
25450 CFLAGS="$TARGET_CFLAGS"
25451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h. */
25455 main (void)
25458 #if defined (__thumb__) && !defined (__thumb2__)
25459 #error thumb without interworking
25460 #endif
25463 return 0;
25465 _ACEOF
25466 if ac_fn_c_try_compile "$LINENO"; then :
25467 no_interwork_ok=yes
25468 else
25469 no_interwork_ok=no
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 if test x$no_interwork_ok = xno ; then
25473 as_fn_error $? "attempt to compile to thumb with no thumb interwork" "$LINENO" 5
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
25479 $as_echo_n "checking whether option -Qn works... " >&6; }
25480 if ${grub_cv_target_cc_qn+:} false; then :
25481 $as_echo_n "(cached) " >&6
25482 else
25484 CFLAGS="$TARGET_CFLAGS -Qn -Werror"
25485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25486 /* end confdefs.h. */
25489 main (void)
25493 return 0;
25495 _ACEOF
25496 if ac_fn_c_try_compile "$LINENO"; then :
25497 grub_cv_target_cc_qn=yes
25498 else
25499 grub_cv_target_cc_qn=no
25501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
25504 $as_echo "$grub_cv_target_cc_qn" >&6; }
25505 if test "x$grub_cv_target_cc_qn" = xyes; then
25506 TARGET_CFLAGS="$TARGET_CFLAGS -Qn"
25510 # Compiler features.
25513 CFLAGS="$TARGET_CFLAGS"
25515 # Position independent executable.
25517 # Position independent executable.
25518 pie_possible=yes
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
25520 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
25521 # Is this a reliable test case?
25522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h. */
25525 #ifdef __PIE__
25526 int main() {
25527 return 0;
25529 #else
25530 #error NO __PIE__ DEFINED
25531 #endif
25533 _ACEOF
25535 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25536 # `ac_compile' like this correct, after all?
25537 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25539 $as_echo "yes" >&6; }
25540 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25541 rm -f conftest.s
25542 else
25543 pie_possible=no
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 $as_echo "no" >&6; }
25548 # Need that, because some distributions ship compilers that include
25549 # `-fPIE' in the default specs.
25550 if [ x"$pie_possible" = xyes ]; then
25551 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
25554 CFLAGS="$TARGET_CFLAGS"
25556 # Position independent executable.
25558 # Position independent executable.
25559 pic_possible=yes
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
25561 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
25562 # Is this a reliable test case?
25563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h. */
25566 #ifdef __PIC__
25567 int main() {
25568 return 0;
25570 #else
25571 #error NO __PIC__ DEFINED
25572 #endif
25574 _ACEOF
25576 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25577 # `ac_compile' like this correct, after all?
25578 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25580 $as_echo "yes" >&6; }
25581 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25582 rm -f conftest.s
25583 else
25584 pic_possible=no
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25586 $as_echo "no" >&6; }
25589 # On most platforms we don't want PIC as it only makes relocations harder
25590 # and code less efficient. On mips we want to have one got table per module
25591 # and reload $gp in every function.
25592 # GCC implements it using symbol __gnu_local_gp in non-PIC as well.
25593 # However with clang we need PIC for this reloading to happen.
25594 # Since default varies across dictributions use either -fPIC or -fno-PIC
25595 # explicitly.
25596 if ( test x$target_cpu = xmips || test x$target_cpu = xmipsel ) && test "x$grub_cv_cc_target_clang" = xyes ; then
25597 TARGET_CFLAGS="$TARGET_CFLAGS -fPIC"
25598 elif [ x"$pic_possible" = xyes ]; then
25599 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIC"
25602 CFLAGS="$TARGET_CFLAGS"
25604 # Smashing stack protector.
25606 # Smashing stack protector.
25607 ssp_possible=yes
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
25609 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
25610 # Is this a reliable test case?
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25614 void foo (void) { volatile char a[8]; a[3]; }
25616 _ACEOF
25617 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25618 # `ac_compile' like this correct, after all?
25619 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25621 $as_echo "yes" >&6; }
25622 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25623 rm -f conftest.s
25624 else
25625 ssp_possible=no
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627 $as_echo "no" >&6; }
25630 # Need that, because some distributions ship compilers that include
25631 # `-fstack-protector' in the default specs.
25632 if test "x$ssp_possible" = xyes; then
25633 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
25636 CFLAGS="$TARGET_CFLAGS"
25639 # Smashing stack arg probe.
25640 sap_possible=yes
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
25642 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25646 void foo (void) { volatile char a[8]; a[3]; }
25648 _ACEOF
25649 if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev/null; then
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25651 $as_echo "yes" >&6; }
25652 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25653 rm -f conftest.s
25654 else
25655 sap_possible=no
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25657 $as_echo "no" >&6; }
25660 # Cygwin's GCC uses alloca() to probe the stackframe on static
25661 # stack allocations above some threshold.
25662 if test x"$sap_possible" = xyes; then
25663 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
25666 CFLAGS="$TARGET_CFLAGS"
25668 # -mno-unaligned-access -mstrict-align
25669 if test "$target_cpu" = arm; then
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
25671 $as_echo_n "checking for compile options to get strict alignment... " >&6; }
25672 if ${grub_cv_target_cc_strict_align+:} false; then :
25673 $as_echo_n "(cached) " >&6
25674 else
25676 grub_cv_target_cc_strict_align=
25677 for arg in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
25678 CFLAGS="$TARGET_CFLAGS $arg -Werror"
25679 LDFLAGS="$TARGET_LDFLAGS"
25680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25681 /* end confdefs.h. */
25684 main (void)
25688 return 0;
25690 _ACEOF
25691 if ac_fn_c_try_compile "$LINENO"; then :
25692 flag=1
25693 else
25694 flag=0
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697 if test x"$flag" = x1; then
25698 grub_cv_target_cc_strict_align="$arg"
25699 break
25701 done
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
25704 $as_echo "$grub_cv_target_cc_strict_align" >&6; }
25706 TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
25707 if test x"$grub_cv_target_cc_strict_align" = x"-Xclang -mstrict-align"; then
25708 TARGET_LDFLAGS="$TARGET_LDFLAGS -Qunused-arguments"
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
25711 $as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
25712 if ${grub_cv_cc_target_emits_unaligned+:} false; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 CFLAGS="$TARGET_CFLAGS"
25716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25717 /* end confdefs.h. */
25720 main (void)
25723 #ifdef __ARM_FEATURE_UNALIGNED
25724 #error "unaligned"
25725 #endif
25728 return 0;
25730 _ACEOF
25731 if ac_fn_c_try_compile "$LINENO"; then :
25732 grub_cv_cc_target_emits_unaligned=no
25733 else
25734 grub_cv_cc_target_emits_unaligned=yes
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
25739 $as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
25740 if test x$grub_cv_cc_target_emits_unaligned = xyes; then
25741 as_fn_error $? "compiler generates unaligned accesses" "$LINENO" 5
25745 # Set them to their new values for the tests below.
25746 CC="$TARGET_CC"
25747 if test "x$TARGET_APPLE_LINKER" = x1 ; then
25748 CFLAGS="$TARGET_CFLAGS -nostdlib -static -Wno-error"
25749 else
25750 CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
25752 CPPFLAGS="$TARGET_CPPFLAGS"
25753 if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 || test "x$grub_cv_cc_target_clang" = xyes ; then
25754 TARGET_LIBGCC=
25755 else
25756 TARGET_LIBGCC=-lgcc
25759 LIBS="$TARGET_LIBGCC"
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
25764 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
25765 if ${grub_cv_asm_uscore+:} false; then :
25766 $as_echo_n "(cached) " >&6
25767 else
25768 cat > conftest.c <<\EOF
25769 int func (int *);
25771 func (int *list)
25773 *list = 0;
25774 return *list;
25778 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; } && test -s conftest.s; then
25784 true
25785 else
25786 as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
25789 if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
25790 HAVE_ASM_USCORE=1
25791 grub_cv_asm_uscore=yes
25792 else
25793 HAVE_ASM_USCORE=0
25794 grub_cv_asm_uscore=no
25797 rm -f conftest*
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
25802 $as_echo "$grub_cv_asm_uscore" >&6; }
25804 if test "x$TARGET_APPLE_LINKER" = x0 ; then
25805 if test x$grub_cv_asm_uscore = xyes; then
25806 DEFSYM="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
25807 else
25808 DEFSYM="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
25810 CFLAGS="$TARGET_CFLAGS -nostdlib $DEFSYM"
25813 # Check for libgcc symbols
25814 for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x
25815 do :
25816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25819 cat >>confdefs.h <<_ACEOF
25820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25821 _ACEOF
25824 done
25827 if test "x$TARGET_APPLE_LINKER" = x1 ; then
25828 CFLAGS="$TARGET_CFLAGS -nostdlib -static"
25829 else
25830 CFLAGS="$TARGET_CFLAGS -nostdlib"
25832 LIBS=""
25834 # Defined in aclocal.m4.
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
25836 $as_echo_n "checking whether target compiler is working... " >&6; }
25837 if ${grub_cv_prog_target_cc+:} false; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h. */
25843 asm (".globl start; start:");
25844 void __main (void);
25845 void __main (void) {}
25846 int main (void);
25849 main (void)
25853 return 0;
25855 _ACEOF
25856 if ac_fn_c_try_link "$LINENO"; then :
25857 grub_cv_prog_target_cc=yes
25858 else
25859 grub_cv_prog_target_cc=no
25861 rm -f core conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
25867 $as_echo "$grub_cv_prog_target_cc" >&6; }
25869 if test "x$grub_cv_prog_target_cc" = xno; then
25870 as_fn_error $? "cannot compile for the target" "$LINENO" 5
25873 if test "x$TARGET_APPLE_LINKER" != x1 ; then
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
25875 $as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
25876 if ${grub_cv_prog_objcopy_absolute+:} false; then :
25877 $as_echo_n "(cached) " >&6
25878 else
25879 cat > conftest.c <<\EOF
25880 void cmain (void);
25881 void
25882 cmain (void)
25884 *((int *) 0x1000) = 2;
25888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25889 (eval $ac_compile) 2>&5
25890 ac_status=$?
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; } && test -s conftest.o; then :
25893 else
25894 as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
25896 grub_cv_prog_objcopy_absolute=yes
25897 for link_addr in 0x2000 0x8000 0x7C00; do
25898 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }; then :
25904 else
25905 as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
25907 if { ac_try='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }; then :
25913 else
25914 as_fn_error $? "${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
25916 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }; then
25922 mv -f conftest conftest.old
25923 else
25924 grub_cv_prog_objcopy_absolute=no
25925 break
25927 done
25928 rm -f conftest*
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
25932 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
25934 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
25935 as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
25940 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
25941 if ${grub_cv_prog_ld_build_id_none+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 save_LDFLAGS="$LDFLAGS"
25945 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25950 main (void)
25954 return 0;
25956 _ACEOF
25957 if ac_fn_c_try_link "$LINENO"; then :
25958 grub_cv_prog_ld_build_id_none=yes
25959 else
25960 grub_cv_prog_ld_build_id_none=no
25962 rm -f core conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
25964 LDFLAGS="$save_LDFLAGS"
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
25969 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
25971 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
25972 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
25975 if test "x$target_cpu" = xi386; then
25976 if test "$platform" != emu && test "x$TARGET_APPLE_LINKER" != x1 ; then
25977 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
25978 # Check symbols provided by linker script.
25979 CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
25983 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
25984 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false; then :
25985 $as_echo_n "(cached) " >&6
25986 else
25987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25990 asm (".globl start; start:");
25991 void __main (void);
25992 void __main (void) {}
25993 int main (void);
25996 main (void)
25998 asm ("incl __bss_start")
26000 return 0;
26002 _ACEOF
26003 if ac_fn_c_try_link "$LINENO"; then :
26004 grub_cv_check_uscore_uscore_bss_start_symbol=yes
26005 else
26006 grub_cv_check_uscore_uscore_bss_start_symbol=no
26008 rm -f core conftest.err conftest.$ac_objext \
26009 conftest$ac_exeext conftest.$ac_ext
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
26014 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
26017 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
26018 if ${grub_cv_check_edata_symbol+:} false; then :
26019 $as_echo_n "(cached) " >&6
26020 else
26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h. */
26024 asm (".globl start; start:");
26025 void __main (void);
26026 void __main (void) {}
26027 int main (void);
26029 main (void)
26031 asm ("incl edata")
26033 return 0;
26035 _ACEOF
26036 if ac_fn_c_try_link "$LINENO"; then :
26037 grub_cv_check_edata_symbol=yes
26038 else
26039 grub_cv_check_edata_symbol=no
26041 rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
26047 $as_echo "$grub_cv_check_edata_symbol" >&6; }
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
26050 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
26051 if ${grub_cv_check_uscore_edata_symbol+:} false; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h. */
26057 asm (".globl start; start:");
26058 void __main (void);
26059 void __main (void) {}
26060 int main (void);
26062 main (void)
26064 asm ("incl _edata")
26066 return 0;
26068 _ACEOF
26069 if ac_fn_c_try_link "$LINENO"; then :
26070 grub_cv_check_uscore_edata_symbol=yes
26071 else
26072 grub_cv_check_uscore_edata_symbol=no
26074 rm -f core conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
26080 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
26082 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
26083 BSS_START_SYMBOL=__bss_start
26084 elif test "x$grub_cv_check_edata_symbol" = xyes; then
26085 BSS_START_SYMBOL=edata
26086 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
26087 BSS_START_SYMBOL=_edata
26088 else
26089 as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
26094 $as_echo_n "checking if end is defined by the compiler... " >&6; }
26095 if ${grub_cv_check_end_symbol+:} false; then :
26096 $as_echo_n "(cached) " >&6
26097 else
26098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h. */
26101 asm (".globl start; start:");
26102 void __main (void);
26103 void __main (void) {}
26104 int main (void);
26106 main (void)
26108 asm ("incl end")
26110 return 0;
26112 _ACEOF
26113 if ac_fn_c_try_link "$LINENO"; then :
26114 grub_cv_check_end_symbol=yes
26115 else
26116 grub_cv_check_end_symbol=no
26118 rm -f core conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
26124 $as_echo "$grub_cv_check_end_symbol" >&6; }
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
26127 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
26128 if ${grub_cv_check_uscore_end_symbol+:} false; then :
26129 $as_echo_n "(cached) " >&6
26130 else
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26134 asm (".globl start; start:");
26135 void __main (void);
26136 void __main (void) {}
26137 int main (void);
26139 main (void)
26141 asm ("incl _end")
26143 return 0;
26145 _ACEOF
26146 if ac_fn_c_try_link "$LINENO"; then :
26147 grub_cv_check_uscore_end_symbol=yes
26148 else
26149 grub_cv_check_uscore_end_symbol=no
26151 rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
26157 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
26159 if test "x$grub_cv_check_end_symbol" = xyes; then
26160 END_SYMBOL=end
26161 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
26162 END_SYMBOL=_end
26163 else
26164 as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
26168 CFLAGS="$TARGET_CFLAGS"
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
26171 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
26172 if ${grub_cv_i386_asm_prefix_requirement+:} false; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 cat > conftest.s <<\EOF
26176 .code16
26177 l1: addr32 movb %al, l1
26180 if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; } && test -s conftest.o; then
26186 grub_cv_i386_asm_prefix_requirement=yes
26187 else
26188 grub_cv_i386_asm_prefix_requirement=no
26191 rm -f conftest*
26195 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26196 grub_tmp_addr32="addr32"
26197 grub_tmp_data32="data32"
26198 else
26199 grub_tmp_addr32="addr32;"
26200 grub_tmp_data32="data32;"
26203 ADDR32=$grub_tmp_addr32
26204 DATA32=$grub_tmp_data32
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
26207 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
26211 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
26212 if ${grub_cv_i386_asm_addr32+:} false; then :
26213 $as_echo_n "(cached) " >&6
26214 else
26215 cat > conftest.s.in <<\EOF
26216 .code16
26217 l1: @ADDR32@ movb %al, l1
26220 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26221 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
26222 else
26223 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
26226 if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26231 test $ac_status = 0; }; } && test -s conftest.o; then
26232 grub_cv_i386_asm_addr32=yes
26233 else
26234 grub_cv_i386_asm_addr32=no
26237 rm -f conftest*
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
26242 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
26246 $as_echo_n "checking whether nm works... " >&6; }
26247 if ${grub_cv_prog_nm_works+:} false; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26251 nm_works_tmp_dir="$(mktemp -d "./confXXXXXX")"
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26256 main (void)
26260 return 0;
26262 _ACEOF
26263 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_works_tmp_dir/ef"
26264 if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev/null; then
26265 grub_cv_prog_nm_works=yes
26266 else
26267 grub_cv_prog_nm_minus_p=no
26269 rm "$nm_works_tmp_dir/ef"
26270 rmdir "$nm_works_tmp_dir"
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
26275 $as_echo "$grub_cv_prog_nm_works" >&6; }
26277 if test "x$grub_cv_prog_nm_works" != xyes; then
26278 as_fn_error $? "nm does not work" "$LINENO" 5
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
26282 $as_echo_n "checking whether nm accepts -P... " >&6; }
26283 if ${grub_cv_prog_nm_minus_p+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26287 nm_minus_p_tmp_dir="$(mktemp -d "./confXXXXXX")"
26288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26289 /* end confdefs.h. */
26292 main (void)
26296 return 0;
26298 _ACEOF
26299 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_minus_p_tmp_dir/ef"
26300 if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev/null; then
26301 grub_cv_prog_nm_minus_p=yes
26302 else
26303 grub_cv_prog_nm_minus_p=no
26305 rm "$nm_minus_p_tmp_dir/ef"
26306 rmdir "$nm_minus_p_tmp_dir"
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
26311 $as_echo "$grub_cv_prog_nm_minus_p" >&6; }
26313 if test "x$grub_cv_prog_nm_minus_p" = xyes; then
26314 TARGET_NMFLAGS_MINUS_P="-P"
26315 else
26316 TARGET_NMFLAGS_MINUS_P=
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
26320 $as_echo_n "checking whether nm accepts --defined-only... " >&6; }
26321 if ${grub_cv_prog_nm_defined_only+:} false; then :
26322 $as_echo_n "(cached) " >&6
26323 else
26325 nm_defined_only_tmp_dir="$(mktemp -d "./confXXXXXX")"
26326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h. */
26330 main (void)
26334 return 0;
26336 _ACEOF
26337 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_defined_only_tmp_dir/ef"
26338 if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev/null; then
26339 grub_cv_prog_nm_defined_only=yes
26340 else
26341 grub_cv_prog_nm_defined_only=no
26343 rm "$nm_defined_only_tmp_dir/ef"
26344 rmdir "$nm_defined_only_tmp_dir"
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
26349 $as_echo "$grub_cv_prog_nm_defined_only" >&6; }
26351 if test "x$grub_cv_prog_nm_defined_only" = xyes; then
26352 TARGET_NMFLAGS_DEFINED_ONLY=--defined-only
26353 else
26354 TARGET_NMFLAGS_DEFINED_ONLY=
26360 if test "$platform" != emu; then
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
26362 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
26363 if ${grub_cv_cc_isystem+:} false; then :
26364 $as_echo_n "(cached) " >&6
26365 else
26367 SAVED_CPPFLAGS="$CPPFLAGS"
26368 CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26371 #include <stdarg.h>
26372 #include <stddef.h>
26373 int va_arg_func (int fixed, va_list args);
26375 main (void)
26379 return 0;
26381 _ACEOF
26382 if ac_fn_c_try_compile "$LINENO"; then :
26383 grub_cv_cc_isystem=yes
26384 else
26385 grub_cv_cc_isystem=no
26387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26388 CPPFLAGS="$SAVED_CPPFLAGS"
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
26392 $as_echo "$grub_cv_cc_isystem" >&6; }
26394 if test x"$grub_cv_cc_isystem" = xyes ; then
26395 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
26400 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
26401 if ${grub_cv_cc_wtrampolines+:} false; then :
26402 $as_echo_n "(cached) " >&6
26403 else
26405 CFLAGS="$TARGET_CFLAGS -Wtrampolines -Werror"
26406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26407 /* end confdefs.h. */
26408 #include <stdarg.h>
26409 int va_arg_func (int fixed, va_list args);
26411 main (void)
26415 return 0;
26417 _ACEOF
26418 if ac_fn_c_try_compile "$LINENO"; then :
26419 grub_cv_cc_wtrampolines=yes
26420 else
26421 grub_cv_cc_wtrampolines=no
26423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
26427 $as_echo "$grub_cv_cc_wtrampolines" >&6; }
26429 if test x"$grub_cv_cc_wtrampolines" = xyes ; then
26430 TARGET_CFLAGS="$TARGET_CFLAGS -Wtrampolines"
26433 # Restore the flags.
26434 CC="$tmp_CC"
26435 CFLAGS="$tmp_CFLAGS"
26436 CPPFLAGS="$tmp_CPPFLAGS"
26437 LDFLAGS="$tmp_LDFLAGS"
26438 LIBS="$tmp_LIBS"
26441 # Check for options.
26444 # Memory manager debugging.
26445 # Check whether --enable-mm-debug was given.
26446 if test "${enable_mm_debug+set}" = set; then :
26447 enableval=$enable_mm_debug;
26448 $as_echo "#define MM_DEBUG 1" >>confdefs.h
26453 # Check whether --enable-cache-stats was given.
26454 if test "${enable_cache_stats+set}" = set; then :
26455 enableval=$enable_cache_stats;
26459 if test x$enable_cache_stats = xyes; then
26460 DISK_CACHE_STATS=1
26461 else
26462 DISK_CACHE_STATS=0
26466 # Check whether --enable-boot-time was given.
26467 if test "${enable_boot_time+set}" = set; then :
26468 enableval=$enable_boot_time;
26472 if test x$enable_boot_time = xyes; then
26473 BOOT_TIME_STATS=1
26474 else
26475 BOOT_TIME_STATS=0
26479 # Check whether --enable-grub-emu-usb was given.
26480 if test "${enable_grub_emu_usb+set}" = set; then :
26481 enableval=$enable_grub_emu_usb;
26485 # Check whether --enable-grub-emu-sdl was given.
26486 if test "${enable_grub_emu_sdl+set}" = set; then :
26487 enableval=$enable_grub_emu_sdl;
26491 # Check whether --enable-grub-emu-pci was given.
26492 if test "${enable_grub_emu_pci+set}" = set; then :
26493 enableval=$enable_grub_emu_pci;
26497 if test "$platform" = emu; then
26499 if test x"$enable_grub_emu_usb" != xyes ; then
26500 grub_emu_usb_excuse="not enabled"
26503 if test x"$enable_grub_emu_pci" = xyes ; then
26504 grub_emu_usb_excuse="conflicts with PCI support"
26507 if [ x"$grub_emu_usb_excuse" = x ]; then
26508 # Check for libusb libraries.
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
26510 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
26511 if ${ac_cv_lib_usb_usb_claim_interface+:} false; then :
26512 $as_echo_n "(cached) " >&6
26513 else
26514 ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-lusb $LIBS"
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 /* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26522 #ifdef __cplusplus
26523 extern "C"
26524 #endif
26525 char usb_claim_interface ();
26527 main (void)
26529 return usb_claim_interface ();
26531 return 0;
26533 _ACEOF
26534 if ac_fn_c_try_link "$LINENO"; then :
26535 ac_cv_lib_usb_usb_claim_interface=yes
26536 else
26537 ac_cv_lib_usb_usb_claim_interface=no
26539 rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
26541 LIBS=$ac_check_lib_save_LIBS
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
26544 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
26545 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes; then :
26546 LIBUSB="-lusb"
26547 else
26548 grub_emu_usb_excuse="need libusb library"
26553 if [ x"$grub_emu_usb_excuse" = x ]; then
26554 # Check for headers.
26555 for ac_header in usb.h
26556 do :
26557 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
26558 if test "x$ac_cv_header_usb_h" = xyes; then :
26559 cat >>confdefs.h <<_ACEOF
26560 #define HAVE_USB_H 1
26561 _ACEOF
26563 else
26564 grub_emu_usb_excuse="need libusb headers"
26567 done
26570 if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
26571 as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled ($grub_emu_usb_excuse)" "$LINENO" 5
26573 if test x"$grub_emu_usb_excuse" = x ; then
26574 enable_grub_emu_usb=yes
26575 else
26576 enable_grub_emu_usb=no
26579 if test x"$enable_grub_emu_sdl" = xno ; then
26580 grub_emu_sdl_excuse="explicitly disabled"
26582 if [ x"$grub_emu_sdl_excuse" = x ]; then
26583 # Check for libSDL libraries.
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
26585 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
26586 if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
26587 $as_echo_n "(cached) " >&6
26588 else
26589 ac_check_lib_save_LIBS=$LIBS
26590 LIBS="-lSDL $LIBS"
26591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h. */
26594 /* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26597 #ifdef __cplusplus
26598 extern "C"
26599 #endif
26600 char SDL_Init ();
26602 main (void)
26604 return SDL_Init ();
26606 return 0;
26608 _ACEOF
26609 if ac_fn_c_try_link "$LINENO"; then :
26610 ac_cv_lib_SDL_SDL_Init=yes
26611 else
26612 ac_cv_lib_SDL_SDL_Init=no
26614 rm -f core conftest.err conftest.$ac_objext \
26615 conftest$ac_exeext conftest.$ac_ext
26616 LIBS=$ac_check_lib_save_LIBS
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
26619 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
26620 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
26621 LIBSDL="-lSDL"
26622 else
26623 grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
26629 if [ x"$grub_emu_sdl_excuse" = x ]; then
26630 # Check for headers.
26631 for ac_header in SDL/SDL.h
26632 do :
26633 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
26634 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_SDL_SDL_H 1
26637 _ACEOF
26639 else
26640 grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
26643 done
26647 if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
26648 as_fn_error $? "SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
26650 if test x"$grub_emu_sdl_excuse" = x ; then
26651 enable_grub_emu_sdl=yes
26652 else
26653 enable_grub_emu_sdl=no
26656 if test x"$enable_grub_emu_pci" != xyes ; then
26657 grub_emu_pci_excuse="not enabled"
26660 if test x"$enable_grub_emu_usb" = xyes ; then
26661 grub_emu_pci_excuse="conflicts with USB support"
26664 if [ x"$grub_emu_pci_excuse" = x ]; then
26665 # Check for libpci libraries.
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
26667 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
26668 if ${ac_cv_lib_pciaccess_pci_system_init+:} false; then :
26669 $as_echo_n "(cached) " >&6
26670 else
26671 ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-lpciaccess $LIBS"
26673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h. */
26676 /* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26679 #ifdef __cplusplus
26680 extern "C"
26681 #endif
26682 char pci_system_init ();
26684 main (void)
26686 return pci_system_init ();
26688 return 0;
26690 _ACEOF
26691 if ac_fn_c_try_link "$LINENO"; then :
26692 ac_cv_lib_pciaccess_pci_system_init=yes
26693 else
26694 ac_cv_lib_pciaccess_pci_system_init=no
26696 rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26698 LIBS=$ac_check_lib_save_LIBS
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
26701 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
26702 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes; then :
26703 LIBPCIACCESS="-lpciaccess"
26704 else
26705 grub_emu_pci_excuse="need libpciaccess library"
26710 if [ x"$grub_emu_pci_excuse" = x ]; then
26711 # Check for headers.
26712 for ac_header in pci/pci.h
26713 do :
26714 ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
26715 if test "x$ac_cv_header_pci_pci_h" = xyes; then :
26716 cat >>confdefs.h <<_ACEOF
26717 #define HAVE_PCI_PCI_H 1
26718 _ACEOF
26720 else
26721 grub_emu_pci_excuse="need libpciaccess headers"
26724 done
26728 if test x"$grub_emu_pci_excuse" = x ; then
26729 enable_grub_emu_pci=yes
26730 else
26732 enable_grub_emu_pci=no
26739 else
26741 # Ignore --enable-emu-* if platform is not emu
26742 enable_grub_emu_sdl=no
26743 enable_grub_emu_usb=no
26744 enable_grub_emu_pci=no
26747 # Check whether --enable-grub-mkfont was given.
26748 if test "${enable_grub_mkfont+set}" = set; then :
26749 enableval=$enable_grub_mkfont;
26752 if test x"$enable_grub_mkfont" = xno ; then
26753 grub_mkfont_excuse="explicitly disabled"
26756 if test x"$grub_mkfont_excuse" = x ; then
26757 # Check for freetype libraries.
26758 if test -n "$ac_tool_prefix"; then
26759 for ac_prog in freetype-config
26761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26764 $as_echo_n "checking for $ac_word... " >&6; }
26765 if ${ac_cv_prog_FREETYPE+:} false; then :
26766 $as_echo_n "(cached) " >&6
26767 else
26768 if test -n "$FREETYPE"; then
26769 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
26770 else
26771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26772 for as_dir in $PATH
26774 IFS=$as_save_IFS
26775 test -z "$as_dir" && as_dir=.
26776 for ac_exec_ext in '' $ac_executable_extensions; do
26777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26778 ac_cv_prog_FREETYPE="$ac_tool_prefix$ac_prog"
26779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26780 break 2
26782 done
26783 done
26784 IFS=$as_save_IFS
26788 FREETYPE=$ac_cv_prog_FREETYPE
26789 if test -n "$FREETYPE"; then
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
26791 $as_echo "$FREETYPE" >&6; }
26792 else
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26794 $as_echo "no" >&6; }
26798 test -n "$FREETYPE" && break
26799 done
26801 if test -z "$FREETYPE"; then
26802 ac_ct_FREETYPE=$FREETYPE
26803 for ac_prog in freetype-config
26805 # Extract the first word of "$ac_prog", so it can be a program name with args.
26806 set dummy $ac_prog; ac_word=$2
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26808 $as_echo_n "checking for $ac_word... " >&6; }
26809 if ${ac_cv_prog_ac_ct_FREETYPE+:} false; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 if test -n "$ac_ct_FREETYPE"; then
26813 ac_cv_prog_ac_ct_FREETYPE="$ac_ct_FREETYPE" # Let the user override the test.
26814 else
26815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26816 for as_dir in $PATH
26818 IFS=$as_save_IFS
26819 test -z "$as_dir" && as_dir=.
26820 for ac_exec_ext in '' $ac_executable_extensions; do
26821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26822 ac_cv_prog_ac_ct_FREETYPE="$ac_prog"
26823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26824 break 2
26826 done
26827 done
26828 IFS=$as_save_IFS
26832 ac_ct_FREETYPE=$ac_cv_prog_ac_ct_FREETYPE
26833 if test -n "$ac_ct_FREETYPE"; then
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FREETYPE" >&5
26835 $as_echo "$ac_ct_FREETYPE" >&6; }
26836 else
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26838 $as_echo "no" >&6; }
26842 test -n "$ac_ct_FREETYPE" && break
26843 done
26845 if test "x$ac_ct_FREETYPE" = x; then
26846 FREETYPE=""
26847 else
26848 case $cross_compiling:$ac_tool_warned in
26849 yes:)
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26852 ac_tool_warned=yes ;;
26853 esac
26854 FREETYPE=$ac_ct_FREETYPE
26858 if test "x$FREETYPE" = x ; then
26859 grub_mkfont_excuse="need freetype2 library"
26863 unset ac_cv_header_ft2build_h
26865 if test x"$grub_mkfont_excuse" = x ; then
26866 # Check for freetype libraries.
26867 freetype_cflags=`$FREETYPE --cflags`
26868 freetype_libs=`$FREETYPE --libs`
26869 SAVED_CPPFLAGS="$CPPFLAGS"
26870 SAVED_LIBS="$LIBS"
26871 CPPFLAGS="$CPPFLAGS $freetype_cflags"
26872 LIBS="$LIBS $freetype_libs"
26873 for ac_header in ft2build.h
26874 do :
26875 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26876 if test "x$ac_cv_header_ft2build_h" = xyes; then :
26877 cat >>confdefs.h <<_ACEOF
26878 #define HAVE_FT2BUILD_H 1
26879 _ACEOF
26881 else
26882 grub_mkfont_excuse="need freetype2 headers"
26885 done
26887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26888 /* end confdefs.h. */
26890 /* Override any GCC internal prototype to avoid an error.
26891 Use char because int might match the return type of a GCC
26892 builtin and then its argument prototype would still apply. */
26893 #ifdef __cplusplus
26894 extern "C"
26895 #endif
26896 char FT_Load_Glyph ();
26898 main (void)
26900 return FT_Load_Glyph ();
26902 return 0;
26904 _ACEOF
26905 if ac_fn_c_try_link "$LINENO"; then :
26907 else
26908 grub_mkfont_excuse="freetype2 library unusable"
26910 rm -f core conftest.err conftest.$ac_objext \
26911 conftest$ac_exeext conftest.$ac_ext
26912 CPPFLAGS="$SAVED_CPPFLAGS"
26913 LIBS="$SAVED_LIBS"
26916 if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
26917 as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
26919 if test x"$grub_mkfont_excuse" = x ; then
26920 enable_grub_mkfont=yes
26921 else
26922 enable_grub_mkfont=no
26928 SAVED_CC="$CC"
26929 SAVED_CPP="$CPP"
26930 SAVED_CFLAGS="$CFLAGS"
26931 SAVED_CPPFLAGS="$CPPFLAGS"
26932 SAVED_LDFLAGS="$LDFLAGS"
26933 CC="$BUILD_CC"
26934 CPP="$BUILD_CPP"
26935 CFLAGS="$BUILD_CFLAGS"
26936 CPPFLAGS="$BUILD_CPPFLAGS"
26937 LDFLAGS="$BUILD_LDFAGS"
26939 unset ac_cv_c_bigendian
26940 unset ac_cv_header_ft2build_h
26942 if ac_fn_c_compute_int "$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P" ""; then :
26946 if ac_fn_c_compute_int "$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG" ""; then :
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26952 if ${ac_cv_c_bigendian+:} false; then :
26953 $as_echo_n "(cached) " >&6
26954 else
26955 ac_cv_c_bigendian=unknown
26956 # See if we're dealing with a universal compiler.
26957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h. */
26959 #ifndef __APPLE_CC__
26960 not a universal capable compiler
26961 #endif
26962 typedef int dummy;
26964 _ACEOF
26965 if ac_fn_c_try_compile "$LINENO"; then :
26967 # Check for potential -arch flags. It is not universal unless
26968 # there are at least two -arch flags with different values.
26969 ac_arch=
26970 ac_prev=
26971 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26972 if test -n "$ac_prev"; then
26973 case $ac_word in
26974 i?86 | x86_64 | ppc | ppc64)
26975 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26976 ac_arch=$ac_word
26977 else
26978 ac_cv_c_bigendian=universal
26979 break
26982 esac
26983 ac_prev=
26984 elif test "x$ac_word" = "x-arch"; then
26985 ac_prev=arch
26987 done
26989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 if test $ac_cv_c_bigendian = unknown; then
26991 # See if sys/param.h defines the BYTE_ORDER macro.
26992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26994 #include <sys/types.h>
26995 #include <sys/param.h>
26998 main (void)
27000 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27001 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27002 && LITTLE_ENDIAN)
27003 bogus endian macros
27004 #endif
27007 return 0;
27009 _ACEOF
27010 if ac_fn_c_try_compile "$LINENO"; then :
27011 # It does; now see whether it defined to BIG_ENDIAN or not.
27012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27013 /* end confdefs.h. */
27014 #include <sys/types.h>
27015 #include <sys/param.h>
27018 main (void)
27020 #if BYTE_ORDER != BIG_ENDIAN
27021 not big endian
27022 #endif
27025 return 0;
27027 _ACEOF
27028 if ac_fn_c_try_compile "$LINENO"; then :
27029 ac_cv_c_bigendian=yes
27030 else
27031 ac_cv_c_bigendian=no
27033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27037 if test $ac_cv_c_bigendian = unknown; then
27038 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27040 /* end confdefs.h. */
27041 #include <limits.h>
27044 main (void)
27046 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27047 bogus endian macros
27048 #endif
27051 return 0;
27053 _ACEOF
27054 if ac_fn_c_try_compile "$LINENO"; then :
27055 # It does; now see whether it defined to _BIG_ENDIAN or not.
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27058 #include <limits.h>
27061 main (void)
27063 #ifndef _BIG_ENDIAN
27064 not big endian
27065 #endif
27068 return 0;
27070 _ACEOF
27071 if ac_fn_c_try_compile "$LINENO"; then :
27072 ac_cv_c_bigendian=yes
27073 else
27074 ac_cv_c_bigendian=no
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 if test $ac_cv_c_bigendian = unknown; then
27081 # Compile a test program.
27082 if test "$cross_compiling" = yes; then :
27083 # Try to guess by grepping values from an object file.
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27086 short int ascii_mm[] =
27087 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27088 short int ascii_ii[] =
27089 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27090 int use_ascii (int i) {
27091 return ascii_mm[i] + ascii_ii[i];
27093 short int ebcdic_ii[] =
27094 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27095 short int ebcdic_mm[] =
27096 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27097 int use_ebcdic (int i) {
27098 return ebcdic_mm[i] + ebcdic_ii[i];
27100 extern int foo;
27103 main (void)
27105 return use_ascii (foo) == use_ebcdic (foo);
27107 return 0;
27109 _ACEOF
27110 if ac_fn_c_try_compile "$LINENO"; then :
27111 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27112 ac_cv_c_bigendian=yes
27114 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27115 if test "$ac_cv_c_bigendian" = unknown; then
27116 ac_cv_c_bigendian=no
27117 else
27118 # finding both strings is unlikely to happen, but who knows?
27119 ac_cv_c_bigendian=unknown
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27124 else
27125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27126 /* end confdefs.h. */
27127 $ac_includes_default
27129 main (void)
27132 /* Are we little or big endian? From Harbison&Steele. */
27133 union
27135 long int l;
27136 char c[sizeof (long int)];
27137 } u;
27138 u.l = 1;
27139 return u.c[sizeof (long int) - 1] == 1;
27142 return 0;
27144 _ACEOF
27145 if ac_fn_c_try_run "$LINENO"; then :
27146 ac_cv_c_bigendian=no
27147 else
27148 ac_cv_c_bigendian=yes
27150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27151 conftest.$ac_objext conftest.beam conftest.$ac_ext
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27157 $as_echo "$ac_cv_c_bigendian" >&6; }
27158 case $ac_cv_c_bigendian in #(
27159 yes)
27160 BUILD_WORDS_BIGENDIAN=1;; #(
27162 BUILD_WORDS_BIGENDIAN=0 ;; #(
27163 universal)
27164 BUILD_WORDS_BIGENDIAN=err
27165 ;; #(
27167 BUILD_WORDS_BIGENDIAN=err ;;
27168 esac
27171 if test x$BUILD_WORDS_BIGENDIAN = xerr ; then
27172 as_fn_error $? "couldnt determine build endianness" "$LINENO" 5
27179 if test x"$grub_build_mkfont_excuse" = x ; then
27180 # Check for freetype libraries.
27181 for ac_prog in freetype-config
27183 # Extract the first word of "$ac_prog", so it can be a program name with args.
27184 set dummy $ac_prog; ac_word=$2
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27186 $as_echo_n "checking for $ac_word... " >&6; }
27187 if ${ac_cv_prog_BUILD_FREETYPE+:} false; then :
27188 $as_echo_n "(cached) " >&6
27189 else
27190 if test -n "$BUILD_FREETYPE"; then
27191 ac_cv_prog_BUILD_FREETYPE="$BUILD_FREETYPE" # Let the user override the test.
27192 else
27193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27194 for as_dir in $PATH
27196 IFS=$as_save_IFS
27197 test -z "$as_dir" && as_dir=.
27198 for ac_exec_ext in '' $ac_executable_extensions; do
27199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27200 ac_cv_prog_BUILD_FREETYPE="$ac_prog"
27201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27202 break 2
27204 done
27205 done
27206 IFS=$as_save_IFS
27210 BUILD_FREETYPE=$ac_cv_prog_BUILD_FREETYPE
27211 if test -n "$BUILD_FREETYPE"; then
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_FREETYPE" >&5
27213 $as_echo "$BUILD_FREETYPE" >&6; }
27214 else
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27216 $as_echo "no" >&6; }
27220 test -n "$BUILD_FREETYPE" && break
27221 done
27223 if test "x$BUILD_FREETYPE" = x ; then
27224 grub_build_mkfont_excuse="need freetype2 library"
27228 if test x"$grub_build_mkfont_excuse" = x ; then
27229 # Check for freetype libraries.
27230 build_freetype_cflags=`$BUILD_FREETYPE --cflags`
27231 build_freetype_libs=`$BUILD_FREETYPE --libs`
27232 SAVED_CPPFLAGS_2="$CPPFLAGS"
27233 SAVED_LIBS="$LIBS"
27234 CPPFLAGS="$CPPFLAGS $build_freetype_cflags"
27235 LIBS="$LIBS $build_freetype_libs"
27236 for ac_header in ft2build.h
27237 do :
27238 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27239 if test "x$ac_cv_header_ft2build_h" = xyes; then :
27240 cat >>confdefs.h <<_ACEOF
27241 #define HAVE_FT2BUILD_H 1
27242 _ACEOF
27244 else
27245 grub_build_mkfont_excuse="need freetype2 headers"
27248 done
27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27253 /* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27256 #ifdef __cplusplus
27257 extern "C"
27258 #endif
27259 char FT_Load_Glyph ();
27261 main (void)
27263 return FT_Load_Glyph ();
27265 return 0;
27267 _ACEOF
27268 if ac_fn_c_try_link "$LINENO"; then :
27270 else
27271 grub_build_mkfont_excuse="freetype2 library unusable"
27273 rm -f core conftest.err conftest.$ac_objext \
27274 conftest$ac_exeext conftest.$ac_ext
27275 LIBS="$SAVED_LIBS"
27276 CPPFLAGS="$SAVED_CPPFLAGS_2"
27279 if test x"$enable_build_grub_mkfont" = xyes && test x"$grub_build_mkfont_excuse" != x ; then
27280 as_fn_error $? "build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
27282 if test x"$grub_build_mkfont_excuse" = x ; then
27283 enable_build_grub_mkfont=yes
27284 else
27285 enable_build_grub_mkfont=no
27287 if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 || test "x$platform" = xcoreboot ); then
27288 if test x"$grub_build_mkfont_excuse" = x ; then
27289 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont" "$LINENO" 5
27290 else
27291 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
27298 CC="$SAVED_CC"
27299 CPP="$SAVED_CPP"
27300 CFLAGS="$SAVED_CFLAGS"
27301 CPPFLAGS="$SAVED_CPPFLAGS"
27302 LDFLAGS="$SAVED_LDFLAGS"
27305 DJVU_FONT_SOURCE=
27307 starfield_excuse=
27309 # Check whether --enable-grub-themes was given.
27310 if test "${enable_grub_themes+set}" = set; then :
27311 enableval=$enable_grub_themes;
27314 if test x"$enable_grub_themes" = xno ; then
27315 starfield_excuse="explicitly disabled"
27318 if test x"$starfield_excuse" = x && test x"$enable_build_grub_mkfont" = xno ; then
27319 starfield_excuse="No build-time grub-mkfont"
27322 if test x"$starfield_excuse" = x; then
27323 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27324 for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu /usr/share/fonts/truetype; do
27325 if test -f "$dir/DejaVuSans.$ext"; then
27326 DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
27327 break 2
27329 done
27330 done
27332 if test "x$DJVU_FONT_SOURCE" = x; then
27333 starfield_excuse="No DejaVu found"
27337 if test x"$enable_grub_themes" = xyes && test x"$starfield_excuse" != x; then
27338 as_fn_error $? "themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
27343 FONT_SOURCE=
27345 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27346 for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont /usr/share/fonts/uni /usr/share/fonts/truetype/unifont /usr/share/fonts/misc; do
27347 if test -f "$dir/unifont.$ext"; then
27348 md5="$(md5sum "$dir/unifont.$ext"|awk '{ print $1; }')"
27349 # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
27350 if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 || test "$md5" = 28f2565c7a41d8d407e2551159385edb || test "$md5" = dae5e588461b3b92b87b6ffee734f936 || test "$md5" = 4a3d687aa5bb329ed05f4263a1016791 ; then
27351 continue
27353 FONT_SOURCE="$dir/unifont.$ext"
27354 break 2
27356 done
27357 done
27359 if test x"$enable_build_grub_mkfont" = xno ; then
27360 FONT_SOURCE=
27363 if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 || test "x$platform" = xcoreboot ); then
27364 if test x"$grub_build_mkfont_excuse" = x ; then
27365 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont" "$LINENO" 5
27366 else
27367 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
27373 if test x"$FONT_SOURCE" = x && test x"$DJVU_FONT_SOURCE" = x && test x"$grub_build_mkfont_excuse" = x; then
27374 grub_build_mkfont_excuse="no fonts"
27378 # Check whether --enable-grub-mount was given.
27379 if test "${enable_grub_mount+set}" = set; then :
27380 enableval=$enable_grub_mount;
27383 if test x"$enable_grub_mount" = xno ; then
27384 grub_mount_excuse="explicitly disabled"
27387 if test x"$grub_mount_excuse" = x ; then
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
27389 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
27390 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
27391 $as_echo_n "(cached) " >&6
27392 else
27393 ac_check_lib_save_LIBS=$LIBS
27394 LIBS="-lfuse $LIBS"
27395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27396 /* end confdefs.h. */
27398 /* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
27401 #ifdef __cplusplus
27402 extern "C"
27403 #endif
27404 char fuse_main_real ();
27406 main (void)
27408 return fuse_main_real ();
27410 return 0;
27412 _ACEOF
27413 if ac_fn_c_try_link "$LINENO"; then :
27414 ac_cv_lib_fuse_fuse_main_real=yes
27415 else
27416 ac_cv_lib_fuse_fuse_main_real=no
27418 rm -f core conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
27420 LIBS=$ac_check_lib_save_LIBS
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
27423 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
27424 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
27425 cat >>confdefs.h <<_ACEOF
27426 #define HAVE_LIBFUSE 1
27427 _ACEOF
27429 LIBS="-lfuse $LIBS"
27431 else
27432 grub_mount_excuse="need FUSE library"
27437 if test x"$grub_mount_excuse" = x ; then
27438 # Check for fuse headers.
27439 SAVED_CPPFLAGS="$CPPFLAGS"
27440 CPPFLAGS="$CPPFLAGS -DFUSE_USE_VERSION=26"
27441 for ac_header in fuse/fuse.h
27442 do :
27443 ac_fn_c_check_header_mongrel "$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
27444 if test "x$ac_cv_header_fuse_fuse_h" = xyes; then :
27445 cat >>confdefs.h <<_ACEOF
27446 #define HAVE_FUSE_FUSE_H 1
27447 _ACEOF
27449 else
27450 grub_mount_excuse="need FUSE headers"
27453 done
27455 CPPFLAGS="$SAVED_CPPFLAGS"
27458 if test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
27459 as_fn_error $? "grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
27461 if test x"$grub_mount_excuse" = x ; then
27462 enable_grub_mount=yes
27463 else
27464 enable_grub_mount=no
27468 # Check whether --enable-device-mapper was given.
27469 if test "${enable_device_mapper+set}" = set; then :
27470 enableval=$enable_device_mapper;
27473 if test x"$enable_device_mapper" = xno ; then
27474 device_mapper_excuse="explicitly disabled"
27477 if test x"$device_mapper_excuse" = x ; then
27478 # Check for device-mapper header.
27479 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
27480 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
27482 else
27483 device_mapper_excuse="need libdevmapper header"
27489 if test x"$device_mapper_excuse" = x ; then
27490 # Check for device-mapper library.
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
27492 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
27493 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
27494 $as_echo_n "(cached) " >&6
27495 else
27496 ac_check_lib_save_LIBS=$LIBS
27497 LIBS="-ldevmapper $LIBS"
27498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27499 /* end confdefs.h. */
27501 /* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27504 #ifdef __cplusplus
27505 extern "C"
27506 #endif
27507 char dm_task_create ();
27509 main (void)
27511 return dm_task_create ();
27513 return 0;
27515 _ACEOF
27516 if ac_fn_c_try_link "$LINENO"; then :
27517 ac_cv_lib_devmapper_dm_task_create=yes
27518 else
27519 ac_cv_lib_devmapper_dm_task_create=no
27521 rm -f core conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
27523 LIBS=$ac_check_lib_save_LIBS
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
27526 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
27527 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
27528 cat >>confdefs.h <<_ACEOF
27529 #define HAVE_LIBDEVMAPPER 1
27530 _ACEOF
27532 LIBS="-ldevmapper $LIBS"
27534 else
27535 device_mapper_excuse="need devmapper library"
27540 if test x"$device_mapper_excuse" = x ; then
27541 # Check for device-mapper library.
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
27543 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
27544 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false; then :
27545 $as_echo_n "(cached) " >&6
27546 else
27547 ac_check_lib_save_LIBS=$LIBS
27548 LIBS="-ldevmapper $LIBS"
27549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27550 /* end confdefs.h. */
27552 /* Override any GCC internal prototype to avoid an error.
27553 Use char because int might match the return type of a GCC
27554 builtin and then its argument prototype would still apply. */
27555 #ifdef __cplusplus
27556 extern "C"
27557 #endif
27558 char dm_log_with_errno_init ();
27560 main (void)
27562 return dm_log_with_errno_init ();
27564 return 0;
27566 _ACEOF
27567 if ac_fn_c_try_link "$LINENO"; then :
27568 ac_cv_lib_devmapper_dm_log_with_errno_init=yes
27569 else
27570 ac_cv_lib_devmapper_dm_log_with_errno_init=no
27572 rm -f core conftest.err conftest.$ac_objext \
27573 conftest$ac_exeext conftest.$ac_ext
27574 LIBS=$ac_check_lib_save_LIBS
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
27577 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
27578 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes; then :
27579 cat >>confdefs.h <<_ACEOF
27580 #define HAVE_LIBDEVMAPPER 1
27581 _ACEOF
27583 LIBS="-ldevmapper $LIBS"
27585 else
27586 device_mapper_excuse="need devmapper library"
27591 if test x"$device_mapper_excuse" = x ; then
27592 LIBDEVMAPPER="-ldevmapper"
27594 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
27600 LIBGEOM=
27601 if test x$host_kernel = xkfreebsd; then
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
27603 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
27604 if ${ac_cv_lib_geom_geom_gettree+:} false; then :
27605 $as_echo_n "(cached) " >&6
27606 else
27607 ac_check_lib_save_LIBS=$LIBS
27608 LIBS="-lgeom $LIBS"
27609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27610 /* end confdefs.h. */
27612 /* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615 #ifdef __cplusplus
27616 extern "C"
27617 #endif
27618 char geom_gettree ();
27620 main (void)
27622 return geom_gettree ();
27624 return 0;
27626 _ACEOF
27627 if ac_fn_c_try_link "$LINENO"; then :
27628 ac_cv_lib_geom_geom_gettree=yes
27629 else
27630 ac_cv_lib_geom_geom_gettree=no
27632 rm -f core conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
27634 LIBS=$ac_check_lib_save_LIBS
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
27637 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
27638 if test "x$ac_cv_lib_geom_geom_gettree" = xyes; then :
27639 cat >>confdefs.h <<_ACEOF
27640 #define HAVE_LIBGEOM 1
27641 _ACEOF
27643 LIBS="-lgeom $LIBS"
27645 else
27646 as_fn_error $? "Your platform requires libgeom" "$LINENO" 5
27649 LIBGEOM="-lgeom"
27654 # Check whether --enable-liblzma was given.
27655 if test "${enable_liblzma+set}" = set; then :
27656 enableval=$enable_liblzma;
27659 if test x"$enable_liblzma" = xno ; then
27660 liblzma_excuse="explicitly disabled"
27663 if test x"$liblzma_excuse" = x ; then
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
27665 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
27666 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
27667 $as_echo_n "(cached) " >&6
27668 else
27669 ac_check_lib_save_LIBS=$LIBS
27670 LIBS="-llzma $LIBS"
27671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27674 /* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27677 #ifdef __cplusplus
27678 extern "C"
27679 #endif
27680 char lzma_code ();
27682 main (void)
27684 return lzma_code ();
27686 return 0;
27688 _ACEOF
27689 if ac_fn_c_try_link "$LINENO"; then :
27690 ac_cv_lib_lzma_lzma_code=yes
27691 else
27692 ac_cv_lib_lzma_lzma_code=no
27694 rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
27699 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
27700 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
27701 cat >>confdefs.h <<_ACEOF
27702 #define HAVE_LIBLZMA 1
27703 _ACEOF
27705 LIBS="-llzma $LIBS"
27707 else
27708 liblzma_excuse="need lzma library"
27712 if test x"$liblzma_excuse" = x ; then
27713 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
27714 if test "x$ac_cv_header_lzma_h" = xyes; then :
27716 else
27717 liblzma_excuse="need lzma header"
27723 if test x"$enable_liblzma" = xyes && test x"$liblzma_excuse" != x ; then
27724 as_fn_error $? "liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
27728 if test x"$liblzma_excuse" = x ; then
27729 LIBLZMA="-llzma"
27731 $as_echo "#define USE_LIBLZMA 1" >>confdefs.h
27737 # Check whether --enable-libzfs was given.
27738 if test "${enable_libzfs+set}" = set; then :
27739 enableval=$enable_libzfs;
27742 if test x"$enable_libzfs" = xno ; then
27743 libzfs_excuse="explicitly disabled"
27746 if test x"$libzfs_excuse" = x ; then
27747 # Only check for system headers if libzfs support has not been disabled.
27748 for ac_header in libzfs.h libnvpair.h
27749 do :
27750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27751 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27753 cat >>confdefs.h <<_ACEOF
27754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27755 _ACEOF
27759 done
27763 if test x"$libzfs_excuse" = x ; then
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
27765 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
27766 if ${ac_cv_lib_zfs_libzfs_init+:} false; then :
27767 $as_echo_n "(cached) " >&6
27768 else
27769 ac_check_lib_save_LIBS=$LIBS
27770 LIBS="-lzfs $LIBS"
27771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27772 /* end confdefs.h. */
27774 /* Override any GCC internal prototype to avoid an error.
27775 Use char because int might match the return type of a GCC
27776 builtin and then its argument prototype would still apply. */
27777 #ifdef __cplusplus
27778 extern "C"
27779 #endif
27780 char libzfs_init ();
27782 main (void)
27784 return libzfs_init ();
27786 return 0;
27788 _ACEOF
27789 if ac_fn_c_try_link "$LINENO"; then :
27790 ac_cv_lib_zfs_libzfs_init=yes
27791 else
27792 ac_cv_lib_zfs_libzfs_init=no
27794 rm -f core conftest.err conftest.$ac_objext \
27795 conftest$ac_exeext conftest.$ac_ext
27796 LIBS=$ac_check_lib_save_LIBS
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
27799 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
27800 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes; then :
27801 cat >>confdefs.h <<_ACEOF
27802 #define HAVE_LIBZFS 1
27803 _ACEOF
27805 LIBS="-lzfs $LIBS"
27807 else
27808 libzfs_excuse="need zfs library"
27813 if test x"$libzfs_excuse" = x ; then
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
27815 $as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
27816 if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false; then :
27817 $as_echo_n "(cached) " >&6
27818 else
27819 ac_check_lib_save_LIBS=$LIBS
27820 LIBS="-lnvpair $LIBS"
27821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27822 /* end confdefs.h. */
27824 /* Override any GCC internal prototype to avoid an error.
27825 Use char because int might match the return type of a GCC
27826 builtin and then its argument prototype would still apply. */
27827 #ifdef __cplusplus
27828 extern "C"
27829 #endif
27830 char nvlist_lookup_string ();
27832 main (void)
27834 return nvlist_lookup_string ();
27836 return 0;
27838 _ACEOF
27839 if ac_fn_c_try_link "$LINENO"; then :
27840 ac_cv_lib_nvpair_nvlist_lookup_string=yes
27841 else
27842 ac_cv_lib_nvpair_nvlist_lookup_string=no
27844 rm -f core conftest.err conftest.$ac_objext \
27845 conftest$ac_exeext conftest.$ac_ext
27846 LIBS=$ac_check_lib_save_LIBS
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
27849 $as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
27850 if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes; then :
27851 cat >>confdefs.h <<_ACEOF
27852 #define HAVE_LIBNVPAIR 1
27853 _ACEOF
27855 LIBS="-lnvpair $LIBS"
27857 else
27858 libzfs_excuse="need nvpair library"
27863 if test x"$enable_libzfs" = xyes && test x"$libzfs_excuse" != x ; then
27864 as_fn_error $? "libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
27867 if test x"$libzfs_excuse" = x ; then
27868 # We need both libzfs and libnvpair for a successful build.
27869 LIBZFS="-lzfs"
27871 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
27873 LIBNVPAIR="-lnvpair"
27875 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
27882 LIBS=""
27885 if test x$target_cpu = xi386 -a x$platform = xqemu; then :
27886 GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
27898 # Check whether --enable-werror was given.
27899 if test "${enable_werror+set}" = set; then :
27900 enableval=$enable_werror;
27903 if test x"$enable_werror" != xno ; then
27904 TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
27905 HOST_CFLAGS="$HOST_CFLAGS -Werror"
27908 if test "x$grub_cv_cc_target_clang" = xno; then
27909 TARGET_LDFLAGS_STATIC_LIBGCC="-static-libgcc"
27910 else
27911 TARGET_LDFLAGS_STATIC_LIBGCC=
27914 TARGET_CPP="$TARGET_CC -E"
27915 TARGET_CCAS=$TARGET_CC
27917 GRUB_TARGET_CPU="${target_cpu}"
27918 GRUB_PLATFORM="${platform}"
27950 # Automake conditionals
27953 if test x$platform != xnone; then
27954 COND_real_platform_TRUE=
27955 COND_real_platform_FALSE='#'
27956 else
27957 COND_real_platform_TRUE='#'
27958 COND_real_platform_FALSE=
27961 if test x$platform = xemu; then
27962 COND_emu_TRUE=
27963 COND_emu_FALSE='#'
27964 else
27965 COND_emu_TRUE='#'
27966 COND_emu_FALSE=
27969 if test x$grub_cv_cc_target_clang = xyes; then
27970 COND_clang_TRUE=
27971 COND_clang_FALSE='#'
27972 else
27973 COND_clang_TRUE='#'
27974 COND_clang_FALSE=
27977 if test x$target_cpu = xi386 -a x$platform = xpc; then
27978 COND_i386_pc_TRUE=
27979 COND_i386_pc_FALSE='#'
27980 else
27981 COND_i386_pc_TRUE='#'
27982 COND_i386_pc_FALSE=
27985 if test x$target_cpu = xi386 -a x$platform = xefi; then
27986 COND_i386_efi_TRUE=
27987 COND_i386_efi_FALSE='#'
27988 else
27989 COND_i386_efi_TRUE='#'
27990 COND_i386_efi_FALSE=
27993 if test x$target_cpu = xia64 -a x$platform = xefi; then
27994 COND_ia64_efi_TRUE=
27995 COND_ia64_efi_FALSE='#'
27996 else
27997 COND_ia64_efi_TRUE='#'
27998 COND_ia64_efi_FALSE=
28001 if test x$target_cpu = xi386 -a x$platform = xqemu; then
28002 COND_i386_qemu_TRUE=
28003 COND_i386_qemu_FALSE='#'
28004 else
28005 COND_i386_qemu_TRUE='#'
28006 COND_i386_qemu_FALSE=
28009 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
28010 COND_i386_ieee1275_TRUE=
28011 COND_i386_ieee1275_FALSE='#'
28012 else
28013 COND_i386_ieee1275_TRUE='#'
28014 COND_i386_ieee1275_FALSE=
28017 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
28018 COND_i386_coreboot_TRUE=
28019 COND_i386_coreboot_FALSE='#'
28020 else
28021 COND_i386_coreboot_TRUE='#'
28022 COND_i386_coreboot_FALSE=
28025 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
28026 COND_i386_multiboot_TRUE=
28027 COND_i386_multiboot_FALSE='#'
28028 else
28029 COND_i386_multiboot_TRUE='#'
28030 COND_i386_multiboot_FALSE=
28033 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
28034 COND_x86_64_efi_TRUE=
28035 COND_x86_64_efi_FALSE='#'
28036 else
28037 COND_x86_64_efi_TRUE='#'
28038 COND_x86_64_efi_FALSE=
28041 if test x$target_cpu = xi386 -a x$platform = xxen; then
28042 COND_i386_xen_TRUE=
28043 COND_i386_xen_FALSE='#'
28044 else
28045 COND_i386_xen_TRUE='#'
28046 COND_i386_xen_FALSE=
28049 if test x$target_cpu = xx86_64 -a x$platform = xxen; then
28050 COND_x86_64_xen_TRUE=
28051 COND_x86_64_xen_FALSE='#'
28052 else
28053 COND_x86_64_xen_TRUE='#'
28054 COND_x86_64_xen_FALSE=
28057 if test x$target_cpu = xmipsel -a x$platform = xloongson; then
28058 COND_mips_loongson_TRUE=
28059 COND_mips_loongson_FALSE='#'
28060 else
28061 COND_mips_loongson_TRUE='#'
28062 COND_mips_loongson_FALSE=
28065 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips; then
28066 COND_mips_qemu_mips_TRUE=
28067 COND_mips_qemu_mips_FALSE='#'
28068 else
28069 COND_mips_qemu_mips_TRUE='#'
28070 COND_mips_qemu_mips_FALSE=
28073 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xarc; then
28074 COND_mips_arc_TRUE=
28075 COND_mips_arc_FALSE='#'
28076 else
28077 COND_mips_arc_TRUE='#'
28078 COND_mips_arc_FALSE=
28081 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
28082 COND_sparc64_ieee1275_TRUE=
28083 COND_sparc64_ieee1275_FALSE='#'
28084 else
28085 COND_sparc64_ieee1275_TRUE='#'
28086 COND_sparc64_ieee1275_FALSE=
28089 if test x$target_cpu = xsparc64 -a x$platform = xemu; then
28090 COND_sparc64_emu_TRUE=
28091 COND_sparc64_emu_FALSE='#'
28092 else
28093 COND_sparc64_emu_TRUE='#'
28094 COND_sparc64_emu_FALSE=
28097 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
28098 COND_powerpc_ieee1275_TRUE=
28099 COND_powerpc_ieee1275_FALSE='#'
28100 else
28101 COND_powerpc_ieee1275_TRUE='#'
28102 COND_powerpc_ieee1275_FALSE=
28105 if test x$target_cpu = xmips -o x$target_cpu = xmipsel; then
28106 COND_mips_TRUE=
28107 COND_mips_FALSE='#'
28108 else
28109 COND_mips_TRUE='#'
28110 COND_mips_FALSE=
28113 if test x$target_cpu = xmipsel; then
28114 COND_mipsel_TRUE=
28115 COND_mipsel_FALSE='#'
28116 else
28117 COND_mipsel_TRUE='#'
28118 COND_mipsel_FALSE=
28121 if test x$target_cpu = xmips; then
28122 COND_mipseb_TRUE=
28123 COND_mipseb_FALSE='#'
28124 else
28125 COND_mipseb_TRUE='#'
28126 COND_mipseb_FALSE=
28129 if test x$target_cpu = xarm ; then
28130 COND_arm_TRUE=
28131 COND_arm_FALSE='#'
28132 else
28133 COND_arm_TRUE='#'
28134 COND_arm_FALSE=
28137 if test x$target_cpu = xarm -a x$platform = xuboot; then
28138 COND_arm_uboot_TRUE=
28139 COND_arm_uboot_FALSE='#'
28140 else
28141 COND_arm_uboot_TRUE='#'
28142 COND_arm_uboot_FALSE=
28145 if test x$target_cpu = xarm -a x$platform = xefi; then
28146 COND_arm_efi_TRUE=
28147 COND_arm_efi_FALSE='#'
28148 else
28149 COND_arm_efi_TRUE='#'
28150 COND_arm_efi_FALSE=
28153 if test x$target_cpu = xarm64 ; then
28154 COND_arm64_TRUE=
28155 COND_arm64_FALSE='#'
28156 else
28157 COND_arm64_TRUE='#'
28158 COND_arm64_FALSE=
28161 if test x$target_cpu = xarm64 -a x$platform = xefi; then
28162 COND_arm64_efi_TRUE=
28163 COND_arm64_efi_FALSE='#'
28164 else
28165 COND_arm64_efi_TRUE='#'
28166 COND_arm64_efi_FALSE=
28170 if test x$host_kernel = xhurd; then
28171 COND_HOST_HURD_TRUE=
28172 COND_HOST_HURD_FALSE='#'
28173 else
28174 COND_HOST_HURD_TRUE='#'
28175 COND_HOST_HURD_FALSE=
28178 if test x$host_kernel = xlinux; then
28179 COND_HOST_LINUX_TRUE=
28180 COND_HOST_LINUX_FALSE='#'
28181 else
28182 COND_HOST_LINUX_TRUE='#'
28183 COND_HOST_LINUX_FALSE=
28186 if test x$host_kernel = xnetbsd; then
28187 COND_HOST_NETBSD_TRUE=
28188 COND_HOST_NETBSD_FALSE='#'
28189 else
28190 COND_HOST_NETBSD_TRUE='#'
28191 COND_HOST_NETBSD_FALSE=
28194 if test x$host_kernel = xwindows; then
28195 COND_HOST_WINDOWS_TRUE=
28196 COND_HOST_WINDOWS_FALSE='#'
28197 else
28198 COND_HOST_WINDOWS_TRUE='#'
28199 COND_HOST_WINDOWS_FALSE=
28202 if test x$host_kernel = xkfreebsd; then
28203 COND_HOST_KFREEBSD_TRUE=
28204 COND_HOST_KFREEBSD_FALSE='#'
28205 else
28206 COND_HOST_KFREEBSD_TRUE='#'
28207 COND_HOST_KFREEBSD_FALSE=
28210 if test x$host_kernel = xxnu; then
28211 COND_HOST_XNU_TRUE=
28212 COND_HOST_XNU_FALSE='#'
28213 else
28214 COND_HOST_XNU_TRUE='#'
28215 COND_HOST_XNU_FALSE=
28218 if test x$host_kernel = xillumos; then
28219 COND_HOST_ILLUMOS_TRUE=
28220 COND_HOST_ILLUMOS_FALSE='#'
28221 else
28222 COND_HOST_ILLUMOS_TRUE='#'
28223 COND_HOST_ILLUMOS_FALSE=
28227 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
28228 COND_MAN_PAGES_TRUE=
28229 COND_MAN_PAGES_FALSE='#'
28230 else
28231 COND_MAN_PAGES_TRUE='#'
28232 COND_MAN_PAGES_FALSE=
28235 if test x$enable_grub_emu_usb = xyes; then
28236 COND_GRUB_EMU_USB_TRUE=
28237 COND_GRUB_EMU_USB_FALSE='#'
28238 else
28239 COND_GRUB_EMU_USB_TRUE='#'
28240 COND_GRUB_EMU_USB_FALSE=
28243 if test x$enable_grub_emu_sdl = xyes; then
28244 COND_GRUB_EMU_SDL_TRUE=
28245 COND_GRUB_EMU_SDL_FALSE='#'
28246 else
28247 COND_GRUB_EMU_SDL_TRUE='#'
28248 COND_GRUB_EMU_SDL_FALSE=
28251 if test x$enable_grub_emu_pci = xyes; then
28252 COND_GRUB_EMU_PCI_TRUE=
28253 COND_GRUB_EMU_PCI_FALSE='#'
28254 else
28255 COND_GRUB_EMU_PCI_TRUE='#'
28256 COND_GRUB_EMU_PCI_FALSE=
28259 if test x$enable_grub_mkfont = xyes; then
28260 COND_GRUB_MKFONT_TRUE=
28261 COND_GRUB_MKFONT_FALSE='#'
28262 else
28263 COND_GRUB_MKFONT_TRUE='#'
28264 COND_GRUB_MKFONT_FALSE=
28267 if test x$enable_grub_mount = xyes; then
28268 COND_GRUB_MOUNT_TRUE=
28269 COND_GRUB_MOUNT_FALSE='#'
28270 else
28271 COND_GRUB_MOUNT_TRUE='#'
28272 COND_GRUB_MOUNT_FALSE=
28275 if test x$FONT_SOURCE != x; then
28276 COND_HAVE_FONT_SOURCE_TRUE=
28277 COND_HAVE_FONT_SOURCE_FALSE='#'
28278 else
28279 COND_HAVE_FONT_SOURCE_TRUE='#'
28280 COND_HAVE_FONT_SOURCE_FALSE=
28283 if test x$FONT_SOURCE != x ; then
28284 HAVE_FONT_SOURCE=1
28285 else
28286 HAVE_FONT_SOURCE=0
28289 if test x$TARGET_APPLE_LINKER = x1; then
28290 COND_APPLE_LINKER_TRUE=
28291 COND_APPLE_LINKER_FALSE='#'
28292 else
28293 COND_APPLE_LINKER_TRUE='#'
28294 COND_APPLE_LINKER_FALSE=
28297 if test x$enable_efiemu = xyes; then
28298 COND_ENABLE_EFIEMU_TRUE=
28299 COND_ENABLE_EFIEMU_FALSE='#'
28300 else
28301 COND_ENABLE_EFIEMU_TRUE='#'
28302 COND_ENABLE_EFIEMU_FALSE=
28305 if test x$DISK_CACHE_STATS = x1; then
28306 COND_ENABLE_CACHE_STATS_TRUE=
28307 COND_ENABLE_CACHE_STATS_FALSE='#'
28308 else
28309 COND_ENABLE_CACHE_STATS_TRUE='#'
28310 COND_ENABLE_CACHE_STATS_FALSE=
28313 if test x$BOOT_TIME_STATS = x1; then
28314 COND_ENABLE_BOOT_TIME_STATS_TRUE=
28315 COND_ENABLE_BOOT_TIME_STATS_FALSE='#'
28316 else
28317 COND_ENABLE_BOOT_TIME_STATS_TRUE='#'
28318 COND_ENABLE_BOOT_TIME_STATS_FALSE=
28322 if test x$HAVE_CXX = xyes; then
28323 COND_HAVE_CXX_TRUE=
28324 COND_HAVE_CXX_FALSE='#'
28325 else
28326 COND_HAVE_CXX_TRUE='#'
28327 COND_HAVE_CXX_FALSE=
28331 if test x$HAVE_ASM_USCORE = x1; then
28332 COND_HAVE_ASM_USCORE_TRUE=
28333 COND_HAVE_ASM_USCORE_FALSE='#'
28334 else
28335 COND_HAVE_ASM_USCORE_TRUE='#'
28336 COND_HAVE_ASM_USCORE_FALSE=
28339 if test "x$starfield_excuse" = x; then
28340 COND_STARFIELD_TRUE=
28341 COND_STARFIELD_FALSE='#'
28342 else
28343 COND_STARFIELD_TRUE='#'
28344 COND_STARFIELD_FALSE=
28347 if test "x$have_exec" = xy; then
28348 COND_HAVE_EXEC_TRUE=
28349 COND_HAVE_EXEC_FALSE='#'
28350 else
28351 COND_HAVE_EXEC_TRUE='#'
28352 COND_HAVE_EXEC_FALSE=
28356 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28357 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28358 datarootdir="$(eval echo "$datarootdir")"
28359 grub_libdir="$(eval echo "$libdir")"
28360 grub_localedir="$(eval echo "$localedir")"
28361 grub_datadir="$(eval echo "$datadir")"
28362 grub_sysconfdir="$(eval echo "$sysconfdir")"
28364 cat >>confdefs.h <<_ACEOF
28365 #define LOCALEDIR "$grub_localedir"
28366 _ACEOF
28369 cat >>confdefs.h <<_ACEOF
28370 #define GRUB_LIBDIR "$grub_libdir"
28371 _ACEOF
28374 cat >>confdefs.h <<_ACEOF
28375 #define GRUB_DATADIR "$grub_datadir"
28376 _ACEOF
28379 cat >>confdefs.h <<_ACEOF
28380 #define GRUB_SYSCONFDIR "$grub_sysconfdir"
28381 _ACEOF
28385 # Output files.
28386 if test "$platform" != none; then
28387 cpudir="${target_cpu}"
28388 if test x${cpudir} = xmipsel; then
28389 cpudir=mips;
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s can handle directories properly" >&5
28393 $as_echo_n "checking whether ln -s can handle directories properly... " >&6; }
28394 mkdir testdir 2>/dev/null
28395 case $srcdir in
28396 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
28397 *) reldir=../$srcdir/include/grub/util ;;
28398 esac
28399 if ln -s $reldir testdir/util 2>/dev/null && rm -f testdir/util 2>/dev/null ; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28401 $as_echo "yes" >&6; }
28402 link_dir=yes
28403 else
28404 link_dir=no
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28406 $as_echo "no" >&6; }
28408 rm -rf testdir
28410 if test x"$link_dir" = xyes ; then
28411 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$cpudir"
28413 if test "$platform" != emu ; then
28414 ac_config_links="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
28417 else
28418 mkdir -p include/grub 2>/dev/null
28419 rm -rf include/grub/cpu
28420 cp -rp $srcdir/include/grub/$cpudir include/grub/cpu 2>/dev/null
28421 if test "$platform" != emu ; then
28422 rm -rf include/grub/machine
28423 cp -rp $srcdir/include/grub/$cpudir/$platform include/grub/machine 2>/dev/null
28426 else
28427 # Just enough to stop the compiler failing with -I$(srcdir)/include.
28428 mkdir -p include 2>/dev/null
28429 rm -rf include/grub/cpu include/grub/machine
28432 ac_config_files="$ac_config_files Makefile"
28434 ac_config_files="$ac_config_files grub-core/Makefile"
28436 ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
28438 ac_config_files="$ac_config_files po/Makefile.in"
28440 ac_config_files="$ac_config_files docs/Makefile"
28442 ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
28444 ac_config_files="$ac_config_files stamp-h"
28446 ac_config_files="$ac_config_files config.h"
28449 cat >confcache <<\_ACEOF
28450 # This file is a shell script that caches the results of configure
28451 # tests run on this system so they can be shared between configure
28452 # scripts and configure runs, see configure's option --config-cache.
28453 # It is not useful on other systems. If it contains results you don't
28454 # want to keep, you may remove or edit it.
28456 # config.status only pays attention to the cache file if you give it
28457 # the --recheck option to rerun configure.
28459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28461 # following values.
28463 _ACEOF
28465 # The following way of writing the cache mishandles newlines in values,
28466 # but we know of no workaround that is simple, portable, and efficient.
28467 # So, we kill variables containing newlines.
28468 # Ultrix sh set writes to stderr and can't be redirected directly,
28469 # and sets the high bit in the cache file unless we assign to the vars.
28471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28472 eval ac_val=\$$ac_var
28473 case $ac_val in #(
28474 *${as_nl}*)
28475 case $ac_var in #(
28476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28478 esac
28479 case $ac_var in #(
28480 _ | IFS | as_nl) ;; #(
28481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28482 *) { eval $ac_var=; unset $ac_var;} ;;
28483 esac ;;
28484 esac
28485 done
28487 (set) 2>&1 |
28488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28489 *${as_nl}ac_space=\ *)
28490 # `set' does not quote correctly, so add quotes: double-quote
28491 # substitution turns \\\\ into \\, and sed turns \\ into \.
28492 sed -n \
28493 "s/'/'\\\\''/g;
28494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28495 ;; #(
28497 # `set' quotes correctly as required by POSIX, so do not add quotes.
28498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28500 esac |
28501 sort
28503 sed '
28504 /^ac_cv_env_/b end
28505 t clear
28506 :clear
28507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28508 t end
28509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28510 :end' >>confcache
28511 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28512 if test -w "$cache_file"; then
28513 if test "x$cache_file" != "x/dev/null"; then
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28515 $as_echo "$as_me: updating cache $cache_file" >&6;}
28516 if test ! -f "$cache_file" || test -h "$cache_file"; then
28517 cat confcache >"$cache_file"
28518 else
28519 case $cache_file in #(
28520 */* | ?:*)
28521 mv -f confcache "$cache_file"$$ &&
28522 mv -f "$cache_file"$$ "$cache_file" ;; #(
28524 mv -f confcache "$cache_file" ;;
28525 esac
28528 else
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28533 rm -f confcache
28535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28536 # Let make expand exec_prefix.
28537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28539 DEFS=-DHAVE_CONFIG_H
28541 ac_libobjs=
28542 ac_ltlibobjs=
28544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28545 # 1. Remove the extension, and $U if already installed.
28546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28549 # will be set to the directory where LIBOBJS objects are built.
28550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28551 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28552 done
28553 LIBOBJS=$ac_libobjs
28555 LTLIBOBJS=$ac_ltlibobjs
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28559 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28560 if test -n "$am_sleep_pid"; then
28561 # Hide warnings about reused PIDs.
28562 wait $am_sleep_pid 2>/dev/null
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28565 $as_echo "done" >&6; }
28566 if test -n "$EXEEXT"; then
28567 am__EXEEXT_TRUE=
28568 am__EXEEXT_FALSE='#'
28569 else
28570 am__EXEEXT_TRUE='#'
28571 am__EXEEXT_FALSE=
28574 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28575 as_fn_error $? "conditional \"AMDEP\" was never defined.
28576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28578 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28579 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28583 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28586 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28587 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28590 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
28591 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
28592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28595 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28596 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28599 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28600 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28603 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28604 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28607 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28608 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28611 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28612 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28615 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28616 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28619 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28620 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28623 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28624 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28628 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28632 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
28636 as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
28640 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28645 gl_libobjs=
28646 gl_ltlibobjs=
28647 if test -n "$gl_LIBOBJS"; then
28648 # Remove the extension.
28649 sed_drop_objext='s/\.o$//;s/\.obj$//'
28650 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28651 gl_libobjs="$gl_libobjs $i.$ac_objext"
28652 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28653 done
28655 gl_LIBOBJS=$gl_libobjs
28657 gl_LTLIBOBJS=$gl_ltlibobjs
28661 gltests_libobjs=
28662 gltests_ltlibobjs=
28663 if test -n "$gltests_LIBOBJS"; then
28664 # Remove the extension.
28665 sed_drop_objext='s/\.o$//;s/\.obj$//'
28666 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28667 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28668 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28669 done
28671 gltests_LIBOBJS=$gltests_libobjs
28673 gltests_LTLIBOBJS=$gltests_ltlibobjs
28676 if test -z "${COND_real_platform_TRUE}" && test -z "${COND_real_platform_FALSE}"; then
28677 as_fn_error $? "conditional \"COND_real_platform\" was never defined.
28678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28680 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
28681 as_fn_error $? "conditional \"COND_emu\" was never defined.
28682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28684 if test -z "${COND_clang_TRUE}" && test -z "${COND_clang_FALSE}"; then
28685 as_fn_error $? "conditional \"COND_clang\" was never defined.
28686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28688 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
28689 as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
28690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28692 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
28693 as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
28697 as_fn_error $? "conditional \"COND_ia64_efi\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
28701 as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
28705 as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
28709 as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
28713 as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
28717 as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720 if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
28721 as_fn_error $? "conditional \"COND_i386_xen\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724 if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
28725 as_fn_error $? "conditional \"COND_x86_64_xen\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
28729 as_fn_error $? "conditional \"COND_mips_loongson\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
28733 as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
28737 as_fn_error $? "conditional \"COND_mips_arc\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
28741 as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744 if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
28745 as_fn_error $? "conditional \"COND_sparc64_emu\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
28749 as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
28753 as_fn_error $? "conditional \"COND_mips\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
28757 as_fn_error $? "conditional \"COND_mipsel\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28760 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
28761 as_fn_error $? "conditional \"COND_mipseb\" was never defined.
28762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28764 if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
28765 as_fn_error $? "conditional \"COND_arm\" was never defined.
28766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28768 if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
28769 as_fn_error $? "conditional \"COND_arm_uboot\" was never defined.
28770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28772 if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
28773 as_fn_error $? "conditional \"COND_arm_efi\" was never defined.
28774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28776 if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
28777 as_fn_error $? "conditional \"COND_arm64\" was never defined.
28778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28780 if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
28781 as_fn_error $? "conditional \"COND_arm64_efi\" was never defined.
28782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28784 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
28785 as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
28786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28788 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
28789 as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
28790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28792 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
28793 as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
28794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28796 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
28797 as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
28798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28800 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
28801 as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
28802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28804 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
28805 as_fn_error $? "conditional \"COND_HOST_XNU\" was never defined.
28806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28808 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
28809 as_fn_error $? "conditional \"COND_HOST_ILLUMOS\" was never defined.
28810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28812 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
28813 as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
28814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28816 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
28817 as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
28818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
28821 as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
28822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
28825 as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
28826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
28829 as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
28830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
28833 as_fn_error $? "conditional \"COND_GRUB_MOUNT\" was never defined.
28834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
28837 as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
28838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
28841 as_fn_error $? "conditional \"COND_APPLE_LINKER\" was never defined.
28842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
28845 as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
28846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
28849 as_fn_error $? "conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
28850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
28853 as_fn_error $? "conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
28854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
28857 as_fn_error $? "conditional \"COND_HAVE_CXX\" was never defined.
28858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
28861 as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
28862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
28865 as_fn_error $? "conditional \"COND_STARFIELD\" was never defined.
28866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
28869 as_fn_error $? "conditional \"COND_HAVE_EXEC\" was never defined.
28870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28873 : "${CONFIG_STATUS=./config.status}"
28874 ac_write_fail=0
28875 ac_clean_files_save=$ac_clean_files
28876 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28878 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28879 as_write_fail=0
28880 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28881 #! $SHELL
28882 # Generated by $as_me.
28883 # Run this file to recreate the current configuration.
28884 # Compiler output produced by configure, useful for debugging
28885 # configure, is in config.log if it exists.
28887 debug=false
28888 ac_cs_recheck=false
28889 ac_cs_silent=false
28891 SHELL=\${CONFIG_SHELL-$SHELL}
28892 export SHELL
28893 _ASEOF
28894 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28895 ## -------------------- ##
28896 ## M4sh Initialization. ##
28897 ## -------------------- ##
28899 # Be more Bourne compatible
28900 DUALCASE=1; export DUALCASE # for MKS sh
28901 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28902 emulate sh
28903 NULLCMD=:
28904 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28905 # is contrary to our usage. Disable this feature.
28906 alias -g '${1+"$@"}'='"$@"'
28907 setopt NO_GLOB_SUBST
28908 else
28909 case `(set -o) 2>/dev/null` in #(
28910 *posix*) :
28911 set -o posix ;; #(
28912 *) :
28914 esac
28918 as_nl='
28920 export as_nl
28921 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28922 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28925 # Prefer a ksh shell builtin over an external printf program on Solaris,
28926 # but without wasting forks for bash or zsh.
28927 if test -z "$BASH_VERSION$ZSH_VERSION" \
28928 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28929 as_echo='print -r --'
28930 as_echo_n='print -rn --'
28931 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28932 as_echo='printf %s\n'
28933 as_echo_n='printf %s'
28934 else
28935 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28936 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28937 as_echo_n='/usr/ucb/echo -n'
28938 else
28939 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28940 as_echo_n_body='eval
28941 arg=$1;
28942 case $arg in #(
28943 *"$as_nl"*)
28944 expr "X$arg" : "X\\(.*\\)$as_nl";
28945 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28946 esac;
28947 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28949 export as_echo_n_body
28950 as_echo_n='sh -c $as_echo_n_body as_echo'
28952 export as_echo_body
28953 as_echo='sh -c $as_echo_body as_echo'
28956 # The user is always right.
28957 if test "${PATH_SEPARATOR+set}" != set; then
28958 PATH_SEPARATOR=:
28959 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28960 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28961 PATH_SEPARATOR=';'
28966 # IFS
28967 # We need space, tab and new line, in precisely that order. Quoting is
28968 # there to prevent editors from complaining about space-tab.
28969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28970 # splitting by setting IFS to empty value.)
28971 IFS=" "" $as_nl"
28973 # Find who we are. Look in the path if we contain no directory separator.
28974 as_myself=
28975 case $0 in #((
28976 *[\\/]* ) as_myself=$0 ;;
28977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978 for as_dir in $PATH
28980 IFS=$as_save_IFS
28981 test -z "$as_dir" && as_dir=.
28982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28983 done
28984 IFS=$as_save_IFS
28987 esac
28988 # We did not find ourselves, most probably we were run as `sh COMMAND'
28989 # in which case we are not to be found in the path.
28990 if test "x$as_myself" = x; then
28991 as_myself=$0
28993 if test ! -f "$as_myself"; then
28994 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28995 exit 1
28998 # Unset variables that we do not need and which cause bugs (e.g. in
28999 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29000 # suppresses any "Segmentation fault" message there. '((' could
29001 # trigger a bug in pdksh 5.2.14.
29002 for as_var in BASH_ENV ENV MAIL MAILPATH
29003 do eval test x\${$as_var+set} = xset \
29004 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29005 done
29006 PS1='$ '
29007 PS2='> '
29008 PS4='+ '
29010 # NLS nuisances.
29011 LC_ALL=C
29012 export LC_ALL
29013 LANGUAGE=C
29014 export LANGUAGE
29016 # CDPATH.
29017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29020 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29021 # ----------------------------------------
29022 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29023 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29024 # script with STATUS, using 1 if that was 0.
29025 as_fn_error ()
29027 as_status=$1; test $as_status -eq 0 && as_status=1
29028 if test "$4"; then
29029 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29030 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29032 $as_echo "$as_me: error: $2" >&2
29033 as_fn_exit $as_status
29034 } # as_fn_error
29037 # as_fn_set_status STATUS
29038 # -----------------------
29039 # Set $? to STATUS, without forking.
29040 as_fn_set_status ()
29042 return $1
29043 } # as_fn_set_status
29045 # as_fn_exit STATUS
29046 # -----------------
29047 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29048 as_fn_exit ()
29050 set +e
29051 as_fn_set_status $1
29052 exit $1
29053 } # as_fn_exit
29055 # as_fn_unset VAR
29056 # ---------------
29057 # Portably unset VAR.
29058 as_fn_unset ()
29060 { eval $1=; unset $1;}
29062 as_unset=as_fn_unset
29063 # as_fn_append VAR VALUE
29064 # ----------------------
29065 # Append the text in VALUE to the end of the definition contained in VAR. Take
29066 # advantage of any shell optimizations that allow amortized linear growth over
29067 # repeated appends, instead of the typical quadratic growth present in naive
29068 # implementations.
29069 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29070 eval 'as_fn_append ()
29072 eval $1+=\$2
29074 else
29075 as_fn_append ()
29077 eval $1=\$$1\$2
29079 fi # as_fn_append
29081 # as_fn_arith ARG...
29082 # ------------------
29083 # Perform arithmetic evaluation on the ARGs, and store the result in the
29084 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29085 # must be portable across $(()) and expr.
29086 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29087 eval 'as_fn_arith ()
29089 as_val=$(( $* ))
29091 else
29092 as_fn_arith ()
29094 as_val=`expr "$@" || test $? -eq 1`
29096 fi # as_fn_arith
29099 if expr a : '\(a\)' >/dev/null 2>&1 &&
29100 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29101 as_expr=expr
29102 else
29103 as_expr=false
29106 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29107 as_basename=basename
29108 else
29109 as_basename=false
29112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29113 as_dirname=dirname
29114 else
29115 as_dirname=false
29118 as_me=`$as_basename -- "$0" ||
29119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29120 X"$0" : 'X\(//\)$' \| \
29121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29122 $as_echo X/"$0" |
29123 sed '/^.*\/\([^/][^/]*\)\/*$/{
29124 s//\1/
29127 /^X\/\(\/\/\)$/{
29128 s//\1/
29131 /^X\/\(\/\).*/{
29132 s//\1/
29135 s/.*/./; q'`
29137 # Avoid depending upon Character Ranges.
29138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29141 as_cr_digits='0123456789'
29142 as_cr_alnum=$as_cr_Letters$as_cr_digits
29144 ECHO_C= ECHO_N= ECHO_T=
29145 case `echo -n x` in #(((((
29146 -n*)
29147 case `echo 'xy\c'` in
29148 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29149 xy) ECHO_C='\c';;
29150 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29151 ECHO_T=' ';;
29152 esac;;
29154 ECHO_N='-n';;
29155 esac
29157 rm -f conf$$ conf$$.exe conf$$.file
29158 if test -d conf$$.dir; then
29159 rm -f conf$$.dir/conf$$.file
29160 else
29161 rm -f conf$$.dir
29162 mkdir conf$$.dir 2>/dev/null
29164 if (echo >conf$$.file) 2>/dev/null; then
29165 if ln -s conf$$.file conf$$ 2>/dev/null; then
29166 as_ln_s='ln -s'
29167 # ... but there are two gotchas:
29168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29170 # In both cases, we have to default to `cp -pR'.
29171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29172 as_ln_s='cp -pR'
29173 elif ln conf$$.file conf$$ 2>/dev/null; then
29174 as_ln_s=ln
29175 else
29176 as_ln_s='cp -pR'
29178 else
29179 as_ln_s='cp -pR'
29181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29182 rmdir conf$$.dir 2>/dev/null
29185 # as_fn_mkdir_p
29186 # -------------
29187 # Create "$as_dir" as a directory, including parents if necessary.
29188 as_fn_mkdir_p ()
29191 case $as_dir in #(
29192 -*) as_dir=./$as_dir;;
29193 esac
29194 test -d "$as_dir" || eval $as_mkdir_p || {
29195 as_dirs=
29196 while :; do
29197 case $as_dir in #(
29198 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29199 *) as_qdir=$as_dir;;
29200 esac
29201 as_dirs="'$as_qdir' $as_dirs"
29202 as_dir=`$as_dirname -- "$as_dir" ||
29203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29204 X"$as_dir" : 'X\(//\)[^/]' \| \
29205 X"$as_dir" : 'X\(//\)$' \| \
29206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29207 $as_echo X"$as_dir" |
29208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29209 s//\1/
29212 /^X\(\/\/\)[^/].*/{
29213 s//\1/
29216 /^X\(\/\/\)$/{
29217 s//\1/
29220 /^X\(\/\).*/{
29221 s//\1/
29224 s/.*/./; q'`
29225 test -d "$as_dir" && break
29226 done
29227 test -z "$as_dirs" || eval "mkdir $as_dirs"
29228 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29231 } # as_fn_mkdir_p
29232 if mkdir -p . 2>/dev/null; then
29233 as_mkdir_p='mkdir -p "$as_dir"'
29234 else
29235 test -d ./-p && rmdir ./-p
29236 as_mkdir_p=false
29240 # as_fn_executable_p FILE
29241 # -----------------------
29242 # Test if FILE is an executable regular file.
29243 as_fn_executable_p ()
29245 test -f "$1" && test -x "$1"
29246 } # as_fn_executable_p
29247 as_test_x='test -x'
29248 as_executable_p=as_fn_executable_p
29250 # Sed expression to map a string onto a valid CPP name.
29251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29253 # Sed expression to map a string onto a valid variable name.
29254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29257 exec 6>&1
29258 ## ----------------------------------- ##
29259 ## Main body of $CONFIG_STATUS script. ##
29260 ## ----------------------------------- ##
29261 _ASEOF
29262 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29265 # Save the log message, to keep $0 and so on meaningful, and to
29266 # report actual input values of CONFIG_FILES etc. instead of their
29267 # values after options handling.
29268 ac_log="
29269 This file was extended by GRUB $as_me 2.02~beta2, which was
29270 generated by GNU Autoconf 2.69. Invocation command line was
29272 CONFIG_FILES = $CONFIG_FILES
29273 CONFIG_HEADERS = $CONFIG_HEADERS
29274 CONFIG_LINKS = $CONFIG_LINKS
29275 CONFIG_COMMANDS = $CONFIG_COMMANDS
29276 $ $0 $@
29278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29281 _ACEOF
29283 case $ac_config_files in *"
29284 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29285 esac
29287 case $ac_config_headers in *"
29288 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29289 esac
29292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29293 # Files that config.status was made for.
29294 config_files="$ac_config_files"
29295 config_headers="$ac_config_headers"
29296 config_links="$ac_config_links"
29297 config_commands="$ac_config_commands"
29299 _ACEOF
29301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29302 ac_cs_usage="\
29303 \`$as_me' instantiates files and other configuration actions
29304 from templates according to the current configuration. Unless the files
29305 and actions are specified as TAGs, all are instantiated by default.
29307 Usage: $0 [OPTION]... [TAG]...
29309 -h, --help print this help, then exit
29310 -V, --version print version number and configuration settings, then exit
29311 --config print configuration, then exit
29312 -q, --quiet, --silent
29313 do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 --file=FILE[:TEMPLATE]
29317 instantiate the configuration file FILE
29318 --header=FILE[:TEMPLATE]
29319 instantiate the configuration header FILE
29321 Configuration files:
29322 $config_files
29324 Configuration headers:
29325 $config_headers
29327 Configuration links:
29328 $config_links
29330 Configuration commands:
29331 $config_commands
29333 Report bugs to <bug-grub@gnu.org>."
29335 _ACEOF
29336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29337 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29338 ac_cs_version="\\
29339 GRUB config.status 2.02~beta2
29340 configured by $0, generated by GNU Autoconf 2.69,
29341 with options \\"\$ac_cs_config\\"
29343 Copyright (C) 2012 Free Software Foundation, Inc.
29344 This config.status script is free software; the Free Software Foundation
29345 gives unlimited permission to copy, distribute and modify it."
29347 ac_pwd='$ac_pwd'
29348 srcdir='$srcdir'
29349 INSTALL='$INSTALL'
29350 MKDIR_P='$MKDIR_P'
29351 AWK='$AWK'
29352 test -n "\$AWK" || AWK=awk
29353 _ACEOF
29355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29356 # The default lists apply if the user does not specify any file.
29357 ac_need_defaults=:
29358 while test $# != 0
29360 case $1 in
29361 --*=?*)
29362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29364 ac_shift=:
29366 --*=)
29367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29368 ac_optarg=
29369 ac_shift=:
29372 ac_option=$1
29373 ac_optarg=$2
29374 ac_shift=shift
29376 esac
29378 case $ac_option in
29379 # Handling of the options.
29380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29381 ac_cs_recheck=: ;;
29382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29383 $as_echo "$ac_cs_version"; exit ;;
29384 --config | --confi | --conf | --con | --co | --c )
29385 $as_echo "$ac_cs_config"; exit ;;
29386 --debug | --debu | --deb | --de | --d | -d )
29387 debug=: ;;
29388 --file | --fil | --fi | --f )
29389 $ac_shift
29390 case $ac_optarg in
29391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29392 '') as_fn_error $? "missing file argument" ;;
29393 esac
29394 as_fn_append CONFIG_FILES " '$ac_optarg'"
29395 ac_need_defaults=false;;
29396 --header | --heade | --head | --hea )
29397 $ac_shift
29398 case $ac_optarg in
29399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29400 esac
29401 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29402 ac_need_defaults=false;;
29403 --he | --h)
29404 # Conflict between --help and --header
29405 as_fn_error $? "ambiguous option: \`$1'
29406 Try \`$0 --help' for more information.";;
29407 --help | --hel | -h )
29408 $as_echo "$ac_cs_usage"; exit ;;
29409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29411 ac_cs_silent=: ;;
29413 # This is an error.
29414 -*) as_fn_error $? "unrecognized option: \`$1'
29415 Try \`$0 --help' for more information." ;;
29417 *) as_fn_append ac_config_targets " $1"
29418 ac_need_defaults=false ;;
29420 esac
29421 shift
29422 done
29424 ac_configure_extra_args=
29426 if $ac_cs_silent; then
29427 exec 6>/dev/null
29428 ac_configure_extra_args="$ac_configure_extra_args --silent"
29431 _ACEOF
29432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29433 if \$ac_cs_recheck; then
29434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29435 shift
29436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29437 CONFIG_SHELL='$SHELL'
29438 export CONFIG_SHELL
29439 exec "\$@"
29442 _ACEOF
29443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29444 exec 5>>config.log
29446 echo
29447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29448 ## Running $as_me. ##
29449 _ASBOX
29450 $as_echo "$ac_log"
29451 } >&5
29453 _ACEOF
29454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29456 # INIT-COMMANDS
29458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29459 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29460 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29461 # from automake < 1.5.
29462 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29463 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29464 LINGUAS="${LINGUAS-%UNSET%}"
29467 _ACEOF
29469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29471 # Handling of arguments.
29472 for ac_config_target in $ac_config_targets
29474 case $ac_config_target in
29475 "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
29476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29477 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
29478 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
29479 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
29480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29481 "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
29482 "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
29483 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29484 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29485 "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
29486 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
29487 "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
29489 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29490 esac
29491 done
29494 # If the user did not use the arguments to specify the items to instantiate,
29495 # then the envvar interface is used. Set only those that are not.
29496 # We use the long form for the default assignment because of an extremely
29497 # bizarre bug on SunOS 4.1.3.
29498 if $ac_need_defaults; then
29499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29501 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29505 # Have a temporary directory for convenience. Make it in the build tree
29506 # simply because there is no reason against having it here, and in addition,
29507 # creating and moving files from /tmp can sometimes cause problems.
29508 # Hook for its removal unless debugging.
29509 # Note that there is a small window in which the directory will not be cleaned:
29510 # after its creation but before its name has been assigned to `$tmp'.
29511 $debug ||
29513 tmp= ac_tmp=
29514 trap 'exit_status=$?
29515 : "${ac_tmp:=$tmp}"
29516 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29518 trap 'as_fn_exit 1' 1 2 13 15
29520 # Create a (secure) tmp directory for tmp files.
29523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29524 test -d "$tmp"
29525 } ||
29527 tmp=./conf$$-$RANDOM
29528 (umask 077 && mkdir "$tmp")
29529 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29530 ac_tmp=$tmp
29532 # Set up the scripts for CONFIG_FILES section.
29533 # No need to generate them if there are no CONFIG_FILES.
29534 # This happens for instance with `./config.status config.h'.
29535 if test -n "$CONFIG_FILES"; then
29538 ac_cr=`echo X | tr X '\015'`
29539 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29540 # But we know of no other shell where ac_cr would be empty at this
29541 # point, so we can use a bashism as a fallback.
29542 if test "x$ac_cr" = x; then
29543 eval ac_cr=\$\'\\r\'
29545 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29546 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29547 ac_cs_awk_cr='\\r'
29548 else
29549 ac_cs_awk_cr=$ac_cr
29552 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29553 _ACEOF
29557 echo "cat >conf$$subs.awk <<_ACEOF" &&
29558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29559 echo "_ACEOF"
29560 } >conf$$subs.sh ||
29561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29563 ac_delim='%!_!# '
29564 for ac_last_try in false false false false false :; do
29565 . ./conf$$subs.sh ||
29566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29569 if test $ac_delim_n = $ac_delim_num; then
29570 break
29571 elif $ac_last_try; then
29572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29573 else
29574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29576 done
29577 rm -f conf$$subs.sh
29579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29580 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29581 _ACEOF
29582 sed -n '
29584 s/^/S["/; s/!.*/"]=/
29587 s/^[^!]*!//
29588 :repl
29589 t repl
29590 s/'"$ac_delim"'$//
29591 t delim
29594 s/\(.\{148\}\)..*/\1/
29595 t more1
29596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29599 b repl
29600 :more1
29601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29604 s/.\{148\}//
29605 t nl
29606 :delim
29608 s/\(.\{148\}\)..*/\1/
29609 t more2
29610 s/["\\]/\\&/g; s/^/"/; s/$/"/
29613 :more2
29614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29617 s/.\{148\}//
29618 t delim
29619 ' <conf$$subs.awk | sed '
29620 /^[^""]/{
29622 s/\n//
29624 ' >>$CONFIG_STATUS || ac_write_fail=1
29625 rm -f conf$$subs.awk
29626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29627 _ACAWK
29628 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29629 for (key in S) S_is_set[key] = 1
29630 FS = "\a"
29634 line = $ 0
29635 nfields = split(line, field, "@")
29636 substed = 0
29637 len = length(field[1])
29638 for (i = 2; i < nfields; i++) {
29639 key = field[i]
29640 keylen = length(key)
29641 if (S_is_set[key]) {
29642 value = S[key]
29643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29644 len += length(value) + length(field[++i])
29645 substed = 1
29646 } else
29647 len += 1 + keylen
29650 print line
29653 _ACAWK
29654 _ACEOF
29655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29656 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29658 else
29660 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29661 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29662 _ACEOF
29664 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29665 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29666 # trailing colons and then remove the whole line if VPATH becomes empty
29667 # (actually we leave an empty line to preserve line numbers).
29668 if test "x$srcdir" = x.; then
29669 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29671 s///
29672 s/^/:/
29673 s/[ ]*$/:/
29674 s/:\$(srcdir):/:/g
29675 s/:\${srcdir}:/:/g
29676 s/:@srcdir@:/:/g
29677 s/^:*//
29678 s/:*$//
29680 s/\(=[ ]*\).*/\1/
29682 s/\n//
29683 s/^[^=]*=[ ]*$//
29687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29688 fi # test -n "$CONFIG_FILES"
29690 # Set up the scripts for CONFIG_HEADERS section.
29691 # No need to generate them if there are no CONFIG_HEADERS.
29692 # This happens for instance with `./config.status Makefile'.
29693 if test -n "$CONFIG_HEADERS"; then
29694 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29695 BEGIN {
29696 _ACEOF
29698 # Transform confdefs.h into an awk script `defines.awk', embedded as
29699 # here-document in config.status, that substitutes the proper values into
29700 # config.h.in to produce config.h.
29702 # Create a delimiter string that does not exist in confdefs.h, to ease
29703 # handling of long lines.
29704 ac_delim='%!_!# '
29705 for ac_last_try in false false :; do
29706 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29707 if test -z "$ac_tt"; then
29708 break
29709 elif $ac_last_try; then
29710 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29711 else
29712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29714 done
29716 # For the awk script, D is an array of macro values keyed by name,
29717 # likewise P contains macro parameters if any. Preserve backslash
29718 # newline sequences.
29720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29721 sed -n '
29722 s/.\{148\}/&'"$ac_delim"'/g
29723 t rset
29724 :rset
29725 s/^[ ]*#[ ]*define[ ][ ]*/ /
29726 t def
29728 :def
29729 s/\\$//
29730 t bsnl
29731 s/["\\]/\\&/g
29732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29733 D["\1"]=" \3"/p
29734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29736 :bsnl
29737 s/["\\]/\\&/g
29738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29739 D["\1"]=" \3\\\\\\n"\\/p
29740 t cont
29741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29742 t cont
29744 :cont
29746 s/.\{148\}/&'"$ac_delim"'/g
29747 t clear
29748 :clear
29749 s/\\$//
29750 t bsnlc
29751 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29753 :bsnlc
29754 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29755 b cont
29756 ' <confdefs.h | sed '
29757 s/'"$ac_delim"'/"\\\
29758 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29761 for (key in D) D_is_set[key] = 1
29762 FS = "\a"
29764 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29765 line = \$ 0
29766 split(line, arg, " ")
29767 if (arg[1] == "#") {
29768 defundef = arg[2]
29769 mac1 = arg[3]
29770 } else {
29771 defundef = substr(arg[1], 2)
29772 mac1 = arg[2]
29774 split(mac1, mac2, "(") #)
29775 macro = mac2[1]
29776 prefix = substr(line, 1, index(line, defundef) - 1)
29777 if (D_is_set[macro]) {
29778 # Preserve the white space surrounding the "#".
29779 print prefix "define", macro P[macro] D[macro]
29780 next
29781 } else {
29782 # Replace #undef with comments. This is necessary, for example,
29783 # in the case of _POSIX_SOURCE, which is predefined and required
29784 # on some systems where configure will not decide to define it.
29785 if (defundef == "undef") {
29786 print "/*", prefix defundef, macro, "*/"
29787 next
29791 { print }
29792 _ACAWK
29793 _ACEOF
29794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29795 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29796 fi # test -n "$CONFIG_HEADERS"
29799 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29800 shift
29801 for ac_tag
29803 case $ac_tag in
29804 :[FHLC]) ac_mode=$ac_tag; continue;;
29805 esac
29806 case $ac_mode$ac_tag in
29807 :[FHL]*:*);;
29808 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29809 :[FH]-) ac_tag=-:-;;
29810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29811 esac
29812 ac_save_IFS=$IFS
29813 IFS=:
29814 set x $ac_tag
29815 IFS=$ac_save_IFS
29816 shift
29817 ac_file=$1
29818 shift
29820 case $ac_mode in
29821 :L) ac_source=$1;;
29822 :[FH])
29823 ac_file_inputs=
29824 for ac_f
29826 case $ac_f in
29827 -) ac_f="$ac_tmp/stdin";;
29828 *) # Look for the file first in the build tree, then in the source tree
29829 # (if the path is not absolute). The absolute path cannot be DOS-style,
29830 # because $ac_f cannot contain `:'.
29831 test -f "$ac_f" ||
29832 case $ac_f in
29833 [\\/$]*) false;;
29834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29835 esac ||
29836 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29837 esac
29838 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29839 as_fn_append ac_file_inputs " '$ac_f'"
29840 done
29842 # Let's still pretend it is `configure' which instantiates (i.e., don't
29843 # use $as_me), people would be surprised to read:
29844 # /* config.h. Generated by config.status. */
29845 configure_input='Generated from '`
29846 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29847 `' by configure.'
29848 if test x"$ac_file" != x-; then
29849 configure_input="$ac_file. $configure_input"
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29851 $as_echo "$as_me: creating $ac_file" >&6;}
29853 # Neutralize special characters interpreted by sed in replacement strings.
29854 case $configure_input in #(
29855 *\&* | *\|* | *\\* )
29856 ac_sed_conf_input=`$as_echo "$configure_input" |
29857 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29858 *) ac_sed_conf_input=$configure_input;;
29859 esac
29861 case $ac_tag in
29862 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29864 esac
29866 esac
29868 ac_dir=`$as_dirname -- "$ac_file" ||
29869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29870 X"$ac_file" : 'X\(//\)[^/]' \| \
29871 X"$ac_file" : 'X\(//\)$' \| \
29872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29873 $as_echo X"$ac_file" |
29874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29875 s//\1/
29878 /^X\(\/\/\)[^/].*/{
29879 s//\1/
29882 /^X\(\/\/\)$/{
29883 s//\1/
29886 /^X\(\/\).*/{
29887 s//\1/
29890 s/.*/./; q'`
29891 as_dir="$ac_dir"; as_fn_mkdir_p
29892 ac_builddir=.
29894 case "$ac_dir" in
29895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29898 # A ".." for each directory in $ac_dir_suffix.
29899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29900 case $ac_top_builddir_sub in
29901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29903 esac ;;
29904 esac
29905 ac_abs_top_builddir=$ac_pwd
29906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29907 # for backward compatibility:
29908 ac_top_builddir=$ac_top_build_prefix
29910 case $srcdir in
29911 .) # We are building in place.
29912 ac_srcdir=.
29913 ac_top_srcdir=$ac_top_builddir_sub
29914 ac_abs_top_srcdir=$ac_pwd ;;
29915 [\\/]* | ?:[\\/]* ) # Absolute name.
29916 ac_srcdir=$srcdir$ac_dir_suffix;
29917 ac_top_srcdir=$srcdir
29918 ac_abs_top_srcdir=$srcdir ;;
29919 *) # Relative name.
29920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29921 ac_top_srcdir=$ac_top_build_prefix$srcdir
29922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29923 esac
29924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29927 case $ac_mode in
29930 # CONFIG_FILE
29933 case $INSTALL in
29934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29935 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29936 esac
29937 ac_MKDIR_P=$MKDIR_P
29938 case $MKDIR_P in
29939 [\\/$]* | ?:[\\/]* ) ;;
29940 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29941 esac
29942 _ACEOF
29944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29945 # If the template does not know about datarootdir, expand it.
29946 # FIXME: This hack should be removed a few years after 2.60.
29947 ac_datarootdir_hack=; ac_datarootdir_seen=
29948 ac_sed_dataroot='
29949 /datarootdir/ {
29953 /@datadir@/p
29954 /@docdir@/p
29955 /@infodir@/p
29956 /@localedir@/p
29957 /@mandir@/p'
29958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29959 *datarootdir*) ac_datarootdir_seen=yes;;
29960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29963 _ACEOF
29964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29965 ac_datarootdir_hack='
29966 s&@datadir@&$datadir&g
29967 s&@docdir@&$docdir&g
29968 s&@infodir@&$infodir&g
29969 s&@localedir@&$localedir&g
29970 s&@mandir@&$mandir&g
29971 s&\\\${datarootdir}&$datarootdir&g' ;;
29972 esac
29973 _ACEOF
29975 # Neutralize VPATH when `$srcdir' = `.'.
29976 # Shell code in configure.ac might set extrasub.
29977 # FIXME: do we really want to maintain this feature?
29978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29979 ac_sed_extra="$ac_vpsub
29980 $extrasub
29981 _ACEOF
29982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29985 s|@configure_input@|$ac_sed_conf_input|;t t
29986 s&@top_builddir@&$ac_top_builddir_sub&;t t
29987 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29988 s&@srcdir@&$ac_srcdir&;t t
29989 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29990 s&@top_srcdir@&$ac_top_srcdir&;t t
29991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29992 s&@builddir@&$ac_builddir&;t t
29993 s&@abs_builddir@&$ac_abs_builddir&;t t
29994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29995 s&@INSTALL@&$ac_INSTALL&;t t
29996 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29997 $ac_datarootdir_hack
29999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30005 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30007 which seems to be undefined. Please make sure it is defined" >&5
30008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30009 which seems to be undefined. Please make sure it is defined" >&2;}
30011 rm -f "$ac_tmp/stdin"
30012 case $ac_file in
30013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30015 esac \
30016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30020 # CONFIG_HEADER
30022 if test x"$ac_file" != x-; then
30024 $as_echo "/* $configure_input */" \
30025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30026 } >"$ac_tmp/config.h" \
30027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30031 else
30032 rm -f "$ac_file"
30033 mv "$ac_tmp/config.h" "$ac_file" \
30034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30036 else
30037 $as_echo "/* $configure_input */" \
30038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30039 || as_fn_error $? "could not create -" "$LINENO" 5
30041 # Compute "$ac_file"'s index in $config_headers.
30042 _am_arg="$ac_file"
30043 _am_stamp_count=1
30044 for _am_header in $config_headers :; do
30045 case $_am_header in
30046 $_am_arg | $_am_arg:* )
30047 break ;;
30049 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30050 esac
30051 done
30052 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30053 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30054 X"$_am_arg" : 'X\(//\)[^/]' \| \
30055 X"$_am_arg" : 'X\(//\)$' \| \
30056 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30057 $as_echo X"$_am_arg" |
30058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30059 s//\1/
30062 /^X\(\/\/\)[^/].*/{
30063 s//\1/
30066 /^X\(\/\/\)$/{
30067 s//\1/
30070 /^X\(\/\).*/{
30071 s//\1/
30074 s/.*/./; q'`/stamp-h$_am_stamp_count
30078 # CONFIG_LINK
30081 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30083 else
30084 # Prefer the file from the source tree if names are identical.
30085 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30086 ac_source=$srcdir/$ac_source
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30090 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30092 if test ! -r "$ac_source"; then
30093 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
30095 rm -f "$ac_file"
30097 # Try a relative symlink, then a hard link, then a copy.
30098 case $ac_source in
30099 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30100 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30101 esac
30102 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30103 ln "$ac_source" "$ac_file" 2>/dev/null ||
30104 cp -p "$ac_source" "$ac_file" ||
30105 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30109 $as_echo "$as_me: executing $ac_file commands" >&6;}
30111 esac
30114 case $ac_file$ac_mode in
30115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30116 # Older Autoconf quotes --file arguments for eval, but not when files
30117 # are listed without --file. Let's play safe and only enable the eval
30118 # if we detect the quoting.
30119 case $CONFIG_FILES in
30120 *\'*) eval set x "$CONFIG_FILES" ;;
30121 *) set x $CONFIG_FILES ;;
30122 esac
30123 shift
30124 for mf
30126 # Strip MF so we end up with the name of the file.
30127 mf=`echo "$mf" | sed -e 's/:.*$//'`
30128 # Check whether this is an Automake generated Makefile or not.
30129 # We used to match only the files named 'Makefile.in', but
30130 # some people rename them; so instead we look at the file content.
30131 # Grep'ing the first line is not enough: some people post-process
30132 # each Makefile.in and add a new line on top of each file to say so.
30133 # Grep'ing the whole file is not good either: AIX grep has a line
30134 # limit of 2048, but all sed's we know have understand at least 4000.
30135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30136 dirpart=`$as_dirname -- "$mf" ||
30137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30138 X"$mf" : 'X\(//\)[^/]' \| \
30139 X"$mf" : 'X\(//\)$' \| \
30140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30141 $as_echo X"$mf" |
30142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30143 s//\1/
30146 /^X\(\/\/\)[^/].*/{
30147 s//\1/
30150 /^X\(\/\/\)$/{
30151 s//\1/
30154 /^X\(\/\).*/{
30155 s//\1/
30158 s/.*/./; q'`
30159 else
30160 continue
30162 # Extract the definition of DEPDIR, am__include, and am__quote
30163 # from the Makefile without running 'make'.
30164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30165 test -z "$DEPDIR" && continue
30166 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30167 test -z "$am__include" && continue
30168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30169 # Find all dependency output files, they are included files with
30170 # $(DEPDIR) in their names. We invoke sed twice because it is the
30171 # simplest approach to changing $(DEPDIR) to its actual value in the
30172 # expansion.
30173 for file in `sed -n "
30174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30176 # Make sure the directory exists.
30177 test -f "$dirpart/$file" && continue
30178 fdir=`$as_dirname -- "$file" ||
30179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30180 X"$file" : 'X\(//\)[^/]' \| \
30181 X"$file" : 'X\(//\)$' \| \
30182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30183 $as_echo X"$file" |
30184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30185 s//\1/
30188 /^X\(\/\/\)[^/].*/{
30189 s//\1/
30192 /^X\(\/\/\)$/{
30193 s//\1/
30196 /^X\(\/\).*/{
30197 s//\1/
30200 s/.*/./; q'`
30201 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30202 # echo "creating $dirpart/$file"
30203 echo '# dummy' > "$dirpart/$file"
30204 done
30205 done
30208 "po-directories":C)
30209 for ac_file in $CONFIG_FILES; do
30210 # Support "outfile[:infile[:infile...]]"
30211 case "$ac_file" in
30212 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30213 esac
30214 # PO directories have a Makefile.in generated from Makefile.in.in.
30215 case "$ac_file" in */Makefile.in)
30216 # Adjust a relative srcdir.
30217 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30218 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
30219 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30220 # In autoconf-2.13 it is called $ac_given_srcdir.
30221 # In autoconf-2.50 it is called $srcdir.
30222 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30223 case "$ac_given_srcdir" in
30224 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30225 /*) top_srcdir="$ac_given_srcdir" ;;
30226 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
30227 esac
30228 # Treat a directory as a PO directory if and only if it has a
30229 # POTFILES.in file. This allows packages to have multiple PO
30230 # directories under different names or in different locations.
30231 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30232 rm -f "$ac_dir/POTFILES"
30233 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30234 gt_tab=`printf '\t'`
30235 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30236 POMAKEFILEDEPS="POTFILES.in"
30237 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30238 # on $ac_dir but don't depend on user-specified configuration
30239 # parameters.
30240 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30241 # The LINGUAS file contains the set of available languages.
30242 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30243 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30245 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30246 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30247 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30248 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30249 else
30250 # The set of available languages was given in configure.in.
30251 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30252 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30254 # Compute POFILES
30255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30256 # Compute UPDATEPOFILES
30257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30258 # Compute DUMMYPOFILES
30259 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30260 # Compute GMOFILES
30261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30262 case "$ac_given_srcdir" in
30263 .) srcdirpre= ;;
30264 *) srcdirpre='$(srcdir)/' ;;
30265 esac
30266 POFILES=
30267 UPDATEPOFILES=
30268 DUMMYPOFILES=
30269 GMOFILES=
30270 for lang in $ALL_LINGUAS; do
30271 POFILES="$POFILES $srcdirpre$lang.po"
30272 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30273 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30274 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30275 done
30276 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30277 # environment variable.
30278 INST_LINGUAS=
30279 if test -n "$ALL_LINGUAS"; then
30280 for presentlang in $ALL_LINGUAS; do
30281 useit=no
30282 if test "%UNSET%" != "$LINGUAS"; then
30283 desiredlanguages="$LINGUAS"
30284 else
30285 desiredlanguages="$ALL_LINGUAS"
30287 for desiredlang in $desiredlanguages; do
30288 # Use the presentlang catalog if desiredlang is
30289 # a. equal to presentlang, or
30290 # b. a variant of presentlang (because in this case,
30291 # presentlang can be used as a fallback for messages
30292 # which are not translated in the desiredlang catalog).
30293 case "$desiredlang" in
30294 "$presentlang"*) useit=yes;;
30295 esac
30296 done
30297 if test $useit = yes; then
30298 INST_LINGUAS="$INST_LINGUAS $presentlang"
30300 done
30302 CATALOGS=
30303 if test -n "$INST_LINGUAS"; then
30304 for lang in $INST_LINGUAS; do
30305 CATALOGS="$CATALOGS $lang.gmo"
30306 done
30308 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30309 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
30310 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30311 if test -f "$f"; then
30312 case "$f" in
30313 *.orig | *.bak | *~) ;;
30314 *) cat "$f" >> "$ac_dir/Makefile" ;;
30315 esac
30317 done
30320 esac
30321 done ;;
30322 "stamp-h":F) echo timestamp > stamp-h ;;
30324 esac
30325 done # for ac_tag
30328 as_fn_exit 0
30329 _ACEOF
30330 ac_clean_files=$ac_clean_files_save
30332 test $ac_write_fail = 0 ||
30333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30336 # configure is writing to config.log, and then calls config.status.
30337 # config.status does its own redirection, appending to config.log.
30338 # Unfortunately, on DOS this fails, as config.log is still kept open
30339 # by configure, so config.status won't be able to write to it; its
30340 # output is simply discarded. So we exec the FD to /dev/null,
30341 # effectively closing config.log, so it can be properly (re)opened and
30342 # appended to by config.status. When coming back to configure, we
30343 # need to make the FD available again.
30344 if test "$no_create" != yes; then
30345 ac_cs_success=:
30346 ac_config_status_args=
30347 test "$silent" = yes &&
30348 ac_config_status_args="$ac_config_status_args --quiet"
30349 exec 5>/dev/null
30350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30351 exec 5>>config.log
30352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30353 # would make configure fail if this is the last instruction.
30354 $ac_cs_success || as_fn_exit 1
30356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30362 echo "*******************************************************"
30363 echo GRUB2 will be compiled with following components:
30364 echo Platform: "$target_cpu"-"$platform"
30365 if [ x"$platform" = xemu ]; then
30366 if [ x"$grub_emu_usb_excuse" = x ]; then
30367 echo USB support for grub-emu: Yes
30368 else
30369 echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
30371 if [ x"$grub_emu_sdl_excuse" = x ]; then
30372 echo SDL support for grub-emu: Yes
30373 else
30374 echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
30376 if [ x"$grub_emu_pci_excuse" = x ]; then
30377 echo PCI support for grub-emu: Yes
30378 else
30379 echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
30382 if test x"$device_mapper_excuse" = x ; then
30383 echo With devmapper support: Yes
30384 else
30385 echo With devmapper support: No "($device_mapper_excuse)"
30387 if [ x"$enable_mm_debug" = xyes ]; then
30388 echo With memory debugging: Yes
30389 else
30390 echo With memory debugging: No
30392 if [ x"$enable_cache_stats" = xyes ]; then
30393 echo With disk cache statistics: Yes
30394 else
30395 echo With disk cache statistics: No
30398 if [ x"$enable_boot_time" = xyes ]; then
30399 echo With boot time statistics: Yes
30400 else
30401 echo With boot time statistics: No
30404 if [ x"$efiemu_excuse" = x ]; then
30405 echo efiemu runtime: Yes
30406 else
30407 echo efiemu runtime: No "($efiemu_excuse)"
30409 if [ x"$grub_mkfont_excuse" = x ]; then
30410 echo grub-mkfont: Yes
30411 else
30412 echo grub-mkfont: No "($grub_mkfont_excuse)"
30414 if [ x"$grub_mount_excuse" = x ]; then
30415 echo grub-mount: Yes
30416 else
30417 echo grub-mount: No "($grub_mount_excuse)"
30419 if [ x"$starfield_excuse" = x ]; then
30420 echo starfield theme: Yes
30421 echo With DejaVuSans font from $DJVU_FONT_SOURCE
30422 else
30423 echo starfield theme: No "($starfield_excuse)"
30425 if [ x"$libzfs_excuse" = x ]; then
30426 echo With libzfs support: Yes
30427 else
30428 echo With libzfs support: No "($libzfs_excuse)"
30430 if [ x"$grub_build_mkfont_excuse" = x ]; then
30431 echo Build-time grub-mkfont: Yes
30432 if test "x$FONT_SOURCE" = x ; then
30433 echo "Without unifont"
30434 else
30435 echo "With unifont from $FONT_SOURCE"
30437 else
30438 echo Build-time grub-mkfont: No "($grub_build_mkfont_excuse)"
30439 echo "Without unifont (no build-time grub-mkfont)"
30441 if test x"$liblzma_excuse" != x ; then
30442 echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
30443 else
30444 echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
30446 echo "*******************************************************"