grub2: bring back build of aros-side grub2 tools
[AROS.git] / arch / all-pc / boot / grub2-aros / configure
blob1be80c0cc25110287dbcef50d8efbd518d705dcf
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 skipplatform
792 BOOT_TIME_STATS
793 DISK_CACHE_STATS
794 TARGET_NMFLAGS_DEFINED_ONLY
795 TARGET_NMFLAGS_MINUS_P
796 TARGET_LDFLAGS_OLDMAGIC
797 TARGET_OBJCONV
798 EFIEMU64_LINK_FORMAT
799 enable_efiemu
800 BUILD_LDFLAGS
801 BUILD_CPPFLAGS
802 BUILD_CFLAGS
803 HOST_CC
804 TARGET_RANLIB
805 TARGET_NM
806 TARGET_STRIP
807 ac_ct_TARGET_OBJCOPY
808 TARGET_OBJCOPY
809 ac_ct_TARGET_CC
810 TARGET_CC
811 LIBGNU_LTLIBDEPS
812 LIBGNU_LIBDEPS
813 gltests_WITNESS
814 REPLACE_TOWLOWER
815 REPLACE_ISWCNTRL
816 HAVE_WCTYPE_H
817 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
818 NEXT_WCTYPE_H
819 HAVE_ISWCNTRL
820 REPLACE_ISWBLANK
821 HAVE_WCTRANS_T
822 HAVE_WCTYPE_T
823 HAVE_ISWBLANK
824 GNULIB_TOWCTRANS
825 GNULIB_WCTRANS
826 GNULIB_ISWCTYPE
827 GNULIB_WCTYPE
828 GNULIB_ISWBLANK
829 HAVE_WINT_T
830 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
831 NEXT_WCHAR_H
832 HAVE_FEATURES_H
833 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
834 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
835 LIBUNISTRING_UNIWIDTH_H
836 LIBUNISTRING_UNITYPES_H
837 HAVE_UNISTD_H
838 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
839 NEXT_UNISTD_H
840 GL_GENERATE_SYSEXITS_H_FALSE
841 GL_GENERATE_SYSEXITS_H_TRUE
842 SYSEXITS_H
843 HAVE_SYSEXITS_H
844 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
845 NEXT_SYSEXITS_H
846 WINDOWS_64_BIT_OFF_T
847 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
848 NEXT_SYS_TYPES_H
849 HAVE_STRINGS_H
850 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
851 NEXT_STRINGS_H
852 NEXT_AS_FIRST_DIRECTIVE_STRING_H
853 NEXT_STRING_H
854 HAVE_WINSOCK2_H
855 HAVE_DECL_STRNCASECMP
856 HAVE_STRCASECMP
857 HAVE_FFS
858 GNULIB_FFS
859 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
860 NEXT_STDLIB_H
861 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
862 NEXT_STDIO_H
863 GL_GENERATE_STDINT_H_FALSE
864 GL_GENERATE_STDINT_H_TRUE
865 STDINT_H
866 WINT_T_SUFFIX
867 WCHAR_T_SUFFIX
868 SIG_ATOMIC_T_SUFFIX
869 SIZE_T_SUFFIX
870 PTRDIFF_T_SUFFIX
871 HAVE_SIGNED_WINT_T
872 HAVE_SIGNED_WCHAR_T
873 HAVE_SIGNED_SIG_ATOMIC_T
874 BITSIZEOF_WINT_T
875 BITSIZEOF_WCHAR_T
876 BITSIZEOF_SIG_ATOMIC_T
877 BITSIZEOF_SIZE_T
878 BITSIZEOF_PTRDIFF_T
879 HAVE_SYS_BITYPES_H
880 HAVE_SYS_INTTYPES_H
881 HAVE_STDINT_H
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
883 NEXT_STDINT_H
884 HAVE_SYS_TYPES_H
885 HAVE_INTTYPES_H
886 HAVE_WCHAR_H
887 HAVE_UNSIGNED_LONG_LONG_INT
888 HAVE_LONG_LONG_INT
889 HAVE__BOOL
890 GL_GENERATE_STDBOOL_H_FALSE
891 GL_GENERATE_STDBOOL_H_TRUE
892 STDBOOL_H
893 GL_GENERATE_STDALIGN_H_FALSE
894 GL_GENERATE_STDALIGN_H_TRUE
895 STDALIGN_H
896 APPLE_UNIVERSAL_BUILD
897 HAVE_MSVC_INVALID_PARAMETER_HANDLER
898 UNDEFINE_STRTOK_R
899 REPLACE_STRTOK_R
900 REPLACE_STRSIGNAL
901 REPLACE_STRNLEN
902 REPLACE_STRNDUP
903 REPLACE_STRNCAT
904 REPLACE_STRERROR_R
905 REPLACE_STRERROR
906 REPLACE_STRCHRNUL
907 REPLACE_STRCASESTR
908 REPLACE_STRSTR
909 REPLACE_STRDUP
910 REPLACE_STPNCPY
911 REPLACE_MEMMEM
912 REPLACE_MEMCHR
913 HAVE_STRVERSCMP
914 HAVE_DECL_STRSIGNAL
915 HAVE_DECL_STRERROR_R
916 HAVE_DECL_STRTOK_R
917 HAVE_STRCASESTR
918 HAVE_STRSEP
919 HAVE_STRPBRK
920 HAVE_DECL_STRNLEN
921 HAVE_DECL_STRNDUP
922 HAVE_DECL_STRDUP
923 HAVE_STRCHRNUL
924 HAVE_STPNCPY
925 HAVE_STPCPY
926 HAVE_RAWMEMCHR
927 HAVE_DECL_MEMRCHR
928 HAVE_MEMPCPY
929 HAVE_DECL_MEMMEM
930 HAVE_MEMCHR
931 HAVE_FFSLL
932 HAVE_FFSL
933 HAVE_MBSLEN
934 GNULIB_STRVERSCMP
935 GNULIB_STRSIGNAL
936 GNULIB_STRERROR_R
937 GNULIB_STRERROR
938 GNULIB_MBSTOK_R
939 GNULIB_MBSSEP
940 GNULIB_MBSSPN
941 GNULIB_MBSPBRK
942 GNULIB_MBSCSPN
943 GNULIB_MBSCASESTR
944 GNULIB_MBSPCASECMP
945 GNULIB_MBSNCASECMP
946 GNULIB_MBSCASECMP
947 GNULIB_MBSSTR
948 GNULIB_MBSRCHR
949 GNULIB_MBSCHR
950 GNULIB_MBSNLEN
951 GNULIB_MBSLEN
952 GNULIB_STRTOK_R
953 GNULIB_STRCASESTR
954 GNULIB_STRSTR
955 GNULIB_STRSEP
956 GNULIB_STRPBRK
957 GNULIB_STRNLEN
958 GNULIB_STRNDUP
959 GNULIB_STRNCAT
960 GNULIB_STRDUP
961 GNULIB_STRCHRNUL
962 GNULIB_STPNCPY
963 GNULIB_STPCPY
964 GNULIB_RAWMEMCHR
965 GNULIB_MEMRCHR
966 GNULIB_MEMPCPY
967 GNULIB_MEMMEM
968 GNULIB_MEMCHR
969 GNULIB_FFSLL
970 GNULIB_FFSL
971 LOCALE_FR_UTF8
972 LOCALE_ZH_CN
973 LOCALE_JA
974 REPLACE_WCTOMB
975 REPLACE_UNSETENV
976 REPLACE_STRTOD
977 REPLACE_SETENV
978 REPLACE_REALPATH
979 REPLACE_REALLOC
980 REPLACE_RANDOM_R
981 REPLACE_PUTENV
982 REPLACE_PTSNAME_R
983 REPLACE_PTSNAME
984 REPLACE_MKSTEMP
985 REPLACE_MBTOWC
986 REPLACE_MALLOC
987 REPLACE_CANONICALIZE_FILE_NAME
988 REPLACE_CALLOC
989 HAVE_DECL_UNSETENV
990 HAVE_UNLOCKPT
991 HAVE_SYS_LOADAVG_H
992 HAVE_STRUCT_RANDOM_DATA
993 HAVE_STRTOULL
994 HAVE_STRTOLL
995 HAVE_STRTOD
996 HAVE_DECL_SETENV
997 HAVE_SETENV
998 HAVE_SECURE_GETENV
999 HAVE_RPMATCH
1000 HAVE_REALPATH
1001 HAVE_RANDOM_R
1002 HAVE_RANDOM_H
1003 HAVE_RANDOM
1004 HAVE_PTSNAME_R
1005 HAVE_PTSNAME
1006 HAVE_POSIX_OPENPT
1007 HAVE_MKSTEMPS
1008 HAVE_MKSTEMP
1009 HAVE_MKOSTEMPS
1010 HAVE_MKOSTEMP
1011 HAVE_MKDTEMP
1012 HAVE_GRANTPT
1013 HAVE_GETSUBOPT
1014 HAVE_DECL_GETLOADAVG
1015 HAVE_CANONICALIZE_FILE_NAME
1016 HAVE_ATOLL
1017 HAVE__EXIT
1018 GNULIB_WCTOMB
1019 GNULIB_UNSETENV
1020 GNULIB_UNLOCKPT
1021 GNULIB_SYSTEM_POSIX
1022 GNULIB_STRTOULL
1023 GNULIB_STRTOLL
1024 GNULIB_STRTOD
1025 GNULIB_SETENV
1026 GNULIB_SECURE_GETENV
1027 GNULIB_RPMATCH
1028 GNULIB_REALPATH
1029 GNULIB_REALLOC_POSIX
1030 GNULIB_RANDOM_R
1031 GNULIB_RANDOM
1032 GNULIB_PUTENV
1033 GNULIB_PTSNAME_R
1034 GNULIB_PTSNAME
1035 GNULIB_POSIX_OPENPT
1036 GNULIB_MKSTEMPS
1037 GNULIB_MKSTEMP
1038 GNULIB_MKOSTEMPS
1039 GNULIB_MKOSTEMP
1040 GNULIB_MKDTEMP
1041 GNULIB_MBTOWC
1042 GNULIB_MALLOC_POSIX
1043 GNULIB_GRANTPT
1044 GNULIB_GETSUBOPT
1045 GNULIB_GETLOADAVG
1046 GNULIB_CANONICALIZE_FILE_NAME
1047 GNULIB_CALLOC_POSIX
1048 GNULIB_ATOLL
1049 GNULIB__EXIT
1050 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1051 NEXT_LOCALE_H
1052 HAVE_XLOCALE_H
1053 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1054 NEXT_STDDEF_H
1055 GL_GENERATE_STDDEF_H_FALSE
1056 GL_GENERATE_STDDEF_H_TRUE
1057 STDDEF_H
1058 HAVE_WCHAR_T
1059 REPLACE_NULL
1060 REPLACE_STRUCT_LCONV
1061 REPLACE_DUPLOCALE
1062 REPLACE_SETLOCALE
1063 REPLACE_LOCALECONV
1064 HAVE_DUPLOCALE
1065 GNULIB_DUPLOCALE
1066 GNULIB_SETLOCALE
1067 GNULIB_LOCALECONV
1068 LOCALCHARSET_TESTS_ENVIRONMENT
1069 GLIBC21
1070 HAVE_LANGINFO_YESEXPR
1071 HAVE_LANGINFO_ERA
1072 HAVE_LANGINFO_T_FMT_AMPM
1073 HAVE_LANGINFO_CODESET
1074 HAVE_LANGINFO_H
1075 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1076 NEXT_LANGINFO_H
1077 REPLACE_NL_LANGINFO
1078 HAVE_NL_LANGINFO
1079 GNULIB_NL_LANGINFO
1080 GNULIB_GL_UNISTD_H_GETOPT
1081 GETOPT_H
1082 HAVE_GETOPT_H
1083 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1084 NEXT_GETOPT_H
1085 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1086 UNISTD_H_HAVE_WINSOCK2_H
1087 REPLACE_WRITE
1088 REPLACE_USLEEP
1089 REPLACE_UNLINKAT
1090 REPLACE_UNLINK
1091 REPLACE_TTYNAME_R
1092 REPLACE_SYMLINK
1093 REPLACE_SLEEP
1094 REPLACE_RMDIR
1095 REPLACE_READLINK
1096 REPLACE_READ
1097 REPLACE_PWRITE
1098 REPLACE_PREAD
1099 REPLACE_LSEEK
1100 REPLACE_LINKAT
1101 REPLACE_LINK
1102 REPLACE_LCHOWN
1103 REPLACE_ISATTY
1104 REPLACE_GETPAGESIZE
1105 REPLACE_GETGROUPS
1106 REPLACE_GETLOGIN_R
1107 REPLACE_GETDOMAINNAME
1108 REPLACE_GETCWD
1109 REPLACE_FTRUNCATE
1110 REPLACE_FCHOWNAT
1111 REPLACE_DUP2
1112 REPLACE_DUP
1113 REPLACE_CLOSE
1114 REPLACE_CHOWN
1115 HAVE_SYS_PARAM_H
1116 HAVE_OS_H
1117 HAVE_DECL_TTYNAME_R
1118 HAVE_DECL_SETHOSTNAME
1119 HAVE_DECL_GETUSERSHELL
1120 HAVE_DECL_GETPAGESIZE
1121 HAVE_DECL_GETLOGIN_R
1122 HAVE_DECL_GETDOMAINNAME
1123 HAVE_DECL_FDATASYNC
1124 HAVE_DECL_FCHDIR
1125 HAVE_DECL_ENVIRON
1126 HAVE_USLEEP
1127 HAVE_UNLINKAT
1128 HAVE_SYMLINKAT
1129 HAVE_SYMLINK
1130 HAVE_SLEEP
1131 HAVE_SETHOSTNAME
1132 HAVE_READLINKAT
1133 HAVE_READLINK
1134 HAVE_PWRITE
1135 HAVE_PREAD
1136 HAVE_PIPE2
1137 HAVE_PIPE
1138 HAVE_LINKAT
1139 HAVE_LINK
1140 HAVE_LCHOWN
1141 HAVE_GROUP_MEMBER
1142 HAVE_GETPAGESIZE
1143 HAVE_GETLOGIN
1144 HAVE_GETHOSTNAME
1145 HAVE_GETGROUPS
1146 HAVE_GETDTABLESIZE
1147 HAVE_FTRUNCATE
1148 HAVE_FSYNC
1149 HAVE_FDATASYNC
1150 HAVE_FCHOWNAT
1151 HAVE_FCHDIR
1152 HAVE_FACCESSAT
1153 HAVE_EUIDACCESS
1154 HAVE_DUP3
1155 HAVE_DUP2
1156 HAVE_CHOWN
1157 GNULIB_WRITE
1158 GNULIB_USLEEP
1159 GNULIB_UNLINKAT
1160 GNULIB_UNLINK
1161 GNULIB_UNISTD_H_SIGPIPE
1162 GNULIB_UNISTD_H_NONBLOCKING
1163 GNULIB_TTYNAME_R
1164 GNULIB_SYMLINKAT
1165 GNULIB_SYMLINK
1166 GNULIB_SLEEP
1167 GNULIB_SETHOSTNAME
1168 GNULIB_RMDIR
1169 GNULIB_READLINKAT
1170 GNULIB_READLINK
1171 GNULIB_READ
1172 GNULIB_PWRITE
1173 GNULIB_PREAD
1174 GNULIB_PIPE2
1175 GNULIB_PIPE
1176 GNULIB_LSEEK
1177 GNULIB_LINKAT
1178 GNULIB_LINK
1179 GNULIB_LCHOWN
1180 GNULIB_ISATTY
1181 GNULIB_GROUP_MEMBER
1182 GNULIB_GETUSERSHELL
1183 GNULIB_GETPAGESIZE
1184 GNULIB_GETLOGIN_R
1185 GNULIB_GETLOGIN
1186 GNULIB_GETHOSTNAME
1187 GNULIB_GETGROUPS
1188 GNULIB_GETDTABLESIZE
1189 GNULIB_GETDOMAINNAME
1190 GNULIB_GETCWD
1191 GNULIB_FTRUNCATE
1192 GNULIB_FSYNC
1193 GNULIB_FDATASYNC
1194 GNULIB_FCHOWNAT
1195 GNULIB_FCHDIR
1196 GNULIB_FACCESSAT
1197 GNULIB_EUIDACCESS
1198 GNULIB_ENVIRON
1199 GNULIB_DUP3
1200 GNULIB_DUP2
1201 GNULIB_DUP
1202 GNULIB_CLOSE
1203 GNULIB_CHOWN
1204 GNULIB_CHDIR
1205 REPLACE_VSPRINTF
1206 REPLACE_VSNPRINTF
1207 REPLACE_VPRINTF
1208 REPLACE_VFPRINTF
1209 REPLACE_VDPRINTF
1210 REPLACE_VASPRINTF
1211 REPLACE_TMPFILE
1212 REPLACE_STDIO_WRITE_FUNCS
1213 REPLACE_STDIO_READ_FUNCS
1214 REPLACE_SPRINTF
1215 REPLACE_SNPRINTF
1216 REPLACE_RENAMEAT
1217 REPLACE_RENAME
1218 REPLACE_REMOVE
1219 REPLACE_PRINTF
1220 REPLACE_POPEN
1221 REPLACE_PERROR
1222 REPLACE_OBSTACK_PRINTF
1223 REPLACE_GETLINE
1224 REPLACE_GETDELIM
1225 REPLACE_FTELLO
1226 REPLACE_FTELL
1227 REPLACE_FSEEKO
1228 REPLACE_FSEEK
1229 REPLACE_FREOPEN
1230 REPLACE_FPURGE
1231 REPLACE_FPRINTF
1232 REPLACE_FOPEN
1233 REPLACE_FFLUSH
1234 REPLACE_FDOPEN
1235 REPLACE_FCLOSE
1236 REPLACE_DPRINTF
1237 HAVE_VDPRINTF
1238 HAVE_VASPRINTF
1239 HAVE_RENAMEAT
1240 HAVE_POPEN
1241 HAVE_PCLOSE
1242 HAVE_FTELLO
1243 HAVE_FSEEKO
1244 HAVE_DPRINTF
1245 HAVE_DECL_VSNPRINTF
1246 HAVE_DECL_SNPRINTF
1247 HAVE_DECL_OBSTACK_PRINTF
1248 HAVE_DECL_GETLINE
1249 HAVE_DECL_GETDELIM
1250 HAVE_DECL_FTELLO
1251 HAVE_DECL_FSEEKO
1252 HAVE_DECL_FPURGE
1253 GNULIB_VSPRINTF_POSIX
1254 GNULIB_VSNPRINTF
1255 GNULIB_VPRINTF_POSIX
1256 GNULIB_VPRINTF
1257 GNULIB_VFPRINTF_POSIX
1258 GNULIB_VFPRINTF
1259 GNULIB_VDPRINTF
1260 GNULIB_VSCANF
1261 GNULIB_VFSCANF
1262 GNULIB_VASPRINTF
1263 GNULIB_TMPFILE
1264 GNULIB_STDIO_H_SIGPIPE
1265 GNULIB_STDIO_H_NONBLOCKING
1266 GNULIB_SPRINTF_POSIX
1267 GNULIB_SNPRINTF
1268 GNULIB_SCANF
1269 GNULIB_RENAMEAT
1270 GNULIB_RENAME
1271 GNULIB_REMOVE
1272 GNULIB_PUTS
1273 GNULIB_PUTCHAR
1274 GNULIB_PUTC
1275 GNULIB_PRINTF_POSIX
1276 GNULIB_PRINTF
1277 GNULIB_POPEN
1278 GNULIB_PERROR
1279 GNULIB_PCLOSE
1280 GNULIB_OBSTACK_PRINTF_POSIX
1281 GNULIB_OBSTACK_PRINTF
1282 GNULIB_GETLINE
1283 GNULIB_GETDELIM
1284 GNULIB_GETCHAR
1285 GNULIB_GETC
1286 GNULIB_FWRITE
1287 GNULIB_FTELLO
1288 GNULIB_FTELL
1289 GNULIB_FSEEKO
1290 GNULIB_FSEEK
1291 GNULIB_FSCANF
1292 GNULIB_FREOPEN
1293 GNULIB_FREAD
1294 GNULIB_FPUTS
1295 GNULIB_FPUTC
1296 GNULIB_FPURGE
1297 GNULIB_FPRINTF_POSIX
1298 GNULIB_FPRINTF
1299 GNULIB_FOPEN
1300 GNULIB_FGETS
1301 GNULIB_FGETC
1302 GNULIB_FFLUSH
1303 GNULIB_FDOPEN
1304 GNULIB_FCLOSE
1305 GNULIB_DPRINTF
1306 GL_GENERATE_FNMATCH_H_FALSE
1307 GL_GENERATE_FNMATCH_H_TRUE
1308 FNMATCH_H
1309 REPLACE_ITOLD
1310 GL_GENERATE_FLOAT_H_FALSE
1311 GL_GENERATE_FLOAT_H_TRUE
1312 FLOAT_H
1313 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1314 NEXT_FLOAT_H
1315 EOVERFLOW_VALUE
1316 EOVERFLOW_HIDDEN
1317 ENOLINK_VALUE
1318 ENOLINK_HIDDEN
1319 EMULTIHOP_VALUE
1320 EMULTIHOP_HIDDEN
1321 GL_GENERATE_ERRNO_H_FALSE
1322 GL_GENERATE_ERRNO_H_TRUE
1323 ERRNO_H
1324 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1325 NEXT_ERRNO_H
1326 PRAGMA_COLUMNS
1327 PRAGMA_SYSTEM_HEADER
1328 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1329 INCLUDE_NEXT
1330 pkglibexecdir
1331 lispdir
1332 LOCALE_FR
1333 REPLACE_WCSWIDTH
1334 REPLACE_WCWIDTH
1335 REPLACE_WCSNRTOMBS
1336 REPLACE_WCSRTOMBS
1337 REPLACE_WCRTOMB
1338 REPLACE_MBSNRTOWCS
1339 REPLACE_MBSRTOWCS
1340 REPLACE_MBRLEN
1341 REPLACE_MBRTOWC
1342 REPLACE_MBSINIT
1343 REPLACE_WCTOB
1344 REPLACE_BTOWC
1345 REPLACE_MBSTATE_T
1346 HAVE_DECL_WCWIDTH
1347 HAVE_DECL_WCTOB
1348 HAVE_WCSWIDTH
1349 HAVE_WCSTOK
1350 HAVE_WCSSTR
1351 HAVE_WCSPBRK
1352 HAVE_WCSSPN
1353 HAVE_WCSCSPN
1354 HAVE_WCSRCHR
1355 HAVE_WCSCHR
1356 HAVE_WCSDUP
1357 HAVE_WCSXFRM
1358 HAVE_WCSCOLL
1359 HAVE_WCSNCASECMP
1360 HAVE_WCSCASECMP
1361 HAVE_WCSNCMP
1362 HAVE_WCSCMP
1363 HAVE_WCSNCAT
1364 HAVE_WCSCAT
1365 HAVE_WCPNCPY
1366 HAVE_WCSNCPY
1367 HAVE_WCPCPY
1368 HAVE_WCSCPY
1369 HAVE_WCSNLEN
1370 HAVE_WCSLEN
1371 HAVE_WMEMSET
1372 HAVE_WMEMMOVE
1373 HAVE_WMEMCPY
1374 HAVE_WMEMCMP
1375 HAVE_WMEMCHR
1376 HAVE_WCSNRTOMBS
1377 HAVE_WCSRTOMBS
1378 HAVE_WCRTOMB
1379 HAVE_MBSNRTOWCS
1380 HAVE_MBSRTOWCS
1381 HAVE_MBRLEN
1382 HAVE_MBRTOWC
1383 HAVE_MBSINIT
1384 HAVE_BTOWC
1385 GNULIB_WCSWIDTH
1386 GNULIB_WCSTOK
1387 GNULIB_WCSSTR
1388 GNULIB_WCSPBRK
1389 GNULIB_WCSSPN
1390 GNULIB_WCSCSPN
1391 GNULIB_WCSRCHR
1392 GNULIB_WCSCHR
1393 GNULIB_WCSDUP
1394 GNULIB_WCSXFRM
1395 GNULIB_WCSCOLL
1396 GNULIB_WCSNCASECMP
1397 GNULIB_WCSCASECMP
1398 GNULIB_WCSNCMP
1399 GNULIB_WCSCMP
1400 GNULIB_WCSNCAT
1401 GNULIB_WCSCAT
1402 GNULIB_WCPNCPY
1403 GNULIB_WCSNCPY
1404 GNULIB_WCPCPY
1405 GNULIB_WCSCPY
1406 GNULIB_WCSNLEN
1407 GNULIB_WCSLEN
1408 GNULIB_WMEMSET
1409 GNULIB_WMEMMOVE
1410 GNULIB_WMEMCPY
1411 GNULIB_WMEMCMP
1412 GNULIB_WMEMCHR
1413 GNULIB_WCWIDTH
1414 GNULIB_WCSNRTOMBS
1415 GNULIB_WCSRTOMBS
1416 GNULIB_WCRTOMB
1417 GNULIB_MBSNRTOWCS
1418 GNULIB_MBSRTOWCS
1419 GNULIB_MBRLEN
1420 GNULIB_MBRTOWC
1421 GNULIB_MBSINIT
1422 GNULIB_WCTOB
1423 GNULIB_BTOWC
1424 GL_GENERATE_ALLOCA_H_FALSE
1425 GL_GENERATE_ALLOCA_H_TRUE
1426 ALLOCA_H
1427 ALLOCA
1428 GL_COND_LIBTOOL_FALSE
1429 GL_COND_LIBTOOL_TRUE
1430 BUILD_EXEEXT
1431 BUILD_CC
1432 LIBUTIL
1433 HELP2MAN
1434 POSUB
1435 LTLIBINTL
1436 LIBINTL
1437 INTLLIBS
1438 LTLIBICONV
1439 LIBICONV
1440 INTL_MACOSX_LIBS
1441 XGETTEXT_EXTRA_OPTIONS
1442 MSGMERGE
1443 XGETTEXT_015
1444 XGETTEXT
1445 GMSGFMT_015
1446 MSGFMT_015
1447 GMSGFMT
1448 MSGFMT
1449 GETTEXT_MACRO_VERSION
1450 USE_NLS
1451 HAVE_CXX
1452 am__fastdepCCAS_FALSE
1453 am__fastdepCCAS_TRUE
1454 CCASDEPMODE
1455 CCASFLAGS
1456 CCAS
1457 am__fastdepCXX_FALSE
1458 am__fastdepCXX_TRUE
1459 CXXDEPMODE
1460 ac_ct_CXX
1461 CXXFLAGS
1463 ARFLAGS
1465 EGREP
1466 GREP
1468 LN_S
1469 YFLAGS
1470 LEXLIB
1471 am__fastdepCC_FALSE
1472 am__fastdepCC_TRUE
1473 CCDEPMODE
1474 am__nodep
1475 AMDEPBACKSLASH
1476 AMDEP_FALSE
1477 AMDEP_TRUE
1478 am__quote
1479 am__include
1480 DEPDIR
1481 OBJEXT
1482 EXEEXT
1483 ac_ct_CC
1484 CPPFLAGS
1485 LDFLAGS
1486 CFLAGS
1488 LEX_OUTPUT_ROOT
1490 RANLIB
1491 YACC
1493 grubdirname
1494 bootdirname
1495 platform
1496 host_kernel
1497 TARGET_DECOMPRESSOR_LINK_ADDR
1498 TARGET_LINK_ADDR
1499 grub_file
1500 grub_render_label
1501 grub_sparc64_setup
1502 grub_set_default
1503 grub_script_check
1504 grub_reboot
1505 grub_probe
1506 grub_mkrescue
1507 grub_mkrelpath
1508 grub_mkpasswd_pbkdf2
1509 grub_mklayout
1510 grub_glue_efi
1511 grub_mkimage
1512 grub_mkfont
1513 grub_mkconfig
1514 grub_install
1515 grub_editenv
1516 grub_bios_setup
1517 AM_BACKSLASH
1518 AM_DEFAULT_VERBOSITY
1519 AM_DEFAULT_V
1520 AM_V
1521 am__untar
1522 am__tar
1523 AMTAR
1524 am__leading_dot
1525 SET_MAKE
1527 mkdir_p
1528 MKDIR_P
1529 INSTALL_STRIP_PROGRAM
1530 STRIP
1531 install_sh
1532 MAKEINFO
1533 AUTOHEADER
1534 AUTOMAKE
1535 AUTOCONF
1536 ACLOCAL
1537 VERSION
1538 PACKAGE
1539 CYGPATH_W
1540 am__isrc
1541 INSTALL_DATA
1542 INSTALL_SCRIPT
1543 INSTALL_PROGRAM
1544 target_os
1545 target_vendor
1546 target_cpu
1547 target
1548 host_os
1549 host_vendor
1550 host_cpu
1551 host
1552 build_os
1553 build_vendor
1554 build_cpu
1555 build
1556 target_alias
1557 host_alias
1558 build_alias
1559 LIBS
1560 ECHO_T
1561 ECHO_N
1562 ECHO_C
1563 DEFS
1564 mandir
1565 localedir
1566 libdir
1567 psdir
1568 pdfdir
1569 dvidir
1570 htmldir
1571 infodir
1572 docdir
1573 oldincludedir
1574 includedir
1575 localstatedir
1576 sharedstatedir
1577 sysconfdir
1578 datadir
1579 datarootdir
1580 libexecdir
1581 sbindir
1582 bindir
1583 program_transform_name
1584 prefix
1585 exec_prefix
1586 PACKAGE_URL
1587 PACKAGE_BUGREPORT
1588 PACKAGE_STRING
1589 PACKAGE_VERSION
1590 PACKAGE_TARNAME
1591 PACKAGE_NAME
1592 PATH_SEPARATOR
1593 SHELL'
1594 ac_subst_files=''
1595 ac_user_opts='
1596 enable_option_checking
1597 enable_silent_rules
1598 with_platform
1599 with_bootdir
1600 with_grubdir
1601 enable_dependency_tracking
1602 enable_nls
1603 with_gnu_ld
1604 enable_rpath
1605 with_libiconv_prefix
1606 with_libintl_prefix
1607 enable_largefile
1608 with_included_regex
1609 enable_efiemu
1610 enable_mm_debug
1611 enable_cache_stats
1612 enable_boot_time
1613 enable_skip_platform
1614 enable_grub_emu_usb
1615 enable_grub_emu_sdl
1616 enable_grub_emu_pci
1617 enable_grub_mkfont
1618 enable_grub_themes
1619 enable_grub_mount
1620 enable_device_mapper
1621 enable_liblzma
1622 enable_libzfs
1623 enable_werror
1625 ac_precious_vars='build_alias
1626 host_alias
1627 target_alias
1629 CFLAGS
1630 LDFLAGS
1631 LIBS
1632 CPPFLAGS
1633 YACC
1634 YFLAGS
1637 CXXFLAGS
1639 CCAS
1640 CCASFLAGS'
1643 # Initialize some variables set by options.
1644 ac_init_help=
1645 ac_init_version=false
1646 ac_unrecognized_opts=
1647 ac_unrecognized_sep=
1648 # The variables have the same names as the options, with
1649 # dashes changed to underlines.
1650 cache_file=/dev/null
1651 exec_prefix=NONE
1652 no_create=
1653 no_recursion=
1654 prefix=NONE
1655 program_prefix=NONE
1656 program_suffix=NONE
1657 program_transform_name=s,x,x,
1658 silent=
1659 site=
1660 srcdir=
1661 verbose=
1662 x_includes=NONE
1663 x_libraries=NONE
1665 # Installation directory options.
1666 # These are left unexpanded so users can "make install exec_prefix=/foo"
1667 # and all the variables that are supposed to be based on exec_prefix
1668 # by default will actually change.
1669 # Use braces instead of parens because sh, perl, etc. also accept them.
1670 # (The list follows the same order as the GNU Coding Standards.)
1671 bindir='${exec_prefix}/bin'
1672 sbindir='${exec_prefix}/sbin'
1673 libexecdir='${exec_prefix}/libexec'
1674 datarootdir='${prefix}/share'
1675 datadir='${datarootdir}'
1676 sysconfdir='${prefix}/etc'
1677 sharedstatedir='${prefix}/com'
1678 localstatedir='${prefix}/var'
1679 includedir='${prefix}/include'
1680 oldincludedir='/usr/include'
1681 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1682 infodir='${datarootdir}/info'
1683 htmldir='${docdir}'
1684 dvidir='${docdir}'
1685 pdfdir='${docdir}'
1686 psdir='${docdir}'
1687 libdir='${exec_prefix}/lib'
1688 localedir='${datarootdir}/locale'
1689 mandir='${datarootdir}/man'
1691 ac_prev=
1692 ac_dashdash=
1693 for ac_option
1695 # If the previous option needs an argument, assign it.
1696 if test -n "$ac_prev"; then
1697 eval $ac_prev=\$ac_option
1698 ac_prev=
1699 continue
1702 case $ac_option in
1703 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1704 *=) ac_optarg= ;;
1705 *) ac_optarg=yes ;;
1706 esac
1708 # Accept the important Cygnus configure options, so we can diagnose typos.
1710 case $ac_dashdash$ac_option in
1712 ac_dashdash=yes ;;
1714 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1715 ac_prev=bindir ;;
1716 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1717 bindir=$ac_optarg ;;
1719 -build | --build | --buil | --bui | --bu)
1720 ac_prev=build_alias ;;
1721 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1722 build_alias=$ac_optarg ;;
1724 -cache-file | --cache-file | --cache-fil | --cache-fi \
1725 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1726 ac_prev=cache_file ;;
1727 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1728 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1729 cache_file=$ac_optarg ;;
1731 --config-cache | -C)
1732 cache_file=config.cache ;;
1734 -datadir | --datadir | --datadi | --datad)
1735 ac_prev=datadir ;;
1736 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1737 datadir=$ac_optarg ;;
1739 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1740 | --dataroo | --dataro | --datar)
1741 ac_prev=datarootdir ;;
1742 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1743 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1744 datarootdir=$ac_optarg ;;
1746 -disable-* | --disable-*)
1747 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1750 as_fn_error $? "invalid feature name: $ac_useropt"
1751 ac_useropt_orig=$ac_useropt
1752 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1755 "enable_$ac_useropt"
1756 "*) ;;
1757 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1758 ac_unrecognized_sep=', ';;
1759 esac
1760 eval enable_$ac_useropt=no ;;
1762 -docdir | --docdir | --docdi | --doc | --do)
1763 ac_prev=docdir ;;
1764 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1765 docdir=$ac_optarg ;;
1767 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1768 ac_prev=dvidir ;;
1769 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1770 dvidir=$ac_optarg ;;
1772 -enable-* | --enable-*)
1773 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1774 # Reject names that are not valid shell variable names.
1775 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1776 as_fn_error $? "invalid feature name: $ac_useropt"
1777 ac_useropt_orig=$ac_useropt
1778 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1779 case $ac_user_opts in
1781 "enable_$ac_useropt"
1782 "*) ;;
1783 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1784 ac_unrecognized_sep=', ';;
1785 esac
1786 eval enable_$ac_useropt=\$ac_optarg ;;
1788 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1789 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1790 | --exec | --exe | --ex)
1791 ac_prev=exec_prefix ;;
1792 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1793 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1794 | --exec=* | --exe=* | --ex=*)
1795 exec_prefix=$ac_optarg ;;
1797 -gas | --gas | --ga | --g)
1798 # Obsolete; use --with-gas.
1799 with_gas=yes ;;
1801 -help | --help | --hel | --he | -h)
1802 ac_init_help=long ;;
1803 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1804 ac_init_help=recursive ;;
1805 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1806 ac_init_help=short ;;
1808 -host | --host | --hos | --ho)
1809 ac_prev=host_alias ;;
1810 -host=* | --host=* | --hos=* | --ho=*)
1811 host_alias=$ac_optarg ;;
1813 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1814 ac_prev=htmldir ;;
1815 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1816 | --ht=*)
1817 htmldir=$ac_optarg ;;
1819 -includedir | --includedir | --includedi | --included | --include \
1820 | --includ | --inclu | --incl | --inc)
1821 ac_prev=includedir ;;
1822 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1823 | --includ=* | --inclu=* | --incl=* | --inc=*)
1824 includedir=$ac_optarg ;;
1826 -infodir | --infodir | --infodi | --infod | --info | --inf)
1827 ac_prev=infodir ;;
1828 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1829 infodir=$ac_optarg ;;
1831 -libdir | --libdir | --libdi | --libd)
1832 ac_prev=libdir ;;
1833 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1834 libdir=$ac_optarg ;;
1836 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1837 | --libexe | --libex | --libe)
1838 ac_prev=libexecdir ;;
1839 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1840 | --libexe=* | --libex=* | --libe=*)
1841 libexecdir=$ac_optarg ;;
1843 -localedir | --localedir | --localedi | --localed | --locale)
1844 ac_prev=localedir ;;
1845 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1846 localedir=$ac_optarg ;;
1848 -localstatedir | --localstatedir | --localstatedi | --localstated \
1849 | --localstate | --localstat | --localsta | --localst | --locals)
1850 ac_prev=localstatedir ;;
1851 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1852 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1853 localstatedir=$ac_optarg ;;
1855 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1856 ac_prev=mandir ;;
1857 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1858 mandir=$ac_optarg ;;
1860 -nfp | --nfp | --nf)
1861 # Obsolete; use --without-fp.
1862 with_fp=no ;;
1864 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1865 | --no-cr | --no-c | -n)
1866 no_create=yes ;;
1868 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1869 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1870 no_recursion=yes ;;
1872 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1873 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1874 | --oldin | --oldi | --old | --ol | --o)
1875 ac_prev=oldincludedir ;;
1876 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1877 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1878 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1879 oldincludedir=$ac_optarg ;;
1881 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1882 ac_prev=prefix ;;
1883 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1884 prefix=$ac_optarg ;;
1886 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1887 | --program-pre | --program-pr | --program-p)
1888 ac_prev=program_prefix ;;
1889 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1890 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1891 program_prefix=$ac_optarg ;;
1893 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1894 | --program-suf | --program-su | --program-s)
1895 ac_prev=program_suffix ;;
1896 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1897 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1898 program_suffix=$ac_optarg ;;
1900 -program-transform-name | --program-transform-name \
1901 | --program-transform-nam | --program-transform-na \
1902 | --program-transform-n | --program-transform- \
1903 | --program-transform | --program-transfor \
1904 | --program-transfo | --program-transf \
1905 | --program-trans | --program-tran \
1906 | --progr-tra | --program-tr | --program-t)
1907 ac_prev=program_transform_name ;;
1908 -program-transform-name=* | --program-transform-name=* \
1909 | --program-transform-nam=* | --program-transform-na=* \
1910 | --program-transform-n=* | --program-transform-=* \
1911 | --program-transform=* | --program-transfor=* \
1912 | --program-transfo=* | --program-transf=* \
1913 | --program-trans=* | --program-tran=* \
1914 | --progr-tra=* | --program-tr=* | --program-t=*)
1915 program_transform_name=$ac_optarg ;;
1917 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1918 ac_prev=pdfdir ;;
1919 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1920 pdfdir=$ac_optarg ;;
1922 -psdir | --psdir | --psdi | --psd | --ps)
1923 ac_prev=psdir ;;
1924 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1925 psdir=$ac_optarg ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 silent=yes ;;
1931 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1932 ac_prev=sbindir ;;
1933 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1934 | --sbi=* | --sb=*)
1935 sbindir=$ac_optarg ;;
1937 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1938 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1939 | --sharedst | --shareds | --shared | --share | --shar \
1940 | --sha | --sh)
1941 ac_prev=sharedstatedir ;;
1942 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1943 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1944 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1945 | --sha=* | --sh=*)
1946 sharedstatedir=$ac_optarg ;;
1948 -site | --site | --sit)
1949 ac_prev=site ;;
1950 -site=* | --site=* | --sit=*)
1951 site=$ac_optarg ;;
1953 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1954 ac_prev=srcdir ;;
1955 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1956 srcdir=$ac_optarg ;;
1958 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1959 | --syscon | --sysco | --sysc | --sys | --sy)
1960 ac_prev=sysconfdir ;;
1961 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1962 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1963 sysconfdir=$ac_optarg ;;
1965 -target | --target | --targe | --targ | --tar | --ta | --t)
1966 ac_prev=target_alias ;;
1967 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1968 target_alias=$ac_optarg ;;
1970 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1971 verbose=yes ;;
1973 -version | --version | --versio | --versi | --vers | -V)
1974 ac_init_version=: ;;
1976 -with-* | --with-*)
1977 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1978 # Reject names that are not valid shell variable names.
1979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1980 as_fn_error $? "invalid package name: $ac_useropt"
1981 ac_useropt_orig=$ac_useropt
1982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1983 case $ac_user_opts in
1985 "with_$ac_useropt"
1986 "*) ;;
1987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1988 ac_unrecognized_sep=', ';;
1989 esac
1990 eval with_$ac_useropt=\$ac_optarg ;;
1992 -without-* | --without-*)
1993 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1994 # Reject names that are not valid shell variable names.
1995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1996 as_fn_error $? "invalid package name: $ac_useropt"
1997 ac_useropt_orig=$ac_useropt
1998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1999 case $ac_user_opts in
2001 "with_$ac_useropt"
2002 "*) ;;
2003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2004 ac_unrecognized_sep=', ';;
2005 esac
2006 eval with_$ac_useropt=no ;;
2008 --x)
2009 # Obsolete; use --with-x.
2010 with_x=yes ;;
2012 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2013 | --x-incl | --x-inc | --x-in | --x-i)
2014 ac_prev=x_includes ;;
2015 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2016 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2017 x_includes=$ac_optarg ;;
2019 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2020 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2021 ac_prev=x_libraries ;;
2022 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2023 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2024 x_libraries=$ac_optarg ;;
2026 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2027 Try \`$0 --help' for more information"
2030 *=*)
2031 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2032 # Reject names that are not valid shell variable names.
2033 case $ac_envvar in #(
2034 '' | [0-9]* | *[!_$as_cr_alnum]* )
2035 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2036 esac
2037 eval $ac_envvar=\$ac_optarg
2038 export $ac_envvar ;;
2041 # FIXME: should be removed in autoconf 3.0.
2042 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2043 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2044 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2045 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2048 esac
2049 done
2051 if test -n "$ac_prev"; then
2052 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2053 as_fn_error $? "missing argument to $ac_option"
2056 if test -n "$ac_unrecognized_opts"; then
2057 case $enable_option_checking in
2058 no) ;;
2059 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2060 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2061 esac
2064 # Check all directory arguments for consistency.
2065 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2066 datadir sysconfdir sharedstatedir localstatedir includedir \
2067 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2068 libdir localedir mandir
2070 eval ac_val=\$$ac_var
2071 # Remove trailing slashes.
2072 case $ac_val in
2073 */ )
2074 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2075 eval $ac_var=\$ac_val;;
2076 esac
2077 # Be sure to have absolute directory names.
2078 case $ac_val in
2079 [\\/$]* | ?:[\\/]* ) continue;;
2080 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2081 esac
2082 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2083 done
2085 # There might be people who depend on the old broken behavior: `$host'
2086 # used to hold the argument of --host etc.
2087 # FIXME: To remove some day.
2088 build=$build_alias
2089 host=$host_alias
2090 target=$target_alias
2092 # FIXME: To remove some day.
2093 if test "x$host_alias" != x; then
2094 if test "x$build_alias" = x; then
2095 cross_compiling=maybe
2096 elif test "x$build_alias" != "x$host_alias"; then
2097 cross_compiling=yes
2101 ac_tool_prefix=
2102 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2104 test "$silent" = yes && exec 6>/dev/null
2107 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2108 ac_ls_di=`ls -di .` &&
2109 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2110 as_fn_error $? "working directory cannot be determined"
2111 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2112 as_fn_error $? "pwd does not report name of working directory"
2115 # Find the source files, if location was not specified.
2116 if test -z "$srcdir"; then
2117 ac_srcdir_defaulted=yes
2118 # Try the directory containing this script, then the parent directory.
2119 ac_confdir=`$as_dirname -- "$as_myself" ||
2120 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2121 X"$as_myself" : 'X\(//\)[^/]' \| \
2122 X"$as_myself" : 'X\(//\)$' \| \
2123 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2124 $as_echo X"$as_myself" |
2125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2126 s//\1/
2129 /^X\(\/\/\)[^/].*/{
2130 s//\1/
2133 /^X\(\/\/\)$/{
2134 s//\1/
2137 /^X\(\/\).*/{
2138 s//\1/
2141 s/.*/./; q'`
2142 srcdir=$ac_confdir
2143 if test ! -r "$srcdir/$ac_unique_file"; then
2144 srcdir=..
2146 else
2147 ac_srcdir_defaulted=no
2149 if test ! -r "$srcdir/$ac_unique_file"; then
2150 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2151 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2154 ac_abs_confdir=`(
2155 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2156 pwd)`
2157 # When building in place, set srcdir=.
2158 if test "$ac_abs_confdir" = "$ac_pwd"; then
2159 srcdir=.
2161 # Remove unnecessary trailing slashes from srcdir.
2162 # Double slashes in file names in object file debugging info
2163 # mess up M-x gdb in Emacs.
2164 case $srcdir in
2165 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2166 esac
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2169 eval ac_env_${ac_var}_value=\$${ac_var}
2170 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2171 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2172 done
2175 # Report the --help message.
2177 if test "$ac_init_help" = "long"; then
2178 # Omit some internal or obsolete options to make the list less imposing.
2179 # This message is too long to be a string in the A/UX 3.1 sh.
2180 cat <<_ACEOF
2181 \`configure' configures GRUB 2.02~beta2 to adapt to many kinds of systems.
2183 Usage: $0 [OPTION]... [VAR=VALUE]...
2185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2186 VAR=VALUE. See below for descriptions of some of the useful variables.
2188 Defaults for the options are specified in brackets.
2190 Configuration:
2191 -h, --help display this help and exit
2192 --help=short display options specific to this package
2193 --help=recursive display the short help of all the included packages
2194 -V, --version display version information and exit
2195 -q, --quiet, --silent do not print \`checking ...' messages
2196 --cache-file=FILE cache test results in FILE [disabled]
2197 -C, --config-cache alias for \`--cache-file=config.cache'
2198 -n, --no-create do not create output files
2199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2201 Installation directories:
2202 --prefix=PREFIX install architecture-independent files in PREFIX
2203 [$ac_default_prefix]
2204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2205 [PREFIX]
2207 By default, \`make install' will install all the files in
2208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2210 for instance \`--prefix=\$HOME'.
2212 For better control, use the options below.
2214 Fine tuning of the installation directories:
2215 --bindir=DIR user executables [EPREFIX/bin]
2216 --sbindir=DIR system admin executables [EPREFIX/sbin]
2217 --libexecdir=DIR program executables [EPREFIX/libexec]
2218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2221 --libdir=DIR object code libraries [EPREFIX/lib]
2222 --includedir=DIR C header files [PREFIX/include]
2223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2226 --infodir=DIR info documentation [DATAROOTDIR/info]
2227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2228 --mandir=DIR man documentation [DATAROOTDIR/man]
2229 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
2230 --htmldir=DIR html documentation [DOCDIR]
2231 --dvidir=DIR dvi documentation [DOCDIR]
2232 --pdfdir=DIR pdf documentation [DOCDIR]
2233 --psdir=DIR ps documentation [DOCDIR]
2234 _ACEOF
2236 cat <<\_ACEOF
2238 Program names:
2239 --program-prefix=PREFIX prepend PREFIX to installed program names
2240 --program-suffix=SUFFIX append SUFFIX to installed program names
2241 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2243 System types:
2244 --build=BUILD configure for building on BUILD [guessed]
2245 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2246 --target=TARGET configure for building compilers for TARGET [HOST]
2247 _ACEOF
2250 if test -n "$ac_init_help"; then
2251 case $ac_init_help in
2252 short | recursive ) echo "Configuration of GRUB 2.02~beta2:";;
2253 esac
2254 cat <<\_ACEOF
2256 Optional Features:
2257 --disable-option-checking ignore unrecognized --enable/--with options
2258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2260 --enable-silent-rules less verbose build output (undo: "make V=1")
2261 --disable-silent-rules verbose build output (undo: "make V=0")
2262 --enable-dependency-tracking
2263 do not reject slow dependency extractors
2264 --disable-dependency-tracking
2265 speeds up one-time build
2266 --disable-nls do not use Native Language Support
2267 --disable-rpath do not hardcode runtime library paths
2268 --disable-largefile omit support for large files
2269 --enable-efiemu build and install the efiemu runtimes
2270 (default=guessed)
2271 --enable-mm-debug include memory manager debugging
2272 --enable-cache-stats enable disk cache statistics collection
2273 --enable-boot-time enable boot time statistics collection
2274 --enable-skip-platform build only host tools
2275 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
2276 with USB support (default=guessed)
2277 --enable-grub-emu-sdl build and install the `grub-emu' debugging utility
2278 with SDL support (default=guessed)
2279 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2280 with PCI support (potentially dangerous)
2281 (default=no)
2282 --enable-grub-mkfont build and install the `grub-mkfont' utility
2283 (default=guessed)
2284 --enable-grub-themes build and install GRUB themes (default=guessed)
2285 --enable-grub-mount build and install the `grub-mount' utility
2286 (default=guessed)
2287 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2288 --enable-liblzma enable liblzma integration (default=guessed)
2289 --enable-libzfs enable libzfs integration (default=guessed)
2290 --disable-werror do not use -Werror when building GRUB
2292 Optional Packages:
2293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2295 --with-platform=PLATFORM
2296 select the host platform [[guessed]]
2297 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2298 --with-grubdir=DIR set the name of grub directory [[guessed]]
2299 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2300 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2301 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2302 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2303 --without-libintl-prefix don't search for libintl in includedir and libdir
2304 --without-included-regex
2305 don't compile regex; this is the default on systems
2306 with recent-enough versions of the GNU C Library
2307 (use with caution on other systems).
2309 Some influential environment variables:
2310 CC C compiler command
2311 CFLAGS C compiler flags
2312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2313 nonstandard directory <lib dir>
2314 LIBS libraries to pass to the linker, e.g. -l<library>
2315 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2316 you have headers in a nonstandard directory <include dir>
2317 YACC The `Yet Another Compiler Compiler' implementation to use.
2318 Defaults to the first program found out of: `bison -y', `byacc',
2319 `yacc'.
2320 YFLAGS The list of arguments that will be passed by default to $YACC.
2321 This script will default YFLAGS to the empty string to avoid a
2322 default value of `-d' given by some make applications.
2323 CPP C preprocessor
2324 CXX C++ compiler command
2325 CXXFLAGS C++ compiler flags
2326 CCAS assembler compiler command (defaults to CC)
2327 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2329 Use these variables to override the choices made by `configure' or to help
2330 it to find libraries and programs with nonstandard names/locations.
2332 Report bugs to <bug-grub@gnu.org>.
2333 _ACEOF
2334 ac_status=$?
2337 if test "$ac_init_help" = "recursive"; then
2338 # If there are subdirs, report their specific --help.
2339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2340 test -d "$ac_dir" ||
2341 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2342 continue
2343 ac_builddir=.
2345 case "$ac_dir" in
2346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2349 # A ".." for each directory in $ac_dir_suffix.
2350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2351 case $ac_top_builddir_sub in
2352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2354 esac ;;
2355 esac
2356 ac_abs_top_builddir=$ac_pwd
2357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2358 # for backward compatibility:
2359 ac_top_builddir=$ac_top_build_prefix
2361 case $srcdir in
2362 .) # We are building in place.
2363 ac_srcdir=.
2364 ac_top_srcdir=$ac_top_builddir_sub
2365 ac_abs_top_srcdir=$ac_pwd ;;
2366 [\\/]* | ?:[\\/]* ) # Absolute name.
2367 ac_srcdir=$srcdir$ac_dir_suffix;
2368 ac_top_srcdir=$srcdir
2369 ac_abs_top_srcdir=$srcdir ;;
2370 *) # Relative name.
2371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2372 ac_top_srcdir=$ac_top_build_prefix$srcdir
2373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2374 esac
2375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2377 cd "$ac_dir" || { ac_status=$?; continue; }
2378 # Check for guested configure.
2379 if test -f "$ac_srcdir/configure.gnu"; then
2380 echo &&
2381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2382 elif test -f "$ac_srcdir/configure"; then
2383 echo &&
2384 $SHELL "$ac_srcdir/configure" --help=recursive
2385 else
2386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2387 fi || ac_status=$?
2388 cd "$ac_pwd" || { ac_status=$?; break; }
2389 done
2392 test -n "$ac_init_help" && exit $ac_status
2393 if $ac_init_version; then
2394 cat <<\_ACEOF
2395 GRUB configure 2.02~beta2
2396 generated by GNU Autoconf 2.69
2398 Copyright (C) 2012 Free Software Foundation, Inc.
2399 This configure script is free software; the Free Software Foundation
2400 gives unlimited permission to copy, distribute and modify it.
2401 _ACEOF
2402 exit
2405 ## ------------------------ ##
2406 ## Autoconf initialization. ##
2407 ## ------------------------ ##
2409 # ac_fn_c_try_compile LINENO
2410 # --------------------------
2411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2412 ac_fn_c_try_compile ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 rm -f conftest.$ac_objext
2416 if { { ac_try="$ac_compile"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423 (eval "$ac_compile") 2>conftest.err
2424 ac_status=$?
2425 if test -s conftest.err; then
2426 grep -v '^ *+' conftest.err >conftest.er1
2427 cat conftest.er1 >&5
2428 mv -f conftest.er1 conftest.err
2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431 test $ac_status = 0; } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest.$ac_objext; then :
2435 ac_retval=0
2436 else
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 ac_retval=1
2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443 as_fn_set_status $ac_retval
2445 } # ac_fn_c_try_compile
2447 # ac_fn_c_try_link LINENO
2448 # -----------------------
2449 # Try to link conftest.$ac_ext, and return whether this succeeded.
2450 ac_fn_c_try_link ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 rm -f conftest.$ac_objext conftest$ac_exeext
2454 if { { ac_try="$ac_link"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>conftest.err
2462 ac_status=$?
2463 if test -s conftest.err; then
2464 grep -v '^ *+' conftest.err >conftest.er1
2465 cat conftest.er1 >&5
2466 mv -f conftest.er1 conftest.err
2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469 test $ac_status = 0; } && {
2470 test -z "$ac_c_werror_flag" ||
2471 test ! -s conftest.err
2472 } && test -s conftest$ac_exeext && {
2473 test "$cross_compiling" = yes ||
2474 test -x conftest$ac_exeext
2475 }; then :
2476 ac_retval=0
2477 else
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 ac_retval=1
2483 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2484 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2485 # interfere with the next link command; also delete a directory that is
2486 # left behind by Apple's compiler. We do this before executing the actions.
2487 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 as_fn_set_status $ac_retval
2491 } # ac_fn_c_try_link
2493 # ac_fn_c_try_cpp LINENO
2494 # ----------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_c_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } > conftest.i && {
2515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 }; then :
2518 ac_retval=0
2519 else
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 ac_retval=1
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526 as_fn_set_status $ac_retval
2528 } # ac_fn_c_try_cpp
2530 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2531 # -------------------------------------------------------
2532 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2533 # the include files in INCLUDES and setting the cache variable VAR
2534 # accordingly.
2535 ac_fn_c_check_header_mongrel ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if eval \${$3+:} false; then :
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if eval \${$3+:} false; then :
2542 $as_echo_n "(cached) " >&6
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 else
2548 # Is the header compilable?
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2550 $as_echo_n "checking $2 usability... " >&6; }
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2554 #include <$2>
2555 _ACEOF
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557 ac_header_compiler=yes
2558 else
2559 ac_header_compiler=no
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2563 $as_echo "$ac_header_compiler" >&6; }
2565 # Is the header present?
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2567 $as_echo_n "checking $2 presence... " >&6; }
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 #include <$2>
2571 _ACEOF
2572 if ac_fn_c_try_cpp "$LINENO"; then :
2573 ac_header_preproc=yes
2574 else
2575 ac_header_preproc=no
2577 rm -f conftest.err conftest.i conftest.$ac_ext
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2579 $as_echo "$ac_header_preproc" >&6; }
2581 # So? What about this header?
2582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2583 yes:no: )
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2585 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2589 no:yes:* )
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2591 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2593 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2595 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2597 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2600 ( $as_echo "## ------------------------------- ##
2601 ## Report this to bug-grub@gnu.org ##
2602 ## ------------------------------- ##"
2603 ) | sed "s/^/$as_me: WARNING: /" >&2
2605 esac
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if eval \${$3+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 eval "$3=\$ac_header_compiler"
2613 eval ac_res=\$$3
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619 } # ac_fn_c_check_header_mongrel
2621 # ac_fn_c_try_run LINENO
2622 # ----------------------
2623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2624 # that executables *can* be run.
2625 ac_fn_c_try_run ()
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 if { { ac_try="$ac_link"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634 $as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>&5
2636 ac_status=$?
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2639 { { case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_try") 2>&5
2646 ac_status=$?
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; }; }; then :
2649 ac_retval=0
2650 else
2651 $as_echo "$as_me: program exited with status $ac_status" >&5
2652 $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 ac_retval=$ac_status
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_c_try_run
2663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2664 # -------------------------------------------------------
2665 # Tests whether HEADER exists and can be compiled using the include files in
2666 # INCLUDES, setting the cache variable VAR accordingly.
2667 ac_fn_c_check_header_compile ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if eval \${$3+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2678 #include <$2>
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 eval "$3=yes"
2682 else
2683 eval "$3=no"
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 eval ac_res=\$$3
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 } # ac_fn_c_check_header_compile
2694 # ac_fn_cxx_try_compile LINENO
2695 # ----------------------------
2696 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2697 ac_fn_cxx_try_compile ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 rm -f conftest.$ac_objext
2701 if { { ac_try="$ac_compile"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compile") 2>conftest.err
2709 ac_status=$?
2710 if test -s conftest.err; then
2711 grep -v '^ *+' conftest.err >conftest.er1
2712 cat conftest.er1 >&5
2713 mv -f conftest.er1 conftest.err
2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; } && {
2717 test -z "$ac_cxx_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.$ac_objext; then :
2720 ac_retval=0
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 ac_retval=1
2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 as_fn_set_status $ac_retval
2730 } # ac_fn_cxx_try_compile
2732 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2733 # --------------------------------------------
2734 # Tries to find the compile-time value of EXPR in a program that includes
2735 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2736 # computed
2737 ac_fn_c_compute_int ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 if test "$cross_compiling" = yes; then
2741 # Depending upon the size, compute the lo and hi bounds.
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2746 main (void)
2748 static int test_array [1 - 2 * !(($2) >= 0)];
2749 test_array [0] = 0;
2750 return test_array [0];
2753 return 0;
2755 _ACEOF
2756 if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_lo=0 ac_mid=0
2758 while :; do
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2763 main (void)
2765 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2766 test_array [0] = 0;
2767 return test_array [0];
2770 return 0;
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_hi=$ac_mid; break
2775 else
2776 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2777 if test $ac_lo -le $ac_mid; then
2778 ac_lo= ac_hi=
2779 break
2781 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2790 main (void)
2792 static int test_array [1 - 2 * !(($2) < 0)];
2793 test_array [0] = 0;
2794 return test_array [0];
2797 return 0;
2799 _ACEOF
2800 if ac_fn_c_try_compile "$LINENO"; then :
2801 ac_hi=-1 ac_mid=-1
2802 while :; do
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2807 main (void)
2809 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2810 test_array [0] = 0;
2811 return test_array [0];
2814 return 0;
2816 _ACEOF
2817 if ac_fn_c_try_compile "$LINENO"; then :
2818 ac_lo=$ac_mid; break
2819 else
2820 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2821 if test $ac_mid -le $ac_hi; then
2822 ac_lo= ac_hi=
2823 break
2825 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 done
2829 else
2830 ac_lo= ac_hi=
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 # Binary search between lo and hi bounds.
2836 while test "x$ac_lo" != "x$ac_hi"; do
2837 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2842 main (void)
2844 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2845 test_array [0] = 0;
2846 return test_array [0];
2849 return 0;
2851 _ACEOF
2852 if ac_fn_c_try_compile "$LINENO"; then :
2853 ac_hi=$ac_mid
2854 else
2855 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 done
2859 case $ac_lo in #((
2860 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2861 '') ac_retval=1 ;;
2862 esac
2863 else
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2867 static long int longval () { return $2; }
2868 static unsigned long int ulongval () { return $2; }
2869 #include <stdio.h>
2870 #include <stdlib.h>
2872 main (void)
2875 FILE *f = fopen ("conftest.val", "w");
2876 if (! f)
2877 return 1;
2878 if (($2) < 0)
2880 long int i = longval ();
2881 if (i != ($2))
2882 return 1;
2883 fprintf (f, "%ld", i);
2885 else
2887 unsigned long int i = ulongval ();
2888 if (i != ($2))
2889 return 1;
2890 fprintf (f, "%lu", i);
2892 /* Do not output a trailing newline, as this causes \r\n confusion
2893 on some platforms. */
2894 return ferror (f) || fclose (f) != 0;
2897 return 0;
2899 _ACEOF
2900 if ac_fn_c_try_run "$LINENO"; then :
2901 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2902 else
2903 ac_retval=1
2905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2906 conftest.$ac_objext conftest.beam conftest.$ac_ext
2907 rm -f conftest.val
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911 as_fn_set_status $ac_retval
2913 } # ac_fn_c_compute_int
2915 # ac_fn_c_check_func LINENO FUNC VAR
2916 # ----------------------------------
2917 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2918 ac_fn_c_check_func ()
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2922 $as_echo_n "checking for $2... " >&6; }
2923 if eval \${$3+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2930 #define $2 innocuous_$2
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char $2 (); below.
2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 <limits.h> exists even on freestanding compilers. */
2937 #ifdef __STDC__
2938 # include <limits.h>
2939 #else
2940 # include <assert.h>
2941 #endif
2943 #undef $2
2945 /* Override any GCC internal prototype to avoid an error.
2946 Use char because int might match the return type of a GCC
2947 builtin and then its argument prototype would still apply. */
2948 #ifdef __cplusplus
2949 extern "C"
2950 #endif
2951 char $2 ();
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined __stub_$2 || defined __stub___$2
2956 choke me
2957 #endif
2960 main (void)
2962 return $2 ();
2964 return 0;
2966 _ACEOF
2967 if ac_fn_c_try_link "$LINENO"; then :
2968 eval "$3=yes"
2969 else
2970 eval "$3=no"
2972 rm -f core conftest.err conftest.$ac_objext \
2973 conftest$ac_exeext conftest.$ac_ext
2975 eval ac_res=\$$3
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_func
2982 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2983 # ----------------------------------------------------
2984 # Tries to find if the field MEMBER exists in type AGGR, after including
2985 # INCLUDES, setting cache variable VAR accordingly.
2986 ac_fn_c_check_member ()
2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2990 $as_echo_n "checking for $2.$3... " >&6; }
2991 if eval \${$4+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2998 main (void)
3000 static $2 ac_aggr;
3001 if (ac_aggr.$3)
3002 return 0;
3004 return 0;
3006 _ACEOF
3007 if ac_fn_c_try_compile "$LINENO"; then :
3008 eval "$4=yes"
3009 else
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3014 main (void)
3016 static $2 ac_aggr;
3017 if (sizeof ac_aggr.$3)
3018 return 0;
3020 return 0;
3022 _ACEOF
3023 if ac_fn_c_try_compile "$LINENO"; then :
3024 eval "$4=yes"
3025 else
3026 eval "$4=no"
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 eval ac_res=\$$4
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034 $as_echo "$ac_res" >&6; }
3035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037 } # ac_fn_c_check_member
3039 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3040 # -------------------------------------------
3041 # Tests whether TYPE exists after having included INCLUDES, setting cache
3042 # variable VAR accordingly.
3043 ac_fn_c_check_type ()
3045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047 $as_echo_n "checking for $2... " >&6; }
3048 if eval \${$3+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 eval "$3=no"
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3056 main (void)
3058 if (sizeof ($2))
3059 return 0;
3061 return 0;
3063 _ACEOF
3064 if ac_fn_c_try_compile "$LINENO"; then :
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3069 main (void)
3071 if (sizeof (($2)))
3072 return 0;
3074 return 0;
3076 _ACEOF
3077 if ac_fn_c_try_compile "$LINENO"; then :
3079 else
3080 eval "$3=yes"
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 eval ac_res=\$$3
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3088 $as_echo "$ac_res" >&6; }
3089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3091 } # ac_fn_c_check_type
3093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3094 # ---------------------------------------------
3095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3096 # accordingly.
3097 ac_fn_c_check_decl ()
3099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3100 as_decl_name=`echo $2|sed 's/ *(.*//'`
3101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3104 if eval \${$3+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main (void)
3113 #ifndef $as_decl_name
3114 #ifdef __cplusplus
3115 (void) $as_decl_use;
3116 #else
3117 (void) $as_decl_name;
3118 #endif
3119 #endif
3122 return 0;
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126 eval "$3=yes"
3127 else
3128 eval "$3=no"
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 eval ac_res=\$$3
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134 $as_echo "$ac_res" >&6; }
3135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 } # ac_fn_c_check_decl
3138 cat >config.log <<_ACEOF
3139 This file contains any messages produced by compilers while
3140 running configure, to aid debugging if configure makes a mistake.
3142 It was created by GRUB $as_me 2.02~beta2, which was
3143 generated by GNU Autoconf 2.69. Invocation command line was
3145 $ $0 $@
3147 _ACEOF
3148 exec 5>>config.log
3150 cat <<_ASUNAME
3151 ## --------- ##
3152 ## Platform. ##
3153 ## --------- ##
3155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3167 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3172 _ASUNAME
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 $as_echo "PATH: $as_dir"
3180 done
3181 IFS=$as_save_IFS
3183 } >&5
3185 cat >&5 <<_ACEOF
3188 ## ----------- ##
3189 ## Core tests. ##
3190 ## ----------- ##
3192 _ACEOF
3195 # Keep a trace of the command line.
3196 # Strip out --no-create and --no-recursion so they do not pile up.
3197 # Strip out --silent because we don't want to record it for future runs.
3198 # Also quote any args containing shell meta-characters.
3199 # Make two passes to allow for proper duplicate-argument suppression.
3200 ac_configure_args=
3201 ac_configure_args0=
3202 ac_configure_args1=
3203 ac_must_keep_next=false
3204 for ac_pass in 1 2
3206 for ac_arg
3208 case $ac_arg in
3209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3211 | -silent | --silent | --silen | --sile | --sil)
3212 continue ;;
3213 *\'*)
3214 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3215 esac
3216 case $ac_pass in
3217 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3219 as_fn_append ac_configure_args1 " '$ac_arg'"
3220 if test $ac_must_keep_next = true; then
3221 ac_must_keep_next=false # Got value, back to normal.
3222 else
3223 case $ac_arg in
3224 *=* | --config-cache | -C | -disable-* | --disable-* \
3225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3227 | -with-* | --with-* | -without-* | --without-* | --x)
3228 case "$ac_configure_args0 " in
3229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3230 esac
3232 -* ) ac_must_keep_next=true ;;
3233 esac
3235 as_fn_append ac_configure_args " '$ac_arg'"
3237 esac
3238 done
3239 done
3240 { ac_configure_args0=; unset ac_configure_args0;}
3241 { ac_configure_args1=; unset ac_configure_args1;}
3243 # When interrupted or exit'd, cleanup temporary files, and complete
3244 # config.log. We remove comments because anyway the quotes in there
3245 # would cause problems or look ugly.
3246 # WARNING: Use '\'' to represent an apostrophe within the trap.
3247 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3248 trap 'exit_status=$?
3249 # Save into config.log some information that might help in debugging.
3251 echo
3253 $as_echo "## ---------------- ##
3254 ## Cache variables. ##
3255 ## ---------------- ##"
3256 echo
3257 # The following way of writing the cache mishandles newlines in values,
3259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3260 eval ac_val=\$$ac_var
3261 case $ac_val in #(
3262 *${as_nl}*)
3263 case $ac_var in #(
3264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3266 esac
3267 case $ac_var in #(
3268 _ | IFS | as_nl) ;; #(
3269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3270 *) { eval $ac_var=; unset $ac_var;} ;;
3271 esac ;;
3272 esac
3273 done
3274 (set) 2>&1 |
3275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3276 *${as_nl}ac_space=\ *)
3277 sed -n \
3278 "s/'\''/'\''\\\\'\'''\''/g;
3279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3280 ;; #(
3282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3284 esac |
3285 sort
3287 echo
3289 $as_echo "## ----------------- ##
3290 ## Output variables. ##
3291 ## ----------------- ##"
3292 echo
3293 for ac_var in $ac_subst_vars
3295 eval ac_val=\$$ac_var
3296 case $ac_val in
3297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298 esac
3299 $as_echo "$ac_var='\''$ac_val'\''"
3300 done | sort
3301 echo
3303 if test -n "$ac_subst_files"; then
3304 $as_echo "## ------------------- ##
3305 ## File substitutions. ##
3306 ## ------------------- ##"
3307 echo
3308 for ac_var in $ac_subst_files
3310 eval ac_val=\$$ac_var
3311 case $ac_val in
3312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3313 esac
3314 $as_echo "$ac_var='\''$ac_val'\''"
3315 done | sort
3316 echo
3319 if test -s confdefs.h; then
3320 $as_echo "## ----------- ##
3321 ## confdefs.h. ##
3322 ## ----------- ##"
3323 echo
3324 cat confdefs.h
3325 echo
3327 test "$ac_signal" != 0 &&
3328 $as_echo "$as_me: caught signal $ac_signal"
3329 $as_echo "$as_me: exit $exit_status"
3330 } >&5
3331 rm -f core *.core core.conftest.* &&
3332 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3333 exit $exit_status
3335 for ac_signal in 1 2 13 15; do
3336 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3337 done
3338 ac_signal=0
3340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3341 rm -f -r conftest* confdefs.h
3343 $as_echo "/* confdefs.h */" > confdefs.h
3345 # Predefined preprocessor variables.
3347 cat >>confdefs.h <<_ACEOF
3348 #define PACKAGE_NAME "$PACKAGE_NAME"
3349 _ACEOF
3351 cat >>confdefs.h <<_ACEOF
3352 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3353 _ACEOF
3355 cat >>confdefs.h <<_ACEOF
3356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3357 _ACEOF
3359 cat >>confdefs.h <<_ACEOF
3360 #define PACKAGE_STRING "$PACKAGE_STRING"
3361 _ACEOF
3363 cat >>confdefs.h <<_ACEOF
3364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3365 _ACEOF
3367 cat >>confdefs.h <<_ACEOF
3368 #define PACKAGE_URL "$PACKAGE_URL"
3369 _ACEOF
3372 # Let the site file select an alternate cache file if it wants to.
3373 # Prefer an explicitly selected file to automatically selected ones.
3374 ac_site_file1=NONE
3375 ac_site_file2=NONE
3376 if test -n "$CONFIG_SITE"; then
3377 # We do not want a PATH search for config.site.
3378 case $CONFIG_SITE in #((
3379 -*) ac_site_file1=./$CONFIG_SITE;;
3380 */*) ac_site_file1=$CONFIG_SITE;;
3381 *) ac_site_file1=./$CONFIG_SITE;;
3382 esac
3383 elif test "x$prefix" != xNONE; then
3384 ac_site_file1=$prefix/share/config.site
3385 ac_site_file2=$prefix/etc/config.site
3386 else
3387 ac_site_file1=$ac_default_prefix/share/config.site
3388 ac_site_file2=$ac_default_prefix/etc/config.site
3390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3392 test "x$ac_site_file" = xNONE && continue
3393 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3396 sed 's/^/| /' "$ac_site_file" >&5
3397 . "$ac_site_file" \
3398 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "failed to load site script $ac_site_file
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 done
3405 if test -r "$cache_file"; then
3406 # Some versions of bash will fail to source /dev/null (special files
3407 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3408 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3410 $as_echo "$as_me: loading cache $cache_file" >&6;}
3411 case $cache_file in
3412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3413 *) . "./$cache_file";;
3414 esac
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3418 $as_echo "$as_me: creating cache $cache_file" >&6;}
3419 >$cache_file
3422 gt_needs="$gt_needs "
3423 as_fn_append ac_func_list " flockfile"
3424 as_fn_append ac_func_list " funlockfile"
3425 as_fn_append ac_header_list " features.h"
3426 as_fn_append ac_header_list " linewrap.h"
3427 as_fn_append ac_func_list " btowc"
3428 as_fn_append ac_func_list " isblank"
3429 as_fn_append ac_func_list " iswctype"
3430 as_fn_append ac_func_list " mbsrtowcs"
3431 as_fn_append ac_func_list " mempcpy"
3432 as_fn_append ac_func_list " wmemchr"
3433 as_fn_append ac_func_list " wmemcpy"
3434 as_fn_append ac_func_list " wmempcpy"
3435 as_fn_append ac_header_list " wctype.h"
3436 as_fn_append ac_func_list " getdelim"
3437 gl_getopt_required=GNU
3438 as_fn_append ac_header_list " getopt.h"
3439 as_fn_append ac_header_list " langinfo.h"
3440 as_fn_append ac_header_list " unistd.h"
3441 as_fn_append ac_func_list " symlink"
3442 as_fn_append ac_header_list " xlocale.h"
3443 as_fn_append ac_func_list " mbsinit"
3444 as_fn_append ac_func_list " mbrtowc"
3445 as_fn_append ac_header_list " wchar.h"
3446 as_fn_append ac_func_list " isascii"
3447 as_fn_append ac_header_list " sys/mman.h"
3448 as_fn_append ac_func_list " mprotect"
3449 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3450 as_fn_append ac_func_list " nl_langinfo"
3451 as_fn_append ac_func_list " wcscoll"
3452 as_fn_append ac_func_list " sleep"
3453 as_fn_append ac_header_list " stdint.h"
3454 as_fn_append ac_header_list " sys/socket.h"
3455 as_fn_append ac_header_list " strings.h"
3456 as_fn_append ac_func_list " strndup"
3457 as_fn_append ac_header_list " sysexits.h"
3458 as_fn_append ac_func_list " vasnprintf"
3459 as_fn_append ac_func_list " snprintf"
3460 as_fn_append ac_func_list " wcrtomb"
3461 as_fn_append ac_func_list " iswcntrl"
3462 as_fn_append ac_func_list " wcwidth"
3463 # Check that the precious variables saved in the cache have kept the same
3464 # value.
3465 ac_cache_corrupted=false
3466 for ac_var in $ac_precious_vars; do
3467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3468 eval ac_new_set=\$ac_env_${ac_var}_set
3469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3470 eval ac_new_val=\$ac_env_${ac_var}_value
3471 case $ac_old_set,$ac_new_set in
3472 set,)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3475 ac_cache_corrupted=: ;;
3476 ,set)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3479 ac_cache_corrupted=: ;;
3480 ,);;
3482 if test "x$ac_old_val" != "x$ac_new_val"; then
3483 # differences in whitespace do not lead to failure.
3484 ac_old_val_w=`echo x $ac_old_val`
3485 ac_new_val_w=`echo x $ac_new_val`
3486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3489 ac_cache_corrupted=:
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3493 eval $ac_var=\$ac_old_val
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3499 fi;;
3500 esac
3501 # Pass precious variables to config.status.
3502 if test "$ac_new_set" = set; then
3503 case $ac_new_val in
3504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3505 *) ac_arg=$ac_var=$ac_new_val ;;
3506 esac
3507 case " $ac_configure_args " in
3508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3510 esac
3512 done
3513 if $ac_cache_corrupted; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3520 ## -------------------- ##
3521 ## Main body of script. ##
3522 ## -------------------- ##
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 ac_aux_dir=
3533 for ac_dir in build-aux "$srcdir"/build-aux; do
3534 if test -f "$ac_dir/install-sh"; then
3535 ac_aux_dir=$ac_dir
3536 ac_install_sh="$ac_aux_dir/install-sh -c"
3537 break
3538 elif test -f "$ac_dir/install.sh"; then
3539 ac_aux_dir=$ac_dir
3540 ac_install_sh="$ac_aux_dir/install.sh -c"
3541 break
3542 elif test -f "$ac_dir/shtool"; then
3543 ac_aux_dir=$ac_dir
3544 ac_install_sh="$ac_aux_dir/shtool install -c"
3545 break
3547 done
3548 if test -z "$ac_aux_dir"; then
3549 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3552 # These three variables are undocumented and unsupported,
3553 # and are intended to be withdrawn in a future Autoconf release.
3554 # They can cause serious problems if a builder's source tree is in a directory
3555 # whose full name contains unusual characters.
3556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3562 # We don't want -g -O2 by default in CFLAGS
3563 : ${CFLAGS=""}
3565 # Checks for build, host and target systems.
3566 # Make sure we can run config.sub.
3567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3568 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3571 $as_echo_n "checking build system type... " >&6; }
3572 if ${ac_cv_build+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_build_alias=$build_alias
3576 test "x$ac_build_alias" = x &&
3577 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3578 test "x$ac_build_alias" = x &&
3579 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3580 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3581 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3585 $as_echo "$ac_cv_build" >&6; }
3586 case $ac_cv_build in
3587 *-*-*) ;;
3588 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3589 esac
3590 build=$ac_cv_build
3591 ac_save_IFS=$IFS; IFS='-'
3592 set x $ac_cv_build
3593 shift
3594 build_cpu=$1
3595 build_vendor=$2
3596 shift; shift
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3599 build_os=$*
3600 IFS=$ac_save_IFS
3601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3605 $as_echo_n "checking host system type... " >&6; }
3606 if ${ac_cv_host+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3611 else
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3618 $as_echo "$ac_cv_host" >&6; }
3619 case $ac_cv_host in
3620 *-*-*) ;;
3621 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3622 esac
3623 host=$ac_cv_host
3624 ac_save_IFS=$IFS; IFS='-'
3625 set x $ac_cv_host
3626 shift
3627 host_cpu=$1
3628 host_vendor=$2
3629 shift; shift
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3632 host_os=$*
3633 IFS=$ac_save_IFS
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 save_program_prefix="${program_prefix}"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3639 $as_echo_n "checking target system type... " >&6; }
3640 if ${ac_cv_target+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test "x$target_alias" = x; then
3644 ac_cv_target=$ac_cv_host
3645 else
3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3652 $as_echo "$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3654 *-*-*) ;;
3655 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3656 esac
3657 target=$ac_cv_target
3658 ac_save_IFS=$IFS; IFS='-'
3659 set x $ac_cv_target
3660 shift
3661 target_cpu=$1
3662 target_vendor=$2
3663 shift; shift
3664 # Remember, the first character of IFS is used to create $*,
3665 # except with old shells:
3666 target_os=$*
3667 IFS=$ac_save_IFS
3668 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671 # The aliases save the names the user supplied, while $host etc.
3672 # will get canonicalized.
3673 test -n "$target_alias" &&
3674 test "$program_prefix$program_suffix$program_transform_name" = \
3675 NONENONEs,x,x, &&
3676 program_prefix=${target_alias}-
3677 program_prefix="${save_program_prefix}"
3679 am__api_version='1.13'
3681 # Find a good install program. We prefer a C program (faster),
3682 # so one script is as good as another. But avoid the broken or
3683 # incompatible versions:
3684 # SysV /etc/install, /usr/sbin/install
3685 # SunOS /usr/etc/install
3686 # IRIX /sbin/install
3687 # AIX /bin/install
3688 # AmigaOS /C/install, which installs bootblocks on floppy discs
3689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3692 # OS/2's system install, which has a completely different semantic
3693 # ./install, which can be erroneously created by make from ./install.sh.
3694 # Reject install programs that cannot install multiple files.
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3696 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3697 if test -z "$INSTALL"; then
3698 if ${ac_cv_path_install+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 # Account for people who put trailing slashes in PATH elements.
3707 case $as_dir/ in #((
3708 ./ | .// | /[cC]/* | \
3709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3710 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3711 /usr/ucb/* ) ;;
3713 # OSF1 and SCO ODT 3.0 have their own names for install.
3714 # Don't use installbsd from OSF since it installs stuff as root
3715 # by default.
3716 for ac_prog in ginstall scoinst install; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3719 if test $ac_prog = install &&
3720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3721 # AIX install. It has an incompatible calling convention.
3723 elif test $ac_prog = install &&
3724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725 # program-specific install script used by HP pwplus--don't use.
3727 else
3728 rm -rf conftest.one conftest.two conftest.dir
3729 echo one > conftest.one
3730 echo two > conftest.two
3731 mkdir conftest.dir
3732 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3733 test -s conftest.one && test -s conftest.two &&
3734 test -s conftest.dir/conftest.one &&
3735 test -s conftest.dir/conftest.two
3736 then
3737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3738 break 3
3742 done
3743 done
3745 esac
3747 done
3748 IFS=$as_save_IFS
3750 rm -rf conftest.one conftest.two conftest.dir
3753 if test "${ac_cv_path_install+set}" = set; then
3754 INSTALL=$ac_cv_path_install
3755 else
3756 # As a last resort, use the slow shell script. Don't cache a
3757 # value for INSTALL within a source directory, because that will
3758 # break other packages using the cache if that directory is
3759 # removed, or if the value is a relative name.
3760 INSTALL=$ac_install_sh
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3764 $as_echo "$INSTALL" >&6; }
3766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3767 # It thinks the first close brace ends the variable substitution.
3768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3775 $as_echo_n "checking whether build environment is sane... " >&6; }
3776 # Reject unsafe characters in $srcdir or the absolute working directory
3777 # name. Accept space and tab only in the latter.
3778 am_lf='
3780 case `pwd` in
3781 *[\\\"\#\$\&\'\`$am_lf]*)
3782 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3783 esac
3784 case $srcdir in
3785 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3786 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3787 esac
3789 # Do 'set' in a subshell so we don't clobber the current shell's
3790 # arguments. Must try -L first in case configure is actually a
3791 # symlink; some systems play weird games with the mod time of symlinks
3792 # (eg FreeBSD returns the mod time of the symlink's containing
3793 # directory).
3794 if (
3795 am_has_slept=no
3796 for am_try in 1 2; do
3797 echo "timestamp, slept: $am_has_slept" > conftest.file
3798 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3799 if test "$*" = "X"; then
3800 # -L didn't work.
3801 set X `ls -t "$srcdir/configure" conftest.file`
3803 if test "$*" != "X $srcdir/configure conftest.file" \
3804 && test "$*" != "X conftest.file $srcdir/configure"; then
3806 # If neither matched, then we have a broken ls. This can happen
3807 # if, for instance, CONFIG_SHELL is bash and it inherits a
3808 # broken ls alias from the environment. This has actually
3809 # happened. Such a system could not be considered "sane".
3810 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3811 alias in your environment" "$LINENO" 5
3813 if test "$2" = conftest.file || test $am_try -eq 2; then
3814 break
3816 # Just in case.
3817 sleep 1
3818 am_has_slept=yes
3819 done
3820 test "$2" = conftest.file
3822 then
3823 # Ok.
3825 else
3826 as_fn_error $? "newly created file is older than distributed files!
3827 Check your system clock" "$LINENO" 5
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 # If we didn't sleep, we still need to ensure time stamps of config.status and
3832 # generated files are strictly newer.
3833 am_sleep_pid=
3834 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3835 ( sleep 1 ) &
3836 am_sleep_pid=$!
3839 rm -f conftest.file
3841 test "$program_prefix" != NONE &&
3842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3843 # Use a double $ so make ignores it.
3844 test "$program_suffix" != NONE &&
3845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3846 # Double any \ or $.
3847 # By default was `s,x,x', remove it if useless.
3848 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3849 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3851 # expand $ac_aux_dir to an absolute path
3852 am_aux_dir=`cd $ac_aux_dir && pwd`
3854 if test x"${MISSING+set}" != xset; then
3855 case $am_aux_dir in
3856 *\ * | *\ *)
3857 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3859 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3860 esac
3862 # Use eval to expand $SHELL
3863 if eval "$MISSING --is-lightweight"; then
3864 am_missing_run="$MISSING "
3865 else
3866 am_missing_run=
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3868 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3871 if test x"${install_sh}" != xset; then
3872 case $am_aux_dir in
3873 *\ * | *\ *)
3874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3876 install_sh="\${SHELL} $am_aux_dir/install-sh"
3877 esac
3880 # Installed binaries are usually stripped using 'strip' when the user
3881 # run "make install-strip". However 'strip' might not be the right
3882 # tool to use in cross-compilation environments, therefore Automake
3883 # will honor the 'STRIP' environment variable to overrule this program.
3884 if test "$cross_compiling" != no; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}strip; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_STRIP+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test -n "$STRIP"; then
3894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3907 done
3908 done
3909 IFS=$as_save_IFS
3913 STRIP=$ac_cv_prog_STRIP
3914 if test -n "$STRIP"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3916 $as_echo "$STRIP" >&6; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3924 if test -z "$ac_cv_prog_STRIP"; then
3925 ac_ct_STRIP=$STRIP
3926 # Extract the first word of "strip", so it can be a program name with args.
3927 set dummy strip; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$ac_ct_STRIP"; then
3934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_STRIP="strip"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3954 if test -n "$ac_ct_STRIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3956 $as_echo "$ac_ct_STRIP" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3962 if test "x$ac_ct_STRIP" = x; then
3963 STRIP=":"
3964 else
3965 case $cross_compiling:$ac_tool_warned in
3966 yes:)
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned=yes ;;
3970 esac
3971 STRIP=$ac_ct_STRIP
3973 else
3974 STRIP="$ac_cv_prog_STRIP"
3978 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3981 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3982 if test -z "$MKDIR_P"; then
3983 if ${ac_cv_path_mkdir+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in mkdir gmkdir; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3995 'mkdir (GNU coreutils) '* | \
3996 'mkdir (coreutils) '* | \
3997 'mkdir (fileutils) '4.1*)
3998 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3999 break 3;;
4000 esac
4001 done
4002 done
4003 done
4004 IFS=$as_save_IFS
4008 test -d ./--version && rmdir ./--version
4009 if test "${ac_cv_path_mkdir+set}" = set; then
4010 MKDIR_P="$ac_cv_path_mkdir -p"
4011 else
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for MKDIR_P within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 MKDIR_P="$ac_install_sh -d"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4020 $as_echo "$MKDIR_P" >&6; }
4022 for ac_prog in gawk mawk nawk awk
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_AWK+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$AWK"; then
4032 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_AWK="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 AWK=$ac_cv_prog_AWK
4052 if test -n "$AWK"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4054 $as_echo "$AWK" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$AWK" && break
4062 done
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4065 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4066 set x ${MAKE-make}
4067 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4068 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat >conftest.make <<\_ACEOF
4072 SHELL = /bin/sh
4073 all:
4074 @echo '@@@%%%=$(MAKE)=@@@%%%'
4075 _ACEOF
4076 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4078 *@@@%%%=?*=@@@%%%*)
4079 eval ac_cv_prog_make_${ac_make}_set=yes;;
4081 eval ac_cv_prog_make_${ac_make}_set=no;;
4082 esac
4083 rm -f conftest.make
4085 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 SET_MAKE=
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 SET_MAKE="MAKE=${MAKE-make}"
4095 rm -rf .tst 2>/dev/null
4096 mkdir .tst 2>/dev/null
4097 if test -d .tst; then
4098 am__leading_dot=.
4099 else
4100 am__leading_dot=_
4102 rmdir .tst 2>/dev/null
4104 # Check whether --enable-silent-rules was given.
4105 if test "${enable_silent_rules+set}" = set; then :
4106 enableval=$enable_silent_rules;
4109 case $enable_silent_rules in # (((
4110 yes) AM_DEFAULT_VERBOSITY=0;;
4111 no) AM_DEFAULT_VERBOSITY=1;;
4112 *) AM_DEFAULT_VERBOSITY=1;;
4113 esac
4114 am_make=${MAKE-make}
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4116 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4117 if ${am_cv_make_support_nested_variables+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if $as_echo 'TRUE=$(BAR$(V))
4121 BAR0=false
4122 BAR1=true
4124 am__doit:
4125 @$(TRUE)
4126 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4127 am_cv_make_support_nested_variables=yes
4128 else
4129 am_cv_make_support_nested_variables=no
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4133 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4134 if test $am_cv_make_support_nested_variables = yes; then
4135 AM_V='$(V)'
4136 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4137 else
4138 AM_V=$AM_DEFAULT_VERBOSITY
4139 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4141 AM_BACKSLASH='\'
4143 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4145 # is not polluted with repeated "-I."
4146 am__isrc=' -I$(srcdir)'
4147 # test to see if srcdir already configured
4148 if test -f $srcdir/config.status; then
4149 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4153 # test whether we have cygpath
4154 if test -z "$CYGPATH_W"; then
4155 if (cygpath --version) >/dev/null 2>/dev/null; then
4156 CYGPATH_W='cygpath -w'
4157 else
4158 CYGPATH_W=echo
4163 # Define the identity of the package.
4164 PACKAGE='grub'
4165 VERSION='2.02~beta2'
4168 cat >>confdefs.h <<_ACEOF
4169 #define PACKAGE "$PACKAGE"
4170 _ACEOF
4173 cat >>confdefs.h <<_ACEOF
4174 #define VERSION "$VERSION"
4175 _ACEOF
4177 # Some tools Automake needs.
4179 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4185 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4191 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4193 # For better backward compatibility. To be removed once Automake 1.9.x
4194 # dies out for good. For more background, see:
4195 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4196 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4197 mkdir_p='$(MKDIR_P)'
4199 # We need awk for the "check" target. The system "awk" is bad on
4200 # some platforms.
4201 # Always define AMTAR for backward compatibility. Yes, it's still used
4202 # in the wild :-( We should find a proper way to deprecate it ...
4203 AMTAR='$${TAR-tar}'
4206 # We'll loop over all known methods to create a tar archive until one works.
4207 _am_tools='gnutar pax cpio none'
4209 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4218 ac_config_headers="$ac_config_headers config-util.h"
4221 # Program name transformations
4223 grub_bios_setup=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4225 grub_editenv=`$as_echo grub-editenv | sed "$program_transform_name"`
4227 grub_install=`$as_echo grub-install | sed "$program_transform_name"`
4229 grub_mkconfig=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4231 grub_mkfont=`$as_echo grub-mkfont | sed "$program_transform_name"`
4233 grub_mkimage=`$as_echo grub-mkimage | sed "$program_transform_name"`
4235 grub_glue_efi=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4237 grub_mklayout=`$as_echo grub-mklayout | sed "$program_transform_name"`
4239 grub_mkpasswd_pbkdf2=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4241 grub_mkrelpath=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4243 grub_mkrescue=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4245 grub_probe=`$as_echo grub-probe | sed "$program_transform_name"`
4247 grub_reboot=`$as_echo grub-reboot | sed "$program_transform_name"`
4249 grub_script_check=`$as_echo grub-script-check | sed "$program_transform_name"`
4251 grub_set_default=`$as_echo grub-set-default | sed "$program_transform_name"`
4253 grub_sparc64_setup=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4255 grub_render_label=`$as_echo grub-render-label | sed "$program_transform_name"`
4257 grub_file=`$as_echo grub-file | sed "$program_transform_name"`
4260 # Optimization flag. Allow user to override.
4261 if test "x$TARGET_CFLAGS" = x; then
4262 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
4265 # Default HOST_CPPFLAGS
4266 HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
4267 HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
4268 HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4270 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
4271 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
4272 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
4274 case "$target_cpu" in
4275 i[3456]86) target_cpu=i386 ;;
4276 amd64) target_cpu=x86_64 ;;
4277 sparc) target_cpu=sparc64 ;;
4278 mipsel|mips64el)
4279 target_cpu=mipsel
4280 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1"
4282 mips|mips64)
4283 target_cpu=mips
4284 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1"
4286 arm*)
4287 target_cpu=arm
4289 aarch64*)
4290 target_cpu=arm64
4292 esac
4294 # Specify the platform (such as firmware).
4296 # Check whether --with-platform was given.
4297 if test "${with_platform+set}" = set; then :
4298 withval=$with_platform;
4302 # Guess the platform if not specified.
4303 if test "x$with_platform" = x; then
4304 case "$target_cpu"-"$target_vendor" in
4305 i386-apple) platform=efi ;;
4306 i386-*) platform=pc ;;
4307 x86_64-apple) platform=efi ;;
4308 x86_64-*) platform=pc ;;
4309 powerpc-*) platform=ieee1275 ;;
4310 powerpc64-*) platform=ieee1275 ;;
4311 sparc64-*) platform=ieee1275 ;;
4312 mipsel-*) platform=loongson ;;
4313 mips-*) platform=arc ;;
4314 ia64-*) platform=efi ;;
4315 arm-*) platform=uboot ;;
4316 arm64-*) platform=efi ;;
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&5
4319 $as_echo "$as_me: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&2;}
4320 platform=none
4322 esac
4323 else
4324 platform="$with_platform"
4327 case "$target_cpu"-"$platform" in
4328 x86_64-efi) ;;
4329 x86_64-emu) ;;
4330 x86_64-xen) ;;
4331 x86_64-none) ;;
4332 x86_64-*) target_cpu=i386 ;;
4333 powerpc64-ieee1275) target_cpu=powerpc ;;
4334 esac
4336 # Check if the platform is supported, make final adjustments.
4337 case "$target_cpu"-"$platform" in
4338 i386-efi) ;;
4339 x86_64-efi) ;;
4340 i386-xen) ;;
4341 x86_64-xen) ;;
4342 i386-pc) ;;
4343 i386-multiboot) ;;
4344 i386-coreboot) ;;
4345 i386-linuxbios) platform=coreboot ;;
4346 i386-ieee1275) ;;
4347 i386-qemu) ;;
4348 powerpc-ieee1275) ;;
4349 sparc64-ieee1275) ;;
4350 ia64-efi) ;;
4351 mips-qemu_mips) ;;
4352 mips-qemu-mips) platform=qemu_mips;;
4353 mips-arc) ;;
4354 mipsel-arc) ;;
4355 mipsel-qemu_mips) ;;
4356 mipsel-qemu-mips) platform=qemu_mips;;
4357 mipsel-yeeloong) platform=loongson ;;
4358 mipsel-fuloong) platform=loongson ;;
4359 mipsel-loongson) ;;
4360 arm-uboot) ;;
4361 arm-efi) ;;
4362 arm64-efi) ;;
4363 *-emu) ;;
4364 *-none) ;;
4365 *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
4366 esac
4368 if test x$platform != xemu ; then
4369 case "$target_cpu" in
4370 i386 | powerpc) target_m32=1 ;;
4371 x86_64 | sparc64) target_m64=1 ;;
4372 esac
4375 if test x"$target_cpu-$platform" = xsparc64-emu ; then
4376 target_m64=1
4379 case "$target_os" in
4380 windows* | mingw32*) target_os=cygwin ;;
4381 esac
4383 # This normalizes the names, and creates a new variable ("host_kernel")
4384 # while at it, since the mapping is not always 1:1 (e.g. different OSes
4385 # using the same kernel type).
4386 case "$host_os" in
4387 gnu*) host_kernel=hurd ;;
4388 linux*) host_kernel=linux ;;
4389 freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
4390 netbsd*) host_kernel=netbsd ;;
4391 solaris*) host_kernel=illumos ;;
4392 darwin*) host_kernel=xnu ;;
4393 cygwin | windows* | mingw32*) host_kernel=windows ;;
4394 esac
4396 case "$host_os" in
4397 cygwin | windows* | mingw32*) have_exec=n ;;
4398 aros*) have_exec=n ;;
4399 *) have_exec=y;;
4400 esac
4402 case "$platform" in
4403 coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4404 multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4405 efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
4406 xen) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
4407 ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
4408 uboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
4409 qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4410 pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4411 emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
4412 loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4413 qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
4414 arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
4415 esac
4416 if test x${target_cpu} = xmipsel ; then
4417 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4418 else
4419 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4422 case "${target_cpu}-$platform" in
4423 mips-arc)
4424 TARGET_LINK_ADDR=0x88200000
4425 TARGET_DECOMPRESSOR_LINK_ADDR=0x88100000
4427 mipsel-arc)
4428 TARGET_LINK_ADDR=0x80700000
4429 TARGET_DECOMPRESSOR_LINK_ADDR=0x80600000
4431 mips*-qemu_mips | mips*-loongson)
4432 TARGET_DECOMPRESSOR_LINK_ADDR=0x80100000
4434 esac
4439 TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4448 # Define default variables
4450 have_with_bootdir=n
4452 # Check whether --with-bootdir was given.
4453 if test "${with_bootdir+set}" = set; then :
4454 withval=$with_bootdir; have_with_bootdir=y
4455 else
4456 have_with_bootdir=n
4459 if test x$have_with_bootdir = xy; then
4460 bootdirname="$with_bootdir"
4461 else
4462 case "$host_os" in
4463 netbsd* | openbsd*)
4464 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4465 bootdirname='' ;;
4466 *) bootdirname='boot' ;;
4467 esac
4472 cat >>confdefs.h <<_ACEOF
4473 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4474 _ACEOF
4478 # Check whether --with-grubdir was given.
4479 if test "${with_grubdir+set}" = set; then :
4480 withval=$with_grubdir; grubdirname="$with_grubdir"
4481 else
4482 grubdirname="$PACKAGE"
4488 cat >>confdefs.h <<_ACEOF
4489 #define GRUB_DIR_NAME "$grubdirname"
4490 _ACEOF
4494 # Checks for build programs.
4497 # Although cmp is listed in the GNU Coding Standards as a command which
4498 # can used directly, OpenBSD lacks cmp in the default installation.
4499 for ac_prog in cmp
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CMP+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$CMP"; then
4509 ac_cv_prog_CMP="$CMP" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CMP="$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 CMP=$ac_cv_prog_CMP
4529 if test -n "$CMP"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4531 $as_echo "$CMP" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$CMP" && break
4539 done
4541 if test "x$CMP" = x; then
4542 as_fn_error $? "cmp is not found" "$LINENO" 5
4545 for ac_prog in bison
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_YACC+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$YACC"; then
4555 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_YACC="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 YACC=$ac_cv_prog_YACC
4575 if test -n "$YACC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4577 $as_echo "$YACC" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$YACC" && break
4585 done
4587 if test "x$YACC" = x; then
4588 as_fn_error $? "bison is not found" "$LINENO" 5
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_RANLIB+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$RANLIB"; then
4600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 RANLIB=$ac_cv_prog_RANLIB
4620 if test -n "$RANLIB"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4622 $as_echo "$RANLIB" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_RANLIB"; then
4631 ac_ct_RANLIB=$RANLIB
4632 # Extract the first word of "ranlib", so it can be a program name with args.
4633 set dummy ranlib; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_RANLIB"; then
4640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_RANLIB="ranlib"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4660 if test -n "$ac_ct_RANLIB"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4662 $as_echo "$ac_ct_RANLIB" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_RANLIB" = x; then
4669 RANLIB=":"
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 RANLIB=$ac_ct_RANLIB
4679 else
4680 RANLIB="$ac_cv_prog_RANLIB"
4684 for ac_prog in gawk mawk nawk awk
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_AWK+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$AWK"; then
4694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_AWK="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 AWK=$ac_cv_prog_AWK
4714 if test -n "$AWK"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4716 $as_echo "$AWK" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$AWK" && break
4724 done
4726 DEPDIR="${am__leading_dot}deps"
4728 ac_config_commands="$ac_config_commands depfiles"
4731 am_make=${MAKE-make}
4732 cat > confinc << 'END'
4733 am__doit:
4734 @echo this is the am__doit target
4735 .PHONY: am__doit
4737 # If we don't find an include directive, just comment out the code.
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4739 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4740 am__include="#"
4741 am__quote=
4742 _am_result=none
4743 # First try GNU make style include.
4744 echo "include confinc" > confmf
4745 # Ignore all kinds of additional output from 'make'.
4746 case `$am_make -s -f confmf 2> /dev/null` in #(
4747 *the\ am__doit\ target*)
4748 am__include=include
4749 am__quote=
4750 _am_result=GNU
4752 esac
4753 # Now try BSD make style include.
4754 if test "$am__include" = "#"; then
4755 echo '.include "confinc"' > confmf
4756 case `$am_make -s -f confmf 2> /dev/null` in #(
4757 *the\ am__doit\ target*)
4758 am__include=.include
4759 am__quote="\""
4760 _am_result=BSD
4762 esac
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4767 $as_echo "$_am_result" >&6; }
4768 rm -f confinc confmf
4770 # Check whether --enable-dependency-tracking was given.
4771 if test "${enable_dependency_tracking+set}" = set; then :
4772 enableval=$enable_dependency_tracking;
4775 if test "x$enable_dependency_tracking" != xno; then
4776 am_depcomp="$ac_aux_dir/depcomp"
4777 AMDEPBACKSLASH='\'
4778 am__nodep='_no'
4780 if test "x$enable_dependency_tracking" != xno; then
4781 AMDEP_TRUE=
4782 AMDEP_FALSE='#'
4783 else
4784 AMDEP_TRUE='#'
4785 AMDEP_FALSE=
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 if test -n "$ac_tool_prefix"; then
4795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_CC+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$CC"; then
4803 ac_cv_prog_CC="$CC" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 CC=$ac_cv_prog_CC
4823 if test -n "$CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825 $as_echo "$CC" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4833 if test -z "$ac_cv_prog_CC"; then
4834 ac_ct_CC=$CC
4835 # Extract the first word of "gcc", so it can be a program name with args.
4836 set dummy gcc; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$ac_ct_CC"; then
4843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_ac_ct_CC="gcc"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4856 done
4857 done
4858 IFS=$as_save_IFS
4862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4863 if test -n "$ac_ct_CC"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4865 $as_echo "$ac_ct_CC" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4871 if test "x$ac_ct_CC" = x; then
4872 CC=""
4873 else
4874 case $cross_compiling:$ac_tool_warned in
4875 yes:)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878 ac_tool_warned=yes ;;
4879 esac
4880 CC=$ac_ct_CC
4882 else
4883 CC="$ac_cv_prog_CC"
4886 if test -z "$CC"; then
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}cc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$CC"; then
4896 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC="${ac_tool_prefix}cc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4927 if test -z "$CC"; then
4928 # Extract the first word of "cc", so it can be a program name with args.
4929 set dummy cc; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_CC+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$CC"; then
4936 ac_cv_prog_CC="$CC" # Let the user override the test.
4937 else
4938 ac_prog_rejected=no
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4947 ac_prog_rejected=yes
4948 continue
4950 ac_cv_prog_CC="cc"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4958 if test $ac_prog_rejected = yes; then
4959 # We found a bogon in the path, so make sure we never use it.
4960 set dummy $ac_cv_prog_CC
4961 shift
4962 if test $# != 0; then
4963 # We chose a different compiler from the bogus one.
4964 # However, it has the same basename, so the bogon will be chosen
4965 # first if we set CC to just the basename; use the full file name.
4966 shift
4967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4972 CC=$ac_cv_prog_CC
4973 if test -n "$CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 $as_echo "$CC" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4983 if test -z "$CC"; then
4984 if test -n "$ac_tool_prefix"; then
4985 for ac_prog in cl.exe
4987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_CC+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$CC"; then
4995 ac_cv_prog_CC="$CC" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 CC=$ac_cv_prog_CC
5015 if test -n "$CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5017 $as_echo "$CC" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 test -n "$CC" && break
5025 done
5027 if test -z "$CC"; then
5028 ac_ct_CC=$CC
5029 for ac_prog in cl.exe
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_CC"; then
5039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_ac_ct_CC="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5059 if test -n "$ac_ct_CC"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5061 $as_echo "$ac_ct_CC" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$ac_ct_CC" && break
5069 done
5071 if test "x$ac_ct_CC" = x; then
5072 CC=""
5073 else
5074 case $cross_compiling:$ac_tool_warned in
5075 yes:)
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned=yes ;;
5079 esac
5080 CC=$ac_ct_CC
5087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error $? "no acceptable C compiler found in \$PATH
5090 See \`config.log' for more details" "$LINENO" 5; }
5092 # Provide some information about the compiler.
5093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5094 set X $ac_compile
5095 ac_compiler=$2
5096 for ac_option in --version -v -V -qversion; do
5097 { { ac_try="$ac_compiler $ac_option >&5"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5103 $as_echo "$ac_try_echo"; } >&5
5104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5105 ac_status=$?
5106 if test -s conftest.err; then
5107 sed '10a\
5108 ... rest of stderr output deleted ...
5109 10q' conftest.err >conftest.er1
5110 cat conftest.er1 >&5
5112 rm -f conftest.er1 conftest.err
5113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5114 test $ac_status = 0; }
5115 done
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5121 main (void)
5125 return 0;
5127 _ACEOF
5128 ac_clean_files_save=$ac_clean_files
5129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5130 # Try to create an executable without -o first, disregard a.out.
5131 # It will help us diagnose broken compilers, and finding out an intuition
5132 # of exeext.
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5134 $as_echo_n "checking whether the C compiler works... " >&6; }
5135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5137 # The possible output files:
5138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5140 ac_rmfiles=
5141 for ac_file in $ac_files
5143 case $ac_file in
5144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5146 esac
5147 done
5148 rm -f $ac_rmfiles
5150 if { { ac_try="$ac_link_default"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_link_default") 2>&5
5158 ac_status=$?
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; then :
5161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5164 # so that the user can short-circuit this test for compilers unknown to
5165 # Autoconf.
5166 for ac_file in $ac_files ''
5168 test -f "$ac_file" || continue
5169 case $ac_file in
5170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5172 [ab].out )
5173 # We found the default executable, but exeext='' is most
5174 # certainly right.
5175 break;;
5176 *.* )
5177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5178 then :; else
5179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5181 # We set ac_cv_exeext here because the later test for it is not
5182 # safe: cross compilers may not add the suffix if given an `-o'
5183 # argument, so we may need to know it at that point already.
5184 # Even if this section looks crufty: it has the advantage of
5185 # actually working.
5186 break;;
5188 break;;
5189 esac
5190 done
5191 test "$ac_cv_exeext" = no && ac_cv_exeext=
5193 else
5194 ac_file=''
5196 if test -z "$ac_file"; then :
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 $as_echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5204 as_fn_error 77 "C compiler cannot create executables
5205 See \`config.log' for more details" "$LINENO" 5; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5211 $as_echo_n "checking for C compiler default output file name... " >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5213 $as_echo "$ac_file" >&6; }
5214 ac_exeext=$ac_cv_exeext
5216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5217 ac_clean_files=$ac_clean_files_save
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5219 $as_echo_n "checking for suffix of executables... " >&6; }
5220 if { { ac_try="$ac_link"
5221 case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226 $as_echo "$ac_try_echo"; } >&5
5227 (eval "$ac_link") 2>&5
5228 ac_status=$?
5229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; then :
5231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5233 # work properly (i.e., refer to `conftest.exe'), while it won't with
5234 # `rm'.
5235 for ac_file in conftest.exe conftest conftest.*; do
5236 test -f "$ac_file" || continue
5237 case $ac_file in
5238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5240 break;;
5241 * ) break;;
5242 esac
5243 done
5244 else
5245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5248 See \`config.log' for more details" "$LINENO" 5; }
5250 rm -f conftest conftest$ac_cv_exeext
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5252 $as_echo "$ac_cv_exeext" >&6; }
5254 rm -f conftest.$ac_ext
5255 EXEEXT=$ac_cv_exeext
5256 ac_exeext=$EXEEXT
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <stdio.h>
5261 main (void)
5263 FILE *f = fopen ("conftest.out", "w");
5264 return ferror (f) || fclose (f) != 0;
5267 return 0;
5269 _ACEOF
5270 ac_clean_files="$ac_clean_files conftest.out"
5271 # Check that the compiler produces executables we can run. If not, either
5272 # the compiler is broken, or we cross compile.
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5274 $as_echo_n "checking whether we are cross compiling... " >&6; }
5275 if test "$cross_compiling" != yes; then
5276 { { ac_try="$ac_link"
5277 case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5282 $as_echo "$ac_try_echo"; } >&5
5283 (eval "$ac_link") 2>&5
5284 ac_status=$?
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }
5287 if { ac_try='./conftest$ac_cv_exeext'
5288 { { case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5293 $as_echo "$ac_try_echo"; } >&5
5294 (eval "$ac_try") 2>&5
5295 ac_status=$?
5296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297 test $ac_status = 0; }; }; then
5298 cross_compiling=no
5299 else
5300 if test "$cross_compiling" = maybe; then
5301 cross_compiling=yes
5302 else
5303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5305 as_fn_error $? "cannot run C compiled programs.
5306 If you meant to cross compile, use \`--host'.
5307 See \`config.log' for more details" "$LINENO" 5; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5312 $as_echo "$cross_compiling" >&6; }
5314 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5315 ac_clean_files=$ac_clean_files_save
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5317 $as_echo_n "checking for suffix of object files... " >&6; }
5318 if ${ac_cv_objext+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5325 main (void)
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.o conftest.obj
5333 if { { ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5339 $as_echo "$ac_try_echo"; } >&5
5340 (eval "$ac_compile") 2>&5
5341 ac_status=$?
5342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343 test $ac_status = 0; }; then :
5344 for ac_file in conftest.o conftest.obj conftest.*; do
5345 test -f "$ac_file" || continue;
5346 case $ac_file in
5347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5349 break;;
5350 esac
5351 done
5352 else
5353 $as_echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358 as_fn_error $? "cannot compute suffix of object files: cannot compile
5359 See \`config.log' for more details" "$LINENO" 5; }
5361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5364 $as_echo "$ac_cv_objext" >&6; }
5365 OBJEXT=$ac_cv_objext
5366 ac_objext=$OBJEXT
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5368 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5369 if ${ac_cv_c_compiler_gnu+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5376 main (void)
5378 #ifndef __GNUC__
5379 choke me
5380 #endif
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_compiler_gnu=yes
5388 else
5389 ac_compiler_gnu=no
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5396 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5397 if test $ac_compiler_gnu = yes; then
5398 GCC=yes
5399 else
5400 GCC=
5402 ac_test_CFLAGS=${CFLAGS+set}
5403 ac_save_CFLAGS=$CFLAGS
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5405 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5406 if ${ac_cv_prog_cc_g+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 ac_save_c_werror_flag=$ac_c_werror_flag
5410 ac_c_werror_flag=yes
5411 ac_cv_prog_cc_g=no
5412 CFLAGS="-g"
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5417 main (void)
5421 return 0;
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"; then :
5425 ac_cv_prog_cc_g=yes
5426 else
5427 CFLAGS=""
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5432 main (void)
5436 return 0;
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"; then :
5441 else
5442 ac_c_werror_flag=$ac_save_c_werror_flag
5443 CFLAGS="-g"
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 main (void)
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_prog_cc_g=yes
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_c_werror_flag=$ac_save_c_werror_flag
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5466 $as_echo "$ac_cv_prog_cc_g" >&6; }
5467 if test "$ac_test_CFLAGS" = set; then
5468 CFLAGS=$ac_save_CFLAGS
5469 elif test $ac_cv_prog_cc_g = yes; then
5470 if test "$GCC" = yes; then
5471 CFLAGS="-g -O2"
5472 else
5473 CFLAGS="-g"
5475 else
5476 if test "$GCC" = yes; then
5477 CFLAGS="-O2"
5478 else
5479 CFLAGS=
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5484 if ${ac_cv_prog_cc_c89+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 ac_cv_prog_cc_c89=no
5488 ac_save_CC=$CC
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491 #include <stdarg.h>
5492 #include <stdio.h>
5493 struct stat;
5494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5495 struct buf { int x; };
5496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5497 static char *e (p, i)
5498 char **p;
5499 int i;
5501 return p[i];
5503 static char *f (char * (*g) (char **, int), char **p, ...)
5505 char *s;
5506 va_list v;
5507 va_start (v,p);
5508 s = g (p, va_arg (v,int));
5509 va_end (v);
5510 return s;
5513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5514 function prototypes and stuff, but not '\xHH' hex character constants.
5515 These don't provoke an error unfortunately, instead are silently treated
5516 as 'x'. The following induces an error, until -std is added to get
5517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5518 array size at least. It's necessary to write '\x00'==0 to get something
5519 that's true only with -std. */
5520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5523 inside strings and character constants. */
5524 #define FOO(x) 'x'
5525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5527 int test (int i, double x);
5528 struct s1 {int (*f) (int a);};
5529 struct s2 {int (*f) (double a);};
5530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5531 int argc;
5532 char **argv;
5534 main (void)
5536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5538 return 0;
5540 _ACEOF
5541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5544 CC="$ac_save_CC $ac_arg"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_prog_cc_c89=$ac_arg
5548 rm -f core conftest.err conftest.$ac_objext
5549 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 done
5551 rm -f conftest.$ac_ext
5552 CC=$ac_save_CC
5555 # AC_CACHE_VAL
5556 case "x$ac_cv_prog_cc_c89" in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5559 $as_echo "none needed" >&6; } ;;
5560 xno)
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5562 $as_echo "unsupported" >&6; } ;;
5564 CC="$CC $ac_cv_prog_cc_c89"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5567 esac
5568 if test "x$ac_cv_prog_cc_c89" != xno; then :
5572 ac_ext=c
5573 ac_cpp='$CPP $CPPFLAGS'
5574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 depcc="$CC" am_compiler_list=
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5581 $as_echo_n "checking dependency style of $depcc... " >&6; }
5582 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5586 # We make a subdir and do the tests there. Otherwise we can end up
5587 # making bogus files that we don't know about and never remove. For
5588 # instance it was reported that on HP-UX the gcc test will end up
5589 # making a dummy file named 'D' -- because '-MD' means "put the output
5590 # in D".
5591 rm -rf conftest.dir
5592 mkdir conftest.dir
5593 # Copy depcomp to subdir because otherwise we won't find it if we're
5594 # using a relative directory.
5595 cp "$am_depcomp" conftest.dir
5596 cd conftest.dir
5597 # We will build objects and dependencies in a subdirectory because
5598 # it helps to detect inapplicable dependency modes. For instance
5599 # both Tru64's cc and ICC support -MD to output dependencies as a
5600 # side effect of compilation, but ICC will put the dependencies in
5601 # the current directory while Tru64 will put them in the object
5602 # directory.
5603 mkdir sub
5605 am_cv_CC_dependencies_compiler_type=none
5606 if test "$am_compiler_list" = ""; then
5607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5609 am__universal=false
5610 case " $depcc " in #(
5611 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5612 esac
5614 for depmode in $am_compiler_list; do
5615 # Setup a source with many dependencies, because some compilers
5616 # like to wrap large dependency lists on column 80 (with \), and
5617 # we should not choose a depcomp mode which is confused by this.
5619 # We need to recreate these files for each test, as the compiler may
5620 # overwrite some of them when testing with obscure command lines.
5621 # This happens at least with the AIX C compiler.
5622 : > sub/conftest.c
5623 for i in 1 2 3 4 5 6; do
5624 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5625 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5626 # Solaris 10 /bin/sh.
5627 echo '/* dummy */' > sub/conftst$i.h
5628 done
5629 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5631 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5632 # mode. It turns out that the SunPro C++ compiler does not properly
5633 # handle '-M -o', and we need to detect this. Also, some Intel
5634 # versions had trouble with output in subdirs.
5635 am__obj=sub/conftest.${OBJEXT-o}
5636 am__minus_obj="-o $am__obj"
5637 case $depmode in
5638 gcc)
5639 # This depmode causes a compiler race in universal mode.
5640 test "$am__universal" = false || continue
5642 nosideeffect)
5643 # After this tag, mechanisms are not by side-effect, so they'll
5644 # only be used when explicitly requested.
5645 if test "x$enable_dependency_tracking" = xyes; then
5646 continue
5647 else
5648 break
5651 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5652 # This compiler won't grok '-c -o', but also, the minuso test has
5653 # not run yet. These depmodes are late enough in the game, and
5654 # so weak that their functioning should not be impacted.
5655 am__obj=conftest.${OBJEXT-o}
5656 am__minus_obj=
5658 none) break ;;
5659 esac
5660 if depmode=$depmode \
5661 source=sub/conftest.c object=$am__obj \
5662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5663 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5664 >/dev/null 2>conftest.err &&
5665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669 # icc doesn't choke on unknown options, it will just issue warnings
5670 # or remarks (even with -Werror). So we grep stderr for any message
5671 # that says an option was ignored or not supported.
5672 # When given -MP, icc 7.0 and 7.1 complain thusly:
5673 # icc: Command line warning: ignoring option '-M'; no argument required
5674 # The diagnosis changed in icc 8.0:
5675 # icc: Command line remark: option '-MP' not supported
5676 if (grep 'ignoring option' conftest.err ||
5677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678 am_cv_CC_dependencies_compiler_type=$depmode
5679 break
5682 done
5684 cd ..
5685 rm -rf conftest.dir
5686 else
5687 am_cv_CC_dependencies_compiler_type=none
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5692 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5693 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5696 test "x$enable_dependency_tracking" != xno \
5697 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5698 am__fastdepCC_TRUE=
5699 am__fastdepCC_FALSE='#'
5700 else
5701 am__fastdepCC_TRUE='#'
5702 am__fastdepCC_FALSE=
5707 for ac_prog in flex lex
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_LEX+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$LEX"; then
5717 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_LEX="$ac_prog"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5736 LEX=$ac_cv_prog_LEX
5737 if test -n "$LEX"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5739 $as_echo "$LEX" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 test -n "$LEX" && break
5747 done
5748 test -n "$LEX" || LEX=":"
5750 if test "x$LEX" != "x:"; then
5751 cat >conftest.l <<_ACEOF
5753 a { ECHO; }
5754 b { REJECT; }
5755 c { yymore (); }
5756 d { yyless (1); }
5757 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5758 yyless ((input () != 0)); }
5759 f { unput (yytext[0]); }
5760 . { BEGIN INITIAL; }
5762 #ifdef YYTEXT_POINTER
5763 extern char *yytext;
5764 #endif
5766 main (void)
5768 return ! yylex () + ! yywrap ();
5770 _ACEOF
5771 { { ac_try="$LEX conftest.l"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$LEX conftest.l") 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5783 $as_echo_n "checking lex output file root... " >&6; }
5784 if ${ac_cv_prog_lex_root+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5788 if test -f lex.yy.c; then
5789 ac_cv_prog_lex_root=lex.yy
5790 elif test -f lexyy.c; then
5791 ac_cv_prog_lex_root=lexyy
5792 else
5793 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5797 $as_echo "$ac_cv_prog_lex_root" >&6; }
5798 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5800 if test -z "${LEXLIB+set}"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5802 $as_echo_n "checking lex library... " >&6; }
5803 if ${ac_cv_lib_lex+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5807 ac_save_LIBS=$LIBS
5808 ac_cv_lib_lex='none needed'
5809 for ac_lib in '' -lfl -ll; do
5810 LIBS="$ac_lib $ac_save_LIBS"
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 `cat $LEX_OUTPUT_ROOT.c`
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 ac_cv_lib_lex=$ac_lib
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 test "$ac_cv_lib_lex" != 'none needed' && break
5821 done
5822 LIBS=$ac_save_LIBS
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5826 $as_echo "$ac_cv_lib_lex" >&6; }
5827 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5832 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5833 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 # POSIX says lex can declare yytext either as a pointer or an array; the
5837 # default is implementation-dependent. Figure out which it is, since
5838 # not all implementations provide the %pointer and %array declarations.
5839 ac_cv_prog_lex_yytext_pointer=no
5840 ac_save_LIBS=$LIBS
5841 LIBS="$LEXLIB $ac_save_LIBS"
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 #define YYTEXT_POINTER 1
5846 `cat $LEX_OUTPUT_ROOT.c`
5847 _ACEOF
5848 if ac_fn_c_try_link "$LINENO"; then :
5849 ac_cv_prog_lex_yytext_pointer=yes
5851 rm -f core conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext conftest.$ac_ext
5853 LIBS=$ac_save_LIBS
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5857 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5858 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5860 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5863 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5866 for ac_prog in 'bison -y' byacc
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_YACC+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$YACC"; then
5876 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_YACC="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 YACC=$ac_cv_prog_YACC
5896 if test -n "$YACC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5898 $as_echo "$YACC" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 test -n "$YACC" && break
5906 done
5907 test -n "$YACC" || YACC="yacc"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5910 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5911 set x ${MAKE-make}
5912 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5913 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 cat >conftest.make <<\_ACEOF
5917 SHELL = /bin/sh
5918 all:
5919 @echo '@@@%%%=$(MAKE)=@@@%%%'
5920 _ACEOF
5921 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5922 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5923 *@@@%%%=?*=@@@%%%*)
5924 eval ac_cv_prog_make_${ac_make}_set=yes;;
5926 eval ac_cv_prog_make_${ac_make}_set=no;;
5927 esac
5928 rm -f conftest.make
5930 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932 $as_echo "yes" >&6; }
5933 SET_MAKE=
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 SET_MAKE="MAKE=${MAKE-make}"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5942 $as_echo_n "checking whether ln -s works... " >&6; }
5943 LN_S=$as_ln_s
5944 if test "$LN_S" = "ln -s"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946 $as_echo "yes" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5949 $as_echo "no, using $LN_S" >&6; }
5953 if test "x$LEX" = "x:"; then
5954 as_fn_error $? "flex is not found" "$LINENO" 5
5955 else
5956 version=`$LEX --version | $AWK '{ split($0,tmp," "); split(tmp[2],x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5957 if test -n "$version" -a "$version" -ge 20535; then
5959 else
5960 as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5964 # These are not a "must".
5965 for ac_prog in makeinfo true
5967 # Extract the first word of "$ac_prog", so it can be a program name with args.
5968 set dummy $ac_prog; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_path_MAKEINFO+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 case $MAKEINFO in
5975 [\\/]* | ?:[\\/]*)
5976 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5990 done
5991 done
5992 IFS=$as_save_IFS
5995 esac
5997 MAKEINFO=$ac_cv_path_MAKEINFO
5998 if test -n "$MAKEINFO"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6000 $as_echo "$MAKEINFO" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6007 test -n "$MAKEINFO" && break
6008 done
6012 # Checks for host programs.
6015 ac_ext=c
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_CC+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$CC"; then
6029 ac_cv_prog_CC="$CC" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6044 IFS=$as_save_IFS
6048 CC=$ac_cv_prog_CC
6049 if test -n "$CC"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6051 $as_echo "$CC" >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6059 if test -z "$ac_cv_prog_CC"; then
6060 ac_ct_CC=$CC
6061 # Extract the first word of "gcc", so it can be a program name with args.
6062 set dummy gcc; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$ac_ct_CC"; then
6069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_CC="gcc"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6084 IFS=$as_save_IFS
6088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6089 if test -n "$ac_ct_CC"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6091 $as_echo "$ac_ct_CC" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6097 if test "x$ac_ct_CC" = x; then
6098 CC=""
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 CC=$ac_ct_CC
6108 else
6109 CC="$ac_cv_prog_CC"
6112 if test -z "$CC"; then
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}cc; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_CC+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$CC"; then
6122 ac_cv_prog_CC="$CC" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_CC="${ac_tool_prefix}cc"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 CC=$ac_cv_prog_CC
6142 if test -n "$CC"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6144 $as_echo "$CC" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6153 if test -z "$CC"; then
6154 # Extract the first word of "cc", so it can be a program name with args.
6155 set dummy cc; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_CC+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$CC"; then
6162 ac_cv_prog_CC="$CC" # Let the user override the test.
6163 else
6164 ac_prog_rejected=no
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6173 ac_prog_rejected=yes
6174 continue
6176 ac_cv_prog_CC="cc"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6180 done
6181 done
6182 IFS=$as_save_IFS
6184 if test $ac_prog_rejected = yes; then
6185 # We found a bogon in the path, so make sure we never use it.
6186 set dummy $ac_cv_prog_CC
6187 shift
6188 if test $# != 0; then
6189 # We chose a different compiler from the bogus one.
6190 # However, it has the same basename, so the bogon will be chosen
6191 # first if we set CC to just the basename; use the full file name.
6192 shift
6193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6198 CC=$ac_cv_prog_CC
6199 if test -n "$CC"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6201 $as_echo "$CC" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6209 if test -z "$CC"; then
6210 if test -n "$ac_tool_prefix"; then
6211 for ac_prog in cl.exe
6213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_CC+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$CC"; then
6221 ac_cv_prog_CC="$CC" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6234 done
6235 done
6236 IFS=$as_save_IFS
6240 CC=$ac_cv_prog_CC
6241 if test -n "$CC"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6243 $as_echo "$CC" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 test -n "$CC" && break
6251 done
6253 if test -z "$CC"; then
6254 ac_ct_CC=$CC
6255 for ac_prog in cl.exe
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$ac_ct_CC"; then
6265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_CC="$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6278 done
6279 done
6280 IFS=$as_save_IFS
6284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6285 if test -n "$ac_ct_CC"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6287 $as_echo "$ac_ct_CC" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$ac_ct_CC" && break
6295 done
6297 if test "x$ac_ct_CC" = x; then
6298 CC=""
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 CC=$ac_ct_CC
6313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315 as_fn_error $? "no acceptable C compiler found in \$PATH
6316 See \`config.log' for more details" "$LINENO" 5; }
6318 # Provide some information about the compiler.
6319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6320 set X $ac_compile
6321 ac_compiler=$2
6322 for ac_option in --version -v -V -qversion; do
6323 { { ac_try="$ac_compiler $ac_option >&5"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329 $as_echo "$ac_try_echo"; } >&5
6330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6331 ac_status=$?
6332 if test -s conftest.err; then
6333 sed '10a\
6334 ... rest of stderr output deleted ...
6335 10q' conftest.err >conftest.er1
6336 cat conftest.er1 >&5
6338 rm -f conftest.er1 conftest.err
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6341 done
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6345 if ${ac_cv_c_compiler_gnu+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6352 main (void)
6354 #ifndef __GNUC__
6355 choke me
6356 #endif
6359 return 0;
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363 ac_compiler_gnu=yes
6364 else
6365 ac_compiler_gnu=no
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6373 if test $ac_compiler_gnu = yes; then
6374 GCC=yes
6375 else
6376 GCC=
6378 ac_test_CFLAGS=${CFLAGS+set}
6379 ac_save_CFLAGS=$CFLAGS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6382 if ${ac_cv_prog_cc_g+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 ac_save_c_werror_flag=$ac_c_werror_flag
6386 ac_c_werror_flag=yes
6387 ac_cv_prog_cc_g=no
6388 CFLAGS="-g"
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6393 main (void)
6397 return 0;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_prog_cc_g=yes
6402 else
6403 CFLAGS=""
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6408 main (void)
6412 return 0;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6417 else
6418 ac_c_werror_flag=$ac_save_c_werror_flag
6419 CFLAGS="-g"
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6424 main (void)
6428 return 0;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 ac_cv_prog_cc_g=yes
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_c_werror_flag=$ac_save_c_werror_flag
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6442 $as_echo "$ac_cv_prog_cc_g" >&6; }
6443 if test "$ac_test_CFLAGS" = set; then
6444 CFLAGS=$ac_save_CFLAGS
6445 elif test $ac_cv_prog_cc_g = yes; then
6446 if test "$GCC" = yes; then
6447 CFLAGS="-g -O2"
6448 else
6449 CFLAGS="-g"
6451 else
6452 if test "$GCC" = yes; then
6453 CFLAGS="-O2"
6454 else
6455 CFLAGS=
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6460 if ${ac_cv_prog_cc_c89+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 ac_cv_prog_cc_c89=no
6464 ac_save_CC=$CC
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <stdarg.h>
6468 #include <stdio.h>
6469 struct stat;
6470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6471 struct buf { int x; };
6472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6473 static char *e (p, i)
6474 char **p;
6475 int i;
6477 return p[i];
6479 static char *f (char * (*g) (char **, int), char **p, ...)
6481 char *s;
6482 va_list v;
6483 va_start (v,p);
6484 s = g (p, va_arg (v,int));
6485 va_end (v);
6486 return s;
6489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6490 function prototypes and stuff, but not '\xHH' hex character constants.
6491 These don't provoke an error unfortunately, instead are silently treated
6492 as 'x'. The following induces an error, until -std is added to get
6493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6494 array size at least. It's necessary to write '\x00'==0 to get something
6495 that's true only with -std. */
6496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6499 inside strings and character constants. */
6500 #define FOO(x) 'x'
6501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6503 int test (int i, double x);
6504 struct s1 {int (*f) (int a);};
6505 struct s2 {int (*f) (double a);};
6506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6507 int argc;
6508 char **argv;
6510 main (void)
6512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6514 return 0;
6516 _ACEOF
6517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6520 CC="$ac_save_CC $ac_arg"
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 ac_cv_prog_cc_c89=$ac_arg
6524 rm -f core conftest.err conftest.$ac_objext
6525 test "x$ac_cv_prog_cc_c89" != "xno" && break
6526 done
6527 rm -f conftest.$ac_ext
6528 CC=$ac_save_CC
6531 # AC_CACHE_VAL
6532 case "x$ac_cv_prog_cc_c89" in
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6535 $as_echo "none needed" >&6; } ;;
6536 xno)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6538 $as_echo "unsupported" >&6; } ;;
6540 CC="$CC $ac_cv_prog_cc_c89"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6543 esac
6544 if test "x$ac_cv_prog_cc_c89" != xno; then :
6548 ac_ext=c
6549 ac_cpp='$CPP $CPPFLAGS'
6550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554 depcc="$CC" am_compiler_list=
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6557 $as_echo_n "checking dependency style of $depcc... " >&6; }
6558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6562 # We make a subdir and do the tests there. Otherwise we can end up
6563 # making bogus files that we don't know about and never remove. For
6564 # instance it was reported that on HP-UX the gcc test will end up
6565 # making a dummy file named 'D' -- because '-MD' means "put the output
6566 # in D".
6567 rm -rf conftest.dir
6568 mkdir conftest.dir
6569 # Copy depcomp to subdir because otherwise we won't find it if we're
6570 # using a relative directory.
6571 cp "$am_depcomp" conftest.dir
6572 cd conftest.dir
6573 # We will build objects and dependencies in a subdirectory because
6574 # it helps to detect inapplicable dependency modes. For instance
6575 # both Tru64's cc and ICC support -MD to output dependencies as a
6576 # side effect of compilation, but ICC will put the dependencies in
6577 # the current directory while Tru64 will put them in the object
6578 # directory.
6579 mkdir sub
6581 am_cv_CC_dependencies_compiler_type=none
6582 if test "$am_compiler_list" = ""; then
6583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6585 am__universal=false
6586 case " $depcc " in #(
6587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6588 esac
6590 for depmode in $am_compiler_list; do
6591 # Setup a source with many dependencies, because some compilers
6592 # like to wrap large dependency lists on column 80 (with \), and
6593 # we should not choose a depcomp mode which is confused by this.
6595 # We need to recreate these files for each test, as the compiler may
6596 # overwrite some of them when testing with obscure command lines.
6597 # This happens at least with the AIX C compiler.
6598 : > sub/conftest.c
6599 for i in 1 2 3 4 5 6; do
6600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6602 # Solaris 10 /bin/sh.
6603 echo '/* dummy */' > sub/conftst$i.h
6604 done
6605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6608 # mode. It turns out that the SunPro C++ compiler does not properly
6609 # handle '-M -o', and we need to detect this. Also, some Intel
6610 # versions had trouble with output in subdirs.
6611 am__obj=sub/conftest.${OBJEXT-o}
6612 am__minus_obj="-o $am__obj"
6613 case $depmode in
6614 gcc)
6615 # This depmode causes a compiler race in universal mode.
6616 test "$am__universal" = false || continue
6618 nosideeffect)
6619 # After this tag, mechanisms are not by side-effect, so they'll
6620 # only be used when explicitly requested.
6621 if test "x$enable_dependency_tracking" = xyes; then
6622 continue
6623 else
6624 break
6627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6628 # This compiler won't grok '-c -o', but also, the minuso test has
6629 # not run yet. These depmodes are late enough in the game, and
6630 # so weak that their functioning should not be impacted.
6631 am__obj=conftest.${OBJEXT-o}
6632 am__minus_obj=
6634 none) break ;;
6635 esac
6636 if depmode=$depmode \
6637 source=sub/conftest.c object=$am__obj \
6638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640 >/dev/null 2>conftest.err &&
6641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645 # icc doesn't choke on unknown options, it will just issue warnings
6646 # or remarks (even with -Werror). So we grep stderr for any message
6647 # that says an option was ignored or not supported.
6648 # When given -MP, icc 7.0 and 7.1 complain thusly:
6649 # icc: Command line warning: ignoring option '-M'; no argument required
6650 # The diagnosis changed in icc 8.0:
6651 # icc: Command line remark: option '-MP' not supported
6652 if (grep 'ignoring option' conftest.err ||
6653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654 am_cv_CC_dependencies_compiler_type=$depmode
6655 break
6658 done
6660 cd ..
6661 rm -rf conftest.dir
6662 else
6663 am_cv_CC_dependencies_compiler_type=none
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6672 test "x$enable_dependency_tracking" != xno \
6673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6674 am__fastdepCC_TRUE=
6675 am__fastdepCC_FALSE='#'
6676 else
6677 am__fastdepCC_TRUE='#'
6678 am__fastdepCC_FALSE=
6682 ac_ext=c
6683 ac_cpp='$CPP $CPPFLAGS'
6684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6688 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6689 # On Suns, sometimes $CPP names a directory.
6690 if test -n "$CPP" && test -d "$CPP"; then
6691 CPP=
6693 if test -z "$CPP"; then
6694 if ${ac_cv_prog_CPP+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 # Double quotes because CPP needs to be expanded
6698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6700 ac_preproc_ok=false
6701 for ac_c_preproc_warn_flag in '' yes
6703 # Use a header file that comes with gcc, so configuring glibc
6704 # with a fresh cross-compiler works.
6705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 # <limits.h> exists even on freestanding compilers.
6707 # On the NeXT, cc -E runs the code through the compiler's parser,
6708 # not just through cpp. "Syntax error" is here to catch this case.
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #ifdef __STDC__
6712 # include <limits.h>
6713 #else
6714 # include <assert.h>
6715 #endif
6716 Syntax error
6717 _ACEOF
6718 if ac_fn_c_try_cpp "$LINENO"; then :
6720 else
6721 # Broken: fails on valid input.
6722 continue
6724 rm -f conftest.err conftest.i conftest.$ac_ext
6726 # OK, works on sane cases. Now check whether nonexistent headers
6727 # can be detected and how.
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <ac_nonexistent.h>
6731 _ACEOF
6732 if ac_fn_c_try_cpp "$LINENO"; then :
6733 # Broken: success on invalid input.
6734 continue
6735 else
6736 # Passes both tests.
6737 ac_preproc_ok=:
6738 break
6740 rm -f conftest.err conftest.i conftest.$ac_ext
6742 done
6743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6744 rm -f conftest.i conftest.err conftest.$ac_ext
6745 if $ac_preproc_ok; then :
6746 break
6749 done
6750 ac_cv_prog_CPP=$CPP
6753 CPP=$ac_cv_prog_CPP
6754 else
6755 ac_cv_prog_CPP=$CPP
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6758 $as_echo "$CPP" >&6; }
6759 ac_preproc_ok=false
6760 for ac_c_preproc_warn_flag in '' yes
6762 # Use a header file that comes with gcc, so configuring glibc
6763 # with a fresh cross-compiler works.
6764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6765 # <limits.h> exists even on freestanding compilers.
6766 # On the NeXT, cc -E runs the code through the compiler's parser,
6767 # not just through cpp. "Syntax error" is here to catch this case.
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #ifdef __STDC__
6771 # include <limits.h>
6772 #else
6773 # include <assert.h>
6774 #endif
6775 Syntax error
6776 _ACEOF
6777 if ac_fn_c_try_cpp "$LINENO"; then :
6779 else
6780 # Broken: fails on valid input.
6781 continue
6783 rm -f conftest.err conftest.i conftest.$ac_ext
6785 # OK, works on sane cases. Now check whether nonexistent headers
6786 # can be detected and how.
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <ac_nonexistent.h>
6790 _ACEOF
6791 if ac_fn_c_try_cpp "$LINENO"; then :
6792 # Broken: success on invalid input.
6793 continue
6794 else
6795 # Passes both tests.
6796 ac_preproc_ok=:
6797 break
6799 rm -f conftest.err conftest.i conftest.$ac_ext
6801 done
6802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6803 rm -f conftest.i conftest.err conftest.$ac_ext
6804 if $ac_preproc_ok; then :
6806 else
6807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6809 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6810 See \`config.log' for more details" "$LINENO" 5; }
6813 ac_ext=c
6814 ac_cpp='$CPP $CPPFLAGS'
6815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6821 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6822 if ${ac_cv_path_GREP+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -z "$GREP"; then
6826 ac_path_GREP_found=false
6827 # Loop through the user's path and test for each of PROGNAME-LIST
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_prog in grep ggrep; do
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6836 as_fn_executable_p "$ac_path_GREP" || continue
6837 # Check for GNU ac_path_GREP and select it if it is found.
6838 # Check for GNU $ac_path_GREP
6839 case `"$ac_path_GREP" --version 2>&1` in
6840 *GNU*)
6841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6843 ac_count=0
6844 $as_echo_n 0123456789 >"conftest.in"
6845 while :
6847 cat "conftest.in" "conftest.in" >"conftest.tmp"
6848 mv "conftest.tmp" "conftest.in"
6849 cp "conftest.in" "conftest.nl"
6850 $as_echo 'GREP' >> "conftest.nl"
6851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6853 as_fn_arith $ac_count + 1 && ac_count=$as_val
6854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6855 # Best one so far, save it but keep looking for a better one
6856 ac_cv_path_GREP="$ac_path_GREP"
6857 ac_path_GREP_max=$ac_count
6859 # 10*(2^10) chars as input seems more than enough
6860 test $ac_count -gt 10 && break
6861 done
6862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6863 esac
6865 $ac_path_GREP_found && break 3
6866 done
6867 done
6868 done
6869 IFS=$as_save_IFS
6870 if test -z "$ac_cv_path_GREP"; then
6871 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6873 else
6874 ac_cv_path_GREP=$GREP
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6879 $as_echo "$ac_cv_path_GREP" >&6; }
6880 GREP="$ac_cv_path_GREP"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6884 $as_echo_n "checking for egrep... " >&6; }
6885 if ${ac_cv_path_EGREP+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6889 then ac_cv_path_EGREP="$GREP -E"
6890 else
6891 if test -z "$EGREP"; then
6892 ac_path_EGREP_found=false
6893 # Loop through the user's path and test for each of PROGNAME-LIST
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_prog in egrep; do
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6902 as_fn_executable_p "$ac_path_EGREP" || continue
6903 # Check for GNU ac_path_EGREP and select it if it is found.
6904 # Check for GNU $ac_path_EGREP
6905 case `"$ac_path_EGREP" --version 2>&1` in
6906 *GNU*)
6907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6909 ac_count=0
6910 $as_echo_n 0123456789 >"conftest.in"
6911 while :
6913 cat "conftest.in" "conftest.in" >"conftest.tmp"
6914 mv "conftest.tmp" "conftest.in"
6915 cp "conftest.in" "conftest.nl"
6916 $as_echo 'EGREP' >> "conftest.nl"
6917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6919 as_fn_arith $ac_count + 1 && ac_count=$as_val
6920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6921 # Best one so far, save it but keep looking for a better one
6922 ac_cv_path_EGREP="$ac_path_EGREP"
6923 ac_path_EGREP_max=$ac_count
6925 # 10*(2^10) chars as input seems more than enough
6926 test $ac_count -gt 10 && break
6927 done
6928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6929 esac
6931 $ac_path_EGREP_found && break 3
6932 done
6933 done
6934 done
6935 IFS=$as_save_IFS
6936 if test -z "$ac_cv_path_EGREP"; then
6937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6939 else
6940 ac_cv_path_EGREP=$EGREP
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6946 $as_echo "$ac_cv_path_EGREP" >&6; }
6947 EGREP="$ac_cv_path_EGREP"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6953 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6954 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6961 #ifdef __ACK__
6962 Amsterdam
6963 #endif
6965 _ACEOF
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6968 gl_cv_c_amsterdam_compiler=yes
6969 else
6970 gl_cv_c_amsterdam_compiler=no
6972 rm -f conftest*
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6977 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6978 if test -z "$AR"; then
6979 if test $gl_cv_c_amsterdam_compiler = yes; then
6980 AR='cc -c.a'
6981 if test -z "$ARFLAGS"; then
6982 ARFLAGS='-o'
6984 else
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}ar; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_AR+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$AR"; then
6994 ac_cv_prog_AR="$AR" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_AR="${ac_tool_prefix}ar"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 AR=$ac_cv_prog_AR
7014 if test -n "$AR"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7016 $as_echo "$AR" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7024 if test -z "$ac_cv_prog_AR"; then
7025 ac_ct_AR=$AR
7026 # Extract the first word of "ar", so it can be a program name with args.
7027 set dummy ar; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$ac_ct_AR"; then
7034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_ac_ct_AR="ar"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054 if test -n "$ac_ct_AR"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7056 $as_echo "$ac_ct_AR" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7062 if test "x$ac_ct_AR" = x; then
7063 AR="ar"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066 yes:)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071 AR=$ac_ct_AR
7073 else
7074 AR="$ac_cv_prog_AR"
7077 if test -z "$ARFLAGS"; then
7078 ARFLAGS='cru'
7081 else
7082 if test -z "$ARFLAGS"; then
7083 ARFLAGS='cru'
7088 if test -z "$RANLIB"; then
7089 if test $gl_cv_c_amsterdam_compiler = yes; then
7090 RANLIB=':'
7091 else
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_RANLIB+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$RANLIB"; then
7101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7114 done
7115 done
7116 IFS=$as_save_IFS
7120 RANLIB=$ac_cv_prog_RANLIB
7121 if test -n "$RANLIB"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7123 $as_echo "$RANLIB" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7131 if test -z "$ac_cv_prog_RANLIB"; then
7132 ac_ct_RANLIB=$RANLIB
7133 # Extract the first word of "ranlib", so it can be a program name with args.
7134 set dummy ranlib; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$ac_ct_RANLIB"; then
7141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_RANLIB="ranlib"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7154 done
7155 done
7156 IFS=$as_save_IFS
7160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7161 if test -n "$ac_ct_RANLIB"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7163 $as_echo "$ac_ct_RANLIB" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7169 if test "x$ac_ct_RANLIB" = x; then
7170 RANLIB=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178 RANLIB=$ac_ct_RANLIB
7180 else
7181 RANLIB="$ac_cv_prog_RANLIB"
7188 if test "x$CC" != xcc; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7190 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7193 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7195 set dummy $CC; ac_cc=`$as_echo "$2" |
7196 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7197 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7204 main (void)
7208 return 0;
7210 _ACEOF
7211 # Make sure it works both with $CC and with simple cc.
7212 # We do the test twice because some compilers refuse to overwrite an
7213 # existing .o file with -o, though they will create one.
7214 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7215 rm -f conftest2.*
7216 if { { case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7219 esac
7220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7221 $as_echo "$ac_try_echo"; } >&5
7222 (eval "$ac_try") 2>&5
7223 ac_status=$?
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; } &&
7226 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7231 $as_echo "$ac_try_echo"; } >&5
7232 (eval "$ac_try") 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; };
7236 then
7237 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7238 if test "x$CC" != xcc; then
7239 # Test first that cc exists at all.
7240 if { ac_try='cc -c conftest.$ac_ext >&5'
7241 { { case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7246 $as_echo "$ac_try_echo"; } >&5
7247 (eval "$ac_try") 2>&5
7248 ac_status=$?
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }; }; then
7251 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7252 rm -f conftest2.*
7253 if { { case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7258 $as_echo "$ac_try_echo"; } >&5
7259 (eval "$ac_try") 2>&5
7260 ac_status=$?
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; } &&
7263 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7268 $as_echo "$ac_try_echo"; } >&5
7269 (eval "$ac_try") 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; };
7273 then
7274 # cc works too.
7276 else
7277 # cc exists but doesn't like -o.
7278 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7282 else
7283 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7285 rm -f core conftest*
7288 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290 $as_echo "yes" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7295 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7299 # FIXME: we rely on the cache variable name because
7300 # there is no other way.
7301 set dummy $CC
7302 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7303 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7304 if test "$am_t" != yes; then
7305 # Losing compiler, so override with the script.
7306 # FIXME: It is wrong to rewrite CC.
7307 # But if we don't then we get into trouble of one sort or another.
7308 # A longer-term fix would be to have automake use am__CC in this case,
7309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7310 CC="$am_aux_dir/compile $CC"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7315 $as_echo_n "checking for ANSI C header files... " >&6; }
7316 if ${ac_cv_header_stdc+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <stdlib.h>
7322 #include <stdarg.h>
7323 #include <string.h>
7324 #include <float.h>
7327 main (void)
7331 return 0;
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"; then :
7335 ac_cv_header_stdc=yes
7336 else
7337 ac_cv_header_stdc=no
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 if test $ac_cv_header_stdc = yes; then
7342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #include <string.h>
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "memchr" >/dev/null 2>&1; then :
7351 else
7352 ac_cv_header_stdc=no
7354 rm -f conftest*
7358 if test $ac_cv_header_stdc = yes; then
7359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 #include <stdlib.h>
7364 _ACEOF
7365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366 $EGREP "free" >/dev/null 2>&1; then :
7368 else
7369 ac_cv_header_stdc=no
7371 rm -f conftest*
7375 if test $ac_cv_header_stdc = yes; then
7376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7377 if test "$cross_compiling" = yes; then :
7379 else
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 #include <ctype.h>
7383 #include <stdlib.h>
7384 #if ((' ' & 0x0FF) == 0x020)
7385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7387 #else
7388 # define ISLOWER(c) \
7389 (('a' <= (c) && (c) <= 'i') \
7390 || ('j' <= (c) && (c) <= 'r') \
7391 || ('s' <= (c) && (c) <= 'z'))
7392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7393 #endif
7395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7397 main ()
7399 int i;
7400 for (i = 0; i < 256; i++)
7401 if (XOR (islower (i), ISLOWER (i))
7402 || toupper (i) != TOUPPER (i))
7403 return 2;
7404 return 0;
7406 _ACEOF
7407 if ac_fn_c_try_run "$LINENO"; then :
7409 else
7410 ac_cv_header_stdc=no
7412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7413 conftest.$ac_objext conftest.beam conftest.$ac_ext
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7419 $as_echo "$ac_cv_header_stdc" >&6; }
7420 if test $ac_cv_header_stdc = yes; then
7422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7427 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7428 inttypes.h stdint.h unistd.h
7429 do :
7430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7434 cat >>confdefs.h <<_ACEOF
7435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 _ACEOF
7440 done
7444 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7445 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7446 MINIX=yes
7447 else
7448 MINIX=
7452 if test "$MINIX" = yes; then
7454 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7457 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7460 $as_echo "#define _MINIX 1" >>confdefs.h
7463 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7469 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7470 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7476 # define __EXTENSIONS__ 1
7477 $ac_includes_default
7479 main (void)
7483 return 0;
7485 _ACEOF
7486 if ac_fn_c_try_compile "$LINENO"; then :
7487 ac_cv_safe_to_define___extensions__=yes
7488 else
7489 ac_cv_safe_to_define___extensions__=no
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7494 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7495 test $ac_cv_safe_to_define___extensions__ = yes &&
7496 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7498 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7500 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7502 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7504 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7506 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7509 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7510 if ${ac_cv_should_define__xopen_source+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 ac_cv_should_define__xopen_source=no
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7517 #include <wchar.h>
7518 mbstate_t x;
7520 main (void)
7524 return 0;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7529 else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7533 #define _XOPEN_SOURCE 500
7534 #include <wchar.h>
7535 mbstate_t x;
7537 main (void)
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 ac_cv_should_define__xopen_source=yes
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7552 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7553 test $ac_cv_should_define__xopen_source = yes &&
7554 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7566 # Code from module alloca:
7567 # Code from module alloca-opt:
7568 # Code from module argp:
7569 # Code from module btowc:
7570 # Code from module configmake:
7571 # Code from module dirname-lgpl:
7572 # Code from module dosname:
7573 # Code from module double-slash-root:
7574 # Code from module errno:
7575 # Code from module error:
7576 # Code from module extensions:
7578 # Code from module extern-inline:
7579 # Code from module float:
7580 # Code from module fnmatch:
7581 # Code from module getdelim:
7582 # Code from module getline:
7583 # Code from module getopt-gnu:
7584 # Code from module getopt-posix:
7585 # Code from module gettext:
7586 # Code from module gettext-h:
7587 # Code from module havelib:
7588 # Code from module include_next:
7589 # Code from module intprops:
7590 # Code from module langinfo:
7591 # Code from module localcharset:
7592 # Code from module locale:
7593 # Code from module localeconv:
7594 # Code from module malloc-gnu:
7595 # Code from module malloc-posix:
7596 # Code from module mbrtowc:
7597 # Code from module mbsinit:
7598 # Code from module mbsrtowcs:
7599 # Code from module mbswidth:
7600 # Code from module mbtowc:
7601 # Code from module memchr:
7602 # Code from module mempcpy:
7603 # Code from module msvc-inval:
7604 # Code from module msvc-nothrow:
7605 # Code from module multiarch:
7606 # Code from module nl_langinfo:
7607 # Code from module nocrash:
7608 # Code from module progname:
7609 # Code from module rawmemchr:
7610 # Code from module realloc-posix:
7611 # Code from module regex:
7612 # Code from module size_max:
7613 # Code from module sleep:
7614 # Code from module snippet/_Noreturn:
7615 # Code from module snippet/arg-nonnull:
7616 # Code from module snippet/c++defs:
7617 # Code from module snippet/warn-on-use:
7618 # Code from module ssize_t:
7619 # Code from module stdalign:
7620 # Code from module stdbool:
7621 # Code from module stddef:
7622 # Code from module stdint:
7623 # Code from module stdio:
7624 # Code from module stdlib:
7625 # Code from module strcase:
7626 # Code from module strchrnul:
7627 # Code from module streq:
7628 # Code from module strerror:
7629 # Code from module strerror-override:
7630 # Code from module string:
7631 # Code from module strings:
7632 # Code from module strndup:
7633 # Code from module strnlen:
7634 # Code from module strnlen1:
7635 # Code from module sys_types:
7636 # Code from module sysexits:
7637 # Code from module unistd:
7638 # Code from module unitypes:
7639 # Code from module uniwidth/base:
7640 # Code from module uniwidth/width:
7641 # Code from module vasnprintf:
7642 # Code from module verify:
7643 # Code from module vsnprintf:
7644 # Code from module wchar:
7645 # Code from module wcrtomb:
7646 # Code from module wctype-h:
7647 # Code from module wcwidth:
7648 # Code from module xsize:
7650 ac_ext=cpp
7651 ac_cpp='$CXXCPP $CPPFLAGS'
7652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7655 if test -z "$CXX"; then
7656 if test -n "$CCC"; then
7657 CXX=$CCC
7658 else
7659 if test -n "$ac_tool_prefix"; then
7660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_CXX+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$CXX"; then
7670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 CXX=$ac_cv_prog_CXX
7690 if test -n "$CXX"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7692 $as_echo "$CXX" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7699 test -n "$CXX" && break
7700 done
7702 if test -z "$CXX"; then
7703 ac_ct_CXX=$CXX
7704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$ac_ct_CXX"; then
7714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_ac_ct_CXX="$ac_prog"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7727 done
7728 done
7729 IFS=$as_save_IFS
7733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7734 if test -n "$ac_ct_CXX"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7736 $as_echo "$ac_ct_CXX" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7743 test -n "$ac_ct_CXX" && break
7744 done
7746 if test "x$ac_ct_CXX" = x; then
7747 CXX="g++"
7748 else
7749 case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755 CXX=$ac_ct_CXX
7761 # Provide some information about the compiler.
7762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7763 set X $ac_compile
7764 ac_compiler=$2
7765 for ac_option in --version -v -V -qversion; do
7766 { { ac_try="$ac_compiler $ac_option >&5"
7767 case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770 esac
7771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7772 $as_echo "$ac_try_echo"; } >&5
7773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7774 ac_status=$?
7775 if test -s conftest.err; then
7776 sed '10a\
7777 ... rest of stderr output deleted ...
7778 10q' conftest.err >conftest.er1
7779 cat conftest.er1 >&5
7781 rm -f conftest.er1 conftest.err
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }
7784 done
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7788 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7795 main ()
7797 #ifndef __GNUC__
7798 choke me
7799 #endif
7802 return 0;
7804 _ACEOF
7805 if ac_fn_cxx_try_compile "$LINENO"; then :
7806 ac_compiler_gnu=yes
7807 else
7808 ac_compiler_gnu=no
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7816 if test $ac_compiler_gnu = yes; then
7817 GXX=yes
7818 else
7819 GXX=
7821 ac_test_CXXFLAGS=${CXXFLAGS+set}
7822 ac_save_CXXFLAGS=$CXXFLAGS
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7825 if ${ac_cv_prog_cxx_g+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7829 ac_cxx_werror_flag=yes
7830 ac_cv_prog_cxx_g=no
7831 CXXFLAGS="-g"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7836 main ()
7840 return 0;
7842 _ACEOF
7843 if ac_fn_cxx_try_compile "$LINENO"; then :
7844 ac_cv_prog_cxx_g=yes
7845 else
7846 CXXFLAGS=""
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7851 main ()
7855 return 0;
7857 _ACEOF
7858 if ac_fn_cxx_try_compile "$LINENO"; then :
7860 else
7861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7862 CXXFLAGS="-g"
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7867 main ()
7871 return 0;
7873 _ACEOF
7874 if ac_fn_cxx_try_compile "$LINENO"; then :
7875 ac_cv_prog_cxx_g=yes
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7886 if test "$ac_test_CXXFLAGS" = set; then
7887 CXXFLAGS=$ac_save_CXXFLAGS
7888 elif test $ac_cv_prog_cxx_g = yes; then
7889 if test "$GXX" = yes; then
7890 CXXFLAGS="-g -O2"
7891 else
7892 CXXFLAGS="-g"
7894 else
7895 if test "$GXX" = yes; then
7896 CXXFLAGS="-O2"
7897 else
7898 CXXFLAGS=
7901 ac_ext=c
7902 ac_cpp='$CPP $CPPFLAGS'
7903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 depcc="$CXX" am_compiler_list=
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7910 $as_echo_n "checking dependency style of $depcc... " >&6; }
7911 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7915 # We make a subdir and do the tests there. Otherwise we can end up
7916 # making bogus files that we don't know about and never remove. For
7917 # instance it was reported that on HP-UX the gcc test will end up
7918 # making a dummy file named 'D' -- because '-MD' means "put the output
7919 # in D".
7920 rm -rf conftest.dir
7921 mkdir conftest.dir
7922 # Copy depcomp to subdir because otherwise we won't find it if we're
7923 # using a relative directory.
7924 cp "$am_depcomp" conftest.dir
7925 cd conftest.dir
7926 # We will build objects and dependencies in a subdirectory because
7927 # it helps to detect inapplicable dependency modes. For instance
7928 # both Tru64's cc and ICC support -MD to output dependencies as a
7929 # side effect of compilation, but ICC will put the dependencies in
7930 # the current directory while Tru64 will put them in the object
7931 # directory.
7932 mkdir sub
7934 am_cv_CXX_dependencies_compiler_type=none
7935 if test "$am_compiler_list" = ""; then
7936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7938 am__universal=false
7939 case " $depcc " in #(
7940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7941 esac
7943 for depmode in $am_compiler_list; do
7944 # Setup a source with many dependencies, because some compilers
7945 # like to wrap large dependency lists on column 80 (with \), and
7946 # we should not choose a depcomp mode which is confused by this.
7948 # We need to recreate these files for each test, as the compiler may
7949 # overwrite some of them when testing with obscure command lines.
7950 # This happens at least with the AIX C compiler.
7951 : > sub/conftest.c
7952 for i in 1 2 3 4 5 6; do
7953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7954 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7955 # Solaris 10 /bin/sh.
7956 echo '/* dummy */' > sub/conftst$i.h
7957 done
7958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7960 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7961 # mode. It turns out that the SunPro C++ compiler does not properly
7962 # handle '-M -o', and we need to detect this. Also, some Intel
7963 # versions had trouble with output in subdirs.
7964 am__obj=sub/conftest.${OBJEXT-o}
7965 am__minus_obj="-o $am__obj"
7966 case $depmode in
7967 gcc)
7968 # This depmode causes a compiler race in universal mode.
7969 test "$am__universal" = false || continue
7971 nosideeffect)
7972 # After this tag, mechanisms are not by side-effect, so they'll
7973 # only be used when explicitly requested.
7974 if test "x$enable_dependency_tracking" = xyes; then
7975 continue
7976 else
7977 break
7980 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7981 # This compiler won't grok '-c -o', but also, the minuso test has
7982 # not run yet. These depmodes are late enough in the game, and
7983 # so weak that their functioning should not be impacted.
7984 am__obj=conftest.${OBJEXT-o}
7985 am__minus_obj=
7987 none) break ;;
7988 esac
7989 if depmode=$depmode \
7990 source=sub/conftest.c object=$am__obj \
7991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7993 >/dev/null 2>conftest.err &&
7994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7998 # icc doesn't choke on unknown options, it will just issue warnings
7999 # or remarks (even with -Werror). So we grep stderr for any message
8000 # that says an option was ignored or not supported.
8001 # When given -MP, icc 7.0 and 7.1 complain thusly:
8002 # icc: Command line warning: ignoring option '-M'; no argument required
8003 # The diagnosis changed in icc 8.0:
8004 # icc: Command line remark: option '-MP' not supported
8005 if (grep 'ignoring option' conftest.err ||
8006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8007 am_cv_CXX_dependencies_compiler_type=$depmode
8008 break
8011 done
8013 cd ..
8014 rm -rf conftest.dir
8015 else
8016 am_cv_CXX_dependencies_compiler_type=none
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8021 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8022 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8025 test "x$enable_dependency_tracking" != xno \
8026 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8027 am__fastdepCXX_TRUE=
8028 am__fastdepCXX_FALSE='#'
8029 else
8030 am__fastdepCXX_TRUE='#'
8031 am__fastdepCXX_FALSE=
8035 # FIXME: we rely on the cache variable name because
8036 # there is no other way.
8037 set dummy $CC
8038 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
8039 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
8040 if test "$am_t" != yes; then
8041 # Losing compiler, so override with the script.
8042 # FIXME: It is wrong to rewrite CC.
8043 # But if we don't then we get into trouble of one sort or another.
8044 # A longer-term fix would be to have automake use am__CC in this case,
8045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8046 CC="$am_aux_dir/compile $CC"
8050 # By default we simply use the C compiler to build assembly code.
8052 test "${CCAS+set}" = set || CCAS=$CC
8053 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8057 depcc="$CCAS" am_compiler_list=
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8060 $as_echo_n "checking dependency style of $depcc... " >&6; }
8061 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8065 # We make a subdir and do the tests there. Otherwise we can end up
8066 # making bogus files that we don't know about and never remove. For
8067 # instance it was reported that on HP-UX the gcc test will end up
8068 # making a dummy file named 'D' -- because '-MD' means "put the output
8069 # in D".
8070 rm -rf conftest.dir
8071 mkdir conftest.dir
8072 # Copy depcomp to subdir because otherwise we won't find it if we're
8073 # using a relative directory.
8074 cp "$am_depcomp" conftest.dir
8075 cd conftest.dir
8076 # We will build objects and dependencies in a subdirectory because
8077 # it helps to detect inapplicable dependency modes. For instance
8078 # both Tru64's cc and ICC support -MD to output dependencies as a
8079 # side effect of compilation, but ICC will put the dependencies in
8080 # the current directory while Tru64 will put them in the object
8081 # directory.
8082 mkdir sub
8084 am_cv_CCAS_dependencies_compiler_type=none
8085 if test "$am_compiler_list" = ""; then
8086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8088 am__universal=false
8091 for depmode in $am_compiler_list; do
8092 # Setup a source with many dependencies, because some compilers
8093 # like to wrap large dependency lists on column 80 (with \), and
8094 # we should not choose a depcomp mode which is confused by this.
8096 # We need to recreate these files for each test, as the compiler may
8097 # overwrite some of them when testing with obscure command lines.
8098 # This happens at least with the AIX C compiler.
8099 : > sub/conftest.c
8100 for i in 1 2 3 4 5 6; do
8101 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8102 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8103 # Solaris 10 /bin/sh.
8104 echo '/* dummy */' > sub/conftst$i.h
8105 done
8106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8108 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8109 # mode. It turns out that the SunPro C++ compiler does not properly
8110 # handle '-M -o', and we need to detect this. Also, some Intel
8111 # versions had trouble with output in subdirs.
8112 am__obj=sub/conftest.${OBJEXT-o}
8113 am__minus_obj="-o $am__obj"
8114 case $depmode in
8115 gcc)
8116 # This depmode causes a compiler race in universal mode.
8117 test "$am__universal" = false || continue
8119 nosideeffect)
8120 # After this tag, mechanisms are not by side-effect, so they'll
8121 # only be used when explicitly requested.
8122 if test "x$enable_dependency_tracking" = xyes; then
8123 continue
8124 else
8125 break
8128 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8129 # This compiler won't grok '-c -o', but also, the minuso test has
8130 # not run yet. These depmodes are late enough in the game, and
8131 # so weak that their functioning should not be impacted.
8132 am__obj=conftest.${OBJEXT-o}
8133 am__minus_obj=
8135 none) break ;;
8136 esac
8137 if depmode=$depmode \
8138 source=sub/conftest.c object=$am__obj \
8139 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8140 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8141 >/dev/null 2>conftest.err &&
8142 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8144 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8146 # icc doesn't choke on unknown options, it will just issue warnings
8147 # or remarks (even with -Werror). So we grep stderr for any message
8148 # that says an option was ignored or not supported.
8149 # When given -MP, icc 7.0 and 7.1 complain thusly:
8150 # icc: Command line warning: ignoring option '-M'; no argument required
8151 # The diagnosis changed in icc 8.0:
8152 # icc: Command line remark: option '-MP' not supported
8153 if (grep 'ignoring option' conftest.err ||
8154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8155 am_cv_CCAS_dependencies_compiler_type=$depmode
8156 break
8159 done
8161 cd ..
8162 rm -rf conftest.dir
8163 else
8164 am_cv_CCAS_dependencies_compiler_type=none
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8169 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8170 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8173 test "x$enable_dependency_tracking" != xno \
8174 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8175 am__fastdepCCAS_TRUE=
8176 am__fastdepCCAS_FALSE='#'
8177 else
8178 am__fastdepCCAS_TRUE='#'
8179 am__fastdepCCAS_FALSE=
8184 # Must be GCC.
8185 test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
8187 # Extract the first word of "$CXX", so it can be a program name with args.
8188 set dummy $CXX; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if ${ac_cv_prog_HAVE_CXX+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$HAVE_CXX"; then
8195 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_HAVE_CXX="yes"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8212 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
8215 HAVE_CXX=$ac_cv_prog_HAVE_CXX
8216 if test -n "$HAVE_CXX"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
8218 $as_echo "$HAVE_CXX" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8229 $as_echo_n "checking whether NLS is requested... " >&6; }
8230 # Check whether --enable-nls was given.
8231 if test "${enable_nls+set}" = set; then :
8232 enableval=$enable_nls; USE_NLS=$enableval
8233 else
8234 USE_NLS=yes
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8238 $as_echo "$USE_NLS" >&6; }
8243 GETTEXT_MACRO_VERSION=0.18
8248 # Prepare PATH_SEPARATOR.
8249 # The user is always right.
8250 if test "${PATH_SEPARATOR+set}" != set; then
8251 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8252 # contains only /bin. Note that ksh looks also at the FPATH variable,
8253 # so we have to set that as well for the test.
8254 PATH_SEPARATOR=:
8255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8256 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8257 || PATH_SEPARATOR=';'
8261 # Find out how to test for executable files. Don't use a zero-byte file,
8262 # as systems may use methods other than mode bits to determine executability.
8263 cat >conf$$.file <<_ASEOF
8264 #! /bin/sh
8265 exit 0
8266 _ASEOF
8267 chmod +x conf$$.file
8268 if test -x conf$$.file >/dev/null 2>&1; then
8269 ac_executable_p="test -x"
8270 else
8271 ac_executable_p="test -f"
8273 rm -f conf$$.file
8275 # Extract the first word of "msgfmt", so it can be a program name with args.
8276 set dummy msgfmt; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_path_MSGFMT+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 case "$MSGFMT" in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8287 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8288 for ac_dir in $PATH; do
8289 IFS="$ac_save_IFS"
8290 test -z "$ac_dir" && ac_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8293 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8294 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8295 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8296 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8297 break 2
8300 done
8301 done
8302 IFS="$ac_save_IFS"
8303 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8305 esac
8307 MSGFMT="$ac_cv_path_MSGFMT"
8308 if test "$MSGFMT" != ":"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8310 $as_echo "$MSGFMT" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8316 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8317 set dummy gmsgfmt; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_path_GMSGFMT+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 case $GMSGFMT in
8324 [\\/]* | ?:[\\/]*)
8325 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8335 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8339 done
8340 done
8341 IFS=$as_save_IFS
8343 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8345 esac
8347 GMSGFMT=$ac_cv_path_GMSGFMT
8348 if test -n "$GMSGFMT"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8350 $as_echo "$GMSGFMT" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8358 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8359 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
8360 *) MSGFMT_015=$MSGFMT ;;
8361 esac
8363 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8364 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8365 *) GMSGFMT_015=$GMSGFMT ;;
8366 esac
8370 # Prepare PATH_SEPARATOR.
8371 # The user is always right.
8372 if test "${PATH_SEPARATOR+set}" != set; then
8373 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8374 # contains only /bin. Note that ksh looks also at the FPATH variable,
8375 # so we have to set that as well for the test.
8376 PATH_SEPARATOR=:
8377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8378 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8379 || PATH_SEPARATOR=';'
8383 # Find out how to test for executable files. Don't use a zero-byte file,
8384 # as systems may use methods other than mode bits to determine executability.
8385 cat >conf$$.file <<_ASEOF
8386 #! /bin/sh
8387 exit 0
8388 _ASEOF
8389 chmod +x conf$$.file
8390 if test -x conf$$.file >/dev/null 2>&1; then
8391 ac_executable_p="test -x"
8392 else
8393 ac_executable_p="test -f"
8395 rm -f conf$$.file
8397 # Extract the first word of "xgettext", so it can be a program name with args.
8398 set dummy xgettext; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_path_XGETTEXT+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 case "$XGETTEXT" in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8409 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8410 for ac_dir in $PATH; do
8411 IFS="$ac_save_IFS"
8412 test -z "$ac_dir" && ac_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8415 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8416 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8417 (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
8418 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8419 break 2
8422 done
8423 done
8424 IFS="$ac_save_IFS"
8425 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8427 esac
8429 XGETTEXT="$ac_cv_path_XGETTEXT"
8430 if test "$XGETTEXT" != ":"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8432 $as_echo "$XGETTEXT" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8438 rm -f messages.po
8440 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8441 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8442 *) XGETTEXT_015=$XGETTEXT ;;
8443 esac
8447 # Prepare PATH_SEPARATOR.
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8451 # contains only /bin. Note that ksh looks also at the FPATH variable,
8452 # so we have to set that as well for the test.
8453 PATH_SEPARATOR=:
8454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8455 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8456 || PATH_SEPARATOR=';'
8460 # Find out how to test for executable files. Don't use a zero-byte file,
8461 # as systems may use methods other than mode bits to determine executability.
8462 cat >conf$$.file <<_ASEOF
8463 #! /bin/sh
8464 exit 0
8465 _ASEOF
8466 chmod +x conf$$.file
8467 if test -x conf$$.file >/dev/null 2>&1; then
8468 ac_executable_p="test -x"
8469 else
8470 ac_executable_p="test -f"
8472 rm -f conf$$.file
8474 # Extract the first word of "msgmerge", so it can be a program name with args.
8475 set dummy msgmerge; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_path_MSGMERGE+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 case "$MSGMERGE" in
8482 [\\/]* | ?:[\\/]*)
8483 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8486 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8487 for ac_dir in $PATH; do
8488 IFS="$ac_save_IFS"
8489 test -z "$ac_dir" && ac_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8492 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8493 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8494 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8495 break 2
8498 done
8499 done
8500 IFS="$ac_save_IFS"
8501 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8503 esac
8505 MSGMERGE="$ac_cv_path_MSGMERGE"
8506 if test "$MSGMERGE" != ":"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8508 $as_echo "$MSGMERGE" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8515 test -n "$localedir" || localedir='${datadir}/locale'
8518 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8521 ac_config_commands="$ac_config_commands po-directories"
8525 if test "X$prefix" = "XNONE"; then
8526 acl_final_prefix="$ac_default_prefix"
8527 else
8528 acl_final_prefix="$prefix"
8530 if test "X$exec_prefix" = "XNONE"; then
8531 acl_final_exec_prefix='${prefix}'
8532 else
8533 acl_final_exec_prefix="$exec_prefix"
8535 acl_save_prefix="$prefix"
8536 prefix="$acl_final_prefix"
8537 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8538 prefix="$acl_save_prefix"
8542 # Check whether --with-gnu-ld was given.
8543 if test "${with_gnu_ld+set}" = set; then :
8544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8545 else
8546 with_gnu_ld=no
8549 # Prepare PATH_SEPARATOR.
8550 # The user is always right.
8551 if test "${PATH_SEPARATOR+set}" != set; then
8552 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8553 # contains only /bin. Note that ksh looks also at the FPATH variable,
8554 # so we have to set that as well for the test.
8555 PATH_SEPARATOR=:
8556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8557 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8558 || PATH_SEPARATOR=';'
8562 ac_prog=ld
8563 if test "$GCC" = yes; then
8564 # Check if gcc -print-prog-name=ld gives a path.
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8566 $as_echo_n "checking for ld used by $CC... " >&6; }
8567 case $host in
8568 *-*-mingw*)
8569 # gcc leaves a trailing carriage return which upsets mingw
8570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8573 esac
8574 case $ac_prog in
8575 # Accept absolute paths.
8576 [\\/]* | ?:[\\/]*)
8577 re_direlt='/[^/][^/]*/\.\./'
8578 # Canonicalize the pathname of ld
8579 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8580 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
8581 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8582 done
8583 test -z "$LD" && LD="$ac_prog"
8586 # If it fails, then pretend we aren't using GCC.
8587 ac_prog=ld
8590 # If it is relative, then search for the first ld in PATH.
8591 with_gnu_ld=unknown
8593 esac
8594 elif test "$with_gnu_ld" = yes; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8596 $as_echo_n "checking for GNU ld... " >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8599 $as_echo_n "checking for non-GNU ld... " >&6; }
8601 if ${acl_cv_path_LD+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 if test -z "$LD"; then
8605 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8606 for ac_dir in $PATH; do
8607 IFS="$acl_save_ifs"
8608 test -z "$ac_dir" && ac_dir=.
8609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8610 acl_cv_path_LD="$ac_dir/$ac_prog"
8611 # Check to see if the program is GNU ld. I'd rather use --version,
8612 # but apparently some variants of GNU ld only accept -v.
8613 # Break only if it was the GNU/non-GNU ld that we prefer.
8614 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8615 *GNU* | *'with BFD'*)
8616 test "$with_gnu_ld" != no && break
8619 test "$with_gnu_ld" != yes && break
8621 esac
8623 done
8624 IFS="$acl_save_ifs"
8625 else
8626 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8630 LD="$acl_cv_path_LD"
8631 if test -n "$LD"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8633 $as_echo "$LD" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8641 if ${acl_cv_prog_gnu_ld+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8645 case `$LD -v 2>&1 </dev/null` in
8646 *GNU* | *'with BFD'*)
8647 acl_cv_prog_gnu_ld=yes
8650 acl_cv_prog_gnu_ld=no
8652 esac
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8655 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8656 with_gnu_ld=$acl_cv_prog_gnu_ld
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8662 $as_echo_n "checking for shared library run path origin... " >&6; }
8663 if ${acl_cv_rpath+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8667 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8668 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8669 . ./conftest.sh
8670 rm -f ./conftest.sh
8671 acl_cv_rpath=done
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8675 $as_echo "$acl_cv_rpath" >&6; }
8676 wl="$acl_cv_wl"
8677 acl_libext="$acl_cv_libext"
8678 acl_shlibext="$acl_cv_shlibext"
8679 acl_libname_spec="$acl_cv_libname_spec"
8680 acl_library_names_spec="$acl_cv_library_names_spec"
8681 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8682 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8683 acl_hardcode_direct="$acl_cv_hardcode_direct"
8684 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8685 # Check whether --enable-rpath was given.
8686 if test "${enable_rpath+set}" = set; then :
8687 enableval=$enable_rpath; :
8688 else
8689 enable_rpath=yes
8695 acl_libdirstem=lib
8696 acl_libdirstem2=
8697 case "$host_os" in
8698 solaris*)
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8700 $as_echo_n "checking for 64-bit host... " >&6; }
8701 if ${gl_cv_solaris_64bit+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8707 #ifdef _LP64
8708 sixtyfour bits
8709 #endif
8711 _ACEOF
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8714 gl_cv_solaris_64bit=yes
8715 else
8716 gl_cv_solaris_64bit=no
8718 rm -f conftest*
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8723 $as_echo "$gl_cv_solaris_64bit" >&6; }
8724 if test $gl_cv_solaris_64bit = yes; then
8725 acl_libdirstem=lib/64
8726 case "$host_cpu" in
8727 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8728 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8729 esac
8733 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8734 if test -n "$searchpath"; then
8735 acl_save_IFS="${IFS= }"; IFS=":"
8736 for searchdir in $searchpath; do
8737 if test -d "$searchdir"; then
8738 case "$searchdir" in
8739 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8740 */../ | */.. )
8741 # Better ignore directories of this form. They are misleading.
8743 *) searchdir=`cd "$searchdir" && pwd`
8744 case "$searchdir" in
8745 */lib64 ) acl_libdirstem=lib64 ;;
8746 esac ;;
8747 esac
8749 done
8750 IFS="$acl_save_IFS"
8753 esac
8754 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8767 use_additional=yes
8769 acl_save_prefix="$prefix"
8770 prefix="$acl_final_prefix"
8771 acl_save_exec_prefix="$exec_prefix"
8772 exec_prefix="$acl_final_exec_prefix"
8774 eval additional_includedir=\"$includedir\"
8775 eval additional_libdir=\"$libdir\"
8777 exec_prefix="$acl_save_exec_prefix"
8778 prefix="$acl_save_prefix"
8781 # Check whether --with-libiconv-prefix was given.
8782 if test "${with_libiconv_prefix+set}" = set; then :
8783 withval=$with_libiconv_prefix;
8784 if test "X$withval" = "Xno"; then
8785 use_additional=no
8786 else
8787 if test "X$withval" = "X"; then
8789 acl_save_prefix="$prefix"
8790 prefix="$acl_final_prefix"
8791 acl_save_exec_prefix="$exec_prefix"
8792 exec_prefix="$acl_final_exec_prefix"
8794 eval additional_includedir=\"$includedir\"
8795 eval additional_libdir=\"$libdir\"
8797 exec_prefix="$acl_save_exec_prefix"
8798 prefix="$acl_save_prefix"
8800 else
8801 additional_includedir="$withval/include"
8802 additional_libdir="$withval/$acl_libdirstem"
8803 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8804 && ! test -d "$withval/$acl_libdirstem"; then
8805 additional_libdir="$withval/$acl_libdirstem2"
8812 LIBICONV=
8813 LTLIBICONV=
8814 INCICONV=
8815 LIBICONV_PREFIX=
8816 HAVE_LIBICONV=
8817 rpathdirs=
8818 ltrpathdirs=
8819 names_already_handled=
8820 names_next_round='iconv '
8821 while test -n "$names_next_round"; do
8822 names_this_round="$names_next_round"
8823 names_next_round=
8824 for name in $names_this_round; do
8825 already_handled=
8826 for n in $names_already_handled; do
8827 if test "$n" = "$name"; then
8828 already_handled=yes
8829 break
8831 done
8832 if test -z "$already_handled"; then
8833 names_already_handled="$names_already_handled $name"
8834 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8835 eval value=\"\$HAVE_LIB$uppername\"
8836 if test -n "$value"; then
8837 if test "$value" = yes; then
8838 eval value=\"\$LIB$uppername\"
8839 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8840 eval value=\"\$LTLIB$uppername\"
8841 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8842 else
8845 else
8846 found_dir=
8847 found_la=
8848 found_so=
8849 found_a=
8850 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8851 if test -n "$acl_shlibext"; then
8852 shrext=".$acl_shlibext" # typically: shrext=.so
8853 else
8854 shrext=
8856 if test $use_additional = yes; then
8857 dir="$additional_libdir"
8858 if test -n "$acl_shlibext"; then
8859 if test -f "$dir/$libname$shrext"; then
8860 found_dir="$dir"
8861 found_so="$dir/$libname$shrext"
8862 else
8863 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8864 ver=`(cd "$dir" && \
8865 for f in "$libname$shrext".*; do echo "$f"; done \
8866 | sed -e "s,^$libname$shrext\\\\.,," \
8867 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8868 | sed 1q ) 2>/dev/null`
8869 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8870 found_dir="$dir"
8871 found_so="$dir/$libname$shrext.$ver"
8873 else
8874 eval library_names=\"$acl_library_names_spec\"
8875 for f in $library_names; do
8876 if test -f "$dir/$f"; then
8877 found_dir="$dir"
8878 found_so="$dir/$f"
8879 break
8881 done
8885 if test "X$found_dir" = "X"; then
8886 if test -f "$dir/$libname.$acl_libext"; then
8887 found_dir="$dir"
8888 found_a="$dir/$libname.$acl_libext"
8891 if test "X$found_dir" != "X"; then
8892 if test -f "$dir/$libname.la"; then
8893 found_la="$dir/$libname.la"
8897 if test "X$found_dir" = "X"; then
8898 for x in $LDFLAGS $LTLIBICONV; do
8900 acl_save_prefix="$prefix"
8901 prefix="$acl_final_prefix"
8902 acl_save_exec_prefix="$exec_prefix"
8903 exec_prefix="$acl_final_exec_prefix"
8904 eval x=\"$x\"
8905 exec_prefix="$acl_save_exec_prefix"
8906 prefix="$acl_save_prefix"
8908 case "$x" in
8909 -L*)
8910 dir=`echo "X$x" | sed -e 's/^X-L//'`
8911 if test -n "$acl_shlibext"; then
8912 if test -f "$dir/$libname$shrext"; then
8913 found_dir="$dir"
8914 found_so="$dir/$libname$shrext"
8915 else
8916 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8917 ver=`(cd "$dir" && \
8918 for f in "$libname$shrext".*; do echo "$f"; done \
8919 | sed -e "s,^$libname$shrext\\\\.,," \
8920 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8921 | sed 1q ) 2>/dev/null`
8922 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8923 found_dir="$dir"
8924 found_so="$dir/$libname$shrext.$ver"
8926 else
8927 eval library_names=\"$acl_library_names_spec\"
8928 for f in $library_names; do
8929 if test -f "$dir/$f"; then
8930 found_dir="$dir"
8931 found_so="$dir/$f"
8932 break
8934 done
8938 if test "X$found_dir" = "X"; then
8939 if test -f "$dir/$libname.$acl_libext"; then
8940 found_dir="$dir"
8941 found_a="$dir/$libname.$acl_libext"
8944 if test "X$found_dir" != "X"; then
8945 if test -f "$dir/$libname.la"; then
8946 found_la="$dir/$libname.la"
8950 esac
8951 if test "X$found_dir" != "X"; then
8952 break
8954 done
8956 if test "X$found_dir" != "X"; then
8957 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8958 if test "X$found_so" != "X"; then
8959 if test "$enable_rpath" = no \
8960 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8961 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8963 else
8964 haveit=
8965 for x in $ltrpathdirs; do
8966 if test "X$x" = "X$found_dir"; then
8967 haveit=yes
8968 break
8970 done
8971 if test -z "$haveit"; then
8972 ltrpathdirs="$ltrpathdirs $found_dir"
8974 if test "$acl_hardcode_direct" = yes; then
8975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8976 else
8977 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8979 haveit=
8980 for x in $rpathdirs; do
8981 if test "X$x" = "X$found_dir"; then
8982 haveit=yes
8983 break
8985 done
8986 if test -z "$haveit"; then
8987 rpathdirs="$rpathdirs $found_dir"
8989 else
8990 haveit=
8991 for x in $LDFLAGS $LIBICONV; do
8993 acl_save_prefix="$prefix"
8994 prefix="$acl_final_prefix"
8995 acl_save_exec_prefix="$exec_prefix"
8996 exec_prefix="$acl_final_exec_prefix"
8997 eval x=\"$x\"
8998 exec_prefix="$acl_save_exec_prefix"
8999 prefix="$acl_save_prefix"
9001 if test "X$x" = "X-L$found_dir"; then
9002 haveit=yes
9003 break
9005 done
9006 if test -z "$haveit"; then
9007 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9009 if test "$acl_hardcode_minus_L" != no; then
9010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9011 else
9012 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9017 else
9018 if test "X$found_a" != "X"; then
9019 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9020 else
9021 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9024 additional_includedir=
9025 case "$found_dir" in
9026 */$acl_libdirstem | */$acl_libdirstem/)
9027 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9028 if test "$name" = 'iconv'; then
9029 LIBICONV_PREFIX="$basedir"
9031 additional_includedir="$basedir/include"
9033 */$acl_libdirstem2 | */$acl_libdirstem2/)
9034 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9035 if test "$name" = 'iconv'; then
9036 LIBICONV_PREFIX="$basedir"
9038 additional_includedir="$basedir/include"
9040 esac
9041 if test "X$additional_includedir" != "X"; then
9042 if test "X$additional_includedir" != "X/usr/include"; then
9043 haveit=
9044 if test "X$additional_includedir" = "X/usr/local/include"; then
9045 if test -n "$GCC"; then
9046 case $host_os in
9047 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9048 esac
9051 if test -z "$haveit"; then
9052 for x in $CPPFLAGS $INCICONV; do
9054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9062 if test "X$x" = "X-I$additional_includedir"; then
9063 haveit=yes
9064 break
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$additional_includedir"; then
9069 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9075 if test -n "$found_la"; then
9076 save_libdir="$libdir"
9077 case "$found_la" in
9078 */* | *\\*) . "$found_la" ;;
9079 *) . "./$found_la" ;;
9080 esac
9081 libdir="$save_libdir"
9082 for dep in $dependency_libs; do
9083 case "$dep" in
9084 -L*)
9085 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9086 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9087 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9088 haveit=
9089 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9090 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9091 if test -n "$GCC"; then
9092 case $host_os in
9093 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9094 esac
9097 if test -z "$haveit"; then
9098 haveit=
9099 for x in $LDFLAGS $LIBICONV; do
9101 acl_save_prefix="$prefix"
9102 prefix="$acl_final_prefix"
9103 acl_save_exec_prefix="$exec_prefix"
9104 exec_prefix="$acl_final_exec_prefix"
9105 eval x=\"$x\"
9106 exec_prefix="$acl_save_exec_prefix"
9107 prefix="$acl_save_prefix"
9109 if test "X$x" = "X-L$additional_libdir"; then
9110 haveit=yes
9111 break
9113 done
9114 if test -z "$haveit"; then
9115 if test -d "$additional_libdir"; then
9116 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9119 haveit=
9120 for x in $LDFLAGS $LTLIBICONV; do
9122 acl_save_prefix="$prefix"
9123 prefix="$acl_final_prefix"
9124 acl_save_exec_prefix="$exec_prefix"
9125 exec_prefix="$acl_final_exec_prefix"
9126 eval x=\"$x\"
9127 exec_prefix="$acl_save_exec_prefix"
9128 prefix="$acl_save_prefix"
9130 if test "X$x" = "X-L$additional_libdir"; then
9131 haveit=yes
9132 break
9134 done
9135 if test -z "$haveit"; then
9136 if test -d "$additional_libdir"; then
9137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9143 -R*)
9144 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9145 if test "$enable_rpath" != no; then
9146 haveit=
9147 for x in $rpathdirs; do
9148 if test "X$x" = "X$dir"; then
9149 haveit=yes
9150 break
9152 done
9153 if test -z "$haveit"; then
9154 rpathdirs="$rpathdirs $dir"
9156 haveit=
9157 for x in $ltrpathdirs; do
9158 if test "X$x" = "X$dir"; then
9159 haveit=yes
9160 break
9162 done
9163 if test -z "$haveit"; then
9164 ltrpathdirs="$ltrpathdirs $dir"
9168 -l*)
9169 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9171 *.la)
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9175 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9178 esac
9179 done
9181 else
9182 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9187 done
9188 done
9189 if test "X$rpathdirs" != "X"; then
9190 if test -n "$acl_hardcode_libdir_separator"; then
9191 alldirs=
9192 for found_dir in $rpathdirs; do
9193 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9194 done
9195 acl_save_libdir="$libdir"
9196 libdir="$alldirs"
9197 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9198 libdir="$acl_save_libdir"
9199 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9200 else
9201 for found_dir in $rpathdirs; do
9202 acl_save_libdir="$libdir"
9203 libdir="$found_dir"
9204 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9205 libdir="$acl_save_libdir"
9206 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9207 done
9210 if test "X$ltrpathdirs" != "X"; then
9211 for found_dir in $ltrpathdirs; do
9212 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9213 done
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9247 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9248 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 gt_save_LIBS="$LIBS"
9252 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <CoreFoundation/CFPreferences.h>
9257 main (void)
9259 CFPreferencesCopyAppValue(NULL, NULL)
9261 return 0;
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 gt_cv_func_CFPreferencesCopyAppValue=yes
9266 else
9267 gt_cv_func_CFPreferencesCopyAppValue=no
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LIBS="$gt_save_LIBS"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9274 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9275 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9277 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9281 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9282 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 gt_save_LIBS="$LIBS"
9286 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <CoreFoundation/CFLocale.h>
9291 main (void)
9293 CFLocaleCopyCurrent();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 gt_cv_func_CFLocaleCopyCurrent=yes
9300 else
9301 gt_cv_func_CFLocaleCopyCurrent=no
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS="$gt_save_LIBS"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9308 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9309 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9311 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9314 INTL_MACOSX_LIBS=
9315 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9316 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9324 LIBINTL=
9325 LTLIBINTL=
9326 POSUB=
9328 case " $gt_needs " in
9329 *" need-formatstring-macros "*) gt_api_version=3 ;;
9330 *" need-ngettext "*) gt_api_version=2 ;;
9331 *) gt_api_version=1 ;;
9332 esac
9333 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9334 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9336 if test "$USE_NLS" = "yes"; then
9337 gt_use_preinstalled_gnugettext=no
9340 if test $gt_api_version -ge 3; then
9341 gt_revision_test_code='
9342 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9343 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9344 #endif
9345 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9347 else
9348 gt_revision_test_code=
9350 if test $gt_api_version -ge 2; then
9351 gt_expression_test_code=' + * ngettext ("", "", 0)'
9352 else
9353 gt_expression_test_code=
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9357 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9358 if eval \${$gt_func_gnugettext_libc+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 #include <libintl.h>
9365 $gt_revision_test_code
9366 extern int _nl_msg_cat_cntr;
9367 extern int *_nl_domain_bindings;
9370 main (void)
9373 bindtextdomain ("", "");
9374 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9377 return 0;
9379 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"; then :
9381 eval "$gt_func_gnugettext_libc=yes"
9382 else
9383 eval "$gt_func_gnugettext_libc=no"
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9388 eval ac_res=\$$gt_func_gnugettext_libc
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9390 $as_echo "$ac_res" >&6; }
9392 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9398 am_save_CPPFLAGS="$CPPFLAGS"
9400 for element in $INCICONV; do
9401 haveit=
9402 for x in $CPPFLAGS; do
9404 acl_save_prefix="$prefix"
9405 prefix="$acl_final_prefix"
9406 acl_save_exec_prefix="$exec_prefix"
9407 exec_prefix="$acl_final_exec_prefix"
9408 eval x=\"$x\"
9409 exec_prefix="$acl_save_exec_prefix"
9410 prefix="$acl_save_prefix"
9412 if test "X$x" = "X$element"; then
9413 haveit=yes
9414 break
9416 done
9417 if test -z "$haveit"; then
9418 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9420 done
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9424 $as_echo_n "checking for iconv... " >&6; }
9425 if ${am_cv_func_iconv+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9429 am_cv_func_iconv="no, consider installing GNU libiconv"
9430 am_cv_lib_iconv=no
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 #include <stdlib.h>
9435 #include <iconv.h>
9438 main (void)
9440 iconv_t cd = iconv_open("","");
9441 iconv(cd,NULL,NULL,NULL,NULL);
9442 iconv_close(cd);
9444 return 0;
9446 _ACEOF
9447 if ac_fn_c_try_link "$LINENO"; then :
9448 am_cv_func_iconv=yes
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 if test "$am_cv_func_iconv" != yes; then
9453 am_save_LIBS="$LIBS"
9454 LIBS="$LIBS $LIBICONV"
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9458 #include <stdlib.h>
9459 #include <iconv.h>
9462 main (void)
9464 iconv_t cd = iconv_open("","");
9465 iconv(cd,NULL,NULL,NULL,NULL);
9466 iconv_close(cd);
9468 return 0;
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 am_cv_lib_iconv=yes
9473 am_cv_func_iconv=yes
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 LIBS="$am_save_LIBS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9482 $as_echo "$am_cv_func_iconv" >&6; }
9483 if test "$am_cv_func_iconv" = yes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9485 $as_echo_n "checking for working iconv... " >&6; }
9486 if ${am_cv_func_iconv_works+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9490 am_save_LIBS="$LIBS"
9491 if test $am_cv_lib_iconv = yes; then
9492 LIBS="$LIBS $LIBICONV"
9494 if test "$cross_compiling" = yes; then :
9496 case "$host_os" in
9497 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9498 *) am_cv_func_iconv_works="guessing yes" ;;
9499 esac
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 #include <iconv.h>
9506 #include <string.h>
9507 int main ()
9509 int result = 0;
9510 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9511 returns. */
9513 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9514 if (cd_utf8_to_88591 != (iconv_t)(-1))
9516 static const char input[] = "\342\202\254"; /* EURO SIGN */
9517 char buf[10];
9518 const char *inptr = input;
9519 size_t inbytesleft = strlen (input);
9520 char *outptr = buf;
9521 size_t outbytesleft = sizeof (buf);
9522 size_t res = iconv (cd_utf8_to_88591,
9523 (char **) &inptr, &inbytesleft,
9524 &outptr, &outbytesleft);
9525 if (res == 0)
9526 result |= 1;
9527 iconv_close (cd_utf8_to_88591);
9530 /* Test against Solaris 10 bug: Failures are not distinguishable from
9531 successful returns. */
9533 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9534 if (cd_ascii_to_88591 != (iconv_t)(-1))
9536 static const char input[] = "\263";
9537 char buf[10];
9538 const char *inptr = input;
9539 size_t inbytesleft = strlen (input);
9540 char *outptr = buf;
9541 size_t outbytesleft = sizeof (buf);
9542 size_t res = iconv (cd_ascii_to_88591,
9543 (char **) &inptr, &inbytesleft,
9544 &outptr, &outbytesleft);
9545 if (res == 0)
9546 result |= 2;
9547 iconv_close (cd_ascii_to_88591);
9550 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9552 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9553 if (cd_88591_to_utf8 != (iconv_t)(-1))
9555 static const char input[] = "\304";
9556 static char buf[2] = { (char)0xDE, (char)0xAD };
9557 const char *inptr = input;
9558 size_t inbytesleft = 1;
9559 char *outptr = buf;
9560 size_t outbytesleft = 1;
9561 size_t res = iconv (cd_88591_to_utf8,
9562 (char **) &inptr, &inbytesleft,
9563 &outptr, &outbytesleft);
9564 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9565 result |= 4;
9566 iconv_close (cd_88591_to_utf8);
9569 #if 0 /* This bug could be worked around by the caller. */
9570 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9572 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9573 if (cd_88591_to_utf8 != (iconv_t)(-1))
9575 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9576 char buf[50];
9577 const char *inptr = input;
9578 size_t inbytesleft = strlen (input);
9579 char *outptr = buf;
9580 size_t outbytesleft = sizeof (buf);
9581 size_t res = iconv (cd_88591_to_utf8,
9582 (char **) &inptr, &inbytesleft,
9583 &outptr, &outbytesleft);
9584 if ((int)res > 0)
9585 result |= 8;
9586 iconv_close (cd_88591_to_utf8);
9589 #endif
9590 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9591 provided. */
9592 if (/* Try standardized names. */
9593 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9594 /* Try IRIX, OSF/1 names. */
9595 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9596 /* Try AIX names. */
9597 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9598 /* Try HP-UX names. */
9599 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9600 result |= 16;
9601 return result;
9603 _ACEOF
9604 if ac_fn_c_try_run "$LINENO"; then :
9605 am_cv_func_iconv_works=yes
9606 else
9607 am_cv_func_iconv_works=no
9609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9610 conftest.$ac_objext conftest.beam conftest.$ac_ext
9613 LIBS="$am_save_LIBS"
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9617 $as_echo "$am_cv_func_iconv_works" >&6; }
9618 case "$am_cv_func_iconv_works" in
9619 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9620 *) am_func_iconv=yes ;;
9621 esac
9622 else
9623 am_func_iconv=no am_cv_lib_iconv=no
9625 if test "$am_func_iconv" = yes; then
9627 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9630 if test "$am_cv_lib_iconv" = yes; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9632 $as_echo_n "checking how to link with libiconv... " >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9634 $as_echo "$LIBICONV" >&6; }
9635 else
9636 CPPFLAGS="$am_save_CPPFLAGS"
9637 LIBICONV=
9638 LTLIBICONV=
9651 use_additional=yes
9653 acl_save_prefix="$prefix"
9654 prefix="$acl_final_prefix"
9655 acl_save_exec_prefix="$exec_prefix"
9656 exec_prefix="$acl_final_exec_prefix"
9658 eval additional_includedir=\"$includedir\"
9659 eval additional_libdir=\"$libdir\"
9661 exec_prefix="$acl_save_exec_prefix"
9662 prefix="$acl_save_prefix"
9665 # Check whether --with-libintl-prefix was given.
9666 if test "${with_libintl_prefix+set}" = set; then :
9667 withval=$with_libintl_prefix;
9668 if test "X$withval" = "Xno"; then
9669 use_additional=no
9670 else
9671 if test "X$withval" = "X"; then
9673 acl_save_prefix="$prefix"
9674 prefix="$acl_final_prefix"
9675 acl_save_exec_prefix="$exec_prefix"
9676 exec_prefix="$acl_final_exec_prefix"
9678 eval additional_includedir=\"$includedir\"
9679 eval additional_libdir=\"$libdir\"
9681 exec_prefix="$acl_save_exec_prefix"
9682 prefix="$acl_save_prefix"
9684 else
9685 additional_includedir="$withval/include"
9686 additional_libdir="$withval/$acl_libdirstem"
9687 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9688 && ! test -d "$withval/$acl_libdirstem"; then
9689 additional_libdir="$withval/$acl_libdirstem2"
9696 LIBINTL=
9697 LTLIBINTL=
9698 INCINTL=
9699 LIBINTL_PREFIX=
9700 HAVE_LIBINTL=
9701 rpathdirs=
9702 ltrpathdirs=
9703 names_already_handled=
9704 names_next_round='intl '
9705 while test -n "$names_next_round"; do
9706 names_this_round="$names_next_round"
9707 names_next_round=
9708 for name in $names_this_round; do
9709 already_handled=
9710 for n in $names_already_handled; do
9711 if test "$n" = "$name"; then
9712 already_handled=yes
9713 break
9715 done
9716 if test -z "$already_handled"; then
9717 names_already_handled="$names_already_handled $name"
9718 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9719 eval value=\"\$HAVE_LIB$uppername\"
9720 if test -n "$value"; then
9721 if test "$value" = yes; then
9722 eval value=\"\$LIB$uppername\"
9723 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9724 eval value=\"\$LTLIB$uppername\"
9725 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9726 else
9729 else
9730 found_dir=
9731 found_la=
9732 found_so=
9733 found_a=
9734 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9735 if test -n "$acl_shlibext"; then
9736 shrext=".$acl_shlibext" # typically: shrext=.so
9737 else
9738 shrext=
9740 if test $use_additional = yes; then
9741 dir="$additional_libdir"
9742 if test -n "$acl_shlibext"; then
9743 if test -f "$dir/$libname$shrext"; then
9744 found_dir="$dir"
9745 found_so="$dir/$libname$shrext"
9746 else
9747 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9748 ver=`(cd "$dir" && \
9749 for f in "$libname$shrext".*; do echo "$f"; done \
9750 | sed -e "s,^$libname$shrext\\\\.,," \
9751 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9752 | sed 1q ) 2>/dev/null`
9753 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9754 found_dir="$dir"
9755 found_so="$dir/$libname$shrext.$ver"
9757 else
9758 eval library_names=\"$acl_library_names_spec\"
9759 for f in $library_names; do
9760 if test -f "$dir/$f"; then
9761 found_dir="$dir"
9762 found_so="$dir/$f"
9763 break
9765 done
9769 if test "X$found_dir" = "X"; then
9770 if test -f "$dir/$libname.$acl_libext"; then
9771 found_dir="$dir"
9772 found_a="$dir/$libname.$acl_libext"
9775 if test "X$found_dir" != "X"; then
9776 if test -f "$dir/$libname.la"; then
9777 found_la="$dir/$libname.la"
9781 if test "X$found_dir" = "X"; then
9782 for x in $LDFLAGS $LTLIBINTL; do
9784 acl_save_prefix="$prefix"
9785 prefix="$acl_final_prefix"
9786 acl_save_exec_prefix="$exec_prefix"
9787 exec_prefix="$acl_final_exec_prefix"
9788 eval x=\"$x\"
9789 exec_prefix="$acl_save_exec_prefix"
9790 prefix="$acl_save_prefix"
9792 case "$x" in
9793 -L*)
9794 dir=`echo "X$x" | sed -e 's/^X-L//'`
9795 if test -n "$acl_shlibext"; then
9796 if test -f "$dir/$libname$shrext"; then
9797 found_dir="$dir"
9798 found_so="$dir/$libname$shrext"
9799 else
9800 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9801 ver=`(cd "$dir" && \
9802 for f in "$libname$shrext".*; do echo "$f"; done \
9803 | sed -e "s,^$libname$shrext\\\\.,," \
9804 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9805 | sed 1q ) 2>/dev/null`
9806 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9807 found_dir="$dir"
9808 found_so="$dir/$libname$shrext.$ver"
9810 else
9811 eval library_names=\"$acl_library_names_spec\"
9812 for f in $library_names; do
9813 if test -f "$dir/$f"; then
9814 found_dir="$dir"
9815 found_so="$dir/$f"
9816 break
9818 done
9822 if test "X$found_dir" = "X"; then
9823 if test -f "$dir/$libname.$acl_libext"; then
9824 found_dir="$dir"
9825 found_a="$dir/$libname.$acl_libext"
9828 if test "X$found_dir" != "X"; then
9829 if test -f "$dir/$libname.la"; then
9830 found_la="$dir/$libname.la"
9834 esac
9835 if test "X$found_dir" != "X"; then
9836 break
9838 done
9840 if test "X$found_dir" != "X"; then
9841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9842 if test "X$found_so" != "X"; then
9843 if test "$enable_rpath" = no \
9844 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9845 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9846 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9847 else
9848 haveit=
9849 for x in $ltrpathdirs; do
9850 if test "X$x" = "X$found_dir"; then
9851 haveit=yes
9852 break
9854 done
9855 if test -z "$haveit"; then
9856 ltrpathdirs="$ltrpathdirs $found_dir"
9858 if test "$acl_hardcode_direct" = yes; then
9859 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9860 else
9861 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9862 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9863 haveit=
9864 for x in $rpathdirs; do
9865 if test "X$x" = "X$found_dir"; then
9866 haveit=yes
9867 break
9869 done
9870 if test -z "$haveit"; then
9871 rpathdirs="$rpathdirs $found_dir"
9873 else
9874 haveit=
9875 for x in $LDFLAGS $LIBINTL; do
9877 acl_save_prefix="$prefix"
9878 prefix="$acl_final_prefix"
9879 acl_save_exec_prefix="$exec_prefix"
9880 exec_prefix="$acl_final_exec_prefix"
9881 eval x=\"$x\"
9882 exec_prefix="$acl_save_exec_prefix"
9883 prefix="$acl_save_prefix"
9885 if test "X$x" = "X-L$found_dir"; then
9886 haveit=yes
9887 break
9889 done
9890 if test -z "$haveit"; then
9891 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9893 if test "$acl_hardcode_minus_L" != no; then
9894 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9895 else
9896 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9901 else
9902 if test "X$found_a" != "X"; then
9903 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9904 else
9905 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9908 additional_includedir=
9909 case "$found_dir" in
9910 */$acl_libdirstem | */$acl_libdirstem/)
9911 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9912 if test "$name" = 'intl'; then
9913 LIBINTL_PREFIX="$basedir"
9915 additional_includedir="$basedir/include"
9917 */$acl_libdirstem2 | */$acl_libdirstem2/)
9918 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9919 if test "$name" = 'intl'; then
9920 LIBINTL_PREFIX="$basedir"
9922 additional_includedir="$basedir/include"
9924 esac
9925 if test "X$additional_includedir" != "X"; then
9926 if test "X$additional_includedir" != "X/usr/include"; then
9927 haveit=
9928 if test "X$additional_includedir" = "X/usr/local/include"; then
9929 if test -n "$GCC"; then
9930 case $host_os in
9931 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9932 esac
9935 if test -z "$haveit"; then
9936 for x in $CPPFLAGS $INCINTL; do
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9942 eval x=\"$x\"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9946 if test "X$x" = "X-I$additional_includedir"; then
9947 haveit=yes
9948 break
9950 done
9951 if test -z "$haveit"; then
9952 if test -d "$additional_includedir"; then
9953 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9959 if test -n "$found_la"; then
9960 save_libdir="$libdir"
9961 case "$found_la" in
9962 */* | *\\*) . "$found_la" ;;
9963 *) . "./$found_la" ;;
9964 esac
9965 libdir="$save_libdir"
9966 for dep in $dependency_libs; do
9967 case "$dep" in
9968 -L*)
9969 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9970 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9971 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9972 haveit=
9973 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9974 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9975 if test -n "$GCC"; then
9976 case $host_os in
9977 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9978 esac
9981 if test -z "$haveit"; then
9982 haveit=
9983 for x in $LDFLAGS $LIBINTL; do
9985 acl_save_prefix="$prefix"
9986 prefix="$acl_final_prefix"
9987 acl_save_exec_prefix="$exec_prefix"
9988 exec_prefix="$acl_final_exec_prefix"
9989 eval x=\"$x\"
9990 exec_prefix="$acl_save_exec_prefix"
9991 prefix="$acl_save_prefix"
9993 if test "X$x" = "X-L$additional_libdir"; then
9994 haveit=yes
9995 break
9997 done
9998 if test -z "$haveit"; then
9999 if test -d "$additional_libdir"; then
10000 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10003 haveit=
10004 for x in $LDFLAGS $LTLIBINTL; do
10006 acl_save_prefix="$prefix"
10007 prefix="$acl_final_prefix"
10008 acl_save_exec_prefix="$exec_prefix"
10009 exec_prefix="$acl_final_exec_prefix"
10010 eval x=\"$x\"
10011 exec_prefix="$acl_save_exec_prefix"
10012 prefix="$acl_save_prefix"
10014 if test "X$x" = "X-L$additional_libdir"; then
10015 haveit=yes
10016 break
10018 done
10019 if test -z "$haveit"; then
10020 if test -d "$additional_libdir"; then
10021 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10027 -R*)
10028 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10029 if test "$enable_rpath" != no; then
10030 haveit=
10031 for x in $rpathdirs; do
10032 if test "X$x" = "X$dir"; then
10033 haveit=yes
10034 break
10036 done
10037 if test -z "$haveit"; then
10038 rpathdirs="$rpathdirs $dir"
10040 haveit=
10041 for x in $ltrpathdirs; do
10042 if test "X$x" = "X$dir"; then
10043 haveit=yes
10044 break
10046 done
10047 if test -z "$haveit"; then
10048 ltrpathdirs="$ltrpathdirs $dir"
10052 -l*)
10053 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10055 *.la)
10056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10059 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10060 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10062 esac
10063 done
10065 else
10066 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10067 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10071 done
10072 done
10073 if test "X$rpathdirs" != "X"; then
10074 if test -n "$acl_hardcode_libdir_separator"; then
10075 alldirs=
10076 for found_dir in $rpathdirs; do
10077 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10078 done
10079 acl_save_libdir="$libdir"
10080 libdir="$alldirs"
10081 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10082 libdir="$acl_save_libdir"
10083 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10084 else
10085 for found_dir in $rpathdirs; do
10086 acl_save_libdir="$libdir"
10087 libdir="$found_dir"
10088 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10089 libdir="$acl_save_libdir"
10090 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10091 done
10094 if test "X$ltrpathdirs" != "X"; then
10095 for found_dir in $ltrpathdirs; do
10096 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10097 done
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10106 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10107 if eval \${$gt_func_gnugettext_libintl+:} false; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 gt_save_CPPFLAGS="$CPPFLAGS"
10111 CPPFLAGS="$CPPFLAGS $INCINTL"
10112 gt_save_LIBS="$LIBS"
10113 LIBS="$LIBS $LIBINTL"
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10117 #include <libintl.h>
10118 $gt_revision_test_code
10119 extern int _nl_msg_cat_cntr;
10120 extern
10121 #ifdef __cplusplus
10123 #endif
10124 const char *_nl_expand_alias (const char *);
10127 main (void)
10130 bindtextdomain ("", "");
10131 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10134 return 0;
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10138 eval "$gt_func_gnugettext_libintl=yes"
10139 else
10140 eval "$gt_func_gnugettext_libintl=no"
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10145 LIBS="$LIBS $LIBICONV"
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10149 #include <libintl.h>
10150 $gt_revision_test_code
10151 extern int _nl_msg_cat_cntr;
10152 extern
10153 #ifdef __cplusplus
10155 #endif
10156 const char *_nl_expand_alias (const char *);
10159 main (void)
10162 bindtextdomain ("", "");
10163 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10166 return 0;
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 LIBINTL="$LIBINTL $LIBICONV"
10171 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10172 eval "$gt_func_gnugettext_libintl=yes"
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10178 CPPFLAGS="$gt_save_CPPFLAGS"
10179 LIBS="$gt_save_LIBS"
10181 eval ac_res=\$$gt_func_gnugettext_libintl
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10183 $as_echo "$ac_res" >&6; }
10186 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10187 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10188 && test "$PACKAGE" != gettext-runtime \
10189 && test "$PACKAGE" != gettext-tools; }; then
10190 gt_use_preinstalled_gnugettext=yes
10191 else
10192 LIBINTL=
10193 LTLIBINTL=
10194 INCINTL=
10199 if test -n "$INTL_MACOSX_LIBS"; then
10200 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10201 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10202 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10203 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10207 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10208 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10210 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10212 else
10213 USE_NLS=no
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10218 $as_echo_n "checking whether to use NLS... " >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10220 $as_echo "$USE_NLS" >&6; }
10221 if test "$USE_NLS" = "yes"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10223 $as_echo_n "checking where the gettext function comes from... " >&6; }
10224 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10225 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10226 gt_source="external libintl"
10227 else
10228 gt_source="libc"
10230 else
10231 gt_source="included intl directory"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10234 $as_echo "$gt_source" >&6; }
10237 if test "$USE_NLS" = "yes"; then
10239 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10240 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10242 $as_echo_n "checking how to link with libintl... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10244 $as_echo "$LIBINTL" >&6; }
10246 for element in $INCINTL; do
10247 haveit=
10248 for x in $CPPFLAGS; do
10250 acl_save_prefix="$prefix"
10251 prefix="$acl_final_prefix"
10252 acl_save_exec_prefix="$exec_prefix"
10253 exec_prefix="$acl_final_exec_prefix"
10254 eval x=\"$x\"
10255 exec_prefix="$acl_save_exec_prefix"
10256 prefix="$acl_save_prefix"
10258 if test "X$x" = "X$element"; then
10259 haveit=yes
10260 break
10262 done
10263 if test -z "$haveit"; then
10264 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10266 done
10271 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10274 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10278 POSUB=po
10283 INTLLIBS="$LIBINTL"
10290 # Check whether --enable-largefile was given.
10291 if test "${enable_largefile+set}" = set; then :
10292 enableval=$enable_largefile;
10295 if test "$enable_largefile" != no; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10298 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10299 if ${ac_cv_sys_largefile_CC+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 ac_cv_sys_largefile_CC=no
10303 if test "$GCC" != yes; then
10304 ac_save_CC=$CC
10305 while :; do
10306 # IRIX 6.2 and later do not support large files by default,
10307 # so use the C compiler's -n32 option if that helps.
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310 #include <sys/types.h>
10311 /* Check that off_t can represent 2**63 - 1 correctly.
10312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10313 since some C++ compilers masquerading as C compilers
10314 incorrectly reject 9223372036854775807. */
10315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10317 && LARGE_OFF_T % 2147483647 == 1)
10318 ? 1 : -1];
10320 main (void)
10324 return 0;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"; then :
10328 break
10330 rm -f core conftest.err conftest.$ac_objext
10331 CC="$CC -n32"
10332 if ac_fn_c_try_compile "$LINENO"; then :
10333 ac_cv_sys_largefile_CC=' -n32'; break
10335 rm -f core conftest.err conftest.$ac_objext
10336 break
10337 done
10338 CC=$ac_save_CC
10339 rm -f conftest.$ac_ext
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10343 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10344 if test "$ac_cv_sys_largefile_CC" != no; then
10345 CC=$CC$ac_cv_sys_largefile_CC
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10349 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10350 if ${ac_cv_sys_file_offset_bits+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 while :; do
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <sys/types.h>
10357 /* Check that off_t can represent 2**63 - 1 correctly.
10358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10359 since some C++ compilers masquerading as C compilers
10360 incorrectly reject 9223372036854775807. */
10361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10363 && LARGE_OFF_T % 2147483647 == 1)
10364 ? 1 : -1];
10366 main (void)
10370 return 0;
10372 _ACEOF
10373 if ac_fn_c_try_compile "$LINENO"; then :
10374 ac_cv_sys_file_offset_bits=no; break
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #define _FILE_OFFSET_BITS 64
10380 #include <sys/types.h>
10381 /* Check that off_t can represent 2**63 - 1 correctly.
10382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10383 since some C++ compilers masquerading as C compilers
10384 incorrectly reject 9223372036854775807. */
10385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10387 && LARGE_OFF_T % 2147483647 == 1)
10388 ? 1 : -1];
10390 main (void)
10394 return 0;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398 ac_cv_sys_file_offset_bits=64; break
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 ac_cv_sys_file_offset_bits=unknown
10402 break
10403 done
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10406 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10407 case $ac_cv_sys_file_offset_bits in #(
10408 no | unknown) ;;
10410 cat >>confdefs.h <<_ACEOF
10411 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10412 _ACEOF
10414 esac
10415 rm -rf conftest*
10416 if test $ac_cv_sys_file_offset_bits = unknown; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10418 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10419 if ${ac_cv_sys_large_files+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 while :; do
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include <sys/types.h>
10426 /* Check that off_t can represent 2**63 - 1 correctly.
10427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10428 since some C++ compilers masquerading as C compilers
10429 incorrectly reject 9223372036854775807. */
10430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10432 && LARGE_OFF_T % 2147483647 == 1)
10433 ? 1 : -1];
10435 main (void)
10439 return 0;
10441 _ACEOF
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 ac_cv_sys_large_files=no; break
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #define _LARGE_FILES 1
10449 #include <sys/types.h>
10450 /* Check that off_t can represent 2**63 - 1 correctly.
10451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10452 since some C++ compilers masquerading as C compilers
10453 incorrectly reject 9223372036854775807. */
10454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10456 && LARGE_OFF_T % 2147483647 == 1)
10457 ? 1 : -1];
10459 main (void)
10463 return 0;
10465 _ACEOF
10466 if ac_fn_c_try_compile "$LINENO"; then :
10467 ac_cv_sys_large_files=1; break
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 ac_cv_sys_large_files=unknown
10471 break
10472 done
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10475 $as_echo "$ac_cv_sys_large_files" >&6; }
10476 case $ac_cv_sys_large_files in #(
10477 no | unknown) ;;
10479 cat >>confdefs.h <<_ACEOF
10480 #define _LARGE_FILES $ac_cv_sys_large_files
10481 _ACEOF
10483 esac
10484 rm -rf conftest*
10491 # Identify characteristics of the host architecture.
10492 unset ac_cv_c_bigendian
10494 if test x"$target_cpu-$platform" = xsparc64-emu ; then
10495 CFLAGS="$CFLAGS -m64"
10496 HOST_CFLAGS="$HOST_CFLAGS -m64"
10499 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10500 HOST_CPPFLAGS="$HOST_CPPFLAGS -D_FILE_OFFSET_BITS=64"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10504 if ${ac_cv_c_bigendian+:} false; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 ac_cv_c_bigendian=unknown
10508 # See if we're dealing with a universal compiler.
10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 #ifndef __APPLE_CC__
10512 not a universal capable compiler
10513 #endif
10514 typedef int dummy;
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10519 # Check for potential -arch flags. It is not universal unless
10520 # there are at least two -arch flags with different values.
10521 ac_arch=
10522 ac_prev=
10523 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10524 if test -n "$ac_prev"; then
10525 case $ac_word in
10526 i?86 | x86_64 | ppc | ppc64)
10527 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10528 ac_arch=$ac_word
10529 else
10530 ac_cv_c_bigendian=universal
10531 break
10534 esac
10535 ac_prev=
10536 elif test "x$ac_word" = "x-arch"; then
10537 ac_prev=arch
10539 done
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 if test $ac_cv_c_bigendian = unknown; then
10543 # See if sys/param.h defines the BYTE_ORDER macro.
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #include <sys/types.h>
10547 #include <sys/param.h>
10550 main (void)
10552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10554 && LITTLE_ENDIAN)
10555 bogus endian macros
10556 #endif
10559 return 0;
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563 # It does; now see whether it defined to BIG_ENDIAN or not.
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <sys/param.h>
10570 main (void)
10572 #if BYTE_ORDER != BIG_ENDIAN
10573 not big endian
10574 #endif
10577 return 0;
10579 _ACEOF
10580 if ac_fn_c_try_compile "$LINENO"; then :
10581 ac_cv_c_bigendian=yes
10582 else
10583 ac_cv_c_bigendian=no
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 if test $ac_cv_c_bigendian = unknown; then
10590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <limits.h>
10596 main (void)
10598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10599 bogus endian macros
10600 #endif
10603 return 0;
10605 _ACEOF
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 # It does; now see whether it defined to _BIG_ENDIAN or not.
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <limits.h>
10613 main (void)
10615 #ifndef _BIG_ENDIAN
10616 not big endian
10617 #endif
10620 return 0;
10622 _ACEOF
10623 if ac_fn_c_try_compile "$LINENO"; then :
10624 ac_cv_c_bigendian=yes
10625 else
10626 ac_cv_c_bigendian=no
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 if test $ac_cv_c_bigendian = unknown; then
10633 # Compile a test program.
10634 if test "$cross_compiling" = yes; then :
10635 # Try to guess by grepping values from an object file.
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 short int ascii_mm[] =
10639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10640 short int ascii_ii[] =
10641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10642 int use_ascii (int i) {
10643 return ascii_mm[i] + ascii_ii[i];
10645 short int ebcdic_ii[] =
10646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10647 short int ebcdic_mm[] =
10648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10649 int use_ebcdic (int i) {
10650 return ebcdic_mm[i] + ebcdic_ii[i];
10652 extern int foo;
10655 main (void)
10657 return use_ascii (foo) == use_ebcdic (foo);
10659 return 0;
10661 _ACEOF
10662 if ac_fn_c_try_compile "$LINENO"; then :
10663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10664 ac_cv_c_bigendian=yes
10666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10667 if test "$ac_cv_c_bigendian" = unknown; then
10668 ac_cv_c_bigendian=no
10669 else
10670 # finding both strings is unlikely to happen, but who knows?
10671 ac_cv_c_bigendian=unknown
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 else
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 $ac_includes_default
10681 main (void)
10684 /* Are we little or big endian? From Harbison&Steele. */
10685 union
10687 long int l;
10688 char c[sizeof (long int)];
10689 } u;
10690 u.l = 1;
10691 return u.c[sizeof (long int) - 1] == 1;
10694 return 0;
10696 _ACEOF
10697 if ac_fn_c_try_run "$LINENO"; then :
10698 ac_cv_c_bigendian=no
10699 else
10700 ac_cv_c_bigendian=yes
10702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10703 conftest.$ac_objext conftest.beam conftest.$ac_ext
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10709 $as_echo "$ac_cv_c_bigendian" >&6; }
10710 case $ac_cv_c_bigendian in #(
10711 yes)
10712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10713 ;; #(
10715 ;; #(
10716 universal)
10718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10720 ;; #(
10722 as_fn_error $? "unknown endianness
10723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10724 esac
10726 # The cast to long int works around a bug in the HP C Compiler
10727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10729 # This bug is HP SR number 8606223364.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10731 $as_echo_n "checking size of void *... " >&6; }
10732 if ${ac_cv_sizeof_void_p+:} false; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
10737 else
10738 if test "$ac_cv_type_void_p" = yes; then
10739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10741 as_fn_error 77 "cannot compute sizeof (void *)
10742 See \`config.log' for more details" "$LINENO" 5; }
10743 else
10744 ac_cv_sizeof_void_p=0
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10750 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10754 cat >>confdefs.h <<_ACEOF
10755 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10756 _ACEOF
10759 # The cast to long int works around a bug in the HP C Compiler
10760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10762 # This bug is HP SR number 8606223364.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10764 $as_echo_n "checking size of long... " >&6; }
10765 if ${ac_cv_sizeof_long+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10770 else
10771 if test "$ac_cv_type_long" = yes; then
10772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10774 as_fn_error 77 "cannot compute sizeof (long)
10775 See \`config.log' for more details" "$LINENO" 5; }
10776 else
10777 ac_cv_sizeof_long=0
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10783 $as_echo "$ac_cv_sizeof_long" >&6; }
10787 cat >>confdefs.h <<_ACEOF
10788 #define SIZEOF_LONG $ac_cv_sizeof_long
10789 _ACEOF
10793 case "$host_os" in
10794 cygwin | windows* | mingw32*)
10795 HOST_CPPFLAGS="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10796 CPPFLAGS="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10797 # The cast to long int works around a bug in the HP C Compiler
10798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10800 # This bug is HP SR number 8606223364.
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
10802 $as_echo_n "checking size of TCHAR... " >&6; }
10803 if ${ac_cv_sizeof_TCHAR+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR" "#include <windows.h>
10807 "; then :
10809 else
10810 if test "$ac_cv_type_TCHAR" = yes; then
10811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10813 as_fn_error 77 "cannot compute sizeof (TCHAR)
10814 See \`config.log' for more details" "$LINENO" 5; }
10815 else
10816 ac_cv_sizeof_TCHAR=0
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
10822 $as_echo "$ac_cv_sizeof_TCHAR" >&6; }
10826 cat >>confdefs.h <<_ACEOF
10827 #define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
10828 _ACEOF
10832 esac
10834 case "$host_os" in
10835 cygwin | windows* | mingw32* | aros*)
10838 # The cast to long int works around a bug in the HP C Compiler
10839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10841 # This bug is HP SR number 8606223364.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10843 $as_echo_n "checking size of off_t... " >&6; }
10844 if ${ac_cv_sizeof_off_t+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10849 else
10850 if test "$ac_cv_type_off_t" = yes; then
10851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10853 as_fn_error 77 "cannot compute sizeof (off_t)
10854 See \`config.log' for more details" "$LINENO" 5; }
10855 else
10856 ac_cv_sizeof_off_t=0
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10862 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10866 cat >>confdefs.h <<_ACEOF
10867 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10868 _ACEOF
10871 test x"$ac_cv_sizeof_off_t" = x8 || as_fn_error $? "Large file support is required" "$LINENO" 5;;
10872 esac
10874 if test x$USE_NLS = xno; then
10875 HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext"
10878 if test "x$cross_compiling" = xyes; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
10880 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
10881 else
10882 # Extract the first word of "help2man", so it can be a program name with args.
10883 set dummy help2man; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_HELP2MAN+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 case $HELP2MAN in
10890 [\\/]* | ?:[\\/]*)
10891 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10905 done
10906 done
10907 IFS=$as_save_IFS
10910 esac
10912 HELP2MAN=$ac_cv_path_HELP2MAN
10913 if test -n "$HELP2MAN"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
10915 $as_echo "$HELP2MAN" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10924 # Check for functions and headers.
10925 for ac_func in posix_memalign memalign getextmntent
10926 do :
10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10929 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 _ACEOF
10935 done
10937 for ac_header in sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h
10938 do :
10939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10942 cat >>confdefs.h <<_ACEOF
10943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10944 _ACEOF
10948 done
10951 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
10952 #include <sys/param.h>
10953 #include <sys/mount.h>
10955 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
10959 _ACEOF
10965 ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
10966 #include <sys/param.h>
10967 #include <sys/mount.h>
10969 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes; then :
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
10973 _ACEOF
10979 # For opendisk() and getrawpartition() on NetBSD.
10980 # Used in util/deviceiter.c and in util/hostdisk.c.
10981 ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_util_h" = xyes; then :
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
10985 $as_echo_n "checking for opendisk in -lutil... " >&6; }
10986 if ${ac_cv_lib_util_opendisk+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lutil $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char opendisk ();
11002 main (void)
11004 return opendisk ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_util_opendisk=yes
11011 else
11012 ac_cv_lib_util_opendisk=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
11019 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
11020 if test "x$ac_cv_lib_util_opendisk" = xyes; then :
11022 LIBUTIL="-lutil"
11024 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
11030 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
11031 if ${ac_cv_lib_util_getrawpartition+:} false; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lutil $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char getrawpartition ();
11047 main (void)
11049 return getrawpartition ();
11051 return 0;
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_util_getrawpartition=yes
11056 else
11057 ac_cv_lib_util_getrawpartition=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
11064 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
11065 if test "x$ac_cv_lib_util_getrawpartition" = xyes; then :
11067 LIBUTIL="-lutil"
11069 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
11081 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
11082 if ${grub_cv_host_cc_wtrampolines+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11086 SAVED_CFLAGS="$CFLAGS"
11087 CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror"
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 #include <stdarg.h>
11091 int va_arg_func (int fixed, va_list args);
11093 main (void)
11097 return 0;
11099 _ACEOF
11100 if ac_fn_c_try_compile "$LINENO"; then :
11101 grub_cv_host_cc_wtrampolines=yes
11102 else
11103 grub_cv_host_cc_wtrampolines=no
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 CFLAGS="$SAVED_CFLAGS"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
11110 $as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
11112 if test x"$grub_host_cv_cc_wtrampolines" = xyes ; then
11113 HOST_CFLAGS="$HOST_CFLAGS -Wtrampolines"
11117 # Check for host and build compilers.
11119 HOST_CC=$CC
11120 for ac_prog in gcc egcs cc
11122 # Extract the first word of "$ac_prog", so it can be a program name with args.
11123 set dummy $ac_prog; ac_word=$2
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if ${ac_cv_prog_BUILD_CC+:} false; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 if test -n "$BUILD_CC"; then
11130 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11131 else
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11139 ac_cv_prog_BUILD_CC="$ac_prog"
11140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 break 2
11143 done
11144 done
11145 IFS=$as_save_IFS
11149 BUILD_CC=$ac_cv_prog_BUILD_CC
11150 if test -n "$BUILD_CC"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11152 $as_echo "$BUILD_CC" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11159 test -n "$BUILD_CC" && break
11160 done
11162 test -z "$BUILD_CC" && as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
11163 BUILD_CPP="$BUILD_CC -E"
11165 case "$build_os" in
11166 haiku*) BUILD_LIBM= ;;
11167 *) BUILD_LIBM=-lm ;;
11168 esac
11171 case "$build_os" in
11172 cygwin*|mingw32*|mingw64*) BUILD_EXEEXT=.exe ;;
11173 *) BUILD_EXEEXT= ;;
11174 esac
11177 # For gnulib.
11183 LIBC_FATAL_STDERR_=1
11184 export LIBC_FATAL_STDERR_
11186 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11187 if test "x$ac_cv_type_size_t" = xyes; then :
11189 else
11191 cat >>confdefs.h <<_ACEOF
11192 #define size_t unsigned int
11193 _ACEOF
11197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11198 # for constant arguments. Useless!
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11200 $as_echo_n "checking for working alloca.h... " >&6; }
11201 if ${ac_cv_working_alloca_h+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 #include <alloca.h>
11208 main (void)
11210 char *p = (char *) alloca (2 * sizeof (int));
11211 if (p) return 0;
11213 return 0;
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_working_alloca_h=yes
11218 else
11219 ac_cv_working_alloca_h=no
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11225 $as_echo "$ac_cv_working_alloca_h" >&6; }
11226 if test $ac_cv_working_alloca_h = yes; then
11228 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11233 $as_echo_n "checking for alloca... " >&6; }
11234 if ${ac_cv_func_alloca_works+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #ifdef __GNUC__
11240 # define alloca __builtin_alloca
11241 #else
11242 # ifdef _MSC_VER
11243 # include <malloc.h>
11244 # define alloca _alloca
11245 # else
11246 # ifdef HAVE_ALLOCA_H
11247 # include <alloca.h>
11248 # else
11249 # ifdef _AIX
11250 #pragma alloca
11251 # else
11252 # ifndef alloca /* predefined by HP cc +Olibcalls */
11253 void *alloca (size_t);
11254 # endif
11255 # endif
11256 # endif
11257 # endif
11258 #endif
11261 main (void)
11263 char *p = (char *) alloca (1);
11264 if (p) return 0;
11266 return 0;
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 ac_cv_func_alloca_works=yes
11271 else
11272 ac_cv_func_alloca_works=no
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11278 $as_echo "$ac_cv_func_alloca_works" >&6; }
11280 if test $ac_cv_func_alloca_works = yes; then
11282 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11284 else
11285 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11286 # that cause trouble. Some versions do not even contain alloca or
11287 # contain a buggy version. If you still want to use their alloca,
11288 # use ar to extract alloca.o from them instead of compiling alloca.c.
11294 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11296 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11300 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11301 if ${ac_cv_os_cray+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 #if defined CRAY && ! defined CRAY2
11307 webecray
11308 #else
11309 wenotbecray
11310 #endif
11312 _ACEOF
11313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11314 $EGREP "webecray" >/dev/null 2>&1; then :
11315 ac_cv_os_cray=yes
11316 else
11317 ac_cv_os_cray=no
11319 rm -f conftest*
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11323 $as_echo "$ac_cv_os_cray" >&6; }
11324 if test $ac_cv_os_cray = yes; then
11325 for ac_func in _getb67 GETB67 getb67; do
11326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define CRAY_STACKSEG_END $ac_func
11332 _ACEOF
11334 break
11337 done
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11341 $as_echo_n "checking stack direction for C alloca... " >&6; }
11342 if ${ac_cv_c_stack_direction+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 if test "$cross_compiling" = yes; then :
11346 ac_cv_c_stack_direction=0
11347 else
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 $ac_includes_default
11352 find_stack_direction (int *addr, int depth)
11354 int dir, dummy = 0;
11355 if (! addr)
11356 addr = &dummy;
11357 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11358 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11359 return dir + dummy;
11363 main (int argc, char **argv)
11365 return find_stack_direction (0, argc + !argv + 20) < 0;
11367 _ACEOF
11368 if ac_fn_c_try_run "$LINENO"; then :
11369 ac_cv_c_stack_direction=1
11370 else
11371 ac_cv_c_stack_direction=-1
11373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11374 conftest.$ac_objext conftest.beam conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11379 $as_echo "$ac_cv_c_stack_direction" >&6; }
11380 cat >>confdefs.h <<_ACEOF
11381 #define STACK_DIRECTION $ac_cv_c_stack_direction
11382 _ACEOF
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11388 $as_echo_n "checking for inline... " >&6; }
11389 if ${ac_cv_c_inline+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_cv_c_inline=no
11393 for ac_kw in inline __inline__ __inline; do
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 #ifndef __cplusplus
11397 typedef int foo_t;
11398 static $ac_kw foo_t static_foo () {return 0; }
11399 $ac_kw foo_t foo () {return 0; }
11400 #endif
11402 _ACEOF
11403 if ac_fn_c_try_compile "$LINENO"; then :
11404 ac_cv_c_inline=$ac_kw
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 test "$ac_cv_c_inline" != no && break
11408 done
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11412 $as_echo "$ac_cv_c_inline" >&6; }
11414 case $ac_cv_c_inline in
11415 inline | yes) ;;
11417 case $ac_cv_c_inline in
11418 no) ac_val=;;
11419 *) ac_val=$ac_cv_c_inline;;
11420 esac
11421 cat >>confdefs.h <<_ACEOF
11422 #ifndef __cplusplus
11423 #define inline $ac_val
11424 #endif
11425 _ACEOF
11427 esac
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11430 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11431 if ${ac_cv_c_restrict+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 ac_cv_c_restrict=no
11435 # The order here caters to the fact that C++ does not require restrict.
11436 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439 typedef int * int_ptr;
11440 int foo (int_ptr $ac_kw ip) {
11441 return ip[0];
11444 main (void)
11446 int s[1];
11447 int * $ac_kw t = s;
11448 t[0] = 0;
11449 return foo(t)
11451 return 0;
11453 _ACEOF
11454 if ac_fn_c_try_compile "$LINENO"; then :
11455 ac_cv_c_restrict=$ac_kw
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458 test "$ac_cv_c_restrict" != no && break
11459 done
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11463 $as_echo "$ac_cv_c_restrict" >&6; }
11465 case $ac_cv_c_restrict in
11466 restrict) ;;
11467 no) $as_echo "#define restrict /**/" >>confdefs.h
11469 *) cat >>confdefs.h <<_ACEOF
11470 #define restrict $ac_cv_c_restrict
11471 _ACEOF
11473 esac
11475 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
11476 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
11477 ac_have_decl=1
11478 else
11479 ac_have_decl=0
11482 cat >>confdefs.h <<_ACEOF
11483 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
11484 _ACEOF
11486 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
11487 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
11488 ac_have_decl=1
11489 else
11490 ac_have_decl=0
11493 cat >>confdefs.h <<_ACEOF
11494 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
11495 _ACEOF
11497 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
11498 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
11499 ac_have_decl=1
11500 else
11501 ac_have_decl=0
11504 cat >>confdefs.h <<_ACEOF
11505 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
11506 _ACEOF
11508 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
11509 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
11510 ac_have_decl=1
11511 else
11512 ac_have_decl=0
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
11517 _ACEOF
11519 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
11520 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
11521 ac_have_decl=1
11522 else
11523 ac_have_decl=0
11526 cat >>confdefs.h <<_ACEOF
11527 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
11528 _ACEOF
11530 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
11531 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
11532 ac_have_decl=1
11533 else
11534 ac_have_decl=0
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
11539 _ACEOF
11541 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
11542 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
11543 ac_have_decl=1
11544 else
11545 ac_have_decl=0
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
11550 _ACEOF
11552 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
11553 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
11554 ac_have_decl=1
11555 else
11556 ac_have_decl=0
11559 cat >>confdefs.h <<_ACEOF
11560 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
11561 _ACEOF
11563 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
11564 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
11565 ac_have_decl=1
11566 else
11567 ac_have_decl=0
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
11572 _ACEOF
11574 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11575 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11576 ac_have_decl=1
11577 else
11578 ac_have_decl=0
11581 cat >>confdefs.h <<_ACEOF
11582 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11583 _ACEOF
11585 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
11586 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
11587 ac_have_decl=1
11588 else
11589 ac_have_decl=0
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
11594 _ACEOF
11596 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
11597 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
11598 ac_have_decl=1
11599 else
11600 ac_have_decl=0
11603 cat >>confdefs.h <<_ACEOF
11604 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
11605 _ACEOF
11607 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
11608 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
11609 ac_have_decl=1
11610 else
11611 ac_have_decl=0
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
11616 _ACEOF
11621 for ac_func in $ac_func_list
11622 do :
11623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11626 cat >>confdefs.h <<_ACEOF
11627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 _ACEOF
11631 done
11640 for ac_header in $ac_header_list
11641 do :
11642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11643 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11646 cat >>confdefs.h <<_ACEOF
11647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11648 _ACEOF
11652 done
11659 XGETTEXT_EXTRA_OPTIONS=
11662 GNULIB_BTOWC=0;
11663 GNULIB_WCTOB=0;
11664 GNULIB_MBSINIT=0;
11665 GNULIB_MBRTOWC=0;
11666 GNULIB_MBRLEN=0;
11667 GNULIB_MBSRTOWCS=0;
11668 GNULIB_MBSNRTOWCS=0;
11669 GNULIB_WCRTOMB=0;
11670 GNULIB_WCSRTOMBS=0;
11671 GNULIB_WCSNRTOMBS=0;
11672 GNULIB_WCWIDTH=0;
11673 GNULIB_WMEMCHR=0;
11674 GNULIB_WMEMCMP=0;
11675 GNULIB_WMEMCPY=0;
11676 GNULIB_WMEMMOVE=0;
11677 GNULIB_WMEMSET=0;
11678 GNULIB_WCSLEN=0;
11679 GNULIB_WCSNLEN=0;
11680 GNULIB_WCSCPY=0;
11681 GNULIB_WCPCPY=0;
11682 GNULIB_WCSNCPY=0;
11683 GNULIB_WCPNCPY=0;
11684 GNULIB_WCSCAT=0;
11685 GNULIB_WCSNCAT=0;
11686 GNULIB_WCSCMP=0;
11687 GNULIB_WCSNCMP=0;
11688 GNULIB_WCSCASECMP=0;
11689 GNULIB_WCSNCASECMP=0;
11690 GNULIB_WCSCOLL=0;
11691 GNULIB_WCSXFRM=0;
11692 GNULIB_WCSDUP=0;
11693 GNULIB_WCSCHR=0;
11694 GNULIB_WCSRCHR=0;
11695 GNULIB_WCSCSPN=0;
11696 GNULIB_WCSSPN=0;
11697 GNULIB_WCSPBRK=0;
11698 GNULIB_WCSSTR=0;
11699 GNULIB_WCSTOK=0;
11700 GNULIB_WCSWIDTH=0;
11701 HAVE_BTOWC=1;
11702 HAVE_MBSINIT=1;
11703 HAVE_MBRTOWC=1;
11704 HAVE_MBRLEN=1;
11705 HAVE_MBSRTOWCS=1;
11706 HAVE_MBSNRTOWCS=1;
11707 HAVE_WCRTOMB=1;
11708 HAVE_WCSRTOMBS=1;
11709 HAVE_WCSNRTOMBS=1;
11710 HAVE_WMEMCHR=1;
11711 HAVE_WMEMCMP=1;
11712 HAVE_WMEMCPY=1;
11713 HAVE_WMEMMOVE=1;
11714 HAVE_WMEMSET=1;
11715 HAVE_WCSLEN=1;
11716 HAVE_WCSNLEN=1;
11717 HAVE_WCSCPY=1;
11718 HAVE_WCPCPY=1;
11719 HAVE_WCSNCPY=1;
11720 HAVE_WCPNCPY=1;
11721 HAVE_WCSCAT=1;
11722 HAVE_WCSNCAT=1;
11723 HAVE_WCSCMP=1;
11724 HAVE_WCSNCMP=1;
11725 HAVE_WCSCASECMP=1;
11726 HAVE_WCSNCASECMP=1;
11727 HAVE_WCSCOLL=1;
11728 HAVE_WCSXFRM=1;
11729 HAVE_WCSDUP=1;
11730 HAVE_WCSCHR=1;
11731 HAVE_WCSRCHR=1;
11732 HAVE_WCSCSPN=1;
11733 HAVE_WCSSPN=1;
11734 HAVE_WCSPBRK=1;
11735 HAVE_WCSSTR=1;
11736 HAVE_WCSTOK=1;
11737 HAVE_WCSWIDTH=1;
11738 HAVE_DECL_WCTOB=1;
11739 HAVE_DECL_WCWIDTH=1;
11740 REPLACE_MBSTATE_T=0;
11741 REPLACE_BTOWC=0;
11742 REPLACE_WCTOB=0;
11743 REPLACE_MBSINIT=0;
11744 REPLACE_MBRTOWC=0;
11745 REPLACE_MBRLEN=0;
11746 REPLACE_MBSRTOWCS=0;
11747 REPLACE_MBSNRTOWCS=0;
11748 REPLACE_WCRTOMB=0;
11749 REPLACE_WCSRTOMBS=0;
11750 REPLACE_WCSNRTOMBS=0;
11751 REPLACE_WCWIDTH=0;
11752 REPLACE_WCSWIDTH=0;
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11756 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11757 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 gl_cv_header_wchar_h_correct_inline=yes
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 #define wcstod renamed_wcstod
11765 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11766 <wchar.h>.
11767 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11768 included before <wchar.h>. */
11769 #include <stddef.h>
11770 #include <stdio.h>
11771 #include <time.h>
11772 #include <wchar.h>
11773 extern int zero (void);
11774 int main () { return zero(); }
11776 _ACEOF
11777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11778 (eval $ac_compile) 2>&5
11779 ac_status=$?
11780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781 test $ac_status = 0; }; then
11782 mv conftest.$ac_objext conftest1.$ac_objext
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 #define wcstod renamed_wcstod
11787 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11788 <wchar.h>.
11789 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11790 included before <wchar.h>. */
11791 #include <stddef.h>
11792 #include <stdio.h>
11793 #include <time.h>
11794 #include <wchar.h>
11795 int zero (void) { return 0; }
11797 _ACEOF
11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11799 (eval $ac_compile) 2>&5
11800 ac_status=$?
11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802 test $ac_status = 0; }; then
11803 mv conftest.$ac_objext conftest2.$ac_objext
11804 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11806 else
11807 gl_cv_header_wchar_h_correct_inline=no
11811 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11815 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11816 if test $gl_cv_header_wchar_h_correct_inline = no; then
11817 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11818 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11819 C99 mode. You have four options:
11820 - Add the flag -fgnu89-inline to CC and reconfigure, or
11821 - Fix your include files, using parts of
11822 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11823 - Use a gcc version older than 4.3, or
11824 - Don't use the flags -std=c99 or -std=gnu99.
11825 Configuration aborted." "$LINENO" 5
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11832 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11833 if ${am_cv_langinfo_codeset+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <langinfo.h>
11840 main (void)
11842 char* cs = nl_langinfo(CODESET); return !cs;
11844 return 0;
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 am_cv_langinfo_codeset=yes
11849 else
11850 am_cv_langinfo_codeset=no
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11857 $as_echo "$am_cv_langinfo_codeset" >&6; }
11858 if test $am_cv_langinfo_codeset = yes; then
11860 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11868 $as_echo_n "checking for a traditional french locale... " >&6; }
11869 if ${gt_cv_locale_fr+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 #include <locale.h>
11877 #include <time.h>
11878 #if HAVE_LANGINFO_CODESET
11879 # include <langinfo.h>
11880 #endif
11881 #include <stdlib.h>
11882 #include <string.h>
11883 struct tm t;
11884 char buf[16];
11885 int main () {
11886 /* Check whether the given locale name is recognized by the system. */
11887 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11888 /* On native Windows, setlocale(category, "") looks at the system settings,
11889 not at the environment variables. Also, when an encoding suffix such
11890 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11891 category of the locale to "C". */
11892 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11893 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11894 return 1;
11895 #else
11896 if (setlocale (LC_ALL, "") == NULL) return 1;
11897 #endif
11898 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11899 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11900 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11901 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11902 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11903 some unit tests fail.
11904 On MirBSD 10, when an unsupported locale is specified, setlocale()
11905 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11906 #if HAVE_LANGINFO_CODESET
11908 const char *cs = nl_langinfo (CODESET);
11909 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11910 || strcmp (cs, "UTF-8") == 0)
11911 return 1;
11913 #endif
11914 #ifdef __CYGWIN__
11915 /* On Cygwin, avoid locale names without encoding suffix, because the
11916 locale_charset() function relies on the encoding suffix. Note that
11917 LC_ALL is set on the command line. */
11918 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11919 #endif
11920 /* Check whether in the abbreviation of the second month, the second
11921 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11922 one byte long. This excludes the UTF-8 encoding. */
11923 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11924 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11925 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11926 /* Check whether the decimal separator is a comma.
11927 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11928 are nl_langinfo(RADIXCHAR) are both ".". */
11929 if (localeconv () ->decimal_point[0] != ',') return 1;
11930 #endif
11931 return 0;
11934 _ACEOF
11935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11940 case "$host_os" in
11941 # Handle native Windows specially, because there setlocale() interprets
11942 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11943 # "fr" or "fra" as "French" or "French_France.1252",
11944 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11945 # "ja" as "Japanese" or "Japanese_Japan.932",
11946 # and similar.
11947 mingw*)
11948 # Test for the native Windows locale name.
11949 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11950 gt_cv_locale_fr=French_France.1252
11951 else
11952 # None found.
11953 gt_cv_locale_fr=none
11957 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11958 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11959 # configure script would override the LC_ALL setting. Likewise for
11960 # LC_CTYPE, which is also set at the beginning of the configure script.
11961 # Test for the usual locale name.
11962 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11963 gt_cv_locale_fr=fr_FR
11964 else
11965 # Test for the locale name with explicit encoding suffix.
11966 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11967 gt_cv_locale_fr=fr_FR.ISO-8859-1
11968 else
11969 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11970 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11971 gt_cv_locale_fr=fr_FR.ISO8859-1
11972 else
11973 # Test for the HP-UX locale name.
11974 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11975 gt_cv_locale_fr=fr_FR.iso88591
11976 else
11977 # Test for the Solaris 7 locale name.
11978 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11979 gt_cv_locale_fr=fr
11980 else
11981 # None found.
11982 gt_cv_locale_fr=none
11989 esac
11991 rm -fr conftest*
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11995 $as_echo "$gt_cv_locale_fr" >&6; }
11996 LOCALE_FR=$gt_cv_locale_fr
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12002 $as_echo_n "checking whether // is distinct from /... " >&6; }
12003 if ${gl_cv_double_slash_root+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 if test x"$cross_compiling" = xyes ; then
12007 # When cross-compiling, there is no way to tell whether // is special
12008 # short of a list of hosts. However, the only known hosts to date
12009 # that have a distinct // are Apollo DomainOS (too old to port to),
12010 # Cygwin, and z/OS. If anyone knows of another system for which // has
12011 # special semantics and is distinct from /, please report it to
12012 # <bug-gnulib@gnu.org>.
12013 case $host in
12014 *-cygwin | i370-ibm-openedition)
12015 gl_cv_double_slash_root=yes ;;
12017 # Be optimistic and assume that / and // are the same when we
12018 # don't know.
12019 gl_cv_double_slash_root='unknown, assuming no' ;;
12020 esac
12021 else
12022 set x `ls -di / // 2>/dev/null`
12023 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12024 gl_cv_double_slash_root=no
12025 else
12026 gl_cv_double_slash_root=yes
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12031 $as_echo "$gl_cv_double_slash_root" >&6; }
12032 if test "$gl_cv_double_slash_root" = yes; then
12034 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
12041 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12042 if ${gl_cv_have_include_next+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 rm -rf conftestd1a conftestd1b conftestd2
12046 mkdir conftestd1a conftestd1b conftestd2
12047 cat <<EOF > conftestd1a/conftest.h
12048 #define DEFINED_IN_CONFTESTD1
12049 #include_next <conftest.h>
12050 #ifdef DEFINED_IN_CONFTESTD2
12051 int foo;
12052 #else
12053 #error "include_next doesn't work"
12054 #endif
12056 cat <<EOF > conftestd1b/conftest.h
12057 #define DEFINED_IN_CONFTESTD1
12058 #include <stdio.h>
12059 #include_next <conftest.h>
12060 #ifdef DEFINED_IN_CONFTESTD2
12061 int foo;
12062 #else
12063 #error "include_next doesn't work"
12064 #endif
12066 cat <<EOF > conftestd2/conftest.h
12067 #ifndef DEFINED_IN_CONFTESTD1
12068 #error "include_next test doesn't work"
12069 #endif
12070 #define DEFINED_IN_CONFTESTD2
12072 gl_save_CPPFLAGS="$CPPFLAGS"
12073 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 #include <conftest.h>
12077 _ACEOF
12078 if ac_fn_c_try_compile "$LINENO"; then :
12079 gl_cv_have_include_next=yes
12080 else
12081 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <conftest.h>
12085 _ACEOF
12086 if ac_fn_c_try_compile "$LINENO"; then :
12087 gl_cv_have_include_next=buggy
12088 else
12089 gl_cv_have_include_next=no
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 CPPFLAGS="$gl_save_CPPFLAGS"
12096 rm -rf conftestd1a conftestd1b conftestd2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
12100 $as_echo "$gl_cv_have_include_next" >&6; }
12101 PRAGMA_SYSTEM_HEADER=
12102 if test $gl_cv_have_include_next = yes; then
12103 INCLUDE_NEXT=include_next
12104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12105 if test -n "$GCC"; then
12106 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12108 else
12109 if test $gl_cv_have_include_next = buggy; then
12110 INCLUDE_NEXT=include
12111 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12112 else
12113 INCLUDE_NEXT=include
12114 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
12121 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12122 if ${gl_cv_pragma_columns+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12128 #ifdef __TANDEM
12129 choke me
12130 #endif
12132 _ACEOF
12133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12134 $EGREP "choke me" >/dev/null 2>&1; then :
12135 gl_cv_pragma_columns=yes
12136 else
12137 gl_cv_pragma_columns=no
12139 rm -f conftest*
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
12144 $as_echo "$gl_cv_pragma_columns" >&6; }
12145 if test $gl_cv_pragma_columns = yes; then
12146 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12147 else
12148 PRAGMA_COLUMNS=
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
12155 $as_echo_n "checking for complete errno.h... " >&6; }
12156 if ${gl_cv_header_errno_h_complete+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 #include <errno.h>
12164 #if !defined ETXTBSY
12165 booboo
12166 #endif
12167 #if !defined ENOMSG
12168 booboo
12169 #endif
12170 #if !defined EIDRM
12171 booboo
12172 #endif
12173 #if !defined ENOLINK
12174 booboo
12175 #endif
12176 #if !defined EPROTO
12177 booboo
12178 #endif
12179 #if !defined EMULTIHOP
12180 booboo
12181 #endif
12182 #if !defined EBADMSG
12183 booboo
12184 #endif
12185 #if !defined EOVERFLOW
12186 booboo
12187 #endif
12188 #if !defined ENOTSUP
12189 booboo
12190 #endif
12191 #if !defined ENETRESET
12192 booboo
12193 #endif
12194 #if !defined ECONNABORTED
12195 booboo
12196 #endif
12197 #if !defined ESTALE
12198 booboo
12199 #endif
12200 #if !defined EDQUOT
12201 booboo
12202 #endif
12203 #if !defined ECANCELED
12204 booboo
12205 #endif
12206 #if !defined EOWNERDEAD
12207 booboo
12208 #endif
12209 #if !defined ENOTRECOVERABLE
12210 booboo
12211 #endif
12212 #if !defined EILSEQ
12213 booboo
12214 #endif
12216 _ACEOF
12217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12218 $EGREP "booboo" >/dev/null 2>&1; then :
12219 gl_cv_header_errno_h_complete=no
12220 else
12221 gl_cv_header_errno_h_complete=yes
12223 rm -f conftest*
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
12228 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12229 if test $gl_cv_header_errno_h_complete = yes; then
12230 ERRNO_H=''
12231 else
12240 if test $gl_cv_have_include_next = yes; then
12241 gl_cv_next_errno_h='<'errno.h'>'
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
12244 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12245 if ${gl_cv_next_errno_h+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <errno.h>
12253 _ACEOF
12254 case "$host_os" in
12255 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12256 *) gl_absname_cpp="$ac_cpp" ;;
12257 esac
12259 case "$host_os" in
12260 mingw*)
12261 gl_dirsep_regex='[/\\]'
12264 gl_dirsep_regex='\/'
12266 esac
12267 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12269 gl_header_literal_regex=`echo 'errno.h' \
12270 | sed -e "$gl_make_literal_regex_sed"`
12271 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12273 s|^/[^/]|//&|
12277 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12278 sed -n "$gl_absolute_header_sed"`'"'
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
12283 $as_echo "$gl_cv_next_errno_h" >&6; }
12285 NEXT_ERRNO_H=$gl_cv_next_errno_h
12287 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12289 gl_next_as_first_directive='<'errno.h'>'
12290 else
12291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12292 gl_next_as_first_directive=$gl_cv_next_errno_h
12294 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12299 ERRNO_H='errno.h'
12302 if test -n "$ERRNO_H"; then
12303 GL_GENERATE_ERRNO_H_TRUE=
12304 GL_GENERATE_ERRNO_H_FALSE='#'
12305 else
12306 GL_GENERATE_ERRNO_H_TRUE='#'
12307 GL_GENERATE_ERRNO_H_FALSE=
12311 if test -n "$ERRNO_H"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
12313 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12314 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <errno.h>
12322 #ifdef EMULTIHOP
12324 #endif
12326 _ACEOF
12327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12328 $EGREP "yes" >/dev/null 2>&1; then :
12329 gl_cv_header_errno_h_EMULTIHOP=yes
12330 else
12331 gl_cv_header_errno_h_EMULTIHOP=no
12333 rm -f conftest*
12335 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 #define _XOPEN_SOURCE_EXTENDED 1
12340 #include <errno.h>
12341 #ifdef EMULTIHOP
12343 #endif
12345 _ACEOF
12346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "yes" >/dev/null 2>&1; then :
12348 gl_cv_header_errno_h_EMULTIHOP=hidden
12350 rm -f conftest*
12352 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12353 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
12354 #define _XOPEN_SOURCE_EXTENDED 1
12355 #include <errno.h>
12356 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12357 #include <stdio.h>
12358 #include <stdlib.h>
12359 "; then :
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12368 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12369 case $gl_cv_header_errno_h_EMULTIHOP in
12370 yes | no)
12371 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12374 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12376 esac
12382 if test -n "$ERRNO_H"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
12384 $as_echo_n "checking for ENOLINK value... " >&6; }
12385 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 #include <errno.h>
12393 #ifdef ENOLINK
12395 #endif
12397 _ACEOF
12398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12399 $EGREP "yes" >/dev/null 2>&1; then :
12400 gl_cv_header_errno_h_ENOLINK=yes
12401 else
12402 gl_cv_header_errno_h_ENOLINK=no
12404 rm -f conftest*
12406 if test $gl_cv_header_errno_h_ENOLINK = no; then
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 #define _XOPEN_SOURCE_EXTENDED 1
12411 #include <errno.h>
12412 #ifdef ENOLINK
12414 #endif
12416 _ACEOF
12417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418 $EGREP "yes" >/dev/null 2>&1; then :
12419 gl_cv_header_errno_h_ENOLINK=hidden
12421 rm -f conftest*
12423 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12424 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
12425 #define _XOPEN_SOURCE_EXTENDED 1
12426 #include <errno.h>
12427 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12428 #include <stdio.h>
12429 #include <stdlib.h>
12430 "; then :
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
12439 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
12440 case $gl_cv_header_errno_h_ENOLINK in
12441 yes | no)
12442 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
12445 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
12447 esac
12453 if test -n "$ERRNO_H"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
12455 $as_echo_n "checking for EOVERFLOW value... " >&6; }
12456 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12463 #include <errno.h>
12464 #ifdef EOVERFLOW
12466 #endif
12468 _ACEOF
12469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12470 $EGREP "yes" >/dev/null 2>&1; then :
12471 gl_cv_header_errno_h_EOVERFLOW=yes
12472 else
12473 gl_cv_header_errno_h_EOVERFLOW=no
12475 rm -f conftest*
12477 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 #define _XOPEN_SOURCE_EXTENDED 1
12482 #include <errno.h>
12483 #ifdef EOVERFLOW
12485 #endif
12487 _ACEOF
12488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12489 $EGREP "yes" >/dev/null 2>&1; then :
12490 gl_cv_header_errno_h_EOVERFLOW=hidden
12492 rm -f conftest*
12494 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
12495 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
12496 #define _XOPEN_SOURCE_EXTENDED 1
12497 #include <errno.h>
12498 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12499 #include <stdio.h>
12500 #include <stdlib.h>
12501 "; then :
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12510 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12511 case $gl_cv_header_errno_h_EOVERFLOW in
12512 yes | no)
12513 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
12516 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
12518 esac
12524 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12525 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12526 ac_have_decl=1
12527 else
12528 ac_have_decl=0
12531 cat >>confdefs.h <<_ACEOF
12532 #define HAVE_DECL_STRERROR_R $ac_have_decl
12533 _ACEOF
12535 for ac_func in strerror_r
12536 do :
12537 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12538 if test "x$ac_cv_func_strerror_r" = xyes; then :
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_STRERROR_R 1
12541 _ACEOF
12544 done
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12547 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12548 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12552 ac_cv_func_strerror_r_char_p=no
12553 if test $ac_cv_have_decl_strerror_r = yes; then
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556 $ac_includes_default
12558 main (void)
12561 char buf[100];
12562 char x = *strerror_r (0, buf, sizeof buf);
12563 char *p = strerror_r (0, buf, sizeof buf);
12564 return !p || x;
12567 return 0;
12569 _ACEOF
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_func_strerror_r_char_p=yes
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 else
12575 # strerror_r is not declared. Choose between
12576 # systems that have relatively inaccessible declarations for the
12577 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12578 # former has a strerror_r that returns char*, while the latter
12579 # has a strerror_r that returns `int'.
12580 # This test should segfault on the DEC system.
12581 if test "$cross_compiling" = yes; then :
12583 else
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 extern char *strerror_r ();
12589 main (void)
12591 char buf[100];
12592 char x = *strerror_r (0, buf, sizeof buf);
12593 return ! isalpha (x);
12595 return 0;
12597 _ACEOF
12598 if ac_fn_c_try_run "$LINENO"; then :
12599 ac_cv_func_strerror_r_char_p=yes
12601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12602 conftest.$ac_objext conftest.beam conftest.$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12609 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12610 if test $ac_cv_func_strerror_r_char_p = yes; then
12612 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12622 $as_echo_n "checking for mbstate_t... " >&6; }
12623 if ${ac_cv_type_mbstate_t+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12630 <wchar.h>.
12631 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12632 included before <wchar.h>. */
12633 #include <stddef.h>
12634 #include <stdio.h>
12635 #include <time.h>
12636 #include <wchar.h>
12638 main (void)
12640 mbstate_t x; return sizeof x;
12642 return 0;
12644 _ACEOF
12645 if ac_fn_c_try_compile "$LINENO"; then :
12646 ac_cv_type_mbstate_t=yes
12647 else
12648 ac_cv_type_mbstate_t=no
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12653 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12654 if test $ac_cv_type_mbstate_t = yes; then
12656 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12658 else
12660 $as_echo "#define mbstate_t int" >>confdefs.h
12681 GNULIB_DPRINTF=0;
12682 GNULIB_FCLOSE=0;
12683 GNULIB_FDOPEN=0;
12684 GNULIB_FFLUSH=0;
12685 GNULIB_FGETC=0;
12686 GNULIB_FGETS=0;
12687 GNULIB_FOPEN=0;
12688 GNULIB_FPRINTF=0;
12689 GNULIB_FPRINTF_POSIX=0;
12690 GNULIB_FPURGE=0;
12691 GNULIB_FPUTC=0;
12692 GNULIB_FPUTS=0;
12693 GNULIB_FREAD=0;
12694 GNULIB_FREOPEN=0;
12695 GNULIB_FSCANF=0;
12696 GNULIB_FSEEK=0;
12697 GNULIB_FSEEKO=0;
12698 GNULIB_FTELL=0;
12699 GNULIB_FTELLO=0;
12700 GNULIB_FWRITE=0;
12701 GNULIB_GETC=0;
12702 GNULIB_GETCHAR=0;
12703 GNULIB_GETDELIM=0;
12704 GNULIB_GETLINE=0;
12705 GNULIB_OBSTACK_PRINTF=0;
12706 GNULIB_OBSTACK_PRINTF_POSIX=0;
12707 GNULIB_PCLOSE=0;
12708 GNULIB_PERROR=0;
12709 GNULIB_POPEN=0;
12710 GNULIB_PRINTF=0;
12711 GNULIB_PRINTF_POSIX=0;
12712 GNULIB_PUTC=0;
12713 GNULIB_PUTCHAR=0;
12714 GNULIB_PUTS=0;
12715 GNULIB_REMOVE=0;
12716 GNULIB_RENAME=0;
12717 GNULIB_RENAMEAT=0;
12718 GNULIB_SCANF=0;
12719 GNULIB_SNPRINTF=0;
12720 GNULIB_SPRINTF_POSIX=0;
12721 GNULIB_STDIO_H_NONBLOCKING=0;
12722 GNULIB_STDIO_H_SIGPIPE=0;
12723 GNULIB_TMPFILE=0;
12724 GNULIB_VASPRINTF=0;
12725 GNULIB_VFSCANF=0;
12726 GNULIB_VSCANF=0;
12727 GNULIB_VDPRINTF=0;
12728 GNULIB_VFPRINTF=0;
12729 GNULIB_VFPRINTF_POSIX=0;
12730 GNULIB_VPRINTF=0;
12731 GNULIB_VPRINTF_POSIX=0;
12732 GNULIB_VSNPRINTF=0;
12733 GNULIB_VSPRINTF_POSIX=0;
12734 HAVE_DECL_FPURGE=1;
12735 HAVE_DECL_FSEEKO=1;
12736 HAVE_DECL_FTELLO=1;
12737 HAVE_DECL_GETDELIM=1;
12738 HAVE_DECL_GETLINE=1;
12739 HAVE_DECL_OBSTACK_PRINTF=1;
12740 HAVE_DECL_SNPRINTF=1;
12741 HAVE_DECL_VSNPRINTF=1;
12742 HAVE_DPRINTF=1;
12743 HAVE_FSEEKO=1;
12744 HAVE_FTELLO=1;
12745 HAVE_PCLOSE=1;
12746 HAVE_POPEN=1;
12747 HAVE_RENAMEAT=1;
12748 HAVE_VASPRINTF=1;
12749 HAVE_VDPRINTF=1;
12750 REPLACE_DPRINTF=0;
12751 REPLACE_FCLOSE=0;
12752 REPLACE_FDOPEN=0;
12753 REPLACE_FFLUSH=0;
12754 REPLACE_FOPEN=0;
12755 REPLACE_FPRINTF=0;
12756 REPLACE_FPURGE=0;
12757 REPLACE_FREOPEN=0;
12758 REPLACE_FSEEK=0;
12759 REPLACE_FSEEKO=0;
12760 REPLACE_FTELL=0;
12761 REPLACE_FTELLO=0;
12762 REPLACE_GETDELIM=0;
12763 REPLACE_GETLINE=0;
12764 REPLACE_OBSTACK_PRINTF=0;
12765 REPLACE_PERROR=0;
12766 REPLACE_POPEN=0;
12767 REPLACE_PRINTF=0;
12768 REPLACE_REMOVE=0;
12769 REPLACE_RENAME=0;
12770 REPLACE_RENAMEAT=0;
12771 REPLACE_SNPRINTF=0;
12772 REPLACE_SPRINTF=0;
12773 REPLACE_STDIO_READ_FUNCS=0;
12774 REPLACE_STDIO_WRITE_FUNCS=0;
12775 REPLACE_TMPFILE=0;
12776 REPLACE_VASPRINTF=0;
12777 REPLACE_VDPRINTF=0;
12778 REPLACE_VFPRINTF=0;
12779 REPLACE_VPRINTF=0;
12780 REPLACE_VSNPRINTF=0;
12781 REPLACE_VSPRINTF=0;
12783 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
12784 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
12785 ac_have_decl=1
12786 else
12787 ac_have_decl=0
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_DECL_GETDELIM $ac_have_decl
12792 _ACEOF
12796 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
12797 if test "x$ac_cv_have_decl_getline" = xyes; then :
12798 ac_have_decl=1
12799 else
12800 ac_have_decl=0
12803 cat >>confdefs.h <<_ACEOF
12804 #define HAVE_DECL_GETLINE $ac_have_decl
12805 _ACEOF
12808 GNULIB_CHDIR=0;
12809 GNULIB_CHOWN=0;
12810 GNULIB_CLOSE=0;
12811 GNULIB_DUP=0;
12812 GNULIB_DUP2=0;
12813 GNULIB_DUP3=0;
12814 GNULIB_ENVIRON=0;
12815 GNULIB_EUIDACCESS=0;
12816 GNULIB_FACCESSAT=0;
12817 GNULIB_FCHDIR=0;
12818 GNULIB_FCHOWNAT=0;
12819 GNULIB_FDATASYNC=0;
12820 GNULIB_FSYNC=0;
12821 GNULIB_FTRUNCATE=0;
12822 GNULIB_GETCWD=0;
12823 GNULIB_GETDOMAINNAME=0;
12824 GNULIB_GETDTABLESIZE=0;
12825 GNULIB_GETGROUPS=0;
12826 GNULIB_GETHOSTNAME=0;
12827 GNULIB_GETLOGIN=0;
12828 GNULIB_GETLOGIN_R=0;
12829 GNULIB_GETPAGESIZE=0;
12830 GNULIB_GETUSERSHELL=0;
12831 GNULIB_GROUP_MEMBER=0;
12832 GNULIB_ISATTY=0;
12833 GNULIB_LCHOWN=0;
12834 GNULIB_LINK=0;
12835 GNULIB_LINKAT=0;
12836 GNULIB_LSEEK=0;
12837 GNULIB_PIPE=0;
12838 GNULIB_PIPE2=0;
12839 GNULIB_PREAD=0;
12840 GNULIB_PWRITE=0;
12841 GNULIB_READ=0;
12842 GNULIB_READLINK=0;
12843 GNULIB_READLINKAT=0;
12844 GNULIB_RMDIR=0;
12845 GNULIB_SETHOSTNAME=0;
12846 GNULIB_SLEEP=0;
12847 GNULIB_SYMLINK=0;
12848 GNULIB_SYMLINKAT=0;
12849 GNULIB_TTYNAME_R=0;
12850 GNULIB_UNISTD_H_NONBLOCKING=0;
12851 GNULIB_UNISTD_H_SIGPIPE=0;
12852 GNULIB_UNLINK=0;
12853 GNULIB_UNLINKAT=0;
12854 GNULIB_USLEEP=0;
12855 GNULIB_WRITE=0;
12856 HAVE_CHOWN=1;
12857 HAVE_DUP2=1;
12858 HAVE_DUP3=1;
12859 HAVE_EUIDACCESS=1;
12860 HAVE_FACCESSAT=1;
12861 HAVE_FCHDIR=1;
12862 HAVE_FCHOWNAT=1;
12863 HAVE_FDATASYNC=1;
12864 HAVE_FSYNC=1;
12865 HAVE_FTRUNCATE=1;
12866 HAVE_GETDTABLESIZE=1;
12867 HAVE_GETGROUPS=1;
12868 HAVE_GETHOSTNAME=1;
12869 HAVE_GETLOGIN=1;
12870 HAVE_GETPAGESIZE=1;
12871 HAVE_GROUP_MEMBER=1;
12872 HAVE_LCHOWN=1;
12873 HAVE_LINK=1;
12874 HAVE_LINKAT=1;
12875 HAVE_PIPE=1;
12876 HAVE_PIPE2=1;
12877 HAVE_PREAD=1;
12878 HAVE_PWRITE=1;
12879 HAVE_READLINK=1;
12880 HAVE_READLINKAT=1;
12881 HAVE_SETHOSTNAME=1;
12882 HAVE_SLEEP=1;
12883 HAVE_SYMLINK=1;
12884 HAVE_SYMLINKAT=1;
12885 HAVE_UNLINKAT=1;
12886 HAVE_USLEEP=1;
12887 HAVE_DECL_ENVIRON=1;
12888 HAVE_DECL_FCHDIR=1;
12889 HAVE_DECL_FDATASYNC=1;
12890 HAVE_DECL_GETDOMAINNAME=1;
12891 HAVE_DECL_GETLOGIN_R=1;
12892 HAVE_DECL_GETPAGESIZE=1;
12893 HAVE_DECL_GETUSERSHELL=1;
12894 HAVE_DECL_SETHOSTNAME=1;
12895 HAVE_DECL_TTYNAME_R=1;
12896 HAVE_OS_H=0;
12897 HAVE_SYS_PARAM_H=0;
12898 REPLACE_CHOWN=0;
12899 REPLACE_CLOSE=0;
12900 REPLACE_DUP=0;
12901 REPLACE_DUP2=0;
12902 REPLACE_FCHOWNAT=0;
12903 REPLACE_FTRUNCATE=0;
12904 REPLACE_GETCWD=0;
12905 REPLACE_GETDOMAINNAME=0;
12906 REPLACE_GETLOGIN_R=0;
12907 REPLACE_GETGROUPS=0;
12908 REPLACE_GETPAGESIZE=0;
12909 REPLACE_ISATTY=0;
12910 REPLACE_LCHOWN=0;
12911 REPLACE_LINK=0;
12912 REPLACE_LINKAT=0;
12913 REPLACE_LSEEK=0;
12914 REPLACE_PREAD=0;
12915 REPLACE_PWRITE=0;
12916 REPLACE_READ=0;
12917 REPLACE_READLINK=0;
12918 REPLACE_RMDIR=0;
12919 REPLACE_SLEEP=0;
12920 REPLACE_SYMLINK=0;
12921 REPLACE_TTYNAME_R=0;
12922 REPLACE_UNLINK=0;
12923 REPLACE_UNLINKAT=0;
12924 REPLACE_USLEEP=0;
12925 REPLACE_WRITE=0;
12926 UNISTD_H_HAVE_WINSOCK2_H=0;
12927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
12945 if test $gl_cv_have_include_next = yes; then
12946 gl_cv_next_getopt_h='<'getopt.h'>'
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12949 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
12950 if ${gl_cv_next_getopt_h+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12954 if test $ac_cv_header_getopt_h = yes; then
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #include <getopt.h>
12961 _ACEOF
12962 case "$host_os" in
12963 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12964 *) gl_absname_cpp="$ac_cpp" ;;
12965 esac
12967 case "$host_os" in
12968 mingw*)
12969 gl_dirsep_regex='[/\\]'
12972 gl_dirsep_regex='\/'
12974 esac
12975 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12977 gl_header_literal_regex=`echo 'getopt.h' \
12978 | sed -e "$gl_make_literal_regex_sed"`
12979 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12980 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12981 s|^/[^/]|//&|
12985 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12986 sed -n "$gl_absolute_header_sed"`'"'
12987 else
12988 gl_cv_next_getopt_h='<'getopt.h'>'
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12994 $as_echo "$gl_cv_next_getopt_h" >&6; }
12996 NEXT_GETOPT_H=$gl_cv_next_getopt_h
12998 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13000 gl_next_as_first_directive='<'getopt.h'>'
13001 else
13002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13003 gl_next_as_first_directive=$gl_cv_next_getopt_h
13005 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13010 if test $ac_cv_header_getopt_h = yes; then
13011 HAVE_GETOPT_H=1
13012 else
13013 HAVE_GETOPT_H=0
13017 gl_replace_getopt=
13019 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13020 for ac_header in getopt.h
13021 do :
13022 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13023 if test "x$ac_cv_header_getopt_h" = xyes; then :
13024 cat >>confdefs.h <<_ACEOF
13025 #define HAVE_GETOPT_H 1
13026 _ACEOF
13028 else
13029 gl_replace_getopt=yes
13032 done
13036 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13037 for ac_func in getopt_long_only
13038 do :
13039 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13040 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_GETOPT_LONG_ONLY 1
13043 _ACEOF
13045 else
13046 gl_replace_getopt=yes
13048 done
13052 if test -z "$gl_replace_getopt"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13054 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13055 if ${gl_cv_func_getopt_posix+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13059 if test $cross_compiling = no; then
13060 if test "$cross_compiling" = yes; then :
13061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13063 as_fn_error $? "cannot run test program while cross compiling
13064 See \`config.log' for more details" "$LINENO" 5; }
13065 else
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13069 #include <unistd.h>
13070 #include <stdlib.h>
13071 #include <string.h>
13074 main ()
13076 static char program[] = "program";
13077 static char a[] = "-a";
13078 static char foo[] = "foo";
13079 static char bar[] = "bar";
13080 char *argv[] = { program, a, foo, bar, NULL };
13081 int c;
13083 c = getopt (4, argv, "ab");
13084 if (!(c == 'a'))
13085 return 1;
13086 c = getopt (4, argv, "ab");
13087 if (!(c == -1))
13088 return 2;
13089 if (!(optind == 2))
13090 return 3;
13091 return 0;
13094 _ACEOF
13095 if ac_fn_c_try_run "$LINENO"; then :
13096 gl_cv_func_getopt_posix=maybe
13097 else
13098 gl_cv_func_getopt_posix=no
13100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13101 conftest.$ac_objext conftest.beam conftest.$ac_ext
13104 if test $gl_cv_func_getopt_posix = maybe; then
13105 if test "$cross_compiling" = yes; then :
13106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13108 as_fn_error $? "cannot run test program while cross compiling
13109 See \`config.log' for more details" "$LINENO" 5; }
13110 else
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 #include <unistd.h>
13115 #include <stdlib.h>
13116 #include <string.h>
13119 main ()
13121 static char program[] = "program";
13122 static char donald[] = "donald";
13123 static char p[] = "-p";
13124 static char billy[] = "billy";
13125 static char duck[] = "duck";
13126 static char a[] = "-a";
13127 static char bar[] = "bar";
13128 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13129 int c;
13131 c = getopt (7, argv, "+abp:q:");
13132 if (!(c == -1))
13133 return 4;
13134 if (!(strcmp (argv[0], "program") == 0))
13135 return 5;
13136 if (!(strcmp (argv[1], "donald") == 0))
13137 return 6;
13138 if (!(strcmp (argv[2], "-p") == 0))
13139 return 7;
13140 if (!(strcmp (argv[3], "billy") == 0))
13141 return 8;
13142 if (!(strcmp (argv[4], "duck") == 0))
13143 return 9;
13144 if (!(strcmp (argv[5], "-a") == 0))
13145 return 10;
13146 if (!(strcmp (argv[6], "bar") == 0))
13147 return 11;
13148 if (!(optind == 1))
13149 return 12;
13150 return 0;
13153 _ACEOF
13154 if ac_fn_c_try_run "$LINENO"; then :
13155 gl_cv_func_getopt_posix=maybe
13156 else
13157 gl_cv_func_getopt_posix=no
13159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13160 conftest.$ac_objext conftest.beam conftest.$ac_ext
13164 if test $gl_cv_func_getopt_posix = maybe; then
13165 if test "$cross_compiling" = yes; then :
13166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13168 as_fn_error $? "cannot run test program while cross compiling
13169 See \`config.log' for more details" "$LINENO" 5; }
13170 else
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13174 #include <unistd.h>
13175 #include <stdlib.h>
13176 #include <string.h>
13179 main ()
13181 static char program[] = "program";
13182 static char ab[] = "-ab";
13183 char *argv[3] = { program, ab, NULL };
13184 if (getopt (2, argv, "ab:") != 'a')
13185 return 13;
13186 if (getopt (2, argv, "ab:") != '?')
13187 return 14;
13188 if (optopt != 'b')
13189 return 15;
13190 if (optind != 2)
13191 return 16;
13192 return 0;
13195 _ACEOF
13196 if ac_fn_c_try_run "$LINENO"; then :
13197 gl_cv_func_getopt_posix=yes
13198 else
13199 gl_cv_func_getopt_posix=no
13201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13202 conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 else
13207 case "$host_os" in
13208 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
13209 *) gl_cv_func_getopt_posix="guessing yes";;
13210 esac
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13215 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13216 case "$gl_cv_func_getopt_posix" in
13217 *no) gl_replace_getopt=yes ;;
13218 esac
13221 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13223 $as_echo_n "checking for working GNU getopt function... " >&6; }
13224 if ${gl_cv_func_getopt_gnu+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13228 # optstring is necessary for programs like m4 that have POSIX-mandated
13229 # semantics for supporting options interspersed with files.
13230 # Also, since getopt_long is a GNU extension, we require optind=0.
13231 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13232 # so take care to revert to the correct (non-)export state.
13233 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13234 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13235 xx) gl_had_POSIXLY_CORRECT=exported ;;
13236 x) gl_had_POSIXLY_CORRECT=yes ;;
13237 *) gl_had_POSIXLY_CORRECT= ;;
13238 esac
13239 POSIXLY_CORRECT=1
13240 export POSIXLY_CORRECT
13241 if test "$cross_compiling" = yes; then :
13242 gl_cv_func_getopt_gnu="guessing no"
13244 else
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247 #include <getopt.h>
13248 #include <stddef.h>
13249 #include <string.h>
13251 #include <stdlib.h>
13252 #if defined __MACH__ && defined __APPLE__
13253 /* Avoid a crash on Mac OS X. */
13254 #include <mach/mach.h>
13255 #include <mach/mach_error.h>
13256 #include <mach/thread_status.h>
13257 #include <mach/exception.h>
13258 #include <mach/task.h>
13259 #include <pthread.h>
13260 /* The exception port on which our thread listens. */
13261 static mach_port_t our_exception_port;
13262 /* The main function of the thread listening for exceptions of type
13263 EXC_BAD_ACCESS. */
13264 static void *
13265 mach_exception_thread (void *arg)
13267 /* Buffer for a message to be received. */
13268 struct {
13269 mach_msg_header_t head;
13270 mach_msg_body_t msgh_body;
13271 char data[1024];
13272 } msg;
13273 mach_msg_return_t retval;
13274 /* Wait for a message on the exception port. */
13275 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13276 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13277 if (retval != MACH_MSG_SUCCESS)
13278 abort ();
13279 exit (1);
13281 static void
13282 nocrash_init (void)
13284 mach_port_t self = mach_task_self ();
13285 /* Allocate a port on which the thread shall listen for exceptions. */
13286 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13287 == KERN_SUCCESS) {
13288 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
13289 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13290 MACH_MSG_TYPE_MAKE_SEND)
13291 == KERN_SUCCESS) {
13292 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
13293 for us. */
13294 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13295 /* Create the thread listening on the exception port. */
13296 pthread_attr_t attr;
13297 pthread_t thread;
13298 if (pthread_attr_init (&attr) == 0
13299 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13300 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13301 pthread_attr_destroy (&attr);
13302 /* Replace the exception port info for these exceptions with our own.
13303 Note that we replace the exception port for the entire task, not only
13304 for a particular thread. This has the effect that when our exception
13305 port gets the message, the thread specific exception port has already
13306 been asked, and we don't need to bother about it.
13307 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
13308 task_set_exception_ports (self, mask, our_exception_port,
13309 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13314 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13315 /* Avoid a crash on native Windows. */
13316 #define WIN32_LEAN_AND_MEAN
13317 #include <windows.h>
13318 #include <winerror.h>
13319 static LONG WINAPI
13320 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13322 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13324 case EXCEPTION_ACCESS_VIOLATION:
13325 case EXCEPTION_IN_PAGE_ERROR:
13326 case EXCEPTION_STACK_OVERFLOW:
13327 case EXCEPTION_GUARD_PAGE:
13328 case EXCEPTION_PRIV_INSTRUCTION:
13329 case EXCEPTION_ILLEGAL_INSTRUCTION:
13330 case EXCEPTION_DATATYPE_MISALIGNMENT:
13331 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13332 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13333 exit (1);
13335 return EXCEPTION_CONTINUE_SEARCH;
13337 static void
13338 nocrash_init (void)
13340 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13342 #else
13343 /* Avoid a crash on POSIX systems. */
13344 #include <signal.h>
13345 /* A POSIX signal handler. */
13346 static void
13347 exception_handler (int sig)
13349 exit (1);
13351 static void
13352 nocrash_init (void)
13354 #ifdef SIGSEGV
13355 signal (SIGSEGV, exception_handler);
13356 #endif
13357 #ifdef SIGBUS
13358 signal (SIGBUS, exception_handler);
13359 #endif
13361 #endif
13365 main (void)
13368 int result = 0;
13370 nocrash_init();
13372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13373 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13374 OSF/1 5.1, Solaris 10. */
13376 static char conftest[] = "conftest";
13377 static char plus[] = "-+";
13378 char *argv[3] = { conftest, plus, NULL };
13379 opterr = 0;
13380 if (getopt (2, argv, "+a") != '?')
13381 result |= 1;
13383 /* This code succeeds on glibc 2.8, mingw,
13384 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13385 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13387 static char program[] = "program";
13388 static char p[] = "-p";
13389 static char foo[] = "foo";
13390 static char bar[] = "bar";
13391 char *argv[] = { program, p, foo, bar, NULL };
13393 optind = 1;
13394 if (getopt (4, argv, "p::") != 'p')
13395 result |= 2;
13396 else if (optarg != NULL)
13397 result |= 4;
13398 else if (getopt (4, argv, "p::") != -1)
13399 result |= 6;
13400 else if (optind != 2)
13401 result |= 8;
13403 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13405 static char program[] = "program";
13406 static char foo[] = "foo";
13407 static char p[] = "-p";
13408 char *argv[] = { program, foo, p, NULL };
13409 optind = 0;
13410 if (getopt (3, argv, "-p") != 1)
13411 result |= 16;
13412 else if (getopt (3, argv, "-p") != 'p')
13413 result |= 16;
13415 /* This code fails on glibc 2.11. */
13417 static char program[] = "program";
13418 static char b[] = "-b";
13419 static char a[] = "-a";
13420 char *argv[] = { program, b, a, NULL };
13421 optind = opterr = 0;
13422 if (getopt (3, argv, "+:a:b") != 'b')
13423 result |= 32;
13424 else if (getopt (3, argv, "+:a:b") != ':')
13425 result |= 32;
13427 /* This code dumps core on glibc 2.14. */
13429 static char program[] = "program";
13430 static char w[] = "-W";
13431 static char dummy[] = "dummy";
13432 char *argv[] = { program, w, dummy, NULL };
13433 optind = opterr = 1;
13434 if (getopt (3, argv, "W;") != 'W')
13435 result |= 64;
13437 return result;
13440 return 0;
13442 _ACEOF
13443 if ac_fn_c_try_run "$LINENO"; then :
13444 gl_cv_func_getopt_gnu=yes
13445 else
13446 gl_cv_func_getopt_gnu=no
13448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13449 conftest.$ac_objext conftest.beam conftest.$ac_ext
13452 case $gl_had_POSIXLY_CORRECT in
13453 exported) ;;
13454 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13455 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13456 esac
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13460 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13461 if test "$gl_cv_func_getopt_gnu" != yes; then
13462 gl_replace_getopt=yes
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13465 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
13466 if ${gl_cv_func_getopt_long_gnu+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test "$cross_compiling" = yes; then :
13470 case "$host_os" in
13471 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
13472 *) gl_cv_func_getopt_long_gnu="guessing yes";;
13473 esac
13475 else
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 #include <getopt.h>
13479 #include <stddef.h>
13480 #include <string.h>
13483 main (void)
13485 static const struct option long_options[] =
13487 { "xtremely-",no_argument, NULL, 1003 },
13488 { "xtra", no_argument, NULL, 1001 },
13489 { "xtreme", no_argument, NULL, 1002 },
13490 { "xtremely", no_argument, NULL, 1003 },
13491 { NULL, 0, NULL, 0 }
13493 /* This code fails on OpenBSD 5.0. */
13495 static char program[] = "program";
13496 static char xtremel[] = "--xtremel";
13497 char *argv[] = { program, xtremel, NULL };
13498 int option_index;
13499 optind = 1; opterr = 0;
13500 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13501 return 1;
13503 return 0;
13506 return 0;
13508 _ACEOF
13509 if ac_fn_c_try_run "$LINENO"; then :
13510 gl_cv_func_getopt_long_gnu=yes
13511 else
13512 gl_cv_func_getopt_long_gnu=no
13514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13515 conftest.$ac_objext conftest.beam conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13521 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
13522 case "$gl_cv_func_getopt_long_gnu" in
13523 *yes) ;;
13524 *) gl_replace_getopt=yes ;;
13525 esac
13534 REPLACE_GETOPT=1
13536 if test $REPLACE_GETOPT = 1; then
13538 GETOPT_H=getopt.h
13540 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13546 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13547 if test "x$ac_cv_have_decl_getenv" = xyes; then :
13548 ac_have_decl=1
13549 else
13550 ac_have_decl=0
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_DECL_GETENV $ac_have_decl
13555 _ACEOF
13558 GNULIB_NL_LANGINFO=0;
13559 HAVE_NL_LANGINFO=1;
13560 REPLACE_NL_LANGINFO=0;
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
13574 $as_echo_n "checking for working fcntl.h... " >&6; }
13575 if ${gl_cv_header_working_fcntl_h+:} false; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 if test "$cross_compiling" = yes; then :
13579 gl_cv_header_working_fcntl_h=cross-compiling
13580 else
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 #include <sys/types.h>
13584 #include <sys/stat.h>
13585 #if HAVE_UNISTD_H
13586 # include <unistd.h>
13587 #else /* on Windows with MSVC */
13588 # include <io.h>
13589 # include <stdlib.h>
13590 # defined sleep(n) _sleep ((n) * 1000)
13591 #endif
13592 #include <fcntl.h>
13593 #ifndef O_NOATIME
13594 #define O_NOATIME 0
13595 #endif
13596 #ifndef O_NOFOLLOW
13597 #define O_NOFOLLOW 0
13598 #endif
13599 static int const constants[] =
13601 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13602 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13606 main (void)
13609 int result = !constants;
13610 #if HAVE_SYMLINK
13612 static char const sym[] = "conftest.sym";
13613 if (symlink ("/dev/null", sym) != 0)
13614 result |= 2;
13615 else
13617 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
13618 if (fd >= 0)
13620 close (fd);
13621 result |= 4;
13624 if (unlink (sym) != 0 || symlink (".", sym) != 0)
13625 result |= 2;
13626 else
13628 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
13629 if (fd >= 0)
13631 close (fd);
13632 result |= 4;
13635 unlink (sym);
13637 #endif
13639 static char const file[] = "confdefs.h";
13640 int fd = open (file, O_RDONLY | O_NOATIME);
13641 if (fd < 0)
13642 result |= 8;
13643 else
13645 struct stat st0;
13646 if (fstat (fd, &st0) != 0)
13647 result |= 16;
13648 else
13650 char c;
13651 sleep (1);
13652 if (read (fd, &c, 1) != 1)
13653 result |= 24;
13654 else
13656 if (close (fd) != 0)
13657 result |= 32;
13658 else
13660 struct stat st1;
13661 if (stat (file, &st1) != 0)
13662 result |= 40;
13663 else
13664 if (st0.st_atime != st1.st_atime)
13665 result |= 64;
13671 return result;
13673 return 0;
13675 _ACEOF
13676 if ac_fn_c_try_run "$LINENO"; then :
13677 gl_cv_header_working_fcntl_h=yes
13678 else
13679 case $? in #(
13680 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
13681 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
13682 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
13683 *) gl_cv_header_working_fcntl_h='no';;
13684 esac
13686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13687 conftest.$ac_objext conftest.beam conftest.$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
13692 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
13694 case $gl_cv_header_working_fcntl_h in #(
13695 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
13696 *) ac_val=1;;
13697 esac
13699 cat >>confdefs.h <<_ACEOF
13700 #define HAVE_WORKING_O_NOATIME $ac_val
13701 _ACEOF
13704 case $gl_cv_header_working_fcntl_h in #(
13705 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
13706 *) ac_val=1;;
13707 esac
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_WORKING_O_NOFOLLOW $ac_val
13711 _ACEOF
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13716 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
13717 if ${ac_cv_gnu_library_2_1+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #include <features.h>
13724 #ifdef __GNU_LIBRARY__
13725 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13726 Lucky GNU user
13727 #endif
13728 #endif
13729 #ifdef __UCLIBC__
13730 Lucky user
13731 #endif
13733 _ACEOF
13734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735 $EGREP "Lucky" >/dev/null 2>&1; then :
13736 ac_cv_gnu_library_2_1=yes
13737 else
13738 ac_cv_gnu_library_2_1=no
13740 rm -f conftest*
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13746 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13748 GLIBC21="$ac_cv_gnu_library_2_1"
13752 GNULIB_LOCALECONV=0;
13753 GNULIB_SETLOCALE=0;
13754 GNULIB_DUPLOCALE=0;
13755 HAVE_DUPLOCALE=1;
13756 REPLACE_LOCALECONV=0;
13757 REPLACE_SETLOCALE=0;
13758 REPLACE_DUPLOCALE=0;
13759 REPLACE_STRUCT_LCONV=0;
13762 REPLACE_NULL=0;
13763 HAVE_WCHAR_T=1;
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13767 $as_echo_n "checking for wchar_t... " >&6; }
13768 if ${gt_cv_c_wchar_t+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #include <stddef.h>
13774 wchar_t foo = (wchar_t)'\0';
13776 main (void)
13780 return 0;
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"; then :
13784 gt_cv_c_wchar_t=yes
13785 else
13786 gt_cv_c_wchar_t=no
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13791 $as_echo "$gt_cv_c_wchar_t" >&6; }
13792 if test $gt_cv_c_wchar_t = yes; then
13794 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13801 STDDEF_H=
13802 if test $gt_cv_c_wchar_t = no; then
13803 HAVE_WCHAR_T=0
13804 STDDEF_H=stddef.h
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13807 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13808 if ${gl_cv_decl_null_works+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #include <stddef.h>
13814 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13817 main (void)
13821 return 0;
13823 _ACEOF
13824 if ac_fn_c_try_compile "$LINENO"; then :
13825 gl_cv_decl_null_works=yes
13826 else
13827 gl_cv_decl_null_works=no
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13832 $as_echo "$gl_cv_decl_null_works" >&6; }
13833 if test $gl_cv_decl_null_works = no; then
13834 REPLACE_NULL=1
13835 STDDEF_H=stddef.h
13838 if test -n "$STDDEF_H"; then
13839 GL_GENERATE_STDDEF_H_TRUE=
13840 GL_GENERATE_STDDEF_H_FALSE='#'
13841 else
13842 GL_GENERATE_STDDEF_H_TRUE='#'
13843 GL_GENERATE_STDDEF_H_FALSE=
13846 if test -n "$STDDEF_H"; then
13855 if test $gl_cv_have_include_next = yes; then
13856 gl_cv_next_stddef_h='<'stddef.h'>'
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13859 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13860 if ${gl_cv_next_stddef_h+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 #include <stddef.h>
13868 _ACEOF
13869 case "$host_os" in
13870 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13871 *) gl_absname_cpp="$ac_cpp" ;;
13872 esac
13874 case "$host_os" in
13875 mingw*)
13876 gl_dirsep_regex='[/\\]'
13879 gl_dirsep_regex='\/'
13881 esac
13882 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13884 gl_header_literal_regex=`echo 'stddef.h' \
13885 | sed -e "$gl_make_literal_regex_sed"`
13886 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13887 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13888 s|^/[^/]|//&|
13892 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13893 sed -n "$gl_absolute_header_sed"`'"'
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13898 $as_echo "$gl_cv_next_stddef_h" >&6; }
13900 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13902 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13904 gl_next_as_first_directive='<'stddef.h'>'
13905 else
13906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13907 gl_next_as_first_directive=$gl_cv_next_stddef_h
13909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13919 GNULIB__EXIT=0;
13920 GNULIB_ATOLL=0;
13921 GNULIB_CALLOC_POSIX=0;
13922 GNULIB_CANONICALIZE_FILE_NAME=0;
13923 GNULIB_GETLOADAVG=0;
13924 GNULIB_GETSUBOPT=0;
13925 GNULIB_GRANTPT=0;
13926 GNULIB_MALLOC_POSIX=0;
13927 GNULIB_MBTOWC=0;
13928 GNULIB_MKDTEMP=0;
13929 GNULIB_MKOSTEMP=0;
13930 GNULIB_MKOSTEMPS=0;
13931 GNULIB_MKSTEMP=0;
13932 GNULIB_MKSTEMPS=0;
13933 GNULIB_POSIX_OPENPT=0;
13934 GNULIB_PTSNAME=0;
13935 GNULIB_PTSNAME_R=0;
13936 GNULIB_PUTENV=0;
13937 GNULIB_RANDOM=0;
13938 GNULIB_RANDOM_R=0;
13939 GNULIB_REALLOC_POSIX=0;
13940 GNULIB_REALPATH=0;
13941 GNULIB_RPMATCH=0;
13942 GNULIB_SECURE_GETENV=0;
13943 GNULIB_SETENV=0;
13944 GNULIB_STRTOD=0;
13945 GNULIB_STRTOLL=0;
13946 GNULIB_STRTOULL=0;
13947 GNULIB_SYSTEM_POSIX=0;
13948 GNULIB_UNLOCKPT=0;
13949 GNULIB_UNSETENV=0;
13950 GNULIB_WCTOMB=0;
13951 HAVE__EXIT=1;
13952 HAVE_ATOLL=1;
13953 HAVE_CANONICALIZE_FILE_NAME=1;
13954 HAVE_DECL_GETLOADAVG=1;
13955 HAVE_GETSUBOPT=1;
13956 HAVE_GRANTPT=1;
13957 HAVE_MKDTEMP=1;
13958 HAVE_MKOSTEMP=1;
13959 HAVE_MKOSTEMPS=1;
13960 HAVE_MKSTEMP=1;
13961 HAVE_MKSTEMPS=1;
13962 HAVE_POSIX_OPENPT=1;
13963 HAVE_PTSNAME=1;
13964 HAVE_PTSNAME_R=1;
13965 HAVE_RANDOM=1;
13966 HAVE_RANDOM_H=1;
13967 HAVE_RANDOM_R=1;
13968 HAVE_REALPATH=1;
13969 HAVE_RPMATCH=1;
13970 HAVE_SECURE_GETENV=1;
13971 HAVE_SETENV=1;
13972 HAVE_DECL_SETENV=1;
13973 HAVE_STRTOD=1;
13974 HAVE_STRTOLL=1;
13975 HAVE_STRTOULL=1;
13976 HAVE_STRUCT_RANDOM_DATA=1;
13977 HAVE_SYS_LOADAVG_H=0;
13978 HAVE_UNLOCKPT=1;
13979 HAVE_DECL_UNSETENV=1;
13980 REPLACE_CALLOC=0;
13981 REPLACE_CANONICALIZE_FILE_NAME=0;
13982 REPLACE_MALLOC=0;
13983 REPLACE_MBTOWC=0;
13984 REPLACE_MKSTEMP=0;
13985 REPLACE_PTSNAME=0;
13986 REPLACE_PTSNAME_R=0;
13987 REPLACE_PUTENV=0;
13988 REPLACE_RANDOM_R=0;
13989 REPLACE_REALLOC=0;
13990 REPLACE_REALPATH=0;
13991 REPLACE_SETENV=0;
13992 REPLACE_STRTOD=0;
13993 REPLACE_UNSETENV=0;
13994 REPLACE_WCTOMB=0;
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13998 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13999 if ${gl_cv_func_malloc_posix+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14007 main (void)
14009 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14010 choke me
14011 #endif
14014 return 0;
14016 _ACEOF
14017 if ac_fn_c_try_compile "$LINENO"; then :
14018 gl_cv_func_malloc_posix=yes
14019 else
14020 gl_cv_func_malloc_posix=no
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14026 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14036 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14037 if ${gt_cv_locale_ja+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 #include <locale.h>
14045 #include <time.h>
14046 #if HAVE_LANGINFO_CODESET
14047 # include <langinfo.h>
14048 #endif
14049 #include <stdlib.h>
14050 #include <string.h>
14051 struct tm t;
14052 char buf[16];
14053 int main ()
14055 const char *p;
14056 /* Check whether the given locale name is recognized by the system. */
14057 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14058 /* On native Windows, setlocale(category, "") looks at the system settings,
14059 not at the environment variables. Also, when an encoding suffix such
14060 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14061 category of the locale to "C". */
14062 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14063 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14064 return 1;
14065 #else
14066 if (setlocale (LC_ALL, "") == NULL) return 1;
14067 #endif
14068 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14069 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14070 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14071 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14072 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14073 some unit tests fail.
14074 On MirBSD 10, when an unsupported locale is specified, setlocale()
14075 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14076 #if HAVE_LANGINFO_CODESET
14078 const char *cs = nl_langinfo (CODESET);
14079 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14080 || strcmp (cs, "UTF-8") == 0)
14081 return 1;
14083 #endif
14084 #ifdef __CYGWIN__
14085 /* On Cygwin, avoid locale names without encoding suffix, because the
14086 locale_charset() function relies on the encoding suffix. Note that
14087 LC_ALL is set on the command line. */
14088 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14089 #endif
14090 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14091 on Cygwin 1.5.x. */
14092 if (MB_CUR_MAX == 1)
14093 return 1;
14094 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14095 This excludes the UTF-8 encoding (except on MirBSD). */
14096 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14097 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14098 for (p = buf; *p != '\0'; p++)
14099 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14100 return 1;
14101 return 0;
14104 _ACEOF
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14106 (eval $ac_link) 2>&5
14107 ac_status=$?
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14110 case "$host_os" in
14111 # Handle native Windows specially, because there setlocale() interprets
14112 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14113 # "fr" or "fra" as "French" or "French_France.1252",
14114 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14115 # "ja" as "Japanese" or "Japanese_Japan.932",
14116 # and similar.
14117 mingw*)
14118 # Note that on native Windows, the Japanese locale is
14119 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14120 # cannot use it here.
14121 gt_cv_locale_ja=none
14124 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14125 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14126 # configure script would override the LC_ALL setting. Likewise for
14127 # LC_CTYPE, which is also set at the beginning of the configure script.
14128 # Test for the AIX locale name.
14129 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14130 gt_cv_locale_ja=ja_JP
14131 else
14132 # Test for the locale name with explicit encoding suffix.
14133 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14134 gt_cv_locale_ja=ja_JP.EUC-JP
14135 else
14136 # Test for the HP-UX, OSF/1, NetBSD locale name.
14137 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14138 gt_cv_locale_ja=ja_JP.eucJP
14139 else
14140 # Test for the IRIX, FreeBSD locale name.
14141 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14142 gt_cv_locale_ja=ja_JP.EUC
14143 else
14144 # Test for the Solaris 7 locale name.
14145 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14146 gt_cv_locale_ja=ja
14147 else
14148 # Special test for NetBSD 1.6.
14149 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14150 gt_cv_locale_ja=ja_JP.eucJP
14151 else
14152 # None found.
14153 gt_cv_locale_ja=none
14161 esac
14163 rm -fr conftest*
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14167 $as_echo "$gt_cv_locale_ja" >&6; }
14168 LOCALE_JA=$gt_cv_locale_ja
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14175 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14176 if ${gt_cv_locale_zh_CN+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 #include <locale.h>
14184 #include <stdlib.h>
14185 #include <time.h>
14186 #if HAVE_LANGINFO_CODESET
14187 # include <langinfo.h>
14188 #endif
14189 #include <stdlib.h>
14190 #include <string.h>
14191 struct tm t;
14192 char buf[16];
14193 int main ()
14195 const char *p;
14196 /* Check whether the given locale name is recognized by the system. */
14197 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14198 /* On native Windows, setlocale(category, "") looks at the system settings,
14199 not at the environment variables. Also, when an encoding suffix such
14200 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14201 category of the locale to "C". */
14202 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14203 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14204 return 1;
14205 #else
14206 if (setlocale (LC_ALL, "") == NULL) return 1;
14207 #endif
14208 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14209 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14210 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14211 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14212 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14213 some unit tests fail.
14214 On MirBSD 10, when an unsupported locale is specified, setlocale()
14215 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14216 #if HAVE_LANGINFO_CODESET
14218 const char *cs = nl_langinfo (CODESET);
14219 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14220 || strcmp (cs, "UTF-8") == 0)
14221 return 1;
14223 #endif
14224 #ifdef __CYGWIN__
14225 /* On Cygwin, avoid locale names without encoding suffix, because the
14226 locale_charset() function relies on the encoding suffix. Note that
14227 LC_ALL is set on the command line. */
14228 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14229 #endif
14230 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14231 This excludes the UTF-8 encoding (except on MirBSD). */
14232 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14233 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14234 for (p = buf; *p != '\0'; p++)
14235 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14236 return 1;
14237 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14238 single wide character. This excludes the GB2312 and GBK encodings. */
14239 if (mblen ("\203\062\332\066", 5) != 4)
14240 return 1;
14241 return 0;
14244 _ACEOF
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14246 (eval $ac_link) 2>&5
14247 ac_status=$?
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14250 case "$host_os" in
14251 # Handle native Windows specially, because there setlocale() interprets
14252 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14253 # "fr" or "fra" as "French" or "French_France.1252",
14254 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14255 # "ja" as "Japanese" or "Japanese_Japan.932",
14256 # and similar.
14257 mingw*)
14258 # Test for the hypothetical native Windows locale name.
14259 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14260 gt_cv_locale_zh_CN=Chinese_China.54936
14261 else
14262 # None found.
14263 gt_cv_locale_zh_CN=none
14266 solaris2.8)
14267 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14268 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14269 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14270 gt_cv_locale_zh_CN=none
14273 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14274 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14275 # configure script would override the LC_ALL setting. Likewise for
14276 # LC_CTYPE, which is also set at the beginning of the configure script.
14277 # Test for the locale name without encoding suffix.
14278 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14279 gt_cv_locale_zh_CN=zh_CN
14280 else
14281 # Test for the locale name with explicit encoding suffix.
14282 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14283 gt_cv_locale_zh_CN=zh_CN.GB18030
14284 else
14285 # None found.
14286 gt_cv_locale_zh_CN=none
14290 esac
14291 else
14292 # If there was a link error, due to mblen(), the system is so old that
14293 # it certainly doesn't have a chinese locale.
14294 gt_cv_locale_zh_CN=none
14296 rm -fr conftest*
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14300 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14301 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14307 $as_echo_n "checking for a french Unicode locale... " >&6; }
14308 if ${gt_cv_locale_fr_utf8+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 #include <locale.h>
14316 #include <time.h>
14317 #if HAVE_LANGINFO_CODESET
14318 # include <langinfo.h>
14319 #endif
14320 #include <stdlib.h>
14321 #include <string.h>
14322 struct tm t;
14323 char buf[16];
14324 int main () {
14325 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14326 imitates locale dependent behaviour by looking at the environment
14327 variables, and all locales use the UTF-8 encoding. */
14328 #if !(defined __BEOS__ || defined __HAIKU__)
14329 /* Check whether the given locale name is recognized by the system. */
14330 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14331 /* On native Windows, setlocale(category, "") looks at the system settings,
14332 not at the environment variables. Also, when an encoding suffix such
14333 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14334 category of the locale to "C". */
14335 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14336 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14337 return 1;
14338 # else
14339 if (setlocale (LC_ALL, "") == NULL) return 1;
14340 # endif
14341 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14342 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14343 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14344 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14345 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14346 some unit tests fail. */
14347 # if HAVE_LANGINFO_CODESET
14349 const char *cs = nl_langinfo (CODESET);
14350 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14351 return 1;
14353 # endif
14354 # ifdef __CYGWIN__
14355 /* On Cygwin, avoid locale names without encoding suffix, because the
14356 locale_charset() function relies on the encoding suffix. Note that
14357 LC_ALL is set on the command line. */
14358 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14359 # endif
14360 /* Check whether in the abbreviation of the second month, the second
14361 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14362 two bytes long, with UTF-8 encoding. */
14363 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14364 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14365 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14366 return 1;
14367 #endif
14368 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14369 /* Check whether the decimal separator is a comma.
14370 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14371 are nl_langinfo(RADIXCHAR) are both ".". */
14372 if (localeconv () ->decimal_point[0] != ',') return 1;
14373 #endif
14374 return 0;
14377 _ACEOF
14378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14379 (eval $ac_link) 2>&5
14380 ac_status=$?
14381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14383 case "$host_os" in
14384 # Handle native Windows specially, because there setlocale() interprets
14385 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14386 # "fr" or "fra" as "French" or "French_France.1252",
14387 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14388 # "ja" as "Japanese" or "Japanese_Japan.932",
14389 # and similar.
14390 mingw*)
14391 # Test for the hypothetical native Windows locale name.
14392 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14393 gt_cv_locale_fr_utf8=French_France.65001
14394 else
14395 # None found.
14396 gt_cv_locale_fr_utf8=none
14400 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14401 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14402 # configure script would override the LC_ALL setting. Likewise for
14403 # LC_CTYPE, which is also set at the beginning of the configure script.
14404 # Test for the usual locale name.
14405 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14406 gt_cv_locale_fr_utf8=fr_FR
14407 else
14408 # Test for the locale name with explicit encoding suffix.
14409 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14410 gt_cv_locale_fr_utf8=fr_FR.UTF-8
14411 else
14412 # Test for the Solaris 7 locale name.
14413 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14414 gt_cv_locale_fr_utf8=fr.UTF-8
14415 else
14416 # None found.
14417 gt_cv_locale_fr_utf8=none
14422 esac
14424 rm -fr conftest*
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14428 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14429 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
14441 GNULIB_FFSL=0;
14442 GNULIB_FFSLL=0;
14443 GNULIB_MEMCHR=0;
14444 GNULIB_MEMMEM=0;
14445 GNULIB_MEMPCPY=0;
14446 GNULIB_MEMRCHR=0;
14447 GNULIB_RAWMEMCHR=0;
14448 GNULIB_STPCPY=0;
14449 GNULIB_STPNCPY=0;
14450 GNULIB_STRCHRNUL=0;
14451 GNULIB_STRDUP=0;
14452 GNULIB_STRNCAT=0;
14453 GNULIB_STRNDUP=0;
14454 GNULIB_STRNLEN=0;
14455 GNULIB_STRPBRK=0;
14456 GNULIB_STRSEP=0;
14457 GNULIB_STRSTR=0;
14458 GNULIB_STRCASESTR=0;
14459 GNULIB_STRTOK_R=0;
14460 GNULIB_MBSLEN=0;
14461 GNULIB_MBSNLEN=0;
14462 GNULIB_MBSCHR=0;
14463 GNULIB_MBSRCHR=0;
14464 GNULIB_MBSSTR=0;
14465 GNULIB_MBSCASECMP=0;
14466 GNULIB_MBSNCASECMP=0;
14467 GNULIB_MBSPCASECMP=0;
14468 GNULIB_MBSCASESTR=0;
14469 GNULIB_MBSCSPN=0;
14470 GNULIB_MBSPBRK=0;
14471 GNULIB_MBSSPN=0;
14472 GNULIB_MBSSEP=0;
14473 GNULIB_MBSTOK_R=0;
14474 GNULIB_STRERROR=0;
14475 GNULIB_STRERROR_R=0;
14476 GNULIB_STRSIGNAL=0;
14477 GNULIB_STRVERSCMP=0;
14478 HAVE_MBSLEN=0;
14479 HAVE_FFSL=1;
14480 HAVE_FFSLL=1;
14481 HAVE_MEMCHR=1;
14482 HAVE_DECL_MEMMEM=1;
14483 HAVE_MEMPCPY=1;
14484 HAVE_DECL_MEMRCHR=1;
14485 HAVE_RAWMEMCHR=1;
14486 HAVE_STPCPY=1;
14487 HAVE_STPNCPY=1;
14488 HAVE_STRCHRNUL=1;
14489 HAVE_DECL_STRDUP=1;
14490 HAVE_DECL_STRNDUP=1;
14491 HAVE_DECL_STRNLEN=1;
14492 HAVE_STRPBRK=1;
14493 HAVE_STRSEP=1;
14494 HAVE_STRCASESTR=1;
14495 HAVE_DECL_STRTOK_R=1;
14496 HAVE_DECL_STRERROR_R=1;
14497 HAVE_DECL_STRSIGNAL=1;
14498 HAVE_STRVERSCMP=1;
14499 REPLACE_MEMCHR=0;
14500 REPLACE_MEMMEM=0;
14501 REPLACE_STPNCPY=0;
14502 REPLACE_STRDUP=0;
14503 REPLACE_STRSTR=0;
14504 REPLACE_STRCASESTR=0;
14505 REPLACE_STRCHRNUL=0;
14506 REPLACE_STRERROR=0;
14507 REPLACE_STRERROR_R=0;
14508 REPLACE_STRNCAT=0;
14509 REPLACE_STRNDUP=0;
14510 REPLACE_STRNLEN=0;
14511 REPLACE_STRSIGNAL=0;
14512 REPLACE_STRTOK_R=0;
14513 UNDEFINE_STRTOK_R=0;
14519 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14520 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14521 # irrelevant for anonymous mappings.
14522 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14523 if test "x$ac_cv_func_mmap" = xyes; then :
14524 gl_have_mmap=yes
14525 else
14526 gl_have_mmap=no
14530 # Try to allow MAP_ANONYMOUS.
14531 gl_have_mmap_anonymous=no
14532 if test $gl_have_mmap = yes; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14534 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14538 #include <sys/mman.h>
14539 #ifdef MAP_ANONYMOUS
14540 I cannot identify this map
14541 #endif
14543 _ACEOF
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14546 gl_have_mmap_anonymous=yes
14548 rm -f conftest*
14550 if test $gl_have_mmap_anonymous != yes; then
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 #include <sys/mman.h>
14555 #ifdef MAP_ANON
14556 I cannot identify this map
14557 #endif
14559 _ACEOF
14560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14561 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
14563 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14565 gl_have_mmap_anonymous=yes
14567 rm -f conftest*
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14571 $as_echo "$gl_have_mmap_anonymous" >&6; }
14572 if test $gl_have_mmap_anonymous = yes; then
14574 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14584 if test $HAVE_MEMCHR = 1; then
14585 # Detect platform-specific bugs in some versions of glibc:
14586 # memchr should not dereference anything with length 0
14587 # http://bugzilla.redhat.com/499689
14588 # memchr should not dereference overestimated length after a match
14589 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14590 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14591 # Assume that memchr works on platforms that lack mprotect.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14593 $as_echo_n "checking whether memchr works... " >&6; }
14594 if ${gl_cv_func_memchr_works+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 if test "$cross_compiling" = yes; then :
14598 gl_cv_func_memchr_works="guessing no"
14599 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14603 #include <string.h>
14604 #if HAVE_SYS_MMAN_H
14605 # include <fcntl.h>
14606 # include <unistd.h>
14607 # include <sys/types.h>
14608 # include <sys/mman.h>
14609 # ifndef MAP_FILE
14610 # define MAP_FILE 0
14611 # endif
14612 #endif
14615 main (void)
14618 int result = 0;
14619 char *fence = NULL;
14620 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14621 # if HAVE_MAP_ANONYMOUS
14622 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14623 const int fd = -1;
14624 # else /* !HAVE_MAP_ANONYMOUS */
14625 const int flags = MAP_FILE | MAP_PRIVATE;
14626 int fd = open ("/dev/zero", O_RDONLY, 0666);
14627 if (fd >= 0)
14628 # endif
14630 int pagesize = getpagesize ();
14631 char *two_pages =
14632 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14633 flags, fd, 0);
14634 if (two_pages != (char *)(-1)
14635 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14636 fence = two_pages + pagesize;
14638 #endif
14639 if (fence)
14641 if (memchr (fence, 0, 0))
14642 result |= 1;
14643 strcpy (fence - 9, "12345678");
14644 if (memchr (fence - 9, 0, 79) != fence - 1)
14645 result |= 2;
14646 if (memchr (fence - 1, 0, 3) != fence - 1)
14647 result |= 4;
14649 return result;
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_run "$LINENO"; then :
14656 gl_cv_func_memchr_works=yes
14657 else
14658 gl_cv_func_memchr_works=no
14660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14661 conftest.$ac_objext conftest.beam conftest.$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14666 $as_echo "$gl_cv_func_memchr_works" >&6; }
14667 if test "$gl_cv_func_memchr_works" != yes; then
14668 REPLACE_MEMCHR=1
14675 gl_cv_c_multiarch=no
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14678 #ifndef __APPLE_CC__
14679 not a universal capable compiler
14680 #endif
14681 typedef int dummy;
14683 _ACEOF
14684 if ac_fn_c_try_compile "$LINENO"; then :
14686 arch=
14687 prev=
14688 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14689 if test -n "$prev"; then
14690 case $word in
14691 i?86 | x86_64 | ppc | ppc64)
14692 if test -z "$arch" || test "$arch" = "$word"; then
14693 arch="$word"
14694 else
14695 gl_cv_c_multiarch=yes
14698 esac
14699 prev=
14700 else
14701 if test "x$word" = "x-arch"; then
14702 prev=arch
14705 done
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 if test $gl_cv_c_multiarch = yes; then
14710 APPLE_UNIVERSAL_BUILD=1
14711 else
14712 APPLE_UNIVERSAL_BUILD=0
14718 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14719 if test "x$ac_cv_have_decl_alarm" = xyes; then :
14720 ac_have_decl=1
14721 else
14722 ac_have_decl=0
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_DECL_ALARM $ac_have_decl
14727 _ACEOF
14731 for ac_header in stdlib.h
14732 do :
14733 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14734 if test "x$ac_cv_header_stdlib_h" = xyes; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_STDLIB_H 1
14737 _ACEOF
14741 done
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14744 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14745 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 if test "$cross_compiling" = yes; then :
14749 case "$host_os" in
14750 # Guess yes on platforms where we know the result.
14751 *-gnu* | freebsd* | netbsd* | openbsd* \
14752 | hpux* | solaris* | cygwin* | mingw*)
14753 ac_cv_func_malloc_0_nonnull=yes ;;
14754 # If we don't know, assume the worst.
14755 *) ac_cv_func_malloc_0_nonnull=no ;;
14756 esac
14758 else
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14762 # include <stdlib.h>
14763 #else
14764 char *malloc ();
14765 #endif
14768 main (void)
14770 return ! malloc (0);
14772 return 0;
14775 _ACEOF
14776 if ac_fn_c_try_run "$LINENO"; then :
14777 ac_cv_func_malloc_0_nonnull=yes
14778 else
14779 ac_cv_func_malloc_0_nonnull=no
14781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14782 conftest.$ac_objext conftest.beam conftest.$ac_ext
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14788 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14789 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14790 gl_cv_func_malloc_0_nonnull=1
14791 else
14792 gl_cv_func_malloc_0_nonnull=0
14796 cat >>confdefs.h <<_ACEOF
14797 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14798 _ACEOF
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14806 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14807 if ${ac_cv_header_stdbool_h+:} false; then :
14808 $as_echo_n "(cached) " >&6
14809 else
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 #include <stdbool.h>
14814 #ifndef bool
14815 "error: bool is not defined"
14816 #endif
14817 #ifndef false
14818 "error: false is not defined"
14819 #endif
14820 #if false
14821 "error: false is not 0"
14822 #endif
14823 #ifndef true
14824 "error: true is not defined"
14825 #endif
14826 #if true != 1
14827 "error: true is not 1"
14828 #endif
14829 #ifndef __bool_true_false_are_defined
14830 "error: __bool_true_false_are_defined is not defined"
14831 #endif
14833 struct s { _Bool s: 1; _Bool t; } s;
14835 char a[true == 1 ? 1 : -1];
14836 char b[false == 0 ? 1 : -1];
14837 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14838 char d[(bool) 0.5 == true ? 1 : -1];
14839 /* See body of main program for 'e'. */
14840 char f[(_Bool) 0.0 == false ? 1 : -1];
14841 char g[true];
14842 char h[sizeof (_Bool)];
14843 char i[sizeof s.t];
14844 enum { j = false, k = true, l = false * true, m = true * 256 };
14845 /* The following fails for
14846 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14847 _Bool n[m];
14848 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14849 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14850 /* Catch a bug in an HP-UX C compiler. See
14851 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14852 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14854 _Bool q = true;
14855 _Bool *pq = &q;
14858 main (void)
14861 bool e = &s;
14862 *pq |= q;
14863 *pq |= ! q;
14864 /* Refer to every declared value, to avoid compiler optimizations. */
14865 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14866 + !m + !n + !o + !p + !q + !pq);
14869 return 0;
14871 _ACEOF
14872 if ac_fn_c_try_compile "$LINENO"; then :
14873 ac_cv_header_stdbool_h=yes
14874 else
14875 ac_cv_header_stdbool_h=no
14877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14880 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14881 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14882 if test "x$ac_cv_type__Bool" = xyes; then :
14884 cat >>confdefs.h <<_ACEOF
14885 #define HAVE__BOOL 1
14886 _ACEOF
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14894 $as_echo_n "checking for unsigned long long int... " >&6; }
14895 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 ac_cv_type_unsigned_long_long_int=yes
14899 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 /* For now, do not test the preprocessor; as of 2007 there are too many
14904 implementations with broken preprocessors. Perhaps this can
14905 be revisited in 2012. In the meantime, code should not expect
14906 #if to work with literals wider than 32 bits. */
14907 /* Test literals. */
14908 long long int ll = 9223372036854775807ll;
14909 long long int nll = -9223372036854775807LL;
14910 unsigned long long int ull = 18446744073709551615ULL;
14911 /* Test constant expressions. */
14912 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14913 ? 1 : -1)];
14914 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14915 ? 1 : -1)];
14916 int i = 63;
14918 main (void)
14920 /* Test availability of runtime routines for shift and division. */
14921 long long int llmax = 9223372036854775807ll;
14922 unsigned long long int ullmax = 18446744073709551615ull;
14923 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14924 | (llmax / ll) | (llmax % ll)
14925 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14926 | (ullmax / ull) | (ullmax % ull));
14928 return 0;
14931 _ACEOF
14932 if ac_fn_c_try_link "$LINENO"; then :
14934 else
14935 ac_cv_type_unsigned_long_long_int=no
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14942 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14943 if test $ac_cv_type_unsigned_long_long_int = yes; then
14945 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14952 $as_echo_n "checking for long long int... " >&6; }
14953 if ${ac_cv_type_long_long_int+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 ac_cv_type_long_long_int=yes
14957 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14958 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14959 if test $ac_cv_type_long_long_int = yes; then
14960 if test "$cross_compiling" = yes; then :
14962 else
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965 #include <limits.h>
14966 #ifndef LLONG_MAX
14967 # define HALF \
14968 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14969 # define LLONG_MAX (HALF - 1 + HALF)
14970 #endif
14972 main (void)
14974 long long int n = 1;
14975 int i;
14976 for (i = 0; ; i++)
14978 long long int m = n << i;
14979 if (m >> i != n)
14980 return 1;
14981 if (LLONG_MAX / 2 < m)
14982 break;
14984 return 0;
14986 return 0;
14988 _ACEOF
14989 if ac_fn_c_try_run "$LINENO"; then :
14991 else
14992 ac_cv_type_long_long_int=no
14994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14995 conftest.$ac_objext conftest.beam conftest.$ac_ext
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15002 $as_echo "$ac_cv_type_long_long_int" >&6; }
15003 if test $ac_cv_type_long_long_int = yes; then
15005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15014 if test $ac_cv_type_long_long_int = yes; then
15015 HAVE_LONG_LONG_INT=1
15016 else
15017 HAVE_LONG_LONG_INT=0
15021 if test $ac_cv_type_unsigned_long_long_int = yes; then
15022 HAVE_UNSIGNED_LONG_LONG_INT=1
15023 else
15024 HAVE_UNSIGNED_LONG_LONG_INT=0
15029 if test $ac_cv_header_wchar_h = yes; then
15030 HAVE_WCHAR_H=1
15031 else
15032 HAVE_WCHAR_H=0
15036 if test $ac_cv_header_inttypes_h = yes; then
15037 HAVE_INTTYPES_H=1
15038 else
15039 HAVE_INTTYPES_H=0
15043 if test $ac_cv_header_sys_types_h = yes; then
15044 HAVE_SYS_TYPES_H=1
15045 else
15046 HAVE_SYS_TYPES_H=0
15059 if test $gl_cv_have_include_next = yes; then
15060 gl_cv_next_stdint_h='<'stdint.h'>'
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15063 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15064 if ${gl_cv_next_stdint_h+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15068 if test $ac_cv_header_stdint_h = yes; then
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #include <stdint.h>
15075 _ACEOF
15076 case "$host_os" in
15077 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15078 *) gl_absname_cpp="$ac_cpp" ;;
15079 esac
15081 case "$host_os" in
15082 mingw*)
15083 gl_dirsep_regex='[/\\]'
15086 gl_dirsep_regex='\/'
15088 esac
15089 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15091 gl_header_literal_regex=`echo 'stdint.h' \
15092 | sed -e "$gl_make_literal_regex_sed"`
15093 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15094 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15095 s|^/[^/]|//&|
15099 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15100 sed -n "$gl_absolute_header_sed"`'"'
15101 else
15102 gl_cv_next_stdint_h='<'stdint.h'>'
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15108 $as_echo "$gl_cv_next_stdint_h" >&6; }
15110 NEXT_STDINT_H=$gl_cv_next_stdint_h
15112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15114 gl_next_as_first_directive='<'stdint.h'>'
15115 else
15116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15117 gl_next_as_first_directive=$gl_cv_next_stdint_h
15119 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15124 if test $ac_cv_header_stdint_h = yes; then
15125 HAVE_STDINT_H=1
15126 else
15127 HAVE_STDINT_H=0
15131 if test $ac_cv_header_stdint_h = yes; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15133 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15134 if ${gl_cv_header_working_stdint_h+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 gl_cv_header_working_stdint_h=no
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15143 #include <stdint.h>
15144 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15145 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15146 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15147 #endif
15150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15151 included before <wchar.h>. */
15152 #include <stddef.h>
15153 #include <signal.h>
15154 #if HAVE_WCHAR_H
15155 # include <stdio.h>
15156 # include <time.h>
15157 # include <wchar.h>
15158 #endif
15161 #ifdef INT8_MAX
15162 int8_t a1 = INT8_MAX;
15163 int8_t a1min = INT8_MIN;
15164 #endif
15165 #ifdef INT16_MAX
15166 int16_t a2 = INT16_MAX;
15167 int16_t a2min = INT16_MIN;
15168 #endif
15169 #ifdef INT32_MAX
15170 int32_t a3 = INT32_MAX;
15171 int32_t a3min = INT32_MIN;
15172 #endif
15173 #ifdef INT64_MAX
15174 int64_t a4 = INT64_MAX;
15175 int64_t a4min = INT64_MIN;
15176 #endif
15177 #ifdef UINT8_MAX
15178 uint8_t b1 = UINT8_MAX;
15179 #else
15180 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15181 #endif
15182 #ifdef UINT16_MAX
15183 uint16_t b2 = UINT16_MAX;
15184 #endif
15185 #ifdef UINT32_MAX
15186 uint32_t b3 = UINT32_MAX;
15187 #endif
15188 #ifdef UINT64_MAX
15189 uint64_t b4 = UINT64_MAX;
15190 #endif
15191 int_least8_t c1 = INT8_C (0x7f);
15192 int_least8_t c1max = INT_LEAST8_MAX;
15193 int_least8_t c1min = INT_LEAST8_MIN;
15194 int_least16_t c2 = INT16_C (0x7fff);
15195 int_least16_t c2max = INT_LEAST16_MAX;
15196 int_least16_t c2min = INT_LEAST16_MIN;
15197 int_least32_t c3 = INT32_C (0x7fffffff);
15198 int_least32_t c3max = INT_LEAST32_MAX;
15199 int_least32_t c3min = INT_LEAST32_MIN;
15200 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15201 int_least64_t c4max = INT_LEAST64_MAX;
15202 int_least64_t c4min = INT_LEAST64_MIN;
15203 uint_least8_t d1 = UINT8_C (0xff);
15204 uint_least8_t d1max = UINT_LEAST8_MAX;
15205 uint_least16_t d2 = UINT16_C (0xffff);
15206 uint_least16_t d2max = UINT_LEAST16_MAX;
15207 uint_least32_t d3 = UINT32_C (0xffffffff);
15208 uint_least32_t d3max = UINT_LEAST32_MAX;
15209 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15210 uint_least64_t d4max = UINT_LEAST64_MAX;
15211 int_fast8_t e1 = INT_FAST8_MAX;
15212 int_fast8_t e1min = INT_FAST8_MIN;
15213 int_fast16_t e2 = INT_FAST16_MAX;
15214 int_fast16_t e2min = INT_FAST16_MIN;
15215 int_fast32_t e3 = INT_FAST32_MAX;
15216 int_fast32_t e3min = INT_FAST32_MIN;
15217 int_fast64_t e4 = INT_FAST64_MAX;
15218 int_fast64_t e4min = INT_FAST64_MIN;
15219 uint_fast8_t f1 = UINT_FAST8_MAX;
15220 uint_fast16_t f2 = UINT_FAST16_MAX;
15221 uint_fast32_t f3 = UINT_FAST32_MAX;
15222 uint_fast64_t f4 = UINT_FAST64_MAX;
15223 #ifdef INTPTR_MAX
15224 intptr_t g = INTPTR_MAX;
15225 intptr_t gmin = INTPTR_MIN;
15226 #endif
15227 #ifdef UINTPTR_MAX
15228 uintptr_t h = UINTPTR_MAX;
15229 #endif
15230 intmax_t i = INTMAX_MAX;
15231 uintmax_t j = UINTMAX_MAX;
15233 #include <limits.h> /* for CHAR_BIT */
15234 #define TYPE_MINIMUM(t) \
15235 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15236 #define TYPE_MAXIMUM(t) \
15237 ((t) ((t) 0 < (t) -1 \
15238 ? (t) -1 \
15239 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15240 struct s {
15241 int check_PTRDIFF:
15242 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15243 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15244 ? 1 : -1;
15245 /* Detect bug in FreeBSD 6.0 / ia64. */
15246 int check_SIG_ATOMIC:
15247 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15248 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15249 ? 1 : -1;
15250 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15251 int check_WCHAR:
15252 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15253 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15254 ? 1 : -1;
15255 /* Detect bug in mingw. */
15256 int check_WINT:
15257 WINT_MIN == TYPE_MINIMUM (wint_t)
15258 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15259 ? 1 : -1;
15261 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15262 int check_UINT8_C:
15263 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15264 int check_UINT16_C:
15265 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15267 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15268 #ifdef UINT8_MAX
15269 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15270 #endif
15271 #ifdef UINT16_MAX
15272 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15273 #endif
15274 #ifdef UINT32_MAX
15275 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15276 #endif
15277 #ifdef UINT64_MAX
15278 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15279 #endif
15280 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15281 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15282 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15283 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15284 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15285 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15286 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15287 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15288 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15289 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15290 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15294 main (void)
15298 return 0;
15300 _ACEOF
15301 if ac_fn_c_try_compile "$LINENO"; then :
15302 if test "$cross_compiling" = yes; then :
15303 gl_cv_header_working_stdint_h=yes
15305 else
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15310 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15311 #include <stdint.h>
15314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15315 included before <wchar.h>. */
15316 #include <stddef.h>
15317 #include <signal.h>
15318 #if HAVE_WCHAR_H
15319 # include <stdio.h>
15320 # include <time.h>
15321 # include <wchar.h>
15322 #endif
15325 #include <stdio.h>
15326 #include <string.h>
15327 #define MVAL(macro) MVAL1(macro)
15328 #define MVAL1(expression) #expression
15329 static const char *macro_values[] =
15331 #ifdef INT8_MAX
15332 MVAL (INT8_MAX),
15333 #endif
15334 #ifdef INT16_MAX
15335 MVAL (INT16_MAX),
15336 #endif
15337 #ifdef INT32_MAX
15338 MVAL (INT32_MAX),
15339 #endif
15340 #ifdef INT64_MAX
15341 MVAL (INT64_MAX),
15342 #endif
15343 #ifdef UINT8_MAX
15344 MVAL (UINT8_MAX),
15345 #endif
15346 #ifdef UINT16_MAX
15347 MVAL (UINT16_MAX),
15348 #endif
15349 #ifdef UINT32_MAX
15350 MVAL (UINT32_MAX),
15351 #endif
15352 #ifdef UINT64_MAX
15353 MVAL (UINT64_MAX),
15354 #endif
15355 NULL
15359 main (void)
15362 const char **mv;
15363 for (mv = macro_values; *mv != NULL; mv++)
15365 const char *value = *mv;
15366 /* Test whether it looks like a cast expression. */
15367 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15368 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15369 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15370 || strncmp (value, "((int)"/*)*/, 6) == 0
15371 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15372 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15373 return mv - macro_values + 1;
15375 return 0;
15378 return 0;
15380 _ACEOF
15381 if ac_fn_c_try_run "$LINENO"; then :
15382 gl_cv_header_working_stdint_h=yes
15384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15385 conftest.$ac_objext conftest.beam conftest.$ac_ext
15390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15394 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15396 if test "$gl_cv_header_working_stdint_h" = yes; then
15397 STDINT_H=
15398 else
15399 for ac_header in sys/inttypes.h sys/bitypes.h
15400 do :
15401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15406 _ACEOF
15410 done
15412 if test $ac_cv_header_sys_inttypes_h = yes; then
15413 HAVE_SYS_INTTYPES_H=1
15414 else
15415 HAVE_SYS_INTTYPES_H=0
15418 if test $ac_cv_header_sys_bitypes_h = yes; then
15419 HAVE_SYS_BITYPES_H=1
15420 else
15421 HAVE_SYS_BITYPES_H=0
15427 if test $APPLE_UNIVERSAL_BUILD = 0; then
15430 for gltype in ptrdiff_t size_t ; do
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15432 $as_echo_n "checking for bit size of $gltype... " >&6; }
15433 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15438 included before <wchar.h>. */
15439 #include <stddef.h>
15440 #include <signal.h>
15441 #if HAVE_WCHAR_H
15442 # include <stdio.h>
15443 # include <time.h>
15444 # include <wchar.h>
15445 #endif
15447 #include <limits.h>"; then :
15449 else
15450 result=unknown
15453 eval gl_cv_bitsizeof_${gltype}=\$result
15456 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458 $as_echo "$ac_res" >&6; }
15459 eval result=\$gl_cv_bitsizeof_${gltype}
15460 if test $result = unknown; then
15461 result=0
15463 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15464 cat >>confdefs.h <<_ACEOF
15465 #define BITSIZEOF_${GLTYPE} $result
15466 _ACEOF
15468 eval BITSIZEOF_${GLTYPE}=\$result
15469 done
15475 for gltype in sig_atomic_t wchar_t wint_t ; do
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15477 $as_echo_n "checking for bit size of $gltype... " >&6; }
15478 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
15479 $as_echo_n "(cached) " >&6
15480 else
15481 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15483 included before <wchar.h>. */
15484 #include <stddef.h>
15485 #include <signal.h>
15486 #if HAVE_WCHAR_H
15487 # include <stdio.h>
15488 # include <time.h>
15489 # include <wchar.h>
15490 #endif
15492 #include <limits.h>"; then :
15494 else
15495 result=unknown
15498 eval gl_cv_bitsizeof_${gltype}=\$result
15501 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15503 $as_echo "$ac_res" >&6; }
15504 eval result=\$gl_cv_bitsizeof_${gltype}
15505 if test $result = unknown; then
15506 result=0
15508 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15509 cat >>confdefs.h <<_ACEOF
15510 #define BITSIZEOF_${GLTYPE} $result
15511 _ACEOF
15513 eval BITSIZEOF_${GLTYPE}=\$result
15514 done
15519 for gltype in sig_atomic_t wchar_t wint_t ; do
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15521 $as_echo_n "checking whether $gltype is signed... " >&6; }
15522 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524 else
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15529 included before <wchar.h>. */
15530 #include <stddef.h>
15531 #include <signal.h>
15532 #if HAVE_WCHAR_H
15533 # include <stdio.h>
15534 # include <time.h>
15535 # include <wchar.h>
15536 #endif
15538 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15540 main (void)
15544 return 0;
15546 _ACEOF
15547 if ac_fn_c_try_compile "$LINENO"; then :
15548 result=yes
15549 else
15550 result=no
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 eval gl_cv_type_${gltype}_signed=\$result
15556 eval ac_res=\$gl_cv_type_${gltype}_signed
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15558 $as_echo "$ac_res" >&6; }
15559 eval result=\$gl_cv_type_${gltype}_signed
15560 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15561 if test "$result" = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_SIGNED_${GLTYPE} 1
15564 _ACEOF
15566 eval HAVE_SIGNED_${GLTYPE}=1
15567 else
15568 eval HAVE_SIGNED_${GLTYPE}=0
15570 done
15573 gl_cv_type_ptrdiff_t_signed=yes
15574 gl_cv_type_size_t_signed=no
15575 if test $APPLE_UNIVERSAL_BUILD = 0; then
15578 for gltype in ptrdiff_t size_t ; do
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15580 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15581 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 eval gl_cv_type_${gltype}_suffix=no
15585 eval result=\$gl_cv_type_${gltype}_signed
15586 if test "$result" = yes; then
15587 glsufu=
15588 else
15589 glsufu=u
15591 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15592 case $glsuf in
15593 '') gltype1='int';;
15594 l) gltype1='long int';;
15595 ll) gltype1='long long int';;
15596 i64) gltype1='__int64';;
15597 u) gltype1='unsigned int';;
15598 ul) gltype1='unsigned long int';;
15599 ull) gltype1='unsigned long long int';;
15600 ui64)gltype1='unsigned __int64';;
15601 esac
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15605 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15606 included before <wchar.h>. */
15607 #include <stddef.h>
15608 #include <signal.h>
15609 #if HAVE_WCHAR_H
15610 # include <stdio.h>
15611 # include <time.h>
15612 # include <wchar.h>
15613 #endif
15615 extern $gltype foo;
15616 extern $gltype1 foo;
15618 main (void)
15622 return 0;
15624 _ACEOF
15625 if ac_fn_c_try_compile "$LINENO"; then :
15626 eval gl_cv_type_${gltype}_suffix=\$glsuf
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 eval result=\$gl_cv_type_${gltype}_suffix
15630 test "$result" != no && break
15631 done
15633 eval ac_res=\$gl_cv_type_${gltype}_suffix
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15635 $as_echo "$ac_res" >&6; }
15636 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15637 eval result=\$gl_cv_type_${gltype}_suffix
15638 test "$result" = no && result=
15639 eval ${GLTYPE}_SUFFIX=\$result
15640 cat >>confdefs.h <<_ACEOF
15641 #define ${GLTYPE}_SUFFIX $result
15642 _ACEOF
15644 done
15650 for gltype in sig_atomic_t wchar_t wint_t ; do
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15652 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15653 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 eval gl_cv_type_${gltype}_suffix=no
15657 eval result=\$gl_cv_type_${gltype}_signed
15658 if test "$result" = yes; then
15659 glsufu=
15660 else
15661 glsufu=u
15663 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15664 case $glsuf in
15665 '') gltype1='int';;
15666 l) gltype1='long int';;
15667 ll) gltype1='long long int';;
15668 i64) gltype1='__int64';;
15669 u) gltype1='unsigned int';;
15670 ul) gltype1='unsigned long int';;
15671 ull) gltype1='unsigned long long int';;
15672 ui64)gltype1='unsigned __int64';;
15673 esac
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15677 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15678 included before <wchar.h>. */
15679 #include <stddef.h>
15680 #include <signal.h>
15681 #if HAVE_WCHAR_H
15682 # include <stdio.h>
15683 # include <time.h>
15684 # include <wchar.h>
15685 #endif
15687 extern $gltype foo;
15688 extern $gltype1 foo;
15690 main (void)
15694 return 0;
15696 _ACEOF
15697 if ac_fn_c_try_compile "$LINENO"; then :
15698 eval gl_cv_type_${gltype}_suffix=\$glsuf
15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 eval result=\$gl_cv_type_${gltype}_suffix
15702 test "$result" != no && break
15703 done
15705 eval ac_res=\$gl_cv_type_${gltype}_suffix
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15707 $as_echo "$ac_res" >&6; }
15708 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15709 eval result=\$gl_cv_type_${gltype}_suffix
15710 test "$result" = no && result=
15711 eval ${GLTYPE}_SUFFIX=\$result
15712 cat >>confdefs.h <<_ACEOF
15713 #define ${GLTYPE}_SUFFIX $result
15714 _ACEOF
15716 done
15720 if test $BITSIZEOF_WINT_T -lt 32; then
15721 BITSIZEOF_WINT_T=32
15724 STDINT_H=stdint.h
15727 if test -n "$STDINT_H"; then
15728 GL_GENERATE_STDINT_H_TRUE=
15729 GL_GENERATE_STDINT_H_FALSE='#'
15730 else
15731 GL_GENERATE_STDINT_H_TRUE='#'
15732 GL_GENERATE_STDINT_H_FALSE=
15737 GNULIB_FFS=0;
15738 HAVE_FFS=1;
15739 HAVE_STRCASECMP=1;
15740 HAVE_DECL_STRNCASECMP=1;
15743 REPLACE_STRERROR_0=0
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15745 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15746 if ${gl_cv_func_strerror_0_works+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 if test "$cross_compiling" = yes; then :
15750 case "$host_os" in
15751 # Guess yes on glibc systems.
15752 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15753 # If we don't know, assume the worst.
15754 *) gl_cv_func_strerror_0_works="guessing no" ;;
15755 esac
15757 else
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 #include <string.h>
15761 #include <errno.h>
15764 main (void)
15766 int result = 0;
15767 char *str;
15768 errno = 0;
15769 str = strerror (0);
15770 if (!*str) result |= 1;
15771 if (errno) result |= 2;
15772 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15773 result |= 4;
15774 return result;
15776 return 0;
15778 _ACEOF
15779 if ac_fn_c_try_run "$LINENO"; then :
15780 gl_cv_func_strerror_0_works=yes
15781 else
15782 gl_cv_func_strerror_0_works=no
15784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15785 conftest.$ac_objext conftest.beam conftest.$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15791 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15792 case "$gl_cv_func_strerror_0_works" in
15793 *yes) ;;
15795 REPLACE_STRERROR_0=1
15797 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15800 esac
15815 if test $gl_cv_have_include_next = yes; then
15816 gl_cv_next_string_h='<'string.h'>'
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15819 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15820 if ${gl_cv_next_string_h+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 #include <string.h>
15828 _ACEOF
15829 case "$host_os" in
15830 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15831 *) gl_absname_cpp="$ac_cpp" ;;
15832 esac
15834 case "$host_os" in
15835 mingw*)
15836 gl_dirsep_regex='[/\\]'
15839 gl_dirsep_regex='\/'
15841 esac
15842 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15844 gl_header_literal_regex=`echo 'string.h' \
15845 | sed -e "$gl_make_literal_regex_sed"`
15846 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15847 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15848 s|^/[^/]|//&|
15852 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15853 sed -n "$gl_absolute_header_sed"`'"'
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15858 $as_echo "$gl_cv_next_string_h" >&6; }
15860 NEXT_STRING_H=$gl_cv_next_string_h
15862 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15864 gl_next_as_first_directive='<'string.h'>'
15865 else
15866 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15867 gl_next_as_first_directive=$gl_cv_next_string_h
15869 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15876 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
15877 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15879 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15880 if eval \${$as_gl_Symbol+:} false; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 #include <string.h>
15888 main (void)
15890 #undef $gl_func
15891 (void) $gl_func;
15893 return 0;
15895 _ACEOF
15896 if ac_fn_c_try_compile "$LINENO"; then :
15897 eval "$as_gl_Symbol=yes"
15898 else
15899 eval "$as_gl_Symbol=no"
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 eval ac_res=\$$as_gl_Symbol
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15905 $as_echo "$ac_res" >&6; }
15906 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15907 cat >>confdefs.h <<_ACEOF
15908 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15909 _ACEOF
15911 eval ac_cv_have_decl_$gl_func=yes
15913 done
15930 if test $gl_cv_have_include_next = yes; then
15931 gl_cv_next_strings_h='<'strings.h'>'
15932 else
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15934 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
15935 if ${gl_cv_next_strings_h+:} false; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15939 if test $ac_cv_header_strings_h = yes; then
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 #include <strings.h>
15946 _ACEOF
15947 case "$host_os" in
15948 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15949 *) gl_absname_cpp="$ac_cpp" ;;
15950 esac
15952 case "$host_os" in
15953 mingw*)
15954 gl_dirsep_regex='[/\\]'
15957 gl_dirsep_regex='\/'
15959 esac
15960 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15962 gl_header_literal_regex=`echo 'strings.h' \
15963 | sed -e "$gl_make_literal_regex_sed"`
15964 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15966 s|^/[^/]|//&|
15970 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15971 sed -n "$gl_absolute_header_sed"`'"'
15972 else
15973 gl_cv_next_strings_h='<'strings.h'>'
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15979 $as_echo "$gl_cv_next_strings_h" >&6; }
15981 NEXT_STRINGS_H=$gl_cv_next_strings_h
15983 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15985 gl_next_as_first_directive='<'strings.h'>'
15986 else
15987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15988 gl_next_as_first_directive=$gl_cv_next_strings_h
15990 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
15995 if test $ac_cv_header_strings_h = yes; then
15996 HAVE_STRINGS_H=1
15997 else
15998 HAVE_STRINGS_H=0
16003 for gl_func in ffs strcasecmp strncasecmp; do
16004 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16006 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16007 if eval \${$as_gl_Symbol+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16013 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
16014 <strings.h>. */
16015 #include <sys/types.h>
16016 #include <strings.h>
16019 main (void)
16021 #undef $gl_func
16022 (void) $gl_func;
16024 return 0;
16026 _ACEOF
16027 if ac_fn_c_try_compile "$LINENO"; then :
16028 eval "$as_gl_Symbol=yes"
16029 else
16030 eval "$as_gl_Symbol=no"
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 eval ac_res=\$$as_gl_Symbol
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16036 $as_echo "$ac_res" >&6; }
16037 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16038 cat >>confdefs.h <<_ACEOF
16039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16040 _ACEOF
16042 eval ac_cv_have_decl_$gl_func=yes
16044 done
16047 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
16048 if test "x$ac_cv_have_decl_strndup" = xyes; then :
16049 ac_have_decl=1
16050 else
16051 ac_have_decl=0
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_DECL_STRNDUP $ac_have_decl
16056 _ACEOF
16060 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16061 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16062 ac_have_decl=1
16063 else
16064 ac_have_decl=0
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_DECL_STRNLEN $ac_have_decl
16069 _ACEOF
16073 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16074 if test "x$ac_cv_type_pid_t" = xyes; then :
16076 else
16078 cat >>confdefs.h <<_ACEOF
16079 #define pid_t int
16080 _ACEOF
16084 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16085 if test "x$ac_cv_type_mode_t" = xyes; then :
16087 else
16089 cat >>confdefs.h <<_ACEOF
16090 #define mode_t int
16091 _ACEOF
16097 WINDOWS_64_BIT_OFF_T=0
16111 if test $gl_cv_have_include_next = yes; then
16112 gl_cv_next_sys_types_h='<'sys/types.h'>'
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16115 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16116 if ${gl_cv_next_sys_types_h+:} false; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <sys/types.h>
16124 _ACEOF
16125 case "$host_os" in
16126 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16127 *) gl_absname_cpp="$ac_cpp" ;;
16128 esac
16130 case "$host_os" in
16131 mingw*)
16132 gl_dirsep_regex='[/\\]'
16135 gl_dirsep_regex='\/'
16137 esac
16138 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16140 gl_header_literal_regex=`echo 'sys/types.h' \
16141 | sed -e "$gl_make_literal_regex_sed"`
16142 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16144 s|^/[^/]|//&|
16148 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16149 sed -n "$gl_absolute_header_sed"`'"'
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16154 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16156 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16158 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16160 gl_next_as_first_directive='<'sys/types.h'>'
16161 else
16162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16163 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16165 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16185 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
16190 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
16195 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;}
16202 if test "$HAVE_LIBUNISTRING" = yes; then
16203 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
16204 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
16205 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16212 $as_echo_n "checking for wint_t... " >&6; }
16213 if ${gt_cv_c_wint_t+:} false; then :
16214 $as_echo_n "(cached) " >&6
16215 else
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16219 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16220 <wchar.h>.
16221 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16222 before <wchar.h>. */
16223 #include <stddef.h>
16224 #include <stdio.h>
16225 #include <time.h>
16226 #include <wchar.h>
16227 wint_t foo = (wchar_t)'\0';
16229 main (void)
16233 return 0;
16235 _ACEOF
16236 if ac_fn_c_try_compile "$LINENO"; then :
16237 gt_cv_c_wint_t=yes
16238 else
16239 gt_cv_c_wint_t=no
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16244 $as_echo "$gt_cv_c_wint_t" >&6; }
16245 if test $gt_cv_c_wint_t = yes; then
16247 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16253 if test $ac_cv_header_features_h = yes; then
16254 HAVE_FEATURES_H=1
16255 else
16256 HAVE_FEATURES_H=0
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16262 $as_echo_n "checking for inttypes.h... " >&6; }
16263 if ${gl_cv_header_inttypes_h+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 #include <sys/types.h>
16270 #include <inttypes.h>
16273 main (void)
16275 uintmax_t i = (uintmax_t) -1; return !i;
16277 return 0;
16279 _ACEOF
16280 if ac_fn_c_try_compile "$LINENO"; then :
16281 gl_cv_header_inttypes_h=yes
16282 else
16283 gl_cv_header_inttypes_h=no
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16288 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16289 if test $gl_cv_header_inttypes_h = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16293 _ACEOF
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16299 $as_echo_n "checking for stdint.h... " >&6; }
16300 if ${gl_cv_header_stdint_h+:} false; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 #include <sys/types.h>
16306 #include <stdint.h>
16308 main (void)
16310 uintmax_t i = (uintmax_t) -1; return !i;
16312 return 0;
16314 _ACEOF
16315 if ac_fn_c_try_compile "$LINENO"; then :
16316 gl_cv_header_stdint_h=yes
16317 else
16318 gl_cv_header_stdint_h=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16323 $as_echo "$gl_cv_header_stdint_h" >&6; }
16324 if test $gl_cv_header_stdint_h = yes; then
16326 cat >>confdefs.h <<_ACEOF
16327 #define HAVE_STDINT_H_WITH_UINTMAX 1
16328 _ACEOF
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16336 $as_echo_n "checking for intmax_t... " >&6; }
16337 if ${gt_cv_c_intmax_t+:} false; then :
16338 $as_echo_n "(cached) " >&6
16339 else
16340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h. */
16343 #include <stddef.h>
16344 #include <stdlib.h>
16345 #if HAVE_STDINT_H_WITH_UINTMAX
16346 #include <stdint.h>
16347 #endif
16348 #if HAVE_INTTYPES_H_WITH_UINTMAX
16349 #include <inttypes.h>
16350 #endif
16353 main (void)
16355 intmax_t x = -1; return !x;
16357 return 0;
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"; then :
16361 gt_cv_c_intmax_t=yes
16362 else
16363 gt_cv_c_intmax_t=no
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16368 $as_echo "$gt_cv_c_intmax_t" >&6; }
16369 if test $gt_cv_c_intmax_t = yes; then
16371 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16373 else
16375 test $ac_cv_type_long_long_int = yes \
16376 && ac_type='long long' \
16377 || ac_type='long'
16379 cat >>confdefs.h <<_ACEOF
16380 #define intmax_t $ac_type
16381 _ACEOF
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16387 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16388 if ${gl_cv_cc_double_expbit0+:} false; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16392 if test "$cross_compiling" = yes; then :
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16397 #if defined arm || defined __arm || defined __arm__
16398 mixed_endianness
16399 #endif
16401 _ACEOF
16402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16403 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
16404 gl_cv_cc_double_expbit0="unknown"
16405 else
16408 if ${ac_cv_c_bigendian+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 ac_cv_c_bigendian=unknown
16412 # See if we're dealing with a universal compiler.
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 #ifndef __APPLE_CC__
16416 not a universal capable compiler
16417 #endif
16418 typedef int dummy;
16420 _ACEOF
16421 if ac_fn_c_try_compile "$LINENO"; then :
16423 # Check for potential -arch flags. It is not universal unless
16424 # there are at least two -arch flags with different values.
16425 ac_arch=
16426 ac_prev=
16427 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16428 if test -n "$ac_prev"; then
16429 case $ac_word in
16430 i?86 | x86_64 | ppc | ppc64)
16431 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16432 ac_arch=$ac_word
16433 else
16434 ac_cv_c_bigendian=universal
16435 break
16438 esac
16439 ac_prev=
16440 elif test "x$ac_word" = "x-arch"; then
16441 ac_prev=arch
16443 done
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 if test $ac_cv_c_bigendian = unknown; then
16447 # See if sys/param.h defines the BYTE_ORDER macro.
16448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h. */
16450 #include <sys/types.h>
16451 #include <sys/param.h>
16454 main (void)
16456 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16457 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16458 && LITTLE_ENDIAN)
16459 bogus endian macros
16460 #endif
16463 return 0;
16465 _ACEOF
16466 if ac_fn_c_try_compile "$LINENO"; then :
16467 # It does; now see whether it defined to BIG_ENDIAN or not.
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <sys/types.h>
16471 #include <sys/param.h>
16474 main (void)
16476 #if BYTE_ORDER != BIG_ENDIAN
16477 not big endian
16478 #endif
16481 return 0;
16483 _ACEOF
16484 if ac_fn_c_try_compile "$LINENO"; then :
16485 ac_cv_c_bigendian=yes
16486 else
16487 ac_cv_c_bigendian=no
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 if test $ac_cv_c_bigendian = unknown; then
16494 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497 #include <limits.h>
16500 main (void)
16502 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16503 bogus endian macros
16504 #endif
16507 return 0;
16509 _ACEOF
16510 if ac_fn_c_try_compile "$LINENO"; then :
16511 # It does; now see whether it defined to _BIG_ENDIAN or not.
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 #include <limits.h>
16517 main (void)
16519 #ifndef _BIG_ENDIAN
16520 not big endian
16521 #endif
16524 return 0;
16526 _ACEOF
16527 if ac_fn_c_try_compile "$LINENO"; then :
16528 ac_cv_c_bigendian=yes
16529 else
16530 ac_cv_c_bigendian=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536 if test $ac_cv_c_bigendian = unknown; then
16537 # Compile a test program.
16538 if test "$cross_compiling" = yes; then :
16539 # Try to guess by grepping values from an object file.
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 short int ascii_mm[] =
16543 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16544 short int ascii_ii[] =
16545 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16546 int use_ascii (int i) {
16547 return ascii_mm[i] + ascii_ii[i];
16549 short int ebcdic_ii[] =
16550 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16551 short int ebcdic_mm[] =
16552 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16553 int use_ebcdic (int i) {
16554 return ebcdic_mm[i] + ebcdic_ii[i];
16556 extern int foo;
16559 main (void)
16561 return use_ascii (foo) == use_ebcdic (foo);
16563 return 0;
16565 _ACEOF
16566 if ac_fn_c_try_compile "$LINENO"; then :
16567 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16568 ac_cv_c_bigendian=yes
16570 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16571 if test "$ac_cv_c_bigendian" = unknown; then
16572 ac_cv_c_bigendian=no
16573 else
16574 # finding both strings is unlikely to happen, but who knows?
16575 ac_cv_c_bigendian=unknown
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 else
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16583 $ac_includes_default
16585 main (void)
16588 /* Are we little or big endian? From Harbison&Steele. */
16589 union
16591 long int l;
16592 char c[sizeof (long int)];
16593 } u;
16594 u.l = 1;
16595 return u.c[sizeof (long int) - 1] == 1;
16598 return 0;
16600 _ACEOF
16601 if ac_fn_c_try_run "$LINENO"; then :
16602 ac_cv_c_bigendian=no
16603 else
16604 ac_cv_c_bigendian=yes
16606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16607 conftest.$ac_objext conftest.beam conftest.$ac_ext
16613 case $ac_cv_c_bigendian in #(
16614 yes)
16615 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
16617 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
16618 universal)
16620 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16622 ;; #(
16624 gl_cv_cc_double_expbit0="unknown" ;;
16625 esac
16629 rm -f conftest*
16632 else
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16636 #include <float.h>
16637 #include <stddef.h>
16638 #include <stdio.h>
16639 #include <string.h>
16640 #define NWORDS \
16641 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16642 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16643 static unsigned int ored_words[NWORDS];
16644 static unsigned int anded_words[NWORDS];
16645 static void add_to_ored_words (double x)
16647 memory_double m;
16648 size_t i;
16649 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16650 memset (&m, 0, sizeof (memory_double));
16651 m.value = x;
16652 for (i = 0; i < NWORDS; i++)
16654 ored_words[i] |= m.word[i];
16655 anded_words[i] &= m.word[i];
16658 int main ()
16660 size_t j;
16661 FILE *fp = fopen ("conftest.out", "w");
16662 if (fp == NULL)
16663 return 1;
16664 for (j = 0; j < NWORDS; j++)
16665 anded_words[j] = ~ (unsigned int) 0;
16666 add_to_ored_words (0.25);
16667 add_to_ored_words (0.5);
16668 add_to_ored_words (1.0);
16669 add_to_ored_words (2.0);
16670 add_to_ored_words (4.0);
16671 /* Remove bits that are common (e.g. if representation of the first mantissa
16672 bit is explicit). */
16673 for (j = 0; j < NWORDS; j++)
16674 ored_words[j] &= ~anded_words[j];
16675 /* Now find the nonzero word. */
16676 for (j = 0; j < NWORDS; j++)
16677 if (ored_words[j] != 0)
16678 break;
16679 if (j < NWORDS)
16681 size_t i;
16682 for (i = j + 1; i < NWORDS; i++)
16683 if (ored_words[i] != 0)
16685 fprintf (fp, "unknown");
16686 return (fclose (fp) != 0);
16688 for (i = 0; ; i++)
16689 if ((ored_words[j] >> i) & 1)
16691 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16692 return (fclose (fp) != 0);
16695 fprintf (fp, "unknown");
16696 return (fclose (fp) != 0);
16699 _ACEOF
16700 if ac_fn_c_try_run "$LINENO"; then :
16701 gl_cv_cc_double_expbit0=`cat conftest.out`
16702 else
16703 gl_cv_cc_double_expbit0="unknown"
16705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16706 conftest.$ac_objext conftest.beam conftest.$ac_ext
16709 rm -f conftest.out
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16713 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
16714 case "$gl_cv_cc_double_expbit0" in
16715 word*bit*)
16716 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16717 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16719 cat >>confdefs.h <<_ACEOF
16720 #define DBL_EXPBIT0_WORD $word
16721 _ACEOF
16724 cat >>confdefs.h <<_ACEOF
16725 #define DBL_EXPBIT0_BIT $bit
16726 _ACEOF
16729 esac
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
16740 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
16741 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
16742 $as_echo_n "(cached) " >&6
16743 else
16745 if test "$cross_compiling" = yes; then :
16747 case "$host_os" in
16748 # Guess yes on glibc systems.
16749 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16750 # Guess yes on FreeBSD >= 5.
16751 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
16752 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16753 # Guess yes on Mac OS X >= 10.3.
16754 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
16755 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16756 # Guess yes on OpenBSD >= 3.9.
16757 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
16758 gl_cv_func_snprintf_retval_c99="guessing no";;
16759 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16760 # Guess yes on Solaris >= 2.10.
16761 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
16762 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
16763 # Guess yes on AIX >= 4.
16764 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
16765 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16766 # Guess yes on NetBSD >= 3.
16767 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
16768 gl_cv_func_snprintf_retval_c99="guessing no";;
16769 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16770 # Guess yes on BeOS.
16771 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16772 # If we don't know, assume the worst.
16773 *) gl_cv_func_snprintf_retval_c99="guessing no";;
16774 esac
16776 else
16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16780 #include <stdio.h>
16781 #include <string.h>
16782 #if HAVE_SNPRINTF
16783 # define my_snprintf snprintf
16784 #else
16785 # include <stdarg.h>
16786 static int my_snprintf (char *buf, int size, const char *format, ...)
16788 va_list args;
16789 int ret;
16790 va_start (args, format);
16791 ret = vsnprintf (buf, size, format, args);
16792 va_end (args);
16793 return ret;
16795 #endif
16796 static char buf[100];
16797 int main ()
16799 strcpy (buf, "ABCDEF");
16800 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
16801 return 1;
16802 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16803 return 2;
16804 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16805 return 3;
16806 return 0;
16808 _ACEOF
16809 if ac_fn_c_try_run "$LINENO"; then :
16810 gl_cv_func_snprintf_retval_c99=yes
16811 else
16812 gl_cv_func_snprintf_retval_c99=no
16814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16815 conftest.$ac_objext conftest.beam conftest.$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16821 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
16828 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16829 do :
16830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16833 cat >>confdefs.h <<_ACEOF
16834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835 _ACEOF
16838 done
16840 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16842 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
16843 ac_have_decl=1
16844 else
16845 ac_have_decl=0
16848 cat >>confdefs.h <<_ACEOF
16849 #define HAVE_DECL__SNPRINTF $ac_have_decl
16850 _ACEOF
16854 case "$gl_cv_func_snprintf_retval_c99" in
16855 *yes)
16857 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16860 esac
16862 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16863 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16864 ac_have_decl=1
16865 else
16866 ac_have_decl=0
16869 cat >>confdefs.h <<_ACEOF
16870 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16871 _ACEOF
16876 GNULIB_ISWBLANK=0;
16877 GNULIB_WCTYPE=0;
16878 GNULIB_ISWCTYPE=0;
16879 GNULIB_WCTRANS=0;
16880 GNULIB_TOWCTRANS=0;
16881 HAVE_ISWBLANK=1;
16882 HAVE_WCTYPE_T=1;
16883 HAVE_WCTRANS_T=1;
16884 REPLACE_ISWBLANK=0;
16891 if false; then
16892 GL_COND_LIBTOOL_TRUE=
16893 GL_COND_LIBTOOL_FALSE='#'
16894 else
16895 GL_COND_LIBTOOL_TRUE='#'
16896 GL_COND_LIBTOOL_FALSE=
16899 gl_cond_libtool=false
16900 gl_libdeps=
16901 gl_ltlibdeps=
16902 gl_m4_base='m4'
16912 gl_source_base='grub-core/gnulib'
16915 if test $ac_cv_func_alloca_works = no; then
16919 # Define an additional variable used in the Makefile substitution.
16920 if test $ac_cv_working_alloca_h = yes; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16922 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16923 if ${gl_cv_rpl_alloca+:} false; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16930 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16931 Need own alloca
16932 #endif
16934 _ACEOF
16935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16936 $EGREP "Need own alloca" >/dev/null 2>&1; then :
16937 gl_cv_rpl_alloca=yes
16938 else
16939 gl_cv_rpl_alloca=no
16941 rm -f conftest*
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16946 $as_echo "$gl_cv_rpl_alloca" >&6; }
16947 if test $gl_cv_rpl_alloca = yes; then
16949 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16951 ALLOCA_H=alloca.h
16952 else
16953 ALLOCA_H=
16955 else
16956 ALLOCA_H=alloca.h
16959 if test -n "$ALLOCA_H"; then
16960 GL_GENERATE_ALLOCA_H_TRUE=
16961 GL_GENERATE_ALLOCA_H_FALSE='#'
16962 else
16963 GL_GENERATE_ALLOCA_H_TRUE='#'
16964 GL_GENERATE_ALLOCA_H_FALSE=
16973 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16975 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
16976 ac_have_decl=1
16977 else
16978 ac_have_decl=0
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16983 _ACEOF
16984 if test $ac_have_decl = 1; then :
16986 else
16988 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16992 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16994 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
16995 ac_have_decl=1
16996 else
16997 ac_have_decl=0
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17002 _ACEOF
17003 if test $ac_have_decl = 1; then :
17005 else
17007 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17012 # Check if program_invocation_name and program_invocation_short_name
17013 # are defined elsewhere. It is improbable that only one of them will
17014 # be defined and other not, I prefer to stay on the safe side and to
17015 # test each one separately.
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17017 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 #include <argp.h>
17022 main (void)
17024 program_invocation_name = "test";
17026 return 0;
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17031 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17034 $as_echo "yes" >&6; }
17035 else
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17037 $as_echo "no" >&6; }
17039 rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17043 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17046 #include <argp.h>
17048 main (void)
17050 program_invocation_short_name = "test";
17052 return 0;
17054 _ACEOF
17055 if ac_fn_c_try_link "$LINENO"; then :
17057 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17060 $as_echo "yes" >&6; }
17061 else
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17086 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17090 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17098 if test $ac_cv_func_btowc = no; then
17099 HAVE_BTOWC=0
17100 else
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17106 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17107 if ${gl_cv_func_btowc_nul+:} false; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17111 if test "$cross_compiling" = yes; then :
17113 case "$host_os" in
17114 # Guess no on Cygwin.
17115 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
17116 # Guess yes otherwise.
17117 *) gl_cv_func_btowc_nul="guessing yes" ;;
17118 esac
17120 else
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17124 #include <string.h>
17125 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17126 <wchar.h>.
17127 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17128 included before <wchar.h>. */
17129 #include <stddef.h>
17130 #include <stdio.h>
17131 #include <time.h>
17132 #include <wchar.h>
17133 int main ()
17135 if (btowc ('\0') != 0)
17136 return 1;
17137 return 0;
17139 _ACEOF
17140 if ac_fn_c_try_run "$LINENO"; then :
17141 gl_cv_func_btowc_nul=yes
17142 else
17143 gl_cv_func_btowc_nul=no
17145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17146 conftest.$ac_objext conftest.beam conftest.$ac_ext
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17152 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17155 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17156 if ${gl_cv_func_btowc_eof+:} false; then :
17157 $as_echo_n "(cached) " >&6
17158 else
17160 case "$host_os" in
17161 # Guess no on IRIX.
17162 irix*) gl_cv_func_btowc_eof="guessing no" ;;
17163 # Guess yes otherwise.
17164 *) gl_cv_func_btowc_eof="guessing yes" ;;
17165 esac
17166 if test $LOCALE_FR != none; then
17167 if test "$cross_compiling" = yes; then :
17169 else
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 #include <locale.h>
17174 #include <string.h>
17175 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17176 <wchar.h>.
17177 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17178 included before <wchar.h>. */
17179 #include <stddef.h>
17180 #include <stdio.h>
17181 #include <time.h>
17182 #include <wchar.h>
17183 int main ()
17185 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17187 if (btowc (EOF) != WEOF)
17188 return 1;
17190 return 0;
17192 _ACEOF
17193 if ac_fn_c_try_run "$LINENO"; then :
17194 gl_cv_func_btowc_eof=yes
17195 else
17196 gl_cv_func_btowc_eof=no
17198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17199 conftest.$ac_objext conftest.beam conftest.$ac_ext
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17206 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17208 case "$gl_cv_func_btowc_nul" in
17209 *yes) ;;
17210 *) REPLACE_BTOWC=1 ;;
17211 esac
17212 case "$gl_cv_func_btowc_eof" in
17213 *yes) ;;
17214 *) REPLACE_BTOWC=1 ;;
17215 esac
17218 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
17227 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
17238 GNULIB_BTOWC=1
17244 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17249 if test "x$datarootdir" = x; then
17250 datarootdir='${datadir}'
17253 if test "x$docdir" = x; then
17254 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
17257 if test "x$htmldir" = x; then
17258 htmldir='${docdir}'
17261 if test "x$dvidir" = x; then
17262 dvidir='${docdir}'
17265 if test "x$pdfdir" = x; then
17266 pdfdir='${docdir}'
17269 if test "x$psdir" = x; then
17270 psdir='${docdir}'
17273 if test "x$lispdir" = x; then
17274 lispdir='${datarootdir}/emacs/site-lisp'
17277 if test "x$localedir" = x; then
17278 localedir='${datarootdir}/locale'
17282 pkglibexecdir='${libexecdir}/${PACKAGE}'
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17292 $as_echo_n "checking whether // is distinct from /... " >&6; }
17293 if ${gl_cv_double_slash_root+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295 else
17296 if test x"$cross_compiling" = xyes ; then
17297 # When cross-compiling, there is no way to tell whether // is special
17298 # short of a list of hosts. However, the only known hosts to date
17299 # that have a distinct // are Apollo DomainOS (too old to port to),
17300 # Cygwin, and z/OS. If anyone knows of another system for which // has
17301 # special semantics and is distinct from /, please report it to
17302 # <bug-gnulib@gnu.org>.
17303 case $host in
17304 *-cygwin | i370-ibm-openedition)
17305 gl_cv_double_slash_root=yes ;;
17307 # Be optimistic and assume that / and // are the same when we
17308 # don't know.
17309 gl_cv_double_slash_root='unknown, assuming no' ;;
17310 esac
17311 else
17312 set x `ls -di / // 2>/dev/null`
17313 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
17314 gl_cv_double_slash_root=no
17315 else
17316 gl_cv_double_slash_root=yes
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17321 $as_echo "$gl_cv_double_slash_root" >&6; }
17322 if test "$gl_cv_double_slash_root" = yes; then
17324 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17331 $as_echo_n "checking for error_at_line... " >&6; }
17332 if ${ac_cv_lib_error_at_line+:} false; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 #include <error.h>
17339 main (void)
17341 error_at_line (0, 0, "", 0, "an error occurred");
17343 return 0;
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347 ac_cv_lib_error_at_line=yes
17348 else
17349 ac_cv_lib_error_at_line=no
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17355 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17357 if test $ac_cv_lib_error_at_line = no; then
17366 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
17375 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17379 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17385 FLOAT_H=
17386 REPLACE_FLOAT_LDBL=0
17387 case "$host_os" in
17388 aix* | beos* | openbsd* | mirbsd* | irix*)
17389 FLOAT_H=float.h
17391 freebsd*)
17392 case "$host_cpu" in
17393 i[34567]86 )
17394 FLOAT_H=float.h
17396 x86_64 )
17397 # On x86_64 systems, the C compiler may still be generating
17398 # 32-bit code.
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
17403 #endif
17404 _ACEOF
17405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17406 $EGREP "yes" >/dev/null 2>&1; then :
17408 else
17409 FLOAT_H=float.h
17411 rm -f conftest*
17414 esac
17416 linux*)
17417 case "$host_cpu" in
17418 powerpc*)
17419 FLOAT_H=float.h
17421 esac
17423 esac
17424 case "$host_os" in
17425 aix* | freebsd* | linux*)
17426 if test -n "$FLOAT_H"; then
17427 REPLACE_FLOAT_LDBL=1
17430 esac
17432 REPLACE_ITOLD=0
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17434 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17435 if ${gl_cv_func_itold_works+:} false; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17439 if test "$cross_compiling" = yes; then :
17440 case "$host" in
17441 sparc*-*-linux*)
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444 #if defined __LP64__ || defined __arch64__
17446 #endif
17447 _ACEOF
17448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17449 $EGREP "yes" >/dev/null 2>&1; then :
17450 gl_cv_func_itold_works="guessing no"
17451 else
17452 gl_cv_func_itold_works="guessing yes"
17454 rm -f conftest*
17457 *) gl_cv_func_itold_works="guessing yes" ;;
17458 esac
17460 else
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 int i = -1;
17465 volatile long double ld;
17466 int main ()
17468 ld += i * 1.0L;
17469 if (ld > 0)
17470 return 1;
17471 return 0;
17473 _ACEOF
17474 if ac_fn_c_try_run "$LINENO"; then :
17475 gl_cv_func_itold_works=yes
17476 else
17477 gl_cv_func_itold_works=no
17479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17480 conftest.$ac_objext conftest.beam conftest.$ac_ext
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17486 $as_echo "$gl_cv_func_itold_works" >&6; }
17487 case "$gl_cv_func_itold_works" in
17488 *no)
17489 REPLACE_ITOLD=1
17490 FLOAT_H=float.h
17492 esac
17494 if test -n "$FLOAT_H"; then
17503 if test $gl_cv_have_include_next = yes; then
17504 gl_cv_next_float_h='<'float.h'>'
17505 else
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17507 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17508 if ${gl_cv_next_float_h+:} false; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514 #include <float.h>
17516 _ACEOF
17517 case "$host_os" in
17518 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17519 *) gl_absname_cpp="$ac_cpp" ;;
17520 esac
17522 case "$host_os" in
17523 mingw*)
17524 gl_dirsep_regex='[/\\]'
17527 gl_dirsep_regex='\/'
17529 esac
17530 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17532 gl_header_literal_regex=`echo 'float.h' \
17533 | sed -e "$gl_make_literal_regex_sed"`
17534 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17535 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17536 s|^/[^/]|//&|
17540 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17541 sed -n "$gl_absolute_header_sed"`'"'
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17546 $as_echo "$gl_cv_next_float_h" >&6; }
17548 NEXT_FLOAT_H=$gl_cv_next_float_h
17550 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17552 gl_next_as_first_directive='<'float.h'>'
17553 else
17554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17555 gl_next_as_first_directive=$gl_cv_next_float_h
17557 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
17564 if test -n "$FLOAT_H"; then
17565 GL_GENERATE_FLOAT_H_TRUE=
17566 GL_GENERATE_FLOAT_H_FALSE='#'
17567 else
17568 GL_GENERATE_FLOAT_H_TRUE='#'
17569 GL_GENERATE_FLOAT_H_FALSE=
17574 if test $REPLACE_FLOAT_LDBL = 1; then
17583 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
17586 if test $REPLACE_ITOLD = 1; then
17595 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
17603 FNMATCH_H=
17604 gl_fnmatch_required_lowercase=`
17605 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17607 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17609 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17610 if eval \${$gl_fnmatch_cache_var+:} false; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 if test $gl_fnmatch_required = GNU; then
17614 gl_fnmatch_gnu_start=
17615 gl_fnmatch_gnu_end=
17616 else
17617 gl_fnmatch_gnu_start='#if 0'
17618 gl_fnmatch_gnu_end='#endif'
17620 if test "$cross_compiling" = yes; then :
17621 eval "$gl_fnmatch_cache_var=\"guessing no\""
17622 else
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 #include <fnmatch.h>
17626 static int
17627 y (char const *pattern, char const *string, int flags)
17629 return fnmatch (pattern, string, flags) == 0;
17631 static int
17632 n (char const *pattern, char const *string, int flags)
17634 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17638 main (void)
17640 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17641 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17642 static char const A_1[] = { 'A' - 1, 0 };
17643 static char const A01[] = { 'A' + 1, 0 };
17644 static char const a_1[] = { 'a' - 1, 0 };
17645 static char const a01[] = { 'a' + 1, 0 };
17646 static char const bs_1[] = { '\\\\' - 1, 0 };
17647 static char const bs01[] = { '\\\\' + 1, 0 };
17648 int result = 0;
17649 if (!n ("a*", "", 0))
17650 return 1;
17651 if (!y ("a*", "abc", 0))
17652 return 1;
17653 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17654 return 1;
17655 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17656 return 2;
17657 if (!y ("a\\\\bc", "abc", 0))
17658 return 3;
17659 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17660 return 3;
17661 if (!y ("*x", ".x", 0))
17662 return 4;
17663 if (!n ("*x", ".x", FNM_PERIOD))
17664 return 4;
17665 if (!y (Apat, "\\\\", 0))
17666 return 5;
17667 if (!y (Apat, "A", 0))
17668 return 5;
17669 if (!y (apat, "\\\\", 0))
17670 return 5;
17671 if (!y (apat, "a", 0))
17672 return 5;
17673 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17674 return 5;
17675 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17676 return 5;
17677 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17678 return 5;
17679 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17680 return 5;
17681 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17682 return 5;
17683 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17684 return 5;
17685 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17686 return 5;
17687 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17688 return 5;
17689 $gl_fnmatch_gnu_start
17690 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17691 result |= 8;
17692 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17693 result |= 16;
17694 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17695 result |= 32;
17696 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17697 result |= 64;
17698 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17699 result |= 64;
17700 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17701 result |= 64;
17702 $gl_fnmatch_gnu_end
17703 return result;
17706 return 0;
17708 _ACEOF
17709 if ac_fn_c_try_run "$LINENO"; then :
17710 eval "$gl_fnmatch_cache_var=yes"
17711 else
17712 eval "$gl_fnmatch_cache_var=no"
17714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17715 conftest.$ac_objext conftest.beam conftest.$ac_ext
17720 eval ac_res=\$$gl_fnmatch_cache_var
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17722 $as_echo "$ac_res" >&6; }
17723 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17724 if test "$gl_fnmatch_result" = yes; then
17725 rm -f "$gl_source_base/fnmatch.h"
17726 else
17727 FNMATCH_H=fnmatch.h
17730 if test -n "$FNMATCH_H"; then
17731 GL_GENERATE_FNMATCH_H_TRUE=
17732 GL_GENERATE_FNMATCH_H_FALSE='#'
17733 else
17734 GL_GENERATE_FNMATCH_H_TRUE='#'
17735 GL_GENERATE_FNMATCH_H_FALSE=
17739 if test -n "$FNMATCH_H"; then
17748 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
17752 cat >>confdefs.h <<_ACEOF
17753 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17754 _ACEOF
17757 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17759 if test "x$ac_cv_have_decl_isblank" = xyes; then :
17760 ac_have_decl=1
17761 else
17762 ac_have_decl=0
17765 cat >>confdefs.h <<_ACEOF
17766 #define HAVE_DECL_ISBLANK $ac_have_decl
17767 _ACEOF
17781 if test $ac_cv_func_getdelim = yes; then
17782 HAVE_GETDELIM=1
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
17784 $as_echo_n "checking for working getdelim function... " >&6; }
17785 if ${gl_cv_func_working_getdelim+:} false; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17789 if test "$cross_compiling" = yes; then :
17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17793 #include <features.h>
17794 #ifdef __GNU_LIBRARY__
17795 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17796 Lucky GNU user
17797 #endif
17798 #endif
17800 _ACEOF
17801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17802 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17803 gl_cv_func_working_getdelim="guessing yes"
17804 else
17805 gl_cv_func_working_getdelim="guessing no"
17807 rm -f conftest*
17810 else
17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17814 # include <stdio.h>
17815 # include <stdlib.h>
17816 # include <string.h>
17817 int main ()
17819 FILE *in = fopen ("./conftest.data", "r");
17820 if (!in)
17821 return 1;
17823 /* Test result for a NULL buffer and a zero size.
17824 Based on a test program from Karl Heuer. */
17825 char *line = NULL;
17826 size_t siz = 0;
17827 int len = getdelim (&line, &siz, '\n', in);
17828 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17829 return 2;
17832 /* Test result for a NULL buffer and a non-zero size.
17833 This crashes on FreeBSD 8.0. */
17834 char *line = NULL;
17835 size_t siz = (size_t)(~0) / 4;
17836 if (getdelim (&line, &siz, '\n', in) == -1)
17837 return 3;
17839 return 0;
17842 _ACEOF
17843 if ac_fn_c_try_run "$LINENO"; then :
17844 gl_cv_func_working_getdelim=yes
17845 else
17846 gl_cv_func_working_getdelim=no
17848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17849 conftest.$ac_objext conftest.beam conftest.$ac_ext
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
17854 $as_echo "$gl_cv_func_working_getdelim" >&6; }
17855 case "$gl_cv_func_working_getdelim" in
17856 *no)
17857 REPLACE_GETDELIM=1
17859 esac
17860 else
17861 HAVE_GETDELIM=0
17864 if test $ac_cv_have_decl_getdelim = no; then
17865 HAVE_DECL_GETDELIM=0
17868 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
17877 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
17880 for ac_func in flockfile funlockfile
17881 do :
17882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17884 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17885 cat >>confdefs.h <<_ACEOF
17886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887 _ACEOF
17890 done
17892 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
17893 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
17894 ac_have_decl=1
17895 else
17896 ac_have_decl=0
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
17901 _ACEOF
17910 GNULIB_GETDELIM=1
17916 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
17927 gl_getline_needs_run_time_check=no
17928 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17929 if test "x$ac_cv_func_getline" = xyes; then :
17930 gl_getline_needs_run_time_check=yes
17931 else
17932 am_cv_func_working_getline=no
17935 if test $gl_getline_needs_run_time_check = yes; then
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
17937 $as_echo_n "checking for working getline function... " >&6; }
17938 if ${am_cv_func_working_getline+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
17942 if test "$cross_compiling" = yes; then :
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 #include <features.h>
17947 #ifdef __GNU_LIBRARY__
17948 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17949 Lucky GNU user
17950 #endif
17951 #endif
17953 _ACEOF
17954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17955 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17956 am_cv_func_working_getline="guessing yes"
17957 else
17958 am_cv_func_working_getline="guessing no"
17960 rm -f conftest*
17963 else
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17967 # include <stdio.h>
17968 # include <stdlib.h>
17969 # include <string.h>
17970 int main ()
17972 FILE *in = fopen ("./conftest.data", "r");
17973 if (!in)
17974 return 1;
17976 /* Test result for a NULL buffer and a zero size.
17977 Based on a test program from Karl Heuer. */
17978 char *line = NULL;
17979 size_t siz = 0;
17980 int len = getline (&line, &siz, in);
17981 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17982 return 2;
17985 /* Test result for a NULL buffer and a non-zero size.
17986 This crashes on FreeBSD 8.0. */
17987 char *line = NULL;
17988 size_t siz = (size_t)(~0) / 4;
17989 if (getline (&line, &siz, in) == -1)
17990 return 3;
17992 return 0;
17995 _ACEOF
17996 if ac_fn_c_try_run "$LINENO"; then :
17997 am_cv_func_working_getline=yes
17998 else
17999 am_cv_func_working_getline=no
18001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18002 conftest.$ac_objext conftest.beam conftest.$ac_ext
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
18007 $as_echo "$am_cv_func_working_getline" >&6; }
18010 if test $ac_cv_have_decl_getline = no; then
18011 HAVE_DECL_GETLINE=0
18014 case "$am_cv_func_working_getline" in
18015 *no)
18016 REPLACE_GETLINE=1
18018 esac
18020 if test $REPLACE_GETLINE = 1; then
18029 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
18040 GNULIB_GETLINE=1
18046 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
18055 if test $REPLACE_GETOPT = 1; then
18064 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18074 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18079 GNULIB_GL_UNISTD_H_GETOPT=1
18084 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18092 REPLACE_GETOPT=1
18094 if test $REPLACE_GETOPT = 1; then
18096 GETOPT_H=getopt.h
18098 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18104 if test $REPLACE_GETOPT = 1; then
18113 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18123 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18128 GNULIB_GL_UNISTD_H_GETOPT=1
18148 if test $gl_cv_have_include_next = yes; then
18149 gl_cv_next_langinfo_h='<'langinfo.h'>'
18150 else
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
18152 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
18153 if ${gl_cv_next_langinfo_h+:} false; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18157 if test $ac_cv_header_langinfo_h = yes; then
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18162 #include <langinfo.h>
18164 _ACEOF
18165 case "$host_os" in
18166 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18167 *) gl_absname_cpp="$ac_cpp" ;;
18168 esac
18170 case "$host_os" in
18171 mingw*)
18172 gl_dirsep_regex='[/\\]'
18175 gl_dirsep_regex='\/'
18177 esac
18178 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18180 gl_header_literal_regex=`echo 'langinfo.h' \
18181 | sed -e "$gl_make_literal_regex_sed"`
18182 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18184 s|^/[^/]|//&|
18188 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18189 sed -n "$gl_absolute_header_sed"`'"'
18190 else
18191 gl_cv_next_langinfo_h='<'langinfo.h'>'
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
18197 $as_echo "$gl_cv_next_langinfo_h" >&6; }
18199 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
18201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18203 gl_next_as_first_directive='<'langinfo.h'>'
18204 else
18205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18206 gl_next_as_first_directive=$gl_cv_next_langinfo_h
18208 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
18214 HAVE_LANGINFO_CODESET=0
18215 HAVE_LANGINFO_T_FMT_AMPM=0
18216 HAVE_LANGINFO_ERA=0
18217 HAVE_LANGINFO_YESEXPR=0
18219 if test $ac_cv_header_langinfo_h = yes; then
18220 HAVE_LANGINFO_H=1
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
18222 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
18223 if ${gl_cv_header_langinfo_codeset+:} false; then :
18224 $as_echo_n "(cached) " >&6
18225 else
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18228 #include <langinfo.h>
18229 int a = CODESET;
18232 main (void)
18236 return 0;
18238 _ACEOF
18239 if ac_fn_c_try_compile "$LINENO"; then :
18240 gl_cv_header_langinfo_codeset=yes
18241 else
18242 gl_cv_header_langinfo_codeset=no
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
18248 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
18249 if test $gl_cv_header_langinfo_codeset = yes; then
18250 HAVE_LANGINFO_CODESET=1
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
18253 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
18254 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
18255 $as_echo_n "(cached) " >&6
18256 else
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18259 #include <langinfo.h>
18260 int a = T_FMT_AMPM;
18263 main (void)
18267 return 0;
18269 _ACEOF
18270 if ac_fn_c_try_compile "$LINENO"; then :
18271 gl_cv_header_langinfo_t_fmt_ampm=yes
18272 else
18273 gl_cv_header_langinfo_t_fmt_ampm=no
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
18279 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
18280 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
18281 HAVE_LANGINFO_T_FMT_AMPM=1
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
18284 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
18285 if ${gl_cv_header_langinfo_era+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 #include <langinfo.h>
18291 int a = ERA;
18294 main (void)
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_compile "$LINENO"; then :
18302 gl_cv_header_langinfo_era=yes
18303 else
18304 gl_cv_header_langinfo_era=no
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
18310 $as_echo "$gl_cv_header_langinfo_era" >&6; }
18311 if test $gl_cv_header_langinfo_era = yes; then
18312 HAVE_LANGINFO_ERA=1
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
18315 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
18316 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #include <langinfo.h>
18322 int a = YESEXPR;
18325 main (void)
18329 return 0;
18331 _ACEOF
18332 if ac_fn_c_try_compile "$LINENO"; then :
18333 gl_cv_header_langinfo_yesexpr=yes
18334 else
18335 gl_cv_header_langinfo_yesexpr=no
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
18341 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
18342 if test $gl_cv_header_langinfo_yesexpr = yes; then
18343 HAVE_LANGINFO_YESEXPR=1
18345 else
18346 HAVE_LANGINFO_H=0
18355 for gl_func in nl_langinfo; do
18356 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18358 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18359 if eval \${$as_gl_Symbol+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364 #include <langinfo.h>
18367 main (void)
18369 #undef $gl_func
18370 (void) $gl_func;
18372 return 0;
18374 _ACEOF
18375 if ac_fn_c_try_compile "$LINENO"; then :
18376 eval "$as_gl_Symbol=yes"
18377 else
18378 eval "$as_gl_Symbol=no"
18380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382 eval ac_res=\$$as_gl_Symbol
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18384 $as_echo "$ac_res" >&6; }
18385 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18386 cat >>confdefs.h <<_ACEOF
18387 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18388 _ACEOF
18390 eval ac_cv_have_decl_$gl_func=yes
18392 done
18403 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18413 case "$host_os" in
18414 solaris*)
18416 $as_echo "#define _LCONV_C99 1" >>confdefs.h
18419 esac
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
18422 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
18423 if ${gl_cv_header_locale_h_posix2001+:} false; then :
18424 $as_echo_n "(cached) " >&6
18425 else
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <locale.h>
18429 int x = LC_MESSAGES;
18430 int y = sizeof (((struct lconv *) 0)->decimal_point);
18432 main (void)
18436 return 0;
18438 _ACEOF
18439 if ac_fn_c_try_compile "$LINENO"; then :
18440 gl_cv_header_locale_h_posix2001=yes
18441 else
18442 gl_cv_header_locale_h_posix2001=no
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
18447 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
18450 if test $ac_cv_header_xlocale_h = yes; then
18451 HAVE_XLOCALE_H=1
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
18453 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
18454 if ${gl_cv_header_locale_has_locale_t+:} false; then :
18455 $as_echo_n "(cached) " >&6
18456 else
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 #include <locale.h>
18460 locale_t x;
18462 main (void)
18466 return 0;
18468 _ACEOF
18469 if ac_fn_c_try_compile "$LINENO"; then :
18470 gl_cv_header_locale_has_locale_t=yes
18471 else
18472 gl_cv_header_locale_has_locale_t=no
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
18478 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
18479 if test $gl_cv_header_locale_has_locale_t = yes; then
18480 gl_cv_header_locale_h_needs_xlocale_h=no
18481 else
18482 gl_cv_header_locale_h_needs_xlocale_h=yes
18484 else
18485 HAVE_XLOCALE_H=0
18486 gl_cv_header_locale_h_needs_xlocale_h=no
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
18491 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
18492 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
18493 $as_echo_n "(cached) " >&6
18494 else
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497 #include <locale.h>
18498 struct lconv l;
18499 int x = sizeof (l.decimal_point);
18500 int y = sizeof (l.int_p_cs_precedes);
18502 main (void)
18506 return 0;
18508 _ACEOF
18509 if ac_fn_c_try_compile "$LINENO"; then :
18510 gl_cv_sys_struct_lconv_ok=yes
18511 else
18512 gl_cv_sys_struct_lconv_ok=no
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
18518 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
18519 if test $gl_cv_sys_struct_lconv_ok = no; then
18520 REPLACE_STRUCT_LCONV=1
18531 if test $gl_cv_have_include_next = yes; then
18532 gl_cv_next_locale_h='<'locale.h'>'
18533 else
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
18535 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
18536 if ${gl_cv_next_locale_h+:} false; then :
18537 $as_echo_n "(cached) " >&6
18538 else
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <locale.h>
18544 _ACEOF
18545 case "$host_os" in
18546 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18547 *) gl_absname_cpp="$ac_cpp" ;;
18548 esac
18550 case "$host_os" in
18551 mingw*)
18552 gl_dirsep_regex='[/\\]'
18555 gl_dirsep_regex='\/'
18557 esac
18558 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18560 gl_header_literal_regex=`echo 'locale.h' \
18561 | sed -e "$gl_make_literal_regex_sed"`
18562 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18563 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18564 s|^/[^/]|//&|
18568 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18569 sed -n "$gl_absolute_header_sed"`'"'
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
18574 $as_echo "$gl_cv_next_locale_h" >&6; }
18576 NEXT_LOCALE_H=$gl_cv_next_locale_h
18578 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18580 gl_next_as_first_directive='<'locale.h'>'
18581 else
18582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18583 gl_next_as_first_directive=$gl_cv_next_locale_h
18585 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
18592 for gl_func in setlocale duplocale; do
18593 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18596 if eval \${$as_gl_Symbol+:} false; then :
18597 $as_echo_n "(cached) " >&6
18598 else
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18601 #include <locale.h>
18602 /* Some systems provide declarations in a non-standard header. */
18603 #if HAVE_XLOCALE_H
18604 # include <xlocale.h>
18605 #endif
18608 main (void)
18610 #undef $gl_func
18611 (void) $gl_func;
18613 return 0;
18615 _ACEOF
18616 if ac_fn_c_try_compile "$LINENO"; then :
18617 eval "$as_gl_Symbol=yes"
18618 else
18619 eval "$as_gl_Symbol=no"
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 eval ac_res=\$$as_gl_Symbol
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18625 $as_echo "$ac_res" >&6; }
18626 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18627 cat >>confdefs.h <<_ACEOF
18628 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18629 _ACEOF
18631 eval ac_cv_have_decl_$gl_func=yes
18633 done
18640 if test $REPLACE_STRUCT_LCONV = 1; then
18641 REPLACE_LOCALECONV=1
18644 if test $REPLACE_LOCALECONV = 1; then
18653 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
18656 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
18658 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
18660 cat >>confdefs.h <<_ACEOF
18661 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
18662 _ACEOF
18674 GNULIB_LOCALECONV=1
18680 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
18687 for ac_header in stdlib.h
18688 do :
18689 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18690 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18691 cat >>confdefs.h <<_ACEOF
18692 #define HAVE_STDLIB_H 1
18693 _ACEOF
18697 done
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18700 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18701 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18702 $as_echo_n "(cached) " >&6
18703 else
18704 if test "$cross_compiling" = yes; then :
18705 case "$host_os" in
18706 # Guess yes on platforms where we know the result.
18707 *-gnu* | freebsd* | netbsd* | openbsd* \
18708 | hpux* | solaris* | cygwin* | mingw*)
18709 ac_cv_func_malloc_0_nonnull=yes ;;
18710 # If we don't know, assume the worst.
18711 *) ac_cv_func_malloc_0_nonnull=no ;;
18712 esac
18714 else
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18718 # include <stdlib.h>
18719 #else
18720 char *malloc ();
18721 #endif
18724 main (void)
18726 return ! malloc (0);
18728 return 0;
18731 _ACEOF
18732 if ac_fn_c_try_run "$LINENO"; then :
18733 ac_cv_func_malloc_0_nonnull=yes
18734 else
18735 ac_cv_func_malloc_0_nonnull=no
18737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18738 conftest.$ac_objext conftest.beam conftest.$ac_ext
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18744 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18745 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18747 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
18749 else
18750 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
18752 REPLACE_MALLOC=1
18757 if test $REPLACE_MALLOC = 1; then
18766 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18771 cat >>confdefs.h <<_ACEOF
18772 #define GNULIB_MALLOC_GNU 1
18773 _ACEOF
18779 if test $gl_cv_func_malloc_posix = yes; then
18781 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18783 else
18784 REPLACE_MALLOC=1
18787 if test $REPLACE_MALLOC = 1; then
18796 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18804 GNULIB_MALLOC_POSIX=1
18810 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18824 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18829 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18830 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
18831 $as_echo_n "(cached) " >&6
18832 else
18834 case "$host_os" in
18835 # Guess no on AIX and OSF/1.
18836 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18837 # Guess yes otherwise.
18838 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18839 esac
18840 if test $LOCALE_JA != none; then
18841 if test "$cross_compiling" = yes; then :
18843 else
18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18847 #include <locale.h>
18848 #include <string.h>
18849 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18850 <wchar.h>.
18851 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18852 included before <wchar.h>. */
18853 #include <stddef.h>
18854 #include <stdio.h>
18855 #include <time.h>
18856 #include <wchar.h>
18857 int main ()
18859 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18861 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18862 mbstate_t state;
18863 wchar_t wc;
18865 memset (&state, '\0', sizeof (mbstate_t));
18866 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18867 if (mbsinit (&state))
18868 return 1;
18870 return 0;
18872 _ACEOF
18873 if ac_fn_c_try_run "$LINENO"; then :
18874 gl_cv_func_mbrtowc_incomplete_state=yes
18875 else
18876 gl_cv_func_mbrtowc_incomplete_state=no
18878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18879 conftest.$ac_objext conftest.beam conftest.$ac_ext
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18886 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18892 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18893 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18897 case "$host_os" in
18898 # Guess no on Solaris 8.
18899 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18900 # Guess yes otherwise.
18901 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18902 esac
18903 if test $LOCALE_ZH_CN != none; then
18904 if test "$cross_compiling" = yes; then :
18906 else
18907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908 /* end confdefs.h. */
18910 #include <locale.h>
18911 #include <stdlib.h>
18912 #include <string.h>
18913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18914 <wchar.h>.
18915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18916 included before <wchar.h>. */
18917 #include <stddef.h>
18918 #include <stdio.h>
18919 #include <time.h>
18920 #include <wchar.h>
18921 int main ()
18923 /* This fails on Solaris 8:
18924 mbrtowc returns 2, and sets wc to 0x00F0.
18925 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18926 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18928 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18929 mbstate_t state;
18930 wchar_t wc;
18932 memset (&state, '\0', sizeof (mbstate_t));
18933 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18934 && mbtowc (&wc, input + 3, 6) == 4)
18935 return 1;
18937 return 0;
18939 _ACEOF
18940 if ac_fn_c_try_run "$LINENO"; then :
18941 gl_cv_func_mbrtowc_sanitycheck=yes
18942 else
18943 gl_cv_func_mbrtowc_sanitycheck=no
18945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18946 conftest.$ac_objext conftest.beam conftest.$ac_ext
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18953 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18955 REPLACE_MBSTATE_T=0
18956 case "$gl_cv_func_mbrtowc_incomplete_state" in
18957 *yes) ;;
18958 *) REPLACE_MBSTATE_T=1 ;;
18959 esac
18960 case "$gl_cv_func_mbrtowc_sanitycheck" in
18961 *yes) ;;
18962 *) REPLACE_MBSTATE_T=1 ;;
18963 esac
18964 else
18965 REPLACE_MBSTATE_T=1
18970 if test $ac_cv_func_mbrtowc = no; then
18971 HAVE_MBRTOWC=0
18972 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18974 <wchar.h>.
18975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18976 included before <wchar.h>. */
18977 #include <stddef.h>
18978 #include <stdio.h>
18979 #include <time.h>
18980 #include <wchar.h>
18983 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
18984 ac_have_decl=1
18985 else
18986 ac_have_decl=0
18989 cat >>confdefs.h <<_ACEOF
18990 #define HAVE_DECL_MBRTOWC $ac_have_decl
18991 _ACEOF
18993 if test $ac_cv_have_decl_mbrtowc = yes; then
18994 REPLACE_MBRTOWC=1
18996 else
18997 if test $REPLACE_MBSTATE_T = 1; then
18998 REPLACE_MBRTOWC=1
18999 else
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19004 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19005 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
19006 $as_echo_n "(cached) " >&6
19007 else
19009 case "$host_os" in
19010 # Guess no on Solaris.
19011 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
19012 # Guess yes otherwise.
19013 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
19014 esac
19015 if test $LOCALE_FR_UTF8 != none; then
19016 if test "$cross_compiling" = yes; then :
19018 else
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19022 #include <locale.h>
19023 #include <stdlib.h>
19024 #include <string.h>
19025 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19026 <wchar.h>.
19027 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19028 included before <wchar.h>. */
19029 #include <stddef.h>
19030 #include <stdio.h>
19031 #include <time.h>
19032 #include <wchar.h>
19033 int main ()
19035 int result = 0;
19037 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19039 char input[] = "\303\237er";
19040 mbstate_t state;
19041 wchar_t wc;
19042 size_t ret;
19044 memset (&state, '\0', sizeof (mbstate_t));
19045 wc = (wchar_t) 0xBADFACE;
19046 ret = mbrtowc (&wc, input, 5, &state);
19047 if (ret != 2)
19048 result |= 1;
19049 if (!mbsinit (&state))
19050 result |= 2;
19052 memset (&state, '\0', sizeof (mbstate_t));
19053 ret = mbrtowc (NULL, input, 5, &state);
19054 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19055 result |= 4;
19056 if (!mbsinit (&state))
19057 result |= 8;
19059 return result;
19061 _ACEOF
19062 if ac_fn_c_try_run "$LINENO"; then :
19063 gl_cv_func_mbrtowc_null_arg1=yes
19064 else
19065 gl_cv_func_mbrtowc_null_arg1=no
19067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19068 conftest.$ac_objext conftest.beam conftest.$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19075 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19081 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19082 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
19083 $as_echo_n "(cached) " >&6
19084 else
19086 case "$host_os" in
19087 # Guess no on OSF/1.
19088 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
19089 # Guess yes otherwise.
19090 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
19091 esac
19092 if test $LOCALE_FR_UTF8 != none; then
19093 if test "$cross_compiling" = yes; then :
19095 else
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19099 #include <locale.h>
19100 #include <string.h>
19101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19102 <wchar.h>.
19103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19104 included before <wchar.h>. */
19105 #include <stddef.h>
19106 #include <stdio.h>
19107 #include <time.h>
19108 #include <wchar.h>
19109 int main ()
19111 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19113 mbstate_t state;
19114 wchar_t wc;
19115 int ret;
19117 memset (&state, '\0', sizeof (mbstate_t));
19118 wc = (wchar_t) 0xBADFACE;
19119 mbrtowc (&wc, NULL, 5, &state);
19120 /* Check that wc was not modified. */
19121 if (wc != (wchar_t) 0xBADFACE)
19122 return 1;
19124 return 0;
19126 _ACEOF
19127 if ac_fn_c_try_run "$LINENO"; then :
19128 gl_cv_func_mbrtowc_null_arg2=yes
19129 else
19130 gl_cv_func_mbrtowc_null_arg2=no
19132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19133 conftest.$ac_objext conftest.beam conftest.$ac_ext
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19140 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19148 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19149 if ${gl_cv_func_mbrtowc_retval+:} false; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19153 case "$host_os" in
19154 # Guess no on HP-UX, Solaris, native Windows.
19155 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
19156 # Guess yes otherwise.
19157 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
19158 esac
19159 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
19160 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
19161 if test "$cross_compiling" = yes; then :
19163 else
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19167 #include <locale.h>
19168 #include <string.h>
19169 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19170 <wchar.h>.
19171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19172 included before <wchar.h>. */
19173 #include <stddef.h>
19174 #include <stdio.h>
19175 #include <time.h>
19176 #include <wchar.h>
19177 int main ()
19179 int result = 0;
19180 int found_some_locale = 0;
19181 /* This fails on Solaris. */
19182 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19184 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19185 mbstate_t state;
19186 wchar_t wc;
19188 memset (&state, '\0', sizeof (mbstate_t));
19189 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19191 input[1] = '\0';
19192 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19193 result |= 1;
19195 found_some_locale = 1;
19197 /* This fails on HP-UX 11.11. */
19198 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19200 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19201 mbstate_t state;
19202 wchar_t wc;
19204 memset (&state, '\0', sizeof (mbstate_t));
19205 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19207 input[1] = '\0';
19208 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19209 result |= 2;
19211 found_some_locale = 1;
19213 /* This fails on native Windows. */
19214 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19216 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19217 mbstate_t state;
19218 wchar_t wc;
19220 memset (&state, '\0', sizeof (mbstate_t));
19221 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19223 input[3] = '\0';
19224 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19225 result |= 4;
19227 found_some_locale = 1;
19229 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19231 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19232 mbstate_t state;
19233 wchar_t wc;
19235 memset (&state, '\0', sizeof (mbstate_t));
19236 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19238 input[3] = '\0';
19239 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19240 result |= 8;
19242 found_some_locale = 1;
19244 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19246 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19247 mbstate_t state;
19248 wchar_t wc;
19250 memset (&state, '\0', sizeof (mbstate_t));
19251 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19253 input[3] = '\0';
19254 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19255 result |= 16;
19257 found_some_locale = 1;
19259 return (found_some_locale ? result : 77);
19261 _ACEOF
19262 if ac_fn_c_try_run "$LINENO"; then :
19263 gl_cv_func_mbrtowc_retval=yes
19264 else
19265 if test $? != 77; then
19266 gl_cv_func_mbrtowc_retval=no
19270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19271 conftest.$ac_objext conftest.beam conftest.$ac_ext
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19278 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19284 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19285 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
19286 $as_echo_n "(cached) " >&6
19287 else
19289 case "$host_os" in
19290 # Guess no on Solaris 8 and 9.
19291 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
19292 # Guess yes otherwise.
19293 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
19294 esac
19295 if test $LOCALE_ZH_CN != none; then
19296 if test "$cross_compiling" = yes; then :
19298 else
19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h. */
19302 #include <locale.h>
19303 #include <string.h>
19304 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19305 <wchar.h>.
19306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19307 included before <wchar.h>. */
19308 #include <stddef.h>
19309 #include <stdio.h>
19310 #include <time.h>
19311 #include <wchar.h>
19312 int main ()
19314 /* This fails on Solaris 8 and 9. */
19315 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19317 mbstate_t state;
19318 wchar_t wc;
19320 memset (&state, '\0', sizeof (mbstate_t));
19321 if (mbrtowc (&wc, "", 1, &state) != 0)
19322 return 1;
19324 return 0;
19326 _ACEOF
19327 if ac_fn_c_try_run "$LINENO"; then :
19328 gl_cv_func_mbrtowc_nul_retval=yes
19329 else
19330 gl_cv_func_mbrtowc_nul_retval=no
19332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19333 conftest.$ac_objext conftest.beam conftest.$ac_ext
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19340 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19342 case "$gl_cv_func_mbrtowc_null_arg1" in
19343 *yes) ;;
19345 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19347 REPLACE_MBRTOWC=1
19349 esac
19350 case "$gl_cv_func_mbrtowc_null_arg2" in
19351 *yes) ;;
19353 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19355 REPLACE_MBRTOWC=1
19357 esac
19358 case "$gl_cv_func_mbrtowc_retval" in
19359 *yes) ;;
19361 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19363 REPLACE_MBRTOWC=1
19365 esac
19366 case "$gl_cv_func_mbrtowc_nul_retval" in
19367 *yes) ;;
19369 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19371 REPLACE_MBRTOWC=1
19373 esac
19377 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
19386 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
19397 GNULIB_MBRTOWC=1
19403 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19418 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19423 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19424 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19428 case "$host_os" in
19429 # Guess no on AIX and OSF/1.
19430 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19431 # Guess yes otherwise.
19432 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19433 esac
19434 if test $LOCALE_JA != none; then
19435 if test "$cross_compiling" = yes; then :
19437 else
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19441 #include <locale.h>
19442 #include <string.h>
19443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19444 <wchar.h>.
19445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19446 included before <wchar.h>. */
19447 #include <stddef.h>
19448 #include <stdio.h>
19449 #include <time.h>
19450 #include <wchar.h>
19451 int main ()
19453 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19455 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19456 mbstate_t state;
19457 wchar_t wc;
19459 memset (&state, '\0', sizeof (mbstate_t));
19460 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19461 if (mbsinit (&state))
19462 return 1;
19464 return 0;
19466 _ACEOF
19467 if ac_fn_c_try_run "$LINENO"; then :
19468 gl_cv_func_mbrtowc_incomplete_state=yes
19469 else
19470 gl_cv_func_mbrtowc_incomplete_state=no
19472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473 conftest.$ac_objext conftest.beam conftest.$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19480 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19486 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19487 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19488 $as_echo_n "(cached) " >&6
19489 else
19491 case "$host_os" in
19492 # Guess no on Solaris 8.
19493 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19494 # Guess yes otherwise.
19495 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19496 esac
19497 if test $LOCALE_ZH_CN != none; then
19498 if test "$cross_compiling" = yes; then :
19500 else
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 #include <locale.h>
19505 #include <stdlib.h>
19506 #include <string.h>
19507 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19508 <wchar.h>.
19509 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19510 included before <wchar.h>. */
19511 #include <stddef.h>
19512 #include <stdio.h>
19513 #include <time.h>
19514 #include <wchar.h>
19515 int main ()
19517 /* This fails on Solaris 8:
19518 mbrtowc returns 2, and sets wc to 0x00F0.
19519 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19520 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19522 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19523 mbstate_t state;
19524 wchar_t wc;
19526 memset (&state, '\0', sizeof (mbstate_t));
19527 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19528 && mbtowc (&wc, input + 3, 6) == 4)
19529 return 1;
19531 return 0;
19533 _ACEOF
19534 if ac_fn_c_try_run "$LINENO"; then :
19535 gl_cv_func_mbrtowc_sanitycheck=yes
19536 else
19537 gl_cv_func_mbrtowc_sanitycheck=no
19539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19540 conftest.$ac_objext conftest.beam conftest.$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19547 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19549 REPLACE_MBSTATE_T=0
19550 case "$gl_cv_func_mbrtowc_incomplete_state" in
19551 *yes) ;;
19552 *) REPLACE_MBSTATE_T=1 ;;
19553 esac
19554 case "$gl_cv_func_mbrtowc_sanitycheck" in
19555 *yes) ;;
19556 *) REPLACE_MBSTATE_T=1 ;;
19557 esac
19558 else
19559 REPLACE_MBSTATE_T=1
19564 if test $ac_cv_func_mbsinit = no; then
19565 HAVE_MBSINIT=0
19566 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19568 <wchar.h>.
19569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19570 included before <wchar.h>. */
19571 #include <stddef.h>
19572 #include <stdio.h>
19573 #include <time.h>
19574 #include <wchar.h>
19577 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
19578 ac_have_decl=1
19579 else
19580 ac_have_decl=0
19583 cat >>confdefs.h <<_ACEOF
19584 #define HAVE_DECL_MBSINIT $ac_have_decl
19585 _ACEOF
19587 if test $ac_cv_have_decl_mbsinit = yes; then
19588 REPLACE_MBSINIT=1
19590 else
19591 if test $REPLACE_MBSTATE_T = 1; then
19592 REPLACE_MBSINIT=1
19593 else
19594 case "$host_os" in
19595 mingw*) REPLACE_MBSINIT=1 ;;
19596 esac
19600 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
19609 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
19620 GNULIB_MBSINIT=1
19626 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
19640 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19645 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19646 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19647 $as_echo_n "(cached) " >&6
19648 else
19650 case "$host_os" in
19651 # Guess no on AIX and OSF/1.
19652 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19653 # Guess yes otherwise.
19654 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19655 esac
19656 if test $LOCALE_JA != none; then
19657 if test "$cross_compiling" = yes; then :
19659 else
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19663 #include <locale.h>
19664 #include <string.h>
19665 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19666 <wchar.h>.
19667 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19668 included before <wchar.h>. */
19669 #include <stddef.h>
19670 #include <stdio.h>
19671 #include <time.h>
19672 #include <wchar.h>
19673 int main ()
19675 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19677 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19678 mbstate_t state;
19679 wchar_t wc;
19681 memset (&state, '\0', sizeof (mbstate_t));
19682 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19683 if (mbsinit (&state))
19684 return 1;
19686 return 0;
19688 _ACEOF
19689 if ac_fn_c_try_run "$LINENO"; then :
19690 gl_cv_func_mbrtowc_incomplete_state=yes
19691 else
19692 gl_cv_func_mbrtowc_incomplete_state=no
19694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19695 conftest.$ac_objext conftest.beam conftest.$ac_ext
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19702 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19708 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19709 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19710 $as_echo_n "(cached) " >&6
19711 else
19713 case "$host_os" in
19714 # Guess no on Solaris 8.
19715 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19716 # Guess yes otherwise.
19717 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19718 esac
19719 if test $LOCALE_ZH_CN != none; then
19720 if test "$cross_compiling" = yes; then :
19722 else
19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19726 #include <locale.h>
19727 #include <stdlib.h>
19728 #include <string.h>
19729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19730 <wchar.h>.
19731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19732 included before <wchar.h>. */
19733 #include <stddef.h>
19734 #include <stdio.h>
19735 #include <time.h>
19736 #include <wchar.h>
19737 int main ()
19739 /* This fails on Solaris 8:
19740 mbrtowc returns 2, and sets wc to 0x00F0.
19741 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19742 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19744 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19745 mbstate_t state;
19746 wchar_t wc;
19748 memset (&state, '\0', sizeof (mbstate_t));
19749 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19750 && mbtowc (&wc, input + 3, 6) == 4)
19751 return 1;
19753 return 0;
19755 _ACEOF
19756 if ac_fn_c_try_run "$LINENO"; then :
19757 gl_cv_func_mbrtowc_sanitycheck=yes
19758 else
19759 gl_cv_func_mbrtowc_sanitycheck=no
19761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19762 conftest.$ac_objext conftest.beam conftest.$ac_ext
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19769 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19771 REPLACE_MBSTATE_T=0
19772 case "$gl_cv_func_mbrtowc_incomplete_state" in
19773 *yes) ;;
19774 *) REPLACE_MBSTATE_T=1 ;;
19775 esac
19776 case "$gl_cv_func_mbrtowc_sanitycheck" in
19777 *yes) ;;
19778 *) REPLACE_MBSTATE_T=1 ;;
19779 esac
19780 else
19781 REPLACE_MBSTATE_T=1
19786 if test $ac_cv_func_mbsrtowcs = no; then
19787 HAVE_MBSRTOWCS=0
19788 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19790 <wchar.h>.
19791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19792 included before <wchar.h>. */
19793 #include <stddef.h>
19794 #include <stdio.h>
19795 #include <time.h>
19796 #include <wchar.h>
19799 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
19800 ac_have_decl=1
19801 else
19802 ac_have_decl=0
19805 cat >>confdefs.h <<_ACEOF
19806 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19807 _ACEOF
19809 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19810 REPLACE_MBSRTOWCS=1
19812 else
19813 if test $REPLACE_MBSTATE_T = 1; then
19814 REPLACE_MBSRTOWCS=1
19815 else
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19823 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19824 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19828 case "$host_os" in
19829 # Guess no on HP-UX, Solaris, mingw.
19830 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
19831 # Guess yes otherwise.
19832 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
19833 esac
19834 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19835 if test "$cross_compiling" = yes; then :
19837 else
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19841 #include <locale.h>
19842 #include <string.h>
19843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19844 <wchar.h>.
19845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19846 included before <wchar.h>. */
19847 #include <stddef.h>
19848 #include <stdio.h>
19849 #include <time.h>
19850 #include <wchar.h>
19851 int main ()
19853 int result = 0;
19854 /* Test whether the function supports a NULL destination argument.
19855 This fails on native Windows. */
19856 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19858 const char input[] = "\337er";
19859 const char *src = input;
19860 mbstate_t state;
19862 memset (&state, '\0', sizeof (mbstate_t));
19863 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19864 || src != input)
19865 result |= 1;
19867 /* Test whether the function works when started with a conversion state
19868 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19869 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19871 const char input[] = "B\303\274\303\237er";
19872 mbstate_t state;
19874 memset (&state, '\0', sizeof (mbstate_t));
19875 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19876 if (!mbsinit (&state))
19878 const char *src = input + 2;
19879 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19880 result |= 2;
19883 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19885 const char input[] = "<\306\374\313\334\270\354>";
19886 mbstate_t state;
19888 memset (&state, '\0', sizeof (mbstate_t));
19889 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19890 if (!mbsinit (&state))
19892 const char *src = input + 4;
19893 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19894 result |= 4;
19897 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19899 const char input[] = "B\250\271\201\060\211\070er";
19900 mbstate_t state;
19902 memset (&state, '\0', sizeof (mbstate_t));
19903 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19904 if (!mbsinit (&state))
19906 const char *src = input + 2;
19907 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19908 result |= 8;
19911 return result;
19913 _ACEOF
19914 if ac_fn_c_try_run "$LINENO"; then :
19915 gl_cv_func_mbsrtowcs_works=yes
19916 else
19917 gl_cv_func_mbsrtowcs_works=no
19919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19920 conftest.$ac_objext conftest.beam conftest.$ac_ext
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19927 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19929 case "$gl_cv_func_mbsrtowcs_works" in
19930 *yes) ;;
19931 *) REPLACE_MBSRTOWCS=1 ;;
19932 esac
19936 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
19945 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19955 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19966 GNULIB_MBSRTOWCS=1
19972 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
19981 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
19982 if ${ac_cv_have_decl_mbswidth+:} false; then :
19983 $as_echo_n "(cached) " >&6
19984 else
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19988 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19989 <wchar.h>.
19990 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19991 before <wchar.h>. */
19992 #include <stddef.h>
19993 #include <stdio.h>
19994 #include <time.h>
19995 #include <wchar.h>
19998 main (void)
20001 char *p = (char *) mbswidth;
20002 return !p;
20005 return 0;
20007 _ACEOF
20008 if ac_fn_c_try_compile "$LINENO"; then :
20009 ac_cv_have_decl_mbswidth=yes
20010 else
20011 ac_cv_have_decl_mbswidth=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
20016 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
20017 if test $ac_cv_have_decl_mbswidth = yes; then
20018 ac_val=1
20019 else
20020 ac_val=0
20023 cat >>confdefs.h <<_ACEOF
20024 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
20025 _ACEOF
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20031 $as_echo_n "checking for mbstate_t... " >&6; }
20032 if ${ac_cv_type_mbstate_t+:} false; then :
20033 $as_echo_n "(cached) " >&6
20034 else
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20037 $ac_includes_default
20038 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20039 <wchar.h>.
20040 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20041 included before <wchar.h>. */
20042 #include <stddef.h>
20043 #include <stdio.h>
20044 #include <time.h>
20045 #include <wchar.h>
20047 main (void)
20049 mbstate_t x; return sizeof x;
20051 return 0;
20053 _ACEOF
20054 if ac_fn_c_try_compile "$LINENO"; then :
20055 ac_cv_type_mbstate_t=yes
20056 else
20057 ac_cv_type_mbstate_t=no
20059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20062 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20063 if test $ac_cv_type_mbstate_t = yes; then
20065 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20067 else
20069 $as_echo "#define mbstate_t int" >>confdefs.h
20077 if false; then
20078 REPLACE_MBTOWC=1
20081 if test $REPLACE_MBTOWC = 1; then
20090 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
20101 GNULIB_MBTOWC=1
20107 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20112 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20121 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20124 for ac_header in bp-sym.h
20125 do :
20126 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20127 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_BP_SYM_H 1
20130 _ACEOF
20134 done
20143 GNULIB_MEMCHR=1
20149 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20159 for ac_func in mempcpy
20160 do :
20161 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20162 if test "x$ac_cv_func_mempcpy" = xyes; then :
20163 cat >>confdefs.h <<_ACEOF
20164 #define HAVE_MEMPCPY 1
20165 _ACEOF
20168 done
20170 if test $ac_cv_func_mempcpy = no; then
20171 HAVE_MEMPCPY=0
20174 if test $HAVE_MEMPCPY = 0; then
20183 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
20194 GNULIB_MEMPCPY=1
20200 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20206 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20207 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20209 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20211 else
20212 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20216 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20225 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
20231 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20240 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20248 if test $ac_cv_func_nl_langinfo = yes; then
20249 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
20251 $as_echo_n "checking whether YESEXPR works... " >&6; }
20252 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 if test "$cross_compiling" = yes; then :
20257 case "$host_os" in
20258 # Guess no on irix systems.
20259 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
20260 # Guess yes elsewhere.
20261 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
20262 esac
20264 else
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20267 #include <langinfo.h>
20270 main (void)
20272 return !*nl_langinfo(YESEXPR);
20275 return 0;
20277 _ACEOF
20278 if ac_fn_c_try_run "$LINENO"; then :
20279 gl_cv_func_nl_langinfo_yesexpr_works=yes
20280 else
20281 gl_cv_func_nl_langinfo_yesexpr_works=no
20283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20284 conftest.$ac_objext conftest.beam conftest.$ac_ext
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
20290 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
20291 case $gl_cv_func_nl_langinfo_yesexpr_works in
20292 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
20293 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
20294 esac
20296 cat >>confdefs.h <<_ACEOF
20297 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
20298 _ACEOF
20300 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
20301 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
20303 else
20304 REPLACE_NL_LANGINFO=1
20306 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
20309 else
20310 HAVE_NL_LANGINFO=0
20313 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
20322 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
20330 GNULIB_NL_LANGINFO=1
20336 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
20340 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20342 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
20343 ac_have_decl=1
20344 else
20345 ac_have_decl=0
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20350 _ACEOF
20352 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20354 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
20355 ac_have_decl=1
20356 else
20357 ac_have_decl=0
20360 cat >>confdefs.h <<_ACEOF
20361 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20362 _ACEOF
20368 for ac_func in rawmemchr
20369 do :
20370 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20371 if test "x$ac_cv_func_rawmemchr" = xyes; then :
20372 cat >>confdefs.h <<_ACEOF
20373 #define HAVE_RAWMEMCHR 1
20374 _ACEOF
20377 done
20379 if test $ac_cv_func_rawmemchr = no; then
20380 HAVE_RAWMEMCHR=0
20383 if test $HAVE_RAWMEMCHR = 0; then
20392 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
20401 GNULIB_RAWMEMCHR=1
20407 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20414 if test $gl_cv_func_malloc_posix = yes; then
20416 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20418 else
20419 REPLACE_REALLOC=1
20422 if test $REPLACE_REALLOC = 1; then
20431 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
20439 GNULIB_REALLOC_POSIX=1
20445 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20451 # Check whether --with-included-regex was given.
20452 if test "${with_included_regex+set}" = set; then :
20453 withval=$with_included_regex;
20457 case $with_included_regex in #(
20458 yes|no) ac_use_included_regex=$with_included_regex
20461 # If the system regex support is good enough that it passes the
20462 # following run test, then default to *not* using the included regex.c.
20463 # If cross compiling, assume the test would fail and use the included
20464 # regex.c.
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
20467 $as_echo_n "checking for working re_compile_pattern... " >&6; }
20468 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
20469 $as_echo_n "(cached) " >&6
20470 else
20471 if test "$cross_compiling" = yes; then :
20472 gl_cv_func_re_compile_pattern_working=no
20473 else
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476 #include <regex.h>
20478 #include <locale.h>
20479 #include <limits.h>
20480 #include <string.h>
20481 #if HAVE_DECL_ALARM
20482 # include <unistd.h>
20483 # include <signal.h>
20484 #endif
20487 main (void)
20489 int result = 0;
20490 static struct re_pattern_buffer regex;
20491 unsigned char folded_chars[UCHAR_MAX + 1];
20492 int i;
20493 const char *s;
20494 struct re_registers regs;
20496 #if HAVE_DECL_ALARM
20497 /* Some builds of glibc go into an infinite loop on this test. */
20498 signal (SIGALRM, SIG_DFL);
20499 alarm (2);
20500 #endif
20501 if (setlocale (LC_ALL, "en_US.UTF-8"))
20504 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20505 This test needs valgrind to catch the bug on Debian
20506 GNU/Linux 3.1 x86, but it might catch the bug better
20507 on other platforms and it shouldn't hurt to try the
20508 test here. */
20509 static char const pat[] = "insert into";
20510 static char const data[] =
20511 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20512 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20513 | RE_ICASE);
20514 memset (&regex, 0, sizeof regex);
20515 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20516 if (s)
20517 result |= 1;
20518 else if (re_search (&regex, data, sizeof data - 1,
20519 0, sizeof data - 1, &regs)
20520 != -1)
20521 result |= 1;
20525 /* This test is from glibc bug 15078.
20526 The test case is from Andreas Schwab in
20527 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
20529 static char const pat[] = "[^x]x";
20530 static char const data[] =
20531 "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80"
20532 "\xba\xe1\x80\xaf\xe1\x80\x95\xe1\x80\xbax";
20533 re_set_syntax (0);
20534 memset (&regex, 0, sizeof regex);
20535 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
20536 if (s)
20537 result |= 1;
20538 else if (re_search (&regex, data, sizeof data - 1,
20539 0, sizeof data - 1, 0)
20540 != 21)
20541 result |= 1;
20544 if (! setlocale (LC_ALL, "C"))
20545 return 1;
20548 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
20549 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20550 memset (&regex, 0, sizeof regex);
20551 s = re_compile_pattern ("a[^x]b", 6, &regex);
20552 if (s)
20553 result |= 2;
20554 /* This should fail, but succeeds for glibc-2.5. */
20555 else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
20556 result |= 2;
20558 /* This regular expression is from Spencer ere test number 75
20559 in grep-2.3. */
20560 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20561 memset (&regex, 0, sizeof regex);
20562 for (i = 0; i <= UCHAR_MAX; i++)
20563 folded_chars[i] = i;
20564 regex.translate = folded_chars;
20565 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
20566 /* This should fail with _Invalid character class name_ error. */
20567 if (!s)
20568 result |= 4;
20570 /* Ensure that [b-a] is diagnosed as invalid, when
20571 using RE_NO_EMPTY_RANGES. */
20572 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
20573 memset (&regex, 0, sizeof regex);
20574 s = re_compile_pattern ("a[b-a]", 6, &regex);
20575 if (s == 0)
20576 result |= 8;
20578 /* This should succeed, but does not for glibc-2.1.3. */
20579 memset (&regex, 0, sizeof regex);
20580 s = re_compile_pattern ("{1", 2, &regex);
20581 if (s)
20582 result |= 8;
20584 /* The following example is derived from a problem report
20585 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
20586 memset (&regex, 0, sizeof regex);
20587 s = re_compile_pattern ("[an\371]*n", 7, &regex);
20588 if (s)
20589 result |= 8;
20590 /* This should match, but does not for glibc-2.2.1. */
20591 else if (re_match (&regex, "an", 2, 0, &regs) != 2)
20592 result |= 8;
20594 memset (&regex, 0, sizeof regex);
20595 s = re_compile_pattern ("x", 1, &regex);
20596 if (s)
20597 result |= 8;
20598 /* glibc-2.2.93 does not work with a negative RANGE argument. */
20599 else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
20600 result |= 8;
20602 /* The version of regex.c in older versions of gnulib
20603 ignored RE_ICASE. Detect that problem too. */
20604 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20605 memset (&regex, 0, sizeof regex);
20606 s = re_compile_pattern ("x", 1, &regex);
20607 if (s)
20608 result |= 16;
20609 else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
20610 result |= 16;
20612 /* Catch a bug reported by Vin Shelton in
20613 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20615 re_set_syntax (RE_SYNTAX_POSIX_BASIC
20616 & ~RE_CONTEXT_INVALID_DUP
20617 & ~RE_NO_EMPTY_RANGES);
20618 memset (&regex, 0, sizeof regex);
20619 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
20620 if (s)
20621 result |= 32;
20623 /* REG_STARTEND was added to glibc on 2004-01-15.
20624 Reject older versions. */
20625 if (! REG_STARTEND)
20626 result |= 64;
20628 #if 0
20629 /* It would be nice to reject hosts whose regoff_t values are too
20630 narrow (including glibc on hosts with 64-bit ptrdiff_t and
20631 32-bit int), but we should wait until glibc implements this
20632 feature. Otherwise, support for equivalence classes and
20633 multibyte collation symbols would always be broken except
20634 when compiling --without-included-regex. */
20635 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20636 || sizeof (regoff_t) < sizeof (ssize_t))
20637 result |= 64;
20638 #endif
20640 return result;
20643 return 0;
20645 _ACEOF
20646 if ac_fn_c_try_run "$LINENO"; then :
20647 gl_cv_func_re_compile_pattern_working=yes
20648 else
20649 gl_cv_func_re_compile_pattern_working=no
20651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20652 conftest.$ac_objext conftest.beam conftest.$ac_ext
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
20657 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20658 case $gl_cv_func_re_compile_pattern_working in #(
20659 yes) ac_use_included_regex=no;; #(
20660 no) ac_use_included_regex=yes;;
20661 esac
20663 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
20665 esac
20667 if test $ac_use_included_regex = yes; then
20669 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
20672 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
20675 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
20678 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
20681 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
20684 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
20687 $as_echo "#define re_search rpl_re_search" >>confdefs.h
20690 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
20693 $as_echo "#define re_match rpl_re_match" >>confdefs.h
20696 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
20699 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
20702 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
20705 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
20708 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
20711 $as_echo "#define regexec rpl_regexec" >>confdefs.h
20714 $as_echo "#define regerror rpl_regerror" >>confdefs.h
20717 $as_echo "#define regfree rpl_regfree" >>confdefs.h
20721 if test $ac_use_included_regex = yes; then
20730 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
20738 for ac_header in libintl.h
20739 do :
20740 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
20741 if test "x$ac_cv_header_libintl_h" = xyes; then :
20742 cat >>confdefs.h <<_ACEOF
20743 #define HAVE_LIBINTL_H 1
20744 _ACEOF
20748 done
20751 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20753 if test "x$ac_cv_have_decl_isblank" = xyes; then :
20754 ac_have_decl=1
20755 else
20756 ac_have_decl=0
20759 cat >>confdefs.h <<_ACEOF
20760 #define HAVE_DECL_ISBLANK $ac_have_decl
20761 _ACEOF
20766 for ac_header in stdint.h
20767 do :
20768 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20769 if test "x$ac_cv_header_stdint_h" = xyes; then :
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_STDINT_H 1
20772 _ACEOF
20776 done
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20779 $as_echo_n "checking for SIZE_MAX... " >&6; }
20780 if ${gl_cv_size_max+:} false; then :
20781 $as_echo_n "(cached) " >&6
20782 else
20784 gl_cv_size_max=
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20788 #include <limits.h>
20789 #if HAVE_STDINT_H
20790 #include <stdint.h>
20791 #endif
20792 #ifdef SIZE_MAX
20793 Found it
20794 #endif
20796 _ACEOF
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 $EGREP "Found it" >/dev/null 2>&1; then :
20799 gl_cv_size_max=yes
20801 rm -f conftest*
20803 if test -z "$gl_cv_size_max"; then
20804 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
20805 #include <limits.h>"; then :
20807 else
20808 size_t_bits_minus_1=
20811 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20813 else
20814 fits_in_uint=
20817 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20818 if test $fits_in_uint = 1; then
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20821 #include <stddef.h>
20822 extern size_t foo;
20823 extern unsigned long foo;
20826 main (void)
20830 return 0;
20832 _ACEOF
20833 if ac_fn_c_try_compile "$LINENO"; then :
20834 fits_in_uint=0
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838 if test $fits_in_uint = 1; then
20839 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20840 else
20841 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20843 else
20844 gl_cv_size_max='((size_t)~(size_t)0)'
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20850 $as_echo "$gl_cv_size_max" >&6; }
20851 if test "$gl_cv_size_max" != yes; then
20853 cat >>confdefs.h <<_ACEOF
20854 #define SIZE_MAX $gl_cv_size_max
20855 _ACEOF
20862 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
20864 if test "x$ac_cv_have_decl_sleep" = xyes; then :
20865 ac_have_decl=1
20866 else
20867 ac_have_decl=0
20870 cat >>confdefs.h <<_ACEOF
20871 #define HAVE_DECL_SLEEP $ac_have_decl
20872 _ACEOF
20875 if test $ac_cv_have_decl_sleep != yes; then
20876 HAVE_SLEEP=0
20877 else
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
20879 $as_echo_n "checking for working sleep... " >&6; }
20880 if ${gl_cv_func_sleep_works+:} false; then :
20881 $as_echo_n "(cached) " >&6
20882 else
20883 if test "$cross_compiling" = yes; then :
20884 case "$host_os" in
20885 # Guess yes on glibc systems.
20886 *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
20887 # If we don't know, assume the worst.
20888 *) gl_cv_func_sleep_works="guessing no" ;;
20889 esac
20891 else
20892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20893 /* end confdefs.h. */
20895 #include <errno.h>
20896 #include <unistd.h>
20897 #include <signal.h>
20898 static void
20899 handle_alarm (int sig)
20901 if (sig != SIGALRM)
20902 _exit (2);
20906 main (void)
20909 /* Failure to compile this test due to missing alarm is okay,
20910 since all such platforms (mingw) also lack sleep. */
20911 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
20912 unsigned int remaining;
20913 signal (SIGALRM, handle_alarm);
20914 alarm (1);
20915 remaining = sleep (pentecost);
20916 if (remaining > pentecost)
20917 return 3;
20918 if (remaining <= pentecost - 10)
20919 return 4;
20920 return 0;
20923 return 0;
20925 _ACEOF
20926 if ac_fn_c_try_run "$LINENO"; then :
20927 gl_cv_func_sleep_works=yes
20928 else
20929 gl_cv_func_sleep_works=no
20931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20932 conftest.$ac_objext conftest.beam conftest.$ac_ext
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
20937 $as_echo "$gl_cv_func_sleep_works" >&6; }
20938 case "$gl_cv_func_sleep_works" in
20939 *yes) ;;
20941 REPLACE_SLEEP=1
20943 esac
20946 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
20955 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
20963 GNULIB_SLEEP=1
20969 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20975 $as_echo_n "checking for ssize_t... " >&6; }
20976 if ${gt_cv_ssize_t+:} false; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 #include <sys/types.h>
20983 main (void)
20985 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20986 return !x;
20988 return 0;
20990 _ACEOF
20991 if ac_fn_c_try_compile "$LINENO"; then :
20992 gt_cv_ssize_t=yes
20993 else
20994 gt_cv_ssize_t=no
20996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20999 $as_echo "$gt_cv_ssize_t" >&6; }
21000 if test $gt_cv_ssize_t = no; then
21002 $as_echo "#define ssize_t int" >>confdefs.h
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21008 $as_echo_n "checking for working stdalign.h... " >&6; }
21009 if ${gl_cv_header_working_stdalign_h+:} false; then :
21010 $as_echo_n "(cached) " >&6
21011 else
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014 #include <stdalign.h>
21015 #include <stddef.h>
21017 /* Test that alignof yields a result consistent with offsetof.
21018 This catches GCC bug 52023
21019 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21020 #ifdef __cplusplus
21021 template <class t> struct alignof_helper { char a; t b; };
21022 # define ao(type) offsetof (alignof_helper<type>, b)
21023 #else
21024 # define ao(type) offsetof (struct { char a; type b; }, b)
21025 #endif
21026 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21027 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21028 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21030 /* Test _Alignas only on platforms where gnulib can help. */
21031 #if \
21032 (__GNUC__ || __IBMC__ || __IBMCPP__ \
21033 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
21034 struct alignas_test { char c; char alignas (8) alignas_8; };
21035 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
21036 ? 1 : -1];
21037 #endif
21040 main (void)
21044 return 0;
21046 _ACEOF
21047 if ac_fn_c_try_compile "$LINENO"; then :
21048 gl_cv_header_working_stdalign_h=yes
21049 else
21050 gl_cv_header_working_stdalign_h=no
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21055 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21057 if test $gl_cv_header_working_stdalign_h = yes; then
21058 STDALIGN_H=''
21059 else
21060 STDALIGN_H='stdalign.h'
21064 if test -n "$STDALIGN_H"; then
21065 GL_GENERATE_STDALIGN_H_TRUE=
21066 GL_GENERATE_STDALIGN_H_FALSE='#'
21067 else
21068 GL_GENERATE_STDALIGN_H_TRUE='#'
21069 GL_GENERATE_STDALIGN_H_FALSE=
21076 # Define two additional variables used in the Makefile substitution.
21078 if test "$ac_cv_header_stdbool_h" = yes; then
21079 STDBOOL_H=''
21080 else
21081 STDBOOL_H='stdbool.h'
21084 if test -n "$STDBOOL_H"; then
21085 GL_GENERATE_STDBOOL_H_TRUE=
21086 GL_GENERATE_STDBOOL_H_FALSE='#'
21087 else
21088 GL_GENERATE_STDBOOL_H_TRUE='#'
21089 GL_GENERATE_STDBOOL_H_FALSE=
21093 if test "$ac_cv_type__Bool" = yes; then
21094 HAVE__BOOL=1
21095 else
21096 HAVE__BOOL=0
21103 STDDEF_H=
21104 if test $gt_cv_c_wchar_t = no; then
21105 HAVE_WCHAR_T=0
21106 STDDEF_H=stddef.h
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21109 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21110 if ${gl_cv_decl_null_works+:} false; then :
21111 $as_echo_n "(cached) " >&6
21112 else
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115 #include <stddef.h>
21116 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21119 main (void)
21123 return 0;
21125 _ACEOF
21126 if ac_fn_c_try_compile "$LINENO"; then :
21127 gl_cv_decl_null_works=yes
21128 else
21129 gl_cv_decl_null_works=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21134 $as_echo "$gl_cv_decl_null_works" >&6; }
21135 if test $gl_cv_decl_null_works = no; then
21136 REPLACE_NULL=1
21137 STDDEF_H=stddef.h
21140 if test -n "$STDDEF_H"; then
21141 GL_GENERATE_STDDEF_H_TRUE=
21142 GL_GENERATE_STDDEF_H_FALSE='#'
21143 else
21144 GL_GENERATE_STDDEF_H_TRUE='#'
21145 GL_GENERATE_STDDEF_H_FALSE=
21148 if test -n "$STDDEF_H"; then
21157 if test $gl_cv_have_include_next = yes; then
21158 gl_cv_next_stddef_h='<'stddef.h'>'
21159 else
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21161 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21162 if ${gl_cv_next_stddef_h+:} false; then :
21163 $as_echo_n "(cached) " >&6
21164 else
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21168 #include <stddef.h>
21170 _ACEOF
21171 case "$host_os" in
21172 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21173 *) gl_absname_cpp="$ac_cpp" ;;
21174 esac
21176 case "$host_os" in
21177 mingw*)
21178 gl_dirsep_regex='[/\\]'
21181 gl_dirsep_regex='\/'
21183 esac
21184 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21186 gl_header_literal_regex=`echo 'stddef.h' \
21187 | sed -e "$gl_make_literal_regex_sed"`
21188 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21189 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21190 s|^/[^/]|//&|
21194 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21195 sed -n "$gl_absolute_header_sed"`'"'
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21200 $as_echo "$gl_cv_next_stddef_h" >&6; }
21202 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21204 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21206 gl_next_as_first_directive='<'stddef.h'>'
21207 else
21208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21209 gl_next_as_first_directive=$gl_cv_next_stddef_h
21211 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21229 if test $gl_cv_have_include_next = yes; then
21230 gl_cv_next_stdio_h='<'stdio.h'>'
21231 else
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21233 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21234 if ${gl_cv_next_stdio_h+:} false; then :
21235 $as_echo_n "(cached) " >&6
21236 else
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21240 #include <stdio.h>
21242 _ACEOF
21243 case "$host_os" in
21244 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21245 *) gl_absname_cpp="$ac_cpp" ;;
21246 esac
21248 case "$host_os" in
21249 mingw*)
21250 gl_dirsep_regex='[/\\]'
21253 gl_dirsep_regex='\/'
21255 esac
21256 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21258 gl_header_literal_regex=`echo 'stdio.h' \
21259 | sed -e "$gl_make_literal_regex_sed"`
21260 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21262 s|^/[^/]|//&|
21266 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21267 sed -n "$gl_absolute_header_sed"`'"'
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21272 $as_echo "$gl_cv_next_stdio_h" >&6; }
21274 NEXT_STDIO_H=$gl_cv_next_stdio_h
21276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21278 gl_next_as_first_directive='<'stdio.h'>'
21279 else
21280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21281 gl_next_as_first_directive=$gl_cv_next_stdio_h
21283 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21289 GNULIB_FSCANF=1
21292 cat >>confdefs.h <<_ACEOF
21293 #define GNULIB_FSCANF 1
21294 _ACEOF
21297 GNULIB_SCANF=1
21300 cat >>confdefs.h <<_ACEOF
21301 #define GNULIB_SCANF 1
21302 _ACEOF
21305 GNULIB_FGETC=1
21306 GNULIB_GETC=1
21307 GNULIB_GETCHAR=1
21308 GNULIB_FGETS=1
21309 GNULIB_FREAD=1
21312 GNULIB_FPRINTF=1
21313 GNULIB_PRINTF=1
21314 GNULIB_VFPRINTF=1
21315 GNULIB_VPRINTF=1
21316 GNULIB_FPUTC=1
21317 GNULIB_PUTC=1
21318 GNULIB_PUTCHAR=1
21319 GNULIB_FPUTS=1
21320 GNULIB_PUTS=1
21321 GNULIB_FWRITE=1
21326 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
21327 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21329 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21330 if eval \${$as_gl_Symbol+:} false; then :
21331 $as_echo_n "(cached) " >&6
21332 else
21333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h. */
21335 #include <stdio.h>
21338 main (void)
21340 #undef $gl_func
21341 (void) $gl_func;
21343 return 0;
21345 _ACEOF
21346 if ac_fn_c_try_compile "$LINENO"; then :
21347 eval "$as_gl_Symbol=yes"
21348 else
21349 eval "$as_gl_Symbol=no"
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 eval ac_res=\$$as_gl_Symbol
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21355 $as_echo "$ac_res" >&6; }
21356 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21357 cat >>confdefs.h <<_ACEOF
21358 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21359 _ACEOF
21361 eval ac_cv_have_decl_$gl_func=yes
21363 done
21376 if test $gl_cv_have_include_next = yes; then
21377 gl_cv_next_stdlib_h='<'stdlib.h'>'
21378 else
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21380 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21381 if ${gl_cv_next_stdlib_h+:} false; then :
21382 $as_echo_n "(cached) " >&6
21383 else
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <stdlib.h>
21389 _ACEOF
21390 case "$host_os" in
21391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21392 *) gl_absname_cpp="$ac_cpp" ;;
21393 esac
21395 case "$host_os" in
21396 mingw*)
21397 gl_dirsep_regex='[/\\]'
21400 gl_dirsep_regex='\/'
21402 esac
21403 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21405 gl_header_literal_regex=`echo 'stdlib.h' \
21406 | sed -e "$gl_make_literal_regex_sed"`
21407 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21408 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21409 s|^/[^/]|//&|
21413 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21414 sed -n "$gl_absolute_header_sed"`'"'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21419 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21421 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21423 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21425 gl_next_as_first_directive='<'stdlib.h'>'
21426 else
21427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21428 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21430 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21437 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
21438 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21440 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21441 if eval \${$as_gl_Symbol+:} false; then :
21442 $as_echo_n "(cached) " >&6
21443 else
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <stdlib.h>
21447 #if HAVE_SYS_LOADAVG_H
21448 # include <sys/loadavg.h>
21449 #endif
21450 #if HAVE_RANDOM_H
21451 # include <random.h>
21452 #endif
21455 main (void)
21457 #undef $gl_func
21458 (void) $gl_func;
21460 return 0;
21462 _ACEOF
21463 if ac_fn_c_try_compile "$LINENO"; then :
21464 eval "$as_gl_Symbol=yes"
21465 else
21466 eval "$as_gl_Symbol=no"
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 eval ac_res=\$$as_gl_Symbol
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21472 $as_echo "$ac_res" >&6; }
21473 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21474 cat >>confdefs.h <<_ACEOF
21475 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21476 _ACEOF
21478 eval ac_cv_have_decl_$gl_func=yes
21480 done
21486 for ac_func in strcasecmp
21487 do :
21488 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21489 if test "x$ac_cv_func_strcasecmp" = xyes; then :
21490 cat >>confdefs.h <<_ACEOF
21491 #define HAVE_STRCASECMP 1
21492 _ACEOF
21495 done
21497 if test $ac_cv_func_strcasecmp = no; then
21498 HAVE_STRCASECMP=0
21503 for ac_func in strncasecmp
21504 do :
21505 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
21506 if test "x$ac_cv_func_strncasecmp" = xyes; then :
21507 cat >>confdefs.h <<_ACEOF
21508 #define HAVE_STRNCASECMP 1
21509 _ACEOF
21512 done
21514 if test $ac_cv_func_strncasecmp = yes; then
21515 HAVE_STRNCASECMP=1
21516 else
21517 HAVE_STRNCASECMP=0
21519 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
21520 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
21521 ac_have_decl=1
21522 else
21523 ac_have_decl=0
21526 cat >>confdefs.h <<_ACEOF
21527 #define HAVE_DECL_STRNCASECMP $ac_have_decl
21528 _ACEOF
21530 if test $ac_cv_have_decl_strncasecmp = no; then
21531 HAVE_DECL_STRNCASECMP=0
21535 if test $HAVE_STRCASECMP = 0; then
21544 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
21550 if test $HAVE_STRNCASECMP = 0; then
21559 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
21569 for ac_func in strchrnul
21570 do :
21571 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21572 if test "x$ac_cv_func_strchrnul" = xyes; then :
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_STRCHRNUL 1
21575 _ACEOF
21578 done
21580 if test $ac_cv_func_strchrnul = no; then
21581 HAVE_STRCHRNUL=0
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21584 $as_echo_n "checking whether strchrnul works... " >&6; }
21585 if ${gl_cv_func_strchrnul_works+:} false; then :
21586 $as_echo_n "(cached) " >&6
21587 else
21588 if test "$cross_compiling" = yes; then :
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21592 #if defined __CYGWIN__
21593 #include <cygwin/version.h>
21594 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21595 Lucky user
21596 #endif
21597 #else
21598 Lucky user
21599 #endif
21601 _ACEOF
21602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21603 $EGREP "Lucky user" >/dev/null 2>&1; then :
21604 gl_cv_func_strchrnul_works="guessing yes"
21605 else
21606 gl_cv_func_strchrnul_works="guessing no"
21608 rm -f conftest*
21611 else
21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h. */
21615 #include <string.h> /* for strchrnul */
21618 main (void)
21620 const char *buf = "a";
21621 return strchrnul (buf, 'b') != buf + 1;
21624 return 0;
21626 _ACEOF
21627 if ac_fn_c_try_run "$LINENO"; then :
21628 gl_cv_func_strchrnul_works=yes
21629 else
21630 gl_cv_func_strchrnul_works=no
21632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21633 conftest.$ac_objext conftest.beam conftest.$ac_ext
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21639 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21640 case "$gl_cv_func_strchrnul_works" in
21641 *yes) ;;
21642 *) REPLACE_STRCHRNUL=1 ;;
21643 esac
21646 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
21655 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
21664 GNULIB_STRCHRNUL=1
21670 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21679 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21681 $as_echo_n "checking for working strerror function... " >&6; }
21682 if ${gl_cv_func_working_strerror+:} false; then :
21683 $as_echo_n "(cached) " >&6
21684 else
21685 if test "$cross_compiling" = yes; then :
21686 case "$host_os" in
21687 # Guess yes on glibc systems.
21688 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
21689 # If we don't know, assume the worst.
21690 *) gl_cv_func_working_strerror="guessing no" ;;
21691 esac
21693 else
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h. */
21696 #include <string.h>
21699 main (void)
21701 if (!*strerror (-2)) return 1;
21703 return 0;
21705 _ACEOF
21706 if ac_fn_c_try_run "$LINENO"; then :
21707 gl_cv_func_working_strerror=yes
21708 else
21709 gl_cv_func_working_strerror=no
21711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21712 conftest.$ac_objext conftest.beam conftest.$ac_ext
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21718 $as_echo "$gl_cv_func_working_strerror" >&6; }
21719 case "$gl_cv_func_working_strerror" in
21720 *yes) ;;
21722 REPLACE_STRERROR=1
21724 esac
21726 else
21727 REPLACE_STRERROR=1
21730 if test $REPLACE_STRERROR = 1; then
21739 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
21744 cat >>confdefs.h <<_ACEOF
21745 #define GNULIB_STRERROR 1
21746 _ACEOF
21754 GNULIB_STRERROR=1
21760 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21766 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
21775 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
21781 if test $ac_cv_header_sys_socket_h != yes; then
21782 for ac_header in winsock2.h
21783 do :
21784 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_winsock2_h" = xyes; then :
21786 cat >>confdefs.h <<_ACEOF
21787 #define HAVE_WINSOCK2_H 1
21788 _ACEOF
21792 done
21795 if test "$ac_cv_header_winsock2_h" = yes; then
21796 HAVE_WINSOCK2_H=1
21797 UNISTD_H_HAVE_WINSOCK2_H=1
21798 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21799 else
21800 HAVE_WINSOCK2_H=0
21817 if test $ac_cv_have_decl_strndup = no; then
21818 HAVE_DECL_STRNDUP=0
21821 if test $ac_cv_func_strndup = yes; then
21822 HAVE_STRNDUP=1
21823 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21825 $as_echo_n "checking for working strndup... " >&6; }
21826 if ${gl_cv_func_strndup_works+:} false; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21829 if test "$cross_compiling" = yes; then :
21831 case $host_os in
21832 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
21833 *) gl_cv_func_strndup_works="guessing yes";;
21834 esac
21836 else
21837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21840 #include <string.h>
21841 #include <stdlib.h>
21843 main (void)
21846 #if !HAVE_DECL_STRNDUP
21847 extern
21848 #ifdef __cplusplus
21850 #endif
21851 char *strndup (const char *, size_t);
21852 #endif
21853 char *s;
21854 s = strndup ("some longer string", 15);
21855 free (s);
21856 s = strndup ("shorter string", 13);
21857 return s[13] != '\0';
21859 return 0;
21861 _ACEOF
21862 if ac_fn_c_try_run "$LINENO"; then :
21863 gl_cv_func_strndup_works=yes
21864 else
21865 gl_cv_func_strndup_works=no
21867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21868 conftest.$ac_objext conftest.beam conftest.$ac_ext
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21873 $as_echo "$gl_cv_func_strndup_works" >&6; }
21874 case $gl_cv_func_strndup_works in
21875 *no) REPLACE_STRNDUP=1 ;;
21876 esac
21877 else
21878 HAVE_STRNDUP=0
21881 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
21890 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
21898 GNULIB_STRNDUP=1
21904 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21914 if test $ac_cv_have_decl_strnlen = no; then
21915 HAVE_DECL_STRNLEN=0
21916 else
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21919 $as_echo_n "checking for working strnlen... " >&6; }
21920 if ${ac_cv_func_strnlen_working+:} false; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 if test "$cross_compiling" = yes; then :
21924 # Guess no on AIX systems, yes otherwise.
21925 case "$host_os" in
21926 aix*) ac_cv_func_strnlen_working=no;;
21927 *) ac_cv_func_strnlen_working=yes;;
21928 esac
21929 else
21930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21932 $ac_includes_default
21934 main (void)
21937 #define S "foobar"
21938 #define S_LEN (sizeof S - 1)
21940 /* At least one implementation is buggy: that of AIX 4.3 would
21941 give strnlen (S, 1) == 3. */
21943 int i;
21944 for (i = 0; i < S_LEN + 1; ++i)
21946 int expected = i <= S_LEN ? i : S_LEN;
21947 if (strnlen (S, i) != expected)
21948 return 1;
21950 return 0;
21953 return 0;
21955 _ACEOF
21956 if ac_fn_c_try_run "$LINENO"; then :
21957 ac_cv_func_strnlen_working=yes
21958 else
21959 ac_cv_func_strnlen_working=no
21961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21962 conftest.$ac_objext conftest.beam conftest.$ac_ext
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21967 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21968 test $ac_cv_func_strnlen_working = no && :
21971 if test $ac_cv_func_strnlen_working = no; then
21972 REPLACE_STRNLEN=1
21976 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
21985 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
21994 GNULIB_STRNLEN=1
22000 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22008 if test $ac_cv_header_sysexits_h = yes; then
22009 HAVE_SYSEXITS_H=1
22019 if test $gl_cv_have_include_next = yes; then
22020 gl_cv_next_sysexits_h='<'sysexits.h'>'
22021 else
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
22023 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
22024 if ${gl_cv_next_sysexits_h+:} false; then :
22025 $as_echo_n "(cached) " >&6
22026 else
22028 if test $ac_cv_header_sysexits_h = yes; then
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <sysexits.h>
22035 _ACEOF
22036 case "$host_os" in
22037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22038 *) gl_absname_cpp="$ac_cpp" ;;
22039 esac
22041 case "$host_os" in
22042 mingw*)
22043 gl_dirsep_regex='[/\\]'
22046 gl_dirsep_regex='\/'
22048 esac
22049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22051 gl_header_literal_regex=`echo 'sysexits.h' \
22052 | sed -e "$gl_make_literal_regex_sed"`
22053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22055 s|^/[^/]|//&|
22059 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22060 sed -n "$gl_absolute_header_sed"`'"'
22061 else
22062 gl_cv_next_sysexits_h='<'sysexits.h'>'
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
22068 $as_echo "$gl_cv_next_sysexits_h" >&6; }
22070 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
22072 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22074 gl_next_as_first_directive='<'sysexits.h'>'
22075 else
22076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22077 gl_next_as_first_directive=$gl_cv_next_sysexits_h
22079 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22086 #include <sysexits.h>
22088 main (void)
22090 switch (0)
22092 case EX_OK:
22093 case EX_USAGE:
22094 case EX_DATAERR:
22095 case EX_NOINPUT:
22096 case EX_NOUSER:
22097 case EX_NOHOST:
22098 case EX_UNAVAILABLE:
22099 case EX_SOFTWARE:
22100 case EX_OSERR:
22101 case EX_OSFILE:
22102 case EX_CANTCREAT:
22103 case EX_IOERR:
22104 case EX_TEMPFAIL:
22105 case EX_PROTOCOL:
22106 case EX_NOPERM:
22107 case EX_CONFIG:
22108 break;
22112 return 0;
22114 _ACEOF
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116 SYSEXITS_H=
22117 else
22118 SYSEXITS_H=sysexits.h
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 else
22122 HAVE_SYSEXITS_H=0
22123 SYSEXITS_H=sysexits.h
22127 if test -n "$SYSEXITS_H"; then
22128 GL_GENERATE_SYSEXITS_H_TRUE=
22129 GL_GENERATE_SYSEXITS_H_FALSE='#'
22130 else
22131 GL_GENERATE_SYSEXITS_H_TRUE='#'
22132 GL_GENERATE_SYSEXITS_H_FALSE=
22148 if test $gl_cv_have_include_next = yes; then
22149 gl_cv_next_unistd_h='<'unistd.h'>'
22150 else
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22152 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22153 if ${gl_cv_next_unistd_h+:} false; then :
22154 $as_echo_n "(cached) " >&6
22155 else
22157 if test $ac_cv_header_unistd_h = yes; then
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <unistd.h>
22164 _ACEOF
22165 case "$host_os" in
22166 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22167 *) gl_absname_cpp="$ac_cpp" ;;
22168 esac
22170 case "$host_os" in
22171 mingw*)
22172 gl_dirsep_regex='[/\\]'
22175 gl_dirsep_regex='\/'
22177 esac
22178 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22180 gl_header_literal_regex=`echo 'unistd.h' \
22181 | sed -e "$gl_make_literal_regex_sed"`
22182 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22184 s|^/[^/]|//&|
22188 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22189 sed -n "$gl_absolute_header_sed"`'"'
22190 else
22191 gl_cv_next_unistd_h='<'unistd.h'>'
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22197 $as_echo "$gl_cv_next_unistd_h" >&6; }
22199 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22203 gl_next_as_first_directive='<'unistd.h'>'
22204 else
22205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22206 gl_next_as_first_directive=$gl_cv_next_unistd_h
22208 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22213 if test $ac_cv_header_unistd_h = yes; then
22214 HAVE_UNISTD_H=1
22215 else
22216 HAVE_UNISTD_H=0
22225 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
22226 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22228 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22229 if eval \${$as_gl_Symbol+:} false; then :
22230 $as_echo_n "(cached) " >&6
22231 else
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233 /* end confdefs.h. */
22235 #if HAVE_UNISTD_H
22236 # include <unistd.h>
22237 #endif
22238 /* Some systems declare various items in the wrong headers. */
22239 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22240 # include <fcntl.h>
22241 # include <stdio.h>
22242 # include <stdlib.h>
22243 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22244 # include <io.h>
22245 # endif
22246 #endif
22249 main (void)
22251 #undef $gl_func
22252 (void) $gl_func;
22254 return 0;
22256 _ACEOF
22257 if ac_fn_c_try_compile "$LINENO"; then :
22258 eval "$as_gl_Symbol=yes"
22259 else
22260 eval "$as_gl_Symbol=no"
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 eval ac_res=\$$as_gl_Symbol
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22266 $as_echo "$ac_res" >&6; }
22267 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22268 cat >>confdefs.h <<_ACEOF
22269 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22270 _ACEOF
22272 eval ac_cv_have_decl_$gl_func=yes
22274 done
22279 if { test "$HAVE_LIBUNISTRING" != yes \
22280 || {
22284 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22285 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22286 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22287 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22288 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22297 }; then
22298 LIBUNISTRING_UNITYPES_H='unitypes.h'
22299 else
22300 LIBUNISTRING_UNITYPES_H=
22306 if { test "$HAVE_LIBUNISTRING" != yes \
22307 || {
22311 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22312 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22313 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22314 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22315 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22324 }; then
22325 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
22326 else
22327 LIBUNISTRING_UNIWIDTH_H=
22333 if { test "$HAVE_LIBUNISTRING" != yes \
22334 || {
22338 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22339 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22340 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22341 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22342 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
22351 }; then
22352 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
22353 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
22354 else
22355 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
22356 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
22362 if test $ac_cv_func_vasnprintf = no; then
22373 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
22383 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
22393 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
22403 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
22405 if test $ac_cv_func_vasnprintf = yes; then
22407 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
22421 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22422 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22424 else
22426 $as_echo "#define ptrdiff_t long" >>confdefs.h
22441 gl_cv_func_vsnprintf_usable=no
22442 for ac_func in vsnprintf
22443 do :
22444 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22445 if test "x$ac_cv_func_vsnprintf" = xyes; then :
22446 cat >>confdefs.h <<_ACEOF
22447 #define HAVE_VSNPRINTF 1
22448 _ACEOF
22451 done
22453 if test $ac_cv_func_vsnprintf = yes; then
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22458 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22459 if ${gl_cv_func_snprintf_size1+:} false; then :
22460 $as_echo_n "(cached) " >&6
22461 else
22463 if test "$cross_compiling" = yes; then :
22464 gl_cv_func_snprintf_size1="guessing yes"
22465 else
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22469 #include <stdio.h>
22470 #if HAVE_SNPRINTF
22471 # define my_snprintf snprintf
22472 #else
22473 # include <stdarg.h>
22474 static int my_snprintf (char *buf, int size, const char *format, ...)
22476 va_list args;
22477 int ret;
22478 va_start (args, format);
22479 ret = vsnprintf (buf, size, format, args);
22480 va_end (args);
22481 return ret;
22483 #endif
22484 int main()
22486 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22487 my_snprintf (buf, 1, "%d", 12345);
22488 return buf[1] != 'E';
22490 _ACEOF
22491 if ac_fn_c_try_run "$LINENO"; then :
22492 gl_cv_func_snprintf_size1=yes
22493 else
22494 gl_cv_func_snprintf_size1=no
22496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22497 conftest.$ac_objext conftest.beam conftest.$ac_ext
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22503 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22505 case "$gl_cv_func_snprintf_size1" in
22506 *yes)
22508 case "$gl_cv_func_snprintf_retval_c99" in
22509 *yes)
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22513 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22514 if ${gl_cv_func_printf_positions+:} false; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22518 if test "$cross_compiling" = yes; then :
22520 case "$host_os" in
22521 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22522 gl_cv_func_printf_positions="guessing no";;
22523 beos*) gl_cv_func_printf_positions="guessing no";;
22524 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22525 *) gl_cv_func_printf_positions="guessing yes";;
22526 esac
22528 else
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h. */
22532 #include <stdio.h>
22533 #include <string.h>
22534 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22535 dollar expansion (possibly an autoconf bug). */
22536 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22537 static char buf[100];
22538 int main ()
22540 sprintf (buf, format, 33, 55);
22541 return (strcmp (buf, "55 33") != 0);
22543 _ACEOF
22544 if ac_fn_c_try_run "$LINENO"; then :
22545 gl_cv_func_printf_positions=yes
22546 else
22547 gl_cv_func_printf_positions=no
22549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22550 conftest.$ac_objext conftest.beam conftest.$ac_ext
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22556 $as_echo "$gl_cv_func_printf_positions" >&6; }
22558 case "$gl_cv_func_printf_positions" in
22559 *yes)
22560 gl_cv_func_vsnprintf_usable=yes
22562 esac
22564 esac
22566 esac
22568 if test $gl_cv_func_vsnprintf_usable = no; then
22579 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
22581 if test $ac_cv_func_vsnprintf = yes; then
22582 REPLACE_VSNPRINTF=1
22588 if test $ac_cv_have_decl_vsnprintf = no; then
22589 HAVE_DECL_VSNPRINTF=0
22597 GNULIB_VSNPRINTF=1
22603 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22619 if test $gl_cv_have_include_next = yes; then
22620 gl_cv_next_wchar_h='<'wchar.h'>'
22621 else
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22623 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22624 if ${gl_cv_next_wchar_h+:} false; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22628 if test $ac_cv_header_wchar_h = yes; then
22631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22632 /* end confdefs.h. */
22633 #include <wchar.h>
22635 _ACEOF
22636 case "$host_os" in
22637 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22638 *) gl_absname_cpp="$ac_cpp" ;;
22639 esac
22641 case "$host_os" in
22642 mingw*)
22643 gl_dirsep_regex='[/\\]'
22646 gl_dirsep_regex='\/'
22648 esac
22649 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22651 gl_header_literal_regex=`echo 'wchar.h' \
22652 | sed -e "$gl_make_literal_regex_sed"`
22653 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22654 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22655 s|^/[^/]|//&|
22659 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22660 sed -n "$gl_absolute_header_sed"`'"'
22661 else
22662 gl_cv_next_wchar_h='<'wchar.h'>'
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22668 $as_echo "$gl_cv_next_wchar_h" >&6; }
22670 NEXT_WCHAR_H=$gl_cv_next_wchar_h
22672 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22674 gl_next_as_first_directive='<'wchar.h'>'
22675 else
22676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22677 gl_next_as_first_directive=$gl_cv_next_wchar_h
22679 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
22684 if test $ac_cv_header_wchar_h = yes; then
22685 HAVE_WCHAR_H=1
22686 else
22687 HAVE_WCHAR_H=0
22694 if test $gt_cv_c_wint_t = yes; then
22695 HAVE_WINT_T=1
22696 else
22697 HAVE_WINT_T=0
22702 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
22703 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22705 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22706 if eval \${$as_gl_Symbol+:} false; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22712 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22713 <wchar.h>.
22714 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22715 included before <wchar.h>. */
22716 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22717 # include <stddef.h>
22718 # include <stdio.h>
22719 # include <time.h>
22720 #endif
22721 #include <wchar.h>
22724 main (void)
22726 #undef $gl_func
22727 (void) $gl_func;
22729 return 0;
22731 _ACEOF
22732 if ac_fn_c_try_compile "$LINENO"; then :
22733 eval "$as_gl_Symbol=yes"
22734 else
22735 eval "$as_gl_Symbol=no"
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 eval ac_res=\$$as_gl_Symbol
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22741 $as_echo "$ac_res" >&6; }
22742 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22743 cat >>confdefs.h <<_ACEOF
22744 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22745 _ACEOF
22747 eval ac_cv_have_decl_$gl_func=yes
22749 done
22762 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22767 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22768 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
22769 $as_echo_n "(cached) " >&6
22770 else
22772 case "$host_os" in
22773 # Guess no on AIX and OSF/1.
22774 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
22775 # Guess yes otherwise.
22776 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
22777 esac
22778 if test $LOCALE_JA != none; then
22779 if test "$cross_compiling" = yes; then :
22781 else
22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22785 #include <locale.h>
22786 #include <string.h>
22787 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22788 <wchar.h>.
22789 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22790 included before <wchar.h>. */
22791 #include <stddef.h>
22792 #include <stdio.h>
22793 #include <time.h>
22794 #include <wchar.h>
22795 int main ()
22797 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22799 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22800 mbstate_t state;
22801 wchar_t wc;
22803 memset (&state, '\0', sizeof (mbstate_t));
22804 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22805 if (mbsinit (&state))
22806 return 1;
22808 return 0;
22810 _ACEOF
22811 if ac_fn_c_try_run "$LINENO"; then :
22812 gl_cv_func_mbrtowc_incomplete_state=yes
22813 else
22814 gl_cv_func_mbrtowc_incomplete_state=no
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22817 conftest.$ac_objext conftest.beam conftest.$ac_ext
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22824 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22830 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22831 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
22832 $as_echo_n "(cached) " >&6
22833 else
22835 case "$host_os" in
22836 # Guess no on Solaris 8.
22837 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
22838 # Guess yes otherwise.
22839 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
22840 esac
22841 if test $LOCALE_ZH_CN != none; then
22842 if test "$cross_compiling" = yes; then :
22844 else
22845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22846 /* end confdefs.h. */
22848 #include <locale.h>
22849 #include <stdlib.h>
22850 #include <string.h>
22851 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22852 <wchar.h>.
22853 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854 included before <wchar.h>. */
22855 #include <stddef.h>
22856 #include <stdio.h>
22857 #include <time.h>
22858 #include <wchar.h>
22859 int main ()
22861 /* This fails on Solaris 8:
22862 mbrtowc returns 2, and sets wc to 0x00F0.
22863 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22864 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22866 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22867 mbstate_t state;
22868 wchar_t wc;
22870 memset (&state, '\0', sizeof (mbstate_t));
22871 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22872 && mbtowc (&wc, input + 3, 6) == 4)
22873 return 1;
22875 return 0;
22877 _ACEOF
22878 if ac_fn_c_try_run "$LINENO"; then :
22879 gl_cv_func_mbrtowc_sanitycheck=yes
22880 else
22881 gl_cv_func_mbrtowc_sanitycheck=no
22883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22884 conftest.$ac_objext conftest.beam conftest.$ac_ext
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22891 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22893 REPLACE_MBSTATE_T=0
22894 case "$gl_cv_func_mbrtowc_incomplete_state" in
22895 *yes) ;;
22896 *) REPLACE_MBSTATE_T=1 ;;
22897 esac
22898 case "$gl_cv_func_mbrtowc_sanitycheck" in
22899 *yes) ;;
22900 *) REPLACE_MBSTATE_T=1 ;;
22901 esac
22902 else
22903 REPLACE_MBSTATE_T=1
22908 if test $ac_cv_func_wcrtomb = no; then
22909 HAVE_WCRTOMB=0
22910 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
22911 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22912 <wchar.h>.
22913 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22914 included before <wchar.h>. */
22915 #include <stddef.h>
22916 #include <stdio.h>
22917 #include <time.h>
22918 #include <wchar.h>
22921 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
22922 ac_have_decl=1
22923 else
22924 ac_have_decl=0
22927 cat >>confdefs.h <<_ACEOF
22928 #define HAVE_DECL_WCRTOMB $ac_have_decl
22929 _ACEOF
22931 if test $ac_cv_have_decl_wcrtomb = yes; then
22932 REPLACE_WCRTOMB=1
22934 else
22935 if test $REPLACE_MBSTATE_T = 1; then
22936 REPLACE_WCRTOMB=1
22937 else
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
22944 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
22945 if ${gl_cv_func_wcrtomb_retval+:} false; then :
22946 $as_echo_n "(cached) " >&6
22947 else
22949 case "$host_os" in
22950 # Guess no on AIX 4, OSF/1 and Solaris.
22951 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
22952 # Guess yes otherwise.
22953 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
22954 esac
22955 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
22956 if test "$cross_compiling" = yes; then :
22958 else
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22962 #include <locale.h>
22963 #include <string.h>
22964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22965 <wchar.h>.
22966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22967 included before <wchar.h>. */
22968 #include <stddef.h>
22969 #include <stdio.h>
22970 #include <time.h>
22971 #include <wchar.h>
22972 int main ()
22974 int result = 0;
22975 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22977 if (wcrtomb (NULL, 0, NULL) != 1)
22978 result |= 1;
22980 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22982 if (wcrtomb (NULL, 0, NULL) != 1)
22983 result |= 2;
22985 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22987 if (wcrtomb (NULL, 0, NULL) != 1)
22988 result |= 4;
22990 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22992 if (wcrtomb (NULL, 0, NULL) != 1)
22993 result |= 8;
22995 return result;
22997 _ACEOF
22998 if ac_fn_c_try_run "$LINENO"; then :
22999 gl_cv_func_wcrtomb_retval=yes
23000 else
23001 gl_cv_func_wcrtomb_retval=no
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
23011 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
23012 case "$gl_cv_func_wcrtomb_retval" in
23013 *yes) ;;
23014 *) REPLACE_WCRTOMB=1 ;;
23015 esac
23019 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
23028 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
23039 GNULIB_WCRTOMB=1
23045 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
23054 if test $ac_cv_func_iswcntrl = yes; then
23055 HAVE_ISWCNTRL=1
23056 else
23057 HAVE_ISWCNTRL=0
23062 if test $gt_cv_c_wint_t = yes; then
23063 HAVE_WINT_T=1
23064 else
23065 HAVE_WINT_T=0
23078 if test $gl_cv_have_include_next = yes; then
23079 gl_cv_next_wctype_h='<'wctype.h'>'
23080 else
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23082 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23083 if ${gl_cv_next_wctype_h+:} false; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23087 if test $ac_cv_header_wctype_h = yes; then
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23092 #include <wctype.h>
23094 _ACEOF
23095 case "$host_os" in
23096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23097 *) gl_absname_cpp="$ac_cpp" ;;
23098 esac
23100 case "$host_os" in
23101 mingw*)
23102 gl_dirsep_regex='[/\\]'
23105 gl_dirsep_regex='\/'
23107 esac
23108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23110 gl_header_literal_regex=`echo 'wctype.h' \
23111 | sed -e "$gl_make_literal_regex_sed"`
23112 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23113 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23114 s|^/[^/]|//&|
23118 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23119 sed -n "$gl_absolute_header_sed"`'"'
23120 else
23121 gl_cv_next_wctype_h='<'wctype.h'>'
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23127 $as_echo "$gl_cv_next_wctype_h" >&6; }
23129 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
23131 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23133 gl_next_as_first_directive='<'wctype.h'>'
23134 else
23135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23136 gl_next_as_first_directive=$gl_cv_next_wctype_h
23138 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
23143 if test $ac_cv_header_wctype_h = yes; then
23144 if test $ac_cv_func_iswcntrl = yes; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23146 $as_echo_n "checking whether iswcntrl works... " >&6; }
23147 if ${gl_cv_func_iswcntrl_works+:} false; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23151 if test "$cross_compiling" = yes; then :
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23154 #include <stdlib.h>
23155 #if __GNU_LIBRARY__ == 1
23156 Linux libc5 i18n is broken.
23157 #endif
23159 main (void)
23163 return 0;
23165 _ACEOF
23166 if ac_fn_c_try_compile "$LINENO"; then :
23167 gl_cv_func_iswcntrl_works="guessing yes"
23168 else
23169 gl_cv_func_iswcntrl_works="guessing no"
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173 else
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23177 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23178 included before <wchar.h>.
23179 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23180 must be included before <wchar.h>. */
23181 #include <stddef.h>
23182 #include <stdio.h>
23183 #include <time.h>
23184 #include <wchar.h>
23185 #include <wctype.h>
23186 int main () { return iswprint ('x') == 0; }
23188 _ACEOF
23189 if ac_fn_c_try_run "$LINENO"; then :
23190 gl_cv_func_iswcntrl_works=yes
23191 else
23192 gl_cv_func_iswcntrl_works=no
23194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23195 conftest.$ac_objext conftest.beam conftest.$ac_ext
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23201 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23203 HAVE_WCTYPE_H=1
23204 else
23205 HAVE_WCTYPE_H=0
23209 case "$gl_cv_func_iswcntrl_works" in
23210 *yes) REPLACE_ISWCNTRL=0 ;;
23211 *) REPLACE_ISWCNTRL=1 ;;
23212 esac
23215 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
23219 if test $REPLACE_ISWCNTRL = 1; then
23220 REPLACE_TOWLOWER=1
23221 else
23222 for ac_func in towlower
23223 do :
23224 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
23225 if test "x$ac_cv_func_towlower" = xyes; then :
23226 cat >>confdefs.h <<_ACEOF
23227 #define HAVE_TOWLOWER 1
23228 _ACEOF
23231 done
23233 if test $ac_cv_func_towlower = yes; then
23234 REPLACE_TOWLOWER=0
23235 else
23236 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23237 included before <wchar.h>.
23238 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23239 must be included before <wchar.h>. */
23240 #include <stddef.h>
23241 #include <stdio.h>
23242 #include <time.h>
23243 #include <wchar.h>
23244 #if HAVE_WCTYPE_H
23245 # include <wctype.h>
23246 #endif
23249 if test "x$ac_cv_have_decl_towlower" = xyes; then :
23250 ac_have_decl=1
23251 else
23252 ac_have_decl=0
23255 cat >>confdefs.h <<_ACEOF
23256 #define HAVE_DECL_TOWLOWER $ac_have_decl
23257 _ACEOF
23259 if test $ac_cv_have_decl_towlower = yes; then
23260 REPLACE_TOWLOWER=1
23261 else
23262 REPLACE_TOWLOWER=0
23268 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23273 $as_echo_n "checking for wctype_t... " >&6; }
23274 if ${gl_cv_type_wctype_t+:} false; then :
23275 $as_echo_n "(cached) " >&6
23276 else
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23279 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23280 included before <wchar.h>.
23281 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23282 must be included before <wchar.h>. */
23283 #include <stddef.h>
23284 #include <stdio.h>
23285 #include <time.h>
23286 #include <wchar.h>
23287 #if HAVE_WCTYPE_H
23288 # include <wctype.h>
23289 #endif
23290 wctype_t a;
23293 main (void)
23297 return 0;
23299 _ACEOF
23300 if ac_fn_c_try_compile "$LINENO"; then :
23301 gl_cv_type_wctype_t=yes
23302 else
23303 gl_cv_type_wctype_t=no
23305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23309 $as_echo "$gl_cv_type_wctype_t" >&6; }
23310 if test $gl_cv_type_wctype_t = no; then
23311 HAVE_WCTYPE_T=0
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23315 $as_echo_n "checking for wctrans_t... " >&6; }
23316 if ${gl_cv_type_wctrans_t+:} false; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320 /* end confdefs.h. */
23321 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23322 included before <wchar.h>.
23323 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23324 must be included before <wchar.h>. */
23325 #include <stddef.h>
23326 #include <stdio.h>
23327 #include <time.h>
23328 #include <wchar.h>
23329 #include <wctype.h>
23330 wctrans_t a;
23333 main (void)
23337 return 0;
23339 _ACEOF
23340 if ac_fn_c_try_compile "$LINENO"; then :
23341 gl_cv_type_wctrans_t=yes
23342 else
23343 gl_cv_type_wctrans_t=no
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23349 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23350 if test $gl_cv_type_wctrans_t = no; then
23351 HAVE_WCTRANS_T=0
23355 for gl_func in wctype iswctype wctrans towctrans ; do
23356 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23358 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23359 if eval \${$as_gl_Symbol+:} false; then :
23360 $as_echo_n "(cached) " >&6
23361 else
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23366 <wchar.h>.
23367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23368 included before <wchar.h>. */
23369 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23370 # include <stddef.h>
23371 # include <stdio.h>
23372 # include <time.h>
23373 # include <wchar.h>
23374 #endif
23375 #include <wctype.h>
23378 main (void)
23380 #undef $gl_func
23381 (void) $gl_func;
23383 return 0;
23385 _ACEOF
23386 if ac_fn_c_try_compile "$LINENO"; then :
23387 eval "$as_gl_Symbol=yes"
23388 else
23389 eval "$as_gl_Symbol=no"
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 eval ac_res=\$$as_gl_Symbol
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23395 $as_echo "$ac_res" >&6; }
23396 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23397 cat >>confdefs.h <<_ACEOF
23398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23399 _ACEOF
23401 eval ac_cv_have_decl_$gl_func=yes
23403 done
23417 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
23418 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23419 #include <string.h>
23420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23421 <wchar.h>.
23422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23423 before <wchar.h>. */
23424 #include <stddef.h>
23425 #include <stdio.h>
23426 #include <time.h>
23427 #include <wchar.h>
23430 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
23431 ac_have_decl=1
23432 else
23433 ac_have_decl=0
23436 cat >>confdefs.h <<_ACEOF
23437 #define HAVE_DECL_WCWIDTH $ac_have_decl
23438 _ACEOF
23440 if test $ac_cv_have_decl_wcwidth != yes; then
23441 HAVE_DECL_WCWIDTH=0
23444 if test $ac_cv_func_wcwidth = yes; then
23445 HAVE_WCWIDTH=1
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
23447 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
23448 if ${gl_cv_func_wcwidth_works+:} false; then :
23449 $as_echo_n "(cached) " >&6
23450 else
23452 if test "$cross_compiling" = yes; then :
23454 case "$host_os" in
23455 # Guess yes on glibc and AIX 7 systems.
23456 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
23457 *) gl_cv_func_wcwidth_works="guessing no";;
23458 esac
23460 else
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23464 #include <locale.h>
23465 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23466 #include <string.h>
23467 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23468 <wchar.h>.
23469 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23470 before <wchar.h>. */
23471 #include <stddef.h>
23472 #include <stdio.h>
23473 #include <time.h>
23474 #include <wchar.h>
23475 #if !HAVE_DECL_WCWIDTH
23476 extern
23477 # ifdef __cplusplus
23479 # endif
23480 int wcwidth (int);
23481 #endif
23482 int main ()
23484 int result = 0;
23485 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
23487 if (wcwidth (0x0301) > 0)
23488 result |= 1;
23489 if (wcwidth (0x05B0) > 0)
23490 result |= 2;
23491 if (wcwidth (0x200B) > 0)
23492 result |= 4;
23494 return result;
23496 _ACEOF
23497 if ac_fn_c_try_run "$LINENO"; then :
23498 gl_cv_func_wcwidth_works=yes
23499 else
23500 gl_cv_func_wcwidth_works=no
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23503 conftest.$ac_objext conftest.beam conftest.$ac_ext
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
23509 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
23510 case "$gl_cv_func_wcwidth_works" in
23511 *yes) ;;
23512 *no) REPLACE_WCWIDTH=1 ;;
23513 esac
23514 else
23515 HAVE_WCWIDTH=0
23518 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
23527 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
23535 GNULIB_WCWIDTH=1
23541 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
23547 for ac_header in stdint.h
23548 do :
23549 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23550 if test "x$ac_cv_header_stdint_h" = xyes; then :
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_STDINT_H 1
23553 _ACEOF
23557 done
23560 # End of code from modules
23570 gltests_libdeps=
23571 gltests_ltlibdeps=
23581 gl_source_base='tests'
23582 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
23584 gl_module_indicator_condition=$gltests_WITNESS
23594 LIBGNU_LIBDEPS="$gl_libdeps"
23596 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23600 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"
23601 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"
23603 HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
23606 $as_echo_n "checking which extra warnings work... " >&6; }
23607 if ${grub_cv_cc_w_extra_flags+:} false; then :
23608 $as_echo_n "(cached) " >&6
23609 else
23611 SAVED_CFLAGS="$CFLAGS"
23612 grub_cv_cc_w_extra_flags=
23613 for x in $EXTRA_WARN_FLAGS; do
23614 CFLAGS="$HOST_CFLAGS $x -Werror"
23615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23619 main (void)
23623 return 0;
23625 _ACEOF
23626 if ac_fn_c_try_link "$LINENO"; then :
23627 flag=1
23628 else
23629 flag=0
23631 rm -f core conftest.err conftest.$ac_objext \
23632 conftest$ac_exeext conftest.$ac_ext
23633 if test x$flag = x1 ; then
23634 grub_cv_cc_w_extra_flags="$grub_cv_cc_w_extra_flags $x"
23636 done
23637 CFLAGS="$SAVED_CFLAGS"
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
23641 $as_echo "$grub_cv_cc_w_extra_flags" >&6; }
23643 HOST_CFLAGS="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
23646 # Check for target programs.
23649 # Find tools for the target.
23650 if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
23651 tmp_ac_tool_prefix="$ac_tool_prefix"
23652 ac_tool_prefix=$target_alias-
23654 if test -n "$ac_tool_prefix"; then
23655 for ac_prog in gcc egcs cc
23657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if ${ac_cv_prog_TARGET_CC+:} false; then :
23662 $as_echo_n "(cached) " >&6
23663 else
23664 if test -n "$TARGET_CC"; then
23665 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
23666 else
23667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23668 for as_dir in $PATH
23670 IFS=$as_save_IFS
23671 test -z "$as_dir" && as_dir=.
23672 for ac_exec_ext in '' $ac_executable_extensions; do
23673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23674 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
23675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23676 break 2
23678 done
23679 done
23680 IFS=$as_save_IFS
23684 TARGET_CC=$ac_cv_prog_TARGET_CC
23685 if test -n "$TARGET_CC"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
23687 $as_echo "$TARGET_CC" >&6; }
23688 else
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23694 test -n "$TARGET_CC" && break
23695 done
23697 if test -z "$TARGET_CC"; then
23698 ac_ct_TARGET_CC=$TARGET_CC
23699 for ac_prog in gcc egcs cc
23701 # Extract the first word of "$ac_prog", so it can be a program name with args.
23702 set dummy $ac_prog; ac_word=$2
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23704 $as_echo_n "checking for $ac_word... " >&6; }
23705 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false; then :
23706 $as_echo_n "(cached) " >&6
23707 else
23708 if test -n "$ac_ct_TARGET_CC"; then
23709 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
23710 else
23711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23712 for as_dir in $PATH
23714 IFS=$as_save_IFS
23715 test -z "$as_dir" && as_dir=.
23716 for ac_exec_ext in '' $ac_executable_extensions; do
23717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23718 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
23719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23720 break 2
23722 done
23723 done
23724 IFS=$as_save_IFS
23728 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
23729 if test -n "$ac_ct_TARGET_CC"; then
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
23731 $as_echo "$ac_ct_TARGET_CC" >&6; }
23732 else
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23734 $as_echo "no" >&6; }
23738 test -n "$ac_ct_TARGET_CC" && break
23739 done
23741 if test "x$ac_ct_TARGET_CC" = x; then
23742 TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
23743 else
23744 case $cross_compiling:$ac_tool_warned in
23745 yes:)
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23748 ac_tool_warned=yes ;;
23749 esac
23750 TARGET_CC=$ac_ct_TARGET_CC
23754 if test -n "$ac_tool_prefix"; then
23755 for ac_prog in gobjcopy objcopy
23757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23760 $as_echo_n "checking for $ac_word... " >&6; }
23761 if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 if test -n "$TARGET_OBJCOPY"; then
23765 ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
23766 else
23767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23768 for as_dir in $PATH
23770 IFS=$as_save_IFS
23771 test -z "$as_dir" && as_dir=.
23772 for ac_exec_ext in '' $ac_executable_extensions; do
23773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23774 ac_cv_prog_TARGET_OBJCOPY="$ac_tool_prefix$ac_prog"
23775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23776 break 2
23778 done
23779 done
23780 IFS=$as_save_IFS
23784 TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
23785 if test -n "$TARGET_OBJCOPY"; then
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
23787 $as_echo "$TARGET_OBJCOPY" >&6; }
23788 else
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23790 $as_echo "no" >&6; }
23794 test -n "$TARGET_OBJCOPY" && break
23795 done
23797 if test -z "$TARGET_OBJCOPY"; then
23798 ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
23799 for ac_prog in gobjcopy objcopy
23801 # Extract the first word of "$ac_prog", so it can be a program name with args.
23802 set dummy $ac_prog; ac_word=$2
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23804 $as_echo_n "checking for $ac_word... " >&6; }
23805 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
23806 $as_echo_n "(cached) " >&6
23807 else
23808 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23809 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
23810 else
23811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23812 for as_dir in $PATH
23814 IFS=$as_save_IFS
23815 test -z "$as_dir" && as_dir=.
23816 for ac_exec_ext in '' $ac_executable_extensions; do
23817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23818 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_prog"
23819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23820 break 2
23822 done
23823 done
23824 IFS=$as_save_IFS
23828 ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
23829 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
23831 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
23832 else
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23834 $as_echo "no" >&6; }
23838 test -n "$ac_ct_TARGET_OBJCOPY" && break
23839 done
23841 if test "x$ac_ct_TARGET_OBJCOPY" = x; then
23842 TARGET_OBJCOPY=""
23843 else
23844 case $cross_compiling:$ac_tool_warned in
23845 yes:)
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23848 ac_tool_warned=yes ;;
23849 esac
23850 TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
23854 if test -n "$ac_tool_prefix"; then
23855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23856 set dummy ${ac_tool_prefix}strip; ac_word=$2
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23858 $as_echo_n "checking for $ac_word... " >&6; }
23859 if ${ac_cv_prog_TARGET_STRIP+:} false; then :
23860 $as_echo_n "(cached) " >&6
23861 else
23862 if test -n "$TARGET_STRIP"; then
23863 ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
23864 else
23865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23866 for as_dir in $PATH
23868 IFS=$as_save_IFS
23869 test -z "$as_dir" && as_dir=.
23870 for ac_exec_ext in '' $ac_executable_extensions; do
23871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23872 ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
23873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23874 break 2
23876 done
23877 done
23878 IFS=$as_save_IFS
23882 TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
23883 if test -n "$TARGET_STRIP"; then
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
23885 $as_echo "$TARGET_STRIP" >&6; }
23886 else
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23888 $as_echo "no" >&6; }
23893 if test -z "$ac_cv_prog_TARGET_STRIP"; then
23894 ac_ct_TARGET_STRIP=$TARGET_STRIP
23895 # Extract the first word of "strip", so it can be a program name with args.
23896 set dummy strip; ac_word=$2
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23898 $as_echo_n "checking for $ac_word... " >&6; }
23899 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
23900 $as_echo_n "(cached) " >&6
23901 else
23902 if test -n "$ac_ct_TARGET_STRIP"; then
23903 ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
23904 else
23905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23906 for as_dir in $PATH
23908 IFS=$as_save_IFS
23909 test -z "$as_dir" && as_dir=.
23910 for ac_exec_ext in '' $ac_executable_extensions; do
23911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23912 ac_cv_prog_ac_ct_TARGET_STRIP="strip"
23913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23914 break 2
23916 done
23917 done
23918 IFS=$as_save_IFS
23922 ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
23923 if test -n "$ac_ct_TARGET_STRIP"; then
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
23925 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
23926 else
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23928 $as_echo "no" >&6; }
23931 if test "x$ac_ct_TARGET_STRIP" = x; then
23932 TARGET_STRIP=""
23933 else
23934 case $cross_compiling:$ac_tool_warned in
23935 yes:)
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23938 ac_tool_warned=yes ;;
23939 esac
23940 TARGET_STRIP=$ac_ct_TARGET_STRIP
23942 else
23943 TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
23946 if test -n "$ac_tool_prefix"; then
23947 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
23948 set dummy ${ac_tool_prefix}nm; ac_word=$2
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23950 $as_echo_n "checking for $ac_word... " >&6; }
23951 if ${ac_cv_prog_TARGET_NM+:} false; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 if test -n "$TARGET_NM"; then
23955 ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
23956 else
23957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23958 for as_dir in $PATH
23960 IFS=$as_save_IFS
23961 test -z "$as_dir" && as_dir=.
23962 for ac_exec_ext in '' $ac_executable_extensions; do
23963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23964 ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
23965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23966 break 2
23968 done
23969 done
23970 IFS=$as_save_IFS
23974 TARGET_NM=$ac_cv_prog_TARGET_NM
23975 if test -n "$TARGET_NM"; then
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
23977 $as_echo "$TARGET_NM" >&6; }
23978 else
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23980 $as_echo "no" >&6; }
23985 if test -z "$ac_cv_prog_TARGET_NM"; then
23986 ac_ct_TARGET_NM=$TARGET_NM
23987 # Extract the first word of "nm", so it can be a program name with args.
23988 set dummy nm; ac_word=$2
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23990 $as_echo_n "checking for $ac_word... " >&6; }
23991 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
23992 $as_echo_n "(cached) " >&6
23993 else
23994 if test -n "$ac_ct_TARGET_NM"; then
23995 ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
23996 else
23997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23998 for as_dir in $PATH
24000 IFS=$as_save_IFS
24001 test -z "$as_dir" && as_dir=.
24002 for ac_exec_ext in '' $ac_executable_extensions; do
24003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24004 ac_cv_prog_ac_ct_TARGET_NM="nm"
24005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24006 break 2
24008 done
24009 done
24010 IFS=$as_save_IFS
24014 ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
24015 if test -n "$ac_ct_TARGET_NM"; then
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24017 $as_echo "$ac_ct_TARGET_NM" >&6; }
24018 else
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24020 $as_echo "no" >&6; }
24023 if test "x$ac_ct_TARGET_NM" = x; then
24024 TARGET_NM=""
24025 else
24026 case $cross_compiling:$ac_tool_warned in
24027 yes:)
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24030 ac_tool_warned=yes ;;
24031 esac
24032 TARGET_NM=$ac_ct_TARGET_NM
24034 else
24035 TARGET_NM="$ac_cv_prog_TARGET_NM"
24038 if test -n "$ac_tool_prefix"; then
24039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24042 $as_echo_n "checking for $ac_word... " >&6; }
24043 if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 if test -n "$TARGET_RANLIB"; then
24047 ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
24048 else
24049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24050 for as_dir in $PATH
24052 IFS=$as_save_IFS
24053 test -z "$as_dir" && as_dir=.
24054 for ac_exec_ext in '' $ac_executable_extensions; do
24055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24056 ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24058 break 2
24060 done
24061 done
24062 IFS=$as_save_IFS
24066 TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24067 if test -n "$TARGET_RANLIB"; then
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24069 $as_echo "$TARGET_RANLIB" >&6; }
24070 else
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072 $as_echo "no" >&6; }
24077 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24078 ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24079 # Extract the first word of "ranlib", so it can be a program name with args.
24080 set dummy ranlib; ac_word=$2
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24082 $as_echo_n "checking for $ac_word... " >&6; }
24083 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24084 $as_echo_n "(cached) " >&6
24085 else
24086 if test -n "$ac_ct_TARGET_RANLIB"; then
24087 ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24088 else
24089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24090 for as_dir in $PATH
24092 IFS=$as_save_IFS
24093 test -z "$as_dir" && as_dir=.
24094 for ac_exec_ext in '' $ac_executable_extensions; do
24095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24096 ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24098 break 2
24100 done
24101 done
24102 IFS=$as_save_IFS
24106 ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24107 if test -n "$ac_ct_TARGET_RANLIB"; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24109 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24110 else
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24112 $as_echo "no" >&6; }
24115 if test "x$ac_ct_TARGET_RANLIB" = x; then
24116 TARGET_RANLIB=""
24117 else
24118 case $cross_compiling:$ac_tool_warned in
24119 yes:)
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24122 ac_tool_warned=yes ;;
24123 esac
24124 TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24126 else
24127 TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
24131 ac_tool_prefix="$tmp_ac_tool_prefix"
24132 else
24133 if test "x$TARGET_CC" = x; then
24134 TARGET_CC=$CC
24136 if test -n "$ac_tool_prefix"; then
24137 for ac_prog in gobjcopy objcopy
24139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24142 $as_echo_n "checking for $ac_word... " >&6; }
24143 if ${ac_cv_prog_TARGET_OBJCOPY+:} false; then :
24144 $as_echo_n "(cached) " >&6
24145 else
24146 if test -n "$TARGET_OBJCOPY"; then
24147 ac_cv_prog_TARGET_OBJCOPY="$TARGET_OBJCOPY" # Let the user override the test.
24148 else
24149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24150 for as_dir in $PATH
24152 IFS=$as_save_IFS
24153 test -z "$as_dir" && as_dir=.
24154 for ac_exec_ext in '' $ac_executable_extensions; do
24155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24156 ac_cv_prog_TARGET_OBJCOPY="$ac_tool_prefix$ac_prog"
24157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24158 break 2
24160 done
24161 done
24162 IFS=$as_save_IFS
24166 TARGET_OBJCOPY=$ac_cv_prog_TARGET_OBJCOPY
24167 if test -n "$TARGET_OBJCOPY"; then
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
24169 $as_echo "$TARGET_OBJCOPY" >&6; }
24170 else
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24172 $as_echo "no" >&6; }
24176 test -n "$TARGET_OBJCOPY" && break
24177 done
24179 if test -z "$TARGET_OBJCOPY"; then
24180 ac_ct_TARGET_OBJCOPY=$TARGET_OBJCOPY
24181 for ac_prog in gobjcopy objcopy
24183 # Extract the first word of "$ac_prog", so it can be a program name with args.
24184 set dummy $ac_prog; ac_word=$2
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24186 $as_echo_n "checking for $ac_word... " >&6; }
24187 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false; then :
24188 $as_echo_n "(cached) " >&6
24189 else
24190 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24191 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
24192 else
24193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24194 for as_dir in $PATH
24196 IFS=$as_save_IFS
24197 test -z "$as_dir" && as_dir=.
24198 for ac_exec_ext in '' $ac_executable_extensions; do
24199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24200 ac_cv_prog_ac_ct_TARGET_OBJCOPY="$ac_prog"
24201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24202 break 2
24204 done
24205 done
24206 IFS=$as_save_IFS
24210 ac_ct_TARGET_OBJCOPY=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
24211 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
24213 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
24214 else
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24220 test -n "$ac_ct_TARGET_OBJCOPY" && break
24221 done
24223 if test "x$ac_ct_TARGET_OBJCOPY" = x; then
24224 TARGET_OBJCOPY=""
24225 else
24226 case $cross_compiling:$ac_tool_warned in
24227 yes:)
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24230 ac_tool_warned=yes ;;
24231 esac
24232 TARGET_OBJCOPY=$ac_ct_TARGET_OBJCOPY
24236 if test -n "$ac_tool_prefix"; then
24237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24238 set dummy ${ac_tool_prefix}strip; ac_word=$2
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24240 $as_echo_n "checking for $ac_word... " >&6; }
24241 if ${ac_cv_prog_TARGET_STRIP+:} false; then :
24242 $as_echo_n "(cached) " >&6
24243 else
24244 if test -n "$TARGET_STRIP"; then
24245 ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
24246 else
24247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24248 for as_dir in $PATH
24250 IFS=$as_save_IFS
24251 test -z "$as_dir" && as_dir=.
24252 for ac_exec_ext in '' $ac_executable_extensions; do
24253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24254 ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
24255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24256 break 2
24258 done
24259 done
24260 IFS=$as_save_IFS
24264 TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
24265 if test -n "$TARGET_STRIP"; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
24267 $as_echo "$TARGET_STRIP" >&6; }
24268 else
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24275 if test -z "$ac_cv_prog_TARGET_STRIP"; then
24276 ac_ct_TARGET_STRIP=$TARGET_STRIP
24277 # Extract the first word of "strip", so it can be a program name with args.
24278 set dummy strip; ac_word=$2
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24280 $as_echo_n "checking for $ac_word... " >&6; }
24281 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
24282 $as_echo_n "(cached) " >&6
24283 else
24284 if test -n "$ac_ct_TARGET_STRIP"; then
24285 ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
24286 else
24287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24288 for as_dir in $PATH
24290 IFS=$as_save_IFS
24291 test -z "$as_dir" && as_dir=.
24292 for ac_exec_ext in '' $ac_executable_extensions; do
24293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24294 ac_cv_prog_ac_ct_TARGET_STRIP="strip"
24295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24296 break 2
24298 done
24299 done
24300 IFS=$as_save_IFS
24304 ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
24305 if test -n "$ac_ct_TARGET_STRIP"; then
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
24307 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
24308 else
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24310 $as_echo "no" >&6; }
24313 if test "x$ac_ct_TARGET_STRIP" = x; then
24314 TARGET_STRIP=""
24315 else
24316 case $cross_compiling:$ac_tool_warned in
24317 yes:)
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24320 ac_tool_warned=yes ;;
24321 esac
24322 TARGET_STRIP=$ac_ct_TARGET_STRIP
24324 else
24325 TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
24328 if test -n "$ac_tool_prefix"; then
24329 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
24330 set dummy ${ac_tool_prefix}nm; ac_word=$2
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24332 $as_echo_n "checking for $ac_word... " >&6; }
24333 if ${ac_cv_prog_TARGET_NM+:} false; then :
24334 $as_echo_n "(cached) " >&6
24335 else
24336 if test -n "$TARGET_NM"; then
24337 ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
24338 else
24339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24340 for as_dir in $PATH
24342 IFS=$as_save_IFS
24343 test -z "$as_dir" && as_dir=.
24344 for ac_exec_ext in '' $ac_executable_extensions; do
24345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24346 ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
24347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24348 break 2
24350 done
24351 done
24352 IFS=$as_save_IFS
24356 TARGET_NM=$ac_cv_prog_TARGET_NM
24357 if test -n "$TARGET_NM"; then
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
24359 $as_echo "$TARGET_NM" >&6; }
24360 else
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362 $as_echo "no" >&6; }
24367 if test -z "$ac_cv_prog_TARGET_NM"; then
24368 ac_ct_TARGET_NM=$TARGET_NM
24369 # Extract the first word of "nm", so it can be a program name with args.
24370 set dummy nm; ac_word=$2
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24372 $as_echo_n "checking for $ac_word... " >&6; }
24373 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
24374 $as_echo_n "(cached) " >&6
24375 else
24376 if test -n "$ac_ct_TARGET_NM"; then
24377 ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
24378 else
24379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24380 for as_dir in $PATH
24382 IFS=$as_save_IFS
24383 test -z "$as_dir" && as_dir=.
24384 for ac_exec_ext in '' $ac_executable_extensions; do
24385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24386 ac_cv_prog_ac_ct_TARGET_NM="nm"
24387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24388 break 2
24390 done
24391 done
24392 IFS=$as_save_IFS
24396 ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
24397 if test -n "$ac_ct_TARGET_NM"; then
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24399 $as_echo "$ac_ct_TARGET_NM" >&6; }
24400 else
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24405 if test "x$ac_ct_TARGET_NM" = x; then
24406 TARGET_NM=""
24407 else
24408 case $cross_compiling:$ac_tool_warned in
24409 yes:)
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24412 ac_tool_warned=yes ;;
24413 esac
24414 TARGET_NM=$ac_ct_TARGET_NM
24416 else
24417 TARGET_NM="$ac_cv_prog_TARGET_NM"
24420 if test -n "$ac_tool_prefix"; then
24421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24424 $as_echo_n "checking for $ac_word... " >&6; }
24425 if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
24426 $as_echo_n "(cached) " >&6
24427 else
24428 if test -n "$TARGET_RANLIB"; then
24429 ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
24430 else
24431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24432 for as_dir in $PATH
24434 IFS=$as_save_IFS
24435 test -z "$as_dir" && as_dir=.
24436 for ac_exec_ext in '' $ac_executable_extensions; do
24437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24438 ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
24439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24440 break 2
24442 done
24443 done
24444 IFS=$as_save_IFS
24448 TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
24449 if test -n "$TARGET_RANLIB"; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24451 $as_echo "$TARGET_RANLIB" >&6; }
24452 else
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24454 $as_echo "no" >&6; }
24459 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24460 ac_ct_TARGET_RANLIB=$TARGET_RANLIB
24461 # Extract the first word of "ranlib", so it can be a program name with args.
24462 set dummy ranlib; ac_word=$2
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24464 $as_echo_n "checking for $ac_word... " >&6; }
24465 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
24466 $as_echo_n "(cached) " >&6
24467 else
24468 if test -n "$ac_ct_TARGET_RANLIB"; then
24469 ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24470 else
24471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24472 for as_dir in $PATH
24474 IFS=$as_save_IFS
24475 test -z "$as_dir" && as_dir=.
24476 for ac_exec_ext in '' $ac_executable_extensions; do
24477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24478 ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
24479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24480 break 2
24482 done
24483 done
24484 IFS=$as_save_IFS
24488 ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
24489 if test -n "$ac_ct_TARGET_RANLIB"; then
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24491 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24492 else
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 $as_echo "no" >&6; }
24497 if test "x$ac_ct_TARGET_RANLIB" = x; then
24498 TARGET_RANLIB=""
24499 else
24500 case $cross_compiling:$ac_tool_warned in
24501 yes:)
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24504 ac_tool_warned=yes ;;
24505 esac
24506 TARGET_RANLIB=$ac_ct_TARGET_RANLIB
24508 else
24509 TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
24525 # Test the C compiler for the target environment.
24526 tmp_CC="$CC"
24527 tmp_CFLAGS="$CFLAGS"
24528 tmp_LDFLAGS="$LDFLAGS"
24529 tmp_CPPFLAGS="$CPPFLAGS"
24530 tmp_LIBS="$LIBS"
24531 CC="$TARGET_CC"
24532 CFLAGS="$TARGET_CFLAGS"
24533 CPPFLAGS="$TARGET_CPPFLAGS"
24534 LDFLAGS="$TARGET_LDFLAGS"
24535 LIBS=""
24537 # debug flags.
24538 TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
24539 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
24541 if test "x$target_cpu" != xi386 && test "x$target_cpu" != xx86_64; then
24542 TARGET_CFLAGS="$TARGET_CFLAGS -Wcast-align"
24545 TARGET_CC_VERSION="$(LC_ALL=C $TARGET_CC --version | head -n1)"
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
24548 $as_echo_n "checking which extra warnings work... " >&6; }
24549 if ${grub_cv_target_cc_w_extra_flags+:} false; then :
24550 $as_echo_n "(cached) " >&6
24551 else
24553 LDFLAGS="$TARGET_LDFLAGS -nostdlib -static"
24555 grub_cv_target_cc_w_extra_flags=
24556 for x in $EXTRA_WARN_FLAGS; do
24557 CFLAGS="$TARGET_CFLAGS $x -Werror"
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24561 asm (".globl start; start:");
24562 void __main (void);
24563 void __main (void) {}
24564 int main (void);
24567 main (void)
24571 return 0;
24573 _ACEOF
24574 if ac_fn_c_try_link "$LINENO"; then :
24575 flag=1
24576 else
24577 flag=0
24579 rm -f core conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
24581 if test x$flag = x1 ; then
24582 grub_cv_target_cc_w_extra_flags="$grub_cv_target_cc_w_extra_flags $x"
24584 done
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
24588 $as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
24590 TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
24593 $as_echo_n "checking if compiling with clang... " >&6; }
24594 if { as_var=grub_cv_cc_target_clang
24596 CFLAGS="$TARGET_CFLAGS"
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24601 main (void)
24604 #ifdef __clang__
24605 #error "is clang"
24606 #endif
24609 return 0;
24611 _ACEOF
24612 if ac_fn_c_try_compile "$LINENO"; then :
24613 grub_cv_cc_target_clang=no
24614 else
24615 grub_cv_cc_target_clang=yes
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24618 $as_echo_n "(cached) " >&6
24620 eval ac_res=\$grub_cv_cc_target_clang
24622 CFLAGS="$TARGET_CFLAGS"
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24627 main (void)
24630 #ifdef __clang__
24631 #error "is clang"
24632 #endif
24635 return 0;
24637 _ACEOF
24638 if ac_fn_c_try_compile "$LINENO"; then :
24639 grub_cv_cc_target_clang=no
24640 else
24641 grub_cv_cc_target_clang=yes
24643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24645 $as_echo "$ac_res" >&6; }
24647 # on x86 clang doesn't support .code16
24648 # on arm clang doesn't support .arch directive
24649 # on mips clang doesn't support privilegied instructions, doubleword store/load
24650 # and crashes with hand-written assembly
24651 if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 \
24652 || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm \
24653 || test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ); then
24654 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24657 if test "x$grub_cv_cc_target_clang" = xyes && test "x$target_cpu" = xpowerpc; then
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang can handle ame instruction" >&5
24659 $as_echo_n "checking if clang can handle ame instruction... " >&6; }
24660 if { as_var=grub_cv_cc_target_clang_ame
24662 CFLAGS="$TARGET_CFLAGS"
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24667 main (void)
24670 unsigned int a = 0, b = 0;
24671 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24672 if (a)
24673 return 1;
24676 return 0;
24678 _ACEOF
24679 if ac_fn_c_try_compile "$LINENO"; then :
24680 grub_cv_cc_target_clang_ame=yes
24681 else
24682 grub_cv_cc_target_clang_ame=no
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; eval \${$as_var+:} false; }; then :
24685 $as_echo_n "(cached) " >&6
24687 eval ac_res=\$grub_cv_cc_target_clang_ame
24689 CFLAGS="$TARGET_CFLAGS"
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24694 main (void)
24697 unsigned int a = 0, b = 0;
24698 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24699 if (a)
24700 return 1;
24703 return 0;
24705 _ACEOF
24706 if ac_fn_c_try_compile "$LINENO"; then :
24707 grub_cv_cc_target_clang_ame=yes
24708 else
24709 grub_cv_cc_target_clang_ame=no
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24713 $as_echo "$ac_res" >&6; }
24714 # clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
24715 # used by gcrypt
24716 if test x$grub_cv_cc_target_clang_ame = xno ; then
24717 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
24718 TARGET_CFLAGS="$TARGET_CFLAGS -no-integrated-as"
24722 if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then
24723 TARGET_CFLAGS="$TARGET_CFLAGS -march=i386"
24726 if test "x$target_m32" = x1; then
24727 # Force 32-bit mode.
24728 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
24729 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
24730 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
24731 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
24732 TARGET_MODULE_FORMAT="elf32"
24735 if test "x$target_m64" = x1; then
24736 # Force 64-bit mode.
24737 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
24738 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
24739 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
24740 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
24741 TARGET_MODULE_FORMAT="elf64"
24744 if test "x$grub_cv_cc_target_clang" = xno && test "x$target_cpu" = xi386 && test "x$platform" != xemu && test "x$platform" != xefi; then
24745 TARGET_CFLAGS="$TARGET_CFLAGS -mrtd -mregparm=3"
24748 # on mips redirect cache flushing function to non-existant one.
24749 if test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ; then
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
24751 $as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
24752 if ${grub_cv_cc_mflush_func+:} false; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24756 CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h. */
24761 main (void)
24765 return 0;
24767 _ACEOF
24768 if ac_fn_c_try_compile "$LINENO"; then :
24769 grub_cv_cc_mflush_func=yes
24770 else
24771 grub_cv_cc_mflush_func=no
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
24777 $as_echo "$grub_cv_cc_mflush_func" >&6; }
24779 if test "x$grub_cv_cc_mflush_func" = xyes; then
24780 TARGET_CFLAGS="$TARGET_CFLAGS -mflush-func=grub_red_herring"
24785 # Force no alignment to save space on i386.
24786 if test "x$target_cpu" = xi386; then
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
24788 $as_echo_n "checking whether -falign-loops works... " >&6; }
24789 if ${grub_cv_cc_falign_loop+:} false; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24793 CFLAGS="$TARGET_CFLAGS -falign-loops=1 -Werror"
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24798 main (void)
24802 return 0;
24804 _ACEOF
24805 if ac_fn_c_try_compile "$LINENO"; then :
24806 grub_cv_cc_falign_loop=yes
24807 else
24808 grub_cv_cc_falign_loop=no
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
24814 $as_echo "$grub_cv_cc_falign_loop" >&6; }
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
24817 $as_echo_n "checking whether -malign-loops works... " >&6; }
24818 if ${grub_cv_cc_malign_loop+:} false; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24822 CFLAGS="$TARGET_CFLAGS -malign-loops=1 -Werror"
24823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24824 /* end confdefs.h. */
24827 main (void)
24831 return 0;
24833 _ACEOF
24834 if ac_fn_c_try_compile "$LINENO"; then :
24835 grub_cv_cc_malign_loop=yes
24836 else
24837 grub_cv_cc_malign_loop=no
24839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
24843 $as_echo "$grub_cv_cc_malign_loop" >&6; }
24845 if test "x$grub_cv_cc_falign_loop" = xyes; then
24846 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
24847 elif test "x$grub_cv_cc_malign_loop" = xyes; then
24848 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
24853 $as_echo_n "checking whether -freg-struct-return works... " >&6; }
24854 if ${grub_cv_cc_freg_struct_return+:} false; then :
24855 $as_echo_n "(cached) " >&6
24856 else
24858 CFLAGS="$TARGET_CFLAGS -freg-struct-return -Werror"
24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860 /* end confdefs.h. */
24863 main (void)
24867 return 0;
24869 _ACEOF
24870 if ac_fn_c_try_compile "$LINENO"; then :
24871 grub_cv_cc_freg_struct_return=yes
24872 else
24873 grub_cv_cc_freg_struct_return=no
24875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
24879 $as_echo "$grub_cv_cc_freg_struct_return" >&6; }
24881 if test "x$grub_cv_cc_freg_struct_return" = xyes; then
24882 TARGET_CFLAGS="$TARGET_CFLAGS -freg-struct-return"
24885 if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then
24886 # Some toolchains enable these features by default, but they need
24887 # registers that aren't set up properly in GRUB.
24888 TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
24891 # GRUB doesn't use float or doubles at all. Yet some toolchains may decide
24892 # that floats are a good fit to run instead of what's written in the code.
24893 # Given that floating point unit is disabled (if present to begin with)
24894 # when GRUB is running which may result in various hard crashes.
24895 if test "x$target_cpu" = xarm64; then
24896 TARGET_CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd"
24897 else
24898 TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float"
24901 # By default, GCC 4.4 generates .eh_frame sections containing unwind
24902 # information in some cases where it previously did not. GRUB doesn't need
24903 # these and they just use up vital space. Restore the old compiler
24904 # behaviour.
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
24906 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
24907 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false; then :
24908 $as_echo_n "(cached) " >&6
24909 else
24911 CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24913 /* end confdefs.h. */
24916 main (void)
24920 return 0;
24922 _ACEOF
24923 if ac_fn_c_try_compile "$LINENO"; then :
24924 grub_cv_cc_fno_dwarf2_cfi_asm=yes
24925 else
24926 grub_cv_cc_fno_dwarf2_cfi_asm=no
24928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
24932 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
24934 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
24935 TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24938 if test x"$target_os" = xcygwin; then
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
24940 $as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
24941 if ${grub_cv_cc_no_reorder_functions+:} false; then :
24942 $as_echo_n "(cached) " >&6
24943 else
24945 CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24950 main (void)
24954 return 0;
24956 _ACEOF
24957 if ac_fn_c_try_compile "$LINENO"; then :
24958 grub_cv_cc_no_reorder_functions=yes
24959 else
24960 grub_cv_cc_no_reorder_functions=no
24962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
24966 $as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
24969 if test x"$target_os" = xcygwin && test "x$grub_cv_cc_no_reorder_functions" = xyes; then
24970 TARGET_CFLAGS="$TARGET_CFLAGS -fno-reorder-functions"
24973 # By default, GCC 4.6 generates .eh_frame sections containing unwind
24974 # information in some cases where it previously did not. GRUB doesn't need
24975 # these and they just use up vital space. Restore the old compiler
24976 # behaviour.
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
24978 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
24979 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false; then :
24980 $as_echo_n "(cached) " >&6
24981 else
24983 CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24985 /* end confdefs.h. */
24988 main (void)
24992 return 0;
24994 _ACEOF
24995 if ac_fn_c_try_compile "$LINENO"; then :
24996 grub_cv_cc_fno_asynchronous_unwind_tables=yes
24997 else
24998 grub_cv_cc_fno_asynchronous_unwind_tables=no
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
25004 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
25006 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes; then
25007 TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
25010 # Check whether --enable-efiemu was given.
25011 if test "${enable_efiemu+set}" = set; then :
25012 enableval=$enable_efiemu;
25015 if test x"$enable_efiemu" = xno ; then
25016 efiemu_excuse="explicitly disabled"
25018 if test x"$grub_cv_target_cc_link_format" = x-mi386pe || test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
25019 efiemu_excuse="not available on cygwin"
25021 if test x"$target_cpu" != xi386 ; then
25022 efiemu_excuse="only available on i386"
25024 if test x"$platform" = xefi ; then
25025 efiemu_excuse="not available on efi"
25027 if test x"$efiemu_excuse" = x ; then
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
25029 $as_echo_n "checking whether options required for efiemu work... " >&6; }
25030 if ${grub_cv_cc_efiemu+:} false; then :
25031 $as_echo_n "(cached) " >&6
25032 else
25034 CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25036 /* end confdefs.h. */
25039 main (void)
25043 return 0;
25045 _ACEOF
25046 if ac_fn_c_try_compile "$LINENO"; then :
25047 grub_cv_cc_efiemu=yes
25048 else
25049 grub_cv_cc_efiemu=no
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
25055 $as_echo "$grub_cv_cc_efiemu" >&6; }
25056 if test x$grub_cv_cc_efiemu = xno; then
25057 efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
25060 if test x"$efiemu_excuse" = x ; then
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
25062 $as_echo_n "checking for efiemu64 linking format... " >&6; }
25063 if ${grub_cv_target_cc_efiemu64_link_format+:} false; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25067 grub_cv_target_cc_efiemu64_link_format=unknown
25068 for format in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64; do
25069 CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25070 LDFLAGS="-m64 -Wl,$format -nostdlib -static"
25071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25072 /* end confdefs.h. */
25074 asm (".globl start; start:");
25075 asm (".globl _start; _start:");
25076 asm (".globl __start; __start:");
25077 void __main (void);
25078 void __main (void) {}
25081 main (void)
25085 return 0;
25087 _ACEOF
25088 if ac_fn_c_try_link "$LINENO"; then :
25089 flag=1
25090 else
25091 flag=0
25093 rm -f core conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
25095 if test x"$flag" = x1; then
25096 grub_cv_target_cc_efiemu64_link_format="$format"
25097 break
25099 done
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
25102 $as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
25103 if test x"$grub_cv_target_cc_efiemu64_link_format" = xunknown; then
25104 efiemu_excuse="no suitable link format for efiemu64 found"
25105 else
25106 EFIEMU64_LINK_FORMAT="-Wl,$grub_cv_target_cc_efiemu64_link_format"
25109 if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
25110 as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
25112 if test x"$efiemu_excuse" = x ; then
25113 enable_efiemu=yes
25114 else
25115 enable_efiemu=no
25120 CFLAGS="$TARGET_CFLAGS"
25123 if test x"$platform" = xemu ; then
25124 TARGET_OBJ2ELF=
25125 grub_cv_target_cc_link_format=
25126 case "$host_os" in
25127 *darwin* | *mac*)
25128 grub_cv_target_cc_link_format="-arch,${target_cpu}"
25129 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25131 *windows* | *cygwin* | *mingw*)
25132 if test x${target_cpu} = xi386 ; then
25133 grub_cv_target_cc_link_format=-mi386pe
25134 TARGET_OBJ2ELF='./build-grub-pe2elf$(BUILD_EXEEXT)'
25136 if test x${target_cpu} = xx86_64 ; then
25137 grub_cv_target_cc_link_format=-mi386pep
25138 TARGET_OBJ2ELF='./build-grub-pep2elf$(BUILD_EXEEXT)'
25140 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25142 esac
25143 elif test x"$target_cpu" = xi386 || test x"$target_cpu" = xx86_64; then
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
25145 $as_echo_n "checking for target linking format... " >&6; }
25146 if ${grub_cv_target_cc_link_format+:} false; then :
25147 $as_echo_n "(cached) " >&6
25148 else
25150 grub_cv_target_cc_link_format=unknown
25151 for format in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
25152 if test x${target_cpu} != xi386 && test x$format = x-mi386pe; then
25153 continue
25155 if test x${target_cpu} != xx86_64 && test x$format = x-mi386pep; then
25156 continue
25158 CFLAGS="$TARGET_CFLAGS"
25159 LDFLAGS="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25163 asm (".globl start; start:");
25164 asm (".globl _start; _start:");
25165 asm (".globl __start; __start:");
25166 void __main (void);
25167 void __main (void) {}
25170 main (void)
25174 return 0;
25176 _ACEOF
25177 if ac_fn_c_try_link "$LINENO"; then :
25178 flag=1
25179 else
25180 flag=0
25182 rm -f core conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25184 if test x"$flag" = x1; then
25185 grub_cv_target_cc_link_format="$format"
25186 break
25188 done
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
25191 $as_echo "$grub_cv_target_cc_link_format" >&6; }
25192 if test x"$grub_cv_target_cc_link_format" = xunknown; then
25193 as_fn_error $? "no suitable link format found" "$LINENO" 5
25195 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25196 if test x"$grub_cv_target_cc_link_format" = x-mi386pe ; then
25197 TARGET_OBJ2ELF='./build-grub-pe2elf$(BUILD_EXEEXT)'
25199 if test x"$grub_cv_target_cc_link_format" = x-mi386pep ; then
25200 TARGET_OBJ2ELF='./build-grub-pep2elf$(BUILD_EXEEXT)'
25204 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
25205 TARGET_APPLE_LINKER=1
25206 # Extract the first word of "objconv", so it can be a program name with args.
25207 set dummy objconv; ac_word=$2
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25209 $as_echo_n "checking for $ac_word... " >&6; }
25210 if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 if test -n "$TARGET_OBJCONV"; then
25214 ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25215 else
25216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 for as_dir in $PATH
25219 IFS=$as_save_IFS
25220 test -z "$as_dir" && as_dir=.
25221 for ac_exec_ext in '' $ac_executable_extensions; do
25222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25223 ac_cv_prog_TARGET_OBJCONV="objconv"
25224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25225 break 2
25227 done
25228 done
25229 IFS=$as_save_IFS
25233 TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25234 if test -n "$TARGET_OBJCONV"; then
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25236 $as_echo "$TARGET_OBJCONV" >&6; }
25237 else
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25239 $as_echo "no" >&6; }
25243 if test "x$TARGET_OBJCONV" = x ; then
25244 # Extract the first word of "objconv", so it can be a program name with args.
25245 set dummy objconv; ac_word=$2
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25247 $as_echo_n "checking for $ac_word... " >&6; }
25248 if ${ac_cv_prog_TARGET_OBJCONV+:} false; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 if test -n "$TARGET_OBJCONV"; then
25252 ac_cv_prog_TARGET_OBJCONV="$TARGET_OBJCONV" # Let the user override the test.
25253 else
25254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25255 for as_dir in .
25257 IFS=$as_save_IFS
25258 test -z "$as_dir" && as_dir=.
25259 for ac_exec_ext in '' $ac_executable_extensions; do
25260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25261 ac_cv_prog_TARGET_OBJCONV="./objconv"
25262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25263 break 2
25265 done
25266 done
25267 IFS=$as_save_IFS
25271 TARGET_OBJCONV=$ac_cv_prog_TARGET_OBJCONV
25272 if test -n "$TARGET_OBJCONV"; then
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25274 $as_echo "$TARGET_OBJCONV" >&6; }
25275 else
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25277 $as_echo "no" >&6; }
25282 if test "x$TARGET_OBJCONV" = x ; then
25283 as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
25285 TARGET_IMG_LDSCRIPT=
25286 TARGET_IMG_CFLAGS="-static"
25287 TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25288 TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25289 TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
25290 TARGET_LDFLAGS_OLDMAGIC=""
25291 elif test x$grub_cv_target_cc_link_format = x-mi386pe || test x$grub_cv_target_cc_link_format = x-mi386pep ; then
25292 TARGET_APPLE_LINKER=0
25293 TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
25294 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25295 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
25296 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25297 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25298 TARGET_IMG_CFLAGS=
25299 else
25300 TARGET_APPLE_LINKER=0
25301 TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
25302 TARGET_IMG_LDSCRIPT=
25303 TARGET_IMG_LDFLAGS='-Wl,-N'
25304 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
25305 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
25306 TARGET_IMG_CFLAGS=
25312 LDFLAGS="$TARGET_LDFLAGS"
25314 if test "$target_cpu" = x86_64 || test "$target_cpu-$platform" = sparc64-emu ; then
25315 # Use large model to support 4G memory
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
25317 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
25318 if ${grub_cv_cc_mcmodel+:} false; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25322 CFLAGS="$TARGET_CFLAGS -mcmodel=large"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25327 main (void)
25331 return 0;
25333 _ACEOF
25334 if ac_fn_c_try_compile "$LINENO"; then :
25335 grub_cv_cc_mcmodel=yes
25336 else
25337 grub_cv_cc_mcmodel=no
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
25343 $as_echo "$grub_cv_cc_mcmodel" >&6; }
25344 if test "x$grub_cv_cc_mcmodel" = xyes; then
25345 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
25346 elif test "$target_cpu-$platform" = sparc64-emu; then
25347 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
25351 if test "$target_cpu"-"$platform" = x86_64-efi; then
25352 # EFI writes to stack below %rsp, we must not use the red zone
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
25354 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
25355 if ${grub_cv_cc_no_red_zone+:} false; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25359 CFLAGS="$TARGET_CFLAGS -mno-red-zone"
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25364 main (void)
25368 return 0;
25370 _ACEOF
25371 if ac_fn_c_try_compile "$LINENO"; then :
25372 grub_cv_cc_no_red_zone=yes
25373 else
25374 grub_cv_cc_no_red_zone=no
25376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
25380 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
25381 if test "x$grub_cv_cc_no_red_zone" = xno; then
25382 as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
25385 TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
25388 if test "x$target_cpu" = xarm; then
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mlong-calls works" >&5
25390 $as_echo_n "checking whether option -mlong-calls works... " >&6; }
25391 if ${grub_cv_cc_mlong_calls+:} false; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25395 CFLAGS="$TARGET_CFLAGS -mlong-calls -Werror"
25396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h. */
25400 main (void)
25404 return 0;
25406 _ACEOF
25407 if ac_fn_c_try_compile "$LINENO"; then :
25408 grub_cv_cc_mlong_calls=yes
25409 else
25410 grub_cv_cc_mlong_calls=no
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mlong_calls" >&5
25416 $as_echo "$grub_cv_cc_mlong_calls" >&6; }
25417 if test "x$grub_cv_cc_mlong_calls" = xyes; then
25418 TARGET_CFLAGS="$TARGET_CFLAGS -mlong-calls"
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
25421 $as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
25422 if ${grub_cv_cc_mthumb_interwork+:} false; then :
25423 $as_echo_n "(cached) " >&6
25424 else
25426 CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h. */
25431 main (void)
25435 return 0;
25437 _ACEOF
25438 if ac_fn_c_try_compile "$LINENO"; then :
25439 grub_cv_cc_mthumb_interwork=yes
25440 else
25441 grub_cv_cc_mthumb_interwork=no
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
25447 $as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
25448 if test "x$grub_cv_cc_mthumb_interwork" = xyes; then
25449 TARGET_CFLAGS="$TARGET_CFLAGS -mthumb-interwork"
25450 elif test "x$grub_cv_cc_target_clang" = xno ; then
25451 as_fn_error $? "your compiler doesn't support -mthumb-interwork" "$LINENO" 5
25452 else
25453 CFLAGS="$TARGET_CFLAGS"
25454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25455 /* end confdefs.h. */
25458 main (void)
25461 #if defined (__thumb__) && !defined (__thumb2__)
25462 #error thumb without interworking
25463 #endif
25466 return 0;
25468 _ACEOF
25469 if ac_fn_c_try_compile "$LINENO"; then :
25470 no_interwork_ok=yes
25471 else
25472 no_interwork_ok=no
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 if test x$no_interwork_ok = xno ; then
25476 as_fn_error $? "attempt to compile to thumb with no thumb interwork" "$LINENO" 5
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
25482 $as_echo_n "checking whether option -Qn works... " >&6; }
25483 if ${grub_cv_target_cc_qn+:} false; then :
25484 $as_echo_n "(cached) " >&6
25485 else
25487 CFLAGS="$TARGET_CFLAGS -Qn -Werror"
25488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25489 /* end confdefs.h. */
25492 main (void)
25496 return 0;
25498 _ACEOF
25499 if ac_fn_c_try_compile "$LINENO"; then :
25500 grub_cv_target_cc_qn=yes
25501 else
25502 grub_cv_target_cc_qn=no
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
25507 $as_echo "$grub_cv_target_cc_qn" >&6; }
25508 if test "x$grub_cv_target_cc_qn" = xyes; then
25509 TARGET_CFLAGS="$TARGET_CFLAGS -Qn"
25513 # Compiler features.
25516 CFLAGS="$TARGET_CFLAGS"
25518 # Position independent executable.
25520 # Position independent executable.
25521 pie_possible=yes
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
25523 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
25524 # Is this a reliable test case?
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 #ifdef __PIE__
25529 int main() {
25530 return 0;
25532 #else
25533 #error NO __PIE__ DEFINED
25534 #endif
25536 _ACEOF
25538 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25539 # `ac_compile' like this correct, after all?
25540 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25543 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25544 rm -f conftest.s
25545 else
25546 pie_possible=no
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25548 $as_echo "no" >&6; }
25551 # Need that, because some distributions ship compilers that include
25552 # `-fPIE' in the default specs.
25553 if [ x"$pie_possible" = xyes ]; then
25554 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
25557 CFLAGS="$TARGET_CFLAGS"
25559 # Position independent executable.
25561 # Position independent executable.
25562 pic_possible=yes
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
25564 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
25565 # Is this a reliable test case?
25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25569 #ifdef __PIC__
25570 int main() {
25571 return 0;
25573 #else
25574 #error NO __PIC__ DEFINED
25575 #endif
25577 _ACEOF
25579 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25580 # `ac_compile' like this correct, after all?
25581 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25583 $as_echo "yes" >&6; }
25584 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25585 rm -f conftest.s
25586 else
25587 pic_possible=no
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 $as_echo "no" >&6; }
25592 # On most platforms we don't want PIC as it only makes relocations harder
25593 # and code less efficient. On mips we want to have one got table per module
25594 # and reload $gp in every function.
25595 # GCC implements it using symbol __gnu_local_gp in non-PIC as well.
25596 # However with clang we need PIC for this reloading to happen.
25597 # Since default varies across dictributions use either -fPIC or -fno-PIC
25598 # explicitly.
25599 if ( test x$target_cpu = xmips || test x$target_cpu = xmipsel ) && test "x$grub_cv_cc_target_clang" = xyes ; then
25600 TARGET_CFLAGS="$TARGET_CFLAGS -fPIC"
25601 elif [ x"$pic_possible" = xyes ]; then
25602 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIC"
25605 CFLAGS="$TARGET_CFLAGS"
25607 # Smashing stack protector.
25609 # Smashing stack protector.
25610 ssp_possible=yes
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
25612 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
25613 # Is this a reliable test case?
25614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25615 /* end confdefs.h. */
25617 void foo (void) { volatile char a[8]; a[3]; }
25619 _ACEOF
25620 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25621 # `ac_compile' like this correct, after all?
25622 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25625 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25626 rm -f conftest.s
25627 else
25628 ssp_possible=no
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25633 # Need that, because some distributions ship compilers that include
25634 # `-fstack-protector' in the default specs.
25635 if test "x$ssp_possible" = xyes; then
25636 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
25639 CFLAGS="$TARGET_CFLAGS"
25642 # Smashing stack arg probe.
25643 sap_possible=yes
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
25645 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
25646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h. */
25649 void foo (void) { volatile char a[8]; a[3]; }
25651 _ACEOF
25652 if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev/null; then
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25654 $as_echo "yes" >&6; }
25655 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25656 rm -f conftest.s
25657 else
25658 sap_possible=no
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25660 $as_echo "no" >&6; }
25663 # Cygwin's GCC uses alloca() to probe the stackframe on static
25664 # stack allocations above some threshold.
25665 if test x"$sap_possible" = xyes; then
25666 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
25669 CFLAGS="$TARGET_CFLAGS"
25671 # -mno-unaligned-access -mstrict-align
25672 if test "$target_cpu" = arm; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
25674 $as_echo_n "checking for compile options to get strict alignment... " >&6; }
25675 if ${grub_cv_target_cc_strict_align+:} false; then :
25676 $as_echo_n "(cached) " >&6
25677 else
25679 grub_cv_target_cc_strict_align=
25680 for arg in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
25681 CFLAGS="$TARGET_CFLAGS $arg -Werror"
25682 LDFLAGS="$TARGET_LDFLAGS"
25683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25684 /* end confdefs.h. */
25687 main (void)
25691 return 0;
25693 _ACEOF
25694 if ac_fn_c_try_compile "$LINENO"; then :
25695 flag=1
25696 else
25697 flag=0
25699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25700 if test x"$flag" = x1; then
25701 grub_cv_target_cc_strict_align="$arg"
25702 break
25704 done
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
25707 $as_echo "$grub_cv_target_cc_strict_align" >&6; }
25709 TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
25710 if test x"$grub_cv_target_cc_strict_align" = x"-Xclang -mstrict-align"; then
25711 TARGET_LDFLAGS="$TARGET_LDFLAGS -Qunused-arguments"
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
25714 $as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
25715 if ${grub_cv_cc_target_emits_unaligned+:} false; then :
25716 $as_echo_n "(cached) " >&6
25717 else
25718 CFLAGS="$TARGET_CFLAGS"
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25723 main (void)
25726 #ifdef __ARM_FEATURE_UNALIGNED
25727 #error "unaligned"
25728 #endif
25731 return 0;
25733 _ACEOF
25734 if ac_fn_c_try_compile "$LINENO"; then :
25735 grub_cv_cc_target_emits_unaligned=no
25736 else
25737 grub_cv_cc_target_emits_unaligned=yes
25739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
25742 $as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
25743 if test x$grub_cv_cc_target_emits_unaligned = xyes; then
25744 as_fn_error $? "compiler generates unaligned accesses" "$LINENO" 5
25748 # Set them to their new values for the tests below.
25749 CC="$TARGET_CC"
25750 if test "x$TARGET_APPLE_LINKER" = x1 ; then
25751 CFLAGS="$TARGET_CFLAGS -nostdlib -static -Wno-error"
25752 else
25753 CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
25755 CPPFLAGS="$TARGET_CPPFLAGS"
25756 if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 || test "x$grub_cv_cc_target_clang" = xyes ; then
25757 TARGET_LIBGCC=
25758 else
25759 TARGET_LIBGCC=-lgcc
25762 LIBS="$TARGET_LIBGCC"
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
25767 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
25768 if ${grub_cv_asm_uscore+:} false; then :
25769 $as_echo_n "(cached) " >&6
25770 else
25771 cat > conftest.c <<\EOF
25772 int func (int *);
25774 func (int *list)
25776 *list = 0;
25777 return *list;
25781 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
25782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25783 (eval $ac_try) 2>&5
25784 ac_status=$?
25785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25786 test $ac_status = 0; }; } && test -s conftest.s; then
25787 true
25788 else
25789 as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
25792 if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
25793 HAVE_ASM_USCORE=1
25794 grub_cv_asm_uscore=yes
25795 else
25796 HAVE_ASM_USCORE=0
25797 grub_cv_asm_uscore=no
25800 rm -f conftest*
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
25805 $as_echo "$grub_cv_asm_uscore" >&6; }
25807 if test "x$TARGET_APPLE_LINKER" = x0 ; then
25808 if test x$grub_cv_asm_uscore = xyes; then
25809 DEFSYM="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
25810 else
25811 DEFSYM="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
25813 CFLAGS="$TARGET_CFLAGS -nostdlib $DEFSYM"
25816 # Check for libgcc symbols
25817 for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x
25818 do :
25819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25820 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25821 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25822 cat >>confdefs.h <<_ACEOF
25823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25824 _ACEOF
25827 done
25830 if test "x$TARGET_APPLE_LINKER" = x1 ; then
25831 CFLAGS="$TARGET_CFLAGS -nostdlib -static"
25832 else
25833 CFLAGS="$TARGET_CFLAGS -nostdlib"
25835 LIBS=""
25837 # Defined in aclocal.m4.
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
25839 $as_echo_n "checking whether target compiler is working... " >&6; }
25840 if ${grub_cv_prog_target_cc+:} false; then :
25841 $as_echo_n "(cached) " >&6
25842 else
25843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25844 /* end confdefs.h. */
25846 asm (".globl start; start:");
25847 void __main (void);
25848 void __main (void) {}
25849 int main (void);
25852 main (void)
25856 return 0;
25858 _ACEOF
25859 if ac_fn_c_try_link "$LINENO"; then :
25860 grub_cv_prog_target_cc=yes
25861 else
25862 grub_cv_prog_target_cc=no
25864 rm -f core conftest.err conftest.$ac_objext \
25865 conftest$ac_exeext conftest.$ac_ext
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
25870 $as_echo "$grub_cv_prog_target_cc" >&6; }
25872 if test "x$grub_cv_prog_target_cc" = xno; then
25873 as_fn_error $? "cannot compile for the target" "$LINENO" 5
25876 if test "x$TARGET_APPLE_LINKER" != x1 ; then
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
25878 $as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
25879 if ${grub_cv_prog_objcopy_absolute+:} false; then :
25880 $as_echo_n "(cached) " >&6
25881 else
25882 cat > conftest.c <<\EOF
25883 void cmain (void);
25884 void
25885 cmain (void)
25887 *((int *) 0x1000) = 2;
25891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25892 (eval $ac_compile) 2>&5
25893 ac_status=$?
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; } && test -s conftest.o; then :
25896 else
25897 as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
25899 grub_cv_prog_objcopy_absolute=yes
25900 for link_addr in 0x2000 0x8000 0x7C00; do
25901 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }; then :
25907 else
25908 as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
25910 if { ac_try='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }; then :
25916 else
25917 as_fn_error $? "${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
25919 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }; then
25925 mv -f conftest conftest.old
25926 else
25927 grub_cv_prog_objcopy_absolute=no
25928 break
25930 done
25931 rm -f conftest*
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
25935 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
25937 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
25938 as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
25943 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
25944 if ${grub_cv_prog_ld_build_id_none+:} false; then :
25945 $as_echo_n "(cached) " >&6
25946 else
25947 save_LDFLAGS="$LDFLAGS"
25948 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25953 main (void)
25957 return 0;
25959 _ACEOF
25960 if ac_fn_c_try_link "$LINENO"; then :
25961 grub_cv_prog_ld_build_id_none=yes
25962 else
25963 grub_cv_prog_ld_build_id_none=no
25965 rm -f core conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
25967 LDFLAGS="$save_LDFLAGS"
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
25972 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
25974 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
25975 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
25978 if test "x$target_cpu" = xi386; then
25979 if test "$platform" != emu && test "x$TARGET_APPLE_LINKER" != x1 ; then
25980 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
25981 # Check symbols provided by linker script.
25982 CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
25986 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
25987 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25993 asm (".globl start; start:");
25994 void __main (void);
25995 void __main (void) {}
25996 int main (void);
25999 main (void)
26001 asm ("incl __bss_start")
26003 return 0;
26005 _ACEOF
26006 if ac_fn_c_try_link "$LINENO"; then :
26007 grub_cv_check_uscore_uscore_bss_start_symbol=yes
26008 else
26009 grub_cv_check_uscore_uscore_bss_start_symbol=no
26011 rm -f core conftest.err conftest.$ac_objext \
26012 conftest$ac_exeext conftest.$ac_ext
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
26017 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
26020 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
26021 if ${grub_cv_check_edata_symbol+:} false; then :
26022 $as_echo_n "(cached) " >&6
26023 else
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26027 asm (".globl start; start:");
26028 void __main (void);
26029 void __main (void) {}
26030 int main (void);
26032 main (void)
26034 asm ("incl edata")
26036 return 0;
26038 _ACEOF
26039 if ac_fn_c_try_link "$LINENO"; then :
26040 grub_cv_check_edata_symbol=yes
26041 else
26042 grub_cv_check_edata_symbol=no
26044 rm -f core conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
26050 $as_echo "$grub_cv_check_edata_symbol" >&6; }
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
26053 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
26054 if ${grub_cv_check_uscore_edata_symbol+:} false; then :
26055 $as_echo_n "(cached) " >&6
26056 else
26057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26058 /* end confdefs.h. */
26060 asm (".globl start; start:");
26061 void __main (void);
26062 void __main (void) {}
26063 int main (void);
26065 main (void)
26067 asm ("incl _edata")
26069 return 0;
26071 _ACEOF
26072 if ac_fn_c_try_link "$LINENO"; then :
26073 grub_cv_check_uscore_edata_symbol=yes
26074 else
26075 grub_cv_check_uscore_edata_symbol=no
26077 rm -f core conftest.err conftest.$ac_objext \
26078 conftest$ac_exeext conftest.$ac_ext
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
26083 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
26085 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
26086 BSS_START_SYMBOL=__bss_start
26087 elif test "x$grub_cv_check_edata_symbol" = xyes; then
26088 BSS_START_SYMBOL=edata
26089 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
26090 BSS_START_SYMBOL=_edata
26091 else
26092 as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
26097 $as_echo_n "checking if end is defined by the compiler... " >&6; }
26098 if ${grub_cv_check_end_symbol+:} false; then :
26099 $as_echo_n "(cached) " >&6
26100 else
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26104 asm (".globl start; start:");
26105 void __main (void);
26106 void __main (void) {}
26107 int main (void);
26109 main (void)
26111 asm ("incl end")
26113 return 0;
26115 _ACEOF
26116 if ac_fn_c_try_link "$LINENO"; then :
26117 grub_cv_check_end_symbol=yes
26118 else
26119 grub_cv_check_end_symbol=no
26121 rm -f core conftest.err conftest.$ac_objext \
26122 conftest$ac_exeext conftest.$ac_ext
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
26127 $as_echo "$grub_cv_check_end_symbol" >&6; }
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
26130 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
26131 if ${grub_cv_check_uscore_end_symbol+:} false; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h. */
26137 asm (".globl start; start:");
26138 void __main (void);
26139 void __main (void) {}
26140 int main (void);
26142 main (void)
26144 asm ("incl _end")
26146 return 0;
26148 _ACEOF
26149 if ac_fn_c_try_link "$LINENO"; then :
26150 grub_cv_check_uscore_end_symbol=yes
26151 else
26152 grub_cv_check_uscore_end_symbol=no
26154 rm -f core conftest.err conftest.$ac_objext \
26155 conftest$ac_exeext conftest.$ac_ext
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
26160 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
26162 if test "x$grub_cv_check_end_symbol" = xyes; then
26163 END_SYMBOL=end
26164 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
26165 END_SYMBOL=_end
26166 else
26167 as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
26171 CFLAGS="$TARGET_CFLAGS"
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
26174 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
26175 if ${grub_cv_i386_asm_prefix_requirement+:} false; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 cat > conftest.s <<\EOF
26179 .code16
26180 l1: addr32 movb %al, l1
26183 if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; } && test -s conftest.o; then
26189 grub_cv_i386_asm_prefix_requirement=yes
26190 else
26191 grub_cv_i386_asm_prefix_requirement=no
26194 rm -f conftest*
26198 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26199 grub_tmp_addr32="addr32"
26200 grub_tmp_data32="data32"
26201 else
26202 grub_tmp_addr32="addr32;"
26203 grub_tmp_data32="data32;"
26206 ADDR32=$grub_tmp_addr32
26207 DATA32=$grub_tmp_data32
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
26210 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
26214 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
26215 if ${grub_cv_i386_asm_addr32+:} false; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 cat > conftest.s.in <<\EOF
26219 .code16
26220 l1: @ADDR32@ movb %al, l1
26223 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
26224 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
26225 else
26226 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
26229 if { ac_try='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26232 ac_status=$?
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; } && test -s conftest.o; then
26235 grub_cv_i386_asm_addr32=yes
26236 else
26237 grub_cv_i386_asm_addr32=no
26240 rm -f conftest*
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
26245 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
26249 $as_echo_n "checking whether nm works... " >&6; }
26250 if ${grub_cv_prog_nm_works+:} false; then :
26251 $as_echo_n "(cached) " >&6
26252 else
26254 nm_works_tmp_dir="$(mktemp -d "./confXXXXXX")"
26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256 /* end confdefs.h. */
26259 main (void)
26263 return 0;
26265 _ACEOF
26266 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_works_tmp_dir/ef"
26267 if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev/null; then
26268 grub_cv_prog_nm_works=yes
26269 else
26270 grub_cv_prog_nm_minus_p=no
26272 rm "$nm_works_tmp_dir/ef"
26273 rmdir "$nm_works_tmp_dir"
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
26278 $as_echo "$grub_cv_prog_nm_works" >&6; }
26280 if test "x$grub_cv_prog_nm_works" != xyes; then
26281 as_fn_error $? "nm does not work" "$LINENO" 5
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
26285 $as_echo_n "checking whether nm accepts -P... " >&6; }
26286 if ${grub_cv_prog_nm_minus_p+:} false; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26290 nm_minus_p_tmp_dir="$(mktemp -d "./confXXXXXX")"
26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26295 main (void)
26299 return 0;
26301 _ACEOF
26302 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_minus_p_tmp_dir/ef"
26303 if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev/null; then
26304 grub_cv_prog_nm_minus_p=yes
26305 else
26306 grub_cv_prog_nm_minus_p=no
26308 rm "$nm_minus_p_tmp_dir/ef"
26309 rmdir "$nm_minus_p_tmp_dir"
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
26314 $as_echo "$grub_cv_prog_nm_minus_p" >&6; }
26316 if test "x$grub_cv_prog_nm_minus_p" = xyes; then
26317 TARGET_NMFLAGS_MINUS_P="-P"
26318 else
26319 TARGET_NMFLAGS_MINUS_P=
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
26323 $as_echo_n "checking whether nm accepts --defined-only... " >&6; }
26324 if ${grub_cv_prog_nm_defined_only+:} false; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26328 nm_defined_only_tmp_dir="$(mktemp -d "./confXXXXXX")"
26329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26333 main (void)
26337 return 0;
26339 _ACEOF
26340 $TARGET_CC $TARGET_CFLAGS -c conftest.c -o "$nm_defined_only_tmp_dir/ef"
26341 if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev/null; then
26342 grub_cv_prog_nm_defined_only=yes
26343 else
26344 grub_cv_prog_nm_defined_only=no
26346 rm "$nm_defined_only_tmp_dir/ef"
26347 rmdir "$nm_defined_only_tmp_dir"
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
26352 $as_echo "$grub_cv_prog_nm_defined_only" >&6; }
26354 if test "x$grub_cv_prog_nm_defined_only" = xyes; then
26355 TARGET_NMFLAGS_DEFINED_ONLY=--defined-only
26356 else
26357 TARGET_NMFLAGS_DEFINED_ONLY=
26363 if test "$platform" != emu; then
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
26365 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
26366 if ${grub_cv_cc_isystem+:} false; then :
26367 $as_echo_n "(cached) " >&6
26368 else
26370 SAVED_CPPFLAGS="$CPPFLAGS"
26371 CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373 /* end confdefs.h. */
26374 #include <stdarg.h>
26375 #include <stddef.h>
26376 int va_arg_func (int fixed, va_list args);
26378 main (void)
26382 return 0;
26384 _ACEOF
26385 if ac_fn_c_try_compile "$LINENO"; then :
26386 grub_cv_cc_isystem=yes
26387 else
26388 grub_cv_cc_isystem=no
26390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391 CPPFLAGS="$SAVED_CPPFLAGS"
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
26395 $as_echo "$grub_cv_cc_isystem" >&6; }
26397 if test x"$grub_cv_cc_isystem" = xyes ; then
26398 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
26403 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
26404 if ${grub_cv_cc_wtrampolines+:} false; then :
26405 $as_echo_n "(cached) " >&6
26406 else
26408 CFLAGS="$TARGET_CFLAGS -Wtrampolines -Werror"
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26411 #include <stdarg.h>
26412 int va_arg_func (int fixed, va_list args);
26414 main (void)
26418 return 0;
26420 _ACEOF
26421 if ac_fn_c_try_compile "$LINENO"; then :
26422 grub_cv_cc_wtrampolines=yes
26423 else
26424 grub_cv_cc_wtrampolines=no
26426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
26430 $as_echo "$grub_cv_cc_wtrampolines" >&6; }
26432 if test x"$grub_cv_cc_wtrampolines" = xyes ; then
26433 TARGET_CFLAGS="$TARGET_CFLAGS -Wtrampolines"
26436 # Restore the flags.
26437 CC="$tmp_CC"
26438 CFLAGS="$tmp_CFLAGS"
26439 CPPFLAGS="$tmp_CPPFLAGS"
26440 LDFLAGS="$tmp_LDFLAGS"
26441 LIBS="$tmp_LIBS"
26444 # Check for options.
26447 # Memory manager debugging.
26448 # Check whether --enable-mm-debug was given.
26449 if test "${enable_mm_debug+set}" = set; then :
26450 enableval=$enable_mm_debug;
26451 $as_echo "#define MM_DEBUG 1" >>confdefs.h
26456 # Check whether --enable-cache-stats was given.
26457 if test "${enable_cache_stats+set}" = set; then :
26458 enableval=$enable_cache_stats;
26462 if test x$enable_cache_stats = xyes; then
26463 DISK_CACHE_STATS=1
26464 else
26465 DISK_CACHE_STATS=0
26469 # Check whether --enable-boot-time was given.
26470 if test "${enable_boot_time+set}" = set; then :
26471 enableval=$enable_boot_time;
26475 if test x$enable_boot_time = xyes; then
26476 BOOT_TIME_STATS=1
26477 else
26478 BOOT_TIME_STATS=0
26482 # Check whether --enable-skip-platform was given.
26483 if test "${enable_skip_platform+set}" = set; then :
26484 enableval=$enable_skip_platform;
26488 if test x$enable_skip_platform = xyes; then
26489 skipplatform=SKIP
26490 else
26491 skipplatform=
26495 # Check whether --enable-grub-emu-usb was given.
26496 if test "${enable_grub_emu_usb+set}" = set; then :
26497 enableval=$enable_grub_emu_usb;
26501 # Check whether --enable-grub-emu-sdl was given.
26502 if test "${enable_grub_emu_sdl+set}" = set; then :
26503 enableval=$enable_grub_emu_sdl;
26507 # Check whether --enable-grub-emu-pci was given.
26508 if test "${enable_grub_emu_pci+set}" = set; then :
26509 enableval=$enable_grub_emu_pci;
26513 if test "$platform" = emu; then
26515 if test x"$enable_grub_emu_usb" != xyes ; then
26516 grub_emu_usb_excuse="not enabled"
26519 if test x"$enable_grub_emu_pci" = xyes ; then
26520 grub_emu_usb_excuse="conflicts with PCI support"
26523 if [ x"$grub_emu_usb_excuse" = x ]; then
26524 # Check for libusb libraries.
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
26526 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
26527 if ${ac_cv_lib_usb_usb_claim_interface+:} false; then :
26528 $as_echo_n "(cached) " >&6
26529 else
26530 ac_check_lib_save_LIBS=$LIBS
26531 LIBS="-lusb $LIBS"
26532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26533 /* end confdefs.h. */
26535 /* Override any GCC internal prototype to avoid an error.
26536 Use char because int might match the return type of a GCC
26537 builtin and then its argument prototype would still apply. */
26538 #ifdef __cplusplus
26539 extern "C"
26540 #endif
26541 char usb_claim_interface ();
26543 main (void)
26545 return usb_claim_interface ();
26547 return 0;
26549 _ACEOF
26550 if ac_fn_c_try_link "$LINENO"; then :
26551 ac_cv_lib_usb_usb_claim_interface=yes
26552 else
26553 ac_cv_lib_usb_usb_claim_interface=no
26555 rm -f core conftest.err conftest.$ac_objext \
26556 conftest$ac_exeext conftest.$ac_ext
26557 LIBS=$ac_check_lib_save_LIBS
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
26560 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
26561 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes; then :
26562 LIBUSB="-lusb"
26563 else
26564 grub_emu_usb_excuse="need libusb library"
26569 if [ x"$grub_emu_usb_excuse" = x ]; then
26570 # Check for headers.
26571 for ac_header in usb.h
26572 do :
26573 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
26574 if test "x$ac_cv_header_usb_h" = xyes; then :
26575 cat >>confdefs.h <<_ACEOF
26576 #define HAVE_USB_H 1
26577 _ACEOF
26579 else
26580 grub_emu_usb_excuse="need libusb headers"
26583 done
26586 if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
26587 as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled ($grub_emu_usb_excuse)" "$LINENO" 5
26589 if test x"$grub_emu_usb_excuse" = x ; then
26590 enable_grub_emu_usb=yes
26591 else
26592 enable_grub_emu_usb=no
26595 if test x"$enable_grub_emu_sdl" = xno ; then
26596 grub_emu_sdl_excuse="explicitly disabled"
26598 if [ x"$grub_emu_sdl_excuse" = x ]; then
26599 # Check for libSDL libraries.
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
26601 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
26602 if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
26603 $as_echo_n "(cached) " >&6
26604 else
26605 ac_check_lib_save_LIBS=$LIBS
26606 LIBS="-lSDL $LIBS"
26607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26608 /* end confdefs.h. */
26610 /* Override any GCC internal prototype to avoid an error.
26611 Use char because int might match the return type of a GCC
26612 builtin and then its argument prototype would still apply. */
26613 #ifdef __cplusplus
26614 extern "C"
26615 #endif
26616 char SDL_Init ();
26618 main (void)
26620 return SDL_Init ();
26622 return 0;
26624 _ACEOF
26625 if ac_fn_c_try_link "$LINENO"; then :
26626 ac_cv_lib_SDL_SDL_Init=yes
26627 else
26628 ac_cv_lib_SDL_SDL_Init=no
26630 rm -f core conftest.err conftest.$ac_objext \
26631 conftest$ac_exeext conftest.$ac_ext
26632 LIBS=$ac_check_lib_save_LIBS
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
26635 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
26636 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
26637 LIBSDL="-lSDL"
26638 else
26639 grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
26645 if [ x"$grub_emu_sdl_excuse" = x ]; then
26646 # Check for headers.
26647 for ac_header in SDL/SDL.h
26648 do :
26649 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
26650 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
26651 cat >>confdefs.h <<_ACEOF
26652 #define HAVE_SDL_SDL_H 1
26653 _ACEOF
26655 else
26656 grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
26659 done
26663 if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
26664 as_fn_error $? "SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
26666 if test x"$grub_emu_sdl_excuse" = x ; then
26667 enable_grub_emu_sdl=yes
26668 else
26669 enable_grub_emu_sdl=no
26672 if test x"$enable_grub_emu_pci" != xyes ; then
26673 grub_emu_pci_excuse="not enabled"
26676 if test x"$enable_grub_emu_usb" = xyes ; then
26677 grub_emu_pci_excuse="conflicts with USB support"
26680 if [ x"$grub_emu_pci_excuse" = x ]; then
26681 # Check for libpci libraries.
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
26683 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
26684 if ${ac_cv_lib_pciaccess_pci_system_init+:} false; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 ac_check_lib_save_LIBS=$LIBS
26688 LIBS="-lpciaccess $LIBS"
26689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26692 /* Override any GCC internal prototype to avoid an error.
26693 Use char because int might match the return type of a GCC
26694 builtin and then its argument prototype would still apply. */
26695 #ifdef __cplusplus
26696 extern "C"
26697 #endif
26698 char pci_system_init ();
26700 main (void)
26702 return pci_system_init ();
26704 return 0;
26706 _ACEOF
26707 if ac_fn_c_try_link "$LINENO"; then :
26708 ac_cv_lib_pciaccess_pci_system_init=yes
26709 else
26710 ac_cv_lib_pciaccess_pci_system_init=no
26712 rm -f core conftest.err conftest.$ac_objext \
26713 conftest$ac_exeext conftest.$ac_ext
26714 LIBS=$ac_check_lib_save_LIBS
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
26717 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
26718 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes; then :
26719 LIBPCIACCESS="-lpciaccess"
26720 else
26721 grub_emu_pci_excuse="need libpciaccess library"
26726 if [ x"$grub_emu_pci_excuse" = x ]; then
26727 # Check for headers.
26728 for ac_header in pci/pci.h
26729 do :
26730 ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
26731 if test "x$ac_cv_header_pci_pci_h" = xyes; then :
26732 cat >>confdefs.h <<_ACEOF
26733 #define HAVE_PCI_PCI_H 1
26734 _ACEOF
26736 else
26737 grub_emu_pci_excuse="need libpciaccess headers"
26740 done
26744 if test x"$grub_emu_pci_excuse" = x ; then
26745 enable_grub_emu_pci=yes
26746 else
26748 enable_grub_emu_pci=no
26755 else
26757 # Ignore --enable-emu-* if platform is not emu
26758 enable_grub_emu_sdl=no
26759 enable_grub_emu_usb=no
26760 enable_grub_emu_pci=no
26763 # Check whether --enable-grub-mkfont was given.
26764 if test "${enable_grub_mkfont+set}" = set; then :
26765 enableval=$enable_grub_mkfont;
26768 if test x"$enable_grub_mkfont" = xno ; then
26769 grub_mkfont_excuse="explicitly disabled"
26772 if test x"$grub_mkfont_excuse" = x ; then
26773 # Check for freetype libraries.
26774 if test -n "$ac_tool_prefix"; then
26775 for ac_prog in freetype-config
26777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26780 $as_echo_n "checking for $ac_word... " >&6; }
26781 if ${ac_cv_prog_FREETYPE+:} false; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 if test -n "$FREETYPE"; then
26785 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
26786 else
26787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26788 for as_dir in $PATH
26790 IFS=$as_save_IFS
26791 test -z "$as_dir" && as_dir=.
26792 for ac_exec_ext in '' $ac_executable_extensions; do
26793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26794 ac_cv_prog_FREETYPE="$ac_tool_prefix$ac_prog"
26795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26796 break 2
26798 done
26799 done
26800 IFS=$as_save_IFS
26804 FREETYPE=$ac_cv_prog_FREETYPE
26805 if test -n "$FREETYPE"; then
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
26807 $as_echo "$FREETYPE" >&6; }
26808 else
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26810 $as_echo "no" >&6; }
26814 test -n "$FREETYPE" && break
26815 done
26817 if test -z "$FREETYPE"; then
26818 ac_ct_FREETYPE=$FREETYPE
26819 for ac_prog in freetype-config
26821 # Extract the first word of "$ac_prog", so it can be a program name with args.
26822 set dummy $ac_prog; ac_word=$2
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26824 $as_echo_n "checking for $ac_word... " >&6; }
26825 if ${ac_cv_prog_ac_ct_FREETYPE+:} false; then :
26826 $as_echo_n "(cached) " >&6
26827 else
26828 if test -n "$ac_ct_FREETYPE"; then
26829 ac_cv_prog_ac_ct_FREETYPE="$ac_ct_FREETYPE" # Let the user override the test.
26830 else
26831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26832 for as_dir in $PATH
26834 IFS=$as_save_IFS
26835 test -z "$as_dir" && as_dir=.
26836 for ac_exec_ext in '' $ac_executable_extensions; do
26837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26838 ac_cv_prog_ac_ct_FREETYPE="$ac_prog"
26839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26840 break 2
26842 done
26843 done
26844 IFS=$as_save_IFS
26848 ac_ct_FREETYPE=$ac_cv_prog_ac_ct_FREETYPE
26849 if test -n "$ac_ct_FREETYPE"; then
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FREETYPE" >&5
26851 $as_echo "$ac_ct_FREETYPE" >&6; }
26852 else
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26854 $as_echo "no" >&6; }
26858 test -n "$ac_ct_FREETYPE" && break
26859 done
26861 if test "x$ac_ct_FREETYPE" = x; then
26862 FREETYPE=""
26863 else
26864 case $cross_compiling:$ac_tool_warned in
26865 yes:)
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26868 ac_tool_warned=yes ;;
26869 esac
26870 FREETYPE=$ac_ct_FREETYPE
26874 if test "x$FREETYPE" = x ; then
26875 grub_mkfont_excuse="need freetype2 library"
26879 unset ac_cv_header_ft2build_h
26881 if test x"$grub_mkfont_excuse" = x ; then
26882 # Check for freetype libraries.
26883 freetype_cflags=`$FREETYPE --cflags`
26884 freetype_libs=`$FREETYPE --libs`
26885 SAVED_CPPFLAGS="$CPPFLAGS"
26886 SAVED_LIBS="$LIBS"
26887 CPPFLAGS="$CPPFLAGS $freetype_cflags"
26888 LIBS="$LIBS $freetype_libs"
26889 for ac_header in ft2build.h
26890 do :
26891 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26892 if test "x$ac_cv_header_ft2build_h" = xyes; then :
26893 cat >>confdefs.h <<_ACEOF
26894 #define HAVE_FT2BUILD_H 1
26895 _ACEOF
26897 else
26898 grub_mkfont_excuse="need freetype2 headers"
26901 done
26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 char FT_Load_Glyph ();
26914 main (void)
26916 return FT_Load_Glyph ();
26918 return 0;
26920 _ACEOF
26921 if ac_fn_c_try_link "$LINENO"; then :
26923 else
26924 grub_mkfont_excuse="freetype2 library unusable"
26926 rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26928 CPPFLAGS="$SAVED_CPPFLAGS"
26929 LIBS="$SAVED_LIBS"
26932 if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
26933 as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
26935 if test x"$grub_mkfont_excuse" = x ; then
26936 enable_grub_mkfont=yes
26937 else
26938 enable_grub_mkfont=no
26944 SAVED_CC="$CC"
26945 SAVED_CPP="$CPP"
26946 SAVED_CFLAGS="$CFLAGS"
26947 SAVED_CPPFLAGS="$CPPFLAGS"
26948 SAVED_LDFLAGS="$LDFLAGS"
26949 CC="$BUILD_CC"
26950 CPP="$BUILD_CPP"
26951 CFLAGS="$BUILD_CFLAGS"
26952 CPPFLAGS="$BUILD_CPPFLAGS"
26953 LDFLAGS="$BUILD_LDFAGS"
26955 unset ac_cv_c_bigendian
26956 unset ac_cv_header_ft2build_h
26958 if ac_fn_c_compute_int "$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P" ""; then :
26962 if ac_fn_c_compute_int "$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG" ""; then :
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26967 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26968 if ${ac_cv_c_bigendian+:} false; then :
26969 $as_echo_n "(cached) " >&6
26970 else
26971 ac_cv_c_bigendian=unknown
26972 # See if we're dealing with a universal compiler.
26973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26974 /* end confdefs.h. */
26975 #ifndef __APPLE_CC__
26976 not a universal capable compiler
26977 #endif
26978 typedef int dummy;
26980 _ACEOF
26981 if ac_fn_c_try_compile "$LINENO"; then :
26983 # Check for potential -arch flags. It is not universal unless
26984 # there are at least two -arch flags with different values.
26985 ac_arch=
26986 ac_prev=
26987 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26988 if test -n "$ac_prev"; then
26989 case $ac_word in
26990 i?86 | x86_64 | ppc | ppc64)
26991 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26992 ac_arch=$ac_word
26993 else
26994 ac_cv_c_bigendian=universal
26995 break
26998 esac
26999 ac_prev=
27000 elif test "x$ac_word" = "x-arch"; then
27001 ac_prev=arch
27003 done
27005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006 if test $ac_cv_c_bigendian = unknown; then
27007 # See if sys/param.h defines the BYTE_ORDER macro.
27008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27009 /* end confdefs.h. */
27010 #include <sys/types.h>
27011 #include <sys/param.h>
27014 main (void)
27016 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27017 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27018 && LITTLE_ENDIAN)
27019 bogus endian macros
27020 #endif
27023 return 0;
27025 _ACEOF
27026 if ac_fn_c_try_compile "$LINENO"; then :
27027 # It does; now see whether it defined to BIG_ENDIAN or not.
27028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27029 /* end confdefs.h. */
27030 #include <sys/types.h>
27031 #include <sys/param.h>
27034 main (void)
27036 #if BYTE_ORDER != BIG_ENDIAN
27037 not big endian
27038 #endif
27041 return 0;
27043 _ACEOF
27044 if ac_fn_c_try_compile "$LINENO"; then :
27045 ac_cv_c_bigendian=yes
27046 else
27047 ac_cv_c_bigendian=no
27049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053 if test $ac_cv_c_bigendian = unknown; then
27054 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27056 /* end confdefs.h. */
27057 #include <limits.h>
27060 main (void)
27062 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27063 bogus endian macros
27064 #endif
27067 return 0;
27069 _ACEOF
27070 if ac_fn_c_try_compile "$LINENO"; then :
27071 # It does; now see whether it defined to _BIG_ENDIAN or not.
27072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27073 /* end confdefs.h. */
27074 #include <limits.h>
27077 main (void)
27079 #ifndef _BIG_ENDIAN
27080 not big endian
27081 #endif
27084 return 0;
27086 _ACEOF
27087 if ac_fn_c_try_compile "$LINENO"; then :
27088 ac_cv_c_bigendian=yes
27089 else
27090 ac_cv_c_bigendian=no
27092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 if test $ac_cv_c_bigendian = unknown; then
27097 # Compile a test program.
27098 if test "$cross_compiling" = yes; then :
27099 # Try to guess by grepping values from an object file.
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102 short int ascii_mm[] =
27103 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27104 short int ascii_ii[] =
27105 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27106 int use_ascii (int i) {
27107 return ascii_mm[i] + ascii_ii[i];
27109 short int ebcdic_ii[] =
27110 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27111 short int ebcdic_mm[] =
27112 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27113 int use_ebcdic (int i) {
27114 return ebcdic_mm[i] + ebcdic_ii[i];
27116 extern int foo;
27119 main (void)
27121 return use_ascii (foo) == use_ebcdic (foo);
27123 return 0;
27125 _ACEOF
27126 if ac_fn_c_try_compile "$LINENO"; then :
27127 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27128 ac_cv_c_bigendian=yes
27130 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27131 if test "$ac_cv_c_bigendian" = unknown; then
27132 ac_cv_c_bigendian=no
27133 else
27134 # finding both strings is unlikely to happen, but who knows?
27135 ac_cv_c_bigendian=unknown
27139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27140 else
27141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27142 /* end confdefs.h. */
27143 $ac_includes_default
27145 main (void)
27148 /* Are we little or big endian? From Harbison&Steele. */
27149 union
27151 long int l;
27152 char c[sizeof (long int)];
27153 } u;
27154 u.l = 1;
27155 return u.c[sizeof (long int) - 1] == 1;
27158 return 0;
27160 _ACEOF
27161 if ac_fn_c_try_run "$LINENO"; then :
27162 ac_cv_c_bigendian=no
27163 else
27164 ac_cv_c_bigendian=yes
27166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27167 conftest.$ac_objext conftest.beam conftest.$ac_ext
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27173 $as_echo "$ac_cv_c_bigendian" >&6; }
27174 case $ac_cv_c_bigendian in #(
27175 yes)
27176 BUILD_WORDS_BIGENDIAN=1;; #(
27178 BUILD_WORDS_BIGENDIAN=0 ;; #(
27179 universal)
27180 BUILD_WORDS_BIGENDIAN=err
27181 ;; #(
27183 BUILD_WORDS_BIGENDIAN=err ;;
27184 esac
27187 if test x$BUILD_WORDS_BIGENDIAN = xerr ; then
27188 as_fn_error $? "couldnt determine build endianness" "$LINENO" 5
27195 if test x"$grub_build_mkfont_excuse" = x ; then
27196 # Check for freetype libraries.
27197 for ac_prog in freetype-config
27199 # Extract the first word of "$ac_prog", so it can be a program name with args.
27200 set dummy $ac_prog; ac_word=$2
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27202 $as_echo_n "checking for $ac_word... " >&6; }
27203 if ${ac_cv_prog_BUILD_FREETYPE+:} false; then :
27204 $as_echo_n "(cached) " >&6
27205 else
27206 if test -n "$BUILD_FREETYPE"; then
27207 ac_cv_prog_BUILD_FREETYPE="$BUILD_FREETYPE" # Let the user override the test.
27208 else
27209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27210 for as_dir in $PATH
27212 IFS=$as_save_IFS
27213 test -z "$as_dir" && as_dir=.
27214 for ac_exec_ext in '' $ac_executable_extensions; do
27215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27216 ac_cv_prog_BUILD_FREETYPE="$ac_prog"
27217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27218 break 2
27220 done
27221 done
27222 IFS=$as_save_IFS
27226 BUILD_FREETYPE=$ac_cv_prog_BUILD_FREETYPE
27227 if test -n "$BUILD_FREETYPE"; then
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_FREETYPE" >&5
27229 $as_echo "$BUILD_FREETYPE" >&6; }
27230 else
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27232 $as_echo "no" >&6; }
27236 test -n "$BUILD_FREETYPE" && break
27237 done
27239 if test "x$BUILD_FREETYPE" = x ; then
27240 grub_build_mkfont_excuse="need freetype2 library"
27244 if test x"$grub_build_mkfont_excuse" = x ; then
27245 # Check for freetype libraries.
27246 build_freetype_cflags=`$BUILD_FREETYPE --cflags`
27247 build_freetype_libs=`$BUILD_FREETYPE --libs`
27248 SAVED_CPPFLAGS_2="$CPPFLAGS"
27249 SAVED_LIBS="$LIBS"
27250 CPPFLAGS="$CPPFLAGS $build_freetype_cflags"
27251 LIBS="$LIBS $build_freetype_libs"
27252 for ac_header in ft2build.h
27253 do :
27254 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27255 if test "x$ac_cv_header_ft2build_h" = xyes; then :
27256 cat >>confdefs.h <<_ACEOF
27257 #define HAVE_FT2BUILD_H 1
27258 _ACEOF
27260 else
27261 grub_build_mkfont_excuse="need freetype2 headers"
27264 done
27266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27269 /* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27272 #ifdef __cplusplus
27273 extern "C"
27274 #endif
27275 char FT_Load_Glyph ();
27277 main (void)
27279 return FT_Load_Glyph ();
27281 return 0;
27283 _ACEOF
27284 if ac_fn_c_try_link "$LINENO"; then :
27286 else
27287 grub_build_mkfont_excuse="freetype2 library unusable"
27289 rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
27291 LIBS="$SAVED_LIBS"
27292 CPPFLAGS="$SAVED_CPPFLAGS_2"
27295 if test x"$enable_build_grub_mkfont" = xyes && test x"$grub_build_mkfont_excuse" != x ; then
27296 as_fn_error $? "build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
27298 if test x"$grub_build_mkfont_excuse" = x ; then
27299 enable_build_grub_mkfont=yes
27300 else
27301 enable_build_grub_mkfont=no
27303 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
27304 if test x"$grub_build_mkfont_excuse" = x ; then
27305 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont" "$LINENO" 5
27306 else
27307 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
27314 CC="$SAVED_CC"
27315 CPP="$SAVED_CPP"
27316 CFLAGS="$SAVED_CFLAGS"
27317 CPPFLAGS="$SAVED_CPPFLAGS"
27318 LDFLAGS="$SAVED_LDFLAGS"
27321 DJVU_FONT_SOURCE=
27323 starfield_excuse=
27325 # Check whether --enable-grub-themes was given.
27326 if test "${enable_grub_themes+set}" = set; then :
27327 enableval=$enable_grub_themes;
27330 if test x"$enable_grub_themes" = xno ; then
27331 starfield_excuse="explicitly disabled"
27334 if test x"$starfield_excuse" = x && test x"$enable_build_grub_mkfont" = xno ; then
27335 starfield_excuse="No build-time grub-mkfont"
27338 if test x"$starfield_excuse" = x; then
27339 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27340 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
27341 if test -f "$dir/DejaVuSans.$ext"; then
27342 DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
27343 break 2
27345 done
27346 done
27348 if test "x$DJVU_FONT_SOURCE" = x; then
27349 starfield_excuse="No DejaVu found"
27353 if test x"$enable_grub_themes" = xyes && test x"$starfield_excuse" != x; then
27354 as_fn_error $? "themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
27359 FONT_SOURCE=
27361 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
27362 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
27363 if test -f "$dir/unifont.$ext"; then
27364 md5="$(md5sum "$dir/unifont.$ext"|awk '{ print $1; }')"
27365 # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
27366 if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 || test "$md5" = 28f2565c7a41d8d407e2551159385edb || test "$md5" = dae5e588461b3b92b87b6ffee734f936 || test "$md5" = 4a3d687aa5bb329ed05f4263a1016791 ; then
27367 continue
27369 FONT_SOURCE="$dir/unifont.$ext"
27370 break 2
27372 done
27373 done
27375 if test x"$enable_build_grub_mkfont" = xno ; then
27376 FONT_SOURCE=
27379 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
27380 if test x"$grub_build_mkfont_excuse" = x ; then
27381 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont" "$LINENO" 5
27382 else
27383 as_fn_error $? "qemu, powerpc-ieee1275, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
27389 if test x"$FONT_SOURCE" = x && test x"$DJVU_FONT_SOURCE" = x && test x"$grub_build_mkfont_excuse" = x; then
27390 grub_build_mkfont_excuse="no fonts"
27394 # Check whether --enable-grub-mount was given.
27395 if test "${enable_grub_mount+set}" = set; then :
27396 enableval=$enable_grub_mount;
27399 if test x"$enable_grub_mount" = xno ; then
27400 grub_mount_excuse="explicitly disabled"
27403 if test x"$grub_mount_excuse" = x ; then
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
27405 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
27406 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
27407 $as_echo_n "(cached) " >&6
27408 else
27409 ac_check_lib_save_LIBS=$LIBS
27410 LIBS="-lfuse $LIBS"
27411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27412 /* end confdefs.h. */
27414 /* Override any GCC internal prototype to avoid an error.
27415 Use char because int might match the return type of a GCC
27416 builtin and then its argument prototype would still apply. */
27417 #ifdef __cplusplus
27418 extern "C"
27419 #endif
27420 char fuse_main_real ();
27422 main (void)
27424 return fuse_main_real ();
27426 return 0;
27428 _ACEOF
27429 if ac_fn_c_try_link "$LINENO"; then :
27430 ac_cv_lib_fuse_fuse_main_real=yes
27431 else
27432 ac_cv_lib_fuse_fuse_main_real=no
27434 rm -f core conftest.err conftest.$ac_objext \
27435 conftest$ac_exeext conftest.$ac_ext
27436 LIBS=$ac_check_lib_save_LIBS
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
27439 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
27440 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
27441 cat >>confdefs.h <<_ACEOF
27442 #define HAVE_LIBFUSE 1
27443 _ACEOF
27445 LIBS="-lfuse $LIBS"
27447 else
27448 grub_mount_excuse="need FUSE library"
27453 if test x"$grub_mount_excuse" = x ; then
27454 # Check for fuse headers.
27455 SAVED_CPPFLAGS="$CPPFLAGS"
27456 CPPFLAGS="$CPPFLAGS -DFUSE_USE_VERSION=26"
27457 for ac_header in fuse/fuse.h
27458 do :
27459 ac_fn_c_check_header_mongrel "$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
27460 if test "x$ac_cv_header_fuse_fuse_h" = xyes; then :
27461 cat >>confdefs.h <<_ACEOF
27462 #define HAVE_FUSE_FUSE_H 1
27463 _ACEOF
27465 else
27466 grub_mount_excuse="need FUSE headers"
27469 done
27471 CPPFLAGS="$SAVED_CPPFLAGS"
27474 if test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
27475 as_fn_error $? "grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
27477 if test x"$grub_mount_excuse" = x ; then
27478 enable_grub_mount=yes
27479 else
27480 enable_grub_mount=no
27484 # Check whether --enable-device-mapper was given.
27485 if test "${enable_device_mapper+set}" = set; then :
27486 enableval=$enable_device_mapper;
27489 if test x"$enable_device_mapper" = xno ; then
27490 device_mapper_excuse="explicitly disabled"
27493 if test x"$device_mapper_excuse" = x ; then
27494 # Check for device-mapper header.
27495 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
27496 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
27498 else
27499 device_mapper_excuse="need libdevmapper header"
27505 if test x"$device_mapper_excuse" = x ; then
27506 # Check for device-mapper library.
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
27508 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
27509 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
27510 $as_echo_n "(cached) " >&6
27511 else
27512 ac_check_lib_save_LIBS=$LIBS
27513 LIBS="-ldevmapper $LIBS"
27514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27515 /* end confdefs.h. */
27517 /* Override any GCC internal prototype to avoid an error.
27518 Use char because int might match the return type of a GCC
27519 builtin and then its argument prototype would still apply. */
27520 #ifdef __cplusplus
27521 extern "C"
27522 #endif
27523 char dm_task_create ();
27525 main (void)
27527 return dm_task_create ();
27529 return 0;
27531 _ACEOF
27532 if ac_fn_c_try_link "$LINENO"; then :
27533 ac_cv_lib_devmapper_dm_task_create=yes
27534 else
27535 ac_cv_lib_devmapper_dm_task_create=no
27537 rm -f core conftest.err conftest.$ac_objext \
27538 conftest$ac_exeext conftest.$ac_ext
27539 LIBS=$ac_check_lib_save_LIBS
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
27542 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
27543 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
27544 cat >>confdefs.h <<_ACEOF
27545 #define HAVE_LIBDEVMAPPER 1
27546 _ACEOF
27548 LIBS="-ldevmapper $LIBS"
27550 else
27551 device_mapper_excuse="need devmapper library"
27556 if test x"$device_mapper_excuse" = x ; then
27557 # Check for device-mapper library.
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
27559 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
27560 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false; then :
27561 $as_echo_n "(cached) " >&6
27562 else
27563 ac_check_lib_save_LIBS=$LIBS
27564 LIBS="-ldevmapper $LIBS"
27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h. */
27568 /* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27571 #ifdef __cplusplus
27572 extern "C"
27573 #endif
27574 char dm_log_with_errno_init ();
27576 main (void)
27578 return dm_log_with_errno_init ();
27580 return 0;
27582 _ACEOF
27583 if ac_fn_c_try_link "$LINENO"; then :
27584 ac_cv_lib_devmapper_dm_log_with_errno_init=yes
27585 else
27586 ac_cv_lib_devmapper_dm_log_with_errno_init=no
27588 rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
27593 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
27594 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes; then :
27595 cat >>confdefs.h <<_ACEOF
27596 #define HAVE_LIBDEVMAPPER 1
27597 _ACEOF
27599 LIBS="-ldevmapper $LIBS"
27601 else
27602 device_mapper_excuse="need devmapper library"
27607 if test x"$device_mapper_excuse" = x ; then
27608 LIBDEVMAPPER="-ldevmapper"
27610 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
27616 LIBGEOM=
27617 if test x$host_kernel = xkfreebsd; then
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
27619 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
27620 if ${ac_cv_lib_geom_geom_gettree+:} false; then :
27621 $as_echo_n "(cached) " >&6
27622 else
27623 ac_check_lib_save_LIBS=$LIBS
27624 LIBS="-lgeom $LIBS"
27625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27626 /* end confdefs.h. */
27628 /* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
27631 #ifdef __cplusplus
27632 extern "C"
27633 #endif
27634 char geom_gettree ();
27636 main (void)
27638 return geom_gettree ();
27640 return 0;
27642 _ACEOF
27643 if ac_fn_c_try_link "$LINENO"; then :
27644 ac_cv_lib_geom_geom_gettree=yes
27645 else
27646 ac_cv_lib_geom_geom_gettree=no
27648 rm -f core conftest.err conftest.$ac_objext \
27649 conftest$ac_exeext conftest.$ac_ext
27650 LIBS=$ac_check_lib_save_LIBS
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
27653 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
27654 if test "x$ac_cv_lib_geom_geom_gettree" = xyes; then :
27655 cat >>confdefs.h <<_ACEOF
27656 #define HAVE_LIBGEOM 1
27657 _ACEOF
27659 LIBS="-lgeom $LIBS"
27661 else
27662 as_fn_error $? "Your platform requires libgeom" "$LINENO" 5
27665 LIBGEOM="-lgeom"
27670 # Check whether --enable-liblzma was given.
27671 if test "${enable_liblzma+set}" = set; then :
27672 enableval=$enable_liblzma;
27675 if test x"$enable_liblzma" = xno ; then
27676 liblzma_excuse="explicitly disabled"
27679 if test x"$liblzma_excuse" = x ; then
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
27681 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
27682 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
27683 $as_echo_n "(cached) " >&6
27684 else
27685 ac_check_lib_save_LIBS=$LIBS
27686 LIBS="-llzma $LIBS"
27687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27688 /* end confdefs.h. */
27690 /* Override any GCC internal prototype to avoid an error.
27691 Use char because int might match the return type of a GCC
27692 builtin and then its argument prototype would still apply. */
27693 #ifdef __cplusplus
27694 extern "C"
27695 #endif
27696 char lzma_code ();
27698 main (void)
27700 return lzma_code ();
27702 return 0;
27704 _ACEOF
27705 if ac_fn_c_try_link "$LINENO"; then :
27706 ac_cv_lib_lzma_lzma_code=yes
27707 else
27708 ac_cv_lib_lzma_lzma_code=no
27710 rm -f core conftest.err conftest.$ac_objext \
27711 conftest$ac_exeext conftest.$ac_ext
27712 LIBS=$ac_check_lib_save_LIBS
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
27715 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
27716 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
27717 cat >>confdefs.h <<_ACEOF
27718 #define HAVE_LIBLZMA 1
27719 _ACEOF
27721 LIBS="-llzma $LIBS"
27723 else
27724 liblzma_excuse="need lzma library"
27728 if test x"$liblzma_excuse" = x ; then
27729 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
27730 if test "x$ac_cv_header_lzma_h" = xyes; then :
27732 else
27733 liblzma_excuse="need lzma header"
27739 if test x"$enable_liblzma" = xyes && test x"$liblzma_excuse" != x ; then
27740 as_fn_error $? "liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
27744 if test x"$liblzma_excuse" = x ; then
27745 LIBLZMA="-llzma"
27747 $as_echo "#define USE_LIBLZMA 1" >>confdefs.h
27753 # Check whether --enable-libzfs was given.
27754 if test "${enable_libzfs+set}" = set; then :
27755 enableval=$enable_libzfs;
27758 if test x"$enable_libzfs" = xno ; then
27759 libzfs_excuse="explicitly disabled"
27762 if test x"$libzfs_excuse" = x ; then
27763 # Only check for system headers if libzfs support has not been disabled.
27764 for ac_header in libzfs.h libnvpair.h
27765 do :
27766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27767 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27769 cat >>confdefs.h <<_ACEOF
27770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27771 _ACEOF
27775 done
27779 if test x"$libzfs_excuse" = x ; then
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
27781 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
27782 if ${ac_cv_lib_zfs_libzfs_init+:} false; then :
27783 $as_echo_n "(cached) " >&6
27784 else
27785 ac_check_lib_save_LIBS=$LIBS
27786 LIBS="-lzfs $LIBS"
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27790 /* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27793 #ifdef __cplusplus
27794 extern "C"
27795 #endif
27796 char libzfs_init ();
27798 main (void)
27800 return libzfs_init ();
27802 return 0;
27804 _ACEOF
27805 if ac_fn_c_try_link "$LINENO"; then :
27806 ac_cv_lib_zfs_libzfs_init=yes
27807 else
27808 ac_cv_lib_zfs_libzfs_init=no
27810 rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
27812 LIBS=$ac_check_lib_save_LIBS
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
27815 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
27816 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes; then :
27817 cat >>confdefs.h <<_ACEOF
27818 #define HAVE_LIBZFS 1
27819 _ACEOF
27821 LIBS="-lzfs $LIBS"
27823 else
27824 libzfs_excuse="need zfs library"
27829 if test x"$libzfs_excuse" = x ; then
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
27831 $as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
27832 if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false; then :
27833 $as_echo_n "(cached) " >&6
27834 else
27835 ac_check_lib_save_LIBS=$LIBS
27836 LIBS="-lnvpair $LIBS"
27837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27838 /* end confdefs.h. */
27840 /* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27843 #ifdef __cplusplus
27844 extern "C"
27845 #endif
27846 char nvlist_lookup_string ();
27848 main (void)
27850 return nvlist_lookup_string ();
27852 return 0;
27854 _ACEOF
27855 if ac_fn_c_try_link "$LINENO"; then :
27856 ac_cv_lib_nvpair_nvlist_lookup_string=yes
27857 else
27858 ac_cv_lib_nvpair_nvlist_lookup_string=no
27860 rm -f core conftest.err conftest.$ac_objext \
27861 conftest$ac_exeext conftest.$ac_ext
27862 LIBS=$ac_check_lib_save_LIBS
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
27865 $as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
27866 if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes; then :
27867 cat >>confdefs.h <<_ACEOF
27868 #define HAVE_LIBNVPAIR 1
27869 _ACEOF
27871 LIBS="-lnvpair $LIBS"
27873 else
27874 libzfs_excuse="need nvpair library"
27879 if test x"$enable_libzfs" = xyes && test x"$libzfs_excuse" != x ; then
27880 as_fn_error $? "libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
27883 if test x"$libzfs_excuse" = x ; then
27884 # We need both libzfs and libnvpair for a successful build.
27885 LIBZFS="-lzfs"
27887 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
27889 LIBNVPAIR="-lnvpair"
27891 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
27898 LIBS=""
27901 if test x$target_cpu = xi386 -a x$platform = xqemu; then :
27902 GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
27914 # Check whether --enable-werror was given.
27915 if test "${enable_werror+set}" = set; then :
27916 enableval=$enable_werror;
27919 if test x"$enable_werror" != xno ; then
27920 TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
27921 HOST_CFLAGS="$HOST_CFLAGS -Werror"
27924 if test "x$grub_cv_cc_target_clang" = xno; then
27925 TARGET_LDFLAGS_STATIC_LIBGCC="-static-libgcc"
27926 else
27927 TARGET_LDFLAGS_STATIC_LIBGCC=
27930 TARGET_CPP="$TARGET_CC -E"
27931 TARGET_CCAS=$TARGET_CC
27933 GRUB_TARGET_CPU="${target_cpu}"
27934 GRUB_PLATFORM="${platform}"
27966 # Automake conditionals
27969 if test x$platform != xnone; then
27970 COND_real_platform_TRUE=
27971 COND_real_platform_FALSE='#'
27972 else
27973 COND_real_platform_TRUE='#'
27974 COND_real_platform_FALSE=
27977 if test x$platform = xemu; then
27978 COND_emu_TRUE=
27979 COND_emu_FALSE='#'
27980 else
27981 COND_emu_TRUE='#'
27982 COND_emu_FALSE=
27985 if test x$grub_cv_cc_target_clang = xyes; then
27986 COND_clang_TRUE=
27987 COND_clang_FALSE='#'
27988 else
27989 COND_clang_TRUE='#'
27990 COND_clang_FALSE=
27993 if test x$target_cpu = xi386 -a x$platform = xpc; then
27994 COND_i386_pc_TRUE=
27995 COND_i386_pc_FALSE='#'
27996 else
27997 COND_i386_pc_TRUE='#'
27998 COND_i386_pc_FALSE=
28001 if test x$target_cpu = xi386 -a x$platform = xefi; then
28002 COND_i386_efi_TRUE=
28003 COND_i386_efi_FALSE='#'
28004 else
28005 COND_i386_efi_TRUE='#'
28006 COND_i386_efi_FALSE=
28009 if test x$target_cpu = xia64 -a x$platform = xefi; then
28010 COND_ia64_efi_TRUE=
28011 COND_ia64_efi_FALSE='#'
28012 else
28013 COND_ia64_efi_TRUE='#'
28014 COND_ia64_efi_FALSE=
28017 if test x$target_cpu = xi386 -a x$platform = xqemu; then
28018 COND_i386_qemu_TRUE=
28019 COND_i386_qemu_FALSE='#'
28020 else
28021 COND_i386_qemu_TRUE='#'
28022 COND_i386_qemu_FALSE=
28025 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
28026 COND_i386_ieee1275_TRUE=
28027 COND_i386_ieee1275_FALSE='#'
28028 else
28029 COND_i386_ieee1275_TRUE='#'
28030 COND_i386_ieee1275_FALSE=
28033 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
28034 COND_i386_coreboot_TRUE=
28035 COND_i386_coreboot_FALSE='#'
28036 else
28037 COND_i386_coreboot_TRUE='#'
28038 COND_i386_coreboot_FALSE=
28041 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
28042 COND_i386_multiboot_TRUE=
28043 COND_i386_multiboot_FALSE='#'
28044 else
28045 COND_i386_multiboot_TRUE='#'
28046 COND_i386_multiboot_FALSE=
28049 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
28050 COND_x86_64_efi_TRUE=
28051 COND_x86_64_efi_FALSE='#'
28052 else
28053 COND_x86_64_efi_TRUE='#'
28054 COND_x86_64_efi_FALSE=
28057 if test x$target_cpu = xi386 -a x$platform = xxen; then
28058 COND_i386_xen_TRUE=
28059 COND_i386_xen_FALSE='#'
28060 else
28061 COND_i386_xen_TRUE='#'
28062 COND_i386_xen_FALSE=
28065 if test x$target_cpu = xx86_64 -a x$platform = xxen; then
28066 COND_x86_64_xen_TRUE=
28067 COND_x86_64_xen_FALSE='#'
28068 else
28069 COND_x86_64_xen_TRUE='#'
28070 COND_x86_64_xen_FALSE=
28073 if test x$target_cpu = xmipsel -a x$platform = xloongson; then
28074 COND_mips_loongson_TRUE=
28075 COND_mips_loongson_FALSE='#'
28076 else
28077 COND_mips_loongson_TRUE='#'
28078 COND_mips_loongson_FALSE=
28081 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips; then
28082 COND_mips_qemu_mips_TRUE=
28083 COND_mips_qemu_mips_FALSE='#'
28084 else
28085 COND_mips_qemu_mips_TRUE='#'
28086 COND_mips_qemu_mips_FALSE=
28089 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xarc; then
28090 COND_mips_arc_TRUE=
28091 COND_mips_arc_FALSE='#'
28092 else
28093 COND_mips_arc_TRUE='#'
28094 COND_mips_arc_FALSE=
28097 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
28098 COND_sparc64_ieee1275_TRUE=
28099 COND_sparc64_ieee1275_FALSE='#'
28100 else
28101 COND_sparc64_ieee1275_TRUE='#'
28102 COND_sparc64_ieee1275_FALSE=
28105 if test x$target_cpu = xsparc64 -a x$platform = xemu; then
28106 COND_sparc64_emu_TRUE=
28107 COND_sparc64_emu_FALSE='#'
28108 else
28109 COND_sparc64_emu_TRUE='#'
28110 COND_sparc64_emu_FALSE=
28113 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
28114 COND_powerpc_ieee1275_TRUE=
28115 COND_powerpc_ieee1275_FALSE='#'
28116 else
28117 COND_powerpc_ieee1275_TRUE='#'
28118 COND_powerpc_ieee1275_FALSE=
28121 if test x$target_cpu = xmips -o x$target_cpu = xmipsel; then
28122 COND_mips_TRUE=
28123 COND_mips_FALSE='#'
28124 else
28125 COND_mips_TRUE='#'
28126 COND_mips_FALSE=
28129 if test x$target_cpu = xmipsel; then
28130 COND_mipsel_TRUE=
28131 COND_mipsel_FALSE='#'
28132 else
28133 COND_mipsel_TRUE='#'
28134 COND_mipsel_FALSE=
28137 if test x$target_cpu = xmips; then
28138 COND_mipseb_TRUE=
28139 COND_mipseb_FALSE='#'
28140 else
28141 COND_mipseb_TRUE='#'
28142 COND_mipseb_FALSE=
28145 if test x$target_cpu = xarm ; then
28146 COND_arm_TRUE=
28147 COND_arm_FALSE='#'
28148 else
28149 COND_arm_TRUE='#'
28150 COND_arm_FALSE=
28153 if test x$target_cpu = xarm -a x$platform = xuboot; then
28154 COND_arm_uboot_TRUE=
28155 COND_arm_uboot_FALSE='#'
28156 else
28157 COND_arm_uboot_TRUE='#'
28158 COND_arm_uboot_FALSE=
28161 if test x$target_cpu = xarm -a x$platform = xefi; then
28162 COND_arm_efi_TRUE=
28163 COND_arm_efi_FALSE='#'
28164 else
28165 COND_arm_efi_TRUE='#'
28166 COND_arm_efi_FALSE=
28169 if test x$target_cpu = xarm64 ; then
28170 COND_arm64_TRUE=
28171 COND_arm64_FALSE='#'
28172 else
28173 COND_arm64_TRUE='#'
28174 COND_arm64_FALSE=
28177 if test x$target_cpu = xarm64 -a x$platform = xefi; then
28178 COND_arm64_efi_TRUE=
28179 COND_arm64_efi_FALSE='#'
28180 else
28181 COND_arm64_efi_TRUE='#'
28182 COND_arm64_efi_FALSE=
28186 if test x$host_kernel = xhurd; then
28187 COND_HOST_HURD_TRUE=
28188 COND_HOST_HURD_FALSE='#'
28189 else
28190 COND_HOST_HURD_TRUE='#'
28191 COND_HOST_HURD_FALSE=
28194 if test x$host_kernel = xlinux; then
28195 COND_HOST_LINUX_TRUE=
28196 COND_HOST_LINUX_FALSE='#'
28197 else
28198 COND_HOST_LINUX_TRUE='#'
28199 COND_HOST_LINUX_FALSE=
28202 if test x$host_kernel = xnetbsd; then
28203 COND_HOST_NETBSD_TRUE=
28204 COND_HOST_NETBSD_FALSE='#'
28205 else
28206 COND_HOST_NETBSD_TRUE='#'
28207 COND_HOST_NETBSD_FALSE=
28210 if test x$host_kernel = xwindows; then
28211 COND_HOST_WINDOWS_TRUE=
28212 COND_HOST_WINDOWS_FALSE='#'
28213 else
28214 COND_HOST_WINDOWS_TRUE='#'
28215 COND_HOST_WINDOWS_FALSE=
28218 if test x$host_kernel = xkfreebsd; then
28219 COND_HOST_KFREEBSD_TRUE=
28220 COND_HOST_KFREEBSD_FALSE='#'
28221 else
28222 COND_HOST_KFREEBSD_TRUE='#'
28223 COND_HOST_KFREEBSD_FALSE=
28226 if test x$host_kernel = xxnu; then
28227 COND_HOST_XNU_TRUE=
28228 COND_HOST_XNU_FALSE='#'
28229 else
28230 COND_HOST_XNU_TRUE='#'
28231 COND_HOST_XNU_FALSE=
28234 if test x$host_kernel = xillumos; then
28235 COND_HOST_ILLUMOS_TRUE=
28236 COND_HOST_ILLUMOS_FALSE='#'
28237 else
28238 COND_HOST_ILLUMOS_TRUE='#'
28239 COND_HOST_ILLUMOS_FALSE=
28243 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
28244 COND_MAN_PAGES_TRUE=
28245 COND_MAN_PAGES_FALSE='#'
28246 else
28247 COND_MAN_PAGES_TRUE='#'
28248 COND_MAN_PAGES_FALSE=
28251 if test x$enable_grub_emu_usb = xyes; then
28252 COND_GRUB_EMU_USB_TRUE=
28253 COND_GRUB_EMU_USB_FALSE='#'
28254 else
28255 COND_GRUB_EMU_USB_TRUE='#'
28256 COND_GRUB_EMU_USB_FALSE=
28259 if test x$enable_grub_emu_sdl = xyes; then
28260 COND_GRUB_EMU_SDL_TRUE=
28261 COND_GRUB_EMU_SDL_FALSE='#'
28262 else
28263 COND_GRUB_EMU_SDL_TRUE='#'
28264 COND_GRUB_EMU_SDL_FALSE=
28267 if test x$enable_grub_emu_pci = xyes; then
28268 COND_GRUB_EMU_PCI_TRUE=
28269 COND_GRUB_EMU_PCI_FALSE='#'
28270 else
28271 COND_GRUB_EMU_PCI_TRUE='#'
28272 COND_GRUB_EMU_PCI_FALSE=
28275 if test x$enable_grub_mkfont = xyes; then
28276 COND_GRUB_MKFONT_TRUE=
28277 COND_GRUB_MKFONT_FALSE='#'
28278 else
28279 COND_GRUB_MKFONT_TRUE='#'
28280 COND_GRUB_MKFONT_FALSE=
28283 if test x$enable_grub_mount = xyes; then
28284 COND_GRUB_MOUNT_TRUE=
28285 COND_GRUB_MOUNT_FALSE='#'
28286 else
28287 COND_GRUB_MOUNT_TRUE='#'
28288 COND_GRUB_MOUNT_FALSE=
28291 if test x$FONT_SOURCE != x; then
28292 COND_HAVE_FONT_SOURCE_TRUE=
28293 COND_HAVE_FONT_SOURCE_FALSE='#'
28294 else
28295 COND_HAVE_FONT_SOURCE_TRUE='#'
28296 COND_HAVE_FONT_SOURCE_FALSE=
28299 if test x$FONT_SOURCE != x ; then
28300 HAVE_FONT_SOURCE=1
28301 else
28302 HAVE_FONT_SOURCE=0
28305 if test x$TARGET_APPLE_LINKER = x1; then
28306 COND_APPLE_LINKER_TRUE=
28307 COND_APPLE_LINKER_FALSE='#'
28308 else
28309 COND_APPLE_LINKER_TRUE='#'
28310 COND_APPLE_LINKER_FALSE=
28313 if test x$enable_efiemu = xyes; then
28314 COND_ENABLE_EFIEMU_TRUE=
28315 COND_ENABLE_EFIEMU_FALSE='#'
28316 else
28317 COND_ENABLE_EFIEMU_TRUE='#'
28318 COND_ENABLE_EFIEMU_FALSE=
28321 if test x$DISK_CACHE_STATS = x1; then
28322 COND_ENABLE_CACHE_STATS_TRUE=
28323 COND_ENABLE_CACHE_STATS_FALSE='#'
28324 else
28325 COND_ENABLE_CACHE_STATS_TRUE='#'
28326 COND_ENABLE_CACHE_STATS_FALSE=
28329 if test x$BOOT_TIME_STATS = x1; then
28330 COND_ENABLE_BOOT_TIME_STATS_TRUE=
28331 COND_ENABLE_BOOT_TIME_STATS_FALSE='#'
28332 else
28333 COND_ENABLE_BOOT_TIME_STATS_TRUE='#'
28334 COND_ENABLE_BOOT_TIME_STATS_FALSE=
28338 if test x$HAVE_CXX = xyes; then
28339 COND_HAVE_CXX_TRUE=
28340 COND_HAVE_CXX_FALSE='#'
28341 else
28342 COND_HAVE_CXX_TRUE='#'
28343 COND_HAVE_CXX_FALSE=
28347 if test x$HAVE_ASM_USCORE = x1; then
28348 COND_HAVE_ASM_USCORE_TRUE=
28349 COND_HAVE_ASM_USCORE_FALSE='#'
28350 else
28351 COND_HAVE_ASM_USCORE_TRUE='#'
28352 COND_HAVE_ASM_USCORE_FALSE=
28355 if test "x$starfield_excuse" = x; then
28356 COND_STARFIELD_TRUE=
28357 COND_STARFIELD_FALSE='#'
28358 else
28359 COND_STARFIELD_TRUE='#'
28360 COND_STARFIELD_FALSE=
28363 if test "x$have_exec" = xy; then
28364 COND_HAVE_EXEC_TRUE=
28365 COND_HAVE_EXEC_FALSE='#'
28366 else
28367 COND_HAVE_EXEC_TRUE='#'
28368 COND_HAVE_EXEC_FALSE=
28372 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28373 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28374 datarootdir="$(eval echo "$datarootdir")"
28375 grub_libdir="$(eval echo "$libdir")"
28376 grub_localedir="$(eval echo "$localedir")"
28377 grub_datadir="$(eval echo "$datadir")"
28378 grub_sysconfdir="$(eval echo "$sysconfdir")"
28380 cat >>confdefs.h <<_ACEOF
28381 #define LOCALEDIR "$grub_localedir"
28382 _ACEOF
28385 cat >>confdefs.h <<_ACEOF
28386 #define GRUB_LIBDIR "$grub_libdir"
28387 _ACEOF
28390 cat >>confdefs.h <<_ACEOF
28391 #define GRUB_DATADIR "$grub_datadir"
28392 _ACEOF
28395 cat >>confdefs.h <<_ACEOF
28396 #define GRUB_SYSCONFDIR "$grub_sysconfdir"
28397 _ACEOF
28401 # Output files.
28402 if test "$platform" != none; then
28403 cpudir="${target_cpu}"
28404 if test x${cpudir} = xmipsel; then
28405 cpudir=mips;
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s can handle directories properly" >&5
28409 $as_echo_n "checking whether ln -s can handle directories properly... " >&6; }
28410 mkdir testdir 2>/dev/null
28411 case $srcdir in
28412 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
28413 *) reldir=../$srcdir/include/grub/util ;;
28414 esac
28415 if ln -s $reldir testdir/util 2>/dev/null && rm -f testdir/util 2>/dev/null ; then
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28417 $as_echo "yes" >&6; }
28418 link_dir=yes
28419 else
28420 link_dir=no
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28422 $as_echo "no" >&6; }
28424 rm -rf testdir
28426 if test x"$link_dir" = xyes ; then
28427 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$cpudir"
28429 if test "$platform" != emu ; then
28430 ac_config_links="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
28433 else
28434 mkdir -p include/grub 2>/dev/null
28435 rm -rf include/grub/cpu
28436 cp -rp $srcdir/include/grub/$cpudir include/grub/cpu 2>/dev/null
28437 if test "$platform" != emu ; then
28438 rm -rf include/grub/machine
28439 cp -rp $srcdir/include/grub/$cpudir/$platform include/grub/machine 2>/dev/null
28442 else
28443 # Just enough to stop the compiler failing with -I$(srcdir)/include.
28444 mkdir -p include 2>/dev/null
28445 rm -rf include/grub/cpu include/grub/machine
28448 ac_config_files="$ac_config_files Makefile"
28450 ac_config_files="$ac_config_files grub-core/Makefile"
28452 ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
28454 ac_config_files="$ac_config_files po/Makefile.in"
28456 ac_config_files="$ac_config_files docs/Makefile"
28458 ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
28460 ac_config_files="$ac_config_files stamp-h"
28462 ac_config_files="$ac_config_files config.h"
28465 cat >confcache <<\_ACEOF
28466 # This file is a shell script that caches the results of configure
28467 # tests run on this system so they can be shared between configure
28468 # scripts and configure runs, see configure's option --config-cache.
28469 # It is not useful on other systems. If it contains results you don't
28470 # want to keep, you may remove or edit it.
28472 # config.status only pays attention to the cache file if you give it
28473 # the --recheck option to rerun configure.
28475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28477 # following values.
28479 _ACEOF
28481 # The following way of writing the cache mishandles newlines in values,
28482 # but we know of no workaround that is simple, portable, and efficient.
28483 # So, we kill variables containing newlines.
28484 # Ultrix sh set writes to stderr and can't be redirected directly,
28485 # and sets the high bit in the cache file unless we assign to the vars.
28487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28488 eval ac_val=\$$ac_var
28489 case $ac_val in #(
28490 *${as_nl}*)
28491 case $ac_var in #(
28492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28494 esac
28495 case $ac_var in #(
28496 _ | IFS | as_nl) ;; #(
28497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28498 *) { eval $ac_var=; unset $ac_var;} ;;
28499 esac ;;
28500 esac
28501 done
28503 (set) 2>&1 |
28504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28505 *${as_nl}ac_space=\ *)
28506 # `set' does not quote correctly, so add quotes: double-quote
28507 # substitution turns \\\\ into \\, and sed turns \\ into \.
28508 sed -n \
28509 "s/'/'\\\\''/g;
28510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28511 ;; #(
28513 # `set' quotes correctly as required by POSIX, so do not add quotes.
28514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28516 esac |
28517 sort
28519 sed '
28520 /^ac_cv_env_/b end
28521 t clear
28522 :clear
28523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28524 t end
28525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28526 :end' >>confcache
28527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28528 if test -w "$cache_file"; then
28529 if test "x$cache_file" != "x/dev/null"; then
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28531 $as_echo "$as_me: updating cache $cache_file" >&6;}
28532 if test ! -f "$cache_file" || test -h "$cache_file"; then
28533 cat confcache >"$cache_file"
28534 else
28535 case $cache_file in #(
28536 */* | ?:*)
28537 mv -f confcache "$cache_file"$$ &&
28538 mv -f "$cache_file"$$ "$cache_file" ;; #(
28540 mv -f confcache "$cache_file" ;;
28541 esac
28544 else
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28546 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28549 rm -f confcache
28551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28552 # Let make expand exec_prefix.
28553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28555 DEFS=-DHAVE_CONFIG_H
28557 ac_libobjs=
28558 ac_ltlibobjs=
28560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28561 # 1. Remove the extension, and $U if already installed.
28562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28565 # will be set to the directory where LIBOBJS objects are built.
28566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28568 done
28569 LIBOBJS=$ac_libobjs
28571 LTLIBOBJS=$ac_ltlibobjs
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28575 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28576 if test -n "$am_sleep_pid"; then
28577 # Hide warnings about reused PIDs.
28578 wait $am_sleep_pid 2>/dev/null
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28581 $as_echo "done" >&6; }
28582 if test -n "$EXEEXT"; then
28583 am__EXEEXT_TRUE=
28584 am__EXEEXT_FALSE='#'
28585 else
28586 am__EXEEXT_TRUE='#'
28587 am__EXEEXT_FALSE=
28590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28591 as_fn_error $? "conditional \"AMDEP\" was never defined.
28592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28595 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28599 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28602 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28603 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28606 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
28607 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
28608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28611 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28612 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28615 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28616 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28619 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28620 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28623 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28624 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28628 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28632 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28636 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28640 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28643 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28644 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28647 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28648 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28651 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
28652 as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
28653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28655 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
28656 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
28657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28661 gl_libobjs=
28662 gl_ltlibobjs=
28663 if test -n "$gl_LIBOBJS"; then
28664 # Remove the extension.
28665 sed_drop_objext='s/\.o$//;s/\.obj$//'
28666 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28667 gl_libobjs="$gl_libobjs $i.$ac_objext"
28668 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28669 done
28671 gl_LIBOBJS=$gl_libobjs
28673 gl_LTLIBOBJS=$gl_ltlibobjs
28677 gltests_libobjs=
28678 gltests_ltlibobjs=
28679 if test -n "$gltests_LIBOBJS"; then
28680 # Remove the extension.
28681 sed_drop_objext='s/\.o$//;s/\.obj$//'
28682 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28683 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28684 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28685 done
28687 gltests_LIBOBJS=$gltests_libobjs
28689 gltests_LTLIBOBJS=$gltests_ltlibobjs
28692 if test -z "${COND_real_platform_TRUE}" && test -z "${COND_real_platform_FALSE}"; then
28693 as_fn_error $? "conditional \"COND_real_platform\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
28697 as_fn_error $? "conditional \"COND_emu\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700 if test -z "${COND_clang_TRUE}" && test -z "${COND_clang_FALSE}"; then
28701 as_fn_error $? "conditional \"COND_clang\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
28705 as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
28709 as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
28713 as_fn_error $? "conditional \"COND_ia64_efi\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
28717 as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
28721 as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
28725 as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
28729 as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
28733 as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736 if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
28737 as_fn_error $? "conditional \"COND_i386_xen\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740 if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
28741 as_fn_error $? "conditional \"COND_x86_64_xen\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
28745 as_fn_error $? "conditional \"COND_mips_loongson\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
28749 as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
28753 as_fn_error $? "conditional \"COND_mips_arc\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
28757 as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28760 if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
28761 as_fn_error $? "conditional \"COND_sparc64_emu\" was never defined.
28762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28764 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
28765 as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
28766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28768 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
28769 as_fn_error $? "conditional \"COND_mips\" was never defined.
28770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28772 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
28773 as_fn_error $? "conditional \"COND_mipsel\" was never defined.
28774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28776 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
28777 as_fn_error $? "conditional \"COND_mipseb\" was never defined.
28778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28780 if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
28781 as_fn_error $? "conditional \"COND_arm\" was never defined.
28782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28784 if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
28785 as_fn_error $? "conditional \"COND_arm_uboot\" was never defined.
28786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28788 if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
28789 as_fn_error $? "conditional \"COND_arm_efi\" was never defined.
28790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28792 if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
28793 as_fn_error $? "conditional \"COND_arm64\" was never defined.
28794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28796 if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
28797 as_fn_error $? "conditional \"COND_arm64_efi\" was never defined.
28798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28800 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
28801 as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
28802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28804 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
28805 as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
28806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28808 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
28809 as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
28810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28812 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
28813 as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
28814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28816 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
28817 as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
28818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
28821 as_fn_error $? "conditional \"COND_HOST_XNU\" was never defined.
28822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
28825 as_fn_error $? "conditional \"COND_HOST_ILLUMOS\" was never defined.
28826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
28829 as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
28830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
28833 as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
28834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
28837 as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
28838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
28841 as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
28842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
28845 as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
28846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
28849 as_fn_error $? "conditional \"COND_GRUB_MOUNT\" was never defined.
28850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
28853 as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
28854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
28857 as_fn_error $? "conditional \"COND_APPLE_LINKER\" was never defined.
28858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
28861 as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
28862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
28865 as_fn_error $? "conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
28866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
28869 as_fn_error $? "conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
28870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28872 if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
28873 as_fn_error $? "conditional \"COND_HAVE_CXX\" was never defined.
28874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28876 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
28877 as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
28878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28880 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
28881 as_fn_error $? "conditional \"COND_STARFIELD\" was never defined.
28882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28884 if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
28885 as_fn_error $? "conditional \"COND_HAVE_EXEC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28889 : "${CONFIG_STATUS=./config.status}"
28890 ac_write_fail=0
28891 ac_clean_files_save=$ac_clean_files
28892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28895 as_write_fail=0
28896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28897 #! $SHELL
28898 # Generated by $as_me.
28899 # Run this file to recreate the current configuration.
28900 # Compiler output produced by configure, useful for debugging
28901 # configure, is in config.log if it exists.
28903 debug=false
28904 ac_cs_recheck=false
28905 ac_cs_silent=false
28907 SHELL=\${CONFIG_SHELL-$SHELL}
28908 export SHELL
28909 _ASEOF
28910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28911 ## -------------------- ##
28912 ## M4sh Initialization. ##
28913 ## -------------------- ##
28915 # Be more Bourne compatible
28916 DUALCASE=1; export DUALCASE # for MKS sh
28917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28918 emulate sh
28919 NULLCMD=:
28920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28921 # is contrary to our usage. Disable this feature.
28922 alias -g '${1+"$@"}'='"$@"'
28923 setopt NO_GLOB_SUBST
28924 else
28925 case `(set -o) 2>/dev/null` in #(
28926 *posix*) :
28927 set -o posix ;; #(
28928 *) :
28930 esac
28934 as_nl='
28936 export as_nl
28937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28941 # Prefer a ksh shell builtin over an external printf program on Solaris,
28942 # but without wasting forks for bash or zsh.
28943 if test -z "$BASH_VERSION$ZSH_VERSION" \
28944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28945 as_echo='print -r --'
28946 as_echo_n='print -rn --'
28947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28948 as_echo='printf %s\n'
28949 as_echo_n='printf %s'
28950 else
28951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28953 as_echo_n='/usr/ucb/echo -n'
28954 else
28955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28956 as_echo_n_body='eval
28957 arg=$1;
28958 case $arg in #(
28959 *"$as_nl"*)
28960 expr "X$arg" : "X\\(.*\\)$as_nl";
28961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28962 esac;
28963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28965 export as_echo_n_body
28966 as_echo_n='sh -c $as_echo_n_body as_echo'
28968 export as_echo_body
28969 as_echo='sh -c $as_echo_body as_echo'
28972 # The user is always right.
28973 if test "${PATH_SEPARATOR+set}" != set; then
28974 PATH_SEPARATOR=:
28975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28977 PATH_SEPARATOR=';'
28982 # IFS
28983 # We need space, tab and new line, in precisely that order. Quoting is
28984 # there to prevent editors from complaining about space-tab.
28985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28986 # splitting by setting IFS to empty value.)
28987 IFS=" "" $as_nl"
28989 # Find who we are. Look in the path if we contain no directory separator.
28990 as_myself=
28991 case $0 in #((
28992 *[\\/]* ) as_myself=$0 ;;
28993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28994 for as_dir in $PATH
28996 IFS=$as_save_IFS
28997 test -z "$as_dir" && as_dir=.
28998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28999 done
29000 IFS=$as_save_IFS
29003 esac
29004 # We did not find ourselves, most probably we were run as `sh COMMAND'
29005 # in which case we are not to be found in the path.
29006 if test "x$as_myself" = x; then
29007 as_myself=$0
29009 if test ! -f "$as_myself"; then
29010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29011 exit 1
29014 # Unset variables that we do not need and which cause bugs (e.g. in
29015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29016 # suppresses any "Segmentation fault" message there. '((' could
29017 # trigger a bug in pdksh 5.2.14.
29018 for as_var in BASH_ENV ENV MAIL MAILPATH
29019 do eval test x\${$as_var+set} = xset \
29020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29021 done
29022 PS1='$ '
29023 PS2='> '
29024 PS4='+ '
29026 # NLS nuisances.
29027 LC_ALL=C
29028 export LC_ALL
29029 LANGUAGE=C
29030 export LANGUAGE
29032 # CDPATH.
29033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29037 # ----------------------------------------
29038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29040 # script with STATUS, using 1 if that was 0.
29041 as_fn_error ()
29043 as_status=$1; test $as_status -eq 0 && as_status=1
29044 if test "$4"; then
29045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29048 $as_echo "$as_me: error: $2" >&2
29049 as_fn_exit $as_status
29050 } # as_fn_error
29053 # as_fn_set_status STATUS
29054 # -----------------------
29055 # Set $? to STATUS, without forking.
29056 as_fn_set_status ()
29058 return $1
29059 } # as_fn_set_status
29061 # as_fn_exit STATUS
29062 # -----------------
29063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29064 as_fn_exit ()
29066 set +e
29067 as_fn_set_status $1
29068 exit $1
29069 } # as_fn_exit
29071 # as_fn_unset VAR
29072 # ---------------
29073 # Portably unset VAR.
29074 as_fn_unset ()
29076 { eval $1=; unset $1;}
29078 as_unset=as_fn_unset
29079 # as_fn_append VAR VALUE
29080 # ----------------------
29081 # Append the text in VALUE to the end of the definition contained in VAR. Take
29082 # advantage of any shell optimizations that allow amortized linear growth over
29083 # repeated appends, instead of the typical quadratic growth present in naive
29084 # implementations.
29085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29086 eval 'as_fn_append ()
29088 eval $1+=\$2
29090 else
29091 as_fn_append ()
29093 eval $1=\$$1\$2
29095 fi # as_fn_append
29097 # as_fn_arith ARG...
29098 # ------------------
29099 # Perform arithmetic evaluation on the ARGs, and store the result in the
29100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29101 # must be portable across $(()) and expr.
29102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29103 eval 'as_fn_arith ()
29105 as_val=$(( $* ))
29107 else
29108 as_fn_arith ()
29110 as_val=`expr "$@" || test $? -eq 1`
29112 fi # as_fn_arith
29115 if expr a : '\(a\)' >/dev/null 2>&1 &&
29116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29117 as_expr=expr
29118 else
29119 as_expr=false
29122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29123 as_basename=basename
29124 else
29125 as_basename=false
29128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29129 as_dirname=dirname
29130 else
29131 as_dirname=false
29134 as_me=`$as_basename -- "$0" ||
29135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29136 X"$0" : 'X\(//\)$' \| \
29137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29138 $as_echo X/"$0" |
29139 sed '/^.*\/\([^/][^/]*\)\/*$/{
29140 s//\1/
29143 /^X\/\(\/\/\)$/{
29144 s//\1/
29147 /^X\/\(\/\).*/{
29148 s//\1/
29151 s/.*/./; q'`
29153 # Avoid depending upon Character Ranges.
29154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29157 as_cr_digits='0123456789'
29158 as_cr_alnum=$as_cr_Letters$as_cr_digits
29160 ECHO_C= ECHO_N= ECHO_T=
29161 case `echo -n x` in #(((((
29162 -n*)
29163 case `echo 'xy\c'` in
29164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29165 xy) ECHO_C='\c';;
29166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29167 ECHO_T=' ';;
29168 esac;;
29170 ECHO_N='-n';;
29171 esac
29173 rm -f conf$$ conf$$.exe conf$$.file
29174 if test -d conf$$.dir; then
29175 rm -f conf$$.dir/conf$$.file
29176 else
29177 rm -f conf$$.dir
29178 mkdir conf$$.dir 2>/dev/null
29180 if (echo >conf$$.file) 2>/dev/null; then
29181 if ln -s conf$$.file conf$$ 2>/dev/null; then
29182 as_ln_s='ln -s'
29183 # ... but there are two gotchas:
29184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29186 # In both cases, we have to default to `cp -pR'.
29187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29188 as_ln_s='cp -pR'
29189 elif ln conf$$.file conf$$ 2>/dev/null; then
29190 as_ln_s=ln
29191 else
29192 as_ln_s='cp -pR'
29194 else
29195 as_ln_s='cp -pR'
29197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29198 rmdir conf$$.dir 2>/dev/null
29201 # as_fn_mkdir_p
29202 # -------------
29203 # Create "$as_dir" as a directory, including parents if necessary.
29204 as_fn_mkdir_p ()
29207 case $as_dir in #(
29208 -*) as_dir=./$as_dir;;
29209 esac
29210 test -d "$as_dir" || eval $as_mkdir_p || {
29211 as_dirs=
29212 while :; do
29213 case $as_dir in #(
29214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29215 *) as_qdir=$as_dir;;
29216 esac
29217 as_dirs="'$as_qdir' $as_dirs"
29218 as_dir=`$as_dirname -- "$as_dir" ||
29219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29220 X"$as_dir" : 'X\(//\)[^/]' \| \
29221 X"$as_dir" : 'X\(//\)$' \| \
29222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29223 $as_echo X"$as_dir" |
29224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29225 s//\1/
29228 /^X\(\/\/\)[^/].*/{
29229 s//\1/
29232 /^X\(\/\/\)$/{
29233 s//\1/
29236 /^X\(\/\).*/{
29237 s//\1/
29240 s/.*/./; q'`
29241 test -d "$as_dir" && break
29242 done
29243 test -z "$as_dirs" || eval "mkdir $as_dirs"
29244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29247 } # as_fn_mkdir_p
29248 if mkdir -p . 2>/dev/null; then
29249 as_mkdir_p='mkdir -p "$as_dir"'
29250 else
29251 test -d ./-p && rmdir ./-p
29252 as_mkdir_p=false
29256 # as_fn_executable_p FILE
29257 # -----------------------
29258 # Test if FILE is an executable regular file.
29259 as_fn_executable_p ()
29261 test -f "$1" && test -x "$1"
29262 } # as_fn_executable_p
29263 as_test_x='test -x'
29264 as_executable_p=as_fn_executable_p
29266 # Sed expression to map a string onto a valid CPP name.
29267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29269 # Sed expression to map a string onto a valid variable name.
29270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29273 exec 6>&1
29274 ## ----------------------------------- ##
29275 ## Main body of $CONFIG_STATUS script. ##
29276 ## ----------------------------------- ##
29277 _ASEOF
29278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29281 # Save the log message, to keep $0 and so on meaningful, and to
29282 # report actual input values of CONFIG_FILES etc. instead of their
29283 # values after options handling.
29284 ac_log="
29285 This file was extended by GRUB $as_me 2.02~beta2, which was
29286 generated by GNU Autoconf 2.69. Invocation command line was
29288 CONFIG_FILES = $CONFIG_FILES
29289 CONFIG_HEADERS = $CONFIG_HEADERS
29290 CONFIG_LINKS = $CONFIG_LINKS
29291 CONFIG_COMMANDS = $CONFIG_COMMANDS
29292 $ $0 $@
29294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29297 _ACEOF
29299 case $ac_config_files in *"
29300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29301 esac
29303 case $ac_config_headers in *"
29304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29305 esac
29308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29309 # Files that config.status was made for.
29310 config_files="$ac_config_files"
29311 config_headers="$ac_config_headers"
29312 config_links="$ac_config_links"
29313 config_commands="$ac_config_commands"
29315 _ACEOF
29317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29318 ac_cs_usage="\
29319 \`$as_me' instantiates files and other configuration actions
29320 from templates according to the current configuration. Unless the files
29321 and actions are specified as TAGs, all are instantiated by default.
29323 Usage: $0 [OPTION]... [TAG]...
29325 -h, --help print this help, then exit
29326 -V, --version print version number and configuration settings, then exit
29327 --config print configuration, then exit
29328 -q, --quiet, --silent
29329 do not print progress messages
29330 -d, --debug don't remove temporary files
29331 --recheck update $as_me by reconfiguring in the same conditions
29332 --file=FILE[:TEMPLATE]
29333 instantiate the configuration file FILE
29334 --header=FILE[:TEMPLATE]
29335 instantiate the configuration header FILE
29337 Configuration files:
29338 $config_files
29340 Configuration headers:
29341 $config_headers
29343 Configuration links:
29344 $config_links
29346 Configuration commands:
29347 $config_commands
29349 Report bugs to <bug-grub@gnu.org>."
29351 _ACEOF
29352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29353 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29354 ac_cs_version="\\
29355 GRUB config.status 2.02~beta2
29356 configured by $0, generated by GNU Autoconf 2.69,
29357 with options \\"\$ac_cs_config\\"
29359 Copyright (C) 2012 Free Software Foundation, Inc.
29360 This config.status script is free software; the Free Software Foundation
29361 gives unlimited permission to copy, distribute and modify it."
29363 ac_pwd='$ac_pwd'
29364 srcdir='$srcdir'
29365 INSTALL='$INSTALL'
29366 MKDIR_P='$MKDIR_P'
29367 AWK='$AWK'
29368 test -n "\$AWK" || AWK=awk
29369 _ACEOF
29371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29372 # The default lists apply if the user does not specify any file.
29373 ac_need_defaults=:
29374 while test $# != 0
29376 case $1 in
29377 --*=?*)
29378 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29379 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29380 ac_shift=:
29382 --*=)
29383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29384 ac_optarg=
29385 ac_shift=:
29388 ac_option=$1
29389 ac_optarg=$2
29390 ac_shift=shift
29392 esac
29394 case $ac_option in
29395 # Handling of the options.
29396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29397 ac_cs_recheck=: ;;
29398 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29399 $as_echo "$ac_cs_version"; exit ;;
29400 --config | --confi | --conf | --con | --co | --c )
29401 $as_echo "$ac_cs_config"; exit ;;
29402 --debug | --debu | --deb | --de | --d | -d )
29403 debug=: ;;
29404 --file | --fil | --fi | --f )
29405 $ac_shift
29406 case $ac_optarg in
29407 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29408 '') as_fn_error $? "missing file argument" ;;
29409 esac
29410 as_fn_append CONFIG_FILES " '$ac_optarg'"
29411 ac_need_defaults=false;;
29412 --header | --heade | --head | --hea )
29413 $ac_shift
29414 case $ac_optarg in
29415 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29416 esac
29417 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29418 ac_need_defaults=false;;
29419 --he | --h)
29420 # Conflict between --help and --header
29421 as_fn_error $? "ambiguous option: \`$1'
29422 Try \`$0 --help' for more information.";;
29423 --help | --hel | -h )
29424 $as_echo "$ac_cs_usage"; exit ;;
29425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29427 ac_cs_silent=: ;;
29429 # This is an error.
29430 -*) as_fn_error $? "unrecognized option: \`$1'
29431 Try \`$0 --help' for more information." ;;
29433 *) as_fn_append ac_config_targets " $1"
29434 ac_need_defaults=false ;;
29436 esac
29437 shift
29438 done
29440 ac_configure_extra_args=
29442 if $ac_cs_silent; then
29443 exec 6>/dev/null
29444 ac_configure_extra_args="$ac_configure_extra_args --silent"
29447 _ACEOF
29448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29449 if \$ac_cs_recheck; then
29450 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29451 shift
29452 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29453 CONFIG_SHELL='$SHELL'
29454 export CONFIG_SHELL
29455 exec "\$@"
29458 _ACEOF
29459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29460 exec 5>>config.log
29462 echo
29463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29464 ## Running $as_me. ##
29465 _ASBOX
29466 $as_echo "$ac_log"
29467 } >&5
29469 _ACEOF
29470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29472 # INIT-COMMANDS
29474 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29475 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29476 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29477 # from automake < 1.5.
29478 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29479 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29480 LINGUAS="${LINGUAS-%UNSET%}"
29483 _ACEOF
29485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29487 # Handling of arguments.
29488 for ac_config_target in $ac_config_targets
29490 case $ac_config_target in
29491 "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
29492 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29493 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
29494 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
29495 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
29496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29497 "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
29498 "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
29499 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29500 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29501 "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
29502 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
29503 "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
29505 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29506 esac
29507 done
29510 # If the user did not use the arguments to specify the items to instantiate,
29511 # then the envvar interface is used. Set only those that are not.
29512 # We use the long form for the default assignment because of an extremely
29513 # bizarre bug on SunOS 4.1.3.
29514 if $ac_need_defaults; then
29515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29517 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29521 # Have a temporary directory for convenience. Make it in the build tree
29522 # simply because there is no reason against having it here, and in addition,
29523 # creating and moving files from /tmp can sometimes cause problems.
29524 # Hook for its removal unless debugging.
29525 # Note that there is a small window in which the directory will not be cleaned:
29526 # after its creation but before its name has been assigned to `$tmp'.
29527 $debug ||
29529 tmp= ac_tmp=
29530 trap 'exit_status=$?
29531 : "${ac_tmp:=$tmp}"
29532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29534 trap 'as_fn_exit 1' 1 2 13 15
29536 # Create a (secure) tmp directory for tmp files.
29539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29540 test -d "$tmp"
29541 } ||
29543 tmp=./conf$$-$RANDOM
29544 (umask 077 && mkdir "$tmp")
29545 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29546 ac_tmp=$tmp
29548 # Set up the scripts for CONFIG_FILES section.
29549 # No need to generate them if there are no CONFIG_FILES.
29550 # This happens for instance with `./config.status config.h'.
29551 if test -n "$CONFIG_FILES"; then
29554 ac_cr=`echo X | tr X '\015'`
29555 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29556 # But we know of no other shell where ac_cr would be empty at this
29557 # point, so we can use a bashism as a fallback.
29558 if test "x$ac_cr" = x; then
29559 eval ac_cr=\$\'\\r\'
29561 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29563 ac_cs_awk_cr='\\r'
29564 else
29565 ac_cs_awk_cr=$ac_cr
29568 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29569 _ACEOF
29573 echo "cat >conf$$subs.awk <<_ACEOF" &&
29574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29575 echo "_ACEOF"
29576 } >conf$$subs.sh ||
29577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29579 ac_delim='%!_!# '
29580 for ac_last_try in false false false false false :; do
29581 . ./conf$$subs.sh ||
29582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29585 if test $ac_delim_n = $ac_delim_num; then
29586 break
29587 elif $ac_last_try; then
29588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29589 else
29590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29592 done
29593 rm -f conf$$subs.sh
29595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29596 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29597 _ACEOF
29598 sed -n '
29600 s/^/S["/; s/!.*/"]=/
29603 s/^[^!]*!//
29604 :repl
29605 t repl
29606 s/'"$ac_delim"'$//
29607 t delim
29610 s/\(.\{148\}\)..*/\1/
29611 t more1
29612 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29615 b repl
29616 :more1
29617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29620 s/.\{148\}//
29621 t nl
29622 :delim
29624 s/\(.\{148\}\)..*/\1/
29625 t more2
29626 s/["\\]/\\&/g; s/^/"/; s/$/"/
29629 :more2
29630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29633 s/.\{148\}//
29634 t delim
29635 ' <conf$$subs.awk | sed '
29636 /^[^""]/{
29638 s/\n//
29640 ' >>$CONFIG_STATUS || ac_write_fail=1
29641 rm -f conf$$subs.awk
29642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29643 _ACAWK
29644 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29645 for (key in S) S_is_set[key] = 1
29646 FS = "\a"
29650 line = $ 0
29651 nfields = split(line, field, "@")
29652 substed = 0
29653 len = length(field[1])
29654 for (i = 2; i < nfields; i++) {
29655 key = field[i]
29656 keylen = length(key)
29657 if (S_is_set[key]) {
29658 value = S[key]
29659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29660 len += length(value) + length(field[++i])
29661 substed = 1
29662 } else
29663 len += 1 + keylen
29666 print line
29669 _ACAWK
29670 _ACEOF
29671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29674 else
29676 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29677 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29678 _ACEOF
29680 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29681 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29682 # trailing colons and then remove the whole line if VPATH becomes empty
29683 # (actually we leave an empty line to preserve line numbers).
29684 if test "x$srcdir" = x.; then
29685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29687 s///
29688 s/^/:/
29689 s/[ ]*$/:/
29690 s/:\$(srcdir):/:/g
29691 s/:\${srcdir}:/:/g
29692 s/:@srcdir@:/:/g
29693 s/^:*//
29694 s/:*$//
29696 s/\(=[ ]*\).*/\1/
29698 s/\n//
29699 s/^[^=]*=[ ]*$//
29703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29704 fi # test -n "$CONFIG_FILES"
29706 # Set up the scripts for CONFIG_HEADERS section.
29707 # No need to generate them if there are no CONFIG_HEADERS.
29708 # This happens for instance with `./config.status Makefile'.
29709 if test -n "$CONFIG_HEADERS"; then
29710 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29711 BEGIN {
29712 _ACEOF
29714 # Transform confdefs.h into an awk script `defines.awk', embedded as
29715 # here-document in config.status, that substitutes the proper values into
29716 # config.h.in to produce config.h.
29718 # Create a delimiter string that does not exist in confdefs.h, to ease
29719 # handling of long lines.
29720 ac_delim='%!_!# '
29721 for ac_last_try in false false :; do
29722 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29723 if test -z "$ac_tt"; then
29724 break
29725 elif $ac_last_try; then
29726 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29727 else
29728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29730 done
29732 # For the awk script, D is an array of macro values keyed by name,
29733 # likewise P contains macro parameters if any. Preserve backslash
29734 # newline sequences.
29736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29737 sed -n '
29738 s/.\{148\}/&'"$ac_delim"'/g
29739 t rset
29740 :rset
29741 s/^[ ]*#[ ]*define[ ][ ]*/ /
29742 t def
29744 :def
29745 s/\\$//
29746 t bsnl
29747 s/["\\]/\\&/g
29748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29749 D["\1"]=" \3"/p
29750 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29752 :bsnl
29753 s/["\\]/\\&/g
29754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29755 D["\1"]=" \3\\\\\\n"\\/p
29756 t cont
29757 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29758 t cont
29760 :cont
29762 s/.\{148\}/&'"$ac_delim"'/g
29763 t clear
29764 :clear
29765 s/\\$//
29766 t bsnlc
29767 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29769 :bsnlc
29770 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29771 b cont
29772 ' <confdefs.h | sed '
29773 s/'"$ac_delim"'/"\\\
29774 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29777 for (key in D) D_is_set[key] = 1
29778 FS = "\a"
29780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29781 line = \$ 0
29782 split(line, arg, " ")
29783 if (arg[1] == "#") {
29784 defundef = arg[2]
29785 mac1 = arg[3]
29786 } else {
29787 defundef = substr(arg[1], 2)
29788 mac1 = arg[2]
29790 split(mac1, mac2, "(") #)
29791 macro = mac2[1]
29792 prefix = substr(line, 1, index(line, defundef) - 1)
29793 if (D_is_set[macro]) {
29794 # Preserve the white space surrounding the "#".
29795 print prefix "define", macro P[macro] D[macro]
29796 next
29797 } else {
29798 # Replace #undef with comments. This is necessary, for example,
29799 # in the case of _POSIX_SOURCE, which is predefined and required
29800 # on some systems where configure will not decide to define it.
29801 if (defundef == "undef") {
29802 print "/*", prefix defundef, macro, "*/"
29803 next
29807 { print }
29808 _ACAWK
29809 _ACEOF
29810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29811 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29812 fi # test -n "$CONFIG_HEADERS"
29815 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29816 shift
29817 for ac_tag
29819 case $ac_tag in
29820 :[FHLC]) ac_mode=$ac_tag; continue;;
29821 esac
29822 case $ac_mode$ac_tag in
29823 :[FHL]*:*);;
29824 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29825 :[FH]-) ac_tag=-:-;;
29826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29827 esac
29828 ac_save_IFS=$IFS
29829 IFS=:
29830 set x $ac_tag
29831 IFS=$ac_save_IFS
29832 shift
29833 ac_file=$1
29834 shift
29836 case $ac_mode in
29837 :L) ac_source=$1;;
29838 :[FH])
29839 ac_file_inputs=
29840 for ac_f
29842 case $ac_f in
29843 -) ac_f="$ac_tmp/stdin";;
29844 *) # Look for the file first in the build tree, then in the source tree
29845 # (if the path is not absolute). The absolute path cannot be DOS-style,
29846 # because $ac_f cannot contain `:'.
29847 test -f "$ac_f" ||
29848 case $ac_f in
29849 [\\/$]*) false;;
29850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29851 esac ||
29852 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29853 esac
29854 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29855 as_fn_append ac_file_inputs " '$ac_f'"
29856 done
29858 # Let's still pretend it is `configure' which instantiates (i.e., don't
29859 # use $as_me), people would be surprised to read:
29860 # /* config.h. Generated by config.status. */
29861 configure_input='Generated from '`
29862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29863 `' by configure.'
29864 if test x"$ac_file" != x-; then
29865 configure_input="$ac_file. $configure_input"
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29867 $as_echo "$as_me: creating $ac_file" >&6;}
29869 # Neutralize special characters interpreted by sed in replacement strings.
29870 case $configure_input in #(
29871 *\&* | *\|* | *\\* )
29872 ac_sed_conf_input=`$as_echo "$configure_input" |
29873 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29874 *) ac_sed_conf_input=$configure_input;;
29875 esac
29877 case $ac_tag in
29878 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29880 esac
29882 esac
29884 ac_dir=`$as_dirname -- "$ac_file" ||
29885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29886 X"$ac_file" : 'X\(//\)[^/]' \| \
29887 X"$ac_file" : 'X\(//\)$' \| \
29888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29889 $as_echo X"$ac_file" |
29890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29891 s//\1/
29894 /^X\(\/\/\)[^/].*/{
29895 s//\1/
29898 /^X\(\/\/\)$/{
29899 s//\1/
29902 /^X\(\/\).*/{
29903 s//\1/
29906 s/.*/./; q'`
29907 as_dir="$ac_dir"; as_fn_mkdir_p
29908 ac_builddir=.
29910 case "$ac_dir" in
29911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29914 # A ".." for each directory in $ac_dir_suffix.
29915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29916 case $ac_top_builddir_sub in
29917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29919 esac ;;
29920 esac
29921 ac_abs_top_builddir=$ac_pwd
29922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29923 # for backward compatibility:
29924 ac_top_builddir=$ac_top_build_prefix
29926 case $srcdir in
29927 .) # We are building in place.
29928 ac_srcdir=.
29929 ac_top_srcdir=$ac_top_builddir_sub
29930 ac_abs_top_srcdir=$ac_pwd ;;
29931 [\\/]* | ?:[\\/]* ) # Absolute name.
29932 ac_srcdir=$srcdir$ac_dir_suffix;
29933 ac_top_srcdir=$srcdir
29934 ac_abs_top_srcdir=$srcdir ;;
29935 *) # Relative name.
29936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29937 ac_top_srcdir=$ac_top_build_prefix$srcdir
29938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29939 esac
29940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29943 case $ac_mode in
29946 # CONFIG_FILE
29949 case $INSTALL in
29950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29952 esac
29953 ac_MKDIR_P=$MKDIR_P
29954 case $MKDIR_P in
29955 [\\/$]* | ?:[\\/]* ) ;;
29956 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29957 esac
29958 _ACEOF
29960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29961 # If the template does not know about datarootdir, expand it.
29962 # FIXME: This hack should be removed a few years after 2.60.
29963 ac_datarootdir_hack=; ac_datarootdir_seen=
29964 ac_sed_dataroot='
29965 /datarootdir/ {
29969 /@datadir@/p
29970 /@docdir@/p
29971 /@infodir@/p
29972 /@localedir@/p
29973 /@mandir@/p'
29974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29975 *datarootdir*) ac_datarootdir_seen=yes;;
29976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29979 _ACEOF
29980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29981 ac_datarootdir_hack='
29982 s&@datadir@&$datadir&g
29983 s&@docdir@&$docdir&g
29984 s&@infodir@&$infodir&g
29985 s&@localedir@&$localedir&g
29986 s&@mandir@&$mandir&g
29987 s&\\\${datarootdir}&$datarootdir&g' ;;
29988 esac
29989 _ACEOF
29991 # Neutralize VPATH when `$srcdir' = `.'.
29992 # Shell code in configure.ac might set extrasub.
29993 # FIXME: do we really want to maintain this feature?
29994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29995 ac_sed_extra="$ac_vpsub
29996 $extrasub
29997 _ACEOF
29998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30001 s|@configure_input@|$ac_sed_conf_input|;t t
30002 s&@top_builddir@&$ac_top_builddir_sub&;t t
30003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30004 s&@srcdir@&$ac_srcdir&;t t
30005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30006 s&@top_srcdir@&$ac_top_srcdir&;t t
30007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30008 s&@builddir@&$ac_builddir&;t t
30009 s&@abs_builddir@&$ac_abs_builddir&;t t
30010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30011 s&@INSTALL@&$ac_INSTALL&;t t
30012 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30013 $ac_datarootdir_hack
30015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30016 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30021 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30023 which seems to be undefined. Please make sure it is defined" >&5
30024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30025 which seems to be undefined. Please make sure it is defined" >&2;}
30027 rm -f "$ac_tmp/stdin"
30028 case $ac_file in
30029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30031 esac \
30032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30036 # CONFIG_HEADER
30038 if test x"$ac_file" != x-; then
30040 $as_echo "/* $configure_input */" \
30041 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30042 } >"$ac_tmp/config.h" \
30043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30044 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30046 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30047 else
30048 rm -f "$ac_file"
30049 mv "$ac_tmp/config.h" "$ac_file" \
30050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30052 else
30053 $as_echo "/* $configure_input */" \
30054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30055 || as_fn_error $? "could not create -" "$LINENO" 5
30057 # Compute "$ac_file"'s index in $config_headers.
30058 _am_arg="$ac_file"
30059 _am_stamp_count=1
30060 for _am_header in $config_headers :; do
30061 case $_am_header in
30062 $_am_arg | $_am_arg:* )
30063 break ;;
30065 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30066 esac
30067 done
30068 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30069 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30070 X"$_am_arg" : 'X\(//\)[^/]' \| \
30071 X"$_am_arg" : 'X\(//\)$' \| \
30072 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30073 $as_echo X"$_am_arg" |
30074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30075 s//\1/
30078 /^X\(\/\/\)[^/].*/{
30079 s//\1/
30082 /^X\(\/\/\)$/{
30083 s//\1/
30086 /^X\(\/\).*/{
30087 s//\1/
30090 s/.*/./; q'`/stamp-h$_am_stamp_count
30094 # CONFIG_LINK
30097 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30099 else
30100 # Prefer the file from the source tree if names are identical.
30101 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30102 ac_source=$srcdir/$ac_source
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30106 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30108 if test ! -r "$ac_source"; then
30109 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
30111 rm -f "$ac_file"
30113 # Try a relative symlink, then a hard link, then a copy.
30114 case $ac_source in
30115 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30116 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30117 esac
30118 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30119 ln "$ac_source" "$ac_file" 2>/dev/null ||
30120 cp -p "$ac_source" "$ac_file" ||
30121 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30124 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30125 $as_echo "$as_me: executing $ac_file commands" >&6;}
30127 esac
30130 case $ac_file$ac_mode in
30131 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30132 # Older Autoconf quotes --file arguments for eval, but not when files
30133 # are listed without --file. Let's play safe and only enable the eval
30134 # if we detect the quoting.
30135 case $CONFIG_FILES in
30136 *\'*) eval set x "$CONFIG_FILES" ;;
30137 *) set x $CONFIG_FILES ;;
30138 esac
30139 shift
30140 for mf
30142 # Strip MF so we end up with the name of the file.
30143 mf=`echo "$mf" | sed -e 's/:.*$//'`
30144 # Check whether this is an Automake generated Makefile or not.
30145 # We used to match only the files named 'Makefile.in', but
30146 # some people rename them; so instead we look at the file content.
30147 # Grep'ing the first line is not enough: some people post-process
30148 # each Makefile.in and add a new line on top of each file to say so.
30149 # Grep'ing the whole file is not good either: AIX grep has a line
30150 # limit of 2048, but all sed's we know have understand at least 4000.
30151 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30152 dirpart=`$as_dirname -- "$mf" ||
30153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30154 X"$mf" : 'X\(//\)[^/]' \| \
30155 X"$mf" : 'X\(//\)$' \| \
30156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30157 $as_echo X"$mf" |
30158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30159 s//\1/
30162 /^X\(\/\/\)[^/].*/{
30163 s//\1/
30166 /^X\(\/\/\)$/{
30167 s//\1/
30170 /^X\(\/\).*/{
30171 s//\1/
30174 s/.*/./; q'`
30175 else
30176 continue
30178 # Extract the definition of DEPDIR, am__include, and am__quote
30179 # from the Makefile without running 'make'.
30180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30181 test -z "$DEPDIR" && continue
30182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30183 test -z "$am__include" && continue
30184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30185 # Find all dependency output files, they are included files with
30186 # $(DEPDIR) in their names. We invoke sed twice because it is the
30187 # simplest approach to changing $(DEPDIR) to its actual value in the
30188 # expansion.
30189 for file in `sed -n "
30190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30192 # Make sure the directory exists.
30193 test -f "$dirpart/$file" && continue
30194 fdir=`$as_dirname -- "$file" ||
30195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30196 X"$file" : 'X\(//\)[^/]' \| \
30197 X"$file" : 'X\(//\)$' \| \
30198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30199 $as_echo X"$file" |
30200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30201 s//\1/
30204 /^X\(\/\/\)[^/].*/{
30205 s//\1/
30208 /^X\(\/\/\)$/{
30209 s//\1/
30212 /^X\(\/\).*/{
30213 s//\1/
30216 s/.*/./; q'`
30217 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30218 # echo "creating $dirpart/$file"
30219 echo '# dummy' > "$dirpart/$file"
30220 done
30221 done
30224 "po-directories":C)
30225 for ac_file in $CONFIG_FILES; do
30226 # Support "outfile[:infile[:infile...]]"
30227 case "$ac_file" in
30228 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30229 esac
30230 # PO directories have a Makefile.in generated from Makefile.in.in.
30231 case "$ac_file" in */Makefile.in)
30232 # Adjust a relative srcdir.
30233 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30234 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
30235 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30236 # In autoconf-2.13 it is called $ac_given_srcdir.
30237 # In autoconf-2.50 it is called $srcdir.
30238 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30239 case "$ac_given_srcdir" in
30240 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30241 /*) top_srcdir="$ac_given_srcdir" ;;
30242 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
30243 esac
30244 # Treat a directory as a PO directory if and only if it has a
30245 # POTFILES.in file. This allows packages to have multiple PO
30246 # directories under different names or in different locations.
30247 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30248 rm -f "$ac_dir/POTFILES"
30249 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30250 gt_tab=`printf '\t'`
30251 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"
30252 POMAKEFILEDEPS="POTFILES.in"
30253 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30254 # on $ac_dir but don't depend on user-specified configuration
30255 # parameters.
30256 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30257 # The LINGUAS file contains the set of available languages.
30258 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30259 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30261 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30262 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30263 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30264 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30265 else
30266 # The set of available languages was given in configure.in.
30267 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30268 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30270 # Compute POFILES
30271 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30272 # Compute UPDATEPOFILES
30273 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30274 # Compute DUMMYPOFILES
30275 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30276 # Compute GMOFILES
30277 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30278 case "$ac_given_srcdir" in
30279 .) srcdirpre= ;;
30280 *) srcdirpre='$(srcdir)/' ;;
30281 esac
30282 POFILES=
30283 UPDATEPOFILES=
30284 DUMMYPOFILES=
30285 GMOFILES=
30286 for lang in $ALL_LINGUAS; do
30287 POFILES="$POFILES $srcdirpre$lang.po"
30288 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30289 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30290 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30291 done
30292 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30293 # environment variable.
30294 INST_LINGUAS=
30295 if test -n "$ALL_LINGUAS"; then
30296 for presentlang in $ALL_LINGUAS; do
30297 useit=no
30298 if test "%UNSET%" != "$LINGUAS"; then
30299 desiredlanguages="$LINGUAS"
30300 else
30301 desiredlanguages="$ALL_LINGUAS"
30303 for desiredlang in $desiredlanguages; do
30304 # Use the presentlang catalog if desiredlang is
30305 # a. equal to presentlang, or
30306 # b. a variant of presentlang (because in this case,
30307 # presentlang can be used as a fallback for messages
30308 # which are not translated in the desiredlang catalog).
30309 case "$desiredlang" in
30310 "$presentlang"*) useit=yes;;
30311 esac
30312 done
30313 if test $useit = yes; then
30314 INST_LINGUAS="$INST_LINGUAS $presentlang"
30316 done
30318 CATALOGS=
30319 if test -n "$INST_LINGUAS"; then
30320 for lang in $INST_LINGUAS; do
30321 CATALOGS="$CATALOGS $lang.gmo"
30322 done
30324 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30325 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"
30326 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30327 if test -f "$f"; then
30328 case "$f" in
30329 *.orig | *.bak | *~) ;;
30330 *) cat "$f" >> "$ac_dir/Makefile" ;;
30331 esac
30333 done
30336 esac
30337 done ;;
30338 "stamp-h":F) echo timestamp > stamp-h ;;
30340 esac
30341 done # for ac_tag
30344 as_fn_exit 0
30345 _ACEOF
30346 ac_clean_files=$ac_clean_files_save
30348 test $ac_write_fail = 0 ||
30349 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30352 # configure is writing to config.log, and then calls config.status.
30353 # config.status does its own redirection, appending to config.log.
30354 # Unfortunately, on DOS this fails, as config.log is still kept open
30355 # by configure, so config.status won't be able to write to it; its
30356 # output is simply discarded. So we exec the FD to /dev/null,
30357 # effectively closing config.log, so it can be properly (re)opened and
30358 # appended to by config.status. When coming back to configure, we
30359 # need to make the FD available again.
30360 if test "$no_create" != yes; then
30361 ac_cs_success=:
30362 ac_config_status_args=
30363 test "$silent" = yes &&
30364 ac_config_status_args="$ac_config_status_args --quiet"
30365 exec 5>/dev/null
30366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30367 exec 5>>config.log
30368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30369 # would make configure fail if this is the last instruction.
30370 $ac_cs_success || as_fn_exit 1
30372 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30374 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30378 echo "*******************************************************"
30379 echo GRUB2 will be compiled with following components:
30380 echo Platform: "$target_cpu"-"$platform"
30381 if [ x"$platform" = xemu ]; then
30382 if [ x"$grub_emu_usb_excuse" = x ]; then
30383 echo USB support for grub-emu: Yes
30384 else
30385 echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
30387 if [ x"$grub_emu_sdl_excuse" = x ]; then
30388 echo SDL support for grub-emu: Yes
30389 else
30390 echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
30392 if [ x"$grub_emu_pci_excuse" = x ]; then
30393 echo PCI support for grub-emu: Yes
30394 else
30395 echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
30398 if test x"$device_mapper_excuse" = x ; then
30399 echo With devmapper support: Yes
30400 else
30401 echo With devmapper support: No "($device_mapper_excuse)"
30403 if [ x"$enable_mm_debug" = xyes ]; then
30404 echo With memory debugging: Yes
30405 else
30406 echo With memory debugging: No
30408 if [ x"$enable_cache_stats" = xyes ]; then
30409 echo With disk cache statistics: Yes
30410 else
30411 echo With disk cache statistics: No
30414 if [ x"$enable_boot_time" = xyes ]; then
30415 echo With boot time statistics: Yes
30416 else
30417 echo With boot time statistics: No
30420 if [ x"$efiemu_excuse" = x ]; then
30421 echo efiemu runtime: Yes
30422 else
30423 echo efiemu runtime: No "($efiemu_excuse)"
30425 if [ x"$grub_mkfont_excuse" = x ]; then
30426 echo grub-mkfont: Yes
30427 else
30428 echo grub-mkfont: No "($grub_mkfont_excuse)"
30430 if [ x"$grub_mount_excuse" = x ]; then
30431 echo grub-mount: Yes
30432 else
30433 echo grub-mount: No "($grub_mount_excuse)"
30435 if [ x"$starfield_excuse" = x ]; then
30436 echo starfield theme: Yes
30437 echo With DejaVuSans font from $DJVU_FONT_SOURCE
30438 else
30439 echo starfield theme: No "($starfield_excuse)"
30441 if [ x"$libzfs_excuse" = x ]; then
30442 echo With libzfs support: Yes
30443 else
30444 echo With libzfs support: No "($libzfs_excuse)"
30446 if [ x"$grub_build_mkfont_excuse" = x ]; then
30447 echo Build-time grub-mkfont: Yes
30448 if test "x$FONT_SOURCE" = x ; then
30449 echo "Without unifont"
30450 else
30451 echo "With unifont from $FONT_SOURCE"
30453 else
30454 echo Build-time grub-mkfont: No "($grub_build_mkfont_excuse)"
30455 echo "Without unifont (no build-time grub-mkfont)"
30457 if test x"$liblzma_excuse" != x ; then
30458 echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
30459 else
30460 echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
30462 echo "*******************************************************"