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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
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 :
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
240 if test "x$CONFIG_SHELL" != x
; then :
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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
279 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
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 :
401 as_val
=`expr "$@" || test $? -eq 1`
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.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
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
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 ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
546 test -d .
/-p && rmdir .
/-p
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
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`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='grub'
583 PACKAGE_VERSION
='2.02~beta2'
584 PACKAGE_STRING
='GRUB 2.02~beta2'
585 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
588 ac_unique_file
="include/grub/dl.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
628 gl_fnmatch_required
=POSIX
629 gl_getopt_required
=POSIX
630 gl_getopt_required
=POSIX
631 ac_subst_vars
='gltests_LTLIBOBJS
643 COND_HAVE_ASM_USCORE_FALSE
644 COND_HAVE_ASM_USCORE_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
656 COND_HAVE_FONT_SOURCE_FALSE
657 COND_HAVE_FONT_SOURCE_TRUE
658 COND_GRUB_MOUNT_FALSE
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
670 COND_HOST_ILLUMOS_FALSE
671 COND_HOST_ILLUMOS_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
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
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
716 COND_x86_64_efi_FALSE
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
736 COND_real_platform_FALSE
737 COND_real_platform_TRUE
744 TARGET_IMG_BASE_LDOPT
756 TARGET_LDFLAGS_STATIC_LIBGCC
765 GRUB_BOOT_MACHINE_LINK_ADDR
775 build_freetype_cflags
777 BUILD_WORDS_BIGENDIAN
793 TARGET_NMFLAGS_DEFINED_ONLY
794 TARGET_NMFLAGS_MINUS_P
795 TARGET_LDFLAGS_OLDMAGIC
816 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
829 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
832 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
833 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
834 LIBUNISTRING_UNIWIDTH_H
835 LIBUNISTRING_UNITYPES_H
837 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
839 GL_GENERATE_SYSEXITS_H_FALSE
840 GL_GENERATE_SYSEXITS_H_TRUE
843 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
846 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
849 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
851 NEXT_AS_FIRST_DIRECTIVE_STRING_H
854 HAVE_DECL_STRNCASECMP
858 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
860 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
872 HAVE_SIGNED_SIG_ATOMIC_T
875 BITSIZEOF_SIG_ATOMIC_T
881 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
886 HAVE_UNSIGNED_LONG_LONG_INT
889 GL_GENERATE_STDBOOL_H_FALSE
890 GL_GENERATE_STDBOOL_H_TRUE
892 GL_GENERATE_STDALIGN_H_FALSE
893 GL_GENERATE_STDALIGN_H_TRUE
895 APPLE_UNIVERSAL_BUILD
896 HAVE_MSVC_INVALID_PARAMETER_HANDLER
986 REPLACE_CANONICALIZE_FILE_NAME
991 HAVE_STRUCT_RANDOM_DATA
1013 HAVE_DECL_GETLOADAVG
1014 HAVE_CANONICALIZE_FILE_NAME
1025 GNULIB_SECURE_GETENV
1028 GNULIB_REALLOC_POSIX
1045 GNULIB_CANONICALIZE_FILE_NAME
1049 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1052 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1054 GL_GENERATE_STDDEF_H_FALSE
1055 GL_GENERATE_STDDEF_H_TRUE
1059 REPLACE_STRUCT_LCONV
1067 LOCALCHARSET_TESTS_ENVIRONMENT
1069 HAVE_LANGINFO_YESEXPR
1071 HAVE_LANGINFO_T_FMT_AMPM
1072 HAVE_LANGINFO_CODESET
1074 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1079 GNULIB_GL_UNISTD_H_GETOPT
1082 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1084 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1085 UNISTD_H_HAVE_WINSOCK2_H
1106 REPLACE_GETDOMAINNAME
1117 HAVE_DECL_SETHOSTNAME
1118 HAVE_DECL_GETUSERSHELL
1119 HAVE_DECL_GETPAGESIZE
1120 HAVE_DECL_GETLOGIN_R
1121 HAVE_DECL_GETDOMAINNAME
1160 GNULIB_UNISTD_H_SIGPIPE
1161 GNULIB_UNISTD_H_NONBLOCKING
1187 GNULIB_GETDTABLESIZE
1188 GNULIB_GETDOMAINNAME
1211 REPLACE_STDIO_WRITE_FUNCS
1212 REPLACE_STDIO_READ_FUNCS
1221 REPLACE_OBSTACK_PRINTF
1246 HAVE_DECL_OBSTACK_PRINTF
1252 GNULIB_VSPRINTF_POSIX
1254 GNULIB_VPRINTF_POSIX
1256 GNULIB_VFPRINTF_POSIX
1263 GNULIB_STDIO_H_SIGPIPE
1264 GNULIB_STDIO_H_NONBLOCKING
1265 GNULIB_SPRINTF_POSIX
1279 GNULIB_OBSTACK_PRINTF_POSIX
1280 GNULIB_OBSTACK_PRINTF
1296 GNULIB_FPRINTF_POSIX
1305 GL_GENERATE_FNMATCH_H_FALSE
1306 GL_GENERATE_FNMATCH_H_TRUE
1309 GL_GENERATE_FLOAT_H_FALSE
1310 GL_GENERATE_FLOAT_H_TRUE
1312 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1320 GL_GENERATE_ERRNO_H_FALSE
1321 GL_GENERATE_ERRNO_H_TRUE
1323 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1326 PRAGMA_SYSTEM_HEADER
1327 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1423 GL_GENERATE_ALLOCA_H_FALSE
1424 GL_GENERATE_ALLOCA_H_TRUE
1427 GL_COND_LIBTOOL_FALSE
1428 GL_COND_LIBTOOL_TRUE
1440 XGETTEXT_EXTRA_OPTIONS
1448 GETTEXT_MACRO_VERSION
1451 am__fastdepCCAS_FALSE
1452 am__fastdepCCAS_TRUE
1456 am__fastdepCXX_FALSE
1496 TARGET_DECOMPRESSOR_LINK_ADDR
1507 grub_mkpasswd_pbkdf2
1517 AM_DEFAULT_VERBOSITY
1528 INSTALL_STRIP_PROGRAM
1582 program_transform_name
1595 enable_option_checking
1600 enable_dependency_tracking
1604 with_libiconv_prefix
1618 enable_device_mapper
1623 ac_precious_vars
='build_alias
1641 # Initialize some variables set by options.
1643 ac_init_version
=false
1644 ac_unrecognized_opts
=
1645 ac_unrecognized_sep
=
1646 # The variables have the same names as the options, with
1647 # dashes changed to underlines.
1648 cache_file
=/dev
/null
1655 program_transform_name
=s
,x
,x
,
1663 # Installation directory options.
1664 # These are left unexpanded so users can "make install exec_prefix=/foo"
1665 # and all the variables that are supposed to be based on exec_prefix
1666 # by default will actually change.
1667 # Use braces instead of parens because sh, perl, etc. also accept them.
1668 # (The list follows the same order as the GNU Coding Standards.)
1669 bindir
='${exec_prefix}/bin'
1670 sbindir
='${exec_prefix}/sbin'
1671 libexecdir
='${exec_prefix}/libexec'
1672 datarootdir
='${prefix}/share'
1673 datadir
='${datarootdir}'
1674 sysconfdir
='${prefix}/etc'
1675 sharedstatedir
='${prefix}/com'
1676 localstatedir
='${prefix}/var'
1677 includedir
='${prefix}/include'
1678 oldincludedir
='/usr/include'
1679 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1680 infodir
='${datarootdir}/info'
1685 libdir
='${exec_prefix}/lib'
1686 localedir
='${datarootdir}/locale'
1687 mandir
='${datarootdir}/man'
1693 # If the previous option needs an argument, assign it.
1694 if test -n "$ac_prev"; then
1695 eval $ac_prev=\
$ac_option
1701 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1706 # Accept the important Cygnus configure options, so we can diagnose typos.
1708 case $ac_dashdash$ac_option in
1712 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1714 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1715 bindir
=$ac_optarg ;;
1717 -build |
--build |
--buil |
--bui |
--bu)
1718 ac_prev
=build_alias
;;
1719 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1720 build_alias
=$ac_optarg ;;
1722 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1723 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1724 ac_prev
=cache_file
;;
1725 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1726 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1727 cache_file
=$ac_optarg ;;
1729 --config-cache |
-C)
1730 cache_file
=config.cache
;;
1732 -datadir |
--datadir |
--datadi |
--datad)
1734 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1735 datadir
=$ac_optarg ;;
1737 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1738 |
--dataroo |
--dataro |
--datar)
1739 ac_prev
=datarootdir
;;
1740 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1741 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1742 datarootdir
=$ac_optarg ;;
1744 -disable-* |
--disable-*)
1745 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1748 as_fn_error $?
"invalid feature name: $ac_useropt"
1749 ac_useropt_orig
=$ac_useropt
1750 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1753 "enable_
$ac_useropt"
1755 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1756 ac_unrecognized_sep
=', ';;
1758 eval enable_
$ac_useropt=no
;;
1760 -docdir |
--docdir |
--docdi |
--doc |
--do)
1762 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1763 docdir
=$ac_optarg ;;
1765 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1767 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1768 dvidir
=$ac_optarg ;;
1770 -enable-* |
--enable-*)
1771 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1774 as_fn_error $?
"invalid feature name: $ac_useropt"
1775 ac_useropt_orig
=$ac_useropt
1776 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1779 "enable_
$ac_useropt"
1781 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1782 ac_unrecognized_sep
=', ';;
1784 eval enable_
$ac_useropt=\
$ac_optarg ;;
1786 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1787 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1788 |
--exec |
--exe |
--ex)
1789 ac_prev
=exec_prefix
;;
1790 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1791 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1792 |
--exec=* |
--exe=* |
--ex=*)
1793 exec_prefix
=$ac_optarg ;;
1795 -gas |
--gas |
--ga |
--g)
1796 # Obsolete; use --with-gas.
1799 -help |
--help |
--hel |
--he |
-h)
1800 ac_init_help
=long
;;
1801 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1802 ac_init_help
=recursive
;;
1803 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1804 ac_init_help
=short
;;
1806 -host |
--host |
--hos |
--ho)
1807 ac_prev
=host_alias
;;
1808 -host=* |
--host=* |
--hos=* |
--ho=*)
1809 host_alias
=$ac_optarg ;;
1811 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1813 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1815 htmldir
=$ac_optarg ;;
1817 -includedir |
--includedir |
--includedi |
--included |
--include \
1818 |
--includ |
--inclu |
--incl |
--inc)
1819 ac_prev
=includedir
;;
1820 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1821 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1822 includedir
=$ac_optarg ;;
1824 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1826 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1827 infodir
=$ac_optarg ;;
1829 -libdir |
--libdir |
--libdi |
--libd)
1831 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1832 libdir
=$ac_optarg ;;
1834 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1835 |
--libexe |
--libex |
--libe)
1836 ac_prev
=libexecdir
;;
1837 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1838 |
--libexe=* |
--libex=* |
--libe=*)
1839 libexecdir
=$ac_optarg ;;
1841 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1842 ac_prev
=localedir
;;
1843 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1844 localedir
=$ac_optarg ;;
1846 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1847 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1848 ac_prev
=localstatedir
;;
1849 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1850 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1851 localstatedir
=$ac_optarg ;;
1853 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1855 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1856 mandir
=$ac_optarg ;;
1858 -nfp |
--nfp |
--nf)
1859 # Obsolete; use --without-fp.
1862 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1863 |
--no-cr |
--no-c |
-n)
1866 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1867 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1870 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1871 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1872 |
--oldin |
--oldi |
--old |
--ol |
--o)
1873 ac_prev
=oldincludedir
;;
1874 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1875 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1876 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1877 oldincludedir
=$ac_optarg ;;
1879 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1881 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1882 prefix
=$ac_optarg ;;
1884 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1885 |
--program-pre |
--program-pr |
--program-p)
1886 ac_prev
=program_prefix
;;
1887 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1888 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1889 program_prefix
=$ac_optarg ;;
1891 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1892 |
--program-suf |
--program-su |
--program-s)
1893 ac_prev
=program_suffix
;;
1894 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1895 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1896 program_suffix
=$ac_optarg ;;
1898 -program-transform-name |
--program-transform-name \
1899 |
--program-transform-nam |
--program-transform-na \
1900 |
--program-transform-n |
--program-transform- \
1901 |
--program-transform |
--program-transfor \
1902 |
--program-transfo |
--program-transf \
1903 |
--program-trans |
--program-tran \
1904 |
--progr-tra |
--program-tr |
--program-t)
1905 ac_prev
=program_transform_name
;;
1906 -program-transform-name=* |
--program-transform-name=* \
1907 |
--program-transform-nam=* |
--program-transform-na=* \
1908 |
--program-transform-n=* |
--program-transform-=* \
1909 |
--program-transform=* |
--program-transfor=* \
1910 |
--program-transfo=* |
--program-transf=* \
1911 |
--program-trans=* |
--program-tran=* \
1912 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1913 program_transform_name
=$ac_optarg ;;
1915 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1917 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1918 pdfdir
=$ac_optarg ;;
1920 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1922 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1925 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1926 |
-silent |
--silent |
--silen |
--sile |
--sil)
1929 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1931 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1933 sbindir
=$ac_optarg ;;
1935 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1936 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1937 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1939 ac_prev
=sharedstatedir
;;
1940 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1941 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1942 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1944 sharedstatedir
=$ac_optarg ;;
1946 -site |
--site |
--sit)
1948 -site=* |
--site=* |
--sit=*)
1951 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1953 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1954 srcdir
=$ac_optarg ;;
1956 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1957 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1958 ac_prev
=sysconfdir
;;
1959 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1960 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1961 sysconfdir
=$ac_optarg ;;
1963 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1964 ac_prev
=target_alias
;;
1965 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1966 target_alias
=$ac_optarg ;;
1968 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1971 -version |
--version |
--versio |
--versi |
--vers |
-V)
1972 ac_init_version
=: ;;
1975 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1978 as_fn_error $?
"invalid package name: $ac_useropt"
1979 ac_useropt_orig
=$ac_useropt
1980 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1985 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1986 ac_unrecognized_sep
=', ';;
1988 eval with_
$ac_useropt=\
$ac_optarg ;;
1990 -without-* |
--without-*)
1991 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1992 # Reject names that are not valid shell variable names.
1993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1994 as_fn_error $?
"invalid package name: $ac_useropt"
1995 ac_useropt_orig
=$ac_useropt
1996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997 case $ac_user_opts in
2001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2002 ac_unrecognized_sep
=', ';;
2004 eval with_
$ac_useropt=no
;;
2007 # Obsolete; use --with-x.
2010 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2011 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2012 ac_prev
=x_includes
;;
2013 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2014 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2015 x_includes
=$ac_optarg ;;
2017 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2018 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2019 ac_prev
=x_libraries
;;
2020 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2021 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2022 x_libraries
=$ac_optarg ;;
2024 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2025 Try \`$0 --help' for more information"
2029 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2030 # Reject names that are not valid shell variable names.
2031 case $ac_envvar in #(
2032 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2033 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2035 eval $ac_envvar=\
$ac_optarg
2036 export $ac_envvar ;;
2039 # FIXME: should be removed in autoconf 3.0.
2040 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2041 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2042 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2043 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2049 if test -n "$ac_prev"; then
2050 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2051 as_fn_error $?
"missing argument to $ac_option"
2054 if test -n "$ac_unrecognized_opts"; then
2055 case $enable_option_checking in
2057 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2058 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2062 # Check all directory arguments for consistency.
2063 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2064 datadir sysconfdir sharedstatedir localstatedir includedir \
2065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2066 libdir localedir mandir
2068 eval ac_val
=\$
$ac_var
2069 # Remove trailing slashes.
2072 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2073 eval $ac_var=\
$ac_val;;
2075 # Be sure to have absolute directory names.
2077 [\\/$
]* | ?
:[\\/]* ) continue;;
2078 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2080 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2083 # There might be people who depend on the old broken behavior: `$host'
2084 # used to hold the argument of --host etc.
2085 # FIXME: To remove some day.
2088 target
=$target_alias
2090 # FIXME: To remove some day.
2091 if test "x$host_alias" != x
; then
2092 if test "x$build_alias" = x
; then
2093 cross_compiling
=maybe
2094 elif test "x$build_alias" != "x$host_alias"; then
2100 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2102 test "$silent" = yes && exec 6>/dev
/null
2105 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2106 ac_ls_di
=`ls -di .` &&
2107 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2108 as_fn_error $?
"working directory cannot be determined"
2109 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2110 as_fn_error $?
"pwd does not report name of working directory"
2113 # Find the source files, if location was not specified.
2114 if test -z "$srcdir"; then
2115 ac_srcdir_defaulted
=yes
2116 # Try the directory containing this script, then the parent directory.
2117 ac_confdir
=`$as_dirname -- "$as_myself" ||
2118 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2119 X"$as_myself" : 'X\(//\)[^/]' \| \
2120 X"$as_myself" : 'X\(//\)$' \| \
2121 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2122 $as_echo X"$as_myself" |
2123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2141 if test ! -r "$srcdir/$ac_unique_file"; then
2145 ac_srcdir_defaulted
=no
2147 if test ! -r "$srcdir/$ac_unique_file"; then
2148 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2149 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2151 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2153 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2155 # When building in place, set srcdir=.
2156 if test "$ac_abs_confdir" = "$ac_pwd"; then
2159 # Remove unnecessary trailing slashes from srcdir.
2160 # Double slashes in file names in object file debugging info
2161 # mess up M-x gdb in Emacs.
2163 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2165 for ac_var
in $ac_precious_vars; do
2166 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2167 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2168 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2169 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2173 # Report the --help message.
2175 if test "$ac_init_help" = "long"; then
2176 # Omit some internal or obsolete options to make the list less imposing.
2177 # This message is too long to be a string in the A/UX 3.1 sh.
2179 \`configure' configures GRUB 2.02~beta2 to adapt to many kinds of systems.
2181 Usage: $0 [OPTION]... [VAR=VALUE]...
2183 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2184 VAR=VALUE. See below for descriptions of some of the useful variables.
2186 Defaults for the options are specified in brackets.
2189 -h, --help display this help and exit
2190 --help=short display options specific to this package
2191 --help=recursive display the short help of all the included packages
2192 -V, --version display version information and exit
2193 -q, --quiet, --silent do not print \`checking ...' messages
2194 --cache-file=FILE cache test results in FILE [disabled]
2195 -C, --config-cache alias for \`--cache-file=config.cache'
2196 -n, --no-create do not create output files
2197 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2199 Installation directories:
2200 --prefix=PREFIX install architecture-independent files in PREFIX
2201 [$ac_default_prefix]
2202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2205 By default, \`make install' will install all the files in
2206 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2207 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2208 for instance \`--prefix=\$HOME'.
2210 For better control, use the options below.
2212 Fine tuning of the installation directories:
2213 --bindir=DIR user executables [EPREFIX/bin]
2214 --sbindir=DIR system admin executables [EPREFIX/sbin]
2215 --libexecdir=DIR program executables [EPREFIX/libexec]
2216 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2217 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2218 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2219 --libdir=DIR object code libraries [EPREFIX/lib]
2220 --includedir=DIR C header files [PREFIX/include]
2221 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2222 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2223 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2224 --infodir=DIR info documentation [DATAROOTDIR/info]
2225 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2226 --mandir=DIR man documentation [DATAROOTDIR/man]
2227 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
2228 --htmldir=DIR html documentation [DOCDIR]
2229 --dvidir=DIR dvi documentation [DOCDIR]
2230 --pdfdir=DIR pdf documentation [DOCDIR]
2231 --psdir=DIR ps documentation [DOCDIR]
2237 --program-prefix=PREFIX prepend PREFIX to installed program names
2238 --program-suffix=SUFFIX append SUFFIX to installed program names
2239 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2242 --build=BUILD configure
for building on BUILD
[guessed
]
2243 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2244 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2248 if test -n "$ac_init_help"; then
2249 case $ac_init_help in
2250 short | recursive
) echo "Configuration of GRUB 2.02~beta2:";;
2255 --disable-option-checking ignore unrecognized
--enable/--with options
2256 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2257 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2258 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2259 --disable-silent-rules verbose build output
(undo
: "make V=0")
2260 --enable-dependency-tracking
2261 do not reject slow dependency extractors
2262 --disable-dependency-tracking
2263 speeds up one-time build
2264 --disable-nls do not use Native Language Support
2265 --disable-rpath do not hardcode runtime library paths
2266 --disable-largefile omit support
for large files
2267 --enable-efiemu build and
install the efiemu runtimes
2269 --enable-mm-debug include memory manager debugging
2270 --enable-cache-stats enable disk cache statistics collection
2271 --enable-boot-time enable boot
time statistics collection
2272 --enable-grub-emu-usb build and
install the
`grub-emu' debugging utility
2273 with USB support (default=guessed)
2274 --enable-grub-emu-sdl build and install the `grub-emu
' debugging utility
2275 with SDL support (default=guessed)
2276 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2277 with PCI support
(potentially dangerous
)
2279 --enable-grub-mkfont build and
install the
`grub-mkfont' utility
2281 --enable-grub-themes build and install GRUB themes (default=guessed)
2282 --enable-grub-mount build and install the `grub-mount
' utility
2284 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2285 --enable-liblzma enable liblzma integration (default=guessed)
2286 --enable-libzfs enable libzfs integration (default=guessed)
2287 --disable-werror do not use -Werror when building GRUB
2290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2292 --with-platform=PLATFORM
2293 select the host platform [[guessed]]
2294 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2295 --with-grubdir=DIR set the name of grub directory [[guessed]]
2296 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2297 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2298 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
2299 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
2300 --without-libintl-prefix don
't search for libintl in includedir and libdir
2301 --without-included-regex
2302 don't compile regex
; this is the default on systems
2303 with recent-enough versions of the GNU C Library
2304 (use with caution on other systems
).
2306 Some influential environment variables
:
2307 CC C compiler
command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2310 nonstandard directory
<lib dir
>
2311 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2312 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2313 you have headers
in a nonstandard directory
<include dir
>
2314 YACC The
`Yet Another Compiler Compiler' implementation to use.
2315 Defaults to the first program found out of: `bison
-y', `byacc',
2317 YFLAGS The list of arguments that will be passed by default to $YACC.
2318 This script will default YFLAGS to the empty string to avoid a
2319 default value of `-d' given by some make applications.
2321 CXX C++ compiler command
2322 CXXFLAGS C++ compiler flags
2323 CCAS assembler compiler command (defaults to CC)
2324 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2326 Use these variables to override the choices made by `configure' or to
help
2327 it to
find libraries and programs with nonstandard names
/locations.
2329 Report bugs to
<bug-grub@gnu.org
>.
2334 if test "$ac_init_help" = "recursive"; then
2335 # If there are subdirs, report their specific --help.
2336 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2337 test -d "$ac_dir" ||
2338 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2343 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2345 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2346 # A ".." for each directory in $ac_dir_suffix.
2347 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2348 case $ac_top_builddir_sub in
2349 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2350 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2353 ac_abs_top_builddir
=$ac_pwd
2354 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2355 # for backward compatibility:
2356 ac_top_builddir
=$ac_top_build_prefix
2359 .
) # We are building in place.
2361 ac_top_srcdir
=$ac_top_builddir_sub
2362 ac_abs_top_srcdir
=$ac_pwd ;;
2363 [\\/]* | ?
:[\\/]* ) # Absolute name.
2364 ac_srcdir
=$srcdir$ac_dir_suffix;
2365 ac_top_srcdir
=$srcdir
2366 ac_abs_top_srcdir
=$srcdir ;;
2368 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2369 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2370 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2372 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2374 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2375 # Check for guested configure.
2376 if test -f "$ac_srcdir/configure.gnu"; then
2378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2379 elif test -f "$ac_srcdir/configure"; then
2381 $SHELL "$ac_srcdir/configure" --help=recursive
2383 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2385 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2389 test -n "$ac_init_help" && exit $ac_status
2390 if $ac_init_version; then
2392 GRUB configure
2.02~beta2
2393 generated by GNU Autoconf
2.69
2395 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2396 This configure
script is free software
; the Free Software Foundation
2397 gives unlimited permission to copy
, distribute and modify it.
2402 ## ------------------------ ##
2403 ## Autoconf initialization. ##
2404 ## ------------------------ ##
2406 # ac_fn_c_try_compile LINENO
2407 # --------------------------
2408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2409 ac_fn_c_try_compile
()
2411 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2412 rm -f conftest.
$ac_objext
2413 if { { ac_try
="$ac_compile"
2415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_compile") 2>conftest.err
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } && {
2429 test -z "$ac_c_werror_flag" ||
2430 test ! -s conftest.err
2431 } && test -s conftest.$ac_objext; then :
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_c_try_compile
2444 # ac_fn_c_try_link LINENO
2445 # -----------------------
2446 # Try to link conftest.$ac_ext, and return whether this succeeded.
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2454 *) ac_try_echo
=$ac_try;;
2456 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2460 if test -s conftest.err
; then
2461 grep -v '^ *+' conftest.err
>conftest.er1
2462 cat conftest.er1
>&5
2463 mv -f conftest.er1 conftest.err
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest
$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 test -x conftest
$ac_exeext
2475 $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.
$ac_ext >&5
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status
$ac_retval
2488 } # ac_fn_c_try_link
2490 # ac_fn_c_try_cpp LINENO
2491 # ----------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2495 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2496 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } > conftest.i && {
2512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2513 test ! -s conftest.err
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 as_fn_set_status $ac_retval
2527 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2528 # -------------------------------------------------------
2529 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2530 # the include files in INCLUDES and setting the cache variable VAR
2532 ac_fn_c_check_header_mongrel ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 if eval \${$3+:} false; then :
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if eval \${$3+:} false; then :
2539 $as_echo_n "(cached) " >&6
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2545 # Is the header compilable?
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2547 $as_echo_n "checking $2 usability... " >&6; }
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 ac_header_compiler=yes
2556 ac_header_compiler=no
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2560 $as_echo "$ac_header_compiler" >&6; }
2562 # Is the header present?
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2564 $as_echo_n "checking $2 presence... " >&6; }
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2569 if ac_fn_c_try_cpp "$LINENO"; then :
2570 ac_header_preproc=yes
2572 ac_header_preproc=no
2574 rm -f conftest.err conftest.i conftest.$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2576 $as_echo "$ac_header_preproc" >&6; }
2578 # So? What about this header?
2579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2582 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2584 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2588 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2590 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2592 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2594 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2596 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2597 ( $as_echo "## ------------------------------- ##
2598 ## Report this to bug-grub@gnu.org ##
2599 ## ------------------------------- ##"
2600 ) | sed "s/^/$as_me: WARNING: /" >&2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604 $as_echo_n "checking for $2... " >&6; }
2605 if eval \${$3+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 eval "$3=\$ac_header_compiler"
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616 } # ac_fn_c_check_header_mongrel
2618 # ac_fn_c_try_run LINENO
2619 # ----------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2621 # that executables *can* be run.
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if { { ac_try="$ac_link"
2627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2628 *) ac_try_echo
=$ac_try;;
2630 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>&5
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2636 { { case "(($ac_try" in
2637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_try") 2>&5
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; }; }; then :
2648 $as_echo "$as_me: program exited with status $ac_status" >&5
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=$ac_status
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 as_fn_set_status $ac_retval
2660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2661 # -------------------------------------------------------
2662 # Tests whether HEADER exists and can be compiled using the include files in
2663 # INCLUDES, setting the cache variable VAR accordingly.
2664 ac_fn_c_check_header_compile ()
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if eval \${$3+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2677 if ac_fn_c_try_compile "$LINENO"; then :
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689 } # ac_fn_c_check_header_compile
2691 # ac_fn_cxx_try_compile LINENO
2692 # ----------------------------
2693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_cxx_try_compile ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext
2698 if { { ac_try="$ac_compile"
2700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2701 *) ac_try_echo
=$ac_try;;
2703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_compile") 2>conftest.err
2707 if test -s conftest.err
; then
2708 grep -v '^ *+' conftest.err
>conftest.er1
2709 cat conftest.er1
>&5
2710 mv -f conftest.er1 conftest.err
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_cxx_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.
$ac_objext; then :
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.
$ac_ext >&5
2724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2725 as_fn_set_status
$ac_retval
2727 } # ac_fn_cxx_try_compile
2729 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2730 # --------------------------------------------
2731 # Tries to find the compile-time value of EXPR in a program that includes
2732 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2734 ac_fn_c_compute_int
()
2736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2737 if test "$cross_compiling" = yes; then
2738 # Depending upon the size, compute the lo and hi bounds.
2739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2745 static int test_array [1 - 2 * !(($2) >= 0)];
2747 return test_array [0];
2753 if ac_fn_c_try_compile
"$LINENO"; then :
2756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2762 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2764 return test_array [0];
2770 if ac_fn_c_try_compile
"$LINENO"; then :
2771 ac_hi
=$ac_mid; break
2773 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2774 if test $ac_lo -le $ac_mid; then
2778 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2789 static int test_array [1 - 2 * !(($2) < 0)];
2791 return test_array [0];
2797 if ac_fn_c_try_compile
"$LINENO"; then :
2800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2808 return test_array [0];
2814 if ac_fn_c_try_compile
"$LINENO"; then :
2815 ac_lo
=$ac_mid; break
2817 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2818 if test $ac_mid -le $ac_hi; then
2822 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2832 # Binary search between lo and hi bounds.
2833 while test "x$ac_lo" != "x$ac_hi"; do
2834 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2841 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2843 return test_array [0];
2849 if ac_fn_c_try_compile
"$LINENO"; then :
2852 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2857 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2864 static long int longval () { return $2; }
2865 static unsigned long int ulongval () { return $2; }
2872 FILE *f = fopen ("conftest.val", "w");
2877 long int i = longval ();
2880 fprintf (f, "%ld", i);
2884 unsigned long int i = ulongval ();
2887 fprintf (f, "%lu", i);
2889 /* Do not output a trailing newline, as this causes \r\n confusion
2890 on some platforms. */
2891 return ferror (f) || fclose (f) != 0;
2897 if ac_fn_c_try_run
"$LINENO"; then :
2898 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908 as_fn_set_status
$ac_retval
2910 } # ac_fn_c_compute_int
2912 # ac_fn_c_check_func LINENO FUNC VAR
2913 # ----------------------------------
2914 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2915 ac_fn_c_check_func
()
2917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2919 $as_echo_n "checking for $2... " >&6; }
2920 if eval \
${$3+:} false
; then :
2921 $as_echo_n "(cached) " >&6
2923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2927 #define $2 innocuous_$2
2929 /* System header to define __stub macros and hopefully few prototypes,
2930 which can conflict with char $2 (); below.
2931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 <limits.h> exists even on freestanding compilers. */
2935 # include <limits.h>
2937 # include <assert.h>
2942 /* Override any GCC internal prototype to avoid an error.
2943 Use char because int might match the return type of a GCC
2944 builtin and then its argument prototype would still apply. */
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined __stub_$2 || defined __stub___$2
2964 if ac_fn_c_try_link
"$LINENO"; then :
2969 rm -f core conftest.err conftest.
$ac_objext \
2970 conftest
$ac_exeext conftest.
$ac_ext
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2974 $as_echo "$ac_res" >&6; }
2975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2977 } # ac_fn_c_check_func
2979 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2980 # ----------------------------------------------------
2981 # Tries to find if the field MEMBER exists in type AGGR, after including
2982 # INCLUDES, setting cache variable VAR accordingly.
2983 ac_fn_c_check_member
()
2985 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2987 $as_echo_n "checking for $2.$3... " >&6; }
2988 if eval \
${$4+:} false
; then :
2989 $as_echo_n "(cached) " >&6
2991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
3004 if ac_fn_c_try_compile
"$LINENO"; then :
3007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3014 if (sizeof ac_aggr.$3)
3020 if ac_fn_c_try_compile
"$LINENO"; then :
3025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3031 $as_echo "$ac_res" >&6; }
3032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3034 } # ac_fn_c_check_member
3036 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3037 # -------------------------------------------
3038 # Tests whether TYPE exists after having included INCLUDES, setting cache
3039 # variable VAR accordingly.
3040 ac_fn_c_check_type
()
3042 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044 $as_echo_n "checking for $2... " >&6; }
3045 if eval \
${$3+:} false
; then :
3046 $as_echo_n "(cached) " >&6
3049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3061 if ac_fn_c_try_compile
"$LINENO"; then :
3062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3074 if ac_fn_c_try_compile
"$LINENO"; then :
3079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3085 $as_echo "$ac_res" >&6; }
3086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3088 } # ac_fn_c_check_type
3090 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3091 # ---------------------------------------------
3092 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3094 ac_fn_c_check_decl
()
3096 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3097 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3098 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3100 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3101 if eval \
${$3+:} false
; then :
3102 $as_echo_n "(cached) " >&6
3104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3110 #ifndef $as_decl_name
3112 (void) $as_decl_use;
3114 (void) $as_decl_name;
3122 if ac_fn_c_try_compile
"$LINENO"; then :
3127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3131 $as_echo "$ac_res" >&6; }
3132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3134 } # ac_fn_c_check_decl
3135 cat >config.log
<<_ACEOF
3136 This file contains any messages produced by compilers while
3137 running configure, to aid debugging if configure makes a mistake.
3139 It was created by GRUB $as_me 2.02~beta2, which was
3140 generated by GNU Autoconf 2.69. Invocation command line was
3152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 $as_echo "PATH: $as_dir"
3192 # Keep a trace of the command line.
3193 # Strip out --no-create and --no-recursion so they do not pile up.
3194 # Strip out --silent because we don't want to record it for future runs.
3195 # Also quote any args containing shell meta-characters.
3196 # Make two passes to allow for proper duplicate-argument suppression.
3200 ac_must_keep_next
=false
3206 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3207 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3208 |
-silent |
--silent |
--silen |
--sile |
--sil)
3211 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3216 as_fn_append ac_configure_args1
" '$ac_arg'"
3217 if test $ac_must_keep_next = true
; then
3218 ac_must_keep_next
=false
# Got value, back to normal.
3221 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3222 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3223 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3224 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3225 case "$ac_configure_args0 " in
3226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3229 -* ) ac_must_keep_next
=true
;;
3232 as_fn_append ac_configure_args
" '$ac_arg'"
3237 { ac_configure_args0
=; unset ac_configure_args0
;}
3238 { ac_configure_args1
=; unset ac_configure_args1
;}
3240 # When interrupted or exit'd, cleanup temporary files, and complete
3241 # config.log. We remove comments because anyway the quotes in there
3242 # would cause problems or look ugly.
3243 # WARNING: Use '\'' to represent an apostrophe within the trap.
3244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3245 trap 'exit_status=$?
3246 # Save into config.log some information that might help in debugging.
3250 $as_echo "## ---------------- ##
3251 ## Cache variables. ##
3252 ## ---------------- ##"
3254 # The following way of writing the cache mishandles newlines in values,
3256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257 eval ac_val=\$$ac_var
3261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3265 _ | IFS | as_nl) ;; #(
3266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3267 *) { eval $ac_var=; unset $ac_var;} ;;
3272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273 *${as_nl}ac_space=\ *)
3275 "s/'\''/'\''\\\\'\'''\''/g;
3276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3286 $as_echo "## ----------------- ##
3287 ## Output variables. ##
3288 ## ----------------- ##"
3290 for ac_var in $ac_subst_vars
3292 eval ac_val=\$$ac_var
3294 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3296 $as_echo "$ac_var='\''$ac_val'\''"
3300 if test -n "$ac_subst_files"; then
3301 $as_echo "## ------------------- ##
3302 ## File substitutions. ##
3303 ## ------------------- ##"
3305 for ac_var
in $ac_subst_files
3307 eval ac_val
=\$
$ac_var
3309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3311 $as_echo "$ac_var='\''$ac_val'\''"
3316 if test -s confdefs.h; then
3317 $as_echo "## ----------- ##
3324 test "$ac_signal" != 0 &&
3325 $as_echo "$as_me: caught signal $ac_signal"
3326 $as_echo "$as_me: exit $exit_status"
3328 rm -f core *.core core.conftest.* &&
3329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3332 for ac_signal
in 1 2 13 15; do
3333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3338 rm -f -r conftest
* confdefs.h
3340 $as_echo "/* confdefs.h */" > confdefs.h
3342 # Predefined preprocessor variables.
3344 cat >>confdefs.h
<<_ACEOF
3345 #define PACKAGE_NAME "$PACKAGE_NAME"
3348 cat >>confdefs.h
<<_ACEOF
3349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3352 cat >>confdefs.h
<<_ACEOF
3353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3356 cat >>confdefs.h
<<_ACEOF
3357 #define PACKAGE_STRING "$PACKAGE_STRING"
3360 cat >>confdefs.h
<<_ACEOF
3361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3364 cat >>confdefs.h
<<_ACEOF
3365 #define PACKAGE_URL "$PACKAGE_URL"
3369 # Let the site file select an alternate cache file if it wants to.
3370 # Prefer an explicitly selected file to automatically selected ones.
3373 if test -n "$CONFIG_SITE"; then
3374 # We do not want a PATH search for config.site.
3375 case $CONFIG_SITE in #((
3376 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3377 */*) ac_site_file1
=$CONFIG_SITE;;
3378 *) ac_site_file1
=.
/$CONFIG_SITE;;
3380 elif test "x$prefix" != xNONE
; then
3381 ac_site_file1
=$prefix/share
/config.site
3382 ac_site_file2
=$prefix/etc
/config.site
3384 ac_site_file1
=$ac_default_prefix/share
/config.site
3385 ac_site_file2
=$ac_default_prefix/etc
/config.site
3387 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3389 test "x$ac_site_file" = xNONE
&& continue
3390 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3393 sed 's/^/| /' "$ac_site_file" >&5
3395 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $?
"failed to load site script $ac_site_file
3398 See \`config.log' for more details" "$LINENO" 5; }
3402 if test -r "$cache_file"; then
3403 # Some versions of bash will fail to source /dev/null (special files
3404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3405 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3407 $as_echo "$as_me: loading cache $cache_file" >&6;}
3409 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3410 *) .
"./$cache_file";;
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3415 $as_echo "$as_me: creating cache $cache_file" >&6;}
3419 gt_needs
="$gt_needs "
3420 as_fn_append ac_func_list
" flockfile"
3421 as_fn_append ac_func_list
" funlockfile"
3422 as_fn_append ac_header_list
" features.h"
3423 as_fn_append ac_header_list
" linewrap.h"
3424 as_fn_append ac_func_list
" btowc"
3425 as_fn_append ac_func_list
" isblank"
3426 as_fn_append ac_func_list
" iswctype"
3427 as_fn_append ac_func_list
" mbsrtowcs"
3428 as_fn_append ac_func_list
" mempcpy"
3429 as_fn_append ac_func_list
" wmemchr"
3430 as_fn_append ac_func_list
" wmemcpy"
3431 as_fn_append ac_func_list
" wmempcpy"
3432 as_fn_append ac_header_list
" wctype.h"
3433 as_fn_append ac_func_list
" getdelim"
3434 gl_getopt_required
=GNU
3435 as_fn_append ac_header_list
" getopt.h"
3436 as_fn_append ac_header_list
" langinfo.h"
3437 as_fn_append ac_header_list
" unistd.h"
3438 as_fn_append ac_func_list
" symlink"
3439 as_fn_append ac_header_list
" xlocale.h"
3440 as_fn_append ac_func_list
" mbsinit"
3441 as_fn_append ac_func_list
" mbrtowc"
3442 as_fn_append ac_header_list
" wchar.h"
3443 as_fn_append ac_func_list
" isascii"
3444 as_fn_append ac_header_list
" sys/mman.h"
3445 as_fn_append ac_func_list
" mprotect"
3446 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3447 as_fn_append ac_func_list
" nl_langinfo"
3448 as_fn_append ac_func_list
" wcscoll"
3449 as_fn_append ac_func_list
" sleep"
3450 as_fn_append ac_header_list
" stdint.h"
3451 as_fn_append ac_header_list
" sys/socket.h"
3452 as_fn_append ac_header_list
" strings.h"
3453 as_fn_append ac_func_list
" strndup"
3454 as_fn_append ac_header_list
" sysexits.h"
3455 as_fn_append ac_func_list
" vasnprintf"
3456 as_fn_append ac_func_list
" snprintf"
3457 as_fn_append ac_func_list
" wcrtomb"
3458 as_fn_append ac_func_list
" iswcntrl"
3459 as_fn_append ac_func_list
" wcwidth"
3460 # Check that the precious variables saved in the cache have kept the same
3462 ac_cache_corrupted
=false
3463 for ac_var
in $ac_precious_vars; do
3464 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3465 eval ac_new_set
=\
$ac_env_${ac_var}_set
3466 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3467 eval ac_new_val
=\
$ac_env_${ac_var}_value
3468 case $ac_old_set,$ac_new_set in
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3471 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3472 ac_cache_corrupted
=: ;;
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3475 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3476 ac_cache_corrupted
=: ;;
3479 if test "x$ac_old_val" != "x$ac_new_val"; then
3480 # differences in whitespace do not lead to failure.
3481 ac_old_val_w
=`echo x $ac_old_val`
3482 ac_new_val_w
=`echo x $ac_new_val`
3483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3486 ac_cache_corrupted
=:
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3490 eval $ac_var=\
$ac_old_val
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3493 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3498 # Pass precious variables to config.status.
3499 if test "$ac_new_set" = set; then
3501 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3502 *) ac_arg
=$ac_var=$ac_new_val ;;
3504 case " $ac_configure_args " in
3505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3506 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3510 if $ac_cache_corrupted; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3515 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3517 ## -------------------- ##
3518 ## Main body of script. ##
3519 ## -------------------- ##
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3530 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3531 if test -f "$ac_dir/install-sh"; then
3533 ac_install_sh
="$ac_aux_dir/install-sh -c"
3535 elif test -f "$ac_dir/install.sh"; then
3537 ac_install_sh
="$ac_aux_dir/install.sh -c"
3539 elif test -f "$ac_dir/shtool"; then
3541 ac_install_sh
="$ac_aux_dir/shtool install -c"
3545 if test -z "$ac_aux_dir"; then
3546 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3549 # These three variables are undocumented and unsupported,
3550 # and are intended to be withdrawn in a future Autoconf release.
3551 # They can cause serious problems if a builder's source tree is in a directory
3552 # whose full name contains unusual characters.
3553 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3554 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3555 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3559 # We don't want -g -O2 by default in CFLAGS
3562 # Checks for build, host and target systems.
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3565 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568 $as_echo_n "checking build system type... " >&6; }
3569 if ${ac_cv_build+:} false
; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_build_alias
=$build_alias
3573 test "x$ac_build_alias" = x
&&
3574 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x
&&
3576 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3585 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3588 ac_save_IFS
=$IFS; IFS
='-'
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3598 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 $as_echo_n "checking host system type... " >&6; }
3603 if ${ac_cv_host+:} false
; then :
3604 $as_echo_n "(cached) " >&6
3606 if test "x$host_alias" = x
; then
3607 ac_cv_host
=$ac_cv_build
3609 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3618 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3621 ac_save_IFS
=$IFS; IFS
='-'
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3631 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634 save_program_prefix
="${program_prefix}"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3636 $as_echo_n "checking target system type... " >&6; }
3637 if ${ac_cv_target+:} false
; then :
3638 $as_echo_n "(cached) " >&6
3640 if test "x$target_alias" = x
; then
3641 ac_cv_target
=$ac_cv_host
3643 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3644 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3649 $as_echo "$ac_cv_target" >&6; }
3650 case $ac_cv_target in
3652 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3654 target
=$ac_cv_target
3655 ac_save_IFS
=$IFS; IFS
='-'
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3665 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3668 # The aliases save the names the user supplied, while $host etc.
3669 # will get canonicalized.
3670 test -n "$target_alias" &&
3671 test "$program_prefix$program_suffix$program_transform_name" = \
3673 program_prefix
=${target_alias}-
3674 program_prefix
="${save_program_prefix}"
3676 am__api_version
='1.13'
3678 # Find a good install program. We prefer a C program (faster),
3679 # so one script is as good as another. But avoid the broken or
3680 # incompatible versions:
3681 # SysV /etc/install, /usr/sbin/install
3682 # SunOS /usr/etc/install
3683 # IRIX /sbin/install
3685 # AmigaOS /C/install, which installs bootblocks on floppy discs
3686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3689 # OS/2's system install, which has a completely different semantic
3690 # ./install, which can be erroneously created by make from ./install.sh.
3691 # Reject install programs that cannot install multiple files.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3694 if test -z "$INSTALL"; then
3695 if ${ac_cv_path_install+:} false
; then :
3696 $as_echo_n "(cached) " >&6
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir
=.
3703 # Account for people who put trailing slashes in PATH elements.
3704 case $as_dir/ in #((
3705 .
/ | .
// |
/[cC
]/* | \
3706 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3707 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3710 # OSF1 and SCO ODT 3.0 have their own names for install.
3711 # Don't use installbsd from OSF since it installs stuff as root
3713 for ac_prog
in ginstall scoinst
install; do
3714 for ac_exec_ext
in '' $ac_executable_extensions; do
3715 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3716 if test $ac_prog = install &&
3717 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3718 # AIX install. It has an incompatible calling convention.
3720 elif test $ac_prog = install &&
3721 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3722 # program-specific install script used by HP pwplus--don't use.
3725 rm -rf conftest.one conftest.two conftest.dir
3726 echo one
> conftest.one
3727 echo two
> conftest.two
3729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3730 test -s conftest.one
&& test -s conftest.two
&&
3731 test -s conftest.dir
/conftest.one
&&
3732 test -s conftest.dir
/conftest.two
3734 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3747 rm -rf conftest.one conftest.two conftest.dir
3750 if test "${ac_cv_path_install+set}" = set; then
3751 INSTALL
=$ac_cv_path_install
3753 # As a last resort, use the slow shell script. Don't cache a
3754 # value for INSTALL within a source directory, because that will
3755 # break other packages using the cache if that directory is
3756 # removed, or if the value is a relative name.
3757 INSTALL
=$ac_install_sh
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3761 $as_echo "$INSTALL" >&6; }
3763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3764 # It thinks the first close brace ends the variable substitution.
3765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3769 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3772 $as_echo_n "checking whether build environment is sane... " >&6; }
3773 # Reject unsafe characters in $srcdir or the absolute working directory
3774 # name. Accept space and tab only in the latter.
3778 *[\\\"\
#\$\&\'\`$am_lf]*)
3779 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3782 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3783 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3786 # Do 'set' in a subshell so we don't clobber the current shell's
3787 # arguments. Must try -L first in case configure is actually a
3788 # symlink; some systems play weird games with the mod time of symlinks
3789 # (eg FreeBSD returns the mod time of the symlink's containing
3793 for am_try
in 1 2; do
3794 echo "timestamp, slept: $am_has_slept" > conftest.
file
3795 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3796 if test "$*" = "X"; then
3798 set X
`ls -t "$srcdir/configure" conftest.file`
3800 if test "$*" != "X $srcdir/configure conftest.file" \
3801 && test "$*" != "X conftest.file $srcdir/configure"; then
3803 # If neither matched, then we have a broken ls. This can happen
3804 # if, for instance, CONFIG_SHELL is bash and it inherits a
3805 # broken ls alias from the environment. This has actually
3806 # happened. Such a system could not be considered "sane".
3807 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3808 alias in your environment" "$LINENO" 5
3810 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3817 test "$2" = conftest.
file
3823 as_fn_error $?
"newly created file is older than distributed files!
3824 Check your system clock" "$LINENO" 5
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3828 # If we didn't sleep, we still need to ensure time stamps of config.status and
3829 # generated files are strictly newer.
3831 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3838 test "$program_prefix" != NONE
&&
3839 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3840 # Use a double $ so make ignores it.
3841 test "$program_suffix" != NONE
&&
3842 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3843 # Double any \ or $.
3844 # By default was `s,x,x', remove it if useless.
3845 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3846 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3848 # expand $ac_aux_dir to an absolute path
3849 am_aux_dir
=`cd $ac_aux_dir && pwd`
3851 if test x
"${MISSING+set}" != xset
; then
3854 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3856 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3859 # Use eval to expand $SHELL
3860 if eval "$MISSING --is-lightweight"; then
3861 am_missing_run
="$MISSING "
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3865 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3868 if test x
"${install_sh}" != xset
; then
3871 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3873 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3877 # Installed binaries are usually stripped using 'strip' when the user
3878 # run "make install-strip". However 'strip' might not be the right
3879 # tool to use in cross-compilation environments, therefore Automake
3880 # will honor the 'STRIP' environment variable to overrule this program.
3881 if test "$cross_compiling" != no
; then
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3884 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_STRIP+:} false
; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$STRIP"; then
3891 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir
=.
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 STRIP
=$ac_cv_prog_STRIP
3911 if test -n "$STRIP"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3913 $as_echo "$STRIP" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3921 if test -z "$ac_cv_prog_STRIP"; then
3923 # Extract the first word of "strip", so it can be a program name with args.
3924 set dummy strip
; ac_word
=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -n "$ac_ct_STRIP"; then
3931 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_STRIP
="strip"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3951 if test -n "$ac_ct_STRIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3953 $as_echo "$ac_ct_STRIP" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3959 if test "x$ac_ct_STRIP" = x
; then
3962 case $cross_compiling:$ac_tool_warned in
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned
=yes ;;
3971 STRIP
="$ac_cv_prog_STRIP"
3975 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3978 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3979 if test -z "$MKDIR_P"; then
3980 if ${ac_cv_path_mkdir+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3987 test -z "$as_dir" && as_dir
=.
3988 for ac_prog
in mkdir gmkdir
; do
3989 for ac_exec_ext
in '' $ac_executable_extensions; do
3990 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3992 'mkdir (GNU coreutils) '* | \
3993 'mkdir (coreutils) '* | \
3994 'mkdir (fileutils) '4.1*)
3995 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4005 test -d .
/--version && rmdir .
/--version
4006 if test "${ac_cv_path_mkdir+set}" = set; then
4007 MKDIR_P
="$ac_cv_path_mkdir -p"
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for MKDIR_P within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 MKDIR_P
="$ac_install_sh -d"
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4017 $as_echo "$MKDIR_P" >&6; }
4019 for ac_prog
in gawk mawk nawk
awk
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy
$ac_prog; ac_word
=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_AWK+:} false
; then :
4026 $as_echo_n "(cached) " >&6
4028 if test -n "$AWK"; then
4029 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir
=.
4036 for ac_exec_ext
in '' $ac_executable_extensions; do
4037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_AWK
="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 if test -n "$AWK"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4051 $as_echo "$AWK" >&6; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4058 test -n "$AWK" && break
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4062 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4064 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4065 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4066 $as_echo_n "(cached) " >&6
4068 cat >conftest.
make <<\_ACEOF
4071 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4073 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4074 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4076 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4078 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4082 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 SET_MAKE
="MAKE=${MAKE-make}"
4092 rm -rf .tst
2>/dev
/null
4093 mkdir .tst
2>/dev
/null
4094 if test -d .tst
; then
4099 rmdir .tst
2>/dev
/null
4101 # Check whether --enable-silent-rules was given.
4102 if test "${enable_silent_rules+set}" = set; then :
4103 enableval
=$enable_silent_rules;
4106 case $enable_silent_rules in # (((
4107 yes) AM_DEFAULT_VERBOSITY
=0;;
4108 no
) AM_DEFAULT_VERBOSITY
=1;;
4109 *) AM_DEFAULT_VERBOSITY
=1;;
4111 am_make
=${MAKE-make}
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4113 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4114 if ${am_cv_make_support_nested_variables+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 if $as_echo 'TRUE=$(BAR$(V))
4123 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4124 am_cv_make_support_nested_variables
=yes
4126 am_cv_make_support_nested_variables
=no
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4130 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4131 if test $am_cv_make_support_nested_variables = yes; then
4133 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4135 AM_V
=$AM_DEFAULT_VERBOSITY
4136 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4140 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4142 # is not polluted with repeated "-I."
4143 am__isrc
=' -I$(srcdir)'
4144 # test to see if srcdir already configured
4145 if test -f $srcdir/config.status
; then
4146 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4150 # test whether we have cygpath
4151 if test -z "$CYGPATH_W"; then
4152 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4153 CYGPATH_W
='cygpath -w'
4160 # Define the identity of the package.
4162 VERSION
='2.02~beta2'
4165 cat >>confdefs.h
<<_ACEOF
4166 #define PACKAGE "$PACKAGE"
4170 cat >>confdefs.h
<<_ACEOF
4171 #define VERSION "$VERSION"
4174 # Some tools Automake needs.
4176 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4179 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4182 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4185 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4188 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4190 # For better backward compatibility. To be removed once Automake 1.9.x
4191 # dies out for good. For more background, see:
4192 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4193 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4194 mkdir_p
='$(MKDIR_P)'
4196 # We need awk for the "check" target. The system "awk" is bad on
4198 # Always define AMTAR for backward compatibility. Yes, it's still used
4199 # in the wild :-( We should find a proper way to deprecate it ...
4203 # We'll loop over all known methods to create a tar archive until one works.
4204 _am_tools
='gnutar pax cpio none'
4206 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4215 ac_config_headers
="$ac_config_headers config-util.h"
4218 # Program name transformations
4220 grub_bios_setup
=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4222 grub_editenv
=`$as_echo grub-editenv | sed "$program_transform_name"`
4224 grub_install
=`$as_echo grub-install | sed "$program_transform_name"`
4226 grub_mkconfig
=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4228 grub_mkfont
=`$as_echo grub-mkfont | sed "$program_transform_name"`
4230 grub_mkimage
=`$as_echo grub-mkimage | sed "$program_transform_name"`
4232 grub_glue_efi
=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4234 grub_mklayout
=`$as_echo grub-mklayout | sed "$program_transform_name"`
4236 grub_mkpasswd_pbkdf2
=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4238 grub_mkrelpath
=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4240 grub_mkrescue
=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4242 grub_probe
=`$as_echo grub-probe | sed "$program_transform_name"`
4244 grub_reboot
=`$as_echo grub-reboot | sed "$program_transform_name"`
4246 grub_script_check
=`$as_echo grub-script-check | sed "$program_transform_name"`
4248 grub_set_default
=`$as_echo grub-set-default | sed "$program_transform_name"`
4250 grub_sparc64_setup
=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4252 grub_render_label
=`$as_echo grub-render-label | sed "$program_transform_name"`
4254 grub_file
=`$as_echo grub-file | sed "$program_transform_name"`
4257 # Optimization flag. Allow user to override.
4258 if test "x$TARGET_CFLAGS" = x
; then
4259 TARGET_CFLAGS
="$TARGET_CFLAGS -Os"
4262 # Default HOST_CPPFLAGS
4263 HOST_CPPFLAGS
="$HOST_CPPFLAGS -Wall -W"
4264 HOST_CPPFLAGS
="$HOST_CPPFLAGS -I\$(top_builddir)/include"
4265 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4267 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -Wall -W"
4268 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
4269 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
4271 case "$target_cpu" in
4272 i
[3456]86) target_cpu
=i386
;;
4273 amd64
) target_cpu
=x86_64
;;
4274 sparc
) target_cpu
=sparc64
;;
4277 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1"
4281 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1"
4291 # Specify the platform (such as firmware).
4293 # Check whether --with-platform was given.
4294 if test "${with_platform+set}" = set; then :
4295 withval
=$with_platform;
4299 # Guess the platform if not specified.
4300 if test "x$with_platform" = x
; then
4301 case "$target_cpu"-"$target_vendor" in
4302 i386-apple
) platform
=efi
;;
4303 i386-
*) platform
=pc
;;
4304 x86_64-apple
) platform
=efi
;;
4305 x86_64-
*) platform
=pc
;;
4306 powerpc-
*) platform
=ieee1275
;;
4307 powerpc64-
*) platform
=ieee1275
;;
4308 sparc64-
*) platform
=ieee1275
;;
4309 mipsel-
*) platform
=loongson
;;
4310 mips-
*) platform
=arc
;;
4311 ia64-
*) platform
=efi
;;
4312 arm-
*) platform
=uboot
;;
4313 arm64-
*) platform
=efi
;;
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&5
4316 $as_echo "$as_me: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&2;}
4321 platform
="$with_platform"
4324 case "$target_cpu"-"$platform" in
4329 x86_64-
*) target_cpu
=i386
;;
4330 powerpc64-ieee1275
) target_cpu
=powerpc
;;
4333 # Check if the platform is supported, make final adjustments.
4334 case "$target_cpu"-"$platform" in
4342 i386-linuxbios
) platform
=coreboot
;;
4345 powerpc-ieee1275
) ;;
4346 sparc64-ieee1275
) ;;
4349 mips-qemu-mips
) platform
=qemu_mips
;;
4352 mipsel-qemu_mips
) ;;
4353 mipsel-qemu-mips
) platform
=qemu_mips
;;
4354 mipsel-yeeloong
) platform
=loongson
;;
4355 mipsel-fuloong
) platform
=loongson
;;
4362 *) as_fn_error $?
"platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
4365 if test x
$platform != xemu
; then
4366 case "$target_cpu" in
4367 i386 | powerpc
) target_m32
=1 ;;
4368 x86_64 | sparc64
) target_m64
=1 ;;
4372 if test x
"$target_cpu-$platform" = xsparc64-emu
; then
4376 case "$target_os" in
4377 windows
* | mingw32
*) target_os
=cygwin
;;
4380 # This normalizes the names, and creates a new variable ("host_kernel")
4381 # while at it, since the mapping is not always 1:1 (e.g. different OSes
4382 # using the same kernel type).
4384 gnu
*) host_kernel
=hurd
;;
4385 linux
*) host_kernel
=linux
;;
4386 freebsd
* | kfreebsd
*-gnu) host_kernel
=kfreebsd
;;
4387 netbsd
*) host_kernel
=netbsd
;;
4388 solaris
*) host_kernel
=illumos
;;
4389 darwin
*) host_kernel
=xnu
;;
4390 cygwin | windows
* | mingw32
*) host_kernel
=windows
;;
4394 cygwin | windows
* | mingw32
*) have_exec
=n
;;
4395 aros
*) have_exec
=n
;;
4400 coreboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4401 multiboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4402 efi
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
4403 xen
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
4404 ieee1275
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
4405 uboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
4406 qemu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4407 pc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4408 emu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
4409 loongson
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4410 qemu_mips
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
4411 arc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
4413 if test x
${target_cpu} = xmipsel
; then
4414 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4416 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4419 case "${target_cpu}-$platform" in
4421 TARGET_LINK_ADDR
=0x88200000
4422 TARGET_DECOMPRESSOR_LINK_ADDR
=0x88100000
4425 TARGET_LINK_ADDR
=0x80700000
4426 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80600000
4428 mips
*-qemu_mips | mips
*-loongson)
4429 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80100000
4436 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4445 # Define default variables
4449 # Check whether --with-bootdir was given.
4450 if test "${with_bootdir+set}" = set; then :
4451 withval
=$with_bootdir; have_with_bootdir
=y
4456 if test x
$have_with_bootdir = xy
; then
4457 bootdirname
="$with_bootdir"
4461 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4463 *) bootdirname
='boot' ;;
4469 cat >>confdefs.h
<<_ACEOF
4470 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4475 # Check whether --with-grubdir was given.
4476 if test "${with_grubdir+set}" = set; then :
4477 withval
=$with_grubdir; grubdirname
="$with_grubdir"
4479 grubdirname
="$PACKAGE"
4485 cat >>confdefs.h
<<_ACEOF
4486 #define GRUB_DIR_NAME "$grubdirname"
4491 # Checks for build programs.
4494 # Although cmp is listed in the GNU Coding Standards as a command which
4495 # can used directly, OpenBSD lacks cmp in the default installation.
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy
$ac_prog; ac_word
=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_prog_CMP+:} false
; then :
4503 $as_echo_n "(cached) " >&6
4505 if test -n "$CMP"; then
4506 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
4508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir
=.
4513 for ac_exec_ext
in '' $ac_executable_extensions; do
4514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_CMP
="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 if test -n "$CMP"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4528 $as_echo "$CMP" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$CMP" && break
4538 if test "x$CMP" = x
; then
4539 as_fn_error $?
"cmp is not found" "$LINENO" 5
4542 for ac_prog
in bison
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy
$ac_prog; ac_word
=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_YACC+:} false
; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$YACC"; then
4552 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_YACC
="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 YACC
=$ac_cv_prog_YACC
4572 if test -n "$YACC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4574 $as_echo "$YACC" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$YACC" && break
4584 if test "x$YACC" = x
; then
4585 as_fn_error $?
"bison is not found" "$LINENO" 5
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4590 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_RANLIB+:} false
; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -n "$RANLIB"; then
4597 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir
=.
4604 for ac_exec_ext
in '' $ac_executable_extensions; do
4605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 RANLIB
=$ac_cv_prog_RANLIB
4617 if test -n "$RANLIB"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4619 $as_echo "$RANLIB" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4627 if test -z "$ac_cv_prog_RANLIB"; then
4628 ac_ct_RANLIB
=$RANLIB
4629 # Extract the first word of "ranlib", so it can be a program name with args.
4630 set dummy ranlib
; ac_word
=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$ac_ct_RANLIB"; then
4637 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir
=.
4644 for ac_exec_ext
in '' $ac_executable_extensions; do
4645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4657 if test -n "$ac_ct_RANLIB"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4659 $as_echo "$ac_ct_RANLIB" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4665 if test "x$ac_ct_RANLIB" = x
; then
4668 case $cross_compiling:$ac_tool_warned in
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned
=yes ;;
4674 RANLIB
=$ac_ct_RANLIB
4677 RANLIB
="$ac_cv_prog_RANLIB"
4681 for ac_prog
in gawk mawk nawk
awk
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy
$ac_prog; ac_word
=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_AWK+:} false
; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$AWK"; then
4691 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir
=.
4698 for ac_exec_ext
in '' $ac_executable_extensions; do
4699 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_AWK
="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 if test -n "$AWK"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4713 $as_echo "$AWK" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$AWK" && break
4723 DEPDIR
="${am__leading_dot}deps"
4725 ac_config_commands
="$ac_config_commands depfiles"
4728 am_make
=${MAKE-make}
4729 cat > confinc
<< 'END'
4731 @
echo this is the am__doit target
4734 # If we don't find an include directive, just comment out the code.
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4740 # First try GNU make style include.
4741 echo "include confinc" > confmf
4742 # Ignore all kinds of additional output from 'make'.
4743 case `$am_make -s -f confmf 2> /dev/null` in #(
4744 *the\ am__doit\ target
*)
4750 # Now try BSD make style include.
4751 if test "$am__include" = "#"; then
4752 echo '.include "confinc"' > confmf
4753 case `$am_make -s -f confmf 2> /dev/null` in #(
4754 *the\ am__doit\ target
*)
4755 am__include
=.include
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4764 $as_echo "$_am_result" >&6; }
4765 rm -f confinc confmf
4767 # Check whether --enable-dependency-tracking was given.
4768 if test "${enable_dependency_tracking+set}" = set; then :
4769 enableval
=$enable_dependency_tracking;
4772 if test "x$enable_dependency_tracking" != xno
; then
4773 am_depcomp
="$ac_aux_dir/depcomp"
4777 if test "x$enable_dependency_tracking" != xno; then
4787 ac_cpp
='$CPP $CPPFLAGS'
4788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4793 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CC+:} false
; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC
="$CC" # Let the user override the test.
4802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir
=.
4807 for ac_exec_ext
in '' $ac_executable_extensions; do
4808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 if test -n "$CC"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4822 $as_echo "$CC" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4830 if test -z "$ac_cv_prog_CC"; then
4832 # Extract the first word of "gcc", so it can be a program name with args.
4833 set dummy gcc
; ac_word
=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$ac_ct_CC"; then
4840 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir
=.
4847 for ac_exec_ext
in '' $ac_executable_extensions; do
4848 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_CC
="gcc"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4862 $as_echo "$ac_ct_CC" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_ct_CC" = x
; then
4871 case $cross_compiling:$ac_tool_warned in
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned
=yes ;;
4883 if test -z "$CC"; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4886 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_CC+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$CC"; then
4893 ac_cv_prog_CC
="$CC" # Let the user override the test.
4895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir
=.
4900 for ac_exec_ext
in '' $ac_executable_extensions; do
4901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$CC"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 $as_echo "$CC" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4924 if test -z "$CC"; then
4925 # Extract the first word of "cc", so it can be a program name with args.
4926 set dummy cc
; ac_word
=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_CC+:} false
; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$CC"; then
4933 ac_cv_prog_CC
="$CC" # Let the user override the test.
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir
=.
4941 for ac_exec_ext
in '' $ac_executable_extensions; do
4942 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4944 ac_prog_rejected
=yes
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 if test $ac_prog_rejected = yes; then
4956 # We found a bogon in the path, so make sure we never use it.
4957 set dummy
$ac_cv_prog_CC
4959 if test $# != 0; then
4960 # We chose a different compiler from the bogus one.
4961 # However, it has the same basename, so the bogon will be chosen
4962 # first if we set CC to just the basename; use the full file name.
4964 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4980 if test -z "$CC"; then
4981 if test -n "$ac_tool_prefix"; then
4982 for ac_prog
in cl.exe
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_CC+:} false
; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC
="$CC" # Let the user override the test.
4994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir
=.
4999 for ac_exec_ext
in '' $ac_executable_extensions; do
5000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 if test -n "$CC"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 $as_echo "$CC" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$CC" && break
5024 if test -z "$CC"; then
5026 for ac_prog
in cl.exe
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy
$ac_prog; ac_word
=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_CC
="$ac_prog"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5056 if test -n "$ac_ct_CC"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5058 $as_echo "$ac_ct_CC" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5065 test -n "$ac_ct_CC" && break
5068 if test "x$ac_ct_CC" = x
; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned
=yes ;;
5084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error $?
"no acceptable C compiler found in \$PATH
5087 See \`config.log' for more details" "$LINENO" 5; }
5089 # Provide some information about the compiler.
5090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5093 for ac_option
in --version -v -V -qversion; do
5094 { { ac_try
="$ac_compiler $ac_option >&5"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5103 if test -s conftest.err; then
5105 ... rest of stderr output deleted ...
5106 10q' conftest.err >conftest.er1
5107 cat conftest.er1 >&5
5109 rm -f conftest.er1 conftest.err
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5125 ac_clean_files_save=$ac_clean_files
5126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5127 # Try to create an executable without -o first, disregard a.out.
5128 # It will help us diagnose broken compilers, and finding out an intuition
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5131 $as_echo_n "checking whether the C compiler works... " >&6; }
5132 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5134 # The possible output files:
5135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5138 for ac_file in $ac_files
5141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5147 if { { ac_try="$ac_link_default"
5149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5150 *) ac_try_echo
=$ac_try;;
5152 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_link_default") 2>&5
5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then :
5158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5161 # so that the user can short-circuit this test for compilers unknown to
5163 for ac_file
in $ac_files ''
5165 test -f "$ac_file" ||
continue
5167 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5170 # We found the default executable, but exeext='' is most
5174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5176 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178 # We set ac_cv_exeext here because the later test for it is not
5179 # safe: cross compilers may not add the suffix if given an `-o'
5180 # argument, so we may need to know it at that point already.
5181 # Even if this section looks crufty: it has the advantage of
5188 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5193 if test -z "$ac_file"; then :
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201 as_fn_error
77 "C compiler cannot create executables
5202 See \`config.log' for more details" "$LINENO" 5; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5208 $as_echo_n "checking for C compiler default output file name... " >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5210 $as_echo "$ac_file" >&6; }
5211 ac_exeext
=$ac_cv_exeext
5213 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5214 ac_clean_files
=$ac_clean_files_save
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5216 $as_echo_n "checking for suffix of executables... " >&6; }
5217 if { { ac_try
="$ac_link"
5219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_link") 2>&5
5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227 test $ac_status = 0; }; then :
5228 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5229 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5230 # work properly (i.e., refer to `conftest.exe'), while it won't with
5232 for ac_file
in conftest.exe conftest conftest.
*; do
5233 test -f "$ac_file" ||
continue
5235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5236 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
5245 See \`config.log' for more details" "$LINENO" 5; }
5247 rm -f conftest conftest
$ac_cv_exeext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5249 $as_echo "$ac_cv_exeext" >&6; }
5251 rm -f conftest.
$ac_ext
5252 EXEEXT
=$ac_cv_exeext
5254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5260 FILE *f = fopen ("conftest.out", "w");
5261 return ferror (f) || fclose (f) != 0;
5267 ac_clean_files
="$ac_clean_files conftest.out"
5268 # Check that the compiler produces executables we can run. If not, either
5269 # the compiler is broken, or we cross compile.
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5271 $as_echo_n "checking whether we are cross compiling... " >&6; }
5272 if test "$cross_compiling" != yes; then
5273 { { ac_try
="$ac_link"
5275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279 $as_echo "$ac_try_echo"; } >&5
5280 (eval "$ac_link") 2>&5
5282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5283 test $ac_status = 0; }
5284 if { ac_try='./conftest$ac_cv_exeext'
5285 { { case "(($ac_try" in
5286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5287 *) ac_try_echo
=$ac_try;;
5289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_try") 2>&5
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }; }; then
5297 if test "$cross_compiling" = maybe
; then
5300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5302 as_fn_error $?
"cannot run C compiled programs.
5303 If you meant to cross compile, use \`--host'.
5304 See \`config.log' for more details" "$LINENO" 5; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5309 $as_echo "$cross_compiling" >&6; }
5311 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5312 ac_clean_files
=$ac_clean_files_save
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5314 $as_echo_n "checking for suffix of object files... " >&6; }
5315 if ${ac_cv_objext+:} false
; then :
5316 $as_echo_n "(cached) " >&6
5318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5329 rm -f conftest.o conftest.obj
5330 if { { ac_try
="$ac_compile"
5332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5336 $as_echo "$ac_try_echo"; } >&5
5337 (eval "$ac_compile") 2>&5
5339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340 test $ac_status = 0; }; then :
5341 for ac_file in conftest.o conftest.obj conftest.*; do
5342 test -f "$ac_file" || continue;
5344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5350 $as_echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5355 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5356 See \
`config.log' for more details" "$LINENO" 5; }
5358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5361 $as_echo "$ac_cv_objext" >&6; }
5362 OBJEXT=$ac_cv_objext
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5366 if ${ac_cv_c_compiler_gnu+:} false; then :
5367 $as_echo_n "(cached) " >&6
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5383 if ac_fn_c_try_compile "$LINENO"; then :
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5394 if test $ac_compiler_gnu = yes; then
5399 ac_test_CFLAGS=${CFLAGS+set}
5400 ac_save_CFLAGS=$CFLAGS
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5403 if ${ac_cv_prog_cc_g+:} false; then :
5404 $as_echo_n "(cached) " >&6
5406 ac_save_c_werror_flag=$ac_c_werror_flag
5407 ac_c_werror_flag=yes
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5421 if ac_fn_c_try_compile "$LINENO"; then :
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5436 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_c_werror_flag=$ac_save_c_werror_flag
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5452 if ac_fn_c_try_compile "$LINENO"; then :
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5463 $as_echo "$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5473 if test "$GCC" = yes; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5481 if ${ac_cv_prog_cc_c89+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 ac_cv_prog_cc_c89=no
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5492 struct buf { int x; };
5493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494 static char *e (p, i)
5500 static char *f (char * (*g) (char **, int), char **p, ...)
5505 s = g (p, va_arg (v,int));
5510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 as 'x'. The following induces an error, until -std is added to get
5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5515 array size at least. It's necessary to write '\x00'==0 to get something
5516 that's true only with -std. */
5517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520 inside strings and character constants. */
5522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5524 int test (int i, double x);
5525 struct s1 {int (*f) (int a);};
5526 struct s2 {int (*f) (double a);};
5527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5541 CC="$ac_save_CC $ac_arg"
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 ac_cv_prog_cc_c89=$ac_arg
5545 rm -f core conftest.err conftest.$ac_objext
5546 test "x$ac_cv_prog_cc_c89" != "xno" && break
5548 rm -f conftest.$ac_ext
5553 case "x$ac_cv_prog_cc_c89" in
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5556 $as_echo "none needed" >&6; } ;;
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5559 $as_echo "unsupported" >&6; } ;;
5561 CC="$CC $ac_cv_prog_cc_c89"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5565 if test "x$ac_cv_prog_cc_c89" != xno; then :
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 depcc="$CC" am_compiler_list=
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5578 $as_echo_n "checking dependency style of $depcc... " >&6; }
5579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5583 # We make a subdir and do the tests there. Otherwise we can end up
5584 # making bogus files that we don't know about and never remove. For
5585 # instance it was reported that on HP-UX the gcc test will end up
5586 # making a dummy file named 'D' -- because '-MD' means "put the output
5590 # Copy depcomp to subdir because otherwise we won't find it if we're
5591 # using a relative directory.
5592 cp "$am_depcomp" conftest.dir
5594 # We will build objects and dependencies in a subdirectory because
5595 # it helps to detect inapplicable dependency modes. For instance
5596 # both Tru64's cc and ICC support -MD to output dependencies as a
5597 # side effect of compilation, but ICC will put the dependencies in
5598 # the current directory while Tru64 will put them in the object
5602 am_cv_CC_dependencies_compiler_type=none
5603 if test "$am_compiler_list" = ""; then
5604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5607 case " $depcc " in #(
5608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5611 for depmode in $am_compiler_list; do
5612 # Setup a source with many dependencies, because some compilers
5613 # like to wrap large dependency lists on column 80 (with \), and
5614 # we should not choose a depcomp mode which is confused by this.
5616 # We need to recreate these files for each test, as the compiler may
5617 # overwrite some of them when testing with obscure command lines.
5618 # This happens at least with the AIX C compiler.
5620 for i in 1 2 3 4 5 6; do
5621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5623 # Solaris 10 /bin/sh.
5624 echo '/* dummy */' > sub/conftst$i.h
5626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5629 # mode. It turns out that the SunPro C++ compiler does not properly
5630 # handle '-M -o', and we need to detect this. Also, some Intel
5631 # versions had trouble with output in subdirs.
5632 am__obj=sub/conftest.${OBJEXT-o}
5633 am__minus_obj="-o $am__obj"
5636 # This depmode causes a compiler race in universal mode.
5637 test "$am__universal" = false || continue
5640 # After this tag, mechanisms are not by side-effect, so they'll
5641 # only be used when explicitly requested.
5642 if test "x$enable_dependency_tracking" = xyes; then
5648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5649 # This compiler won't grok '-c -o', but also, the minuso test has
5650 # not run yet. These depmodes are late enough in the game, and
5651 # so weak that their functioning should not be impacted.
5652 am__obj=conftest.${OBJEXT-o}
5657 if depmode=$depmode \
5658 source=sub/conftest.c object=$am__obj \
5659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5661 >/dev/null 2>conftest.err &&
5662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5666 # icc doesn't choke on unknown options, it will just issue warnings
5667 # or remarks (even with -Werror). So we grep stderr for any message
5668 # that says an option was ignored or not supported.
5669 # When given -MP, icc 7.0 and 7.1 complain thusly:
5670 # icc: Command line warning: ignoring option '-M'; no argument required
5671 # The diagnosis changed in icc 8.0:
5672 # icc: Command line remark: option '-MP' not supported
5673 if (grep 'ignoring option' conftest.err ||
5674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5675 am_cv_CC_dependencies_compiler_type=$depmode
5684 am_cv_CC_dependencies_compiler_type=none
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5693 test "x$enable_dependency_tracking" != xno \
5694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5696 am__fastdepCC_FALSE='#'
5698 am__fastdepCC_TRUE='#'
5699 am__fastdepCC_FALSE=
5704 for ac_prog in flex lex
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_LEX+:} false; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$LEX"; then
5714 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_LEX="$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 if test -n "$LEX"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5736 $as_echo "$LEX" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5743 test -n "$LEX" && break
5745 test -n "$LEX" || LEX=":"
5747 if test "x$LEX" != "x:"; then
5748 cat >conftest.l <<_ACEOF
5754 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5755 yyless ((input () != 0)); }
5756 f { unput (yytext[0]); }
5757 . { BEGIN INITIAL; }
5759 #ifdef YYTEXT_POINTER
5760 extern char *yytext;
5765 return ! yylex () + ! yywrap ();
5768 { { ac_try="$LEX conftest.l"
5770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5771 *) ac_try_echo
=$ac_try;;
5773 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5774 $as_echo "$ac_try_echo"; } >&5
5775 (eval "$LEX conftest.l") 2>&5
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5780 $as_echo_n "checking lex output file root... " >&6; }
5781 if ${ac_cv_prog_lex_root+:} false
; then :
5782 $as_echo_n "(cached) " >&6
5785 if test -f lex.yy.c
; then
5786 ac_cv_prog_lex_root
=lex.yy
5787 elif test -f lexyy.c
; then
5788 ac_cv_prog_lex_root
=lexyy
5790 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5794 $as_echo "$ac_cv_prog_lex_root" >&6; }
5795 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5797 if test -z "${LEXLIB+set}"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5799 $as_echo_n "checking lex library... " >&6; }
5800 if ${ac_cv_lib_lex+:} false
; then :
5801 $as_echo_n "(cached) " >&6
5805 ac_cv_lib_lex
='none needed'
5806 for ac_lib
in '' -lfl -ll; do
5807 LIBS
="$ac_lib $ac_save_LIBS"
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 `cat $LEX_OUTPUT_ROOT.c`
5812 if ac_fn_c_try_link
"$LINENO"; then :
5813 ac_cv_lib_lex
=$ac_lib
5815 rm -f core conftest.err conftest.
$ac_objext \
5816 conftest
$ac_exeext conftest.
$ac_ext
5817 test "$ac_cv_lib_lex" != 'none needed' && break
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5823 $as_echo "$ac_cv_lib_lex" >&6; }
5824 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5829 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5830 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5831 $as_echo_n "(cached) " >&6
5833 # POSIX says lex can declare yytext either as a pointer or an array; the
5834 # default is implementation-dependent. Figure out which it is, since
5835 # not all implementations provide the %pointer and %array declarations.
5836 ac_cv_prog_lex_yytext_pointer
=no
5838 LIBS
="$LEXLIB $ac_save_LIBS"
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 #define YYTEXT_POINTER 1
5843 `cat $LEX_OUTPUT_ROOT.c`
5845 if ac_fn_c_try_link
"$LINENO"; then :
5846 ac_cv_prog_lex_yytext_pointer
=yes
5848 rm -f core conftest.err conftest.
$ac_objext \
5849 conftest
$ac_exeext conftest.
$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5854 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5855 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5857 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5860 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5863 for ac_prog
in 'bison -y' byacc
5865 # Extract the first word of "$ac_prog", so it can be a program name with args.
5866 set dummy
$ac_prog; ac_word
=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_YACC+:} false
; then :
5870 $as_echo_n "(cached) " >&6
5872 if test -n "$YACC"; then
5873 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir
=.
5880 for ac_exec_ext
in '' $ac_executable_extensions; do
5881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_YACC
="$ac_prog"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 YACC
=$ac_cv_prog_YACC
5893 if test -n "$YACC"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5895 $as_echo "$YACC" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5902 test -n "$YACC" && break
5904 test -n "$YACC" || YACC
="yacc"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5909 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5910 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 cat >conftest.
make <<\_ACEOF
5916 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5921 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5923 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5927 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5929 $as_echo "yes" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 SET_MAKE
="MAKE=${MAKE-make}"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5939 $as_echo_n "checking whether ln -s works... " >&6; }
5941 if test "$LN_S" = "ln -s"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 $as_echo "yes" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5946 $as_echo "no, using $LN_S" >&6; }
5950 if test "x$LEX" = "x:"; then
5951 as_fn_error $?
"flex is not found" "$LINENO" 5
5953 version
=`$LEX --version | $AWK '{ split($0,tmp," "); split(tmp[2],x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5954 if test -n "$version" -a "$version" -ge 20535; then
5957 as_fn_error $?
"flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5961 # These are not a "must".
5962 for ac_prog
in makeinfo true
5964 # Extract the first word of "$ac_prog", so it can be a program name with args.
5965 set dummy
$ac_prog; ac_word
=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_path_MAKEINFO+:} false
; then :
5969 $as_echo_n "(cached) " >&6
5973 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir
=.
5981 for ac_exec_ext
in '' $ac_executable_extensions; do
5982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 MAKEINFO
=$ac_cv_path_MAKEINFO
5995 if test -n "$MAKEINFO"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5997 $as_echo "$MAKEINFO" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6004 test -n "$MAKEINFO" && break
6009 # Checks for host programs.
6013 ac_cpp
='$CPP $CPPFLAGS'
6014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6019 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_CC+:} false
; then :
6023 $as_echo_n "(cached) " >&6
6025 if test -n "$CC"; then
6026 ac_cv_prog_CC
="$CC" # Let the user override the test.
6028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir
=.
6033 for ac_exec_ext
in '' $ac_executable_extensions; do
6034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 if test -n "$CC"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6048 $as_echo "$CC" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6056 if test -z "$ac_cv_prog_CC"; then
6058 # Extract the first word of "gcc", so it can be a program name with args.
6059 set dummy gcc
; ac_word
=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6063 $as_echo_n "(cached) " >&6
6065 if test -n "$ac_ct_CC"; then
6066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir
=.
6073 for ac_exec_ext
in '' $ac_executable_extensions; do
6074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_CC
="gcc"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6086 if test -n "$ac_ct_CC"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6088 $as_echo "$ac_ct_CC" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6094 if test "x$ac_ct_CC" = x
; then
6097 case $cross_compiling:$ac_tool_warned in
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned
=yes ;;
6109 if test -z "$CC"; then
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6112 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_CC+:} false
; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$CC"; then
6119 ac_cv_prog_CC
="$CC" # Let the user override the test.
6121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir
=.
6126 for ac_exec_ext
in '' $ac_executable_extensions; do
6127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 if test -n "$CC"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6141 $as_echo "$CC" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6150 if test -z "$CC"; then
6151 # Extract the first word of "cc", so it can be a program name with args.
6152 set dummy cc
; ac_word
=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_CC+:} false
; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$CC"; then
6159 ac_cv_prog_CC
="$CC" # Let the user override the test.
6162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir
=.
6167 for ac_exec_ext
in '' $ac_executable_extensions; do
6168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6170 ac_prog_rejected
=yes
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 if test $ac_prog_rejected = yes; then
6182 # We found a bogon in the path, so make sure we never use it.
6183 set dummy
$ac_cv_prog_CC
6185 if test $# != 0; then
6186 # We chose a different compiler from the bogus one.
6187 # However, it has the same basename, so the bogon will be chosen
6188 # first if we set CC to just the basename; use the full file name.
6190 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6196 if test -n "$CC"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6198 $as_echo "$CC" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 if test -z "$CC"; then
6207 if test -n "$ac_tool_prefix"; then
6208 for ac_prog
in cl.exe
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_CC+:} false
; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$CC"; then
6218 ac_cv_prog_CC
="$CC" # Let the user override the test.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$CC"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6240 $as_echo "$CC" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 test -n "$CC" && break
6250 if test -z "$CC"; then
6252 for ac_prog
in cl.exe
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy
$ac_prog; ac_word
=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_CC"; then
6262 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir
=.
6269 for ac_exec_ext
in '' $ac_executable_extensions; do
6270 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_CC
="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6282 if test -n "$ac_ct_CC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6284 $as_echo "$ac_ct_CC" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$ac_ct_CC" && break
6294 if test "x$ac_ct_CC" = x
; then
6297 case $cross_compiling:$ac_tool_warned in
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned
=yes ;;
6310 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6312 as_fn_error $?
"no acceptable C compiler found in \$PATH
6313 See \`config.log' for more details" "$LINENO" 5; }
6315 # Provide some information about the compiler.
6316 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6319 for ac_option
in --version -v -V -qversion; do
6320 { { ac_try
="$ac_compiler $ac_option >&5"
6322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6326 $as_echo "$ac_try_echo"; } >&5
6327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6329 if test -s conftest.err; then
6331 ... rest of stderr output deleted ...
6332 10q' conftest.err >conftest.er1
6333 cat conftest.er1 >&5
6335 rm -f conftest.er1 conftest.err
6336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337 test $ac_status = 0; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6341 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6342 if ${ac_cv_c_compiler_gnu+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6359 if ac_fn_c_try_compile "$LINENO"; then :
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6369 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6370 if test $ac_compiler_gnu = yes; then
6375 ac_test_CFLAGS=${CFLAGS+set}
6376 ac_save_CFLAGS=$CFLAGS
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6378 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6379 if ${ac_cv_prog_cc_g+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 ac_save_c_werror_flag=$ac_c_werror_flag
6383 ac_c_werror_flag=yes
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_compile "$LINENO"; then :
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6412 if ac_fn_c_try_compile "$LINENO"; then :
6415 ac_c_werror_flag=$ac_save_c_werror_flag
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6428 if ac_fn_c_try_compile "$LINENO"; then :
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 ac_c_werror_flag=$ac_save_c_werror_flag
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6439 $as_echo "$ac_cv_prog_cc_g" >&6; }
6440 if test "$ac_test_CFLAGS" = set; then
6441 CFLAGS=$ac_save_CFLAGS
6442 elif test $ac_cv_prog_cc_g = yes; then
6443 if test "$GCC" = yes; then
6449 if test "$GCC" = yes; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6457 if ${ac_cv_prog_cc_c89+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 ac_cv_prog_cc_c89=no
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6468 struct buf { int x; };
6469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6470 static char *e (p, i)
6476 static char *f (char * (*g) (char **, int), char **p, ...)
6481 s = g (p, va_arg (v,int));
6486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6487 function prototypes and stuff, but not '\xHH' hex character constants.
6488 These don't provoke an error unfortunately, instead are silently treated
6489 as 'x'. The following induces an error, until -std is added to get
6490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6491 array size at least. It's necessary to write '\x00'==0 to get something
6492 that's true only with -std. */
6493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6496 inside strings and character constants. */
6498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6500 int test (int i, double x);
6501 struct s1 {int (*f) (int a);};
6502 struct s2 {int (*f) (double a);};
6503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6517 CC="$ac_save_CC $ac_arg"
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_prog_cc_c89=$ac_arg
6521 rm -f core conftest.err conftest.$ac_objext
6522 test "x$ac_cv_prog_cc_c89" != "xno" && break
6524 rm -f conftest.$ac_ext
6529 case "x$ac_cv_prog_cc_c89" in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6532 $as_echo "none needed" >&6; } ;;
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6535 $as_echo "unsupported" >&6; } ;;
6537 CC="$CC $ac_cv_prog_cc_c89"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6539 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6541 if test "x$ac_cv_prog_cc_c89" != xno; then :
6546 ac_cpp='$CPP $CPPFLAGS'
6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551 depcc="$CC" am_compiler_list=
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6554 $as_echo_n "checking dependency style of $depcc... " >&6; }
6555 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6559 # We make a subdir and do the tests there. Otherwise we can end up
6560 # making bogus files that we don't know about and never remove. For
6561 # instance it was reported that on HP-UX the gcc test will end up
6562 # making a dummy file named 'D' -- because '-MD' means "put the output
6566 # Copy depcomp to subdir because otherwise we won't find it if we're
6567 # using a relative directory.
6568 cp "$am_depcomp" conftest.dir
6570 # We will build objects and dependencies in a subdirectory because
6571 # it helps to detect inapplicable dependency modes. For instance
6572 # both Tru64's cc and ICC support -MD to output dependencies as a
6573 # side effect of compilation, but ICC will put the dependencies in
6574 # the current directory while Tru64 will put them in the object
6578 am_cv_CC_dependencies_compiler_type=none
6579 if test "$am_compiler_list" = ""; then
6580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6583 case " $depcc " in #(
6584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6587 for depmode in $am_compiler_list; do
6588 # Setup a source with many dependencies, because some compilers
6589 # like to wrap large dependency lists on column 80 (with \), and
6590 # we should not choose a depcomp mode which is confused by this.
6592 # We need to recreate these files for each test, as the compiler may
6593 # overwrite some of them when testing with obscure command lines.
6594 # This happens at least with the AIX C compiler.
6596 for i in 1 2 3 4 5 6; do
6597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6598 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6599 # Solaris 10 /bin/sh.
6600 echo '/* dummy */' > sub/conftst$i.h
6602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6604 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6605 # mode. It turns out that the SunPro C++ compiler does not properly
6606 # handle '-M -o', and we need to detect this. Also, some Intel
6607 # versions had trouble with output in subdirs.
6608 am__obj=sub/conftest.${OBJEXT-o}
6609 am__minus_obj="-o $am__obj"
6612 # This depmode causes a compiler race in universal mode.
6613 test "$am__universal" = false || continue
6616 # After this tag, mechanisms are not by side-effect, so they'll
6617 # only be used when explicitly requested.
6618 if test "x$enable_dependency_tracking" = xyes; then
6624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6625 # This compiler won't grok '-c -o', but also, the minuso test has
6626 # not run yet. These depmodes are late enough in the game, and
6627 # so weak that their functioning should not be impacted.
6628 am__obj=conftest.${OBJEXT-o}
6633 if depmode=$depmode \
6634 source=sub/conftest.c object=$am__obj \
6635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6637 >/dev/null 2>conftest.err &&
6638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6642 # icc doesn't choke on unknown options, it will just issue warnings
6643 # or remarks (even with -Werror). So we grep stderr for any message
6644 # that says an option was ignored or not supported.
6645 # When given -MP, icc 7.0 and 7.1 complain thusly:
6646 # icc: Command line warning: ignoring option '-M'; no argument required
6647 # The diagnosis changed in icc 8.0:
6648 # icc: Command line remark: option '-MP' not supported
6649 if (grep 'ignoring option' conftest.err ||
6650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6651 am_cv_CC_dependencies_compiler_type=$depmode
6660 am_cv_CC_dependencies_compiler_type=none
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6665 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6666 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6669 test "x$enable_dependency_tracking" != xno \
6670 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6672 am__fastdepCC_FALSE='#'
6674 am__fastdepCC_TRUE='#'
6675 am__fastdepCC_FALSE=
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6685 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6686 # On Suns, sometimes $CPP names a directory.
6687 if test -n "$CPP" && test -d "$CPP"; then
6690 if test -z "$CPP"; then
6691 if ${ac_cv_prog_CPP+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 # Double quotes because CPP needs to be expanded
6695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6698 for ac_c_preproc_warn_flag in '' yes
6700 # Use a header file that comes with gcc, so configuring glibc
6701 # with a fresh cross-compiler works.
6702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703 # <limits.h> exists even on freestanding compilers.
6704 # On the NeXT, cc -E runs the code through the compiler's parser,
6705 # not just through cpp. "Syntax error" is here to catch this case.
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6709 # include <limits.h>
6711 # include <assert.h>
6715 if ac_fn_c_try_cpp "$LINENO"; then :
6718 # Broken: fails on valid input.
6721 rm -f conftest.err conftest.i conftest.$ac_ext
6723 # OK, works on sane cases. Now check whether nonexistent headers
6724 # can be detected and how.
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <ac_nonexistent.h>
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730 # Broken: success on invalid input.
6733 # Passes both tests.
6737 rm -f conftest.err conftest.i conftest.$ac_ext
6740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741 rm -f conftest.i conftest.err conftest.
$ac_ext
6742 if $ac_preproc_ok; then :
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6755 $as_echo "$CPP" >&6; }
6757 for ac_c_preproc_warn_flag
in '' yes
6759 # Use a header file that comes with gcc, so configuring glibc
6760 # with a fresh cross-compiler works.
6761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 # <limits.h> exists even on freestanding compilers.
6763 # On the NeXT, cc -E runs the code through the compiler's parser,
6764 # not just through cpp. "Syntax error" is here to catch this case.
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6768 # include <limits.h>
6770 # include <assert.h>
6774 if ac_fn_c_try_cpp
"$LINENO"; then :
6777 # Broken: fails on valid input.
6780 rm -f conftest.err conftest.i conftest.
$ac_ext
6782 # OK, works on sane cases. Now check whether nonexistent headers
6783 # can be detected and how.
6784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <ac_nonexistent.h>
6788 if ac_fn_c_try_cpp
"$LINENO"; then :
6789 # Broken: success on invalid input.
6792 # Passes both tests.
6796 rm -f conftest.err conftest.i conftest.
$ac_ext
6799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6800 rm -f conftest.i conftest.err conftest.
$ac_ext
6801 if $ac_preproc_ok; then :
6804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6806 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6807 See \`config.log' for more details" "$LINENO" 5; }
6811 ac_cpp
='$CPP $CPPFLAGS'
6812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6819 if ${ac_cv_path_GREP+:} false
; then :
6820 $as_echo_n "(cached) " >&6
6822 if test -z "$GREP"; then
6823 ac_path_GREP_found
=false
6824 # Loop through the user's path and test for each of PROGNAME-LIST
6825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6826 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6829 test -z "$as_dir" && as_dir
=.
6830 for ac_prog
in grep ggrep
; do
6831 for ac_exec_ext
in '' $ac_executable_extensions; do
6832 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6833 as_fn_executable_p
"$ac_path_GREP" ||
continue
6834 # Check for GNU ac_path_GREP and select it if it is found.
6835 # Check for GNU $ac_path_GREP
6836 case `"$ac_path_GREP" --version 2>&1` in
6838 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6841 $as_echo_n 0123456789 >"conftest.in"
6844 cat "conftest.in" "conftest.in" >"conftest.tmp"
6845 mv "conftest.tmp" "conftest.in"
6846 cp "conftest.in" "conftest.nl"
6847 $as_echo 'GREP' >> "conftest.nl"
6848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6849 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6850 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6851 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6852 # Best one so far, save it but keep looking for a better one
6853 ac_cv_path_GREP
="$ac_path_GREP"
6854 ac_path_GREP_max
=$ac_count
6856 # 10*(2^10) chars as input seems more than enough
6857 test $ac_count -gt 10 && break
6859 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6862 $ac_path_GREP_found && break 3
6867 if test -z "$ac_cv_path_GREP"; then
6868 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6871 ac_cv_path_GREP
=$GREP
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6876 $as_echo "$ac_cv_path_GREP" >&6; }
6877 GREP
="$ac_cv_path_GREP"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6881 $as_echo_n "checking for egrep... " >&6; }
6882 if ${ac_cv_path_EGREP+:} false
; then :
6883 $as_echo_n "(cached) " >&6
6885 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6886 then ac_cv_path_EGREP
="$GREP -E"
6888 if test -z "$EGREP"; then
6889 ac_path_EGREP_found
=false
6890 # Loop through the user's path and test for each of PROGNAME-LIST
6891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6892 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6895 test -z "$as_dir" && as_dir
=.
6896 for ac_prog
in egrep; do
6897 for ac_exec_ext
in '' $ac_executable_extensions; do
6898 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6899 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6900 # Check for GNU ac_path_EGREP and select it if it is found.
6901 # Check for GNU $ac_path_EGREP
6902 case `"$ac_path_EGREP" --version 2>&1` in
6904 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6907 $as_echo_n 0123456789 >"conftest.in"
6910 cat "conftest.in" "conftest.in" >"conftest.tmp"
6911 mv "conftest.tmp" "conftest.in"
6912 cp "conftest.in" "conftest.nl"
6913 $as_echo 'EGREP' >> "conftest.nl"
6914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6915 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6916 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6918 # Best one so far, save it but keep looking for a better one
6919 ac_cv_path_EGREP
="$ac_path_EGREP"
6920 ac_path_EGREP_max
=$ac_count
6922 # 10*(2^10) chars as input seems more than enough
6923 test $ac_count -gt 10 && break
6925 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6928 $ac_path_EGREP_found && break 3
6933 if test -z "$ac_cv_path_EGREP"; then
6934 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6937 ac_cv_path_EGREP
=$EGREP
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6943 $as_echo "$ac_cv_path_EGREP" >&6; }
6944 EGREP
="$ac_cv_path_EGREP"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6950 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6951 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6952 $as_echo_n "(cached) " >&6
6955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6965 gl_cv_c_amsterdam_compiler
=yes
6967 gl_cv_c_amsterdam_compiler
=no
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6974 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6975 if test -z "$AR"; then
6976 if test $gl_cv_c_amsterdam_compiler = yes; then
6978 if test -z "$ARFLAGS"; then
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6984 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_AR+:} false
; then :
6988 $as_echo_n "(cached) " >&6
6990 if test -n "$AR"; then
6991 ac_cv_prog_AR
="$AR" # Let the user override the test.
6993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir
=.
6998 for ac_exec_ext
in '' $ac_executable_extensions; do
6999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 if test -n "$AR"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7013 $as_echo "$AR" >&6; }
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7021 if test -z "$ac_cv_prog_AR"; then
7023 # Extract the first word of "ar", so it can be a program name with args.
7024 set dummy
ar; ac_word
=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7028 $as_echo_n "(cached) " >&6
7030 if test -n "$ac_ct_AR"; then
7031 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir
=.
7038 for ac_exec_ext
in '' $ac_executable_extensions; do
7039 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_AR
="ar"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7051 if test -n "$ac_ct_AR"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7053 $as_echo "$ac_ct_AR" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7059 if test "x$ac_ct_AR" = x
; then
7062 case $cross_compiling:$ac_tool_warned in
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned
=yes ;;
7074 if test -z "$ARFLAGS"; then
7079 if test -z "$ARFLAGS"; then
7085 if test -z "$RANLIB"; then
7086 if test $gl_cv_c_amsterdam_compiler = yes; then
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7091 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_RANLIB+:} false
; then :
7095 $as_echo_n "(cached) " >&6
7097 if test -n "$RANLIB"; then
7098 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir
=.
7105 for ac_exec_ext
in '' $ac_executable_extensions; do
7106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 RANLIB
=$ac_cv_prog_RANLIB
7118 if test -n "$RANLIB"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7120 $as_echo "$RANLIB" >&6; }
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7128 if test -z "$ac_cv_prog_RANLIB"; then
7129 ac_ct_RANLIB
=$RANLIB
7130 # Extract the first word of "ranlib", so it can be a program name with args.
7131 set dummy ranlib
; ac_word
=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7135 $as_echo_n "(cached) " >&6
7137 if test -n "$ac_ct_RANLIB"; then
7138 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir
=.
7145 for ac_exec_ext
in '' $ac_executable_extensions; do
7146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7158 if test -n "$ac_ct_RANLIB"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7160 $as_echo "$ac_ct_RANLIB" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7166 if test "x$ac_ct_RANLIB" = x
; then
7169 case $cross_compiling:$ac_tool_warned in
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned
=yes ;;
7175 RANLIB
=$ac_ct_RANLIB
7178 RANLIB
="$ac_cv_prog_RANLIB"
7185 if test "x$CC" != xcc
; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7187 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7190 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7192 set dummy
$CC; ac_cc
=`$as_echo "$2" |
7193 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7194 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
7195 $as_echo_n "(cached) " >&6
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7208 # Make sure it works both with $CC and with simple cc.
7209 # We do the test twice because some compilers refuse to overwrite an
7210 # existing .o file with -o, though they will create one.
7211 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7213 if { { case "(($ac_try" in
7214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7218 $as_echo "$ac_try_echo"; } >&5
7219 (eval "$ac_try") 2>&5
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } &&
7223 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7225 *) ac_try_echo
=$ac_try;;
7227 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7228 $as_echo "$ac_try_echo"; } >&5
7229 (eval "$ac_try") 2>&5
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; };
7234 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
7235 if test "x$CC" != xcc
; then
7236 # Test first that cc exists at all.
7237 if { ac_try
='cc -c conftest.$ac_ext >&5'
7238 { { case "(($ac_try" in
7239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7243 $as_echo "$ac_try_echo"; } >&5
7244 (eval "$ac_try") 2>&5
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; }; }; then
7248 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7250 if { { case "(($ac_try" in
7251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7252 *) ac_try_echo
=$ac_try;;
7254 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7255 $as_echo "$ac_try_echo"; } >&5
7256 (eval "$ac_try") 2>&5
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; } &&
7260 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
7261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7265 $as_echo "$ac_try_echo"; } >&5
7266 (eval "$ac_try") 2>&5
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; };
7274 # cc exists but doesn't like -o.
7275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7280 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7282 rm -f core conftest*
7285 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7292 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7296 # FIXME: we rely on the cache variable name because
7297 # there is no other way.
7299 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7300 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7301 if test "$am_t" != yes; then
7302 # Losing compiler, so override with the script.
7303 # FIXME: It is wrong to rewrite CC.
7304 # But if we don't then we get into trouble of one sort or another.
7305 # A longer-term fix would be to have automake use am__CC in this case,
7306 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7307 CC="$am_aux_dir/compile $CC"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7312 $as_echo_n "checking for ANSI C header files... " >&6; }
7313 if ${ac_cv_header_stdc+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 ac_cv_header_stdc=yes
7334 ac_cv_header_stdc=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 if test $ac_cv_header_stdc = yes; then
7339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346 $EGREP "memchr" >/dev/null 2>&1; then :
7349 ac_cv_header_stdc=no
7355 if test $ac_cv_header_stdc = yes; then
7356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363 $EGREP "free" >/dev/null 2>&1; then :
7366 ac_cv_header_stdc=no
7372 if test $ac_cv_header_stdc = yes; then
7373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7374 if test "$cross_compiling" = yes; then :
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7381 #if ((' ' & 0x0FF) == 0x020)
7382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7385 # define ISLOWER(c) \
7386 (('a' <= (c) && (c) <= 'i') \
7387 || ('j' <= (c) && (c) <= 'r') \
7388 || ('s' <= (c) && (c) <= 'z'))
7389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7397 for (i = 0; i < 256; i++)
7398 if (XOR (islower (i), ISLOWER (i))
7399 || toupper (i) != TOUPPER (i))
7404 if ac_fn_c_try_run "$LINENO"; then :
7407 ac_cv_header_stdc=no
7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7410 conftest.$ac_objext conftest.beam conftest.$ac_ext
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7416 $as_echo "$ac_cv_header_stdc" >&6; }
7417 if test $ac_cv_header_stdc = yes; then
7419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7425 inttypes.h stdint.h unistd.h
7427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7431 cat >>confdefs.h <<_ACEOF
7432 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7441 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7442 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7449 if test "$MINIX" = yes; then
7451 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7454 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7457 $as_echo "#define _MINIX 1" >>confdefs.h
7460 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7466 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7467 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7468 $as_echo_n "(cached) " >&6
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7473 # define __EXTENSIONS__ 1
7474 $ac_includes_default
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 ac_cv_safe_to_define___extensions__=yes
7486 ac_cv_safe_to_define___extensions__=no
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7491 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7492 test $ac_cv_safe_to_define___extensions__ = yes &&
7493 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7495 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7497 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7499 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7501 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7503 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7506 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7507 if ${ac_cv_should_define__xopen_source+:} false; then :
7508 $as_echo_n "(cached) " >&6
7510 ac_cv_should_define__xopen_source=no
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7524 if ac_fn_c_try_compile "$LINENO"; then :
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7530 #define _XOPEN_SOURCE 500
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 ac_cv_should_define__xopen_source=yes
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7549 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7550 test $ac_cv_should_define__xopen_source = yes &&
7551 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7563 # Code from module alloca:
7564 # Code from module alloca-opt:
7565 # Code from module argp:
7566 # Code from module btowc:
7567 # Code from module configmake:
7568 # Code from module dirname-lgpl:
7569 # Code from module dosname:
7570 # Code from module double-slash-root:
7571 # Code from module errno:
7572 # Code from module error:
7573 # Code from module extensions:
7575 # Code from module extern-inline:
7576 # Code from module float:
7577 # Code from module fnmatch:
7578 # Code from module getdelim:
7579 # Code from module getline:
7580 # Code from module getopt-gnu:
7581 # Code from module getopt-posix:
7582 # Code from module gettext:
7583 # Code from module gettext-h:
7584 # Code from module havelib:
7585 # Code from module include_next:
7586 # Code from module intprops:
7587 # Code from module langinfo:
7588 # Code from module localcharset:
7589 # Code from module locale:
7590 # Code from module localeconv:
7591 # Code from module malloc-gnu:
7592 # Code from module malloc-posix:
7593 # Code from module mbrtowc:
7594 # Code from module mbsinit:
7595 # Code from module mbsrtowcs:
7596 # Code from module mbswidth:
7597 # Code from module mbtowc:
7598 # Code from module memchr:
7599 # Code from module mempcpy:
7600 # Code from module msvc-inval:
7601 # Code from module msvc-nothrow:
7602 # Code from module multiarch:
7603 # Code from module nl_langinfo:
7604 # Code from module nocrash:
7605 # Code from module progname:
7606 # Code from module rawmemchr:
7607 # Code from module realloc-posix:
7608 # Code from module regex:
7609 # Code from module size_max:
7610 # Code from module sleep:
7611 # Code from module snippet/_Noreturn:
7612 # Code from module snippet/arg-nonnull:
7613 # Code from module snippet/c++defs:
7614 # Code from module snippet/warn-on-use:
7615 # Code from module ssize_t:
7616 # Code from module stdalign:
7617 # Code from module stdbool:
7618 # Code from module stddef:
7619 # Code from module stdint:
7620 # Code from module stdio:
7621 # Code from module stdlib:
7622 # Code from module strcase:
7623 # Code from module strchrnul:
7624 # Code from module streq:
7625 # Code from module strerror:
7626 # Code from module strerror-override:
7627 # Code from module string:
7628 # Code from module strings:
7629 # Code from module strndup:
7630 # Code from module strnlen:
7631 # Code from module strnlen1:
7632 # Code from module sys_types:
7633 # Code from module sysexits:
7634 # Code from module unistd:
7635 # Code from module unitypes:
7636 # Code from module uniwidth/base:
7637 # Code from module uniwidth/width:
7638 # Code from module vasnprintf:
7639 # Code from module verify:
7640 # Code from module vsnprintf:
7641 # Code from module wchar:
7642 # Code from module wcrtomb:
7643 # Code from module wctype-h:
7644 # Code from module wcwidth:
7645 # Code from module xsize:
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7652 if test -z "$CXX"; then
7653 if test -n "$CCC"; then
7656 if test -n "$ac_tool_prefix"; then
7657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_CXX+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$CXX"; then
7667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 if test -n "$CXX"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7689 $as_echo "$CXX" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$CXX" && break
7699 if test -z "$CXX"; then
7701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7703 # Extract the first word of "$ac_prog", so it can be a program name with args.
7704 set dummy $ac_prog; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 if test -n "$ac_ct_CXX"; then
7711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_CXX="$ac_prog"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7731 if test -n "$ac_ct_CXX"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7733 $as_echo "$ac_ct_CXX" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 test -n "$ac_ct_CXX" && break
7743 if test "x$ac_ct_CXX" = x; then
7746 case $cross_compiling:$ac_tool_warned in
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7758 # Provide some information about the compiler.
7759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7762 for ac_option in --version -v -V -qversion; do
7763 { { ac_try="$ac_compiler $ac_option >&5"
7765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7766 *) ac_try_echo
=$ac_try;;
7768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7769 $as_echo "$ac_try_echo"; } >&5
7770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7772 if test -s conftest.err
; then
7774 ... rest of stderr output deleted ...
7775 10q' conftest.err
>conftest.er1
7776 cat conftest.er1
>&5
7778 rm -f conftest.er1 conftest.err
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7784 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7785 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
7786 $as_echo_n "(cached) " >&6
7788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7802 if ac_fn_cxx_try_compile
"$LINENO"; then :
7807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7812 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7813 if test $ac_compiler_gnu = yes; then
7818 ac_test_CXXFLAGS
=${CXXFLAGS+set}
7819 ac_save_CXXFLAGS
=$CXXFLAGS
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7821 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7822 if ${ac_cv_prog_cxx_g+:} false
; then :
7823 $as_echo_n "(cached) " >&6
7825 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7826 ac_cxx_werror_flag
=yes
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7840 if ac_fn_cxx_try_compile
"$LINENO"; then :
7841 ac_cv_prog_cxx_g
=yes
7844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7855 if ac_fn_cxx_try_compile
"$LINENO"; then :
7858 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7871 if ac_fn_cxx_try_compile
"$LINENO"; then :
7872 ac_cv_prog_cxx_g
=yes
7874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7879 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7883 if test "$ac_test_CXXFLAGS" = set; then
7884 CXXFLAGS
=$ac_save_CXXFLAGS
7885 elif test $ac_cv_prog_cxx_g = yes; then
7886 if test "$GXX" = yes; then
7892 if test "$GXX" = yes; then
7899 ac_cpp
='$CPP $CPPFLAGS'
7900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7904 depcc
="$CXX" am_compiler_list
=
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7907 $as_echo_n "checking dependency style of $depcc... " >&6; }
7908 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
7909 $as_echo_n "(cached) " >&6
7911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7912 # We make a subdir and do the tests there. Otherwise we can end up
7913 # making bogus files that we don't know about and never remove. For
7914 # instance it was reported that on HP-UX the gcc test will end up
7915 # making a dummy file named 'D' -- because '-MD' means "put the output
7919 # Copy depcomp to subdir because otherwise we won't find it if we're
7920 # using a relative directory.
7921 cp "$am_depcomp" conftest.dir
7923 # We will build objects and dependencies in a subdirectory because
7924 # it helps to detect inapplicable dependency modes. For instance
7925 # both Tru64's cc and ICC support -MD to output dependencies as a
7926 # side effect of compilation, but ICC will put the dependencies in
7927 # the current directory while Tru64 will put them in the object
7931 am_cv_CXX_dependencies_compiler_type
=none
7932 if test "$am_compiler_list" = ""; then
7933 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7936 case " $depcc " in #(
7937 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7940 for depmode
in $am_compiler_list; do
7941 # Setup a source with many dependencies, because some compilers
7942 # like to wrap large dependency lists on column 80 (with \), and
7943 # we should not choose a depcomp mode which is confused by this.
7945 # We need to recreate these files for each test, as the compiler may
7946 # overwrite some of them when testing with obscure command lines.
7947 # This happens at least with the AIX C compiler.
7949 for i
in 1 2 3 4 5 6; do
7950 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7951 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7952 # Solaris 10 /bin/sh.
7953 echo '/* dummy */' > sub
/conftst
$i.h
7955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7957 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7958 # mode. It turns out that the SunPro C++ compiler does not properly
7959 # handle '-M -o', and we need to detect this. Also, some Intel
7960 # versions had trouble with output in subdirs.
7961 am__obj
=sub
/conftest.
${OBJEXT-o}
7962 am__minus_obj
="-o $am__obj"
7965 # This depmode causes a compiler race in universal mode.
7966 test "$am__universal" = false ||
continue
7969 # After this tag, mechanisms are not by side-effect, so they'll
7970 # only be used when explicitly requested.
7971 if test "x$enable_dependency_tracking" = xyes
; then
7977 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
7978 # This compiler won't grok '-c -o', but also, the minuso test has
7979 # not run yet. These depmodes are late enough in the game, and
7980 # so weak that their functioning should not be impacted.
7981 am__obj
=conftest.
${OBJEXT-o}
7986 if depmode
=$depmode \
7987 source=sub
/conftest.c object
=$am__obj \
7988 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7989 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7990 >/dev
/null
2>conftest.err
&&
7991 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7992 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7993 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7994 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7995 # icc doesn't choke on unknown options, it will just issue warnings
7996 # or remarks (even with -Werror). So we grep stderr for any message
7997 # that says an option was ignored or not supported.
7998 # When given -MP, icc 7.0 and 7.1 complain thusly:
7999 # icc: Command line warning: ignoring option '-M'; no argument required
8000 # The diagnosis changed in icc 8.0:
8001 # icc: Command line remark: option '-MP' not supported
8002 if (grep 'ignoring option' conftest.err ||
8003 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8004 am_cv_CXX_dependencies_compiler_type
=$depmode
8013 am_cv_CXX_dependencies_compiler_type
=none
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8019 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8022 test "x$enable_dependency_tracking" != xno \
8023 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
8024 am__fastdepCXX_TRUE
=
8025 am__fastdepCXX_FALSE
='#'
8027 am__fastdepCXX_TRUE
='#'
8028 am__fastdepCXX_FALSE
=
8032 # FIXME: we rely on the cache variable name because
8033 # there is no other way.
8035 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
8036 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
8037 if test "$am_t" != yes; then
8038 # Losing compiler, so override with the script.
8039 # FIXME: It is wrong to rewrite CC.
8040 # But if we don't then we get into trouble of one sort or another.
8041 # A longer-term fix would be to have automake use am__CC in this case,
8042 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8043 CC
="$am_aux_dir/compile $CC"
8047 # By default we simply use the C compiler to build assembly code.
8049 test "${CCAS+set}" = set || CCAS
=$CC
8050 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
8054 depcc
="$CCAS" am_compiler_list
=
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8057 $as_echo_n "checking dependency style of $depcc... " >&6; }
8058 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8062 # We make a subdir and do the tests there. Otherwise we can end up
8063 # making bogus files that we don't know about and never remove. For
8064 # instance it was reported that on HP-UX the gcc test will end up
8065 # making a dummy file named 'D' -- because '-MD' means "put the output
8069 # Copy depcomp to subdir because otherwise we won't find it if we're
8070 # using a relative directory.
8071 cp "$am_depcomp" conftest.dir
8073 # We will build objects and dependencies in a subdirectory because
8074 # it helps to detect inapplicable dependency modes. For instance
8075 # both Tru64's cc and ICC support -MD to output dependencies as a
8076 # side effect of compilation, but ICC will put the dependencies in
8077 # the current directory while Tru64 will put them in the object
8081 am_cv_CCAS_dependencies_compiler_type
=none
8082 if test "$am_compiler_list" = ""; then
8083 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8088 for depmode
in $am_compiler_list; do
8089 # Setup a source with many dependencies, because some compilers
8090 # like to wrap large dependency lists on column 80 (with \), and
8091 # we should not choose a depcomp mode which is confused by this.
8093 # We need to recreate these files for each test, as the compiler may
8094 # overwrite some of them when testing with obscure command lines.
8095 # This happens at least with the AIX C compiler.
8097 for i
in 1 2 3 4 5 6; do
8098 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8100 # Solaris 10 /bin/sh.
8101 echo '/* dummy */' > sub
/conftst
$i.h
8103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8106 # mode. It turns out that the SunPro C++ compiler does not properly
8107 # handle '-M -o', and we need to detect this. Also, some Intel
8108 # versions had trouble with output in subdirs.
8109 am__obj
=sub
/conftest.
${OBJEXT-o}
8110 am__minus_obj
="-o $am__obj"
8113 # This depmode causes a compiler race in universal mode.
8114 test "$am__universal" = false ||
continue
8117 # After this tag, mechanisms are not by side-effect, so they'll
8118 # only be used when explicitly requested.
8119 if test "x$enable_dependency_tracking" = xyes
; then
8125 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
8126 # This compiler won't grok '-c -o', but also, the minuso test has
8127 # not run yet. These depmodes are late enough in the game, and
8128 # so weak that their functioning should not be impacted.
8129 am__obj
=conftest.
${OBJEXT-o}
8134 if depmode
=$depmode \
8135 source=sub
/conftest.c object
=$am__obj \
8136 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
8137 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
8138 >/dev
/null
2>conftest.err
&&
8139 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8140 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8141 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
8142 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
8143 # icc doesn't choke on unknown options, it will just issue warnings
8144 # or remarks (even with -Werror). So we grep stderr for any message
8145 # that says an option was ignored or not supported.
8146 # When given -MP, icc 7.0 and 7.1 complain thusly:
8147 # icc: Command line warning: ignoring option '-M'; no argument required
8148 # The diagnosis changed in icc 8.0:
8149 # icc: Command line remark: option '-MP' not supported
8150 if (grep 'ignoring option' conftest.err ||
8151 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8152 am_cv_CCAS_dependencies_compiler_type
=$depmode
8161 am_cv_CCAS_dependencies_compiler_type
=none
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8166 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8167 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
8170 test "x$enable_dependency_tracking" != xno \
8171 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
8172 am__fastdepCCAS_TRUE
=
8173 am__fastdepCCAS_FALSE
='#'
8175 am__fastdepCCAS_TRUE
='#'
8176 am__fastdepCCAS_FALSE
=
8182 test "x$GCC" = xyes || as_fn_error $?
"GCC is required" "$LINENO" 5
8184 # Extract the first word of "$CXX", so it can be a program name with args.
8185 set dummy
$CXX; ac_word
=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_HAVE_CXX+:} false
; then :
8189 $as_echo_n "(cached) " >&6
8191 if test -n "$HAVE_CXX"; then
8192 ac_cv_prog_HAVE_CXX
="$HAVE_CXX" # Let the user override the test.
8194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8198 test -z "$as_dir" && as_dir
=.
8199 for ac_exec_ext
in '' $ac_executable_extensions; do
8200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_HAVE_CXX
="yes"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX
="no"
8212 HAVE_CXX
=$ac_cv_prog_HAVE_CXX
8213 if test -n "$HAVE_CXX"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
8215 $as_echo "$HAVE_CXX" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8226 $as_echo_n "checking whether NLS is requested... " >&6; }
8227 # Check whether --enable-nls was given.
8228 if test "${enable_nls+set}" = set; then :
8229 enableval
=$enable_nls; USE_NLS
=$enableval
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8235 $as_echo "$USE_NLS" >&6; }
8240 GETTEXT_MACRO_VERSION
=0.18
8245 # Prepare PATH_SEPARATOR.
8246 # The user is always right.
8247 if test "${PATH_SEPARATOR+set}" != set; then
8248 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8249 # contains only /bin. Note that ksh looks also at the FPATH variable,
8250 # so we have to set that as well for the test.
8252 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8253 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8254 || PATH_SEPARATOR
=';'
8258 # Find out how to test for executable files. Don't use a zero-byte file,
8259 # as systems may use methods other than mode bits to determine executability.
8260 cat >conf$$.
file <<_ASEOF
8264 chmod +x conf$$.
file
8265 if test -x conf$$.
file >/dev
/null
2>&1; then
8266 ac_executable_p
="test -x"
8268 ac_executable_p
="test -f"
8272 # Extract the first word of "msgfmt", so it can be a program name with args.
8273 set dummy msgfmt
; ac_word
=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_path_MSGFMT+:} false
; then :
8277 $as_echo_n "(cached) " >&6
8281 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8284 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8285 for ac_dir
in $PATH; do
8287 test -z "$ac_dir" && ac_dir
=.
8288 for ac_exec_ext
in '' $ac_executable_extensions; do
8289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8290 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8291 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
8292 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8293 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
8300 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8304 MSGFMT
="$ac_cv_path_MSGFMT"
8305 if test "$MSGFMT" != ":"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8307 $as_echo "$MSGFMT" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8314 set dummy gmsgfmt
; ac_word
=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_path_GMSGFMT+:} false
; then :
8318 $as_echo_n "(cached) " >&6
8322 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir
=.
8330 for ac_exec_ext
in '' $ac_executable_extensions; do
8331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8344 GMSGFMT
=$ac_cv_path_GMSGFMT
8345 if test -n "$GMSGFMT"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8347 $as_echo "$GMSGFMT" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8356 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
8357 *) MSGFMT_015
=$MSGFMT ;;
8360 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8361 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
8362 *) GMSGFMT_015
=$GMSGFMT ;;
8367 # Prepare PATH_SEPARATOR.
8368 # The user is always right.
8369 if test "${PATH_SEPARATOR+set}" != set; then
8370 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8371 # contains only /bin. Note that ksh looks also at the FPATH variable,
8372 # so we have to set that as well for the test.
8374 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8375 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8376 || PATH_SEPARATOR
=';'
8380 # Find out how to test for executable files. Don't use a zero-byte file,
8381 # as systems may use methods other than mode bits to determine executability.
8382 cat >conf$$.
file <<_ASEOF
8386 chmod +x conf$$.
file
8387 if test -x conf$$.
file >/dev
/null
2>&1; then
8388 ac_executable_p
="test -x"
8390 ac_executable_p
="test -f"
8394 # Extract the first word of "xgettext", so it can be a program name with args.
8395 set dummy xgettext
; ac_word
=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_path_XGETTEXT+:} false
; then :
8399 $as_echo_n "(cached) " >&6
8403 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8406 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8407 for ac_dir
in $PATH; do
8409 test -z "$ac_dir" && ac_dir
=.
8410 for ac_exec_ext
in '' $ac_executable_extensions; do
8411 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8412 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8413 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
8414 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8415 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
8422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8426 XGETTEXT
="$ac_cv_path_XGETTEXT"
8427 if test "$XGETTEXT" != ":"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8429 $as_echo "$XGETTEXT" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8437 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8438 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
8439 *) XGETTEXT_015
=$XGETTEXT ;;
8444 # Prepare PATH_SEPARATOR.
8445 # The user is always right.
8446 if test "${PATH_SEPARATOR+set}" != set; then
8447 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8448 # contains only /bin. Note that ksh looks also at the FPATH variable,
8449 # so we have to set that as well for the test.
8451 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8452 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8453 || PATH_SEPARATOR
=';'
8457 # Find out how to test for executable files. Don't use a zero-byte file,
8458 # as systems may use methods other than mode bits to determine executability.
8459 cat >conf$$.
file <<_ASEOF
8463 chmod +x conf$$.
file
8464 if test -x conf$$.
file >/dev
/null
2>&1; then
8465 ac_executable_p
="test -x"
8467 ac_executable_p
="test -f"
8471 # Extract the first word of "msgmerge", so it can be a program name with args.
8472 set dummy msgmerge
; ac_word
=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_path_MSGMERGE+:} false
; then :
8476 $as_echo_n "(cached) " >&6
8480 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
8483 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8484 for ac_dir
in $PATH; do
8486 test -z "$ac_dir" && ac_dir
=.
8487 for ac_exec_ext
in '' $ac_executable_extensions; do
8488 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8489 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8490 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
8491 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
8498 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
8502 MSGMERGE
="$ac_cv_path_MSGMERGE"
8503 if test "$MSGMERGE" != ":"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8505 $as_echo "$MSGMERGE" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8512 test -n "$localedir" || localedir
='${datadir}/locale'
8515 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
8518 ac_config_commands
="$ac_config_commands po-directories"
8522 if test "X$prefix" = "XNONE"; then
8523 acl_final_prefix
="$ac_default_prefix"
8525 acl_final_prefix
="$prefix"
8527 if test "X$exec_prefix" = "XNONE"; then
8528 acl_final_exec_prefix
='${prefix}'
8530 acl_final_exec_prefix
="$exec_prefix"
8532 acl_save_prefix
="$prefix"
8533 prefix
="$acl_final_prefix"
8534 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8535 prefix
="$acl_save_prefix"
8539 # Check whether --with-gnu-ld was given.
8540 if test "${with_gnu_ld+set}" = set; then :
8541 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8546 # Prepare PATH_SEPARATOR.
8547 # The user is always right.
8548 if test "${PATH_SEPARATOR+set}" != set; then
8549 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8550 # contains only /bin. Note that ksh looks also at the FPATH variable,
8551 # so we have to set that as well for the test.
8553 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8554 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8555 || PATH_SEPARATOR
=';'
8560 if test "$GCC" = yes; then
8561 # Check if gcc -print-prog-name=ld gives a path.
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8563 $as_echo_n "checking for ld used by $CC... " >&6; }
8566 # gcc leaves a trailing carriage return which upsets mingw
8567 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8569 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8572 # Accept absolute paths.
8574 re_direlt
='/[^/][^/]*/\.\./'
8575 # Canonicalize the pathname of ld
8576 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8577 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
8578 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8580 test -z "$LD" && LD
="$ac_prog"
8583 # If it fails, then pretend we aren't using GCC.
8587 # If it is relative, then search for the first ld in PATH.
8591 elif test "$with_gnu_ld" = yes; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8593 $as_echo_n "checking for GNU ld... " >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8596 $as_echo_n "checking for non-GNU ld... " >&6; }
8598 if ${acl_cv_path_LD+:} false
; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -z "$LD"; then
8602 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8603 for ac_dir
in $PATH; do
8605 test -z "$ac_dir" && ac_dir
=.
8606 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8607 acl_cv_path_LD
="$ac_dir/$ac_prog"
8608 # Check to see if the program is GNU ld. I'd rather use --version,
8609 # but apparently some variants of GNU ld only accept -v.
8610 # Break only if it was the GNU/non-GNU ld that we prefer.
8611 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8612 *GNU
* |
*'with BFD'*)
8613 test "$with_gnu_ld" != no
&& break
8616 test "$with_gnu_ld" != yes && break
8623 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8627 LD
="$acl_cv_path_LD"
8628 if test -n "$LD"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8630 $as_echo "$LD" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8635 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8637 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8638 if ${acl_cv_prog_gnu_ld+:} false
; then :
8639 $as_echo_n "(cached) " >&6
8641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8642 case `$LD -v 2>&1 </dev/null` in
8643 *GNU
* |
*'with BFD'*)
8644 acl_cv_prog_gnu_ld
=yes
8647 acl_cv_prog_gnu_ld
=no
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8652 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8653 with_gnu_ld
=$acl_cv_prog_gnu_ld
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8659 $as_echo_n "checking for shared library run path origin... " >&6; }
8660 if ${acl_cv_rpath+:} false
; then :
8661 $as_echo_n "(cached) " >&6
8664 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8665 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8672 $as_echo "$acl_cv_rpath" >&6; }
8674 acl_libext
="$acl_cv_libext"
8675 acl_shlibext
="$acl_cv_shlibext"
8676 acl_libname_spec
="$acl_cv_libname_spec"
8677 acl_library_names_spec
="$acl_cv_library_names_spec"
8678 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8679 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8680 acl_hardcode_direct
="$acl_cv_hardcode_direct"
8681 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8682 # Check whether --enable-rpath was given.
8683 if test "${enable_rpath+set}" = set; then :
8684 enableval
=$enable_rpath; :
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8697 $as_echo_n "checking for 64-bit host... " >&6; }
8698 if ${gl_cv_solaris_64bit+:} false
; then :
8699 $as_echo_n "(cached) " >&6
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
8711 gl_cv_solaris_64bit
=yes
8713 gl_cv_solaris_64bit
=no
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8720 $as_echo "$gl_cv_solaris_64bit" >&6; }
8721 if test $gl_cv_solaris_64bit = yes; then
8722 acl_libdirstem
=lib
/64
8724 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
8725 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
8730 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8731 if test -n "$searchpath"; then
8732 acl_save_IFS
="${IFS= }"; IFS
=":"
8733 for searchdir
in $searchpath; do
8734 if test -d "$searchdir"; then
8735 case "$searchdir" in
8736 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
8738 # Better ignore directories of this form. They are misleading.
8740 *) searchdir
=`cd "$searchdir" && pwd`
8741 case "$searchdir" in
8742 */lib64
) acl_libdirstem
=lib64
;;
8751 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
8766 acl_save_prefix
="$prefix"
8767 prefix
="$acl_final_prefix"
8768 acl_save_exec_prefix
="$exec_prefix"
8769 exec_prefix
="$acl_final_exec_prefix"
8771 eval additional_includedir
=\"$includedir\"
8772 eval additional_libdir
=\"$libdir\"
8774 exec_prefix
="$acl_save_exec_prefix"
8775 prefix
="$acl_save_prefix"
8778 # Check whether --with-libiconv-prefix was given.
8779 if test "${with_libiconv_prefix+set}" = set; then :
8780 withval
=$with_libiconv_prefix;
8781 if test "X$withval" = "Xno"; then
8784 if test "X$withval" = "X"; then
8786 acl_save_prefix
="$prefix"
8787 prefix
="$acl_final_prefix"
8788 acl_save_exec_prefix
="$exec_prefix"
8789 exec_prefix
="$acl_final_exec_prefix"
8791 eval additional_includedir
=\"$includedir\"
8792 eval additional_libdir
=\"$libdir\"
8794 exec_prefix
="$acl_save_exec_prefix"
8795 prefix
="$acl_save_prefix"
8798 additional_includedir
="$withval/include"
8799 additional_libdir
="$withval/$acl_libdirstem"
8800 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8801 && ! test -d "$withval/$acl_libdirstem"; then
8802 additional_libdir
="$withval/$acl_libdirstem2"
8816 names_already_handled
=
8817 names_next_round
='iconv '
8818 while test -n "$names_next_round"; do
8819 names_this_round
="$names_next_round"
8821 for name
in $names_this_round; do
8823 for n
in $names_already_handled; do
8824 if test "$n" = "$name"; then
8829 if test -z "$already_handled"; then
8830 names_already_handled
="$names_already_handled $name"
8831 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8832 eval value
=\"\
$HAVE_LIB$uppername\"
8833 if test -n "$value"; then
8834 if test "$value" = yes; then
8835 eval value
=\"\
$LIB$uppername\"
8836 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8837 eval value
=\"\
$LTLIB$uppername\"
8838 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8847 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8848 if test -n "$acl_shlibext"; then
8849 shrext
=".$acl_shlibext" # typically: shrext=.so
8853 if test $use_additional = yes; then
8854 dir
="$additional_libdir"
8855 if test -n "$acl_shlibext"; then
8856 if test -f "$dir/$libname$shrext"; then
8858 found_so
="$dir/$libname$shrext"
8860 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8861 ver
=`(cd "$dir" && \
8862 for f in "$libname$shrext".*; do echo "$f"; done \
8863 | sed -e "s,^$libname$shrext\\\\.,," \
8864 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8865 | sed 1q ) 2>/dev/null`
8866 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8868 found_so
="$dir/$libname$shrext.$ver"
8871 eval library_names
=\"$acl_library_names_spec\"
8872 for f
in $library_names; do
8873 if test -f "$dir/$f"; then
8882 if test "X$found_dir" = "X"; then
8883 if test -f "$dir/$libname.$acl_libext"; then
8885 found_a
="$dir/$libname.$acl_libext"
8888 if test "X$found_dir" != "X"; then
8889 if test -f "$dir/$libname.la"; then
8890 found_la
="$dir/$libname.la"
8894 if test "X$found_dir" = "X"; then
8895 for x
in $LDFLAGS $LTLIBICONV; do
8897 acl_save_prefix
="$prefix"
8898 prefix
="$acl_final_prefix"
8899 acl_save_exec_prefix
="$exec_prefix"
8900 exec_prefix
="$acl_final_exec_prefix"
8902 exec_prefix
="$acl_save_exec_prefix"
8903 prefix
="$acl_save_prefix"
8907 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8908 if test -n "$acl_shlibext"; then
8909 if test -f "$dir/$libname$shrext"; then
8911 found_so
="$dir/$libname$shrext"
8913 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8914 ver
=`(cd "$dir" && \
8915 for f in "$libname$shrext".*; do echo "$f"; done \
8916 | sed -e "s,^$libname$shrext\\\\.,," \
8917 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8918 | sed 1q ) 2>/dev/null`
8919 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8921 found_so
="$dir/$libname$shrext.$ver"
8924 eval library_names
=\"$acl_library_names_spec\"
8925 for f
in $library_names; do
8926 if test -f "$dir/$f"; then
8935 if test "X$found_dir" = "X"; then
8936 if test -f "$dir/$libname.$acl_libext"; then
8938 found_a
="$dir/$libname.$acl_libext"
8941 if test "X$found_dir" != "X"; then
8942 if test -f "$dir/$libname.la"; then
8943 found_la
="$dir/$libname.la"
8948 if test "X$found_dir" != "X"; then
8953 if test "X$found_dir" != "X"; then
8954 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8955 if test "X$found_so" != "X"; then
8956 if test "$enable_rpath" = no \
8957 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8958 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8959 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8962 for x
in $ltrpathdirs; do
8963 if test "X$x" = "X$found_dir"; then
8968 if test -z "$haveit"; then
8969 ltrpathdirs
="$ltrpathdirs $found_dir"
8971 if test "$acl_hardcode_direct" = yes; then
8972 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8974 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8975 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8977 for x
in $rpathdirs; do
8978 if test "X$x" = "X$found_dir"; then
8983 if test -z "$haveit"; then
8984 rpathdirs
="$rpathdirs $found_dir"
8988 for x
in $LDFLAGS $LIBICONV; do
8990 acl_save_prefix
="$prefix"
8991 prefix
="$acl_final_prefix"
8992 acl_save_exec_prefix
="$exec_prefix"
8993 exec_prefix
="$acl_final_exec_prefix"
8995 exec_prefix
="$acl_save_exec_prefix"
8996 prefix
="$acl_save_prefix"
8998 if test "X$x" = "X-L$found_dir"; then
9003 if test -z "$haveit"; then
9004 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9006 if test "$acl_hardcode_minus_L" != no
; then
9007 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9009 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9015 if test "X$found_a" != "X"; then
9016 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9021 additional_includedir
=
9022 case "$found_dir" in
9023 */$acl_libdirstem |
*/$acl_libdirstem/)
9024 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9025 if test "$name" = 'iconv'; then
9026 LIBICONV_PREFIX
="$basedir"
9028 additional_includedir
="$basedir/include"
9030 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9031 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9032 if test "$name" = 'iconv'; then
9033 LIBICONV_PREFIX
="$basedir"
9035 additional_includedir
="$basedir/include"
9038 if test "X$additional_includedir" != "X"; then
9039 if test "X$additional_includedir" != "X/usr/include"; then
9041 if test "X$additional_includedir" = "X/usr/local/include"; then
9042 if test -n "$GCC"; then
9044 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9048 if test -z "$haveit"; then
9049 for x
in $CPPFLAGS $INCICONV; do
9051 acl_save_prefix
="$prefix"
9052 prefix
="$acl_final_prefix"
9053 acl_save_exec_prefix
="$exec_prefix"
9054 exec_prefix
="$acl_final_exec_prefix"
9056 exec_prefix
="$acl_save_exec_prefix"
9057 prefix
="$acl_save_prefix"
9059 if test "X$x" = "X-I$additional_includedir"; then
9064 if test -z "$haveit"; then
9065 if test -d "$additional_includedir"; then
9066 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9072 if test -n "$found_la"; then
9073 save_libdir
="$libdir"
9075 */* |
*\\*) .
"$found_la" ;;
9076 *) .
"./$found_la" ;;
9078 libdir
="$save_libdir"
9079 for dep
in $dependency_libs; do
9082 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9083 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9084 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9086 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9087 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9088 if test -n "$GCC"; then
9090 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9094 if test -z "$haveit"; then
9096 for x
in $LDFLAGS $LIBICONV; do
9098 acl_save_prefix
="$prefix"
9099 prefix
="$acl_final_prefix"
9100 acl_save_exec_prefix
="$exec_prefix"
9101 exec_prefix
="$acl_final_exec_prefix"
9103 exec_prefix
="$acl_save_exec_prefix"
9104 prefix
="$acl_save_prefix"
9106 if test "X$x" = "X-L$additional_libdir"; then
9111 if test -z "$haveit"; then
9112 if test -d "$additional_libdir"; then
9113 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9117 for x
in $LDFLAGS $LTLIBICONV; do
9119 acl_save_prefix
="$prefix"
9120 prefix
="$acl_final_prefix"
9121 acl_save_exec_prefix
="$exec_prefix"
9122 exec_prefix
="$acl_final_exec_prefix"
9124 exec_prefix
="$acl_save_exec_prefix"
9125 prefix
="$acl_save_prefix"
9127 if test "X$x" = "X-L$additional_libdir"; then
9132 if test -z "$haveit"; then
9133 if test -d "$additional_libdir"; then
9134 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9141 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9142 if test "$enable_rpath" != no
; then
9144 for x
in $rpathdirs; do
9145 if test "X$x" = "X$dir"; then
9150 if test -z "$haveit"; then
9151 rpathdirs
="$rpathdirs $dir"
9154 for x
in $ltrpathdirs; do
9155 if test "X$x" = "X$dir"; then
9160 if test -z "$haveit"; then
9161 ltrpathdirs
="$ltrpathdirs $dir"
9166 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9169 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9172 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9173 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9179 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9180 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9186 if test "X$rpathdirs" != "X"; then
9187 if test -n "$acl_hardcode_libdir_separator"; then
9189 for found_dir
in $rpathdirs; do
9190 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9192 acl_save_libdir
="$libdir"
9194 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9195 libdir
="$acl_save_libdir"
9196 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9198 for found_dir
in $rpathdirs; do
9199 acl_save_libdir
="$libdir"
9201 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9202 libdir
="$acl_save_libdir"
9203 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9207 if test "X$ltrpathdirs" != "X"; then
9208 for found_dir
in $ltrpathdirs; do
9209 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9244 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9245 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
9246 $as_echo_n "(cached) " >&6
9248 gt_save_LIBS
="$LIBS"
9249 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 #include <CoreFoundation/CFPreferences.h>
9256 CFPreferencesCopyAppValue(NULL, NULL)
9261 if ac_fn_c_try_link
"$LINENO"; then :
9262 gt_cv_func_CFPreferencesCopyAppValue
=yes
9264 gt_cv_func_CFPreferencesCopyAppValue
=no
9266 rm -f core conftest.err conftest.
$ac_objext \
9267 conftest
$ac_exeext conftest.
$ac_ext
9268 LIBS
="$gt_save_LIBS"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9271 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9272 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9274 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9278 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9279 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
9280 $as_echo_n "(cached) " >&6
9282 gt_save_LIBS
="$LIBS"
9283 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <CoreFoundation/CFLocale.h>
9290 CFLocaleCopyCurrent();
9295 if ac_fn_c_try_link
"$LINENO"; then :
9296 gt_cv_func_CFLocaleCopyCurrent
=yes
9298 gt_cv_func_CFLocaleCopyCurrent
=no
9300 rm -f core conftest.err conftest.
$ac_objext \
9301 conftest
$ac_exeext conftest.
$ac_ext
9302 LIBS
="$gt_save_LIBS"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9305 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9306 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9308 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9312 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9313 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
9325 case " $gt_needs " in
9326 *" need-formatstring-macros "*) gt_api_version
=3 ;;
9327 *" need-ngettext "*) gt_api_version
=2 ;;
9328 *) gt_api_version
=1 ;;
9330 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
9331 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
9333 if test "$USE_NLS" = "yes"; then
9334 gt_use_preinstalled_gnugettext
=no
9337 if test $gt_api_version -ge 3; then
9338 gt_revision_test_code
='
9339 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9340 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9342 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9345 gt_revision_test_code
=
9347 if test $gt_api_version -ge 2; then
9348 gt_expression_test_code
=' + * ngettext ("", "", 0)'
9350 gt_expression_test_code
=
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9354 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9355 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
9356 $as_echo_n "(cached) " >&6
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9361 #include <libintl.h>
9362 $gt_revision_test_code
9363 extern int _nl_msg_cat_cntr;
9364 extern int *_nl_domain_bindings;
9370 bindtextdomain ("", "");
9371 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9377 if ac_fn_c_try_link
"$LINENO"; then :
9378 eval "$gt_func_gnugettext_libc=yes"
9380 eval "$gt_func_gnugettext_libc=no"
9382 rm -f core conftest.err conftest.
$ac_objext \
9383 conftest
$ac_exeext conftest.
$ac_ext
9385 eval ac_res
=\$
$gt_func_gnugettext_libc
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9387 $as_echo "$ac_res" >&6; }
9389 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9395 am_save_CPPFLAGS
="$CPPFLAGS"
9397 for element
in $INCICONV; do
9399 for x
in $CPPFLAGS; do
9401 acl_save_prefix
="$prefix"
9402 prefix
="$acl_final_prefix"
9403 acl_save_exec_prefix
="$exec_prefix"
9404 exec_prefix
="$acl_final_exec_prefix"
9406 exec_prefix
="$acl_save_exec_prefix"
9407 prefix
="$acl_save_prefix"
9409 if test "X$x" = "X$element"; then
9414 if test -z "$haveit"; then
9415 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9421 $as_echo_n "checking for iconv... " >&6; }
9422 if ${am_cv_func_iconv+:} false
; then :
9423 $as_echo_n "(cached) " >&6
9426 am_cv_func_iconv
="no, consider installing GNU libiconv"
9428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9437 iconv_t cd = iconv_open("","");
9438 iconv(cd,NULL,NULL,NULL,NULL);
9444 if ac_fn_c_try_link
"$LINENO"; then :
9445 am_cv_func_iconv
=yes
9447 rm -f core conftest.err conftest.
$ac_objext \
9448 conftest
$ac_exeext conftest.
$ac_ext
9449 if test "$am_cv_func_iconv" != yes; then
9450 am_save_LIBS
="$LIBS"
9451 LIBS
="$LIBS $LIBICONV"
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9461 iconv_t cd = iconv_open("","");
9462 iconv(cd,NULL,NULL,NULL,NULL);
9468 if ac_fn_c_try_link
"$LINENO"; then :
9470 am_cv_func_iconv
=yes
9472 rm -f core conftest.err conftest.
$ac_objext \
9473 conftest
$ac_exeext conftest.
$ac_ext
9474 LIBS
="$am_save_LIBS"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9479 $as_echo "$am_cv_func_iconv" >&6; }
9480 if test "$am_cv_func_iconv" = yes; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9482 $as_echo_n "checking for working iconv... " >&6; }
9483 if ${am_cv_func_iconv_works+:} false
; then :
9484 $as_echo_n "(cached) " >&6
9487 am_save_LIBS
="$LIBS"
9488 if test $am_cv_lib_iconv = yes; then
9489 LIBS
="$LIBS $LIBICONV"
9491 if test "$cross_compiling" = yes; then :
9494 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9495 *) am_cv_func_iconv_works
="guessing yes" ;;
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9507 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9510 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9511 if (cd_utf8_to_88591 != (iconv_t)(-1))
9513 static const char input[] = "\342\202\254"; /* EURO SIGN */
9515 const char *inptr = input;
9516 size_t inbytesleft = strlen (input);
9518 size_t outbytesleft = sizeof (buf);
9519 size_t res = iconv (cd_utf8_to_88591,
9520 (char **) &inptr, &inbytesleft,
9521 &outptr, &outbytesleft);
9524 iconv_close (cd_utf8_to_88591);
9527 /* Test against Solaris 10 bug: Failures are not distinguishable from
9528 successful returns. */
9530 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9531 if (cd_ascii_to_88591 != (iconv_t)(-1))
9533 static const char input[] = "\263";
9535 const char *inptr = input;
9536 size_t inbytesleft = strlen (input);
9538 size_t outbytesleft = sizeof (buf);
9539 size_t res = iconv (cd_ascii_to_88591,
9540 (char **) &inptr, &inbytesleft,
9541 &outptr, &outbytesleft);
9544 iconv_close (cd_ascii_to_88591);
9547 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9549 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9550 if (cd_88591_to_utf8 != (iconv_t)(-1))
9552 static const char input[] = "\304";
9553 static char buf[2] = { (char)0xDE, (char)0xAD };
9554 const char *inptr = input;
9555 size_t inbytesleft = 1;
9557 size_t outbytesleft = 1;
9558 size_t res = iconv (cd_88591_to_utf8,
9559 (char **) &inptr, &inbytesleft,
9560 &outptr, &outbytesleft);
9561 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9563 iconv_close (cd_88591_to_utf8);
9566 #if 0 /* This bug could be worked around by the caller. */
9567 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9569 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9570 if (cd_88591_to_utf8 != (iconv_t)(-1))
9572 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9574 const char *inptr = input;
9575 size_t inbytesleft = strlen (input);
9577 size_t outbytesleft = sizeof (buf);
9578 size_t res = iconv (cd_88591_to_utf8,
9579 (char **) &inptr, &inbytesleft,
9580 &outptr, &outbytesleft);
9583 iconv_close (cd_88591_to_utf8);
9587 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9589 if (/* Try standardized names. */
9590 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9591 /* Try IRIX, OSF/1 names. */
9592 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9593 /* Try AIX names. */
9594 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9595 /* Try HP-UX names. */
9596 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9601 if ac_fn_c_try_run
"$LINENO"; then :
9602 am_cv_func_iconv_works
=yes
9604 am_cv_func_iconv_works
=no
9606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9610 LIBS
="$am_save_LIBS"
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9614 $as_echo "$am_cv_func_iconv_works" >&6; }
9615 case "$am_cv_func_iconv_works" in
9616 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
9617 *) am_func_iconv
=yes ;;
9620 am_func_iconv
=no am_cv_lib_iconv
=no
9622 if test "$am_func_iconv" = yes; then
9624 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9627 if test "$am_cv_lib_iconv" = yes; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9629 $as_echo_n "checking how to link with libiconv... " >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9631 $as_echo "$LIBICONV" >&6; }
9633 CPPFLAGS
="$am_save_CPPFLAGS"
9650 acl_save_prefix
="$prefix"
9651 prefix
="$acl_final_prefix"
9652 acl_save_exec_prefix
="$exec_prefix"
9653 exec_prefix
="$acl_final_exec_prefix"
9655 eval additional_includedir
=\"$includedir\"
9656 eval additional_libdir
=\"$libdir\"
9658 exec_prefix
="$acl_save_exec_prefix"
9659 prefix
="$acl_save_prefix"
9662 # Check whether --with-libintl-prefix was given.
9663 if test "${with_libintl_prefix+set}" = set; then :
9664 withval
=$with_libintl_prefix;
9665 if test "X$withval" = "Xno"; then
9668 if test "X$withval" = "X"; then
9670 acl_save_prefix
="$prefix"
9671 prefix
="$acl_final_prefix"
9672 acl_save_exec_prefix
="$exec_prefix"
9673 exec_prefix
="$acl_final_exec_prefix"
9675 eval additional_includedir
=\"$includedir\"
9676 eval additional_libdir
=\"$libdir\"
9678 exec_prefix
="$acl_save_exec_prefix"
9679 prefix
="$acl_save_prefix"
9682 additional_includedir
="$withval/include"
9683 additional_libdir
="$withval/$acl_libdirstem"
9684 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9685 && ! test -d "$withval/$acl_libdirstem"; then
9686 additional_libdir
="$withval/$acl_libdirstem2"
9700 names_already_handled
=
9701 names_next_round
='intl '
9702 while test -n "$names_next_round"; do
9703 names_this_round
="$names_next_round"
9705 for name
in $names_this_round; do
9707 for n
in $names_already_handled; do
9708 if test "$n" = "$name"; then
9713 if test -z "$already_handled"; then
9714 names_already_handled
="$names_already_handled $name"
9715 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9716 eval value
=\"\
$HAVE_LIB$uppername\"
9717 if test -n "$value"; then
9718 if test "$value" = yes; then
9719 eval value
=\"\
$LIB$uppername\"
9720 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
9721 eval value
=\"\
$LTLIB$uppername\"
9722 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
9731 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9732 if test -n "$acl_shlibext"; then
9733 shrext
=".$acl_shlibext" # typically: shrext=.so
9737 if test $use_additional = yes; then
9738 dir
="$additional_libdir"
9739 if test -n "$acl_shlibext"; then
9740 if test -f "$dir/$libname$shrext"; then
9742 found_so
="$dir/$libname$shrext"
9744 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9745 ver
=`(cd "$dir" && \
9746 for f in "$libname$shrext".*; do echo "$f"; done \
9747 | sed -e "s,^$libname$shrext\\\\.,," \
9748 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9749 | sed 1q ) 2>/dev/null`
9750 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9752 found_so
="$dir/$libname$shrext.$ver"
9755 eval library_names
=\"$acl_library_names_spec\"
9756 for f
in $library_names; do
9757 if test -f "$dir/$f"; then
9766 if test "X$found_dir" = "X"; then
9767 if test -f "$dir/$libname.$acl_libext"; then
9769 found_a
="$dir/$libname.$acl_libext"
9772 if test "X$found_dir" != "X"; then
9773 if test -f "$dir/$libname.la"; then
9774 found_la
="$dir/$libname.la"
9778 if test "X$found_dir" = "X"; then
9779 for x
in $LDFLAGS $LTLIBINTL; do
9781 acl_save_prefix
="$prefix"
9782 prefix
="$acl_final_prefix"
9783 acl_save_exec_prefix
="$exec_prefix"
9784 exec_prefix
="$acl_final_exec_prefix"
9786 exec_prefix
="$acl_save_exec_prefix"
9787 prefix
="$acl_save_prefix"
9791 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9792 if test -n "$acl_shlibext"; then
9793 if test -f "$dir/$libname$shrext"; then
9795 found_so
="$dir/$libname$shrext"
9797 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9798 ver
=`(cd "$dir" && \
9799 for f in "$libname$shrext".*; do echo "$f"; done \
9800 | sed -e "s,^$libname$shrext\\\\.,," \
9801 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9802 | sed 1q ) 2>/dev/null`
9803 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9805 found_so
="$dir/$libname$shrext.$ver"
9808 eval library_names
=\"$acl_library_names_spec\"
9809 for f
in $library_names; do
9810 if test -f "$dir/$f"; then
9819 if test "X$found_dir" = "X"; then
9820 if test -f "$dir/$libname.$acl_libext"; then
9822 found_a
="$dir/$libname.$acl_libext"
9825 if test "X$found_dir" != "X"; then
9826 if test -f "$dir/$libname.la"; then
9827 found_la
="$dir/$libname.la"
9832 if test "X$found_dir" != "X"; then
9837 if test "X$found_dir" != "X"; then
9838 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9839 if test "X$found_so" != "X"; then
9840 if test "$enable_rpath" = no \
9841 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
9842 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9843 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9846 for x
in $ltrpathdirs; do
9847 if test "X$x" = "X$found_dir"; then
9852 if test -z "$haveit"; then
9853 ltrpathdirs
="$ltrpathdirs $found_dir"
9855 if test "$acl_hardcode_direct" = yes; then
9856 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9858 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9859 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9861 for x
in $rpathdirs; do
9862 if test "X$x" = "X$found_dir"; then
9867 if test -z "$haveit"; then
9868 rpathdirs
="$rpathdirs $found_dir"
9872 for x
in $LDFLAGS $LIBINTL; do
9874 acl_save_prefix
="$prefix"
9875 prefix
="$acl_final_prefix"
9876 acl_save_exec_prefix
="$exec_prefix"
9877 exec_prefix
="$acl_final_exec_prefix"
9879 exec_prefix
="$acl_save_exec_prefix"
9880 prefix
="$acl_save_prefix"
9882 if test "X$x" = "X-L$found_dir"; then
9887 if test -z "$haveit"; then
9888 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9890 if test "$acl_hardcode_minus_L" != no
; then
9891 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9893 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9899 if test "X$found_a" != "X"; then
9900 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9902 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9905 additional_includedir
=
9906 case "$found_dir" in
9907 */$acl_libdirstem |
*/$acl_libdirstem/)
9908 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9909 if test "$name" = 'intl'; then
9910 LIBINTL_PREFIX
="$basedir"
9912 additional_includedir
="$basedir/include"
9914 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9915 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9916 if test "$name" = 'intl'; then
9917 LIBINTL_PREFIX
="$basedir"
9919 additional_includedir
="$basedir/include"
9922 if test "X$additional_includedir" != "X"; then
9923 if test "X$additional_includedir" != "X/usr/include"; then
9925 if test "X$additional_includedir" = "X/usr/local/include"; then
9926 if test -n "$GCC"; then
9928 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9932 if test -z "$haveit"; then
9933 for x
in $CPPFLAGS $INCINTL; do
9935 acl_save_prefix
="$prefix"
9936 prefix
="$acl_final_prefix"
9937 acl_save_exec_prefix
="$exec_prefix"
9938 exec_prefix
="$acl_final_exec_prefix"
9940 exec_prefix
="$acl_save_exec_prefix"
9941 prefix
="$acl_save_prefix"
9943 if test "X$x" = "X-I$additional_includedir"; then
9948 if test -z "$haveit"; then
9949 if test -d "$additional_includedir"; then
9950 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9956 if test -n "$found_la"; then
9957 save_libdir
="$libdir"
9959 */* |
*\\*) .
"$found_la" ;;
9960 *) .
"./$found_la" ;;
9962 libdir
="$save_libdir"
9963 for dep
in $dependency_libs; do
9966 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9967 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9968 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9970 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9971 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9972 if test -n "$GCC"; then
9974 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9978 if test -z "$haveit"; then
9980 for x
in $LDFLAGS $LIBINTL; do
9982 acl_save_prefix
="$prefix"
9983 prefix
="$acl_final_prefix"
9984 acl_save_exec_prefix
="$exec_prefix"
9985 exec_prefix
="$acl_final_exec_prefix"
9987 exec_prefix
="$acl_save_exec_prefix"
9988 prefix
="$acl_save_prefix"
9990 if test "X$x" = "X-L$additional_libdir"; then
9995 if test -z "$haveit"; then
9996 if test -d "$additional_libdir"; then
9997 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10001 for x
in $LDFLAGS $LTLIBINTL; do
10003 acl_save_prefix
="$prefix"
10004 prefix
="$acl_final_prefix"
10005 acl_save_exec_prefix
="$exec_prefix"
10006 exec_prefix
="$acl_final_exec_prefix"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10025 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10026 if test "$enable_rpath" != no
; then
10028 for x
in $rpathdirs; do
10029 if test "X$x" = "X$dir"; then
10034 if test -z "$haveit"; then
10035 rpathdirs
="$rpathdirs $dir"
10038 for x
in $ltrpathdirs; do
10039 if test "X$x" = "X$dir"; then
10044 if test -z "$haveit"; then
10045 ltrpathdirs
="$ltrpathdirs $dir"
10050 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10053 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10056 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
10057 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10063 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
10064 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10070 if test "X$rpathdirs" != "X"; then
10071 if test -n "$acl_hardcode_libdir_separator"; then
10073 for found_dir
in $rpathdirs; do
10074 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10076 acl_save_libdir
="$libdir"
10078 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10079 libdir
="$acl_save_libdir"
10080 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10082 for found_dir
in $rpathdirs; do
10083 acl_save_libdir
="$libdir"
10084 libdir
="$found_dir"
10085 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10086 libdir
="$acl_save_libdir"
10087 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10091 if test "X$ltrpathdirs" != "X"; then
10092 for found_dir
in $ltrpathdirs; do
10093 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10103 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10104 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
10105 $as_echo_n "(cached) " >&6
10107 gt_save_CPPFLAGS
="$CPPFLAGS"
10108 CPPFLAGS
="$CPPFLAGS $INCINTL"
10109 gt_save_LIBS
="$LIBS"
10110 LIBS
="$LIBS $LIBINTL"
10111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 #include <libintl.h>
10115 $gt_revision_test_code
10116 extern int _nl_msg_cat_cntr;
10121 const char *_nl_expand_alias (const char *);
10127 bindtextdomain ("", "");
10128 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10134 if ac_fn_c_try_link
"$LINENO"; then :
10135 eval "$gt_func_gnugettext_libintl=yes"
10137 eval "$gt_func_gnugettext_libintl=no"
10139 rm -f core conftest.err conftest.
$ac_objext \
10140 conftest
$ac_exeext conftest.
$ac_ext
10141 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10142 LIBS
="$LIBS $LIBICONV"
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 #include <libintl.h>
10147 $gt_revision_test_code
10148 extern int _nl_msg_cat_cntr;
10153 const char *_nl_expand_alias (const char *);
10159 bindtextdomain ("", "");
10160 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10166 if ac_fn_c_try_link
"$LINENO"; then :
10167 LIBINTL
="$LIBINTL $LIBICONV"
10168 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
10169 eval "$gt_func_gnugettext_libintl=yes"
10172 rm -f core conftest.err conftest.
$ac_objext \
10173 conftest
$ac_exeext conftest.
$ac_ext
10175 CPPFLAGS
="$gt_save_CPPFLAGS"
10176 LIBS
="$gt_save_LIBS"
10178 eval ac_res
=\$
$gt_func_gnugettext_libintl
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10180 $as_echo "$ac_res" >&6; }
10183 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10184 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10185 && test "$PACKAGE" != gettext-runtime \
10186 && test "$PACKAGE" != gettext-tools
; }; then
10187 gt_use_preinstalled_gnugettext
=yes
10196 if test -n "$INTL_MACOSX_LIBS"; then
10197 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10198 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10199 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
10200 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
10204 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10205 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10207 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10215 $as_echo_n "checking whether to use NLS... " >&6; }
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10217 $as_echo "$USE_NLS" >&6; }
10218 if test "$USE_NLS" = "yes"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10220 $as_echo_n "checking where the gettext function comes from... " >&6; }
10221 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10222 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10223 gt_source
="external libintl"
10228 gt_source
="included intl directory"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10231 $as_echo "$gt_source" >&6; }
10234 if test "$USE_NLS" = "yes"; then
10236 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10237 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10239 $as_echo_n "checking how to link with libintl... " >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10241 $as_echo "$LIBINTL" >&6; }
10243 for element
in $INCINTL; do
10245 for x
in $CPPFLAGS; do
10247 acl_save_prefix
="$prefix"
10248 prefix
="$acl_final_prefix"
10249 acl_save_exec_prefix
="$exec_prefix"
10250 exec_prefix
="$acl_final_exec_prefix"
10252 exec_prefix
="$acl_save_exec_prefix"
10253 prefix
="$acl_save_prefix"
10255 if test "X$x" = "X$element"; then
10260 if test -z "$haveit"; then
10261 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10268 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10271 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10280 INTLLIBS
="$LIBINTL"
10287 # Check whether --enable-largefile was given.
10288 if test "${enable_largefile+set}" = set; then :
10289 enableval
=$enable_largefile;
10292 if test "$enable_largefile" != no
; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10295 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10296 if ${ac_cv_sys_largefile_CC+:} false
; then :
10297 $as_echo_n "(cached) " >&6
10299 ac_cv_sys_largefile_CC
=no
10300 if test "$GCC" != yes; then
10303 # IRIX 6.2 and later do not support large files by default,
10304 # so use the C compiler's -n32 option if that helps.
10305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <sys/types.h>
10308 /* Check that off_t can represent 2**63 - 1 correctly.
10309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10310 since some C++ compilers masquerading as C compilers
10311 incorrectly reject 9223372036854775807. */
10312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10314 && LARGE_OFF_T % 2147483647 == 1)
10324 if ac_fn_c_try_compile
"$LINENO"; then :
10327 rm -f core conftest.err conftest.
$ac_objext
10329 if ac_fn_c_try_compile
"$LINENO"; then :
10330 ac_cv_sys_largefile_CC
=' -n32'; break
10332 rm -f core conftest.err conftest.
$ac_objext
10336 rm -f conftest.
$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10340 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10341 if test "$ac_cv_sys_largefile_CC" != no
; then
10342 CC
=$CC$ac_cv_sys_largefile_CC
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10346 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10347 if ${ac_cv_sys_file_offset_bits+:} false
; then :
10348 $as_echo_n "(cached) " >&6
10351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <sys/types.h>
10354 /* Check that off_t can represent 2**63 - 1 correctly.
10355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10356 since some C++ compilers masquerading as C compilers
10357 incorrectly reject 9223372036854775807. */
10358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10360 && LARGE_OFF_T % 2147483647 == 1)
10370 if ac_fn_c_try_compile
"$LINENO"; then :
10371 ac_cv_sys_file_offset_bits
=no
; break
10373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 #define _FILE_OFFSET_BITS 64
10377 #include <sys/types.h>
10378 /* Check that off_t can represent 2**63 - 1 correctly.
10379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10380 since some C++ compilers masquerading as C compilers
10381 incorrectly reject 9223372036854775807. */
10382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10384 && LARGE_OFF_T % 2147483647 == 1)
10394 if ac_fn_c_try_compile
"$LINENO"; then :
10395 ac_cv_sys_file_offset_bits
=64; break
10397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10398 ac_cv_sys_file_offset_bits
=unknown
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10403 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10404 case $ac_cv_sys_file_offset_bits in #(
10407 cat >>confdefs.h
<<_ACEOF
10408 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10413 if test $ac_cv_sys_file_offset_bits = unknown
; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10415 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10416 if ${ac_cv_sys_large_files+:} false
; then :
10417 $as_echo_n "(cached) " >&6
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #include <sys/types.h>
10423 /* Check that off_t can represent 2**63 - 1 correctly.
10424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10425 since some C++ compilers masquerading as C compilers
10426 incorrectly reject 9223372036854775807. */
10427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10429 && LARGE_OFF_T % 2147483647 == 1)
10439 if ac_fn_c_try_compile
"$LINENO"; then :
10440 ac_cv_sys_large_files
=no
; break
10442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 #define _LARGE_FILES 1
10446 #include <sys/types.h>
10447 /* Check that off_t can represent 2**63 - 1 correctly.
10448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10449 since some C++ compilers masquerading as C compilers
10450 incorrectly reject 9223372036854775807. */
10451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10453 && LARGE_OFF_T % 2147483647 == 1)
10463 if ac_fn_c_try_compile
"$LINENO"; then :
10464 ac_cv_sys_large_files
=1; break
10466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10467 ac_cv_sys_large_files
=unknown
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10472 $as_echo "$ac_cv_sys_large_files" >&6; }
10473 case $ac_cv_sys_large_files in #(
10476 cat >>confdefs.h
<<_ACEOF
10477 #define _LARGE_FILES $ac_cv_sys_large_files
10488 # Identify characteristics of the host architecture.
10489 unset ac_cv_c_bigendian
10491 if test x
"$target_cpu-$platform" = xsparc64-emu
; then
10492 CFLAGS
="$CFLAGS -m64"
10493 HOST_CFLAGS
="$HOST_CFLAGS -m64"
10496 CPPFLAGS
="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10497 HOST_CPPFLAGS
="$HOST_CPPFLAGS -D_FILE_OFFSET_BITS=64"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10500 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10501 if ${ac_cv_c_bigendian+:} false
; then :
10502 $as_echo_n "(cached) " >&6
10504 ac_cv_c_bigendian
=unknown
10505 # See if we're dealing with a universal compiler.
10506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 #ifndef __APPLE_CC__
10509 not a universal capable compiler
10514 if ac_fn_c_try_compile
"$LINENO"; then :
10516 # Check for potential -arch flags. It is not universal unless
10517 # there are at least two -arch flags with different values.
10520 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10521 if test -n "$ac_prev"; then
10523 i?
86 | x86_64 | ppc | ppc64
)
10524 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10527 ac_cv_c_bigendian
=universal
10533 elif test "x$ac_word" = "x-arch"; then
10538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 if test $ac_cv_c_bigendian = unknown
; then
10540 # See if sys/param.h defines the BYTE_ORDER macro.
10541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543 #include <sys/types.h>
10544 #include <sys/param.h>
10549 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10550 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10552 bogus endian macros
10559 if ac_fn_c_try_compile
"$LINENO"; then :
10560 # It does; now see whether it defined to BIG_ENDIAN or not.
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <sys/types.h>
10564 #include <sys/param.h>
10569 #if BYTE_ORDER != BIG_ENDIAN
10577 if ac_fn_c_try_compile
"$LINENO"; then :
10578 ac_cv_c_bigendian
=yes
10580 ac_cv_c_bigendian
=no
10582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10586 if test $ac_cv_c_bigendian = unknown
; then
10587 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <limits.h>
10595 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10596 bogus endian macros
10603 if ac_fn_c_try_compile
"$LINENO"; then :
10604 # It does; now see whether it defined to _BIG_ENDIAN or not.
10605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 #include <limits.h>
10612 #ifndef _BIG_ENDIAN
10620 if ac_fn_c_try_compile
"$LINENO"; then :
10621 ac_cv_c_bigendian
=yes
10623 ac_cv_c_bigendian
=no
10625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10629 if test $ac_cv_c_bigendian = unknown
; then
10630 # Compile a test program.
10631 if test "$cross_compiling" = yes; then :
10632 # Try to guess by grepping values from an object file.
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 short int ascii_mm[] =
10636 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10637 short int ascii_ii[] =
10638 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10639 int use_ascii (int i) {
10640 return ascii_mm[i] + ascii_ii[i];
10642 short int ebcdic_ii[] =
10643 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10644 short int ebcdic_mm[] =
10645 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10646 int use_ebcdic (int i) {
10647 return ebcdic_mm[i] + ebcdic_ii[i];
10654 return use_ascii (foo) == use_ebcdic (foo);
10659 if ac_fn_c_try_compile
"$LINENO"; then :
10660 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10661 ac_cv_c_bigendian
=yes
10663 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10664 if test "$ac_cv_c_bigendian" = unknown
; then
10665 ac_cv_c_bigendian
=no
10667 # finding both strings is unlikely to happen, but who knows?
10668 ac_cv_c_bigendian
=unknown
10672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 $ac_includes_default
10681 /* Are we little or big endian? From Harbison&Steele. */
10685 char c[sizeof (long int)];
10688 return u.c[sizeof (long int) - 1] == 1;
10694 if ac_fn_c_try_run
"$LINENO"; then :
10695 ac_cv_c_bigendian
=no
10697 ac_cv_c_bigendian
=yes
10699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10706 $as_echo "$ac_cv_c_bigendian" >&6; }
10707 case $ac_cv_c_bigendian in #(
10709 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10715 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10719 as_fn_error $?
"unknown endianness
10720 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10723 # The cast to long int works around a bug in the HP C Compiler
10724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10726 # This bug is HP SR number 8606223364.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10728 $as_echo_n "checking size of void *... " >&6; }
10729 if ${ac_cv_sizeof_void_p+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
10735 if test "$ac_cv_type_void_p" = yes; then
10736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10738 as_fn_error
77 "cannot compute sizeof (void *)
10739 See \`config.log' for more details" "$LINENO" 5; }
10741 ac_cv_sizeof_void_p
=0
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10747 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10751 cat >>confdefs.h
<<_ACEOF
10752 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10756 # The cast to long int works around a bug in the HP C Compiler
10757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10759 # This bug is HP SR number 8606223364.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10761 $as_echo_n "checking size of long... " >&6; }
10762 if ${ac_cv_sizeof_long+:} false
; then :
10763 $as_echo_n "(cached) " >&6
10765 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10768 if test "$ac_cv_type_long" = yes; then
10769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10771 as_fn_error
77 "cannot compute sizeof (long)
10772 See \`config.log' for more details" "$LINENO" 5; }
10774 ac_cv_sizeof_long
=0
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10780 $as_echo "$ac_cv_sizeof_long" >&6; }
10784 cat >>confdefs.h
<<_ACEOF
10785 #define SIZEOF_LONG $ac_cv_sizeof_long
10791 cygwin | windows
* | mingw32
*)
10792 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10793 CPPFLAGS
="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10794 # The cast to long int works around a bug in the HP C Compiler
10795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10797 # This bug is HP SR number 8606223364.
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
10799 $as_echo_n "checking size of TCHAR... " >&6; }
10800 if ${ac_cv_sizeof_TCHAR+:} false
; then :
10801 $as_echo_n "(cached) " >&6
10803 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR" "#include <windows.h>
10807 if test "$ac_cv_type_TCHAR" = yes; then
10808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10810 as_fn_error
77 "cannot compute sizeof (TCHAR)
10811 See \`config.log' for more details" "$LINENO" 5; }
10813 ac_cv_sizeof_TCHAR
=0
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
10819 $as_echo "$ac_cv_sizeof_TCHAR" >&6; }
10823 cat >>confdefs.h
<<_ACEOF
10824 #define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
10832 cygwin | windows
* | mingw32
* | aros
*)
10835 # The cast to long int works around a bug in the HP C Compiler
10836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10838 # This bug is HP SR number 8606223364.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10840 $as_echo_n "checking size of off_t... " >&6; }
10841 if ${ac_cv_sizeof_off_t+:} false
; then :
10842 $as_echo_n "(cached) " >&6
10844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10847 if test "$ac_cv_type_off_t" = yes; then
10848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10850 as_fn_error
77 "cannot compute sizeof (off_t)
10851 See \`config.log' for more details" "$LINENO" 5; }
10853 ac_cv_sizeof_off_t
=0
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10859 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10863 cat >>confdefs.h
<<_ACEOF
10864 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10868 test x
"$ac_cv_sizeof_off_t" = x8 || as_fn_error $?
"Large file support is required" "$LINENO" 5;;
10871 if test x
$USE_NLS = xno
; then
10872 HOST_CFLAGS
="$HOST_CFLAGS -fno-builtin-gettext"
10875 if test "x$cross_compiling" = xyes
; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
10877 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
10879 # Extract the first word of "help2man", so it can be a program name with args.
10880 set dummy help2man
; ac_word
=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_HELP2MAN+:} false
; then :
10884 $as_echo_n "(cached) " >&6
10888 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
10891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10892 for as_dir
in $PATH
10895 test -z "$as_dir" && as_dir
=.
10896 for ac_exec_ext
in '' $ac_executable_extensions; do
10897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 HELP2MAN
=$ac_cv_path_HELP2MAN
10910 if test -n "$HELP2MAN"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
10912 $as_echo "$HELP2MAN" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10921 # Check for functions and headers.
10922 for ac_func
in posix_memalign memalign getextmntent
10924 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10926 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10927 cat >>confdefs.h
<<_ACEOF
10928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10934 for ac_header
in sys
/param.h sys
/mount.h sys
/mnttab.h sys
/mkdev.h limits.h
10936 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10938 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10939 cat >>confdefs.h
<<_ACEOF
10940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10948 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
10949 #include <sys/param.h>
10950 #include <sys/mount.h>
10952 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
; then :
10954 cat >>confdefs.h
<<_ACEOF
10955 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
10962 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
10963 #include <sys/param.h>
10964 #include <sys/mount.h>
10966 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes
; then :
10968 cat >>confdefs.h
<<_ACEOF
10969 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
10976 # For opendisk() and getrawpartition() on NetBSD.
10977 # Used in util/deviceiter.c and in util/hostdisk.c.
10978 ac_fn_c_check_header_mongrel
"$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
10979 if test "x$ac_cv_header_util_h" = xyes
; then :
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
10982 $as_echo_n "checking for opendisk in -lutil... " >&6; }
10983 if ${ac_cv_lib_util_opendisk+:} false
; then :
10984 $as_echo_n "(cached) " >&6
10986 ac_check_lib_save_LIBS
=$LIBS
10987 LIBS
="-lutil $LIBS"
10988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
11001 return opendisk ();
11006 if ac_fn_c_try_link
"$LINENO"; then :
11007 ac_cv_lib_util_opendisk
=yes
11009 ac_cv_lib_util_opendisk
=no
11011 rm -f core conftest.err conftest.
$ac_objext \
11012 conftest
$ac_exeext conftest.
$ac_ext
11013 LIBS
=$ac_check_lib_save_LIBS
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
11016 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
11017 if test "x$ac_cv_lib_util_opendisk" = xyes
; then :
11021 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
11027 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
11028 if ${ac_cv_lib_util_getrawpartition+:} false
; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS
=$LIBS
11032 LIBS
="-lutil $LIBS"
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11042 char getrawpartition ();
11046 return getrawpartition ();
11051 if ac_fn_c_try_link
"$LINENO"; then :
11052 ac_cv_lib_util_getrawpartition
=yes
11054 ac_cv_lib_util_getrawpartition
=no
11056 rm -f core conftest.err conftest.
$ac_objext \
11057 conftest
$ac_exeext conftest.
$ac_ext
11058 LIBS
=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
11061 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
11062 if test "x$ac_cv_lib_util_getrawpartition" = xyes
; then :
11066 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
11078 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
11079 if ${grub_cv_host_cc_wtrampolines+:} false
; then :
11080 $as_echo_n "(cached) " >&6
11083 SAVED_CFLAGS
="$CFLAGS"
11084 CFLAGS
="$HOST_CFLAGS -Wtrampolines -Werror"
11085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #include <stdarg.h>
11088 int va_arg_func (int fixed, va_list args);
11097 if ac_fn_c_try_compile
"$LINENO"; then :
11098 grub_cv_host_cc_wtrampolines
=yes
11100 grub_cv_host_cc_wtrampolines
=no
11102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11103 CFLAGS
="$SAVED_CFLAGS"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
11107 $as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
11109 if test x
"$grub_host_cv_cc_wtrampolines" = xyes
; then
11110 HOST_CFLAGS
="$HOST_CFLAGS -Wtrampolines"
11114 # Check for host and build compilers.
11117 for ac_prog
in gcc egcs cc
11119 # Extract the first word of "$ac_prog", so it can be a program name with args.
11120 set dummy
$ac_prog; ac_word
=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_prog_BUILD_CC+:} false
; then :
11124 $as_echo_n "(cached) " >&6
11126 if test -n "$BUILD_CC"; then
11127 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
11129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11130 for as_dir
in $PATH
11133 test -z "$as_dir" && as_dir
=.
11134 for ac_exec_ext
in '' $ac_executable_extensions; do
11135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11136 ac_cv_prog_BUILD_CC
="$ac_prog"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 BUILD_CC
=$ac_cv_prog_BUILD_CC
11147 if test -n "$BUILD_CC"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11149 $as_echo "$BUILD_CC" >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11156 test -n "$BUILD_CC" && break
11159 test -z "$BUILD_CC" && as_fn_error $?
"none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
11160 BUILD_CPP
="$BUILD_CC -E"
11162 case "$build_os" in
11163 haiku
*) BUILD_LIBM
= ;;
11164 *) BUILD_LIBM
=-lm ;;
11168 case "$build_os" in
11169 cygwin
*|mingw32
*|mingw64
*) BUILD_EXEEXT
=.exe
;;
11170 *) BUILD_EXEEXT
= ;;
11180 LIBC_FATAL_STDERR_
=1
11181 export LIBC_FATAL_STDERR_
11183 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11184 if test "x$ac_cv_type_size_t" = xyes
; then :
11188 cat >>confdefs.h
<<_ACEOF
11189 #define size_t unsigned int
11194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11195 # for constant arguments. Useless!
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11197 $as_echo_n "checking for working alloca.h... " >&6; }
11198 if ${ac_cv_working_alloca_h+:} false
; then :
11199 $as_echo_n "(cached) " >&6
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #include <alloca.h>
11207 char *p = (char *) alloca (2 * sizeof (int));
11213 if ac_fn_c_try_link
"$LINENO"; then :
11214 ac_cv_working_alloca_h
=yes
11216 ac_cv_working_alloca_h
=no
11218 rm -f core conftest.err conftest.
$ac_objext \
11219 conftest
$ac_exeext conftest.
$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11222 $as_echo "$ac_cv_working_alloca_h" >&6; }
11223 if test $ac_cv_working_alloca_h = yes; then
11225 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11230 $as_echo_n "checking for alloca... " >&6; }
11231 if ${ac_cv_func_alloca_works+:} false
; then :
11232 $as_echo_n "(cached) " >&6
11234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 # define alloca __builtin_alloca
11240 # include <malloc.h>
11241 # define alloca _alloca
11243 # ifdef HAVE_ALLOCA_H
11244 # include <alloca.h>
11249 # ifndef alloca /* predefined by HP cc +Olibcalls */
11250 void *alloca (size_t);
11260 char *p = (char *) alloca (1);
11266 if ac_fn_c_try_link
"$LINENO"; then :
11267 ac_cv_func_alloca_works
=yes
11269 ac_cv_func_alloca_works
=no
11271 rm -f core conftest.err conftest.
$ac_objext \
11272 conftest
$ac_exeext conftest.
$ac_ext
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11275 $as_echo "$ac_cv_func_alloca_works" >&6; }
11277 if test $ac_cv_func_alloca_works = yes; then
11279 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11283 # that cause trouble. Some versions do not even contain alloca or
11284 # contain a buggy version. If you still want to use their alloca,
11285 # use ar to extract alloca.o from them instead of compiling alloca.c.
11291 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11293 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11297 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11298 if ${ac_cv_os_cray+:} false
; then :
11299 $as_echo_n "(cached) " >&6
11301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #if defined CRAY && ! defined CRAY2
11310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11311 $EGREP "webecray" >/dev
/null
2>&1; then :
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11320 $as_echo "$ac_cv_os_cray" >&6; }
11321 if test $ac_cv_os_cray = yes; then
11322 for ac_func
in _getb67 GETB67 getb67
; do
11323 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11325 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11327 cat >>confdefs.h
<<_ACEOF
11328 #define CRAY_STACKSEG_END $ac_func
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11338 $as_echo_n "checking stack direction for C alloca... " >&6; }
11339 if ${ac_cv_c_stack_direction+:} false
; then :
11340 $as_echo_n "(cached) " >&6
11342 if test "$cross_compiling" = yes; then :
11343 ac_cv_c_stack_direction
=0
11345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11347 $ac_includes_default
11349 find_stack_direction (int *addr, int depth)
11351 int dir, dummy = 0;
11354 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11355 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11356 return dir + dummy;
11360 main (int argc, char **argv)
11362 return find_stack_direction (0, argc + !argv + 20) < 0;
11365 if ac_fn_c_try_run
"$LINENO"; then :
11366 ac_cv_c_stack_direction
=1
11368 ac_cv_c_stack_direction
=-1
11370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11376 $as_echo "$ac_cv_c_stack_direction" >&6; }
11377 cat >>confdefs.h
<<_ACEOF
11378 #define STACK_DIRECTION $ac_cv_c_stack_direction
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11385 $as_echo_n "checking for inline... " >&6; }
11386 if ${ac_cv_c_inline+:} false
; then :
11387 $as_echo_n "(cached) " >&6
11390 for ac_kw
in inline __inline__ __inline
; do
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393 #ifndef __cplusplus
11395 static $ac_kw foo_t static_foo () {return 0; }
11396 $ac_kw foo_t foo () {return 0; }
11400 if ac_fn_c_try_compile
"$LINENO"; then :
11401 ac_cv_c_inline
=$ac_kw
11403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 test "$ac_cv_c_inline" != no
&& break
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11409 $as_echo "$ac_cv_c_inline" >&6; }
11411 case $ac_cv_c_inline in
11414 case $ac_cv_c_inline in
11416 *) ac_val
=$ac_cv_c_inline;;
11418 cat >>confdefs.h
<<_ACEOF
11419 #ifndef __cplusplus
11420 #define inline $ac_val
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11427 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11428 if ${ac_cv_c_restrict+:} false
; then :
11429 $as_echo_n "(cached) " >&6
11431 ac_cv_c_restrict
=no
11432 # The order here caters to the fact that C++ does not require restrict.
11433 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
11434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 typedef int * int_ptr;
11437 int foo (int_ptr $ac_kw ip) {
11444 int * $ac_kw t = s;
11451 if ac_fn_c_try_compile
"$LINENO"; then :
11452 ac_cv_c_restrict
=$ac_kw
11454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11455 test "$ac_cv_c_restrict" != no
&& break
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11460 $as_echo "$ac_cv_c_restrict" >&6; }
11462 case $ac_cv_c_restrict in
11464 no
) $as_echo "#define restrict /**/" >>confdefs.h
11466 *) cat >>confdefs.h
<<_ACEOF
11467 #define restrict $ac_cv_c_restrict
11472 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
11473 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
11479 cat >>confdefs.h
<<_ACEOF
11480 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
11483 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
11484 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
11490 cat >>confdefs.h
<<_ACEOF
11491 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
11494 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
11495 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
11501 cat >>confdefs.h
<<_ACEOF
11502 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
11505 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
11506 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
11512 cat >>confdefs.h
<<_ACEOF
11513 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
11516 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
11517 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
11523 cat >>confdefs.h
<<_ACEOF
11524 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
11527 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
11528 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
11534 cat >>confdefs.h
<<_ACEOF
11535 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
11538 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
11539 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
11545 cat >>confdefs.h
<<_ACEOF
11546 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
11549 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
11550 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
11556 cat >>confdefs.h
<<_ACEOF
11557 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
11560 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
11561 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
11567 cat >>confdefs.h
<<_ACEOF
11568 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
11571 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11572 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
11578 cat >>confdefs.h
<<_ACEOF
11579 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11582 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
11583 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
11593 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
11594 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
11600 cat >>confdefs.h
<<_ACEOF
11601 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
11604 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
11605 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
11611 cat >>confdefs.h
<<_ACEOF
11612 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
11618 for ac_func
in $ac_func_list
11620 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11621 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11622 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11623 cat >>confdefs.h
<<_ACEOF
11624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11637 for ac_header
in $ac_header_list
11639 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11642 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11643 cat >>confdefs.h
<<_ACEOF
11644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656 XGETTEXT_EXTRA_OPTIONS
=
11664 GNULIB_MBSRTOWCS
=0;
11665 GNULIB_MBSNRTOWCS
=0;
11667 GNULIB_WCSRTOMBS
=0;
11668 GNULIB_WCSNRTOMBS
=0;
11685 GNULIB_WCSCASECMP
=0;
11686 GNULIB_WCSNCASECMP
=0;
11723 HAVE_WCSNCASECMP
=1;
11736 HAVE_DECL_WCWIDTH
=1;
11737 REPLACE_MBSTATE_T
=0;
11743 REPLACE_MBSRTOWCS
=0;
11744 REPLACE_MBSNRTOWCS
=0;
11746 REPLACE_WCSRTOMBS
=0;
11747 REPLACE_WCSNRTOMBS
=0;
11749 REPLACE_WCSWIDTH
=0;
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11753 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11754 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
11755 $as_echo_n "(cached) " >&6
11757 gl_cv_header_wchar_h_correct_inline
=yes
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11761 #define wcstod renamed_wcstod
11762 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11764 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11765 included before <wchar.h>. */
11766 #include <stddef.h>
11770 extern int zero (void);
11771 int main () { return zero(); }
11774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11775 (eval $ac_compile) 2>&5
11777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778 test $ac_status = 0; }; then
11779 mv conftest.
$ac_objext conftest1.
$ac_objext
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #define wcstod renamed_wcstod
11784 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11786 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11787 included before <wchar.h>. */
11788 #include <stddef.h>
11792 int zero (void) { return 0; }
11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11796 (eval $ac_compile) 2>&5
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; }; then
11800 mv conftest.
$ac_objext conftest2.
$ac_objext
11801 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
11804 gl_cv_header_wchar_h_correct_inline
=no
11808 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11812 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11813 if test $gl_cv_header_wchar_h_correct_inline = no
; then
11814 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11815 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11816 C99 mode. You have four options:
11817 - Add the flag -fgnu89-inline to CC and reconfigure, or
11818 - Fix your include files, using parts of
11819 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11820 - Use a gcc version older than 4.3, or
11821 - Don't use the flags -std=c99 or -std=gnu99.
11822 Configuration aborted." "$LINENO" 5
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11829 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11830 if ${am_cv_langinfo_codeset+:} false
; then :
11831 $as_echo_n "(cached) " >&6
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <langinfo.h>
11839 char* cs = nl_langinfo(CODESET); return !cs;
11844 if ac_fn_c_try_link
"$LINENO"; then :
11845 am_cv_langinfo_codeset
=yes
11847 am_cv_langinfo_codeset
=no
11849 rm -f core conftest.err conftest.
$ac_objext \
11850 conftest
$ac_exeext conftest.
$ac_ext
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11854 $as_echo "$am_cv_langinfo_codeset" >&6; }
11855 if test $am_cv_langinfo_codeset = yes; then
11857 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11865 $as_echo_n "checking for a traditional french locale... " >&6; }
11866 if ${gt_cv_locale_fr+:} false
; then :
11867 $as_echo_n "(cached) " >&6
11870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11873 #include <locale.h>
11875 #if HAVE_LANGINFO_CODESET
11876 # include <langinfo.h>
11878 #include <stdlib.h>
11879 #include <string.h>
11883 /* Check whether the given locale name is recognized by the system. */
11884 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11885 /* On native Windows, setlocale(category, "") looks at the system settings,
11886 not at the environment variables. Also, when an encoding suffix such
11887 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11888 category of the locale to "C". */
11889 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11890 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11893 if (setlocale (LC_ALL, "") == NULL) return 1;
11895 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11896 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11897 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11898 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11899 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11900 some unit tests fail.
11901 On MirBSD 10, when an unsupported locale is specified, setlocale()
11902 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11903 #if HAVE_LANGINFO_CODESET
11905 const char *cs = nl_langinfo (CODESET);
11906 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11907 || strcmp (cs, "UTF-8") == 0)
11912 /* On Cygwin, avoid locale names without encoding suffix, because the
11913 locale_charset() function relies on the encoding suffix. Note that
11914 LC_ALL is set on the command line. */
11915 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11917 /* Check whether in the abbreviation of the second month, the second
11918 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11919 one byte long. This excludes the UTF-8 encoding. */
11920 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11921 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11922 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11923 /* Check whether the decimal separator is a comma.
11924 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11925 are nl_langinfo(RADIXCHAR) are both ".". */
11926 if (localeconv () ->decimal_point[0] != ',') return 1;
11932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11933 (eval $ac_link) 2>&5
11935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11938 # Handle native Windows specially, because there setlocale() interprets
11939 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11940 # "fr" or "fra" as "French" or "French_France.1252",
11941 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11942 # "ja" as "Japanese" or "Japanese_Japan.932",
11945 # Test for the native Windows locale name.
11946 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11947 gt_cv_locale_fr
=French_France
.1252
11950 gt_cv_locale_fr
=none
11954 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11955 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11956 # configure script would override the LC_ALL setting. Likewise for
11957 # LC_CTYPE, which is also set at the beginning of the configure script.
11958 # Test for the usual locale name.
11959 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11960 gt_cv_locale_fr
=fr_FR
11962 # Test for the locale name with explicit encoding suffix.
11963 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11964 gt_cv_locale_fr
=fr_FR.ISO-8859-1
11966 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11967 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11968 gt_cv_locale_fr
=fr_FR.ISO8859-1
11970 # Test for the HP-UX locale name.
11971 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11972 gt_cv_locale_fr
=fr_FR.iso88591
11974 # Test for the Solaris 7 locale name.
11975 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11979 gt_cv_locale_fr
=none
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11992 $as_echo "$gt_cv_locale_fr" >&6; }
11993 LOCALE_FR
=$gt_cv_locale_fr
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11999 $as_echo_n "checking whether // is distinct from /... " >&6; }
12000 if ${gl_cv_double_slash_root+:} false
; then :
12001 $as_echo_n "(cached) " >&6
12003 if test x
"$cross_compiling" = xyes
; then
12004 # When cross-compiling, there is no way to tell whether // is special
12005 # short of a list of hosts. However, the only known hosts to date
12006 # that have a distinct // are Apollo DomainOS (too old to port to),
12007 # Cygwin, and z/OS. If anyone knows of another system for which // has
12008 # special semantics and is distinct from /, please report it to
12009 # <bug-gnulib@gnu.org>.
12011 *-cygwin | i370-ibm-openedition
)
12012 gl_cv_double_slash_root
=yes ;;
12014 # Be optimistic and assume that / and // are the same when we
12016 gl_cv_double_slash_root
='unknown, assuming no' ;;
12019 set x
`ls -di / // 2>/dev/null`
12020 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
12021 gl_cv_double_slash_root
=no
12023 gl_cv_double_slash_root
=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12028 $as_echo "$gl_cv_double_slash_root" >&6; }
12029 if test "$gl_cv_double_slash_root" = yes; then
12031 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
12038 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12039 if ${gl_cv_have_include_next+:} false
; then :
12040 $as_echo_n "(cached) " >&6
12042 rm -rf conftestd1a conftestd1b conftestd2
12043 mkdir conftestd1a conftestd1b conftestd2
12044 cat <<EOF > conftestd1a/conftest.h
12045 #define DEFINED_IN_CONFTESTD1
12046 #include_next <conftest.h>
12047 #ifdef DEFINED_IN_CONFTESTD2
12050 #error "include_next doesn't work"
12053 cat <<EOF > conftestd1b/conftest.h
12054 #define DEFINED_IN_CONFTESTD1
12056 #include_next <conftest.h>
12057 #ifdef DEFINED_IN_CONFTESTD2
12060 #error "include_next doesn't work"
12063 cat <<EOF > conftestd2/conftest.h
12064 #ifndef DEFINED_IN_CONFTESTD1
12065 #error "include_next test doesn't work"
12067 #define DEFINED_IN_CONFTESTD2
12069 gl_save_CPPFLAGS
="$CPPFLAGS"
12070 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 #include <conftest.h>
12075 if ac_fn_c_try_compile
"$LINENO"; then :
12076 gl_cv_have_include_next
=yes
12078 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 #include <conftest.h>
12083 if ac_fn_c_try_compile
"$LINENO"; then :
12084 gl_cv_have_include_next
=buggy
12086 gl_cv_have_include_next
=no
12088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12092 CPPFLAGS
="$gl_save_CPPFLAGS"
12093 rm -rf conftestd1a conftestd1b conftestd2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
12097 $as_echo "$gl_cv_have_include_next" >&6; }
12098 PRAGMA_SYSTEM_HEADER
=
12099 if test $gl_cv_have_include_next = yes; then
12100 INCLUDE_NEXT
=include_next
12101 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
12102 if test -n "$GCC"; then
12103 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
12106 if test $gl_cv_have_include_next = buggy
; then
12107 INCLUDE_NEXT
=include
12108 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
12110 INCLUDE_NEXT
=include
12111 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
12118 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12119 if ${gl_cv_pragma_columns+:} false
; then :
12120 $as_echo_n "(cached) " >&6
12122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12131 $EGREP "choke me" >/dev
/null
2>&1; then :
12132 gl_cv_pragma_columns
=yes
12134 gl_cv_pragma_columns
=no
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
12141 $as_echo "$gl_cv_pragma_columns" >&6; }
12142 if test $gl_cv_pragma_columns = yes; then
12143 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
12152 $as_echo_n "checking for complete errno.h... " >&6; }
12153 if ${gl_cv_header_errno_h_complete+:} false
; then :
12154 $as_echo_n "(cached) " >&6
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12161 #if !defined ETXTBSY
12164 #if !defined ENOMSG
12170 #if !defined ENOLINK
12173 #if !defined EPROTO
12176 #if !defined EMULTIHOP
12179 #if !defined EBADMSG
12182 #if !defined EOVERFLOW
12185 #if !defined ENOTSUP
12188 #if !defined ENETRESET
12191 #if !defined ECONNABORTED
12194 #if !defined ESTALE
12197 #if !defined EDQUOT
12200 #if !defined ECANCELED
12203 #if !defined EOWNERDEAD
12206 #if !defined ENOTRECOVERABLE
12209 #if !defined EILSEQ
12214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12215 $EGREP "booboo" >/dev
/null
2>&1; then :
12216 gl_cv_header_errno_h_complete
=no
12218 gl_cv_header_errno_h_complete
=yes
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
12225 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12226 if test $gl_cv_header_errno_h_complete = yes; then
12237 if test $gl_cv_have_include_next = yes; then
12238 gl_cv_next_errno_h
='<'errno.h
'>'
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
12241 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12242 if ${gl_cv_next_errno_h+:} false
; then :
12243 $as_echo_n "(cached) " >&6
12246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12252 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12253 *) gl_absname_cpp
="$ac_cpp" ;;
12258 gl_dirsep_regex
='[/\\]'
12261 gl_dirsep_regex
='\/'
12264 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12266 gl_header_literal_regex
=`echo 'errno.h' \
12267 | sed -e "$gl_make_literal_regex_sed"`
12268 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12269 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12274 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12275 sed -n "$gl_absolute_header_sed"`'"'
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
12280 $as_echo "$gl_cv_next_errno_h" >&6; }
12282 NEXT_ERRNO_H
=$gl_cv_next_errno_h
12284 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12286 gl_next_as_first_directive
='<'errno.h
'>'
12288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12289 gl_next_as_first_directive
=$gl_cv_next_errno_h
12291 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
12299 if test -n "$ERRNO_H"; then
12300 GL_GENERATE_ERRNO_H_TRUE
=
12301 GL_GENERATE_ERRNO_H_FALSE
='#'
12303 GL_GENERATE_ERRNO_H_TRUE
='#'
12304 GL_GENERATE_ERRNO_H_FALSE
=
12308 if test -n "$ERRNO_H"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
12310 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12311 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
12312 $as_echo_n "(cached) " >&6
12315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325 $EGREP "yes" >/dev
/null
2>&1; then :
12326 gl_cv_header_errno_h_EMULTIHOP
=yes
12328 gl_cv_header_errno_h_EMULTIHOP
=no
12332 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
12333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12336 #define _XOPEN_SOURCE_EXTENDED 1
12343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12344 $EGREP "yes" >/dev
/null
2>&1; then :
12345 gl_cv_header_errno_h_EMULTIHOP
=hidden
12349 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
12350 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
12351 #define _XOPEN_SOURCE_EXTENDED 1
12353 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12355 #include <stdlib.h>
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12365 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12366 case $gl_cv_header_errno_h_EMULTIHOP in
12368 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
12371 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
12379 if test -n "$ERRNO_H"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
12381 $as_echo_n "checking for ENOLINK value... " >&6; }
12382 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
12383 $as_echo_n "(cached) " >&6
12386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12396 $EGREP "yes" >/dev
/null
2>&1; then :
12397 gl_cv_header_errno_h_ENOLINK
=yes
12399 gl_cv_header_errno_h_ENOLINK
=no
12403 if test $gl_cv_header_errno_h_ENOLINK = no
; then
12404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12407 #define _XOPEN_SOURCE_EXTENDED 1
12414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12415 $EGREP "yes" >/dev
/null
2>&1; then :
12416 gl_cv_header_errno_h_ENOLINK
=hidden
12420 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
12421 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
12422 #define _XOPEN_SOURCE_EXTENDED 1
12424 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12426 #include <stdlib.h>
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
12436 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
12437 case $gl_cv_header_errno_h_ENOLINK in
12439 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
12442 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
12450 if test -n "$ERRNO_H"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
12452 $as_echo_n "checking for EOVERFLOW value... " >&6; }
12453 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
12454 $as_echo_n "(cached) " >&6
12457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12467 $EGREP "yes" >/dev
/null
2>&1; then :
12468 gl_cv_header_errno_h_EOVERFLOW
=yes
12470 gl_cv_header_errno_h_EOVERFLOW
=no
12474 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
12475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 #define _XOPEN_SOURCE_EXTENDED 1
12485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12486 $EGREP "yes" >/dev
/null
2>&1; then :
12487 gl_cv_header_errno_h_EOVERFLOW
=hidden
12491 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
12492 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
12493 #define _XOPEN_SOURCE_EXTENDED 1
12495 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12497 #include <stdlib.h>
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12507 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12508 case $gl_cv_header_errno_h_EOVERFLOW in
12510 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
12513 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
12521 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12522 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
12528 cat >>confdefs.h
<<_ACEOF
12529 #define HAVE_DECL_STRERROR_R $ac_have_decl
12532 for ac_func
in strerror_r
12534 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12535 if test "x$ac_cv_func_strerror_r" = xyes
; then :
12536 cat >>confdefs.h
<<_ACEOF
12537 #define HAVE_STRERROR_R 1
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12544 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12545 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
12546 $as_echo_n "(cached) " >&6
12549 ac_cv_func_strerror_r_char_p
=no
12550 if test $ac_cv_have_decl_strerror_r = yes; then
12551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 $ac_includes_default
12559 char x = *strerror_r (0, buf, sizeof buf);
12560 char *p = strerror_r (0, buf, sizeof buf);
12567 if ac_fn_c_try_compile
"$LINENO"; then :
12568 ac_cv_func_strerror_r_char_p
=yes
12570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12572 # strerror_r is not declared. Choose between
12573 # systems that have relatively inaccessible declarations for the
12574 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12575 # former has a strerror_r that returns char*, while the latter
12576 # has a strerror_r that returns `int'.
12577 # This test should segfault on the DEC system.
12578 if test "$cross_compiling" = yes; then :
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 $ac_includes_default
12584 extern char *strerror_r ();
12589 char x = *strerror_r (0, buf, sizeof buf);
12590 return ! isalpha (x);
12595 if ac_fn_c_try_run
"$LINENO"; then :
12596 ac_cv_func_strerror_r_char_p
=yes
12598 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12599 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12606 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12607 if test $ac_cv_func_strerror_r_char_p = yes; then
12609 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12619 $as_echo_n "checking for mbstate_t... " >&6; }
12620 if ${ac_cv_type_mbstate_t+:} false
; then :
12621 $as_echo_n "(cached) " >&6
12623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 $ac_includes_default
12626 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12628 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12629 included before <wchar.h>. */
12630 #include <stddef.h>
12637 mbstate_t x; return sizeof x;
12642 if ac_fn_c_try_compile
"$LINENO"; then :
12643 ac_cv_type_mbstate_t
=yes
12645 ac_cv_type_mbstate_t
=no
12647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12650 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12651 if test $ac_cv_type_mbstate_t = yes; then
12653 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12657 $as_echo "#define mbstate_t int" >>confdefs.h
12686 GNULIB_FPRINTF_POSIX
=0;
12702 GNULIB_OBSTACK_PRINTF
=0;
12703 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12708 GNULIB_PRINTF_POSIX
=0;
12717 GNULIB_SPRINTF_POSIX
=0;
12718 GNULIB_STDIO_H_NONBLOCKING
=0;
12719 GNULIB_STDIO_H_SIGPIPE
=0;
12721 GNULIB_VASPRINTF
=0;
12726 GNULIB_VFPRINTF_POSIX
=0;
12728 GNULIB_VPRINTF_POSIX
=0;
12729 GNULIB_VSNPRINTF
=0;
12730 GNULIB_VSPRINTF_POSIX
=0;
12731 HAVE_DECL_FPURGE
=1;
12732 HAVE_DECL_FSEEKO
=1;
12733 HAVE_DECL_FTELLO
=1;
12734 HAVE_DECL_GETDELIM
=1;
12735 HAVE_DECL_GETLINE
=1;
12736 HAVE_DECL_OBSTACK_PRINTF
=1;
12737 HAVE_DECL_SNPRINTF
=1;
12738 HAVE_DECL_VSNPRINTF
=1;
12759 REPLACE_GETDELIM
=0;
12761 REPLACE_OBSTACK_PRINTF
=0;
12767 REPLACE_RENAMEAT
=0;
12768 REPLACE_SNPRINTF
=0;
12770 REPLACE_STDIO_READ_FUNCS
=0;
12771 REPLACE_STDIO_WRITE_FUNCS
=0;
12773 REPLACE_VASPRINTF
=0;
12774 REPLACE_VDPRINTF
=0;
12775 REPLACE_VFPRINTF
=0;
12777 REPLACE_VSNPRINTF
=0;
12778 REPLACE_VSPRINTF
=0;
12780 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
12781 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
12787 cat >>confdefs.h
<<_ACEOF
12788 #define HAVE_DECL_GETDELIM $ac_have_decl
12793 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
12794 if test "x$ac_cv_have_decl_getline" = xyes
; then :
12800 cat >>confdefs.h
<<_ACEOF
12801 #define HAVE_DECL_GETLINE $ac_have_decl
12812 GNULIB_EUIDACCESS
=0;
12813 GNULIB_FACCESSAT
=0;
12816 GNULIB_FDATASYNC
=0;
12818 GNULIB_FTRUNCATE
=0;
12820 GNULIB_GETDOMAINNAME
=0;
12821 GNULIB_GETDTABLESIZE
=0;
12822 GNULIB_GETGROUPS
=0;
12823 GNULIB_GETHOSTNAME
=0;
12825 GNULIB_GETLOGIN_R
=0;
12826 GNULIB_GETPAGESIZE
=0;
12827 GNULIB_GETUSERSHELL
=0;
12828 GNULIB_GROUP_MEMBER
=0;
12840 GNULIB_READLINKAT
=0;
12842 GNULIB_SETHOSTNAME
=0;
12845 GNULIB_SYMLINKAT
=0;
12846 GNULIB_TTYNAME_R
=0;
12847 GNULIB_UNISTD_H_NONBLOCKING
=0;
12848 GNULIB_UNISTD_H_SIGPIPE
=0;
12863 HAVE_GETDTABLESIZE
=1;
12865 HAVE_GETHOSTNAME
=1;
12867 HAVE_GETPAGESIZE
=1;
12868 HAVE_GROUP_MEMBER
=1;
12878 HAVE_SETHOSTNAME
=1;
12884 HAVE_DECL_ENVIRON
=1;
12885 HAVE_DECL_FCHDIR
=1;
12886 HAVE_DECL_FDATASYNC
=1;
12887 HAVE_DECL_GETDOMAINNAME
=1;
12888 HAVE_DECL_GETLOGIN_R
=1;
12889 HAVE_DECL_GETPAGESIZE
=1;
12890 HAVE_DECL_GETUSERSHELL
=1;
12891 HAVE_DECL_SETHOSTNAME
=1;
12892 HAVE_DECL_TTYNAME_R
=1;
12894 HAVE_SYS_PARAM_H
=0;
12899 REPLACE_FCHOWNAT
=0;
12900 REPLACE_FTRUNCATE
=0;
12902 REPLACE_GETDOMAINNAME
=0;
12903 REPLACE_GETLOGIN_R
=0;
12904 REPLACE_GETGROUPS
=0;
12905 REPLACE_GETPAGESIZE
=0;
12914 REPLACE_READLINK
=0;
12918 REPLACE_TTYNAME_R
=0;
12920 REPLACE_UNLINKAT
=0;
12923 UNISTD_H_HAVE_WINSOCK2_H
=0;
12924 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
12942 if test $gl_cv_have_include_next = yes; then
12943 gl_cv_next_getopt_h
='<'getopt.h
'>'
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12946 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
12947 if ${gl_cv_next_getopt_h+:} false
; then :
12948 $as_echo_n "(cached) " >&6
12951 if test $ac_cv_header_getopt_h = yes; then
12954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956 #include <getopt.h>
12960 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12961 *) gl_absname_cpp
="$ac_cpp" ;;
12966 gl_dirsep_regex
='[/\\]'
12969 gl_dirsep_regex
='\/'
12972 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12974 gl_header_literal_regex
=`echo 'getopt.h' \
12975 | sed -e "$gl_make_literal_regex_sed"`
12976 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12977 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12982 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12983 sed -n "$gl_absolute_header_sed"`'"'
12985 gl_cv_next_getopt_h
='<'getopt.h
'>'
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12991 $as_echo "$gl_cv_next_getopt_h" >&6; }
12993 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
12995 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12997 gl_next_as_first_directive
='<'getopt.h
'>'
12999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13000 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13002 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13007 if test $ac_cv_header_getopt_h = yes; then
13016 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13017 for ac_header
in getopt.h
13019 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13020 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13021 cat >>confdefs.h
<<_ACEOF
13022 #define HAVE_GETOPT_H 1
13026 gl_replace_getopt
=yes
13033 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13034 for ac_func
in getopt_long_only
13036 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13037 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13038 cat >>confdefs.h
<<_ACEOF
13039 #define HAVE_GETOPT_LONG_ONLY 1
13043 gl_replace_getopt
=yes
13049 if test -z "$gl_replace_getopt"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13051 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13052 if ${gl_cv_func_getopt_posix+:} false
; then :
13053 $as_echo_n "(cached) " >&6
13056 if test $cross_compiling = no
; then
13057 if test "$cross_compiling" = yes; then :
13058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13060 as_fn_error $?
"cannot run test program while cross compiling
13061 See \`config.log' for more details" "$LINENO" 5; }
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 #include <unistd.h>
13067 #include <stdlib.h>
13068 #include <string.h>
13073 static char program[] = "program";
13074 static char a[] = "-a";
13075 static char foo[] = "foo";
13076 static char bar[] = "bar";
13077 char *argv[] = { program, a, foo, bar, NULL };
13080 c = getopt (4, argv, "ab");
13083 c = getopt (4, argv, "ab");
13086 if (!(optind == 2))
13092 if ac_fn_c_try_run
"$LINENO"; then :
13093 gl_cv_func_getopt_posix
=maybe
13095 gl_cv_func_getopt_posix
=no
13097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13101 if test $gl_cv_func_getopt_posix = maybe
; then
13102 if test "$cross_compiling" = yes; then :
13103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13105 as_fn_error $?
"cannot run test program while cross compiling
13106 See \`config.log' for more details" "$LINENO" 5; }
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13111 #include <unistd.h>
13112 #include <stdlib.h>
13113 #include <string.h>
13118 static char program[] = "program";
13119 static char donald[] = "donald";
13120 static char p[] = "-p";
13121 static char billy[] = "billy";
13122 static char duck[] = "duck";
13123 static char a[] = "-a";
13124 static char bar[] = "bar";
13125 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13128 c = getopt (7, argv, "+abp:q:");
13131 if (!(strcmp (argv[0], "program") == 0))
13133 if (!(strcmp (argv[1], "donald") == 0))
13135 if (!(strcmp (argv[2], "-p") == 0))
13137 if (!(strcmp (argv[3], "billy") == 0))
13139 if (!(strcmp (argv[4], "duck") == 0))
13141 if (!(strcmp (argv[5], "-a") == 0))
13143 if (!(strcmp (argv[6], "bar") == 0))
13145 if (!(optind == 1))
13151 if ac_fn_c_try_run
"$LINENO"; then :
13152 gl_cv_func_getopt_posix
=maybe
13154 gl_cv_func_getopt_posix
=no
13156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13161 if test $gl_cv_func_getopt_posix = maybe
; then
13162 if test "$cross_compiling" = yes; then :
13163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13165 as_fn_error $?
"cannot run test program while cross compiling
13166 See \`config.log' for more details" "$LINENO" 5; }
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #include <unistd.h>
13172 #include <stdlib.h>
13173 #include <string.h>
13178 static char program[] = "program";
13179 static char ab[] = "-ab";
13180 char *argv[3] = { program, ab, NULL };
13181 if (getopt (2, argv, "ab:") != 'a')
13183 if (getopt (2, argv, "ab:") != '?')
13193 if ac_fn_c_try_run
"$LINENO"; then :
13194 gl_cv_func_getopt_posix
=yes
13196 gl_cv_func_getopt_posix
=no
13198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13205 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
13206 *) gl_cv_func_getopt_posix
="guessing yes";;
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13212 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13213 case "$gl_cv_func_getopt_posix" in
13214 *no
) gl_replace_getopt
=yes ;;
13218 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13220 $as_echo_n "checking for working GNU getopt function... " >&6; }
13221 if ${gl_cv_func_getopt_gnu+:} false
; then :
13222 $as_echo_n "(cached) " >&6
13224 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13225 # optstring is necessary for programs like m4 that have POSIX-mandated
13226 # semantics for supporting options interspersed with files.
13227 # Also, since getopt_long is a GNU extension, we require optind=0.
13228 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13229 # so take care to revert to the correct (non-)export state.
13230 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13231 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13232 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
13233 x
) gl_had_POSIXLY_CORRECT
=yes ;;
13234 *) gl_had_POSIXLY_CORRECT
= ;;
13237 export POSIXLY_CORRECT
13238 if test "$cross_compiling" = yes; then :
13239 gl_cv_func_getopt_gnu
="guessing no"
13242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244 #include <getopt.h>
13245 #include <stddef.h>
13246 #include <string.h>
13248 #include <stdlib.h>
13249 #if defined __MACH__ && defined __APPLE__
13250 /* Avoid a crash on Mac OS X. */
13251 #include <mach/mach.h>
13252 #include <mach/mach_error.h>
13253 #include <mach/thread_status.h>
13254 #include <mach/exception.h>
13255 #include <mach/task.h>
13256 #include <pthread.h>
13257 /* The exception port on which our thread listens. */
13258 static mach_port_t our_exception_port;
13259 /* The main function of the thread listening for exceptions of type
13262 mach_exception_thread (void *arg)
13264 /* Buffer for a message to be received. */
13266 mach_msg_header_t head;
13267 mach_msg_body_t msgh_body;
13270 mach_msg_return_t retval;
13271 /* Wait for a message on the exception port. */
13272 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13273 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13274 if (retval != MACH_MSG_SUCCESS)
13279 nocrash_init (void)
13281 mach_port_t self = mach_task_self ();
13282 /* Allocate a port on which the thread shall listen for exceptions. */
13283 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13285 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
13286 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13287 MACH_MSG_TYPE_MAKE_SEND)
13289 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
13291 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13292 /* Create the thread listening on the exception port. */
13293 pthread_attr_t attr;
13295 if (pthread_attr_init (&attr) == 0
13296 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13297 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13298 pthread_attr_destroy (&attr);
13299 /* Replace the exception port info for these exceptions with our own.
13300 Note that we replace the exception port for the entire task, not only
13301 for a particular thread. This has the effect that when our exception
13302 port gets the message, the thread specific exception port has already
13303 been asked, and we don't need to bother about it.
13304 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
13305 task_set_exception_ports (self, mask, our_exception_port,
13306 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13311 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13312 /* Avoid a crash on native Windows. */
13313 #define WIN32_LEAN_AND_MEAN
13314 #include <windows.h>
13315 #include <winerror.h>
13317 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13319 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13321 case EXCEPTION_ACCESS_VIOLATION:
13322 case EXCEPTION_IN_PAGE_ERROR:
13323 case EXCEPTION_STACK_OVERFLOW:
13324 case EXCEPTION_GUARD_PAGE:
13325 case EXCEPTION_PRIV_INSTRUCTION:
13326 case EXCEPTION_ILLEGAL_INSTRUCTION:
13327 case EXCEPTION_DATATYPE_MISALIGNMENT:
13328 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13329 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13332 return EXCEPTION_CONTINUE_SEARCH;
13335 nocrash_init (void)
13337 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13340 /* Avoid a crash on POSIX systems. */
13341 #include <signal.h>
13342 /* A POSIX signal handler. */
13344 exception_handler (int sig)
13349 nocrash_init (void)
13352 signal (SIGSEGV, exception_handler);
13355 signal (SIGBUS, exception_handler);
13369 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13370 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13371 OSF/1 5.1, Solaris 10. */
13373 static char conftest[] = "conftest";
13374 static char plus[] = "-+";
13375 char *argv[3] = { conftest, plus, NULL };
13377 if (getopt (2, argv, "+a") != '?')
13380 /* This code succeeds on glibc 2.8, mingw,
13381 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13382 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13384 static char program[] = "program";
13385 static char p[] = "-p";
13386 static char foo[] = "foo";
13387 static char bar[] = "bar";
13388 char *argv[] = { program, p, foo, bar, NULL };
13391 if (getopt (4, argv, "p::") != 'p')
13393 else if (optarg != NULL)
13395 else if (getopt (4, argv, "p::") != -1)
13397 else if (optind != 2)
13400 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13402 static char program[] = "program";
13403 static char foo[] = "foo";
13404 static char p[] = "-p";
13405 char *argv[] = { program, foo, p, NULL };
13407 if (getopt (3, argv, "-p") != 1)
13409 else if (getopt (3, argv, "-p") != 'p')
13412 /* This code fails on glibc 2.11. */
13414 static char program[] = "program";
13415 static char b[] = "-b";
13416 static char a[] = "-a";
13417 char *argv[] = { program, b, a, NULL };
13418 optind = opterr = 0;
13419 if (getopt (3, argv, "+:a:b") != 'b')
13421 else if (getopt (3, argv, "+:a:b") != ':')
13424 /* This code dumps core on glibc 2.14. */
13426 static char program[] = "program";
13427 static char w[] = "-W";
13428 static char dummy[] = "dummy";
13429 char *argv[] = { program, w, dummy, NULL };
13430 optind = opterr = 1;
13431 if (getopt (3, argv, "W;") != 'W')
13440 if ac_fn_c_try_run
"$LINENO"; then :
13441 gl_cv_func_getopt_gnu
=yes
13443 gl_cv_func_getopt_gnu
=no
13445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13449 case $gl_had_POSIXLY_CORRECT in
13451 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
13452 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13457 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13458 if test "$gl_cv_func_getopt_gnu" != yes; then
13459 gl_replace_getopt
=yes
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13462 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
13463 if ${gl_cv_func_getopt_long_gnu+:} false
; then :
13464 $as_echo_n "(cached) " >&6
13466 if test "$cross_compiling" = yes; then :
13468 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
13469 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
13473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #include <getopt.h>
13476 #include <stddef.h>
13477 #include <string.h>
13482 static const struct option long_options[] =
13484 { "xtremely-",no_argument, NULL, 1003 },
13485 { "xtra", no_argument, NULL, 1001 },
13486 { "xtreme", no_argument, NULL, 1002 },
13487 { "xtremely", no_argument, NULL, 1003 },
13488 { NULL, 0, NULL, 0 }
13490 /* This code fails on OpenBSD 5.0. */
13492 static char program[] = "program";
13493 static char xtremel[] = "--xtremel";
13494 char *argv[] = { program, xtremel, NULL };
13496 optind = 1; opterr = 0;
13497 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13506 if ac_fn_c_try_run
"$LINENO"; then :
13507 gl_cv_func_getopt_long_gnu
=yes
13509 gl_cv_func_getopt_long_gnu
=no
13511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13518 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
13519 case "$gl_cv_func_getopt_long_gnu" in
13521 *) gl_replace_getopt
=yes ;;
13533 if test $REPLACE_GETOPT = 1; then
13537 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13543 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13544 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
13550 cat >>confdefs.h
<<_ACEOF
13551 #define HAVE_DECL_GETENV $ac_have_decl
13555 GNULIB_NL_LANGINFO
=0;
13556 HAVE_NL_LANGINFO
=1;
13557 REPLACE_NL_LANGINFO
=0;
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
13571 $as_echo_n "checking for working fcntl.h... " >&6; }
13572 if ${gl_cv_header_working_fcntl_h+:} false
; then :
13573 $as_echo_n "(cached) " >&6
13575 if test "$cross_compiling" = yes; then :
13576 gl_cv_header_working_fcntl_h
=cross-compiling
13578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #include <sys/types.h>
13581 #include <sys/stat.h>
13583 # include <unistd.h>
13584 #else /* on Windows with MSVC */
13586 # include <stdlib.h>
13587 # defined sleep(n) _sleep ((n) * 1000)
13591 #define O_NOATIME 0
13594 #define O_NOFOLLOW 0
13596 static int const constants[] =
13598 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13599 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13606 int result = !constants;
13609 static char const sym[] = "conftest.sym";
13610 if (symlink ("/dev/null", sym) != 0)
13614 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
13621 if (unlink (sym) != 0 || symlink (".", sym) != 0)
13625 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
13636 static char const file[] = "confdefs.h";
13637 int fd = open (file, O_RDONLY | O_NOATIME);
13643 if (fstat (fd, &st0) != 0)
13649 if (read (fd, &c, 1) != 1)
13653 if (close (fd) != 0)
13658 if (stat (file, &st1) != 0)
13661 if (st0.st_atime != st1.st_atime)
13673 if ac_fn_c_try_run
"$LINENO"; then :
13674 gl_cv_header_working_fcntl_h
=yes
13677 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
13678 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
13679 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
13680 *) gl_cv_header_working_fcntl_h
='no';;
13683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
13689 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
13691 case $gl_cv_header_working_fcntl_h in #(
13692 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
13696 cat >>confdefs.h
<<_ACEOF
13697 #define HAVE_WORKING_O_NOATIME $ac_val
13701 case $gl_cv_header_working_fcntl_h in #(
13702 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
13706 cat >>confdefs.h
<<_ACEOF
13707 #define HAVE_WORKING_O_NOFOLLOW $ac_val
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13713 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
13714 if ${ac_cv_gnu_library_2_1+:} false
; then :
13715 $as_echo_n "(cached) " >&6
13717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13720 #include <features.h>
13721 #ifdef __GNU_LIBRARY__
13722 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13732 $EGREP "Lucky" >/dev
/null
2>&1; then :
13733 ac_cv_gnu_library_2_1
=yes
13735 ac_cv_gnu_library_2_1
=no
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13743 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13745 GLIBC21
="$ac_cv_gnu_library_2_1"
13749 GNULIB_LOCALECONV
=0;
13750 GNULIB_SETLOCALE
=0;
13751 GNULIB_DUPLOCALE
=0;
13753 REPLACE_LOCALECONV
=0;
13754 REPLACE_SETLOCALE
=0;
13755 REPLACE_DUPLOCALE
=0;
13756 REPLACE_STRUCT_LCONV
=0;
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13764 $as_echo_n "checking for wchar_t... " >&6; }
13765 if ${gt_cv_c_wchar_t+:} false
; then :
13766 $as_echo_n "(cached) " >&6
13768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 #include <stddef.h>
13771 wchar_t foo = (wchar_t)'\0';
13780 if ac_fn_c_try_compile
"$LINENO"; then :
13781 gt_cv_c_wchar_t
=yes
13785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13788 $as_echo "$gt_cv_c_wchar_t" >&6; }
13789 if test $gt_cv_c_wchar_t = yes; then
13791 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13799 if test $gt_cv_c_wchar_t = no
; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13804 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13805 if ${gl_cv_decl_null_works+:} false
; then :
13806 $as_echo_n "(cached) " >&6
13808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 #include <stddef.h>
13811 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13821 if ac_fn_c_try_compile
"$LINENO"; then :
13822 gl_cv_decl_null_works
=yes
13824 gl_cv_decl_null_works
=no
13826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13829 $as_echo "$gl_cv_decl_null_works" >&6; }
13830 if test $gl_cv_decl_null_works = no
; then
13835 if test -n "$STDDEF_H"; then
13836 GL_GENERATE_STDDEF_H_TRUE
=
13837 GL_GENERATE_STDDEF_H_FALSE
='#'
13839 GL_GENERATE_STDDEF_H_TRUE
='#'
13840 GL_GENERATE_STDDEF_H_FALSE
=
13843 if test -n "$STDDEF_H"; then
13852 if test $gl_cv_have_include_next = yes; then
13853 gl_cv_next_stddef_h
='<'stddef.h
'>'
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13856 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13857 if ${gl_cv_next_stddef_h+:} false
; then :
13858 $as_echo_n "(cached) " >&6
13861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 #include <stddef.h>
13867 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13868 *) gl_absname_cpp
="$ac_cpp" ;;
13873 gl_dirsep_regex
='[/\\]'
13876 gl_dirsep_regex
='\/'
13879 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13881 gl_header_literal_regex
=`echo 'stddef.h' \
13882 | sed -e "$gl_make_literal_regex_sed"`
13883 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13884 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13889 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13890 sed -n "$gl_absolute_header_sed"`'"'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13895 $as_echo "$gl_cv_next_stddef_h" >&6; }
13897 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13899 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13901 gl_next_as_first_directive
='<'stddef.h
'>'
13903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13904 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13906 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13918 GNULIB_CALLOC_POSIX
=0;
13919 GNULIB_CANONICALIZE_FILE_NAME
=0;
13920 GNULIB_GETLOADAVG
=0;
13921 GNULIB_GETSUBOPT
=0;
13923 GNULIB_MALLOC_POSIX
=0;
13927 GNULIB_MKOSTEMPS
=0;
13930 GNULIB_POSIX_OPENPT
=0;
13932 GNULIB_PTSNAME_R
=0;
13936 GNULIB_REALLOC_POSIX
=0;
13939 GNULIB_SECURE_GETENV
=0;
13944 GNULIB_SYSTEM_POSIX
=0;
13950 HAVE_CANONICALIZE_FILE_NAME
=1;
13951 HAVE_DECL_GETLOADAVG
=1;
13959 HAVE_POSIX_OPENPT
=1;
13967 HAVE_SECURE_GETENV
=1;
13969 HAVE_DECL_SETENV
=1;
13973 HAVE_STRUCT_RANDOM_DATA
=1;
13974 HAVE_SYS_LOADAVG_H
=0;
13976 HAVE_DECL_UNSETENV
=1;
13978 REPLACE_CANONICALIZE_FILE_NAME
=0;
13983 REPLACE_PTSNAME_R
=0;
13985 REPLACE_RANDOM_R
=0;
13987 REPLACE_REALPATH
=0;
13990 REPLACE_UNSETENV
=0;
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13995 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13996 if ${gl_cv_func_malloc_posix+:} false
; then :
13997 $as_echo_n "(cached) " >&6
14000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14006 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14014 if ac_fn_c_try_compile
"$LINENO"; then :
14015 gl_cv_func_malloc_posix
=yes
14017 gl_cv_func_malloc_posix
=no
14019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14023 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14033 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14034 if ${gt_cv_locale_ja+:} false
; then :
14035 $as_echo_n "(cached) " >&6
14038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14041 #include <locale.h>
14043 #if HAVE_LANGINFO_CODESET
14044 # include <langinfo.h>
14046 #include <stdlib.h>
14047 #include <string.h>
14053 /* Check whether the given locale name is recognized by the system. */
14054 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14055 /* On native Windows, setlocale(category, "") looks at the system settings,
14056 not at the environment variables. Also, when an encoding suffix such
14057 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14058 category of the locale to "C". */
14059 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14060 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14063 if (setlocale (LC_ALL, "") == NULL) return 1;
14065 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14066 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14067 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14068 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14069 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14070 some unit tests fail.
14071 On MirBSD 10, when an unsupported locale is specified, setlocale()
14072 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14073 #if HAVE_LANGINFO_CODESET
14075 const char *cs = nl_langinfo (CODESET);
14076 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14077 || strcmp (cs, "UTF-8") == 0)
14082 /* On Cygwin, avoid locale names without encoding suffix, because the
14083 locale_charset() function relies on the encoding suffix. Note that
14084 LC_ALL is set on the command line. */
14085 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14087 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14088 on Cygwin 1.5.x. */
14089 if (MB_CUR_MAX == 1)
14091 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14092 This excludes the UTF-8 encoding (except on MirBSD). */
14093 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14094 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14095 for (p = buf; *p != '\0'; p++)
14096 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14103 (eval $ac_link) 2>&5
14105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14108 # Handle native Windows specially, because there setlocale() interprets
14109 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14110 # "fr" or "fra" as "French" or "French_France.1252",
14111 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14112 # "ja" as "Japanese" or "Japanese_Japan.932",
14115 # Note that on native Windows, the Japanese locale is
14116 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14117 # cannot use it here.
14118 gt_cv_locale_ja
=none
14121 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14122 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14123 # configure script would override the LC_ALL setting. Likewise for
14124 # LC_CTYPE, which is also set at the beginning of the configure script.
14125 # Test for the AIX locale name.
14126 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14127 gt_cv_locale_ja
=ja_JP
14129 # Test for the locale name with explicit encoding suffix.
14130 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14131 gt_cv_locale_ja
=ja_JP.EUC-JP
14133 # Test for the HP-UX, OSF/1, NetBSD locale name.
14134 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14135 gt_cv_locale_ja
=ja_JP.eucJP
14137 # Test for the IRIX, FreeBSD locale name.
14138 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14139 gt_cv_locale_ja
=ja_JP.EUC
14141 # Test for the Solaris 7 locale name.
14142 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14145 # Special test for NetBSD 1.6.
14146 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14147 gt_cv_locale_ja
=ja_JP.eucJP
14150 gt_cv_locale_ja
=none
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14164 $as_echo "$gt_cv_locale_ja" >&6; }
14165 LOCALE_JA
=$gt_cv_locale_ja
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14172 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14173 if ${gt_cv_locale_zh_CN+:} false
; then :
14174 $as_echo_n "(cached) " >&6
14177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14180 #include <locale.h>
14181 #include <stdlib.h>
14183 #if HAVE_LANGINFO_CODESET
14184 # include <langinfo.h>
14186 #include <stdlib.h>
14187 #include <string.h>
14193 /* Check whether the given locale name is recognized by the system. */
14194 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14195 /* On native Windows, setlocale(category, "") looks at the system settings,
14196 not at the environment variables. Also, when an encoding suffix such
14197 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14198 category of the locale to "C". */
14199 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14200 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14203 if (setlocale (LC_ALL, "") == NULL) return 1;
14205 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14206 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14207 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14208 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14209 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14210 some unit tests fail.
14211 On MirBSD 10, when an unsupported locale is specified, setlocale()
14212 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14213 #if HAVE_LANGINFO_CODESET
14215 const char *cs = nl_langinfo (CODESET);
14216 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14217 || strcmp (cs, "UTF-8") == 0)
14222 /* On Cygwin, avoid locale names without encoding suffix, because the
14223 locale_charset() function relies on the encoding suffix. Note that
14224 LC_ALL is set on the command line. */
14225 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14227 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14228 This excludes the UTF-8 encoding (except on MirBSD). */
14229 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14230 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14231 for (p = buf; *p != '\0'; p++)
14232 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14234 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14235 single wide character. This excludes the GB2312 and GBK encodings. */
14236 if (mblen ("\203\062\332\066", 5) != 4)
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14243 (eval $ac_link) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14248 # Handle native Windows specially, because there setlocale() interprets
14249 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14250 # "fr" or "fra" as "French" or "French_France.1252",
14251 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14252 # "ja" as "Japanese" or "Japanese_Japan.932",
14255 # Test for the hypothetical native Windows locale name.
14256 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14257 gt_cv_locale_zh_CN
=Chinese_China
.54936
14260 gt_cv_locale_zh_CN
=none
14264 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14265 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14266 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14267 gt_cv_locale_zh_CN
=none
14270 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14271 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14272 # configure script would override the LC_ALL setting. Likewise for
14273 # LC_CTYPE, which is also set at the beginning of the configure script.
14274 # Test for the locale name without encoding suffix.
14275 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14276 gt_cv_locale_zh_CN
=zh_CN
14278 # Test for the locale name with explicit encoding suffix.
14279 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14280 gt_cv_locale_zh_CN
=zh_CN.GB18030
14283 gt_cv_locale_zh_CN
=none
14289 # If there was a link error, due to mblen(), the system is so old that
14290 # it certainly doesn't have a chinese locale.
14291 gt_cv_locale_zh_CN
=none
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14297 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14298 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14304 $as_echo_n "checking for a french Unicode locale... " >&6; }
14305 if ${gt_cv_locale_fr_utf8+:} false
; then :
14306 $as_echo_n "(cached) " >&6
14309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 #include <locale.h>
14314 #if HAVE_LANGINFO_CODESET
14315 # include <langinfo.h>
14317 #include <stdlib.h>
14318 #include <string.h>
14322 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14323 imitates locale dependent behaviour by looking at the environment
14324 variables, and all locales use the UTF-8 encoding. */
14325 #if !(defined __BEOS__ || defined __HAIKU__)
14326 /* Check whether the given locale name is recognized by the system. */
14327 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14328 /* On native Windows, setlocale(category, "") looks at the system settings,
14329 not at the environment variables. Also, when an encoding suffix such
14330 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14331 category of the locale to "C". */
14332 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14333 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14336 if (setlocale (LC_ALL, "") == NULL) return 1;
14338 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14339 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14340 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14341 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14342 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14343 some unit tests fail. */
14344 # if HAVE_LANGINFO_CODESET
14346 const char *cs = nl_langinfo (CODESET);
14347 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14352 /* On Cygwin, avoid locale names without encoding suffix, because the
14353 locale_charset() function relies on the encoding suffix. Note that
14354 LC_ALL is set on the command line. */
14355 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14357 /* Check whether in the abbreviation of the second month, the second
14358 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14359 two bytes long, with UTF-8 encoding. */
14360 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14361 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14362 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14365 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14366 /* Check whether the decimal separator is a comma.
14367 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14368 are nl_langinfo(RADIXCHAR) are both ".". */
14369 if (localeconv () ->decimal_point[0] != ',') return 1;
14375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14376 (eval $ac_link) 2>&5
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14381 # Handle native Windows specially, because there setlocale() interprets
14382 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14383 # "fr" or "fra" as "French" or "French_France.1252",
14384 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14385 # "ja" as "Japanese" or "Japanese_Japan.932",
14388 # Test for the hypothetical native Windows locale name.
14389 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14390 gt_cv_locale_fr_utf8
=French_France
.65001
14393 gt_cv_locale_fr_utf8
=none
14397 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14398 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14399 # configure script would override the LC_ALL setting. Likewise for
14400 # LC_CTYPE, which is also set at the beginning of the configure script.
14401 # Test for the usual locale name.
14402 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14403 gt_cv_locale_fr_utf8
=fr_FR
14405 # Test for the locale name with explicit encoding suffix.
14406 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14407 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14409 # Test for the Solaris 7 locale name.
14410 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14411 gt_cv_locale_fr_utf8
=fr.UTF-8
14414 gt_cv_locale_fr_utf8
=none
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14425 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14426 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14444 GNULIB_RAWMEMCHR
=0;
14447 GNULIB_STRCHRNUL
=0;
14455 GNULIB_STRCASESTR
=0;
14462 GNULIB_MBSCASECMP
=0;
14463 GNULIB_MBSNCASECMP
=0;
14464 GNULIB_MBSPCASECMP
=0;
14465 GNULIB_MBSCASESTR
=0;
14472 GNULIB_STRERROR_R
=0;
14473 GNULIB_STRSIGNAL
=0;
14474 GNULIB_STRVERSCMP
=0;
14479 HAVE_DECL_MEMMEM
=1;
14481 HAVE_DECL_MEMRCHR
=1;
14486 HAVE_DECL_STRDUP
=1;
14487 HAVE_DECL_STRNDUP
=1;
14488 HAVE_DECL_STRNLEN
=1;
14492 HAVE_DECL_STRTOK_R
=1;
14493 HAVE_DECL_STRERROR_R
=1;
14494 HAVE_DECL_STRSIGNAL
=1;
14501 REPLACE_STRCASESTR
=0;
14502 REPLACE_STRCHRNUL
=0;
14503 REPLACE_STRERROR
=0;
14504 REPLACE_STRERROR_R
=0;
14508 REPLACE_STRSIGNAL
=0;
14509 REPLACE_STRTOK_R
=0;
14510 UNDEFINE_STRTOK_R
=0;
14516 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14517 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14518 # irrelevant for anonymous mappings.
14519 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14520 if test "x$ac_cv_func_mmap" = xyes
; then :
14527 # Try to allow MAP_ANONYMOUS.
14528 gl_have_mmap_anonymous
=no
14529 if test $gl_have_mmap = yes; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14531 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14535 #include <sys/mman.h>
14536 #ifdef MAP_ANONYMOUS
14537 I cannot identify this map
14541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14542 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14543 gl_have_mmap_anonymous
=yes
14547 if test $gl_have_mmap_anonymous != yes; then
14548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 #include <sys/mman.h>
14553 I cannot identify this map
14557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14560 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14562 gl_have_mmap_anonymous
=yes
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14568 $as_echo "$gl_have_mmap_anonymous" >&6; }
14569 if test $gl_have_mmap_anonymous = yes; then
14571 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14581 if test $HAVE_MEMCHR = 1; then
14582 # Detect platform-specific bugs in some versions of glibc:
14583 # memchr should not dereference anything with length 0
14584 # http://bugzilla.redhat.com/499689
14585 # memchr should not dereference overestimated length after a match
14586 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14587 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14588 # Assume that memchr works on platforms that lack mprotect.
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14590 $as_echo_n "checking whether memchr works... " >&6; }
14591 if ${gl_cv_func_memchr_works+:} false
; then :
14592 $as_echo_n "(cached) " >&6
14594 if test "$cross_compiling" = yes; then :
14595 gl_cv_func_memchr_works
="guessing no"
14597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14600 #include <string.h>
14601 #if HAVE_SYS_MMAN_H
14602 # include <fcntl.h>
14603 # include <unistd.h>
14604 # include <sys/types.h>
14605 # include <sys/mman.h>
14607 # define MAP_FILE 0
14616 char *fence = NULL;
14617 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14618 # if HAVE_MAP_ANONYMOUS
14619 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14621 # else /* !HAVE_MAP_ANONYMOUS */
14622 const int flags = MAP_FILE | MAP_PRIVATE;
14623 int fd = open ("/dev/zero", O_RDONLY, 0666);
14627 int pagesize = getpagesize ();
14629 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14631 if (two_pages != (char *)(-1)
14632 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14633 fence = two_pages + pagesize;
14638 if (memchr (fence, 0, 0))
14640 strcpy (fence - 9, "12345678");
14641 if (memchr (fence - 9, 0, 79) != fence - 1)
14643 if (memchr (fence - 1, 0, 3) != fence - 1)
14652 if ac_fn_c_try_run
"$LINENO"; then :
14653 gl_cv_func_memchr_works
=yes
14655 gl_cv_func_memchr_works
=no
14657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14663 $as_echo "$gl_cv_func_memchr_works" >&6; }
14664 if test "$gl_cv_func_memchr_works" != yes; then
14672 gl_cv_c_multiarch
=no
14673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 #ifndef __APPLE_CC__
14676 not a universal capable compiler
14681 if ac_fn_c_try_compile
"$LINENO"; then :
14685 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14686 if test -n "$prev"; then
14688 i?
86 | x86_64 | ppc | ppc64
)
14689 if test -z "$arch" ||
test "$arch" = "$word"; then
14692 gl_cv_c_multiarch
=yes
14698 if test "x$word" = "x-arch"; then
14705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14706 if test $gl_cv_c_multiarch = yes; then
14707 APPLE_UNIVERSAL_BUILD
=1
14709 APPLE_UNIVERSAL_BUILD
=0
14715 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14716 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
14722 cat >>confdefs.h
<<_ACEOF
14723 #define HAVE_DECL_ALARM $ac_have_decl
14728 for ac_header
in stdlib.h
14730 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
14732 cat >>confdefs.h
<<_ACEOF
14733 #define HAVE_STDLIB_H 1
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14741 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14742 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14743 $as_echo_n "(cached) " >&6
14745 if test "$cross_compiling" = yes; then :
14747 # Guess yes on platforms where we know the result.
14748 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
14749 | hpux
* | solaris
* | cygwin
* | mingw
*)
14750 ac_cv_func_malloc_0_nonnull
=yes ;;
14751 # If we don't know, assume the worst.
14752 *) ac_cv_func_malloc_0_nonnull
=no
;;
14756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14759 # include <stdlib.h>
14767 return ! malloc (0);
14773 if ac_fn_c_try_run
"$LINENO"; then :
14774 ac_cv_func_malloc_0_nonnull
=yes
14776 ac_cv_func_malloc_0_nonnull
=no
14778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14785 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14786 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14787 gl_cv_func_malloc_0_nonnull
=1
14789 gl_cv_func_malloc_0_nonnull
=0
14793 cat >>confdefs.h
<<_ACEOF
14794 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14803 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14804 if ${ac_cv_header_stdbool_h+:} false
; then :
14805 $as_echo_n "(cached) " >&6
14807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14810 #include <stdbool.h>
14812 "error: bool is not defined"
14815 "error: false is not defined"
14818 "error: false is not 0"
14821 "error: true is not defined"
14824 "error: true is not 1"
14826 #ifndef __bool_true_false_are_defined
14827 "error: __bool_true_false_are_defined is not defined"
14830 struct s { _Bool s: 1; _Bool t; } s;
14832 char a[true == 1 ? 1 : -1];
14833 char b[false == 0 ? 1 : -1];
14834 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14835 char d[(bool) 0.5 == true ? 1 : -1];
14836 /* See body of main program for 'e'. */
14837 char f[(_Bool) 0.0 == false ? 1 : -1];
14839 char h[sizeof (_Bool)];
14840 char i[sizeof s.t];
14841 enum { j = false, k = true, l = false * true, m = true * 256 };
14842 /* The following fails for
14843 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14845 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14846 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14847 /* Catch a bug in an HP-UX C compiler. See
14848 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14849 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14861 /* Refer to every declared value, to avoid compiler optimizations. */
14862 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14863 + !m + !n + !o + !p + !q + !pq);
14869 if ac_fn_c_try_compile
"$LINENO"; then :
14870 ac_cv_header_stdbool_h
=yes
14872 ac_cv_header_stdbool_h
=no
14874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14877 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14878 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14879 if test "x$ac_cv_type__Bool" = xyes
; then :
14881 cat >>confdefs.h
<<_ACEOF
14882 #define HAVE__BOOL 1
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14891 $as_echo_n "checking for unsigned long long int... " >&6; }
14892 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14893 $as_echo_n "(cached) " >&6
14895 ac_cv_type_unsigned_long_long_int
=yes
14896 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14900 /* For now, do not test the preprocessor; as of 2007 there are too many
14901 implementations with broken preprocessors. Perhaps this can
14902 be revisited in 2012. In the meantime, code should not expect
14903 #if to work with literals wider than 32 bits. */
14904 /* Test literals. */
14905 long long int ll = 9223372036854775807ll;
14906 long long int nll = -9223372036854775807LL;
14907 unsigned long long int ull = 18446744073709551615ULL;
14908 /* Test constant expressions. */
14909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14917 /* Test availability of runtime routines for shift and division. */
14918 long long int llmax = 9223372036854775807ll;
14919 unsigned long long int ullmax = 18446744073709551615ull;
14920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14921 | (llmax / ll) | (llmax % ll)
14922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14923 | (ullmax / ull) | (ullmax % ull));
14929 if ac_fn_c_try_link
"$LINENO"; then :
14932 ac_cv_type_unsigned_long_long_int
=no
14934 rm -f core conftest.err conftest.
$ac_objext \
14935 conftest
$ac_exeext conftest.
$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14939 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14940 if test $ac_cv_type_unsigned_long_long_int = yes; then
14942 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14949 $as_echo_n "checking for long long int... " >&6; }
14950 if ${ac_cv_type_long_long_int+:} false
; then :
14951 $as_echo_n "(cached) " >&6
14953 ac_cv_type_long_long_int
=yes
14954 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14955 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14956 if test $ac_cv_type_long_long_int = yes; then
14957 if test "$cross_compiling" = yes; then :
14960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 #include <limits.h>
14965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14966 # define LLONG_MAX (HALF - 1 + HALF)
14971 long long int n = 1;
14975 long long int m = n << i;
14978 if (LLONG_MAX / 2 < m)
14986 if ac_fn_c_try_run
"$LINENO"; then :
14989 ac_cv_type_long_long_int
=no
14991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14999 $as_echo "$ac_cv_type_long_long_int" >&6; }
15000 if test $ac_cv_type_long_long_int = yes; then
15002 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15011 if test $ac_cv_type_long_long_int = yes; then
15012 HAVE_LONG_LONG_INT
=1
15014 HAVE_LONG_LONG_INT
=0
15018 if test $ac_cv_type_unsigned_long_long_int = yes; then
15019 HAVE_UNSIGNED_LONG_LONG_INT
=1
15021 HAVE_UNSIGNED_LONG_LONG_INT
=0
15026 if test $ac_cv_header_wchar_h = yes; then
15033 if test $ac_cv_header_inttypes_h = yes; then
15040 if test $ac_cv_header_sys_types_h = yes; then
15056 if test $gl_cv_have_include_next = yes; then
15057 gl_cv_next_stdint_h
='<'stdint.h
'>'
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15060 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15061 if ${gl_cv_next_stdint_h+:} false
; then :
15062 $as_echo_n "(cached) " >&6
15065 if test $ac_cv_header_stdint_h = yes; then
15068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070 #include <stdint.h>
15074 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15075 *) gl_absname_cpp
="$ac_cpp" ;;
15080 gl_dirsep_regex
='[/\\]'
15083 gl_dirsep_regex
='\/'
15086 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15088 gl_header_literal_regex
=`echo 'stdint.h' \
15089 | sed -e "$gl_make_literal_regex_sed"`
15090 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15091 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15096 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15097 sed -n "$gl_absolute_header_sed"`'"'
15099 gl_cv_next_stdint_h
='<'stdint.h
'>'
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15105 $as_echo "$gl_cv_next_stdint_h" >&6; }
15107 NEXT_STDINT_H
=$gl_cv_next_stdint_h
15109 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15111 gl_next_as_first_directive
='<'stdint.h
'>'
15113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15114 gl_next_as_first_directive
=$gl_cv_next_stdint_h
15116 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
15121 if test $ac_cv_header_stdint_h = yes; then
15128 if test $ac_cv_header_stdint_h = yes; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15130 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15131 if ${gl_cv_header_working_stdint_h+:} false
; then :
15132 $as_echo_n "(cached) " >&6
15134 gl_cv_header_working_stdint_h
=no
15135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15139 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15140 #include <stdint.h>
15141 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15142 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15143 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15148 included before <wchar.h>. */
15149 #include <stddef.h>
15150 #include <signal.h>
15152 # include <stdio.h>
15154 # include <wchar.h>
15159 int8_t a1 = INT8_MAX;
15160 int8_t a1min = INT8_MIN;
15163 int16_t a2 = INT16_MAX;
15164 int16_t a2min = INT16_MIN;
15167 int32_t a3 = INT32_MAX;
15168 int32_t a3min = INT32_MIN;
15171 int64_t a4 = INT64_MAX;
15172 int64_t a4min = INT64_MIN;
15175 uint8_t b1 = UINT8_MAX;
15177 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15180 uint16_t b2 = UINT16_MAX;
15183 uint32_t b3 = UINT32_MAX;
15186 uint64_t b4 = UINT64_MAX;
15188 int_least8_t c1 = INT8_C (0x7f);
15189 int_least8_t c1max = INT_LEAST8_MAX;
15190 int_least8_t c1min = INT_LEAST8_MIN;
15191 int_least16_t c2 = INT16_C (0x7fff);
15192 int_least16_t c2max = INT_LEAST16_MAX;
15193 int_least16_t c2min = INT_LEAST16_MIN;
15194 int_least32_t c3 = INT32_C (0x7fffffff);
15195 int_least32_t c3max = INT_LEAST32_MAX;
15196 int_least32_t c3min = INT_LEAST32_MIN;
15197 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15198 int_least64_t c4max = INT_LEAST64_MAX;
15199 int_least64_t c4min = INT_LEAST64_MIN;
15200 uint_least8_t d1 = UINT8_C (0xff);
15201 uint_least8_t d1max = UINT_LEAST8_MAX;
15202 uint_least16_t d2 = UINT16_C (0xffff);
15203 uint_least16_t d2max = UINT_LEAST16_MAX;
15204 uint_least32_t d3 = UINT32_C (0xffffffff);
15205 uint_least32_t d3max = UINT_LEAST32_MAX;
15206 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15207 uint_least64_t d4max = UINT_LEAST64_MAX;
15208 int_fast8_t e1 = INT_FAST8_MAX;
15209 int_fast8_t e1min = INT_FAST8_MIN;
15210 int_fast16_t e2 = INT_FAST16_MAX;
15211 int_fast16_t e2min = INT_FAST16_MIN;
15212 int_fast32_t e3 = INT_FAST32_MAX;
15213 int_fast32_t e3min = INT_FAST32_MIN;
15214 int_fast64_t e4 = INT_FAST64_MAX;
15215 int_fast64_t e4min = INT_FAST64_MIN;
15216 uint_fast8_t f1 = UINT_FAST8_MAX;
15217 uint_fast16_t f2 = UINT_FAST16_MAX;
15218 uint_fast32_t f3 = UINT_FAST32_MAX;
15219 uint_fast64_t f4 = UINT_FAST64_MAX;
15221 intptr_t g = INTPTR_MAX;
15222 intptr_t gmin = INTPTR_MIN;
15225 uintptr_t h = UINTPTR_MAX;
15227 intmax_t i = INTMAX_MAX;
15228 uintmax_t j = UINTMAX_MAX;
15230 #include <limits.h> /* for CHAR_BIT */
15231 #define TYPE_MINIMUM(t) \
15232 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15233 #define TYPE_MAXIMUM(t) \
15234 ((t) ((t) 0 < (t) -1 \
15236 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15239 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15240 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15242 /* Detect bug in FreeBSD 6.0 / ia64. */
15243 int check_SIG_ATOMIC:
15244 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15245 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15247 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15249 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15250 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15252 /* Detect bug in mingw. */
15254 WINT_MIN == TYPE_MINIMUM (wint_t)
15255 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15258 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15260 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15261 int check_UINT16_C:
15262 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15264 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15266 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15269 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15272 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15275 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15277 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15278 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15279 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15280 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15281 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15282 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15283 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15284 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15285 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15286 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15287 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15298 if ac_fn_c_try_compile
"$LINENO"; then :
15299 if test "$cross_compiling" = yes; then :
15300 gl_cv_header_working_stdint_h
=yes
15303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15307 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15308 #include <stdint.h>
15311 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15312 included before <wchar.h>. */
15313 #include <stddef.h>
15314 #include <signal.h>
15316 # include <stdio.h>
15318 # include <wchar.h>
15323 #include <string.h>
15324 #define MVAL(macro) MVAL1(macro)
15325 #define MVAL1(expression) #expression
15326 static const char *macro_values[] =
15360 for (mv = macro_values; *mv != NULL; mv++)
15362 const char *value = *mv;
15363 /* Test whether it looks like a cast expression. */
15364 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15365 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15366 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15367 || strncmp (value, "((int)"/*)*/, 6) == 0
15368 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15369 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15370 return mv - macro_values + 1;
15378 if ac_fn_c_try_run
"$LINENO"; then :
15379 gl_cv_header_working_stdint_h
=yes
15381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15391 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15393 if test "$gl_cv_header_working_stdint_h" = yes; then
15396 for ac_header
in sys
/inttypes.h sys
/bitypes.h
15398 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15399 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15400 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15401 cat >>confdefs.h
<<_ACEOF
15402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15409 if test $ac_cv_header_sys_inttypes_h = yes; then
15410 HAVE_SYS_INTTYPES_H
=1
15412 HAVE_SYS_INTTYPES_H
=0
15415 if test $ac_cv_header_sys_bitypes_h = yes; then
15416 HAVE_SYS_BITYPES_H
=1
15418 HAVE_SYS_BITYPES_H
=0
15424 if test $APPLE_UNIVERSAL_BUILD = 0; then
15427 for gltype
in ptrdiff_t size_t
; do
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15429 $as_echo_n "checking for bit size of $gltype... " >&6; }
15430 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
15431 $as_echo_n "(cached) " >&6
15433 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15434 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15435 included before <wchar.h>. */
15436 #include <stddef.h>
15437 #include <signal.h>
15439 # include <stdio.h>
15441 # include <wchar.h>
15444 #include <limits.h>"; then :
15450 eval gl_cv_bitsizeof_
${gltype}=\
$result
15453 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15455 $as_echo "$ac_res" >&6; }
15456 eval result
=\
$gl_cv_bitsizeof_${gltype}
15457 if test $result = unknown
; then
15460 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15461 cat >>confdefs.h
<<_ACEOF
15462 #define BITSIZEOF_${GLTYPE} $result
15465 eval BITSIZEOF_
${GLTYPE}=\
$result
15472 for gltype
in sig_atomic_t wchar_t wint_t
; do
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15474 $as_echo_n "checking for bit size of $gltype... " >&6; }
15475 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
15476 $as_echo_n "(cached) " >&6
15478 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15479 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15480 included before <wchar.h>. */
15481 #include <stddef.h>
15482 #include <signal.h>
15484 # include <stdio.h>
15486 # include <wchar.h>
15489 #include <limits.h>"; then :
15495 eval gl_cv_bitsizeof_
${gltype}=\
$result
15498 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15500 $as_echo "$ac_res" >&6; }
15501 eval result
=\
$gl_cv_bitsizeof_${gltype}
15502 if test $result = unknown
; then
15505 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15506 cat >>confdefs.h
<<_ACEOF
15507 #define BITSIZEOF_${GLTYPE} $result
15510 eval BITSIZEOF_
${GLTYPE}=\
$result
15516 for gltype
in sig_atomic_t wchar_t wint_t
; do
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15518 $as_echo_n "checking whether $gltype is signed... " >&6; }
15519 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
15520 $as_echo_n "(cached) " >&6
15522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15525 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15526 included before <wchar.h>. */
15527 #include <stddef.h>
15528 #include <signal.h>
15530 # include <stdio.h>
15532 # include <wchar.h>
15535 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15544 if ac_fn_c_try_compile
"$LINENO"; then :
15549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15550 eval gl_cv_type_
${gltype}_signed
=\
$result
15553 eval ac_res
=\
$gl_cv_type_${gltype}_signed
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15555 $as_echo "$ac_res" >&6; }
15556 eval result
=\
$gl_cv_type_${gltype}_signed
15557 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15558 if test "$result" = yes; then
15559 cat >>confdefs.h
<<_ACEOF
15560 #define HAVE_SIGNED_${GLTYPE} 1
15563 eval HAVE_SIGNED_
${GLTYPE}=1
15565 eval HAVE_SIGNED_
${GLTYPE}=0
15570 gl_cv_type_ptrdiff_t_signed
=yes
15571 gl_cv_type_size_t_signed
=no
15572 if test $APPLE_UNIVERSAL_BUILD = 0; then
15575 for gltype
in ptrdiff_t size_t
; do
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15577 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15578 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
15579 $as_echo_n "(cached) " >&6
15581 eval gl_cv_type_
${gltype}_suffix
=no
15582 eval result
=\
$gl_cv_type_${gltype}_signed
15583 if test "$result" = yes; then
15588 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15590 '') gltype1
='int';;
15591 l
) gltype1
='long int';;
15592 ll
) gltype1
='long long int';;
15593 i64
) gltype1
='__int64';;
15594 u
) gltype1
='unsigned int';;
15595 ul
) gltype1
='unsigned long int';;
15596 ull
) gltype1
='unsigned long long int';;
15597 ui64
)gltype1
='unsigned __int64';;
15599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15602 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15603 included before <wchar.h>. */
15604 #include <stddef.h>
15605 #include <signal.h>
15607 # include <stdio.h>
15609 # include <wchar.h>
15612 extern $gltype foo;
15613 extern $gltype1 foo;
15622 if ac_fn_c_try_compile
"$LINENO"; then :
15623 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15626 eval result
=\
$gl_cv_type_${gltype}_suffix
15627 test "$result" != no
&& break
15630 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15632 $as_echo "$ac_res" >&6; }
15633 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15634 eval result
=\
$gl_cv_type_${gltype}_suffix
15635 test "$result" = no
&& result
=
15636 eval ${GLTYPE}_SUFFIX
=\
$result
15637 cat >>confdefs.h
<<_ACEOF
15638 #define ${GLTYPE}_SUFFIX $result
15647 for gltype
in sig_atomic_t wchar_t wint_t
; do
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15649 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15650 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
15651 $as_echo_n "(cached) " >&6
15653 eval gl_cv_type_
${gltype}_suffix
=no
15654 eval result
=\
$gl_cv_type_${gltype}_signed
15655 if test "$result" = yes; then
15660 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15662 '') gltype1
='int';;
15663 l
) gltype1
='long int';;
15664 ll
) gltype1
='long long int';;
15665 i64
) gltype1
='__int64';;
15666 u
) gltype1
='unsigned int';;
15667 ul
) gltype1
='unsigned long int';;
15668 ull
) gltype1
='unsigned long long int';;
15669 ui64
)gltype1
='unsigned __int64';;
15671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15674 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15675 included before <wchar.h>. */
15676 #include <stddef.h>
15677 #include <signal.h>
15679 # include <stdio.h>
15681 # include <wchar.h>
15684 extern $gltype foo;
15685 extern $gltype1 foo;
15694 if ac_fn_c_try_compile
"$LINENO"; then :
15695 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15698 eval result
=\
$gl_cv_type_${gltype}_suffix
15699 test "$result" != no
&& break
15702 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15704 $as_echo "$ac_res" >&6; }
15705 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15706 eval result
=\
$gl_cv_type_${gltype}_suffix
15707 test "$result" = no
&& result
=
15708 eval ${GLTYPE}_SUFFIX
=\
$result
15709 cat >>confdefs.h
<<_ACEOF
15710 #define ${GLTYPE}_SUFFIX $result
15717 if test $BITSIZEOF_WINT_T -lt 32; then
15718 BITSIZEOF_WINT_T
=32
15724 if test -n "$STDINT_H"; then
15725 GL_GENERATE_STDINT_H_TRUE
=
15726 GL_GENERATE_STDINT_H_FALSE
='#'
15728 GL_GENERATE_STDINT_H_TRUE
='#'
15729 GL_GENERATE_STDINT_H_FALSE
=
15737 HAVE_DECL_STRNCASECMP
=1;
15740 REPLACE_STRERROR_0
=0
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15742 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15743 if ${gl_cv_func_strerror_0_works+:} false
; then :
15744 $as_echo_n "(cached) " >&6
15746 if test "$cross_compiling" = yes; then :
15748 # Guess yes on glibc systems.
15749 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15750 # If we don't know, assume the worst.
15751 *) gl_cv_func_strerror_0_works
="guessing no" ;;
15755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757 #include <string.h>
15766 str = strerror (0);
15767 if (!*str) result |= 1;
15768 if (errno) result |= 2;
15769 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15776 if ac_fn_c_try_run
"$LINENO"; then :
15777 gl_cv_func_strerror_0_works
=yes
15779 gl_cv_func_strerror_0_works
=no
15781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15788 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15789 case "$gl_cv_func_strerror_0_works" in
15792 REPLACE_STRERROR_0
=1
15794 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15812 if test $gl_cv_have_include_next = yes; then
15813 gl_cv_next_string_h
='<'string.h
'>'
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15816 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15817 if ${gl_cv_next_string_h+:} false
; then :
15818 $as_echo_n "(cached) " >&6
15821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 #include <string.h>
15827 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15828 *) gl_absname_cpp
="$ac_cpp" ;;
15833 gl_dirsep_regex
='[/\\]'
15836 gl_dirsep_regex
='\/'
15839 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15841 gl_header_literal_regex
=`echo 'string.h' \
15842 | sed -e "$gl_make_literal_regex_sed"`
15843 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15849 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15850 sed -n "$gl_absolute_header_sed"`'"'
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15855 $as_echo "$gl_cv_next_string_h" >&6; }
15857 NEXT_STRING_H
=$gl_cv_next_string_h
15859 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15861 gl_next_as_first_directive
='<'string.h
'>'
15863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15864 gl_next_as_first_directive
=$gl_cv_next_string_h
15866 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15873 for gl_func
in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp
; do
15874 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15876 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15877 if eval \
${$as_gl_Symbol+:} false
; then :
15878 $as_echo_n "(cached) " >&6
15880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 #include <string.h>
15893 if ac_fn_c_try_compile
"$LINENO"; then :
15894 eval "$as_gl_Symbol=yes"
15896 eval "$as_gl_Symbol=no"
15898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15900 eval ac_res
=\$
$as_gl_Symbol
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15902 $as_echo "$ac_res" >&6; }
15903 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15904 cat >>confdefs.h
<<_ACEOF
15905 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15908 eval ac_cv_have_decl_
$gl_func=yes
15927 if test $gl_cv_have_include_next = yes; then
15928 gl_cv_next_strings_h
='<'strings.h
'>'
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15931 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
15932 if ${gl_cv_next_strings_h+:} false
; then :
15933 $as_echo_n "(cached) " >&6
15936 if test $ac_cv_header_strings_h = yes; then
15939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 #include <strings.h>
15945 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15946 *) gl_absname_cpp
="$ac_cpp" ;;
15951 gl_dirsep_regex
='[/\\]'
15954 gl_dirsep_regex
='\/'
15957 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15959 gl_header_literal_regex
=`echo 'strings.h' \
15960 | sed -e "$gl_make_literal_regex_sed"`
15961 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15962 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15967 gl_cv_next_strings_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15968 sed -n "$gl_absolute_header_sed"`'"'
15970 gl_cv_next_strings_h
='<'strings.h
'>'
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15976 $as_echo "$gl_cv_next_strings_h" >&6; }
15978 NEXT_STRINGS_H
=$gl_cv_next_strings_h
15980 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15982 gl_next_as_first_directive
='<'strings.h
'>'
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15985 gl_next_as_first_directive
=$gl_cv_next_strings_h
15987 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
15992 if test $ac_cv_header_strings_h = yes; then
16000 for gl_func
in ffs strcasecmp strncasecmp
; do
16001 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16003 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16004 if eval \
${$as_gl_Symbol+:} false
; then :
16005 $as_echo_n "(cached) " >&6
16007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16010 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
16012 #include <sys/types.h>
16013 #include <strings.h>
16024 if ac_fn_c_try_compile
"$LINENO"; then :
16025 eval "$as_gl_Symbol=yes"
16027 eval "$as_gl_Symbol=no"
16029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16031 eval ac_res
=\$
$as_gl_Symbol
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16033 $as_echo "$ac_res" >&6; }
16034 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16035 cat >>confdefs.h
<<_ACEOF
16036 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16039 eval ac_cv_have_decl_
$gl_func=yes
16044 ac_fn_c_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
16045 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
16051 cat >>confdefs.h
<<_ACEOF
16052 #define HAVE_DECL_STRNDUP $ac_have_decl
16057 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16058 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16064 cat >>confdefs.h
<<_ACEOF
16065 #define HAVE_DECL_STRNLEN $ac_have_decl
16070 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16071 if test "x$ac_cv_type_pid_t" = xyes
; then :
16075 cat >>confdefs.h
<<_ACEOF
16081 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16082 if test "x$ac_cv_type_mode_t" = xyes
; then :
16086 cat >>confdefs.h
<<_ACEOF
16094 WINDOWS_64_BIT_OFF_T
=0
16108 if test $gl_cv_have_include_next = yes; then
16109 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16112 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16113 if ${gl_cv_next_sys_types_h+:} false
; then :
16114 $as_echo_n "(cached) " >&6
16117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #include <sys/types.h>
16123 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16124 *) gl_absname_cpp
="$ac_cpp" ;;
16129 gl_dirsep_regex
='[/\\]'
16132 gl_dirsep_regex
='\/'
16135 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16137 gl_header_literal_regex
=`echo 'sys/types.h' \
16138 | sed -e "$gl_make_literal_regex_sed"`
16139 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16145 gl_cv_next_sys_types_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16146 sed -n "$gl_absolute_header_sed"`'"'
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16151 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16153 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16155 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16157 gl_next_as_first_directive
='<'sys
/types.h
'>'
16159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16160 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16162 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16182 gl_libunistring_sed_extract_major
='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
16187 gl_libunistring_sed_extract_minor
='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
16192 gl_libunistring_sed_extract_subminor
='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
16199 if test "$HAVE_LIBUNISTRING" = yes; then
16200 LIBUNISTRING_VERSION_MAJOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
16201 LIBUNISTRING_VERSION_MINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
16202 LIBUNISTRING_VERSION_SUBMINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16209 $as_echo_n "checking for wint_t... " >&6; }
16210 if ${gt_cv_c_wint_t+:} false
; then :
16211 $as_echo_n "(cached) " >&6
16213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16218 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16219 before <wchar.h>. */
16220 #include <stddef.h>
16224 wint_t foo = (wchar_t)'\0';
16233 if ac_fn_c_try_compile
"$LINENO"; then :
16238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16241 $as_echo "$gt_cv_c_wint_t" >&6; }
16242 if test $gt_cv_c_wint_t = yes; then
16244 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16250 if test $ac_cv_header_features_h = yes; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16259 $as_echo_n "checking for inttypes.h... " >&6; }
16260 if ${gl_cv_header_inttypes_h+:} false
; then :
16261 $as_echo_n "(cached) " >&6
16263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16266 #include <sys/types.h>
16267 #include <inttypes.h>
16272 uintmax_t i = (uintmax_t) -1; return !i;
16277 if ac_fn_c_try_compile
"$LINENO"; then :
16278 gl_cv_header_inttypes_h
=yes
16280 gl_cv_header_inttypes_h
=no
16282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16285 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16286 if test $gl_cv_header_inttypes_h = yes; then
16288 cat >>confdefs.h
<<_ACEOF
16289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16296 $as_echo_n "checking for stdint.h... " >&6; }
16297 if ${gl_cv_header_stdint_h+:} false
; then :
16298 $as_echo_n "(cached) " >&6
16300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <sys/types.h>
16303 #include <stdint.h>
16307 uintmax_t i = (uintmax_t) -1; return !i;
16312 if ac_fn_c_try_compile
"$LINENO"; then :
16313 gl_cv_header_stdint_h
=yes
16315 gl_cv_header_stdint_h
=no
16317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16320 $as_echo "$gl_cv_header_stdint_h" >&6; }
16321 if test $gl_cv_header_stdint_h = yes; then
16323 cat >>confdefs.h
<<_ACEOF
16324 #define HAVE_STDINT_H_WITH_UINTMAX 1
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16333 $as_echo_n "checking for intmax_t... " >&6; }
16334 if ${gt_cv_c_intmax_t+:} false
; then :
16335 $as_echo_n "(cached) " >&6
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16340 #include <stddef.h>
16341 #include <stdlib.h>
16342 #if HAVE_STDINT_H_WITH_UINTMAX
16343 #include <stdint.h>
16345 #if HAVE_INTTYPES_H_WITH_UINTMAX
16346 #include <inttypes.h>
16352 intmax_t x = -1; return !x;
16357 if ac_fn_c_try_compile
"$LINENO"; then :
16358 gt_cv_c_intmax_t
=yes
16360 gt_cv_c_intmax_t
=no
16362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16365 $as_echo "$gt_cv_c_intmax_t" >&6; }
16366 if test $gt_cv_c_intmax_t = yes; then
16368 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16372 test $ac_cv_type_long_long_int = yes \
16373 && ac_type
='long long' \
16376 cat >>confdefs.h
<<_ACEOF
16377 #define intmax_t $ac_type
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16384 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16385 if ${gl_cv_cc_double_expbit0+:} false
; then :
16386 $as_echo_n "(cached) " >&6
16389 if test "$cross_compiling" = yes; then :
16391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 #if defined arm || defined __arm || defined __arm__
16399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16400 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
16401 gl_cv_cc_double_expbit0
="unknown"
16405 if ${ac_cv_c_bigendian+:} false
; then :
16406 $as_echo_n "(cached) " >&6
16408 ac_cv_c_bigendian
=unknown
16409 # See if we're dealing with a universal compiler.
16410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #ifndef __APPLE_CC__
16413 not a universal capable compiler
16418 if ac_fn_c_try_compile
"$LINENO"; then :
16420 # Check for potential -arch flags. It is not universal unless
16421 # there are at least two -arch flags with different values.
16424 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16425 if test -n "$ac_prev"; then
16427 i?
86 | x86_64 | ppc | ppc64
)
16428 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16431 ac_cv_c_bigendian
=universal
16437 elif test "x$ac_word" = "x-arch"; then
16442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16443 if test $ac_cv_c_bigendian = unknown
; then
16444 # See if sys/param.h defines the BYTE_ORDER macro.
16445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 #include <sys/types.h>
16448 #include <sys/param.h>
16453 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16454 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16456 bogus endian macros
16463 if ac_fn_c_try_compile
"$LINENO"; then :
16464 # It does; now see whether it defined to BIG_ENDIAN or not.
16465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 #include <sys/types.h>
16468 #include <sys/param.h>
16473 #if BYTE_ORDER != BIG_ENDIAN
16481 if ac_fn_c_try_compile
"$LINENO"; then :
16482 ac_cv_c_bigendian
=yes
16484 ac_cv_c_bigendian
=no
16486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16490 if test $ac_cv_c_bigendian = unknown
; then
16491 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 #include <limits.h>
16499 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16500 bogus endian macros
16507 if ac_fn_c_try_compile
"$LINENO"; then :
16508 # It does; now see whether it defined to _BIG_ENDIAN or not.
16509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 #include <limits.h>
16516 #ifndef _BIG_ENDIAN
16524 if ac_fn_c_try_compile
"$LINENO"; then :
16525 ac_cv_c_bigendian
=yes
16527 ac_cv_c_bigendian
=no
16529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16533 if test $ac_cv_c_bigendian = unknown
; then
16534 # Compile a test program.
16535 if test "$cross_compiling" = yes; then :
16536 # Try to guess by grepping values from an object file.
16537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 short int ascii_mm[] =
16540 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16541 short int ascii_ii[] =
16542 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16543 int use_ascii (int i) {
16544 return ascii_mm[i] + ascii_ii[i];
16546 short int ebcdic_ii[] =
16547 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16548 short int ebcdic_mm[] =
16549 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16550 int use_ebcdic (int i) {
16551 return ebcdic_mm[i] + ebcdic_ii[i];
16558 return use_ascii (foo) == use_ebcdic (foo);
16563 if ac_fn_c_try_compile
"$LINENO"; then :
16564 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16565 ac_cv_c_bigendian
=yes
16567 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16568 if test "$ac_cv_c_bigendian" = unknown
; then
16569 ac_cv_c_bigendian
=no
16571 # finding both strings is unlikely to happen, but who knows?
16572 ac_cv_c_bigendian
=unknown
16576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 $ac_includes_default
16585 /* Are we little or big endian? From Harbison&Steele. */
16589 char c[sizeof (long int)];
16592 return u.c[sizeof (long int) - 1] == 1;
16598 if ac_fn_c_try_run
"$LINENO"; then :
16599 ac_cv_c_bigendian
=no
16601 ac_cv_c_bigendian
=yes
16603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16610 case $ac_cv_c_bigendian in #(
16612 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
16614 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
16617 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16621 gl_cv_cc_double_expbit0
="unknown" ;;
16630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16634 #include <stddef.h>
16636 #include <string.h>
16638 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16639 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16640 static unsigned int ored_words[NWORDS];
16641 static unsigned int anded_words[NWORDS];
16642 static void add_to_ored_words (double x)
16646 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16647 memset (&m, 0, sizeof (memory_double));
16649 for (i = 0; i < NWORDS; i++)
16651 ored_words[i] |= m.word[i];
16652 anded_words[i] &= m.word[i];
16658 FILE *fp = fopen ("conftest.out", "w");
16661 for (j = 0; j < NWORDS; j++)
16662 anded_words[j] = ~ (unsigned int) 0;
16663 add_to_ored_words (0.25);
16664 add_to_ored_words (0.5);
16665 add_to_ored_words (1.0);
16666 add_to_ored_words (2.0);
16667 add_to_ored_words (4.0);
16668 /* Remove bits that are common (e.g. if representation of the first mantissa
16669 bit is explicit). */
16670 for (j = 0; j < NWORDS; j++)
16671 ored_words[j] &= ~anded_words[j];
16672 /* Now find the nonzero word. */
16673 for (j = 0; j < NWORDS; j++)
16674 if (ored_words[j] != 0)
16679 for (i = j + 1; i < NWORDS; i++)
16680 if (ored_words[i] != 0)
16682 fprintf (fp, "unknown");
16683 return (fclose (fp) != 0);
16686 if ((ored_words[j] >> i) & 1)
16688 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16689 return (fclose (fp) != 0);
16692 fprintf (fp, "unknown");
16693 return (fclose (fp) != 0);
16697 if ac_fn_c_try_run
"$LINENO"; then :
16698 gl_cv_cc_double_expbit0
=`cat conftest.out`
16700 gl_cv_cc_double_expbit0
="unknown"
16702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16710 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
16711 case "$gl_cv_cc_double_expbit0" in
16713 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16714 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16716 cat >>confdefs.h
<<_ACEOF
16717 #define DBL_EXPBIT0_WORD $word
16721 cat >>confdefs.h
<<_ACEOF
16722 #define DBL_EXPBIT0_BIT $bit
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
16737 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
16738 if ${gl_cv_func_snprintf_retval_c99+:} false
; then :
16739 $as_echo_n "(cached) " >&6
16742 if test "$cross_compiling" = yes; then :
16745 # Guess yes on glibc systems.
16746 *-gnu*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16747 # Guess yes on FreeBSD >= 5.
16748 freebsd
[1-4]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16749 freebsd
* | kfreebsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16750 # Guess yes on Mac OS X >= 10.3.
16751 darwin
[1-6].
*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16752 darwin
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16753 # Guess yes on OpenBSD >= 3.9.
16754 openbsd
[1-2].
* | openbsd3.
[0-8] | openbsd3.
[0-8].
*)
16755 gl_cv_func_snprintf_retval_c99
="guessing no";;
16756 openbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16757 # Guess yes on Solaris >= 2.10.
16758 solaris2.
[1-9][0-9]*) gl_cv_func_printf_sizes_c99
="guessing yes";;
16759 solaris
*) gl_cv_func_printf_sizes_c99
="guessing no";;
16760 # Guess yes on AIX >= 4.
16761 aix
[1-3]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16762 aix
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16763 # Guess yes on NetBSD >= 3.
16764 netbsd
[1-2]* | netbsdelf
[1-2]* | netbsdaout
[1-2]* | netbsdcoff
[1-2]*)
16765 gl_cv_func_snprintf_retval_c99
="guessing no";;
16766 netbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16767 # Guess yes on BeOS.
16768 beos
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16769 # If we don't know, assume the worst.
16770 *) gl_cv_func_snprintf_retval_c99
="guessing no";;
16774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16778 #include <string.h>
16780 # define my_snprintf snprintf
16782 # include <stdarg.h>
16783 static int my_snprintf (char *buf, int size, const char *format, ...)
16787 va_start (args, format);
16788 ret = vsnprintf (buf, size, format, args);
16793 static char buf[100];
16796 strcpy (buf, "ABCDEF");
16797 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
16799 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16801 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16806 if ac_fn_c_try_run
"$LINENO"; then :
16807 gl_cv_func_snprintf_retval_c99
=yes
16809 gl_cv_func_snprintf_retval_c99
=no
16811 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16812 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16818 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
16825 for ac_func
in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16827 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16829 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16830 cat >>confdefs.h
<<_ACEOF
16831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16837 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16839 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
16845 cat >>confdefs.h
<<_ACEOF
16846 #define HAVE_DECL__SNPRINTF $ac_have_decl
16851 case "$gl_cv_func_snprintf_retval_c99" in
16854 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16859 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16860 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
16866 cat >>confdefs.h
<<_ACEOF
16867 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16877 GNULIB_TOWCTRANS
=0;
16881 REPLACE_ISWBLANK
=0;
16889 GL_COND_LIBTOOL_TRUE
=
16890 GL_COND_LIBTOOL_FALSE
='#'
16892 GL_COND_LIBTOOL_TRUE
='#'
16893 GL_COND_LIBTOOL_FALSE
=
16896 gl_cond_libtool
=false
16909 gl_source_base
='grub-core/gnulib'
16912 if test $ac_cv_func_alloca_works = no
; then
16916 # Define an additional variable used in the Makefile substitution.
16917 if test $ac_cv_working_alloca_h = yes; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16919 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16920 if ${gl_cv_rpl_alloca+:} false
; then :
16921 $as_echo_n "(cached) " >&6
16924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16933 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16934 gl_cv_rpl_alloca
=yes
16936 gl_cv_rpl_alloca
=no
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16943 $as_echo "$gl_cv_rpl_alloca" >&6; }
16944 if test $gl_cv_rpl_alloca = yes; then
16946 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16956 if test -n "$ALLOCA_H"; then
16957 GL_GENERATE_ALLOCA_H_TRUE
=
16958 GL_GENERATE_ALLOCA_H_FALSE
='#'
16960 GL_GENERATE_ALLOCA_H_TRUE
='#'
16961 GL_GENERATE_ALLOCA_H_FALSE
=
16970 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16972 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
16978 cat >>confdefs.h
<<_ACEOF
16979 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16981 if test $ac_have_decl = 1; then :
16985 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16989 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16991 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
16997 cat >>confdefs.h
<<_ACEOF
16998 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17000 if test $ac_have_decl = 1; then :
17004 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17009 # Check if program_invocation_name and program_invocation_short_name
17010 # are defined elsewhere. It is improbable that only one of them will
17011 # be defined and other not, I prefer to stay on the safe side and to
17012 # test each one separately.
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17014 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
17015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17021 program_invocation_name = "test";
17026 if ac_fn_c_try_link
"$LINENO"; then :
17028 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17031 $as_echo "yes" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17036 rm -f core conftest.err conftest.
$ac_objext \
17037 conftest
$ac_exeext conftest.
$ac_ext
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17040 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17047 program_invocation_short_name = "test";
17052 if ac_fn_c_try_link
"$LINENO"; then :
17054 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17057 $as_echo "yes" >&6; }
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17062 rm -f core conftest.err conftest.
$ac_objext \
17063 conftest
$ac_exeext conftest.
$ac_ext
17083 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17087 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17095 if test $ac_cv_func_btowc = no
; then
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17103 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17104 if ${gl_cv_func_btowc_nul+:} false
; then :
17105 $as_echo_n "(cached) " >&6
17108 if test "$cross_compiling" = yes; then :
17111 # Guess no on Cygwin.
17112 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17113 # Guess yes otherwise.
17114 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17121 #include <string.h>
17122 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17124 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17125 included before <wchar.h>. */
17126 #include <stddef.h>
17132 if (btowc ('\0') != 0)
17137 if ac_fn_c_try_run
"$LINENO"; then :
17138 gl_cv_func_btowc_nul
=yes
17140 gl_cv_func_btowc_nul
=no
17142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17149 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17152 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17153 if ${gl_cv_func_btowc_eof+:} false
; then :
17154 $as_echo_n "(cached) " >&6
17158 # Guess no on IRIX.
17159 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17160 # Guess yes otherwise.
17161 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17163 if test $LOCALE_FR != none
; then
17164 if test "$cross_compiling" = yes; then :
17167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17170 #include <locale.h>
17171 #include <string.h>
17172 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17174 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17175 included before <wchar.h>. */
17176 #include <stddef.h>
17182 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17184 if (btowc (EOF) != WEOF)
17190 if ac_fn_c_try_run
"$LINENO"; then :
17191 gl_cv_func_btowc_eof
=yes
17193 gl_cv_func_btowc_eof
=no
17195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17203 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17205 case "$gl_cv_func_btowc_nul" in
17207 *) REPLACE_BTOWC
=1 ;;
17209 case "$gl_cv_func_btowc_eof" in
17211 *) REPLACE_BTOWC
=1 ;;
17215 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17224 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17241 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17246 if test "x$datarootdir" = x
; then
17247 datarootdir
='${datadir}'
17250 if test "x$docdir" = x
; then
17251 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
17254 if test "x$htmldir" = x
; then
17255 htmldir
='${docdir}'
17258 if test "x$dvidir" = x
; then
17262 if test "x$pdfdir" = x
; then
17266 if test "x$psdir" = x
; then
17270 if test "x$lispdir" = x
; then
17271 lispdir
='${datarootdir}/emacs/site-lisp'
17274 if test "x$localedir" = x
; then
17275 localedir
='${datarootdir}/locale'
17279 pkglibexecdir
='${libexecdir}/${PACKAGE}'
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17289 $as_echo_n "checking whether // is distinct from /... " >&6; }
17290 if ${gl_cv_double_slash_root+:} false
; then :
17291 $as_echo_n "(cached) " >&6
17293 if test x
"$cross_compiling" = xyes
; then
17294 # When cross-compiling, there is no way to tell whether // is special
17295 # short of a list of hosts. However, the only known hosts to date
17296 # that have a distinct // are Apollo DomainOS (too old to port to),
17297 # Cygwin, and z/OS. If anyone knows of another system for which // has
17298 # special semantics and is distinct from /, please report it to
17299 # <bug-gnulib@gnu.org>.
17301 *-cygwin | i370-ibm-openedition
)
17302 gl_cv_double_slash_root
=yes ;;
17304 # Be optimistic and assume that / and // are the same when we
17306 gl_cv_double_slash_root
='unknown, assuming no' ;;
17309 set x
`ls -di / // 2>/dev/null`
17310 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17311 gl_cv_double_slash_root
=no
17313 gl_cv_double_slash_root
=yes
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17318 $as_echo "$gl_cv_double_slash_root" >&6; }
17319 if test "$gl_cv_double_slash_root" = yes; then
17321 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17328 $as_echo_n "checking for error_at_line... " >&6; }
17329 if ${ac_cv_lib_error_at_line+:} false
; then :
17330 $as_echo_n "(cached) " >&6
17332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17338 error_at_line (0, 0, "", 0, "an error occurred");
17343 if ac_fn_c_try_link
"$LINENO"; then :
17344 ac_cv_lib_error_at_line
=yes
17346 ac_cv_lib_error_at_line
=no
17348 rm -f core conftest.err conftest.
$ac_objext \
17349 conftest
$ac_exeext conftest.
$ac_ext
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17352 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17354 if test $ac_cv_lib_error_at_line = no
; then
17363 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17372 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17376 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17383 REPLACE_FLOAT_LDBL
=0
17385 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
17389 case "$host_cpu" in
17394 # On x86_64 systems, the C compiler may still be generating
17396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
17402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17403 $EGREP "yes" >/dev
/null
2>&1; then :
17414 case "$host_cpu" in
17422 aix
* | freebsd
* | linux
*)
17423 if test -n "$FLOAT_H"; then
17424 REPLACE_FLOAT_LDBL
=1
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17431 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17432 if ${gl_cv_func_itold_works+:} false
; then :
17433 $as_echo_n "(cached) " >&6
17436 if test "$cross_compiling" = yes; then :
17439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #if defined __LP64__ || defined __arch64__
17445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17446 $EGREP "yes" >/dev
/null
2>&1; then :
17447 gl_cv_func_itold_works
="guessing no"
17449 gl_cv_func_itold_works
="guessing yes"
17454 *) gl_cv_func_itold_works
="guessing yes" ;;
17458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17462 volatile long double ld;
17471 if ac_fn_c_try_run
"$LINENO"; then :
17472 gl_cv_func_itold_works
=yes
17474 gl_cv_func_itold_works
=no
17476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17483 $as_echo "$gl_cv_func_itold_works" >&6; }
17484 case "$gl_cv_func_itold_works" in
17491 if test -n "$FLOAT_H"; then
17500 if test $gl_cv_have_include_next = yes; then
17501 gl_cv_next_float_h
='<'float.h
'>'
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17504 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17505 if ${gl_cv_next_float_h+:} false
; then :
17506 $as_echo_n "(cached) " >&6
17509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17515 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17516 *) gl_absname_cpp
="$ac_cpp" ;;
17521 gl_dirsep_regex
='[/\\]'
17524 gl_dirsep_regex
='\/'
17527 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17529 gl_header_literal_regex
=`echo 'float.h' \
17530 | sed -e "$gl_make_literal_regex_sed"`
17531 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17532 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17537 gl_cv_next_float_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17538 sed -n "$gl_absolute_header_sed"`'"'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17543 $as_echo "$gl_cv_next_float_h" >&6; }
17545 NEXT_FLOAT_H
=$gl_cv_next_float_h
17547 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive
='<'float.h
'>'
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive
=$gl_cv_next_float_h
17554 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
17561 if test -n "$FLOAT_H"; then
17562 GL_GENERATE_FLOAT_H_TRUE
=
17563 GL_GENERATE_FLOAT_H_FALSE
='#'
17565 GL_GENERATE_FLOAT_H_TRUE
='#'
17566 GL_GENERATE_FLOAT_H_FALSE
=
17571 if test $REPLACE_FLOAT_LDBL = 1; then
17580 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
17583 if test $REPLACE_ITOLD = 1; then
17592 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
17601 gl_fnmatch_required_lowercase
=`
17602 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17604 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17606 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17607 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
17608 $as_echo_n "(cached) " >&6
17610 if test $gl_fnmatch_required = GNU
; then
17611 gl_fnmatch_gnu_start
=
17612 gl_fnmatch_gnu_end
=
17614 gl_fnmatch_gnu_start
='#if 0'
17615 gl_fnmatch_gnu_end
='#endif'
17617 if test "$cross_compiling" = yes; then :
17618 eval "$gl_fnmatch_cache_var=\"guessing no\""
17620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 #include <fnmatch.h>
17624 y (char const *pattern, char const *string, int flags)
17626 return fnmatch (pattern, string, flags) == 0;
17629 n (char const *pattern, char const *string, int flags)
17631 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17637 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17638 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17639 static char const A_1[] = { 'A' - 1, 0 };
17640 static char const A01[] = { 'A' + 1, 0 };
17641 static char const a_1[] = { 'a' - 1, 0 };
17642 static char const a01[] = { 'a' + 1, 0 };
17643 static char const bs_1[] = { '\\\\' - 1, 0 };
17644 static char const bs01[] = { '\\\\' + 1, 0 };
17646 if (!n ("a*", "", 0))
17648 if (!y ("a*", "abc", 0))
17650 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17652 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17654 if (!y ("a\\\\bc", "abc", 0))
17656 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17658 if (!y ("*x", ".x", 0))
17660 if (!n ("*x", ".x", FNM_PERIOD))
17662 if (!y (Apat, "\\\\", 0))
17664 if (!y (Apat, "A", 0))
17666 if (!y (apat, "\\\\", 0))
17668 if (!y (apat, "a", 0))
17670 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17672 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17674 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17676 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17678 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17680 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17682 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17684 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17686 $gl_fnmatch_gnu_start
17687 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17689 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17691 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17693 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17695 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17697 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17699 $gl_fnmatch_gnu_end
17706 if ac_fn_c_try_run
"$LINENO"; then :
17707 eval "$gl_fnmatch_cache_var=yes"
17709 eval "$gl_fnmatch_cache_var=no"
17711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17717 eval ac_res
=\$
$gl_fnmatch_cache_var
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17719 $as_echo "$ac_res" >&6; }
17720 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17721 if test "$gl_fnmatch_result" = yes; then
17722 rm -f "$gl_source_base/fnmatch.h"
17724 FNMATCH_H
=fnmatch.h
17727 if test -n "$FNMATCH_H"; then
17728 GL_GENERATE_FNMATCH_H_TRUE
=
17729 GL_GENERATE_FNMATCH_H_FALSE
='#'
17731 GL_GENERATE_FNMATCH_H_TRUE
='#'
17732 GL_GENERATE_FNMATCH_H_FALSE
=
17736 if test -n "$FNMATCH_H"; then
17745 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
17749 cat >>confdefs.h
<<_ACEOF
17750 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17754 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17756 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17762 cat >>confdefs.h
<<_ACEOF
17763 #define HAVE_DECL_ISBLANK $ac_have_decl
17778 if test $ac_cv_func_getdelim = yes; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
17781 $as_echo_n "checking for working getdelim function... " >&6; }
17782 if ${gl_cv_func_working_getdelim+:} false
; then :
17783 $as_echo_n "(cached) " >&6
17785 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
17786 if test "$cross_compiling" = yes; then :
17787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17790 #include <features.h>
17791 #ifdef __GNU_LIBRARY__
17792 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17799 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
17800 gl_cv_func_working_getdelim
="guessing yes"
17802 gl_cv_func_working_getdelim
="guessing no"
17808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 # include <stdio.h>
17812 # include <stdlib.h>
17813 # include <string.h>
17816 FILE *in = fopen ("./conftest.data", "r");
17820 /* Test result for a NULL buffer and a zero size.
17821 Based on a test program from Karl Heuer. */
17824 int len = getdelim (&line, &siz, '\n', in);
17825 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17829 /* Test result for a NULL buffer and a non-zero size.
17830 This crashes on FreeBSD 8.0. */
17832 size_t siz = (size_t)(~0) / 4;
17833 if (getdelim (&line, &siz, '\n', in) == -1)
17840 if ac_fn_c_try_run
"$LINENO"; then :
17841 gl_cv_func_working_getdelim
=yes
17843 gl_cv_func_working_getdelim
=no
17845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
17851 $as_echo "$gl_cv_func_working_getdelim" >&6; }
17852 case "$gl_cv_func_working_getdelim" in
17861 if test $ac_cv_have_decl_getdelim = no
; then
17862 HAVE_DECL_GETDELIM
=0
17865 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
17874 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
17877 for ac_func
in flockfile funlockfile
17879 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17880 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17881 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17882 cat >>confdefs.h
<<_ACEOF
17883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17889 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
17890 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
17896 cat >>confdefs.h
<<_ACEOF
17897 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
17913 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
17924 gl_getline_needs_run_time_check
=no
17925 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
17926 if test "x$ac_cv_func_getline" = xyes
; then :
17927 gl_getline_needs_run_time_check
=yes
17929 am_cv_func_working_getline
=no
17932 if test $gl_getline_needs_run_time_check = yes; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
17934 $as_echo_n "checking for working getline function... " >&6; }
17935 if ${am_cv_func_working_getline+:} false
; then :
17936 $as_echo_n "(cached) " >&6
17938 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
17939 if test "$cross_compiling" = yes; then :
17940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17943 #include <features.h>
17944 #ifdef __GNU_LIBRARY__
17945 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17952 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
17953 am_cv_func_working_getline
="guessing yes"
17955 am_cv_func_working_getline
="guessing no"
17961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17964 # include <stdio.h>
17965 # include <stdlib.h>
17966 # include <string.h>
17969 FILE *in = fopen ("./conftest.data", "r");
17973 /* Test result for a NULL buffer and a zero size.
17974 Based on a test program from Karl Heuer. */
17977 int len = getline (&line, &siz, in);
17978 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17982 /* Test result for a NULL buffer and a non-zero size.
17983 This crashes on FreeBSD 8.0. */
17985 size_t siz = (size_t)(~0) / 4;
17986 if (getline (&line, &siz, in) == -1)
17993 if ac_fn_c_try_run
"$LINENO"; then :
17994 am_cv_func_working_getline
=yes
17996 am_cv_func_working_getline
=no
17998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
18004 $as_echo "$am_cv_func_working_getline" >&6; }
18007 if test $ac_cv_have_decl_getline = no
; then
18008 HAVE_DECL_GETLINE
=0
18011 case "$am_cv_func_working_getline" in
18017 if test $REPLACE_GETLINE = 1; then
18026 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
18043 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
18052 if test $REPLACE_GETOPT = 1; then
18061 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
18071 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
18076 GNULIB_GL_UNISTD_H_GETOPT
=1
18081 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18091 if test $REPLACE_GETOPT = 1; then
18095 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18101 if test $REPLACE_GETOPT = 1; then
18110 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
18120 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
18125 GNULIB_GL_UNISTD_H_GETOPT
=1
18145 if test $gl_cv_have_include_next = yes; then
18146 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
18149 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
18150 if ${gl_cv_next_langinfo_h+:} false
; then :
18151 $as_echo_n "(cached) " >&6
18154 if test $ac_cv_header_langinfo_h = yes; then
18157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 #include <langinfo.h>
18163 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18164 *) gl_absname_cpp
="$ac_cpp" ;;
18169 gl_dirsep_regex
='[/\\]'
18172 gl_dirsep_regex
='\/'
18175 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18177 gl_header_literal_regex
=`echo 'langinfo.h' \
18178 | sed -e "$gl_make_literal_regex_sed"`
18179 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18185 gl_cv_next_langinfo_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18186 sed -n "$gl_absolute_header_sed"`'"'
18188 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
18194 $as_echo "$gl_cv_next_langinfo_h" >&6; }
18196 NEXT_LANGINFO_H
=$gl_cv_next_langinfo_h
18198 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18200 gl_next_as_first_directive
='<'langinfo.h
'>'
18202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18203 gl_next_as_first_directive
=$gl_cv_next_langinfo_h
18205 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
=$gl_next_as_first_directive
18211 HAVE_LANGINFO_CODESET
=0
18212 HAVE_LANGINFO_T_FMT_AMPM
=0
18213 HAVE_LANGINFO_ERA
=0
18214 HAVE_LANGINFO_YESEXPR
=0
18216 if test $ac_cv_header_langinfo_h = yes; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
18219 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
18220 if ${gl_cv_header_langinfo_codeset+:} false
; then :
18221 $as_echo_n "(cached) " >&6
18223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #include <langinfo.h>
18236 if ac_fn_c_try_compile
"$LINENO"; then :
18237 gl_cv_header_langinfo_codeset
=yes
18239 gl_cv_header_langinfo_codeset
=no
18241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
18245 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
18246 if test $gl_cv_header_langinfo_codeset = yes; then
18247 HAVE_LANGINFO_CODESET
=1
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
18250 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
18251 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false
; then :
18252 $as_echo_n "(cached) " >&6
18254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256 #include <langinfo.h>
18257 int a = T_FMT_AMPM;
18267 if ac_fn_c_try_compile
"$LINENO"; then :
18268 gl_cv_header_langinfo_t_fmt_ampm
=yes
18270 gl_cv_header_langinfo_t_fmt_ampm
=no
18272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
18276 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
18277 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
18278 HAVE_LANGINFO_T_FMT_AMPM
=1
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
18281 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
18282 if ${gl_cv_header_langinfo_era+:} false
; then :
18283 $as_echo_n "(cached) " >&6
18285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <langinfo.h>
18298 if ac_fn_c_try_compile
"$LINENO"; then :
18299 gl_cv_header_langinfo_era
=yes
18301 gl_cv_header_langinfo_era
=no
18303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
18307 $as_echo "$gl_cv_header_langinfo_era" >&6; }
18308 if test $gl_cv_header_langinfo_era = yes; then
18309 HAVE_LANGINFO_ERA
=1
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
18312 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
18313 if ${gl_cv_header_langinfo_yesexpr+:} false
; then :
18314 $as_echo_n "(cached) " >&6
18316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18318 #include <langinfo.h>
18329 if ac_fn_c_try_compile
"$LINENO"; then :
18330 gl_cv_header_langinfo_yesexpr
=yes
18332 gl_cv_header_langinfo_yesexpr
=no
18334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
18338 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
18339 if test $gl_cv_header_langinfo_yesexpr = yes; then
18340 HAVE_LANGINFO_YESEXPR
=1
18352 for gl_func
in nl_langinfo
; do
18353 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18355 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18356 if eval \
${$as_gl_Symbol+:} false
; then :
18357 $as_echo_n "(cached) " >&6
18359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361 #include <langinfo.h>
18372 if ac_fn_c_try_compile
"$LINENO"; then :
18373 eval "$as_gl_Symbol=yes"
18375 eval "$as_gl_Symbol=no"
18377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18379 eval ac_res
=\$
$as_gl_Symbol
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18381 $as_echo "$ac_res" >&6; }
18382 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18383 cat >>confdefs.h
<<_ACEOF
18384 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18387 eval ac_cv_have_decl_
$gl_func=yes
18400 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18413 $as_echo "#define _LCONV_C99 1" >>confdefs.h
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
18419 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
18420 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
18421 $as_echo_n "(cached) " >&6
18423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18425 #include <locale.h>
18426 int x = LC_MESSAGES;
18427 int y = sizeof (((struct lconv *) 0)->decimal_point);
18436 if ac_fn_c_try_compile
"$LINENO"; then :
18437 gl_cv_header_locale_h_posix2001
=yes
18439 gl_cv_header_locale_h_posix2001
=no
18441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
18444 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
18447 if test $ac_cv_header_xlocale_h = yes; then
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
18450 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
18451 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
18452 $as_echo_n "(cached) " >&6
18454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 #include <locale.h>
18466 if ac_fn_c_try_compile
"$LINENO"; then :
18467 gl_cv_header_locale_has_locale_t
=yes
18469 gl_cv_header_locale_has_locale_t
=no
18471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
18475 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
18476 if test $gl_cv_header_locale_has_locale_t = yes; then
18477 gl_cv_header_locale_h_needs_xlocale_h
=no
18479 gl_cv_header_locale_h_needs_xlocale_h
=yes
18483 gl_cv_header_locale_h_needs_xlocale_h
=no
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
18488 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
18489 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
18490 $as_echo_n "(cached) " >&6
18492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 #include <locale.h>
18496 int x = sizeof (l.decimal_point);
18497 int y = sizeof (l.int_p_cs_precedes);
18506 if ac_fn_c_try_compile
"$LINENO"; then :
18507 gl_cv_sys_struct_lconv_ok
=yes
18509 gl_cv_sys_struct_lconv_ok
=no
18511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
18515 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
18516 if test $gl_cv_sys_struct_lconv_ok = no
; then
18517 REPLACE_STRUCT_LCONV
=1
18528 if test $gl_cv_have_include_next = yes; then
18529 gl_cv_next_locale_h
='<'locale.h
'>'
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
18532 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
18533 if ${gl_cv_next_locale_h+:} false
; then :
18534 $as_echo_n "(cached) " >&6
18537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 #include <locale.h>
18543 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18544 *) gl_absname_cpp
="$ac_cpp" ;;
18549 gl_dirsep_regex
='[/\\]'
18552 gl_dirsep_regex
='\/'
18555 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18557 gl_header_literal_regex
=`echo 'locale.h' \
18558 | sed -e "$gl_make_literal_regex_sed"`
18559 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18560 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18565 gl_cv_next_locale_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18566 sed -n "$gl_absolute_header_sed"`'"'
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
18571 $as_echo "$gl_cv_next_locale_h" >&6; }
18573 NEXT_LOCALE_H
=$gl_cv_next_locale_h
18575 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18576 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18577 gl_next_as_first_directive
='<'locale.h
'>'
18579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18580 gl_next_as_first_directive
=$gl_cv_next_locale_h
18582 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
18589 for gl_func
in setlocale duplocale
; do
18590 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18592 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18593 if eval \
${$as_gl_Symbol+:} false
; then :
18594 $as_echo_n "(cached) " >&6
18596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 #include <locale.h>
18599 /* Some systems provide declarations in a non-standard header. */
18601 # include <xlocale.h>
18613 if ac_fn_c_try_compile
"$LINENO"; then :
18614 eval "$as_gl_Symbol=yes"
18616 eval "$as_gl_Symbol=no"
18618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18620 eval ac_res
=\$
$as_gl_Symbol
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18622 $as_echo "$ac_res" >&6; }
18623 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18624 cat >>confdefs.h
<<_ACEOF
18625 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18628 eval ac_cv_have_decl_
$gl_func=yes
18637 if test $REPLACE_STRUCT_LCONV = 1; then
18638 REPLACE_LOCALECONV
=1
18641 if test $REPLACE_LOCALECONV = 1; then
18650 gl_LIBOBJS
="$gl_LIBOBJS localeconv.$ac_objext"
18653 ac_fn_c_check_member
"$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
18655 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
; then :
18657 cat >>confdefs.h
<<_ACEOF
18658 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
18671 GNULIB_LOCALECONV
=1
18677 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
18684 for ac_header
in stdlib.h
18686 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18687 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
18688 cat >>confdefs.h
<<_ACEOF
18689 #define HAVE_STDLIB_H 1
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18697 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18698 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
18699 $as_echo_n "(cached) " >&6
18701 if test "$cross_compiling" = yes; then :
18703 # Guess yes on platforms where we know the result.
18704 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
18705 | hpux
* | solaris
* | cygwin
* | mingw
*)
18706 ac_cv_func_malloc_0_nonnull
=yes ;;
18707 # If we don't know, assume the worst.
18708 *) ac_cv_func_malloc_0_nonnull
=no
;;
18712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18715 # include <stdlib.h>
18723 return ! malloc (0);
18729 if ac_fn_c_try_run
"$LINENO"; then :
18730 ac_cv_func_malloc_0_nonnull
=yes
18732 ac_cv_func_malloc_0_nonnull
=no
18734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18741 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18742 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18744 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
18747 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
18754 if test $REPLACE_MALLOC = 1; then
18763 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18768 cat >>confdefs.h
<<_ACEOF
18769 #define GNULIB_MALLOC_GNU 1
18776 if test $gl_cv_func_malloc_posix = yes; then
18778 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18784 if test $REPLACE_MALLOC = 1; then
18793 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18801 GNULIB_MALLOC_POSIX
=1
18807 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18821 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18826 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18827 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
18828 $as_echo_n "(cached) " >&6
18832 # Guess no on AIX and OSF/1.
18833 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18834 # Guess yes otherwise.
18835 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18837 if test $LOCALE_JA != none
; then
18838 if test "$cross_compiling" = yes; then :
18841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18844 #include <locale.h>
18845 #include <string.h>
18846 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18848 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18849 included before <wchar.h>. */
18850 #include <stddef.h>
18856 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18858 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18862 memset (&state, '\0', sizeof (mbstate_t));
18863 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18864 if (mbsinit (&state))
18870 if ac_fn_c_try_run
"$LINENO"; then :
18871 gl_cv_func_mbrtowc_incomplete_state
=yes
18873 gl_cv_func_mbrtowc_incomplete_state
=no
18875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18883 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18889 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18890 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
18891 $as_echo_n "(cached) " >&6
18895 # Guess no on Solaris 8.
18896 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18897 # Guess yes otherwise.
18898 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18900 if test $LOCALE_ZH_CN != none
; then
18901 if test "$cross_compiling" = yes; then :
18904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 #include <locale.h>
18908 #include <stdlib.h>
18909 #include <string.h>
18910 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18912 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18913 included before <wchar.h>. */
18914 #include <stddef.h>
18920 /* This fails on Solaris 8:
18921 mbrtowc returns 2, and sets wc to 0x00F0.
18922 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18923 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18925 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18929 memset (&state, '\0', sizeof (mbstate_t));
18930 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18931 && mbtowc (&wc, input + 3, 6) == 4)
18937 if ac_fn_c_try_run
"$LINENO"; then :
18938 gl_cv_func_mbrtowc_sanitycheck
=yes
18940 gl_cv_func_mbrtowc_sanitycheck
=no
18942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18943 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18950 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18952 REPLACE_MBSTATE_T
=0
18953 case "$gl_cv_func_mbrtowc_incomplete_state" in
18955 *) REPLACE_MBSTATE_T
=1 ;;
18957 case "$gl_cv_func_mbrtowc_sanitycheck" in
18959 *) REPLACE_MBSTATE_T
=1 ;;
18962 REPLACE_MBSTATE_T
=1
18967 if test $ac_cv_func_mbrtowc = no
; then
18969 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18970 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18972 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18973 included before <wchar.h>. */
18974 #include <stddef.h>
18980 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
18986 cat >>confdefs.h
<<_ACEOF
18987 #define HAVE_DECL_MBRTOWC $ac_have_decl
18990 if test $ac_cv_have_decl_mbrtowc = yes; then
18994 if test $REPLACE_MBSTATE_T = 1; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19001 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19002 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
19003 $as_echo_n "(cached) " >&6
19007 # Guess no on Solaris.
19008 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
19009 # Guess yes otherwise.
19010 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
19012 if test $LOCALE_FR_UTF8 != none
; then
19013 if test "$cross_compiling" = yes; then :
19016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19019 #include <locale.h>
19020 #include <stdlib.h>
19021 #include <string.h>
19022 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19024 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19025 included before <wchar.h>. */
19026 #include <stddef.h>
19034 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19036 char input[] = "\303\237er";
19041 memset (&state, '\0', sizeof (mbstate_t));
19042 wc = (wchar_t) 0xBADFACE;
19043 ret = mbrtowc (&wc, input, 5, &state);
19046 if (!mbsinit (&state))
19049 memset (&state, '\0', sizeof (mbstate_t));
19050 ret = mbrtowc (NULL, input, 5, &state);
19051 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19053 if (!mbsinit (&state))
19059 if ac_fn_c_try_run
"$LINENO"; then :
19060 gl_cv_func_mbrtowc_null_arg1
=yes
19062 gl_cv_func_mbrtowc_null_arg1
=no
19064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19072 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19078 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19079 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
19080 $as_echo_n "(cached) " >&6
19084 # Guess no on OSF/1.
19085 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
19086 # Guess yes otherwise.
19087 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
19089 if test $LOCALE_FR_UTF8 != none
; then
19090 if test "$cross_compiling" = yes; then :
19093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19096 #include <locale.h>
19097 #include <string.h>
19098 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19100 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19101 included before <wchar.h>. */
19102 #include <stddef.h>
19108 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19114 memset (&state, '\0', sizeof (mbstate_t));
19115 wc = (wchar_t) 0xBADFACE;
19116 mbrtowc (&wc, NULL, 5, &state);
19117 /* Check that wc was not modified. */
19118 if (wc != (wchar_t) 0xBADFACE)
19124 if ac_fn_c_try_run
"$LINENO"; then :
19125 gl_cv_func_mbrtowc_null_arg2
=yes
19127 gl_cv_func_mbrtowc_null_arg2
=no
19129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19137 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19145 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19146 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
19147 $as_echo_n "(cached) " >&6
19151 # Guess no on HP-UX, Solaris, native Windows.
19152 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
19153 # Guess yes otherwise.
19154 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
19156 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
19157 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
19158 if test "$cross_compiling" = yes; then :
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19164 #include <locale.h>
19165 #include <string.h>
19166 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19168 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19169 included before <wchar.h>. */
19170 #include <stddef.h>
19177 int found_some_locale = 0;
19178 /* This fails on Solaris. */
19179 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19181 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19185 memset (&state, '\0', sizeof (mbstate_t));
19186 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19189 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19192 found_some_locale = 1;
19194 /* This fails on HP-UX 11.11. */
19195 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19197 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19201 memset (&state, '\0', sizeof (mbstate_t));
19202 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19205 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19208 found_some_locale = 1;
19210 /* This fails on native Windows. */
19211 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19213 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19217 memset (&state, '\0', sizeof (mbstate_t));
19218 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19221 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19224 found_some_locale = 1;
19226 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19228 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19232 memset (&state, '\0', sizeof (mbstate_t));
19233 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19236 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19239 found_some_locale = 1;
19241 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19243 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19247 memset (&state, '\0', sizeof (mbstate_t));
19248 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19251 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19254 found_some_locale = 1;
19256 return (found_some_locale ? result : 77);
19259 if ac_fn_c_try_run
"$LINENO"; then :
19260 gl_cv_func_mbrtowc_retval
=yes
19262 if test $?
!= 77; then
19263 gl_cv_func_mbrtowc_retval
=no
19267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19275 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19281 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19282 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
19283 $as_echo_n "(cached) " >&6
19287 # Guess no on Solaris 8 and 9.
19288 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
19289 # Guess yes otherwise.
19290 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
19292 if test $LOCALE_ZH_CN != none
; then
19293 if test "$cross_compiling" = yes; then :
19296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19299 #include <locale.h>
19300 #include <string.h>
19301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19304 included before <wchar.h>. */
19305 #include <stddef.h>
19311 /* This fails on Solaris 8 and 9. */
19312 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19317 memset (&state, '\0', sizeof (mbstate_t));
19318 if (mbrtowc (&wc, "", 1, &state) != 0)
19324 if ac_fn_c_try_run
"$LINENO"; then :
19325 gl_cv_func_mbrtowc_nul_retval
=yes
19327 gl_cv_func_mbrtowc_nul_retval
=no
19329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19337 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19339 case "$gl_cv_func_mbrtowc_null_arg1" in
19342 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19347 case "$gl_cv_func_mbrtowc_null_arg2" in
19350 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19355 case "$gl_cv_func_mbrtowc_retval" in
19358 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19363 case "$gl_cv_func_mbrtowc_nul_retval" in
19366 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19374 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
19383 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
19400 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19415 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19420 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19421 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19422 $as_echo_n "(cached) " >&6
19426 # Guess no on AIX and OSF/1.
19427 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19428 # Guess yes otherwise.
19429 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19431 if test $LOCALE_JA != none
; then
19432 if test "$cross_compiling" = yes; then :
19435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19438 #include <locale.h>
19439 #include <string.h>
19440 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19442 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19443 included before <wchar.h>. */
19444 #include <stddef.h>
19450 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19452 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19456 memset (&state, '\0', sizeof (mbstate_t));
19457 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19458 if (mbsinit (&state))
19464 if ac_fn_c_try_run
"$LINENO"; then :
19465 gl_cv_func_mbrtowc_incomplete_state
=yes
19467 gl_cv_func_mbrtowc_incomplete_state
=no
19469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19484 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19485 $as_echo_n "(cached) " >&6
19489 # Guess no on Solaris 8.
19490 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19491 # Guess yes otherwise.
19492 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19494 if test $LOCALE_ZH_CN != none
; then
19495 if test "$cross_compiling" = yes; then :
19498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19501 #include <locale.h>
19502 #include <stdlib.h>
19503 #include <string.h>
19504 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19506 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19507 included before <wchar.h>. */
19508 #include <stddef.h>
19514 /* This fails on Solaris 8:
19515 mbrtowc returns 2, and sets wc to 0x00F0.
19516 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19517 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19519 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19523 memset (&state, '\0', sizeof (mbstate_t));
19524 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19525 && mbtowc (&wc, input + 3, 6) == 4)
19531 if ac_fn_c_try_run
"$LINENO"; then :
19532 gl_cv_func_mbrtowc_sanitycheck
=yes
19534 gl_cv_func_mbrtowc_sanitycheck
=no
19536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19544 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19546 REPLACE_MBSTATE_T
=0
19547 case "$gl_cv_func_mbrtowc_incomplete_state" in
19549 *) REPLACE_MBSTATE_T
=1 ;;
19551 case "$gl_cv_func_mbrtowc_sanitycheck" in
19553 *) REPLACE_MBSTATE_T
=1 ;;
19556 REPLACE_MBSTATE_T
=1
19561 if test $ac_cv_func_mbsinit = no
; then
19563 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19564 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19566 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19567 included before <wchar.h>. */
19568 #include <stddef.h>
19574 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
19580 cat >>confdefs.h
<<_ACEOF
19581 #define HAVE_DECL_MBSINIT $ac_have_decl
19584 if test $ac_cv_have_decl_mbsinit = yes; then
19588 if test $REPLACE_MBSTATE_T = 1; then
19592 mingw
*) REPLACE_MBSINIT
=1 ;;
19597 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
19606 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
19623 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
19637 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19642 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19643 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19644 $as_echo_n "(cached) " >&6
19648 # Guess no on AIX and OSF/1.
19649 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19650 # Guess yes otherwise.
19651 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19653 if test $LOCALE_JA != none
; then
19654 if test "$cross_compiling" = yes; then :
19657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19660 #include <locale.h>
19661 #include <string.h>
19662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19664 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19665 included before <wchar.h>. */
19666 #include <stddef.h>
19672 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19674 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19678 memset (&state, '\0', sizeof (mbstate_t));
19679 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19680 if (mbsinit (&state))
19686 if ac_fn_c_try_run
"$LINENO"; then :
19687 gl_cv_func_mbrtowc_incomplete_state
=yes
19689 gl_cv_func_mbrtowc_incomplete_state
=no
19691 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19692 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19699 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19705 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19706 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19707 $as_echo_n "(cached) " >&6
19711 # Guess no on Solaris 8.
19712 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19713 # Guess yes otherwise.
19714 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19716 if test $LOCALE_ZH_CN != none
; then
19717 if test "$cross_compiling" = yes; then :
19720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19723 #include <locale.h>
19724 #include <stdlib.h>
19725 #include <string.h>
19726 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19728 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19729 included before <wchar.h>. */
19730 #include <stddef.h>
19736 /* This fails on Solaris 8:
19737 mbrtowc returns 2, and sets wc to 0x00F0.
19738 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19739 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19741 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19745 memset (&state, '\0', sizeof (mbstate_t));
19746 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19747 && mbtowc (&wc, input + 3, 6) == 4)
19753 if ac_fn_c_try_run
"$LINENO"; then :
19754 gl_cv_func_mbrtowc_sanitycheck
=yes
19756 gl_cv_func_mbrtowc_sanitycheck
=no
19758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19766 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19768 REPLACE_MBSTATE_T
=0
19769 case "$gl_cv_func_mbrtowc_incomplete_state" in
19771 *) REPLACE_MBSTATE_T
=1 ;;
19773 case "$gl_cv_func_mbrtowc_sanitycheck" in
19775 *) REPLACE_MBSTATE_T
=1 ;;
19778 REPLACE_MBSTATE_T
=1
19783 if test $ac_cv_func_mbsrtowcs = no
; then
19785 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19786 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19788 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19789 included before <wchar.h>. */
19790 #include <stddef.h>
19796 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
19802 cat >>confdefs.h
<<_ACEOF
19803 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19806 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19807 REPLACE_MBSRTOWCS
=1
19810 if test $REPLACE_MBSTATE_T = 1; then
19811 REPLACE_MBSRTOWCS
=1
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19820 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19821 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
19822 $as_echo_n "(cached) " >&6
19826 # Guess no on HP-UX, Solaris, mingw.
19827 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
19828 # Guess yes otherwise.
19829 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
19831 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
19832 if test "$cross_compiling" = yes; then :
19835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19838 #include <locale.h>
19839 #include <string.h>
19840 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19842 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19843 included before <wchar.h>. */
19844 #include <stddef.h>
19851 /* Test whether the function supports a NULL destination argument.
19852 This fails on native Windows. */
19853 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19855 const char input[] = "\337er";
19856 const char *src = input;
19859 memset (&state, '\0', sizeof (mbstate_t));
19860 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19864 /* Test whether the function works when started with a conversion state
19865 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19866 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19868 const char input[] = "B\303\274\303\237er";
19871 memset (&state, '\0', sizeof (mbstate_t));
19872 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19873 if (!mbsinit (&state))
19875 const char *src = input + 2;
19876 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19880 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19882 const char input[] = "<\306\374\313\334\270\354>";
19885 memset (&state, '\0', sizeof (mbstate_t));
19886 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19887 if (!mbsinit (&state))
19889 const char *src = input + 4;
19890 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19894 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19896 const char input[] = "B\250\271\201\060\211\070er";
19899 memset (&state, '\0', sizeof (mbstate_t));
19900 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19901 if (!mbsinit (&state))
19903 const char *src = input + 2;
19904 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19911 if ac_fn_c_try_run
"$LINENO"; then :
19912 gl_cv_func_mbsrtowcs_works
=yes
19914 gl_cv_func_mbsrtowcs_works
=no
19916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19924 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19926 case "$gl_cv_func_mbsrtowcs_works" in
19928 *) REPLACE_MBSRTOWCS
=1 ;;
19933 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
19942 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19952 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19969 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
19978 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
19979 if ${ac_cv_have_decl_mbswidth+:} false
; then :
19980 $as_echo_n "(cached) " >&6
19982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19987 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19988 before <wchar.h>. */
19989 #include <stddef.h>
19998 char *p = (char *) mbswidth;
20005 if ac_fn_c_try_compile
"$LINENO"; then :
20006 ac_cv_have_decl_mbswidth
=yes
20008 ac_cv_have_decl_mbswidth
=no
20010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
20013 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
20014 if test $ac_cv_have_decl_mbswidth = yes; then
20020 cat >>confdefs.h
<<_ACEOF
20021 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20028 $as_echo_n "checking for mbstate_t... " >&6; }
20029 if ${ac_cv_type_mbstate_t+:} false
; then :
20030 $as_echo_n "(cached) " >&6
20032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034 $ac_includes_default
20035 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20037 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20038 included before <wchar.h>. */
20039 #include <stddef.h>
20046 mbstate_t x; return sizeof x;
20051 if ac_fn_c_try_compile
"$LINENO"; then :
20052 ac_cv_type_mbstate_t
=yes
20054 ac_cv_type_mbstate_t
=no
20056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20059 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20060 if test $ac_cv_type_mbstate_t = yes; then
20062 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20066 $as_echo "#define mbstate_t int" >>confdefs.h
20078 if test $REPLACE_MBTOWC = 1; then
20087 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
20104 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20109 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
20118 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
20121 for ac_header
in bp-sym.h
20123 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20124 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
20125 cat >>confdefs.h
<<_ACEOF
20126 #define HAVE_BP_SYM_H 1
20146 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20156 for ac_func
in mempcpy
20158 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20159 if test "x$ac_cv_func_mempcpy" = xyes
; then :
20160 cat >>confdefs.h
<<_ACEOF
20161 #define HAVE_MEMPCPY 1
20167 if test $ac_cv_func_mempcpy = no
; then
20171 if test $HAVE_MEMPCPY = 0; then
20180 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
20197 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20203 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20204 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
20206 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20209 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
20213 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20222 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
20228 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20237 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20245 if test $ac_cv_func_nl_langinfo = yes; then
20246 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
20248 $as_echo_n "checking whether YESEXPR works... " >&6; }
20249 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false
; then :
20250 $as_echo_n "(cached) " >&6
20252 if test "$cross_compiling" = yes; then :
20255 # Guess no on irix systems.
20256 irix
*) gl_cv_func_nl_langinfo_yesexpr_works
="guessing no";;
20257 # Guess yes elsewhere.
20258 *) gl_cv_func_nl_langinfo_yesexpr_works
="guessing yes";;
20262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20264 #include <langinfo.h>
20269 return !*nl_langinfo(YESEXPR);
20275 if ac_fn_c_try_run
"$LINENO"; then :
20276 gl_cv_func_nl_langinfo_yesexpr_works
=yes
20278 gl_cv_func_nl_langinfo_yesexpr_works
=no
20280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
20287 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
20288 case $gl_cv_func_nl_langinfo_yesexpr_works in
20289 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS
=1 ;;
20290 *) FUNC_NL_LANGINFO_YESEXPR_WORKS
=0 ;;
20293 cat >>confdefs.h
<<_ACEOF
20294 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
20297 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
20298 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
20301 REPLACE_NL_LANGINFO
=1
20303 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
20310 if test $HAVE_NL_LANGINFO = 0 ||
test $REPLACE_NL_LANGINFO = 1; then
20319 gl_LIBOBJS
="$gl_LIBOBJS nl_langinfo.$ac_objext"
20327 GNULIB_NL_LANGINFO
=1
20333 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
20337 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20339 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20345 cat >>confdefs.h
<<_ACEOF
20346 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20349 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20351 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20357 cat >>confdefs.h
<<_ACEOF
20358 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20365 for ac_func
in rawmemchr
20367 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20368 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
20369 cat >>confdefs.h
<<_ACEOF
20370 #define HAVE_RAWMEMCHR 1
20376 if test $ac_cv_func_rawmemchr = no
; then
20380 if test $HAVE_RAWMEMCHR = 0; then
20389 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
20404 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20411 if test $gl_cv_func_malloc_posix = yes; then
20413 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20419 if test $REPLACE_REALLOC = 1; then
20428 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
20436 GNULIB_REALLOC_POSIX
=1
20442 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20448 # Check whether --with-included-regex was given.
20449 if test "${with_included_regex+set}" = set; then :
20450 withval
=$with_included_regex;
20454 case $with_included_regex in #(
20455 yes|no
) ac_use_included_regex
=$with_included_regex
20458 # If the system regex support is good enough that it passes the
20459 # following run test, then default to *not* using the included regex.c.
20460 # If cross compiling, assume the test would fail and use the included
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
20464 $as_echo_n "checking for working re_compile_pattern... " >&6; }
20465 if ${gl_cv_func_re_compile_pattern_working+:} false
; then :
20466 $as_echo_n "(cached) " >&6
20468 if test "$cross_compiling" = yes; then :
20469 gl_cv_func_re_compile_pattern_working
=no
20471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20475 #include <locale.h>
20476 #include <limits.h>
20477 #include <string.h>
20478 #if HAVE_DECL_ALARM
20479 # include <unistd.h>
20480 # include <signal.h>
20487 static struct re_pattern_buffer regex;
20488 unsigned char folded_chars[UCHAR_MAX + 1];
20491 struct re_registers regs;
20493 #if HAVE_DECL_ALARM
20494 /* Some builds of glibc go into an infinite loop on this test. */
20495 signal (SIGALRM, SIG_DFL);
20498 if (setlocale (LC_ALL, "en_US.UTF-8"))
20501 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20502 This test needs valgrind to catch the bug on Debian
20503 GNU/Linux 3.1 x86, but it might catch the bug better
20504 on other platforms and it shouldn't hurt to try the
20506 static char const pat[] = "insert into";
20507 static char const data[] =
20508 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20509 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20511 memset (®ex, 0, sizeof regex);
20512 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
20515 else if (re_search (®ex, data, sizeof data - 1,
20516 0, sizeof data - 1, ®s)
20522 /* This test is from glibc bug 15078.
20523 The test case is from Andreas Schwab in
20524 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
20526 static char const pat[] = "[^x]x";
20527 static char const data[] =
20528 "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80"
20529 "\xba\xe1\x80\xaf\xe1\x80\x95\xe1\x80\xbax";
20531 memset (®ex, 0, sizeof regex);
20532 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
20535 else if (re_search (®ex, data, sizeof data - 1,
20536 0, sizeof data - 1, 0)
20541 if (! setlocale (LC_ALL, "C"))
20545 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
20546 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20547 memset (®ex, 0, sizeof regex);
20548 s = re_compile_pattern ("a[^x]b", 6, ®ex);
20551 /* This should fail, but succeeds for glibc-2.5. */
20552 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
20555 /* This regular expression is from Spencer ere test number 75
20557 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20558 memset (®ex, 0, sizeof regex);
20559 for (i = 0; i <= UCHAR_MAX; i++)
20560 folded_chars[i] = i;
20561 regex.translate = folded_chars;
20562 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
20563 /* This should fail with _Invalid character class name_ error. */
20567 /* Ensure that [b-a] is diagnosed as invalid, when
20568 using RE_NO_EMPTY_RANGES. */
20569 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
20570 memset (®ex, 0, sizeof regex);
20571 s = re_compile_pattern ("a[b-a]", 6, ®ex);
20575 /* This should succeed, but does not for glibc-2.1.3. */
20576 memset (®ex, 0, sizeof regex);
20577 s = re_compile_pattern ("{1", 2, ®ex);
20581 /* The following example is derived from a problem report
20582 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
20583 memset (®ex, 0, sizeof regex);
20584 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
20587 /* This should match, but does not for glibc-2.2.1. */
20588 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
20591 memset (®ex, 0, sizeof regex);
20592 s = re_compile_pattern ("x", 1, ®ex);
20595 /* glibc-2.2.93 does not work with a negative RANGE argument. */
20596 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
20599 /* The version of regex.c in older versions of gnulib
20600 ignored RE_ICASE. Detect that problem too. */
20601 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20602 memset (®ex, 0, sizeof regex);
20603 s = re_compile_pattern ("x", 1, ®ex);
20606 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
20609 /* Catch a bug reported by Vin Shelton in
20610 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20612 re_set_syntax (RE_SYNTAX_POSIX_BASIC
20613 & ~RE_CONTEXT_INVALID_DUP
20614 & ~RE_NO_EMPTY_RANGES);
20615 memset (®ex, 0, sizeof regex);
20616 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
20620 /* REG_STARTEND was added to glibc on 2004-01-15.
20621 Reject older versions. */
20622 if (! REG_STARTEND)
20626 /* It would be nice to reject hosts whose regoff_t values are too
20627 narrow (including glibc on hosts with 64-bit ptrdiff_t and
20628 32-bit int), but we should wait until glibc implements this
20629 feature. Otherwise, support for equivalence classes and
20630 multibyte collation symbols would always be broken except
20631 when compiling --without-included-regex. */
20632 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20633 || sizeof (regoff_t) < sizeof (ssize_t))
20643 if ac_fn_c_try_run
"$LINENO"; then :
20644 gl_cv_func_re_compile_pattern_working
=yes
20646 gl_cv_func_re_compile_pattern_working
=no
20648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
20654 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20655 case $gl_cv_func_re_compile_pattern_working in #(
20656 yes) ac_use_included_regex
=no
;; #(
20657 no
) ac_use_included_regex
=yes;;
20660 *) as_fn_error $?
"Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
20664 if test $ac_use_included_regex = yes; then
20666 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
20669 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
20672 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
20675 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
20678 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
20681 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
20684 $as_echo "#define re_search rpl_re_search" >>confdefs.h
20687 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
20690 $as_echo "#define re_match rpl_re_match" >>confdefs.h
20693 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
20696 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
20699 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
20702 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
20705 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
20708 $as_echo "#define regexec rpl_regexec" >>confdefs.h
20711 $as_echo "#define regerror rpl_regerror" >>confdefs.h
20714 $as_echo "#define regfree rpl_regfree" >>confdefs.h
20718 if test $ac_use_included_regex = yes; then
20727 gl_LIBOBJS
="$gl_LIBOBJS regex.$ac_objext"
20735 for ac_header
in libintl.h
20737 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
20738 if test "x$ac_cv_header_libintl_h" = xyes
; then :
20739 cat >>confdefs.h
<<_ACEOF
20740 #define HAVE_LIBINTL_H 1
20748 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20750 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
20756 cat >>confdefs.h
<<_ACEOF
20757 #define HAVE_DECL_ISBLANK $ac_have_decl
20763 for ac_header
in stdint.h
20765 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20766 if test "x$ac_cv_header_stdint_h" = xyes
; then :
20767 cat >>confdefs.h
<<_ACEOF
20768 #define HAVE_STDINT_H 1
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20776 $as_echo_n "checking for SIZE_MAX... " >&6; }
20777 if ${gl_cv_size_max+:} false
; then :
20778 $as_echo_n "(cached) " >&6
20782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h. */
20785 #include <limits.h>
20787 #include <stdint.h>
20794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20795 $EGREP "Found it" >/dev
/null
2>&1; then :
20800 if test -z "$gl_cv_size_max"; then
20801 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
20802 #include <limits.h>"; then :
20805 size_t_bits_minus_1
=
20808 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20814 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20815 if test $fits_in_uint = 1; then
20816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 #include <stddef.h>
20820 extern unsigned long foo;
20830 if ac_fn_c_try_compile
"$LINENO"; then :
20833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20835 if test $fits_in_uint = 1; then
20836 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20838 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20841 gl_cv_size_max
='((size_t)~(size_t)0)'
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20847 $as_echo "$gl_cv_size_max" >&6; }
20848 if test "$gl_cv_size_max" != yes; then
20850 cat >>confdefs.h
<<_ACEOF
20851 #define SIZE_MAX $gl_cv_size_max
20859 ac_fn_c_check_decl
"$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
20861 if test "x$ac_cv_have_decl_sleep" = xyes
; then :
20867 cat >>confdefs.h
<<_ACEOF
20868 #define HAVE_DECL_SLEEP $ac_have_decl
20872 if test $ac_cv_have_decl_sleep != yes; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
20876 $as_echo_n "checking for working sleep... " >&6; }
20877 if ${gl_cv_func_sleep_works+:} false
; then :
20878 $as_echo_n "(cached) " >&6
20880 if test "$cross_compiling" = yes; then :
20882 # Guess yes on glibc systems.
20883 *-gnu*) gl_cv_func_sleep_works
="guessing yes" ;;
20884 # If we don't know, assume the worst.
20885 *) gl_cv_func_sleep_works
="guessing no" ;;
20889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20893 #include <unistd.h>
20894 #include <signal.h>
20896 handle_alarm (int sig)
20898 if (sig != SIGALRM)
20906 /* Failure to compile this test due to missing alarm is okay,
20907 since all such platforms (mingw) also lack sleep. */
20908 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
20909 unsigned int remaining;
20910 signal (SIGALRM, handle_alarm);
20912 remaining = sleep (pentecost);
20913 if (remaining > pentecost)
20915 if (remaining <= pentecost - 10)
20923 if ac_fn_c_try_run
"$LINENO"; then :
20924 gl_cv_func_sleep_works
=yes
20926 gl_cv_func_sleep_works
=no
20928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20929 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
20934 $as_echo "$gl_cv_func_sleep_works" >&6; }
20935 case "$gl_cv_func_sleep_works" in
20943 if test $HAVE_SLEEP = 0 ||
test $REPLACE_SLEEP = 1; then
20952 gl_LIBOBJS
="$gl_LIBOBJS sleep.$ac_objext"
20966 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20972 $as_echo_n "checking for ssize_t... " >&6; }
20973 if ${gt_cv_ssize_t+:} false
; then :
20974 $as_echo_n "(cached) " >&6
20976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20978 #include <sys/types.h>
20982 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20988 if ac_fn_c_try_compile
"$LINENO"; then :
20993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20996 $as_echo "$gt_cv_ssize_t" >&6; }
20997 if test $gt_cv_ssize_t = no
; then
20999 $as_echo "#define ssize_t int" >>confdefs.h
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21005 $as_echo_n "checking for working stdalign.h... " >&6; }
21006 if ${gl_cv_header_working_stdalign_h+:} false
; then :
21007 $as_echo_n "(cached) " >&6
21009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21011 #include <stdalign.h>
21012 #include <stddef.h>
21014 /* Test that alignof yields a result consistent with offsetof.
21015 This catches GCC bug 52023
21016 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21018 template <class t> struct alignof_helper { char a; t b; };
21019 # define ao(type) offsetof (alignof_helper<type>, b)
21021 # define ao(type) offsetof (struct { char a; type b; }, b)
21023 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21024 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21025 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21027 /* Test _Alignas only on platforms where gnulib can help. */
21029 (__GNUC__ || __IBMC__ || __IBMCPP__ \
21030 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
21031 struct alignas_test { char c; char alignas (8) alignas_8; };
21032 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
21044 if ac_fn_c_try_compile
"$LINENO"; then :
21045 gl_cv_header_working_stdalign_h
=yes
21047 gl_cv_header_working_stdalign_h
=no
21049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21052 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21054 if test $gl_cv_header_working_stdalign_h = yes; then
21057 STDALIGN_H
='stdalign.h'
21061 if test -n "$STDALIGN_H"; then
21062 GL_GENERATE_STDALIGN_H_TRUE
=
21063 GL_GENERATE_STDALIGN_H_FALSE
='#'
21065 GL_GENERATE_STDALIGN_H_TRUE
='#'
21066 GL_GENERATE_STDALIGN_H_FALSE
=
21073 # Define two additional variables used in the Makefile substitution.
21075 if test "$ac_cv_header_stdbool_h" = yes; then
21078 STDBOOL_H
='stdbool.h'
21081 if test -n "$STDBOOL_H"; then
21082 GL_GENERATE_STDBOOL_H_TRUE
=
21083 GL_GENERATE_STDBOOL_H_FALSE
='#'
21085 GL_GENERATE_STDBOOL_H_TRUE
='#'
21086 GL_GENERATE_STDBOOL_H_FALSE
=
21090 if test "$ac_cv_type__Bool" = yes; then
21101 if test $gt_cv_c_wchar_t = no
; then
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21106 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21107 if ${gl_cv_decl_null_works+:} false
; then :
21108 $as_echo_n "(cached) " >&6
21110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <stddef.h>
21113 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21123 if ac_fn_c_try_compile
"$LINENO"; then :
21124 gl_cv_decl_null_works
=yes
21126 gl_cv_decl_null_works
=no
21128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21131 $as_echo "$gl_cv_decl_null_works" >&6; }
21132 if test $gl_cv_decl_null_works = no
; then
21137 if test -n "$STDDEF_H"; then
21138 GL_GENERATE_STDDEF_H_TRUE
=
21139 GL_GENERATE_STDDEF_H_FALSE
='#'
21141 GL_GENERATE_STDDEF_H_TRUE
='#'
21142 GL_GENERATE_STDDEF_H_FALSE
=
21145 if test -n "$STDDEF_H"; then
21154 if test $gl_cv_have_include_next = yes; then
21155 gl_cv_next_stddef_h
='<'stddef.h
'>'
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21158 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21159 if ${gl_cv_next_stddef_h+:} false
; then :
21160 $as_echo_n "(cached) " >&6
21163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21169 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21170 *) gl_absname_cpp
="$ac_cpp" ;;
21175 gl_dirsep_regex
='[/\\]'
21178 gl_dirsep_regex
='\/'
21181 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21183 gl_header_literal_regex
=`echo 'stddef.h' \
21184 | sed -e "$gl_make_literal_regex_sed"`
21185 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21186 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21191 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21192 sed -n "$gl_absolute_header_sed"`'"'
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21197 $as_echo "$gl_cv_next_stddef_h" >&6; }
21199 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21203 gl_next_as_first_directive
='<'stddef.h
'>'
21205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21206 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21208 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21226 if test $gl_cv_have_include_next = yes; then
21227 gl_cv_next_stdio_h
='<'stdio.h
'>'
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21230 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21231 if ${gl_cv_next_stdio_h+:} false
; then :
21232 $as_echo_n "(cached) " >&6
21235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21241 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21242 *) gl_absname_cpp
="$ac_cpp" ;;
21247 gl_dirsep_regex
='[/\\]'
21250 gl_dirsep_regex
='\/'
21253 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21255 gl_header_literal_regex
=`echo 'stdio.h' \
21256 | sed -e "$gl_make_literal_regex_sed"`
21257 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21258 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21263 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21264 sed -n "$gl_absolute_header_sed"`'"'
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21269 $as_echo "$gl_cv_next_stdio_h" >&6; }
21271 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21273 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21275 gl_next_as_first_directive
='<'stdio.h
'>'
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21278 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21280 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21289 cat >>confdefs.h
<<_ACEOF
21290 #define GNULIB_FSCANF 1
21297 cat >>confdefs.h
<<_ACEOF
21298 #define GNULIB_SCANF 1
21323 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
21324 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21326 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21327 if eval \
${$as_gl_Symbol+:} false
; then :
21328 $as_echo_n "(cached) " >&6
21330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21343 if ac_fn_c_try_compile
"$LINENO"; then :
21344 eval "$as_gl_Symbol=yes"
21346 eval "$as_gl_Symbol=no"
21348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21350 eval ac_res
=\$
$as_gl_Symbol
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21352 $as_echo "$ac_res" >&6; }
21353 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21354 cat >>confdefs.h
<<_ACEOF
21355 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21358 eval ac_cv_have_decl_
$gl_func=yes
21373 if test $gl_cv_have_include_next = yes; then
21374 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21377 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21378 if ${gl_cv_next_stdlib_h+:} false
; then :
21379 $as_echo_n "(cached) " >&6
21382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h. */
21384 #include <stdlib.h>
21388 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21389 *) gl_absname_cpp
="$ac_cpp" ;;
21394 gl_dirsep_regex
='[/\\]'
21397 gl_dirsep_regex
='\/'
21400 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21402 gl_header_literal_regex
=`echo 'stdlib.h' \
21403 | sed -e "$gl_make_literal_regex_sed"`
21404 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21405 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21410 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21411 sed -n "$gl_absolute_header_sed"`'"'
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21416 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21418 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21420 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21422 gl_next_as_first_directive
='<'stdlib.h
'>'
21424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21425 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21427 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21434 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
21435 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21438 if eval \
${$as_gl_Symbol+:} false
; then :
21439 $as_echo_n "(cached) " >&6
21441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21443 #include <stdlib.h>
21444 #if HAVE_SYS_LOADAVG_H
21445 # include <sys/loadavg.h>
21448 # include <random.h>
21460 if ac_fn_c_try_compile
"$LINENO"; then :
21461 eval "$as_gl_Symbol=yes"
21463 eval "$as_gl_Symbol=no"
21465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21467 eval ac_res
=\$
$as_gl_Symbol
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21469 $as_echo "$ac_res" >&6; }
21470 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21471 cat >>confdefs.h
<<_ACEOF
21472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21475 eval ac_cv_have_decl_
$gl_func=yes
21483 for ac_func
in strcasecmp
21485 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21486 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
21487 cat >>confdefs.h
<<_ACEOF
21488 #define HAVE_STRCASECMP 1
21494 if test $ac_cv_func_strcasecmp = no
; then
21500 for ac_func
in strncasecmp
21502 ac_fn_c_check_func
"$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
21503 if test "x$ac_cv_func_strncasecmp" = xyes
; then :
21504 cat >>confdefs.h
<<_ACEOF
21505 #define HAVE_STRNCASECMP 1
21511 if test $ac_cv_func_strncasecmp = yes; then
21516 ac_fn_c_check_decl
"$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
21517 if test "x$ac_cv_have_decl_strncasecmp" = xyes
; then :
21523 cat >>confdefs.h
<<_ACEOF
21524 #define HAVE_DECL_STRNCASECMP $ac_have_decl
21527 if test $ac_cv_have_decl_strncasecmp = no
; then
21528 HAVE_DECL_STRNCASECMP
=0
21532 if test $HAVE_STRCASECMP = 0; then
21541 gl_LIBOBJS
="$gl_LIBOBJS strcasecmp.$ac_objext"
21547 if test $HAVE_STRNCASECMP = 0; then
21556 gl_LIBOBJS
="$gl_LIBOBJS strncasecmp.$ac_objext"
21566 for ac_func
in strchrnul
21568 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21569 if test "x$ac_cv_func_strchrnul" = xyes
; then :
21570 cat >>confdefs.h
<<_ACEOF
21571 #define HAVE_STRCHRNUL 1
21577 if test $ac_cv_func_strchrnul = no
; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21581 $as_echo_n "checking whether strchrnul works... " >&6; }
21582 if ${gl_cv_func_strchrnul_works+:} false
; then :
21583 $as_echo_n "(cached) " >&6
21585 if test "$cross_compiling" = yes; then :
21586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21589 #if defined __CYGWIN__
21590 #include <cygwin/version.h>
21591 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21601 gl_cv_func_strchrnul_works
="guessing yes"
21603 gl_cv_func_strchrnul_works
="guessing no"
21609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21612 #include <string.h> /* for strchrnul */
21617 const char *buf = "a";
21618 return strchrnul (buf, 'b') != buf + 1;
21624 if ac_fn_c_try_run
"$LINENO"; then :
21625 gl_cv_func_strchrnul_works
=yes
21627 gl_cv_func_strchrnul_works
=no
21629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21636 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21637 case "$gl_cv_func_strchrnul_works" in
21639 *) REPLACE_STRCHRNUL
=1 ;;
21643 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
21652 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
21667 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21676 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21678 $as_echo_n "checking for working strerror function... " >&6; }
21679 if ${gl_cv_func_working_strerror+:} false
; then :
21680 $as_echo_n "(cached) " >&6
21682 if test "$cross_compiling" = yes; then :
21684 # Guess yes on glibc systems.
21685 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
21686 # If we don't know, assume the worst.
21687 *) gl_cv_func_working_strerror
="guessing no" ;;
21691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21693 #include <string.h>
21698 if (!*strerror (-2)) return 1;
21703 if ac_fn_c_try_run
"$LINENO"; then :
21704 gl_cv_func_working_strerror
=yes
21706 gl_cv_func_working_strerror
=no
21708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21715 $as_echo "$gl_cv_func_working_strerror" >&6; }
21716 case "$gl_cv_func_working_strerror" in
21727 if test $REPLACE_STRERROR = 1; then
21736 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
21741 cat >>confdefs.h
<<_ACEOF
21742 #define GNULIB_STRERROR 1
21757 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21763 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
21772 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
21778 if test $ac_cv_header_sys_socket_h != yes; then
21779 for ac_header
in winsock2.h
21781 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21782 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21783 cat >>confdefs.h
<<_ACEOF
21784 #define HAVE_WINSOCK2_H 1
21792 if test "$ac_cv_header_winsock2_h" = yes; then
21794 UNISTD_H_HAVE_WINSOCK2_H
=1
21795 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21814 if test $ac_cv_have_decl_strndup = no
; then
21815 HAVE_DECL_STRNDUP
=0
21818 if test $ac_cv_func_strndup = yes; then
21820 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21822 $as_echo_n "checking for working strndup... " >&6; }
21823 if ${gl_cv_func_strndup_works+:} false
; then :
21824 $as_echo_n "(cached) " >&6
21826 if test "$cross_compiling" = yes; then :
21829 aix | aix
[3-6]*) gl_cv_func_strndup_works
="guessing no";;
21830 *) gl_cv_func_strndup_works
="guessing yes";;
21834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 #include <string.h>
21838 #include <stdlib.h>
21843 #if !HAVE_DECL_STRNDUP
21848 char *strndup (const char *, size_t);
21851 s = strndup ("some longer string", 15);
21853 s = strndup ("shorter string", 13);
21854 return s[13] != '\0';
21859 if ac_fn_c_try_run
"$LINENO"; then :
21860 gl_cv_func_strndup_works
=yes
21862 gl_cv_func_strndup_works
=no
21864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21870 $as_echo "$gl_cv_func_strndup_works" >&6; }
21871 case $gl_cv_func_strndup_works in
21872 *no
) REPLACE_STRNDUP
=1 ;;
21878 if test $HAVE_STRNDUP = 0 ||
test $REPLACE_STRNDUP = 1; then
21887 gl_LIBOBJS
="$gl_LIBOBJS strndup.$ac_objext"
21901 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21911 if test $ac_cv_have_decl_strnlen = no
; then
21912 HAVE_DECL_STRNLEN
=0
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21916 $as_echo_n "checking for working strnlen... " >&6; }
21917 if ${ac_cv_func_strnlen_working+:} false
; then :
21918 $as_echo_n "(cached) " >&6
21920 if test "$cross_compiling" = yes; then :
21921 # Guess no on AIX systems, yes otherwise.
21923 aix
*) ac_cv_func_strnlen_working
=no
;;
21924 *) ac_cv_func_strnlen_working
=yes;;
21927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 $ac_includes_default
21935 #define S_LEN (sizeof S - 1)
21937 /* At least one implementation is buggy: that of AIX 4.3 would
21938 give strnlen (S, 1) == 3. */
21941 for (i = 0; i < S_LEN + 1; ++i)
21943 int expected = i <= S_LEN ? i : S_LEN;
21944 if (strnlen (S, i) != expected)
21953 if ac_fn_c_try_run
"$LINENO"; then :
21954 ac_cv_func_strnlen_working
=yes
21956 ac_cv_func_strnlen_working
=no
21958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21964 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21965 test $ac_cv_func_strnlen_working = no
&& :
21968 if test $ac_cv_func_strnlen_working = no
; then
21973 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
21982 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
21997 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22005 if test $ac_cv_header_sysexits_h = yes; then
22016 if test $gl_cv_have_include_next = yes; then
22017 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
22020 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
22021 if ${gl_cv_next_sysexits_h+:} false
; then :
22022 $as_echo_n "(cached) " >&6
22025 if test $ac_cv_header_sysexits_h = yes; then
22028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030 #include <sysexits.h>
22034 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22035 *) gl_absname_cpp
="$ac_cpp" ;;
22040 gl_dirsep_regex
='[/\\]'
22043 gl_dirsep_regex
='\/'
22046 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22048 gl_header_literal_regex
=`echo 'sysexits.h' \
22049 | sed -e "$gl_make_literal_regex_sed"`
22050 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22051 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22056 gl_cv_next_sysexits_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22057 sed -n "$gl_absolute_header_sed"`'"'
22059 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
22065 $as_echo "$gl_cv_next_sysexits_h" >&6; }
22067 NEXT_SYSEXITS_H
=$gl_cv_next_sysexits_h
22069 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22071 gl_next_as_first_directive
='<'sysexits.h
'>'
22073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22074 gl_next_as_first_directive
=$gl_cv_next_sysexits_h
22076 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
=$gl_next_as_first_directive
22081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <sysexits.h>
22095 case EX_UNAVAILABLE:
22112 if ac_fn_c_try_compile
"$LINENO"; then :
22115 SYSEXITS_H
=sysexits.h
22117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22120 SYSEXITS_H
=sysexits.h
22124 if test -n "$SYSEXITS_H"; then
22125 GL_GENERATE_SYSEXITS_H_TRUE
=
22126 GL_GENERATE_SYSEXITS_H_FALSE
='#'
22128 GL_GENERATE_SYSEXITS_H_TRUE
='#'
22129 GL_GENERATE_SYSEXITS_H_FALSE
=
22145 if test $gl_cv_have_include_next = yes; then
22146 gl_cv_next_unistd_h
='<'unistd.h
'>'
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22149 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22150 if ${gl_cv_next_unistd_h+:} false
; then :
22151 $as_echo_n "(cached) " >&6
22154 if test $ac_cv_header_unistd_h = yes; then
22157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22159 #include <unistd.h>
22163 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22164 *) gl_absname_cpp
="$ac_cpp" ;;
22169 gl_dirsep_regex
='[/\\]'
22172 gl_dirsep_regex
='\/'
22175 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22177 gl_header_literal_regex
=`echo 'unistd.h' \
22178 | sed -e "$gl_make_literal_regex_sed"`
22179 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22185 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22186 sed -n "$gl_absolute_header_sed"`'"'
22188 gl_cv_next_unistd_h
='<'unistd.h
'>'
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22194 $as_echo "$gl_cv_next_unistd_h" >&6; }
22196 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22198 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22200 gl_next_as_first_directive
='<'unistd.h
'>'
22202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22203 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22205 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22210 if test $ac_cv_header_unistd_h = yes; then
22222 for gl_func
in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sethostname
sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
22223 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22225 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22226 if eval \
${$as_gl_Symbol+:} false
; then :
22227 $as_echo_n "(cached) " >&6
22229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22233 # include <unistd.h>
22235 /* Some systems declare various items in the wrong headers. */
22236 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22237 # include <fcntl.h>
22238 # include <stdio.h>
22239 # include <stdlib.h>
22240 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22254 if ac_fn_c_try_compile
"$LINENO"; then :
22255 eval "$as_gl_Symbol=yes"
22257 eval "$as_gl_Symbol=no"
22259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22261 eval ac_res
=\$
$as_gl_Symbol
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22263 $as_echo "$ac_res" >&6; }
22264 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22265 cat >>confdefs.h
<<_ACEOF
22266 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22269 eval ac_cv_have_decl_
$gl_func=yes
22276 if { test "$HAVE_LIBUNISTRING" != yes \
22281 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22282 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22283 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22284 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22285 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22295 LIBUNISTRING_UNITYPES_H
='unitypes.h'
22297 LIBUNISTRING_UNITYPES_H
=
22303 if { test "$HAVE_LIBUNISTRING" != yes \
22308 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22309 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22310 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22311 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22312 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22322 LIBUNISTRING_UNIWIDTH_H
='uniwidth.h'
22324 LIBUNISTRING_UNIWIDTH_H
=
22330 if { test "$HAVE_LIBUNISTRING" != yes \
22335 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22336 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22337 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22338 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22339 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
22349 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
=
22350 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
='#'
22352 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
='#'
22353 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
=
22359 if test $ac_cv_func_vasnprintf = no
; then
22370 gl_LIBOBJS
="$gl_LIBOBJS vasnprintf.$ac_objext"
22380 gl_LIBOBJS
="$gl_LIBOBJS printf-args.$ac_objext"
22390 gl_LIBOBJS
="$gl_LIBOBJS printf-parse.$ac_objext"
22400 gl_LIBOBJS
="$gl_LIBOBJS asnprintf.$ac_objext"
22402 if test $ac_cv_func_vasnprintf = yes; then
22404 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
22418 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22419 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
22423 $as_echo "#define ptrdiff_t long" >>confdefs.h
22438 gl_cv_func_vsnprintf_usable
=no
22439 for ac_func
in vsnprintf
22441 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22442 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
22443 cat >>confdefs.h
<<_ACEOF
22444 #define HAVE_VSNPRINTF 1
22450 if test $ac_cv_func_vsnprintf = yes; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22455 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22456 if ${gl_cv_func_snprintf_size1+:} false
; then :
22457 $as_echo_n "(cached) " >&6
22460 if test "$cross_compiling" = yes; then :
22461 gl_cv_func_snprintf_size1
="guessing yes"
22463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22468 # define my_snprintf snprintf
22470 # include <stdarg.h>
22471 static int my_snprintf (char *buf, int size, const char *format, ...)
22475 va_start (args, format);
22476 ret = vsnprintf (buf, size, format, args);
22483 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22484 my_snprintf (buf, 1, "%d", 12345);
22485 return buf[1] != 'E';
22488 if ac_fn_c_try_run
"$LINENO"; then :
22489 gl_cv_func_snprintf_size1
=yes
22491 gl_cv_func_snprintf_size1
=no
22493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22500 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22502 case "$gl_cv_func_snprintf_size1" in
22505 case "$gl_cv_func_snprintf_retval_c99" in
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22510 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22511 if ${gl_cv_func_printf_positions+:} false
; then :
22512 $as_echo_n "(cached) " >&6
22515 if test "$cross_compiling" = yes; then :
22518 netbsd
[1-3]* | netbsdelf
[1-3]* | netbsdaout
[1-3]* | netbsdcoff
[1-3]*)
22519 gl_cv_func_printf_positions
="guessing no";;
22520 beos
*) gl_cv_func_printf_positions
="guessing no";;
22521 mingw
* | pw
*) gl_cv_func_printf_positions
="guessing no";;
22522 *) gl_cv_func_printf_positions
="guessing yes";;
22526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22530 #include <string.h>
22531 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22532 dollar expansion (possibly an autoconf bug). */
22533 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22534 static char buf[100];
22537 sprintf (buf, format, 33, 55);
22538 return (strcmp (buf, "55 33") != 0);
22541 if ac_fn_c_try_run
"$LINENO"; then :
22542 gl_cv_func_printf_positions
=yes
22544 gl_cv_func_printf_positions
=no
22546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22553 $as_echo "$gl_cv_func_printf_positions" >&6; }
22555 case "$gl_cv_func_printf_positions" in
22557 gl_cv_func_vsnprintf_usable
=yes
22565 if test $gl_cv_func_vsnprintf_usable = no
; then
22576 gl_LIBOBJS
="$gl_LIBOBJS vsnprintf.$ac_objext"
22578 if test $ac_cv_func_vsnprintf = yes; then
22579 REPLACE_VSNPRINTF
=1
22585 if test $ac_cv_have_decl_vsnprintf = no
; then
22586 HAVE_DECL_VSNPRINTF
=0
22600 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22616 if test $gl_cv_have_include_next = yes; then
22617 gl_cv_next_wchar_h
='<'wchar.h
'>'
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22620 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22621 if ${gl_cv_next_wchar_h+:} false
; then :
22622 $as_echo_n "(cached) " >&6
22625 if test $ac_cv_header_wchar_h = yes; then
22628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22634 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22635 *) gl_absname_cpp
="$ac_cpp" ;;
22640 gl_dirsep_regex
='[/\\]'
22643 gl_dirsep_regex
='\/'
22646 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22648 gl_header_literal_regex
=`echo 'wchar.h' \
22649 | sed -e "$gl_make_literal_regex_sed"`
22650 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22651 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22656 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22657 sed -n "$gl_absolute_header_sed"`'"'
22659 gl_cv_next_wchar_h
='<'wchar.h
'>'
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22665 $as_echo "$gl_cv_next_wchar_h" >&6; }
22667 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
22669 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22671 gl_next_as_first_directive
='<'wchar.h
'>'
22673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22674 gl_next_as_first_directive
=$gl_cv_next_wchar_h
22676 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
22681 if test $ac_cv_header_wchar_h = yes; then
22691 if test $gt_cv_c_wint_t = yes; then
22699 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth
; do
22700 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22702 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22703 if eval \
${$as_gl_Symbol+:} false
; then :
22704 $as_echo_n "(cached) " >&6
22706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22709 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22711 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22712 included before <wchar.h>. */
22713 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22714 # include <stddef.h>
22715 # include <stdio.h>
22729 if ac_fn_c_try_compile
"$LINENO"; then :
22730 eval "$as_gl_Symbol=yes"
22732 eval "$as_gl_Symbol=no"
22734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22736 eval ac_res
=\$
$as_gl_Symbol
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22738 $as_echo "$ac_res" >&6; }
22739 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22740 cat >>confdefs.h
<<_ACEOF
22741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22744 eval ac_cv_have_decl_
$gl_func=yes
22759 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22764 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22765 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22766 $as_echo_n "(cached) " >&6
22770 # Guess no on AIX and OSF/1.
22771 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22772 # Guess yes otherwise.
22773 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22775 if test $LOCALE_JA != none
; then
22776 if test "$cross_compiling" = yes; then :
22779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h. */
22782 #include <locale.h>
22783 #include <string.h>
22784 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22786 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22787 included before <wchar.h>. */
22788 #include <stddef.h>
22794 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22796 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22800 memset (&state, '\0', sizeof (mbstate_t));
22801 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22802 if (mbsinit (&state))
22808 if ac_fn_c_try_run
"$LINENO"; then :
22809 gl_cv_func_mbrtowc_incomplete_state
=yes
22811 gl_cv_func_mbrtowc_incomplete_state
=no
22813 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22814 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22821 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22827 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22828 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22829 $as_echo_n "(cached) " >&6
22833 # Guess no on Solaris 8.
22834 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22835 # Guess yes otherwise.
22836 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22838 if test $LOCALE_ZH_CN != none
; then
22839 if test "$cross_compiling" = yes; then :
22842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 #include <locale.h>
22846 #include <stdlib.h>
22847 #include <string.h>
22848 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22850 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22851 included before <wchar.h>. */
22852 #include <stddef.h>
22858 /* This fails on Solaris 8:
22859 mbrtowc returns 2, and sets wc to 0x00F0.
22860 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22861 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22863 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22867 memset (&state, '\0', sizeof (mbstate_t));
22868 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22869 && mbtowc (&wc, input + 3, 6) == 4)
22875 if ac_fn_c_try_run
"$LINENO"; then :
22876 gl_cv_func_mbrtowc_sanitycheck
=yes
22878 gl_cv_func_mbrtowc_sanitycheck
=no
22880 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22881 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22888 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22890 REPLACE_MBSTATE_T
=0
22891 case "$gl_cv_func_mbrtowc_incomplete_state" in
22893 *) REPLACE_MBSTATE_T
=1 ;;
22895 case "$gl_cv_func_mbrtowc_sanitycheck" in
22897 *) REPLACE_MBSTATE_T
=1 ;;
22900 REPLACE_MBSTATE_T
=1
22905 if test $ac_cv_func_wcrtomb = no
; then
22907 ac_fn_c_check_decl
"$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
22908 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22910 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22911 included before <wchar.h>. */
22912 #include <stddef.h>
22918 if test "x$ac_cv_have_decl_wcrtomb" = xyes
; then :
22924 cat >>confdefs.h
<<_ACEOF
22925 #define HAVE_DECL_WCRTOMB $ac_have_decl
22928 if test $ac_cv_have_decl_wcrtomb = yes; then
22932 if test $REPLACE_MBSTATE_T = 1; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
22941 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
22942 if ${gl_cv_func_wcrtomb_retval+:} false
; then :
22943 $as_echo_n "(cached) " >&6
22947 # Guess no on AIX 4, OSF/1 and Solaris.
22948 aix4
* | osf
* | solaris
*) gl_cv_func_wcrtomb_retval
="guessing no" ;;
22949 # Guess yes otherwise.
22950 *) gl_cv_func_wcrtomb_retval
="guessing yes" ;;
22952 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22953 if test "$cross_compiling" = yes; then :
22956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22959 #include <locale.h>
22960 #include <string.h>
22961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22964 included before <wchar.h>. */
22965 #include <stddef.h>
22972 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22974 if (wcrtomb (NULL, 0, NULL) != 1)
22977 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22979 if (wcrtomb (NULL, 0, NULL) != 1)
22982 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22984 if (wcrtomb (NULL, 0, NULL) != 1)
22987 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22989 if (wcrtomb (NULL, 0, NULL) != 1)
22995 if ac_fn_c_try_run
"$LINENO"; then :
22996 gl_cv_func_wcrtomb_retval
=yes
22998 gl_cv_func_wcrtomb_retval
=no
23000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
23008 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
23009 case "$gl_cv_func_wcrtomb_retval" in
23011 *) REPLACE_WCRTOMB
=1 ;;
23016 if test $HAVE_WCRTOMB = 0 ||
test $REPLACE_WCRTOMB = 1; then
23025 gl_LIBOBJS
="$gl_LIBOBJS wcrtomb.$ac_objext"
23042 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
23051 if test $ac_cv_func_iswcntrl = yes; then
23059 if test $gt_cv_c_wint_t = yes; then
23075 if test $gl_cv_have_include_next = yes; then
23076 gl_cv_next_wctype_h
='<'wctype.h
'>'
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23079 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23080 if ${gl_cv_next_wctype_h+:} false
; then :
23081 $as_echo_n "(cached) " >&6
23084 if test $ac_cv_header_wctype_h = yes; then
23087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23089 #include <wctype.h>
23093 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23094 *) gl_absname_cpp
="$ac_cpp" ;;
23099 gl_dirsep_regex
='[/\\]'
23102 gl_dirsep_regex
='\/'
23105 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23107 gl_header_literal_regex
=`echo 'wctype.h' \
23108 | sed -e "$gl_make_literal_regex_sed"`
23109 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23110 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23115 gl_cv_next_wctype_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23116 sed -n "$gl_absolute_header_sed"`'"'
23118 gl_cv_next_wctype_h
='<'wctype.h
'>'
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23124 $as_echo "$gl_cv_next_wctype_h" >&6; }
23126 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
23128 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23130 gl_next_as_first_directive
='<'wctype.h
'>'
23132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23133 gl_next_as_first_directive
=$gl_cv_next_wctype_h
23135 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
23140 if test $ac_cv_header_wctype_h = yes; then
23141 if test $ac_cv_func_iswcntrl = yes; then
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23143 $as_echo_n "checking whether iswcntrl works... " >&6; }
23144 if ${gl_cv_func_iswcntrl_works+:} false
; then :
23145 $as_echo_n "(cached) " >&6
23148 if test "$cross_compiling" = yes; then :
23149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23151 #include <stdlib.h>
23152 #if __GNU_LIBRARY__ == 1
23153 Linux libc5 i18n is broken.
23163 if ac_fn_c_try_compile
"$LINENO"; then :
23164 gl_cv_func_iswcntrl_works
="guessing yes"
23166 gl_cv_func_iswcntrl_works
="guessing no"
23168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23175 included before <wchar.h>.
23176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23177 must be included before <wchar.h>. */
23178 #include <stddef.h>
23182 #include <wctype.h>
23183 int main () { return iswprint ('x') == 0; }
23186 if ac_fn_c_try_run
"$LINENO"; then :
23187 gl_cv_func_iswcntrl_works
=yes
23189 gl_cv_func_iswcntrl_works
=no
23191 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23192 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23198 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23206 case "$gl_cv_func_iswcntrl_works" in
23207 *yes) REPLACE_ISWCNTRL
=0 ;;
23208 *) REPLACE_ISWCNTRL
=1 ;;
23212 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
23216 if test $REPLACE_ISWCNTRL = 1; then
23219 for ac_func
in towlower
23221 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
23222 if test "x$ac_cv_func_towlower" = xyes
; then :
23223 cat >>confdefs.h
<<_ACEOF
23224 #define HAVE_TOWLOWER 1
23230 if test $ac_cv_func_towlower = yes; then
23233 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23234 included before <wchar.h>.
23235 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23236 must be included before <wchar.h>. */
23237 #include <stddef.h>
23242 # include <wctype.h>
23246 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
23252 cat >>confdefs.h
<<_ACEOF
23253 #define HAVE_DECL_TOWLOWER $ac_have_decl
23256 if test $ac_cv_have_decl_towlower = yes; then
23265 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23270 $as_echo_n "checking for wctype_t... " >&6; }
23271 if ${gl_cv_type_wctype_t+:} false
; then :
23272 $as_echo_n "(cached) " >&6
23274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23275 /* end confdefs.h. */
23276 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23277 included before <wchar.h>.
23278 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23279 must be included before <wchar.h>. */
23280 #include <stddef.h>
23285 # include <wctype.h>
23297 if ac_fn_c_try_compile
"$LINENO"; then :
23298 gl_cv_type_wctype_t
=yes
23300 gl_cv_type_wctype_t
=no
23302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23306 $as_echo "$gl_cv_type_wctype_t" >&6; }
23307 if test $gl_cv_type_wctype_t = no
; then
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23312 $as_echo_n "checking for wctrans_t... " >&6; }
23313 if ${gl_cv_type_wctrans_t+:} false
; then :
23314 $as_echo_n "(cached) " >&6
23316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23319 included before <wchar.h>.
23320 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23321 must be included before <wchar.h>. */
23322 #include <stddef.h>
23326 #include <wctype.h>
23337 if ac_fn_c_try_compile
"$LINENO"; then :
23338 gl_cv_type_wctrans_t
=yes
23340 gl_cv_type_wctrans_t
=no
23342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23346 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23347 if test $gl_cv_type_wctrans_t = no
; then
23352 for gl_func
in wctype iswctype wctrans towctrans
; do
23353 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23355 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23356 if eval \
${$as_gl_Symbol+:} false
; then :
23357 $as_echo_n "(cached) " >&6
23359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23360 /* end confdefs.h. */
23362 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23364 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23365 included before <wchar.h>. */
23366 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23367 # include <stddef.h>
23368 # include <stdio.h>
23370 # include <wchar.h>
23372 #include <wctype.h>
23383 if ac_fn_c_try_compile
"$LINENO"; then :
23384 eval "$as_gl_Symbol=yes"
23386 eval "$as_gl_Symbol=no"
23388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23390 eval ac_res
=\$
$as_gl_Symbol
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23392 $as_echo "$ac_res" >&6; }
23393 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23394 cat >>confdefs.h
<<_ACEOF
23395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23398 eval ac_cv_have_decl_
$gl_func=yes
23414 ac_fn_c_check_decl
"$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
23415 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23416 #include <string.h>
23417 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23419 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23420 before <wchar.h>. */
23421 #include <stddef.h>
23427 if test "x$ac_cv_have_decl_wcwidth" = xyes
; then :
23433 cat >>confdefs.h
<<_ACEOF
23434 #define HAVE_DECL_WCWIDTH $ac_have_decl
23437 if test $ac_cv_have_decl_wcwidth != yes; then
23438 HAVE_DECL_WCWIDTH
=0
23441 if test $ac_cv_func_wcwidth = yes; then
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
23444 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
23445 if ${gl_cv_func_wcwidth_works+:} false
; then :
23446 $as_echo_n "(cached) " >&6
23449 if test "$cross_compiling" = yes; then :
23452 # Guess yes on glibc and AIX 7 systems.
23453 *-gnu* | aix
[7-9]*) gl_cv_func_wcwidth_works
="guessing yes";;
23454 *) gl_cv_func_wcwidth_works
="guessing no";;
23458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h. */
23461 #include <locale.h>
23462 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23463 #include <string.h>
23464 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23466 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23467 before <wchar.h>. */
23468 #include <stddef.h>
23472 #if !HAVE_DECL_WCWIDTH
23474 # ifdef __cplusplus
23482 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
23484 if (wcwidth (0x0301) > 0)
23486 if (wcwidth (0x05B0) > 0)
23488 if (wcwidth (0x200B) > 0)
23494 if ac_fn_c_try_run
"$LINENO"; then :
23495 gl_cv_func_wcwidth_works
=yes
23497 gl_cv_func_wcwidth_works
=no
23499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
23506 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
23507 case "$gl_cv_func_wcwidth_works" in
23509 *no
) REPLACE_WCWIDTH
=1 ;;
23515 if test $HAVE_WCWIDTH = 0 ||
test $REPLACE_WCWIDTH = 1; then
23524 gl_LIBOBJS
="$gl_LIBOBJS wcwidth.$ac_objext"
23538 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
23544 for ac_header
in stdint.h
23546 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23547 if test "x$ac_cv_header_stdint_h" = xyes
; then :
23548 cat >>confdefs.h
<<_ACEOF
23549 #define HAVE_STDINT_H 1
23557 # End of code from modules
23578 gl_source_base
='tests'
23579 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
23581 gl_module_indicator_condition
=$gltests_WITNESS
23591 LIBGNU_LIBDEPS
="$gl_libdeps"
23593 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23597 WARN_FLAGS
="-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes"
23598 EXTRA_WARN_FLAGS
="-Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2"
23600 HOST_CFLAGS
="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
23603 $as_echo_n "checking which extra warnings work... " >&6; }
23604 if ${grub_cv_cc_w_extra_flags+:} false
; then :
23605 $as_echo_n "(cached) " >&6
23608 SAVED_CFLAGS
="$CFLAGS"
23609 grub_cv_cc_w_extra_flags
=
23610 for x
in $EXTRA_WARN_FLAGS; do
23611 CFLAGS
="$HOST_CFLAGS $x -Werror"
23612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23623 if ac_fn_c_try_link
"$LINENO"; then :
23628 rm -f core conftest.err conftest.
$ac_objext \
23629 conftest
$ac_exeext conftest.
$ac_ext
23630 if test x
$flag = x1
; then
23631 grub_cv_cc_w_extra_flags
="$grub_cv_cc_w_extra_flags $x"
23634 CFLAGS
="$SAVED_CFLAGS"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
23638 $as_echo "$grub_cv_cc_w_extra_flags" >&6; }
23640 HOST_CFLAGS
="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
23643 # Check for target programs.
23646 # Find tools for the target.
23647 if test "x$target_alias" != x
&& test "x$host_alias" != "x$target_alias"; then
23648 tmp_ac_tool_prefix
="$ac_tool_prefix"
23649 ac_tool_prefix
=$target_alias-
23651 if test -n "$ac_tool_prefix"; then
23652 for ac_prog
in gcc egcs cc
23654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23655 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23657 $as_echo_n "checking for $ac_word... " >&6; }
23658 if ${ac_cv_prog_TARGET_CC+:} false
; then :
23659 $as_echo_n "(cached) " >&6
23661 if test -n "$TARGET_CC"; then
23662 ac_cv_prog_TARGET_CC
="$TARGET_CC" # Let the user override the test.
23664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23665 for as_dir
in $PATH
23668 test -z "$as_dir" && as_dir
=.
23669 for ac_exec_ext
in '' $ac_executable_extensions; do
23670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23671 ac_cv_prog_TARGET_CC
="$ac_tool_prefix$ac_prog"
23672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23681 TARGET_CC
=$ac_cv_prog_TARGET_CC
23682 if test -n "$TARGET_CC"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
23684 $as_echo "$TARGET_CC" >&6; }
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687 $as_echo "no" >&6; }
23691 test -n "$TARGET_CC" && break
23694 if test -z "$TARGET_CC"; then
23695 ac_ct_TARGET_CC
=$TARGET_CC
23696 for ac_prog
in gcc egcs cc
23698 # Extract the first word of "$ac_prog", so it can be a program name with args.
23699 set dummy
$ac_prog; ac_word
=$2
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23701 $as_echo_n "checking for $ac_word... " >&6; }
23702 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false
; then :
23703 $as_echo_n "(cached) " >&6
23705 if test -n "$ac_ct_TARGET_CC"; then
23706 ac_cv_prog_ac_ct_TARGET_CC
="$ac_ct_TARGET_CC" # Let the user override the test.
23708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23709 for as_dir
in $PATH
23712 test -z "$as_dir" && as_dir
=.
23713 for ac_exec_ext
in '' $ac_executable_extensions; do
23714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23715 ac_cv_prog_ac_ct_TARGET_CC
="$ac_prog"
23716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23725 ac_ct_TARGET_CC
=$ac_cv_prog_ac_ct_TARGET_CC
23726 if test -n "$ac_ct_TARGET_CC"; then
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
23728 $as_echo "$ac_ct_TARGET_CC" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23731 $as_echo "no" >&6; }
23735 test -n "$ac_ct_TARGET_CC" && break
23738 if test "x$ac_ct_TARGET_CC" = x
; then
23739 TARGET_CC
="as_fn_error $? "none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" "$LINENO" 5"
23741 case $cross_compiling:$ac_tool_warned in
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23745 ac_tool_warned
=yes ;;
23747 TARGET_CC
=$ac_ct_TARGET_CC
23751 if test -n "$ac_tool_prefix"; then
23752 for ac_prog
in gobjcopy objcopy
23754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23755 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23757 $as_echo_n "checking for $ac_word... " >&6; }
23758 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
23759 $as_echo_n "(cached) " >&6
23761 if test -n "$TARGET_OBJCOPY"; then
23762 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
23764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23765 for as_dir
in $PATH
23768 test -z "$as_dir" && as_dir
=.
23769 for ac_exec_ext
in '' $ac_executable_extensions; do
23770 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23771 ac_cv_prog_TARGET_OBJCOPY
="$ac_tool_prefix$ac_prog"
23772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23781 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
23782 if test -n "$TARGET_OBJCOPY"; then
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
23784 $as_echo "$TARGET_OBJCOPY" >&6; }
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787 $as_echo "no" >&6; }
23791 test -n "$TARGET_OBJCOPY" && break
23794 if test -z "$TARGET_OBJCOPY"; then
23795 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
23796 for ac_prog
in gobjcopy objcopy
23798 # Extract the first word of "$ac_prog", so it can be a program name with args.
23799 set dummy
$ac_prog; ac_word
=$2
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23801 $as_echo_n "checking for $ac_word... " >&6; }
23802 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
23803 $as_echo_n "(cached) " >&6
23805 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23806 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
23808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23809 for as_dir
in $PATH
23812 test -z "$as_dir" && as_dir
=.
23813 for ac_exec_ext
in '' $ac_executable_extensions; do
23814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23815 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_prog"
23816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23825 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
23826 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
23828 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23831 $as_echo "no" >&6; }
23835 test -n "$ac_ct_TARGET_OBJCOPY" && break
23838 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
23841 case $cross_compiling:$ac_tool_warned in
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23845 ac_tool_warned
=yes ;;
23847 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
23851 if test -n "$ac_tool_prefix"; then
23852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23853 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23855 $as_echo_n "checking for $ac_word... " >&6; }
23856 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
23857 $as_echo_n "(cached) " >&6
23859 if test -n "$TARGET_STRIP"; then
23860 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
23862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23863 for as_dir
in $PATH
23866 test -z "$as_dir" && as_dir
=.
23867 for ac_exec_ext
in '' $ac_executable_extensions; do
23868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23869 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
23870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23879 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
23880 if test -n "$TARGET_STRIP"; then
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
23882 $as_echo "$TARGET_STRIP" >&6; }
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23885 $as_echo "no" >&6; }
23890 if test -z "$ac_cv_prog_TARGET_STRIP"; then
23891 ac_ct_TARGET_STRIP
=$TARGET_STRIP
23892 # Extract the first word of "strip", so it can be a program name with args.
23893 set dummy strip
; ac_word
=$2
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23895 $as_echo_n "checking for $ac_word... " >&6; }
23896 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
23897 $as_echo_n "(cached) " >&6
23899 if test -n "$ac_ct_TARGET_STRIP"; then
23900 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
23902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23903 for as_dir
in $PATH
23906 test -z "$as_dir" && as_dir
=.
23907 for ac_exec_ext
in '' $ac_executable_extensions; do
23908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23909 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
23910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23919 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
23920 if test -n "$ac_ct_TARGET_STRIP"; then
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
23922 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925 $as_echo "no" >&6; }
23928 if test "x$ac_ct_TARGET_STRIP" = x
; then
23931 case $cross_compiling:$ac_tool_warned in
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23935 ac_tool_warned
=yes ;;
23937 TARGET_STRIP
=$ac_ct_TARGET_STRIP
23940 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
23943 if test -n "$ac_tool_prefix"; then
23944 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
23945 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23947 $as_echo_n "checking for $ac_word... " >&6; }
23948 if ${ac_cv_prog_TARGET_NM+:} false
; then :
23949 $as_echo_n "(cached) " >&6
23951 if test -n "$TARGET_NM"; then
23952 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
23954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23955 for as_dir
in $PATH
23958 test -z "$as_dir" && as_dir
=.
23959 for ac_exec_ext
in '' $ac_executable_extensions; do
23960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23961 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
23962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23971 TARGET_NM
=$ac_cv_prog_TARGET_NM
23972 if test -n "$TARGET_NM"; then
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
23974 $as_echo "$TARGET_NM" >&6; }
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 $as_echo "no" >&6; }
23982 if test -z "$ac_cv_prog_TARGET_NM"; then
23983 ac_ct_TARGET_NM
=$TARGET_NM
23984 # Extract the first word of "nm", so it can be a program name with args.
23985 set dummy nm
; ac_word
=$2
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23987 $as_echo_n "checking for $ac_word... " >&6; }
23988 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
23989 $as_echo_n "(cached) " >&6
23991 if test -n "$ac_ct_TARGET_NM"; then
23992 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
23994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23995 for as_dir
in $PATH
23998 test -z "$as_dir" && as_dir
=.
23999 for ac_exec_ext
in '' $ac_executable_extensions; do
24000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24001 ac_cv_prog_ac_ct_TARGET_NM
="nm"
24002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24011 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
24012 if test -n "$ac_ct_TARGET_NM"; then
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24014 $as_echo "$ac_ct_TARGET_NM" >&6; }
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24017 $as_echo "no" >&6; }
24020 if test "x$ac_ct_TARGET_NM" = x
; then
24023 case $cross_compiling:$ac_tool_warned in
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24027 ac_tool_warned
=yes ;;
24029 TARGET_NM
=$ac_ct_TARGET_NM
24032 TARGET_NM
="$ac_cv_prog_TARGET_NM"
24035 if test -n "$ac_tool_prefix"; then
24036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24037 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24039 $as_echo_n "checking for $ac_word... " >&6; }
24040 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
24041 $as_echo_n "(cached) " >&6
24043 if test -n "$TARGET_RANLIB"; then
24044 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
24046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24047 for as_dir
in $PATH
24050 test -z "$as_dir" && as_dir
=.
24051 for ac_exec_ext
in '' $ac_executable_extensions; do
24052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24053 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
24054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24063 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
24064 if test -n "$TARGET_RANLIB"; then
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24066 $as_echo "$TARGET_RANLIB" >&6; }
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24069 $as_echo "no" >&6; }
24074 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24075 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
24076 # Extract the first word of "ranlib", so it can be a program name with args.
24077 set dummy ranlib
; ac_word
=$2
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24079 $as_echo_n "checking for $ac_word... " >&6; }
24080 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
24081 $as_echo_n "(cached) " >&6
24083 if test -n "$ac_ct_TARGET_RANLIB"; then
24084 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24087 for as_dir
in $PATH
24090 test -z "$as_dir" && as_dir
=.
24091 for ac_exec_ext
in '' $ac_executable_extensions; do
24092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24093 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
24094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24103 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
24104 if test -n "$ac_ct_TARGET_RANLIB"; then
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24106 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109 $as_echo "no" >&6; }
24112 if test "x$ac_ct_TARGET_RANLIB" = x
; then
24115 case $cross_compiling:$ac_tool_warned in
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24119 ac_tool_warned
=yes ;;
24121 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
24124 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
24128 ac_tool_prefix
="$tmp_ac_tool_prefix"
24130 if test "x$TARGET_CC" = x
; then
24133 if test -n "$ac_tool_prefix"; then
24134 for ac_prog
in gobjcopy objcopy
24136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24137 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24139 $as_echo_n "checking for $ac_word... " >&6; }
24140 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
24141 $as_echo_n "(cached) " >&6
24143 if test -n "$TARGET_OBJCOPY"; then
24144 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
24146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24147 for as_dir
in $PATH
24150 test -z "$as_dir" && as_dir
=.
24151 for ac_exec_ext
in '' $ac_executable_extensions; do
24152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24153 ac_cv_prog_TARGET_OBJCOPY
="$ac_tool_prefix$ac_prog"
24154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24163 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
24164 if test -n "$TARGET_OBJCOPY"; then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
24166 $as_echo "$TARGET_OBJCOPY" >&6; }
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24169 $as_echo "no" >&6; }
24173 test -n "$TARGET_OBJCOPY" && break
24176 if test -z "$TARGET_OBJCOPY"; then
24177 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
24178 for ac_prog
in gobjcopy objcopy
24180 # Extract the first word of "$ac_prog", so it can be a program name with args.
24181 set dummy
$ac_prog; ac_word
=$2
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24183 $as_echo_n "checking for $ac_word... " >&6; }
24184 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
24185 $as_echo_n "(cached) " >&6
24187 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24188 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
24190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24191 for as_dir
in $PATH
24194 test -z "$as_dir" && as_dir
=.
24195 for ac_exec_ext
in '' $ac_executable_extensions; do
24196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24197 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_prog"
24198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24207 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
24208 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
24210 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24213 $as_echo "no" >&6; }
24217 test -n "$ac_ct_TARGET_OBJCOPY" && break
24220 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
24223 case $cross_compiling:$ac_tool_warned in
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24227 ac_tool_warned
=yes ;;
24229 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
24233 if test -n "$ac_tool_prefix"; then
24234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24235 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24237 $as_echo_n "checking for $ac_word... " >&6; }
24238 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
24239 $as_echo_n "(cached) " >&6
24241 if test -n "$TARGET_STRIP"; then
24242 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
24244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24245 for as_dir
in $PATH
24248 test -z "$as_dir" && as_dir
=.
24249 for ac_exec_ext
in '' $ac_executable_extensions; do
24250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24251 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
24252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24261 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
24262 if test -n "$TARGET_STRIP"; then
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
24264 $as_echo "$TARGET_STRIP" >&6; }
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24272 if test -z "$ac_cv_prog_TARGET_STRIP"; then
24273 ac_ct_TARGET_STRIP
=$TARGET_STRIP
24274 # Extract the first word of "strip", so it can be a program name with args.
24275 set dummy strip
; ac_word
=$2
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24277 $as_echo_n "checking for $ac_word... " >&6; }
24278 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
24279 $as_echo_n "(cached) " >&6
24281 if test -n "$ac_ct_TARGET_STRIP"; then
24282 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
24284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24285 for as_dir
in $PATH
24288 test -z "$as_dir" && as_dir
=.
24289 for ac_exec_ext
in '' $ac_executable_extensions; do
24290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24291 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
24292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24301 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
24302 if test -n "$ac_ct_TARGET_STRIP"; then
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
24304 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307 $as_echo "no" >&6; }
24310 if test "x$ac_ct_TARGET_STRIP" = x
; then
24313 case $cross_compiling:$ac_tool_warned in
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24317 ac_tool_warned
=yes ;;
24319 TARGET_STRIP
=$ac_ct_TARGET_STRIP
24322 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
24325 if test -n "$ac_tool_prefix"; then
24326 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
24327 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24329 $as_echo_n "checking for $ac_word... " >&6; }
24330 if ${ac_cv_prog_TARGET_NM+:} false
; then :
24331 $as_echo_n "(cached) " >&6
24333 if test -n "$TARGET_NM"; then
24334 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
24336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24337 for as_dir
in $PATH
24340 test -z "$as_dir" && as_dir
=.
24341 for ac_exec_ext
in '' $ac_executable_extensions; do
24342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24343 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
24344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24353 TARGET_NM
=$ac_cv_prog_TARGET_NM
24354 if test -n "$TARGET_NM"; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
24356 $as_echo "$TARGET_NM" >&6; }
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24359 $as_echo "no" >&6; }
24364 if test -z "$ac_cv_prog_TARGET_NM"; then
24365 ac_ct_TARGET_NM
=$TARGET_NM
24366 # Extract the first word of "nm", so it can be a program name with args.
24367 set dummy nm
; ac_word
=$2
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24369 $as_echo_n "checking for $ac_word... " >&6; }
24370 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
24371 $as_echo_n "(cached) " >&6
24373 if test -n "$ac_ct_TARGET_NM"; then
24374 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
24376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24377 for as_dir
in $PATH
24380 test -z "$as_dir" && as_dir
=.
24381 for ac_exec_ext
in '' $ac_executable_extensions; do
24382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24383 ac_cv_prog_ac_ct_TARGET_NM
="nm"
24384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24393 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
24394 if test -n "$ac_ct_TARGET_NM"; then
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24396 $as_echo "$ac_ct_TARGET_NM" >&6; }
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24402 if test "x$ac_ct_TARGET_NM" = x
; then
24405 case $cross_compiling:$ac_tool_warned in
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24409 ac_tool_warned
=yes ;;
24411 TARGET_NM
=$ac_ct_TARGET_NM
24414 TARGET_NM
="$ac_cv_prog_TARGET_NM"
24417 if test -n "$ac_tool_prefix"; then
24418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24419 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24421 $as_echo_n "checking for $ac_word... " >&6; }
24422 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
24423 $as_echo_n "(cached) " >&6
24425 if test -n "$TARGET_RANLIB"; then
24426 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
24428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24429 for as_dir
in $PATH
24432 test -z "$as_dir" && as_dir
=.
24433 for ac_exec_ext
in '' $ac_executable_extensions; do
24434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24435 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
24436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24445 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
24446 if test -n "$TARGET_RANLIB"; then
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24448 $as_echo "$TARGET_RANLIB" >&6; }
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24451 $as_echo "no" >&6; }
24456 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24457 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
24458 # Extract the first word of "ranlib", so it can be a program name with args.
24459 set dummy ranlib
; ac_word
=$2
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24461 $as_echo_n "checking for $ac_word... " >&6; }
24462 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
24463 $as_echo_n "(cached) " >&6
24465 if test -n "$ac_ct_TARGET_RANLIB"; then
24466 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24469 for as_dir
in $PATH
24472 test -z "$as_dir" && as_dir
=.
24473 for ac_exec_ext
in '' $ac_executable_extensions; do
24474 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24475 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
24476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24485 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
24486 if test -n "$ac_ct_TARGET_RANLIB"; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24488 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24494 if test "x$ac_ct_TARGET_RANLIB" = x
; then
24497 case $cross_compiling:$ac_tool_warned in
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24501 ac_tool_warned
=yes ;;
24503 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
24506 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
24522 # Test the C compiler for the target environment.
24524 tmp_CFLAGS
="$CFLAGS"
24525 tmp_LDFLAGS
="$LDFLAGS"
24526 tmp_CPPFLAGS
="$CPPFLAGS"
24529 CFLAGS
="$TARGET_CFLAGS"
24530 CPPFLAGS
="$TARGET_CPPFLAGS"
24531 LDFLAGS
="$TARGET_LDFLAGS"
24535 TARGET_CFLAGS
="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
24536 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -g"
24538 if test "x$target_cpu" != xi386
&& test "x$target_cpu" != xx86_64
; then
24539 TARGET_CFLAGS
="$TARGET_CFLAGS -Wcast-align"
24542 TARGET_CC_VERSION
="$(LC_ALL=C $TARGET_CC --version | head -n1)"
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
24545 $as_echo_n "checking which extra warnings work... " >&6; }
24546 if ${grub_cv_target_cc_w_extra_flags+:} false
; then :
24547 $as_echo_n "(cached) " >&6
24550 LDFLAGS
="$TARGET_LDFLAGS -nostdlib -static"
24552 grub_cv_target_cc_w_extra_flags
=
24553 for x
in $EXTRA_WARN_FLAGS; do
24554 CFLAGS
="$TARGET_CFLAGS $x -Werror"
24555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24558 asm (".globl start; start:");
24559 void __main (void);
24560 void __main (void) {}
24571 if ac_fn_c_try_link
"$LINENO"; then :
24576 rm -f core conftest.err conftest.
$ac_objext \
24577 conftest
$ac_exeext conftest.
$ac_ext
24578 if test x
$flag = x1
; then
24579 grub_cv_target_cc_w_extra_flags
="$grub_cv_target_cc_w_extra_flags $x"
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
24585 $as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
24587 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
24590 $as_echo_n "checking if compiling with clang... " >&6; }
24591 if { as_var
=grub_cv_cc_target_clang
24593 CFLAGS
="$TARGET_CFLAGS"
24594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h. */
24609 if ac_fn_c_try_compile
"$LINENO"; then :
24610 grub_cv_cc_target_clang
=no
24612 grub_cv_cc_target_clang
=yes
24614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext; eval \
${$as_var+:} false
; }; then :
24615 $as_echo_n "(cached) " >&6
24617 eval ac_res
=\
$grub_cv_cc_target_clang
24619 CFLAGS
="$TARGET_CFLAGS"
24620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24635 if ac_fn_c_try_compile
"$LINENO"; then :
24636 grub_cv_cc_target_clang
=no
24638 grub_cv_cc_target_clang
=yes
24640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24642 $as_echo "$ac_res" >&6; }
24644 # on x86 clang doesn't support .code16
24645 # on arm clang doesn't support .arch directive
24646 # on mips clang doesn't support privilegied instructions, doubleword store/load
24647 # and crashes with hand-written assembly
24648 if test "x$grub_cv_cc_target_clang" = xyes
&& ( test "x$target_cpu" = xi386 \
24649 ||
test "x$target_cpu" = xx86_64 ||
test "x$target_cpu" = xarm \
24650 ||
test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
); then
24651 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -no-integrated-as"
24654 if test "x$grub_cv_cc_target_clang" = xyes
&& test "x$target_cpu" = xpowerpc
; then
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang can handle ame instruction" >&5
24656 $as_echo_n "checking if clang can handle ame instruction... " >&6; }
24657 if { as_var
=grub_cv_cc_target_clang_ame
24659 CFLAGS
="$TARGET_CFLAGS"
24660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24661 /* end confdefs.h. */
24667 unsigned int a = 0, b = 0;
24668 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24676 if ac_fn_c_try_compile
"$LINENO"; then :
24677 grub_cv_cc_target_clang_ame
=yes
24679 grub_cv_cc_target_clang_ame
=no
24681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext; eval \
${$as_var+:} false
; }; then :
24682 $as_echo_n "(cached) " >&6
24684 eval ac_res
=\
$grub_cv_cc_target_clang_ame
24686 CFLAGS
="$TARGET_CFLAGS"
24687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h. */
24694 unsigned int a = 0, b = 0;
24695 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24703 if ac_fn_c_try_compile
"$LINENO"; then :
24704 grub_cv_cc_target_clang_ame
=yes
24706 grub_cv_cc_target_clang_ame
=no
24708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24710 $as_echo "$ac_res" >&6; }
24711 # clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
24713 if test x
$grub_cv_cc_target_clang_ame = xno
; then
24714 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -no-integrated-as"
24715 TARGET_CFLAGS
="$TARGET_CFLAGS -no-integrated-as"
24719 if test "x$target_cpu" = xi386
&& test "x$platform" != xemu
; then
24720 TARGET_CFLAGS
="$TARGET_CFLAGS -march=i386"
24723 if test "x$target_m32" = x1
; then
24724 # Force 32-bit mode.
24725 TARGET_CFLAGS
="$TARGET_CFLAGS -m32"
24726 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m32"
24727 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m32"
24728 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m32"
24729 TARGET_MODULE_FORMAT
="elf32"
24732 if test "x$target_m64" = x1
; then
24733 # Force 64-bit mode.
24734 TARGET_CFLAGS
="$TARGET_CFLAGS -m64"
24735 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m64"
24736 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m64"
24737 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m64"
24738 TARGET_MODULE_FORMAT
="elf64"
24741 if test "x$grub_cv_cc_target_clang" = xno
&& test "x$target_cpu" = xi386
&& test "x$platform" != xemu
&& test "x$platform" != xefi
; then
24742 TARGET_CFLAGS
="$TARGET_CFLAGS -mrtd -mregparm=3"
24745 # on mips redirect cache flushing function to non-existant one.
24746 if test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
; then
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
24748 $as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
24749 if ${grub_cv_cc_mflush_func+:} false
; then :
24750 $as_echo_n "(cached) " >&6
24753 CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
24754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h. */
24765 if ac_fn_c_try_compile
"$LINENO"; then :
24766 grub_cv_cc_mflush_func
=yes
24768 grub_cv_cc_mflush_func
=no
24770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
24774 $as_echo "$grub_cv_cc_mflush_func" >&6; }
24776 if test "x$grub_cv_cc_mflush_func" = xyes
; then
24777 TARGET_CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring"
24782 # Force no alignment to save space on i386.
24783 if test "x$target_cpu" = xi386
; then
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
24785 $as_echo_n "checking whether -falign-loops works... " >&6; }
24786 if ${grub_cv_cc_falign_loop+:} false
; then :
24787 $as_echo_n "(cached) " >&6
24790 CFLAGS
="$TARGET_CFLAGS -falign-loops=1 -Werror"
24791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24792 /* end confdefs.h. */
24802 if ac_fn_c_try_compile
"$LINENO"; then :
24803 grub_cv_cc_falign_loop
=yes
24805 grub_cv_cc_falign_loop
=no
24807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
24811 $as_echo "$grub_cv_cc_falign_loop" >&6; }
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
24814 $as_echo_n "checking whether -malign-loops works... " >&6; }
24815 if ${grub_cv_cc_malign_loop+:} false
; then :
24816 $as_echo_n "(cached) " >&6
24819 CFLAGS
="$TARGET_CFLAGS -malign-loops=1 -Werror"
24820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24821 /* end confdefs.h. */
24831 if ac_fn_c_try_compile
"$LINENO"; then :
24832 grub_cv_cc_malign_loop
=yes
24834 grub_cv_cc_malign_loop
=no
24836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
24840 $as_echo "$grub_cv_cc_malign_loop" >&6; }
24842 if test "x$grub_cv_cc_falign_loop" = xyes
; then
24843 TARGET_CFLAGS
="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
24844 elif test "x$grub_cv_cc_malign_loop" = xyes
; then
24845 TARGET_CFLAGS
="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
24850 $as_echo_n "checking whether -freg-struct-return works... " >&6; }
24851 if ${grub_cv_cc_freg_struct_return+:} false
; then :
24852 $as_echo_n "(cached) " >&6
24855 CFLAGS
="$TARGET_CFLAGS -freg-struct-return -Werror"
24856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24867 if ac_fn_c_try_compile
"$LINENO"; then :
24868 grub_cv_cc_freg_struct_return
=yes
24870 grub_cv_cc_freg_struct_return
=no
24872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
24876 $as_echo "$grub_cv_cc_freg_struct_return" >&6; }
24878 if test "x$grub_cv_cc_freg_struct_return" = xyes
; then
24879 TARGET_CFLAGS
="$TARGET_CFLAGS -freg-struct-return"
24882 if ( test "x$target_cpu" = xi386 ||
test "x$target_cpu" = xx86_64
) && test "x$platform" != xemu
; then
24883 # Some toolchains enable these features by default, but they need
24884 # registers that aren't set up properly in GRUB.
24885 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
24888 # GRUB doesn't use float or doubles at all. Yet some toolchains may decide
24889 # that floats are a good fit to run instead of what's written in the code.
24890 # Given that floating point unit is disabled (if present to begin with)
24891 # when GRUB is running which may result in various hard crashes.
24892 if test "x$target_cpu" = xarm64
; then
24893 TARGET_CFLAGS
="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd"
24895 TARGET_CFLAGS
="$TARGET_CFLAGS -msoft-float"
24898 # By default, GCC 4.4 generates .eh_frame sections containing unwind
24899 # information in some cases where it previously did not. GRUB doesn't need
24900 # these and they just use up vital space. Restore the old compiler
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
24903 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
24904 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false
; then :
24905 $as_echo_n "(cached) " >&6
24908 CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24910 /* end confdefs.h. */
24920 if ac_fn_c_try_compile
"$LINENO"; then :
24921 grub_cv_cc_fno_dwarf2_cfi_asm
=yes
24923 grub_cv_cc_fno_dwarf2_cfi_asm
=no
24925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
24929 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
24931 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes
; then
24932 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24935 if test x
"$target_os" = xcygwin
; then
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
24937 $as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
24938 if ${grub_cv_cc_no_reorder_functions+:} false
; then :
24939 $as_echo_n "(cached) " >&6
24942 CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
24943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24944 /* end confdefs.h. */
24954 if ac_fn_c_try_compile
"$LINENO"; then :
24955 grub_cv_cc_no_reorder_functions
=yes
24957 grub_cv_cc_no_reorder_functions
=no
24959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
24963 $as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
24966 if test x
"$target_os" = xcygwin
&& test "x$grub_cv_cc_no_reorder_functions" = xyes
; then
24967 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
24970 # By default, GCC 4.6 generates .eh_frame sections containing unwind
24971 # information in some cases where it previously did not. GRUB doesn't need
24972 # these and they just use up vital space. Restore the old compiler
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
24975 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
24976 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false
; then :
24977 $as_echo_n "(cached) " >&6
24980 CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24992 if ac_fn_c_try_compile
"$LINENO"; then :
24993 grub_cv_cc_fno_asynchronous_unwind_tables
=yes
24995 grub_cv_cc_fno_asynchronous_unwind_tables
=no
24997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
25001 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
25003 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes
; then
25004 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
25007 # Check whether --enable-efiemu was given.
25008 if test "${enable_efiemu+set}" = set; then :
25009 enableval
=$enable_efiemu;
25012 if test x
"$enable_efiemu" = xno
; then
25013 efiemu_excuse
="explicitly disabled"
25015 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe ||
test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
25016 efiemu_excuse
="not available on cygwin"
25018 if test x
"$target_cpu" != xi386
; then
25019 efiemu_excuse
="only available on i386"
25021 if test x
"$platform" = xefi
; then
25022 efiemu_excuse
="not available on efi"
25024 if test x
"$efiemu_excuse" = x
; then
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
25026 $as_echo_n "checking whether options required for efiemu work... " >&6; }
25027 if ${grub_cv_cc_efiemu+:} false
; then :
25028 $as_echo_n "(cached) " >&6
25031 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h. */
25043 if ac_fn_c_try_compile
"$LINENO"; then :
25044 grub_cv_cc_efiemu
=yes
25046 grub_cv_cc_efiemu
=no
25048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
25052 $as_echo "$grub_cv_cc_efiemu" >&6; }
25053 if test x
$grub_cv_cc_efiemu = xno
; then
25054 efiemu_excuse
="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
25057 if test x
"$efiemu_excuse" = x
; then
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
25059 $as_echo_n "checking for efiemu64 linking format... " >&6; }
25060 if ${grub_cv_target_cc_efiemu64_link_format+:} false
; then :
25061 $as_echo_n "(cached) " >&6
25064 grub_cv_target_cc_efiemu64_link_format
=unknown
25065 for format
in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64
; do
25066 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25067 LDFLAGS
="-m64 -Wl,$format -nostdlib -static"
25068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25069 /* end confdefs.h. */
25071 asm (".globl start; start:");
25072 asm (".globl _start; _start:");
25073 asm (".globl __start; __start:");
25074 void __main (void);
25075 void __main (void) {}
25085 if ac_fn_c_try_link
"$LINENO"; then :
25090 rm -f core conftest.err conftest.
$ac_objext \
25091 conftest
$ac_exeext conftest.
$ac_ext
25092 if test x
"$flag" = x1
; then
25093 grub_cv_target_cc_efiemu64_link_format
="$format"
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
25099 $as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
25100 if test x
"$grub_cv_target_cc_efiemu64_link_format" = xunknown
; then
25101 efiemu_excuse
="no suitable link format for efiemu64 found"
25103 EFIEMU64_LINK_FORMAT
="-Wl,$grub_cv_target_cc_efiemu64_link_format"
25106 if test x
"$enable_efiemu" = xyes
&& test x
"$efiemu_excuse" != x
; then
25107 as_fn_error $?
"efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
25109 if test x
"$efiemu_excuse" = x
; then
25117 CFLAGS
="$TARGET_CFLAGS"
25120 if test x
"$platform" = xemu
; then
25122 grub_cv_target_cc_link_format
=
25125 grub_cv_target_cc_link_format
="-arch,${target_cpu}"
25126 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25128 *windows
* |
*cygwin
* |
*mingw
*)
25129 if test x
${target_cpu} = xi386
; then
25130 grub_cv_target_cc_link_format
=-mi386pe
25131 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
25133 if test x
${target_cpu} = xx86_64
; then
25134 grub_cv_target_cc_link_format
=-mi386pep
25135 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
25137 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25140 elif test x
"$target_cpu" = xi386 ||
test x
"$target_cpu" = xx86_64
; then
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
25142 $as_echo_n "checking for target linking format... " >&6; }
25143 if ${grub_cv_target_cc_link_format+:} false
; then :
25144 $as_echo_n "(cached) " >&6
25147 grub_cv_target_cc_link_format
=unknown
25148 for format
in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
25149 if test x
${target_cpu} != xi386
&& test x
$format = x-mi386pe
; then
25152 if test x
${target_cpu} != xx86_64
&& test x
$format = x-mi386pep
; then
25155 CFLAGS
="$TARGET_CFLAGS"
25156 LDFLAGS
="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
25157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h. */
25160 asm (".globl start; start:");
25161 asm (".globl _start; _start:");
25162 asm (".globl __start; __start:");
25163 void __main (void);
25164 void __main (void) {}
25174 if ac_fn_c_try_link
"$LINENO"; then :
25179 rm -f core conftest.err conftest.
$ac_objext \
25180 conftest
$ac_exeext conftest.
$ac_ext
25181 if test x
"$flag" = x1
; then
25182 grub_cv_target_cc_link_format
="$format"
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
25188 $as_echo "$grub_cv_target_cc_link_format" >&6; }
25189 if test x
"$grub_cv_target_cc_link_format" = xunknown
; then
25190 as_fn_error $?
"no suitable link format found" "$LINENO" 5
25192 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25193 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe
; then
25194 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
25196 if test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
25197 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
25201 if test x
$grub_cv_target_cc_link_format = x-arch
,i386 ||
test x
$grub_cv_target_cc_link_format = x-arch
,x86_64
; then
25202 TARGET_APPLE_LINKER
=1
25203 # Extract the first word of "objconv", so it can be a program name with args.
25204 set dummy objconv
; ac_word
=$2
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25206 $as_echo_n "checking for $ac_word... " >&6; }
25207 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
25208 $as_echo_n "(cached) " >&6
25210 if test -n "$TARGET_OBJCONV"; then
25211 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
25213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25214 for as_dir
in $PATH
25217 test -z "$as_dir" && as_dir
=.
25218 for ac_exec_ext
in '' $ac_executable_extensions; do
25219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25220 ac_cv_prog_TARGET_OBJCONV
="objconv"
25221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25230 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
25231 if test -n "$TARGET_OBJCONV"; then
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25233 $as_echo "$TARGET_OBJCONV" >&6; }
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25236 $as_echo "no" >&6; }
25240 if test "x$TARGET_OBJCONV" = x
; then
25241 # Extract the first word of "objconv", so it can be a program name with args.
25242 set dummy objconv
; ac_word
=$2
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25244 $as_echo_n "checking for $ac_word... " >&6; }
25245 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
25246 $as_echo_n "(cached) " >&6
25248 if test -n "$TARGET_OBJCONV"; then
25249 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
25251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25255 test -z "$as_dir" && as_dir
=.
25256 for ac_exec_ext
in '' $ac_executable_extensions; do
25257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25258 ac_cv_prog_TARGET_OBJCONV
="./objconv"
25259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25268 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
25269 if test -n "$TARGET_OBJCONV"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25271 $as_echo "$TARGET_OBJCONV" >&6; }
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25279 if test "x$TARGET_OBJCONV" = x
; then
25280 as_fn_error $?
"objconv not found which is required when building with apple compiler" "$LINENO" 5
25282 TARGET_IMG_LDSCRIPT
=
25283 TARGET_IMG_CFLAGS
="-static"
25284 TARGET_IMG_LDFLAGS
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25285 TARGET_IMG_LDFLAGS_AC
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25286 TARGET_IMG_BASE_LDOPT
="-Wl,-image_base"
25287 TARGET_LDFLAGS_OLDMAGIC
=""
25288 elif test x
$grub_cv_target_cc_link_format = x-mi386pe ||
test x
$grub_cv_target_cc_link_format = x-mi386pep
; then
25289 TARGET_APPLE_LINKER
=0
25290 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
25291 TARGET_IMG_LDSCRIPT
='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25292 TARGET_IMG_LDFLAGS
="-Wl,-T${TARGET_IMG_LDSCRIPT}"
25293 TARGET_IMG_LDFLAGS_AC
="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25294 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
25297 TARGET_APPLE_LINKER
=0
25298 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
25299 TARGET_IMG_LDSCRIPT
=
25300 TARGET_IMG_LDFLAGS
='-Wl,-N'
25301 TARGET_IMG_LDFLAGS_AC
='-Wl,-N'
25302 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
25309 LDFLAGS
="$TARGET_LDFLAGS"
25311 if test "$target_cpu" = x86_64 ||
test "$target_cpu-$platform" = sparc64-emu
; then
25312 # Use large model to support 4G memory
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
25314 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
25315 if ${grub_cv_cc_mcmodel+:} false
; then :
25316 $as_echo_n "(cached) " >&6
25319 CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
25320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25331 if ac_fn_c_try_compile
"$LINENO"; then :
25332 grub_cv_cc_mcmodel
=yes
25334 grub_cv_cc_mcmodel
=no
25336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
25340 $as_echo "$grub_cv_cc_mcmodel" >&6; }
25341 if test "x$grub_cv_cc_mcmodel" = xyes
; then
25342 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
25343 elif test "$target_cpu-$platform" = sparc64-emu
; then
25344 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=medany"
25348 if test "$target_cpu"-"$platform" = x86_64-efi
; then
25349 # EFI writes to stack below %rsp, we must not use the red zone
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
25351 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
25352 if ${grub_cv_cc_no_red_zone+:} false
; then :
25353 $as_echo_n "(cached) " >&6
25356 CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
25357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25358 /* end confdefs.h. */
25368 if ac_fn_c_try_compile
"$LINENO"; then :
25369 grub_cv_cc_no_red_zone
=yes
25371 grub_cv_cc_no_red_zone
=no
25373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
25377 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
25378 if test "x$grub_cv_cc_no_red_zone" = xno
; then
25379 as_fn_error $?
"-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
25382 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
25385 if test "x$target_cpu" = xarm
; then
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mlong-calls works" >&5
25387 $as_echo_n "checking whether option -mlong-calls works... " >&6; }
25388 if ${grub_cv_cc_mlong_calls+:} false
; then :
25389 $as_echo_n "(cached) " >&6
25392 CFLAGS
="$TARGET_CFLAGS -mlong-calls -Werror"
25393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25404 if ac_fn_c_try_compile
"$LINENO"; then :
25405 grub_cv_cc_mlong_calls
=yes
25407 grub_cv_cc_mlong_calls
=no
25409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mlong_calls" >&5
25413 $as_echo "$grub_cv_cc_mlong_calls" >&6; }
25414 if test "x$grub_cv_cc_mlong_calls" = xyes
; then
25415 TARGET_CFLAGS
="$TARGET_CFLAGS -mlong-calls"
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
25418 $as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
25419 if ${grub_cv_cc_mthumb_interwork+:} false
; then :
25420 $as_echo_n "(cached) " >&6
25423 CFLAGS
="$TARGET_CFLAGS -mthumb-interwork -Werror"
25424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25435 if ac_fn_c_try_compile
"$LINENO"; then :
25436 grub_cv_cc_mthumb_interwork
=yes
25438 grub_cv_cc_mthumb_interwork
=no
25440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
25444 $as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
25445 if test "x$grub_cv_cc_mthumb_interwork" = xyes
; then
25446 TARGET_CFLAGS
="$TARGET_CFLAGS -mthumb-interwork"
25447 elif test "x$grub_cv_cc_target_clang" = xno
; then
25448 as_fn_error $?
"your compiler doesn't support -mthumb-interwork" "$LINENO" 5
25450 CFLAGS
="$TARGET_CFLAGS"
25451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25452 /* end confdefs.h. */
25458 #if defined (__thumb__) && !defined (__thumb2__)
25459 #error thumb without interworking
25466 if ac_fn_c_try_compile
"$LINENO"; then :
25467 no_interwork_ok
=yes
25471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25472 if test x
$no_interwork_ok = xno
; then
25473 as_fn_error $?
"attempt to compile to thumb with no thumb interwork" "$LINENO" 5
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
25479 $as_echo_n "checking whether option -Qn works... " >&6; }
25480 if ${grub_cv_target_cc_qn+:} false
; then :
25481 $as_echo_n "(cached) " >&6
25484 CFLAGS
="$TARGET_CFLAGS -Qn -Werror"
25485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25486 /* end confdefs.h. */
25496 if ac_fn_c_try_compile
"$LINENO"; then :
25497 grub_cv_target_cc_qn
=yes
25499 grub_cv_target_cc_qn
=no
25501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
25504 $as_echo "$grub_cv_target_cc_qn" >&6; }
25505 if test "x$grub_cv_target_cc_qn" = xyes
; then
25506 TARGET_CFLAGS
="$TARGET_CFLAGS -Qn"
25510 # Compiler features.
25513 CFLAGS
="$TARGET_CFLAGS"
25515 # Position independent executable.
25517 # Position independent executable.
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
25520 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
25521 # Is this a reliable test case?
25522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h. */
25530 #error NO __PIE__ DEFINED
25535 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25536 # `ac_compile' like this correct, after all?
25537 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25539 $as_echo "yes" >&6; }
25540 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 $as_echo "no" >&6; }
25548 # Need that, because some distributions ship compilers that include
25549 # `-fPIE' in the default specs.
25550 if [ x
"$pie_possible" = xyes
]; then
25551 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIE"
25554 CFLAGS
="$TARGET_CFLAGS"
25556 # Position independent executable.
25558 # Position independent executable.
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
25561 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
25562 # Is this a reliable test case?
25563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h. */
25571 #error NO __PIC__ DEFINED
25576 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25577 # `ac_compile' like this correct, after all?
25578 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25580 $as_echo "yes" >&6; }
25581 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25586 $as_echo "no" >&6; }
25589 # On most platforms we don't want PIC as it only makes relocations harder
25590 # and code less efficient. On mips we want to have one got table per module
25591 # and reload $gp in every function.
25592 # GCC implements it using symbol __gnu_local_gp in non-PIC as well.
25593 # However with clang we need PIC for this reloading to happen.
25594 # Since default varies across dictributions use either -fPIC or -fno-PIC
25596 if ( test x
$target_cpu = xmips ||
test x
$target_cpu = xmipsel
) && test "x$grub_cv_cc_target_clang" = xyes
; then
25597 TARGET_CFLAGS
="$TARGET_CFLAGS -fPIC"
25598 elif [ x
"$pic_possible" = xyes
]; then
25599 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIC"
25602 CFLAGS
="$TARGET_CFLAGS"
25604 # Smashing stack protector.
25606 # Smashing stack protector.
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
25609 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
25610 # Is this a reliable test case?
25611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25614 void foo (void) { volatile char a[8]; a[3]; }
25617 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25618 # `ac_compile' like this correct, after all?
25619 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25621 $as_echo "yes" >&6; }
25622 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627 $as_echo "no" >&6; }
25630 # Need that, because some distributions ship compilers that include
25631 # `-fstack-protector' in the default specs.
25632 if test "x$ssp_possible" = xyes
; then
25633 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
25636 CFLAGS
="$TARGET_CFLAGS"
25639 # Smashing stack arg probe.
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
25642 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
25643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25646 void foo (void) { volatile char a[8]; a[3]; }
25649 if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev
/null
; then
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25651 $as_echo "yes" >&6; }
25652 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25657 $as_echo "no" >&6; }
25660 # Cygwin's GCC uses alloca() to probe the stackframe on static
25661 # stack allocations above some threshold.
25662 if test x
"$sap_possible" = xyes
; then
25663 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
25666 CFLAGS
="$TARGET_CFLAGS"
25668 # -mno-unaligned-access -mstrict-align
25669 if test "$target_cpu" = arm
; then
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
25671 $as_echo_n "checking for compile options to get strict alignment... " >&6; }
25672 if ${grub_cv_target_cc_strict_align+:} false
; then :
25673 $as_echo_n "(cached) " >&6
25676 grub_cv_target_cc_strict_align
=
25677 for arg
in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
25678 CFLAGS
="$TARGET_CFLAGS $arg -Werror"
25679 LDFLAGS
="$TARGET_LDFLAGS"
25680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25681 /* end confdefs.h. */
25691 if ac_fn_c_try_compile
"$LINENO"; then :
25696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25697 if test x
"$flag" = x1
; then
25698 grub_cv_target_cc_strict_align
="$arg"
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
25704 $as_echo "$grub_cv_target_cc_strict_align" >&6; }
25706 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
25707 if test x
"$grub_cv_target_cc_strict_align" = x
"-Xclang -mstrict-align"; then
25708 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Qunused-arguments"
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
25711 $as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
25712 if ${grub_cv_cc_target_emits_unaligned+:} false
; then :
25713 $as_echo_n "(cached) " >&6
25715 CFLAGS
="$TARGET_CFLAGS"
25716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25717 /* end confdefs.h. */
25723 #ifdef __ARM_FEATURE_UNALIGNED
25731 if ac_fn_c_try_compile
"$LINENO"; then :
25732 grub_cv_cc_target_emits_unaligned
=no
25734 grub_cv_cc_target_emits_unaligned
=yes
25736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
25739 $as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
25740 if test x
$grub_cv_cc_target_emits_unaligned = xyes
; then
25741 as_fn_error $?
"compiler generates unaligned accesses" "$LINENO" 5
25745 # Set them to their new values for the tests below.
25747 if test "x$TARGET_APPLE_LINKER" = x1
; then
25748 CFLAGS
="$TARGET_CFLAGS -nostdlib -static -Wno-error"
25750 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wno-error"
25752 CPPFLAGS
="$TARGET_CPPFLAGS"
25753 if test x
$target_cpu = xi386 ||
test x
$target_cpu = xx86_64 ||
test "x$grub_cv_cc_target_clang" = xyes
; then
25756 TARGET_LIBGCC
=-lgcc
25759 LIBS
="$TARGET_LIBGCC"
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
25764 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
25765 if ${grub_cv_asm_uscore+:} false
; then :
25766 $as_echo_n "(cached) " >&6
25768 cat > conftest.c
<<\EOF
25778 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; } && test -s conftest.s
; then
25786 as_fn_error $?
"${CC-cc} failed to produce assembly code" "$LINENO" 5
25789 if $EGREP '(^|^_[:alnum])_func' conftest.s
>/dev
/null
2>&1; then
25791 grub_cv_asm_uscore
=yes
25794 grub_cv_asm_uscore
=no
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
25802 $as_echo "$grub_cv_asm_uscore" >&6; }
25804 if test "x$TARGET_APPLE_LINKER" = x0
; then
25805 if test x
$grub_cv_asm_uscore = xyes
; then
25806 DEFSYM
="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
25808 DEFSYM
="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
25810 CFLAGS
="$TARGET_CFLAGS -nostdlib $DEFSYM"
25813 # Check for libgcc symbols
25814 for ac_func
in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x
25816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25819 cat >>confdefs.h
<<_ACEOF
25820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25827 if test "x$TARGET_APPLE_LINKER" = x1
; then
25828 CFLAGS
="$TARGET_CFLAGS -nostdlib -static"
25830 CFLAGS
="$TARGET_CFLAGS -nostdlib"
25834 # Defined in aclocal.m4.
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
25836 $as_echo_n "checking whether target compiler is working... " >&6; }
25837 if ${grub_cv_prog_target_cc+:} false
; then :
25838 $as_echo_n "(cached) " >&6
25840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h. */
25843 asm (".globl start; start:");
25844 void __main (void);
25845 void __main (void) {}
25856 if ac_fn_c_try_link
"$LINENO"; then :
25857 grub_cv_prog_target_cc
=yes
25859 grub_cv_prog_target_cc
=no
25861 rm -f core conftest.err conftest.
$ac_objext \
25862 conftest
$ac_exeext conftest.
$ac_ext
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
25867 $as_echo "$grub_cv_prog_target_cc" >&6; }
25869 if test "x$grub_cv_prog_target_cc" = xno
; then
25870 as_fn_error $?
"cannot compile for the target" "$LINENO" 5
25873 if test "x$TARGET_APPLE_LINKER" != x1
; then
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
25875 $as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
25876 if ${grub_cv_prog_objcopy_absolute+:} false
; then :
25877 $as_echo_n "(cached) " >&6
25879 cat > conftest.c
<<\EOF
25884 *((int
*) 0x1000) = 2;
25888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25889 (eval $ac_compile) 2>&5
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; } && test -s conftest.o
; then :
25894 as_fn_error $?
"${CC-cc} cannot compile C source code" "$LINENO" 5
25896 grub_cv_prog_objcopy_absolute
=yes
25897 for link_addr
in 0x2000 0x8000 0x7C00; do
25898 if { ac_try
='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }; then :
25905 as_fn_error $?
"${CC-cc} cannot link at address $link_addr" "$LINENO" 5
25907 if { ac_try
='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }; then :
25914 as_fn_error $?
"${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
25916 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }; then
25922 mv -f conftest conftest.old
25924 grub_cv_prog_objcopy_absolute
=no
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
25932 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
25934 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
25935 as_fn_error $?
"GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
25940 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
25941 if ${grub_cv_prog_ld_build_id_none+:} false
; then :
25942 $as_echo_n "(cached) " >&6
25944 save_LDFLAGS
="$LDFLAGS"
25945 LDFLAGS
="$LDFLAGS -Wl,--build-id=none"
25946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25957 if ac_fn_c_try_link
"$LINENO"; then :
25958 grub_cv_prog_ld_build_id_none
=yes
25960 grub_cv_prog_ld_build_id_none
=no
25962 rm -f core conftest.err conftest.
$ac_objext \
25963 conftest
$ac_exeext conftest.
$ac_ext
25964 LDFLAGS
="$save_LDFLAGS"
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
25969 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
25971 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
25972 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
25975 if test "x$target_cpu" = xi386
; then
25976 if test "$platform" != emu
&& test "x$TARGET_APPLE_LINKER" != x1
; then
25977 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
25978 # Check symbols provided by linker script.
25979 CFLAGS
="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
25983 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
25984 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false
; then :
25985 $as_echo_n "(cached) " >&6
25987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25990 asm (".globl start; start:");
25991 void __main (void);
25992 void __main (void) {}
25998 asm ("incl __bss_start")
26003 if ac_fn_c_try_link
"$LINENO"; then :
26004 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
26006 grub_cv_check_uscore_uscore_bss_start_symbol
=no
26008 rm -f core conftest.err conftest.
$ac_objext \
26009 conftest
$ac_exeext conftest.
$ac_ext
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
26014 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
26017 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
26018 if ${grub_cv_check_edata_symbol+:} false
; then :
26019 $as_echo_n "(cached) " >&6
26021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h. */
26024 asm (".globl start; start:");
26025 void __main (void);
26026 void __main (void) {}
26036 if ac_fn_c_try_link
"$LINENO"; then :
26037 grub_cv_check_edata_symbol
=yes
26039 grub_cv_check_edata_symbol
=no
26041 rm -f core conftest.err conftest.
$ac_objext \
26042 conftest
$ac_exeext conftest.
$ac_ext
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
26047 $as_echo "$grub_cv_check_edata_symbol" >&6; }
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
26050 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
26051 if ${grub_cv_check_uscore_edata_symbol+:} false
; then :
26052 $as_echo_n "(cached) " >&6
26054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h. */
26057 asm (".globl start; start:");
26058 void __main (void);
26059 void __main (void) {}
26064 asm ("incl _edata")
26069 if ac_fn_c_try_link
"$LINENO"; then :
26070 grub_cv_check_uscore_edata_symbol
=yes
26072 grub_cv_check_uscore_edata_symbol
=no
26074 rm -f core conftest.err conftest.
$ac_objext \
26075 conftest
$ac_exeext conftest.
$ac_ext
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
26080 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
26082 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
26083 BSS_START_SYMBOL
=__bss_start
26084 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
26085 BSS_START_SYMBOL
=edata
26086 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
26087 BSS_START_SYMBOL
=_edata
26089 as_fn_error $?
"none of __bss_start, edata or _edata is defined" "$LINENO" 5
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
26094 $as_echo_n "checking if end is defined by the compiler... " >&6; }
26095 if ${grub_cv_check_end_symbol+:} false
; then :
26096 $as_echo_n "(cached) " >&6
26098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h. */
26101 asm (".globl start; start:");
26102 void __main (void);
26103 void __main (void) {}
26113 if ac_fn_c_try_link
"$LINENO"; then :
26114 grub_cv_check_end_symbol
=yes
26116 grub_cv_check_end_symbol
=no
26118 rm -f core conftest.err conftest.
$ac_objext \
26119 conftest
$ac_exeext conftest.
$ac_ext
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
26124 $as_echo "$grub_cv_check_end_symbol" >&6; }
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
26127 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
26128 if ${grub_cv_check_uscore_end_symbol+:} false
; then :
26129 $as_echo_n "(cached) " >&6
26131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26134 asm (".globl start; start:");
26135 void __main (void);
26136 void __main (void) {}
26146 if ac_fn_c_try_link
"$LINENO"; then :
26147 grub_cv_check_uscore_end_symbol
=yes
26149 grub_cv_check_uscore_end_symbol
=no
26151 rm -f core conftest.err conftest.
$ac_objext \
26152 conftest
$ac_exeext conftest.
$ac_ext
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
26157 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
26159 if test "x$grub_cv_check_end_symbol" = xyes
; then
26161 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
26164 as_fn_error $?
"neither end nor _end is defined" "$LINENO" 5
26168 CFLAGS
="$TARGET_CFLAGS"
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
26171 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
26172 if ${grub_cv_i386_asm_prefix_requirement+:} false
; then :
26173 $as_echo_n "(cached) " >&6
26175 cat > conftest.s
<<\EOF
26177 l1
: addr32 movb
%al
, l1
26180 if { ac_try
='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; } && test -s conftest.o
; then
26186 grub_cv_i386_asm_prefix_requirement
=yes
26188 grub_cv_i386_asm_prefix_requirement
=no
26195 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
26196 grub_tmp_addr32
="addr32"
26197 grub_tmp_data32
="data32"
26199 grub_tmp_addr32
="addr32;"
26200 grub_tmp_data32
="data32;"
26203 ADDR32
=$grub_tmp_addr32
26204 DATA32
=$grub_tmp_data32
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
26207 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
26211 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
26212 if ${grub_cv_i386_asm_addr32+:} false
; then :
26213 $as_echo_n "(cached) " >&6
26215 cat > conftest.s.
in <<\EOF
26217 l1
: @ADDR32@ movb
%al
, l1
26220 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
26221 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
26223 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
26226 if { ac_try
='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26228 (eval $ac_try) 2>&5
26230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26231 test $ac_status = 0; }; } && test -s conftest.o
; then
26232 grub_cv_i386_asm_addr32
=yes
26234 grub_cv_i386_asm_addr32
=no
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
26242 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
26246 $as_echo_n "checking whether nm works... " >&6; }
26247 if ${grub_cv_prog_nm_works+:} false
; then :
26248 $as_echo_n "(cached) " >&6
26251 nm_works_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26263 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_works_tmp_dir/ef"
26264 if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev
/null
; then
26265 grub_cv_prog_nm_works
=yes
26267 grub_cv_prog_nm_minus_p
=no
26269 rm "$nm_works_tmp_dir/ef"
26270 rmdir "$nm_works_tmp_dir"
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
26275 $as_echo "$grub_cv_prog_nm_works" >&6; }
26277 if test "x$grub_cv_prog_nm_works" != xyes
; then
26278 as_fn_error $?
"nm does not work" "$LINENO" 5
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
26282 $as_echo_n "checking whether nm accepts -P... " >&6; }
26283 if ${grub_cv_prog_nm_minus_p+:} false
; then :
26284 $as_echo_n "(cached) " >&6
26287 nm_minus_p_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26289 /* end confdefs.h. */
26299 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_minus_p_tmp_dir/ef"
26300 if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev
/null
; then
26301 grub_cv_prog_nm_minus_p
=yes
26303 grub_cv_prog_nm_minus_p
=no
26305 rm "$nm_minus_p_tmp_dir/ef"
26306 rmdir "$nm_minus_p_tmp_dir"
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
26311 $as_echo "$grub_cv_prog_nm_minus_p" >&6; }
26313 if test "x$grub_cv_prog_nm_minus_p" = xyes
; then
26314 TARGET_NMFLAGS_MINUS_P
="-P"
26316 TARGET_NMFLAGS_MINUS_P
=
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
26320 $as_echo_n "checking whether nm accepts --defined-only... " >&6; }
26321 if ${grub_cv_prog_nm_defined_only+:} false
; then :
26322 $as_echo_n "(cached) " >&6
26325 nm_defined_only_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h. */
26337 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_defined_only_tmp_dir/ef"
26338 if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev
/null
; then
26339 grub_cv_prog_nm_defined_only
=yes
26341 grub_cv_prog_nm_defined_only
=no
26343 rm "$nm_defined_only_tmp_dir/ef"
26344 rmdir "$nm_defined_only_tmp_dir"
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
26349 $as_echo "$grub_cv_prog_nm_defined_only" >&6; }
26351 if test "x$grub_cv_prog_nm_defined_only" = xyes
; then
26352 TARGET_NMFLAGS_DEFINED_ONLY
=--defined-only
26354 TARGET_NMFLAGS_DEFINED_ONLY
=
26360 if test "$platform" != emu
; then
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
26362 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
26363 if ${grub_cv_cc_isystem+:} false
; then :
26364 $as_echo_n "(cached) " >&6
26367 SAVED_CPPFLAGS
="$CPPFLAGS"
26368 CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26371 #include <stdarg.h>
26372 #include <stddef.h>
26373 int va_arg_func (int fixed, va_list args);
26382 if ac_fn_c_try_compile
"$LINENO"; then :
26383 grub_cv_cc_isystem
=yes
26385 grub_cv_cc_isystem
=no
26387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26388 CPPFLAGS
="$SAVED_CPPFLAGS"
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
26392 $as_echo "$grub_cv_cc_isystem" >&6; }
26394 if test x
"$grub_cv_cc_isystem" = xyes
; then
26395 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
26400 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
26401 if ${grub_cv_cc_wtrampolines+:} false
; then :
26402 $as_echo_n "(cached) " >&6
26405 CFLAGS
="$TARGET_CFLAGS -Wtrampolines -Werror"
26406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26407 /* end confdefs.h. */
26408 #include <stdarg.h>
26409 int va_arg_func (int fixed, va_list args);
26418 if ac_fn_c_try_compile
"$LINENO"; then :
26419 grub_cv_cc_wtrampolines
=yes
26421 grub_cv_cc_wtrampolines
=no
26423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
26427 $as_echo "$grub_cv_cc_wtrampolines" >&6; }
26429 if test x
"$grub_cv_cc_wtrampolines" = xyes
; then
26430 TARGET_CFLAGS
="$TARGET_CFLAGS -Wtrampolines"
26433 # Restore the flags.
26435 CFLAGS
="$tmp_CFLAGS"
26436 CPPFLAGS
="$tmp_CPPFLAGS"
26437 LDFLAGS
="$tmp_LDFLAGS"
26441 # Check for options.
26444 # Memory manager debugging.
26445 # Check whether --enable-mm-debug was given.
26446 if test "${enable_mm_debug+set}" = set; then :
26447 enableval
=$enable_mm_debug;
26448 $as_echo "#define MM_DEBUG 1" >>confdefs.h
26453 # Check whether --enable-cache-stats was given.
26454 if test "${enable_cache_stats+set}" = set; then :
26455 enableval
=$enable_cache_stats;
26459 if test x
$enable_cache_stats = xyes
; then
26466 # Check whether --enable-boot-time was given.
26467 if test "${enable_boot_time+set}" = set; then :
26468 enableval
=$enable_boot_time;
26472 if test x
$enable_boot_time = xyes
; then
26479 # Check whether --enable-grub-emu-usb was given.
26480 if test "${enable_grub_emu_usb+set}" = set; then :
26481 enableval
=$enable_grub_emu_usb;
26485 # Check whether --enable-grub-emu-sdl was given.
26486 if test "${enable_grub_emu_sdl+set}" = set; then :
26487 enableval
=$enable_grub_emu_sdl;
26491 # Check whether --enable-grub-emu-pci was given.
26492 if test "${enable_grub_emu_pci+set}" = set; then :
26493 enableval
=$enable_grub_emu_pci;
26497 if test "$platform" = emu
; then
26499 if test x
"$enable_grub_emu_usb" != xyes
; then
26500 grub_emu_usb_excuse
="not enabled"
26503 if test x
"$enable_grub_emu_pci" = xyes
; then
26504 grub_emu_usb_excuse
="conflicts with PCI support"
26507 if [ x
"$grub_emu_usb_excuse" = x
]; then
26508 # Check for libusb libraries.
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
26510 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
26511 if ${ac_cv_lib_usb_usb_claim_interface+:} false
; then :
26512 $as_echo_n "(cached) " >&6
26514 ac_check_lib_save_LIBS
=$LIBS
26516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 /* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26525 char usb_claim_interface ();
26529 return usb_claim_interface ();
26534 if ac_fn_c_try_link
"$LINENO"; then :
26535 ac_cv_lib_usb_usb_claim_interface
=yes
26537 ac_cv_lib_usb_usb_claim_interface
=no
26539 rm -f core conftest.err conftest.
$ac_objext \
26540 conftest
$ac_exeext conftest.
$ac_ext
26541 LIBS
=$ac_check_lib_save_LIBS
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
26544 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
26545 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes
; then :
26548 grub_emu_usb_excuse
="need libusb library"
26553 if [ x
"$grub_emu_usb_excuse" = x
]; then
26554 # Check for headers.
26555 for ac_header
in usb.h
26557 ac_fn_c_check_header_mongrel
"$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
26558 if test "x$ac_cv_header_usb_h" = xyes
; then :
26559 cat >>confdefs.h
<<_ACEOF
26560 #define HAVE_USB_H 1
26564 grub_emu_usb_excuse
="need libusb headers"
26570 if test x
"$enable_grub_emu_usb" = xyes
&& test x
"$grub_emu_usb_excuse" != x
; then
26571 as_fn_error $?
"USB support for grub-emu was explicitly requested but can't be compiled ($grub_emu_usb_excuse)" "$LINENO" 5
26573 if test x
"$grub_emu_usb_excuse" = x
; then
26574 enable_grub_emu_usb
=yes
26576 enable_grub_emu_usb
=no
26579 if test x
"$enable_grub_emu_sdl" = xno
; then
26580 grub_emu_sdl_excuse
="explicitly disabled"
26582 if [ x
"$grub_emu_sdl_excuse" = x
]; then
26583 # Check for libSDL libraries.
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
26585 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
26586 if ${ac_cv_lib_SDL_SDL_Init+:} false
; then :
26587 $as_echo_n "(cached) " >&6
26589 ac_check_lib_save_LIBS
=$LIBS
26591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h. */
26594 /* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26604 return SDL_Init ();
26609 if ac_fn_c_try_link
"$LINENO"; then :
26610 ac_cv_lib_SDL_SDL_Init
=yes
26612 ac_cv_lib_SDL_SDL_Init
=no
26614 rm -f core conftest.err conftest.
$ac_objext \
26615 conftest
$ac_exeext conftest.
$ac_ext
26616 LIBS
=$ac_check_lib_save_LIBS
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
26619 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
26620 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes
; then :
26623 grub_emu_sdl_excuse
="libSDL libraries are required to build \`grub-emu' with SDL support"
26629 if [ x
"$grub_emu_sdl_excuse" = x
]; then
26630 # Check for headers.
26631 for ac_header
in SDL
/SDL.h
26633 ac_fn_c_check_header_mongrel
"$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
26634 if test "x$ac_cv_header_SDL_SDL_h" = xyes
; then :
26635 cat >>confdefs.h
<<_ACEOF
26636 #define HAVE_SDL_SDL_H 1
26640 grub_emu_sdl_excuse
="libSDL header file is required to build \`grub-emu' with SDL support"
26647 if test x
"enable_grub_emu_sdl" = xyes
&& test x
"$grub_emu_sdl_excuse" != x
; then
26648 as_fn_error $?
"SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
26650 if test x
"$grub_emu_sdl_excuse" = x
; then
26651 enable_grub_emu_sdl
=yes
26653 enable_grub_emu_sdl
=no
26656 if test x
"$enable_grub_emu_pci" != xyes
; then
26657 grub_emu_pci_excuse
="not enabled"
26660 if test x
"$enable_grub_emu_usb" = xyes
; then
26661 grub_emu_pci_excuse
="conflicts with USB support"
26664 if [ x
"$grub_emu_pci_excuse" = x
]; then
26665 # Check for libpci libraries.
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
26667 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
26668 if ${ac_cv_lib_pciaccess_pci_system_init+:} false
; then :
26669 $as_echo_n "(cached) " >&6
26671 ac_check_lib_save_LIBS
=$LIBS
26672 LIBS
="-lpciaccess $LIBS"
26673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h. */
26676 /* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26682 char pci_system_init ();
26686 return pci_system_init ();
26691 if ac_fn_c_try_link
"$LINENO"; then :
26692 ac_cv_lib_pciaccess_pci_system_init
=yes
26694 ac_cv_lib_pciaccess_pci_system_init
=no
26696 rm -f core conftest.err conftest.
$ac_objext \
26697 conftest
$ac_exeext conftest.
$ac_ext
26698 LIBS
=$ac_check_lib_save_LIBS
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
26701 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
26702 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes
; then :
26703 LIBPCIACCESS
="-lpciaccess"
26705 grub_emu_pci_excuse
="need libpciaccess library"
26710 if [ x
"$grub_emu_pci_excuse" = x
]; then
26711 # Check for headers.
26712 for ac_header
in pci
/pci.h
26714 ac_fn_c_check_header_mongrel
"$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
26715 if test "x$ac_cv_header_pci_pci_h" = xyes
; then :
26716 cat >>confdefs.h
<<_ACEOF
26717 #define HAVE_PCI_PCI_H 1
26721 grub_emu_pci_excuse
="need libpciaccess headers"
26728 if test x
"$grub_emu_pci_excuse" = x
; then
26729 enable_grub_emu_pci
=yes
26732 enable_grub_emu_pci
=no
26741 # Ignore --enable-emu-* if platform is not emu
26742 enable_grub_emu_sdl
=no
26743 enable_grub_emu_usb
=no
26744 enable_grub_emu_pci
=no
26747 # Check whether --enable-grub-mkfont was given.
26748 if test "${enable_grub_mkfont+set}" = set; then :
26749 enableval
=$enable_grub_mkfont;
26752 if test x
"$enable_grub_mkfont" = xno
; then
26753 grub_mkfont_excuse
="explicitly disabled"
26756 if test x
"$grub_mkfont_excuse" = x
; then
26757 # Check for freetype libraries.
26758 if test -n "$ac_tool_prefix"; then
26759 for ac_prog
in freetype-config
26761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26762 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26764 $as_echo_n "checking for $ac_word... " >&6; }
26765 if ${ac_cv_prog_FREETYPE+:} false
; then :
26766 $as_echo_n "(cached) " >&6
26768 if test -n "$FREETYPE"; then
26769 ac_cv_prog_FREETYPE
="$FREETYPE" # Let the user override the test.
26771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26772 for as_dir
in $PATH
26775 test -z "$as_dir" && as_dir
=.
26776 for ac_exec_ext
in '' $ac_executable_extensions; do
26777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26778 ac_cv_prog_FREETYPE
="$ac_tool_prefix$ac_prog"
26779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26788 FREETYPE
=$ac_cv_prog_FREETYPE
26789 if test -n "$FREETYPE"; then
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
26791 $as_echo "$FREETYPE" >&6; }
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26794 $as_echo "no" >&6; }
26798 test -n "$FREETYPE" && break
26801 if test -z "$FREETYPE"; then
26802 ac_ct_FREETYPE
=$FREETYPE
26803 for ac_prog
in freetype-config
26805 # Extract the first word of "$ac_prog", so it can be a program name with args.
26806 set dummy
$ac_prog; ac_word
=$2
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26808 $as_echo_n "checking for $ac_word... " >&6; }
26809 if ${ac_cv_prog_ac_ct_FREETYPE+:} false
; then :
26810 $as_echo_n "(cached) " >&6
26812 if test -n "$ac_ct_FREETYPE"; then
26813 ac_cv_prog_ac_ct_FREETYPE
="$ac_ct_FREETYPE" # Let the user override the test.
26815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26816 for as_dir
in $PATH
26819 test -z "$as_dir" && as_dir
=.
26820 for ac_exec_ext
in '' $ac_executable_extensions; do
26821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26822 ac_cv_prog_ac_ct_FREETYPE
="$ac_prog"
26823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26832 ac_ct_FREETYPE
=$ac_cv_prog_ac_ct_FREETYPE
26833 if test -n "$ac_ct_FREETYPE"; then
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FREETYPE" >&5
26835 $as_echo "$ac_ct_FREETYPE" >&6; }
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26838 $as_echo "no" >&6; }
26842 test -n "$ac_ct_FREETYPE" && break
26845 if test "x$ac_ct_FREETYPE" = x
; then
26848 case $cross_compiling:$ac_tool_warned in
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26852 ac_tool_warned
=yes ;;
26854 FREETYPE
=$ac_ct_FREETYPE
26858 if test "x$FREETYPE" = x
; then
26859 grub_mkfont_excuse
="need freetype2 library"
26863 unset ac_cv_header_ft2build_h
26865 if test x
"$grub_mkfont_excuse" = x
; then
26866 # Check for freetype libraries.
26867 freetype_cflags
=`$FREETYPE --cflags`
26868 freetype_libs
=`$FREETYPE --libs`
26869 SAVED_CPPFLAGS
="$CPPFLAGS"
26871 CPPFLAGS
="$CPPFLAGS $freetype_cflags"
26872 LIBS
="$LIBS $freetype_libs"
26873 for ac_header
in ft2build.h
26875 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26876 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
26877 cat >>confdefs.h
<<_ACEOF
26878 #define HAVE_FT2BUILD_H 1
26882 grub_mkfont_excuse
="need freetype2 headers"
26887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26888 /* end confdefs.h. */
26890 /* Override any GCC internal prototype to avoid an error.
26891 Use char because int might match the return type of a GCC
26892 builtin and then its argument prototype would still apply. */
26896 char FT_Load_Glyph ();
26900 return FT_Load_Glyph ();
26905 if ac_fn_c_try_link
"$LINENO"; then :
26908 grub_mkfont_excuse
="freetype2 library unusable"
26910 rm -f core conftest.err conftest.
$ac_objext \
26911 conftest
$ac_exeext conftest.
$ac_ext
26912 CPPFLAGS
="$SAVED_CPPFLAGS"
26916 if test x
"$enable_grub_mkfont" = xyes
&& test x
"$grub_mkfont_excuse" != x
; then
26917 as_fn_error $?
"grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
26919 if test x
"$grub_mkfont_excuse" = x
; then
26920 enable_grub_mkfont
=yes
26922 enable_grub_mkfont
=no
26930 SAVED_CFLAGS
="$CFLAGS"
26931 SAVED_CPPFLAGS
="$CPPFLAGS"
26932 SAVED_LDFLAGS
="$LDFLAGS"
26935 CFLAGS
="$BUILD_CFLAGS"
26936 CPPFLAGS
="$BUILD_CPPFLAGS"
26937 LDFLAGS
="$BUILD_LDFAGS"
26939 unset ac_cv_c_bigendian
26940 unset ac_cv_header_ft2build_h
26942 if ac_fn_c_compute_int
"$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P" ""; then :
26946 if ac_fn_c_compute_int
"$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG" ""; then :
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26952 if ${ac_cv_c_bigendian+:} false
; then :
26953 $as_echo_n "(cached) " >&6
26955 ac_cv_c_bigendian
=unknown
26956 # See if we're dealing with a universal compiler.
26957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h. */
26959 #ifndef __APPLE_CC__
26960 not a universal capable compiler
26965 if ac_fn_c_try_compile
"$LINENO"; then :
26967 # Check for potential -arch flags. It is not universal unless
26968 # there are at least two -arch flags with different values.
26971 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26972 if test -n "$ac_prev"; then
26974 i?
86 | x86_64 | ppc | ppc64
)
26975 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
26978 ac_cv_c_bigendian
=universal
26984 elif test "x$ac_word" = "x-arch"; then
26989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26990 if test $ac_cv_c_bigendian = unknown
; then
26991 # See if sys/param.h defines the BYTE_ORDER macro.
26992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26994 #include <sys/types.h>
26995 #include <sys/param.h>
27000 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27001 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27003 bogus endian macros
27010 if ac_fn_c_try_compile
"$LINENO"; then :
27011 # It does; now see whether it defined to BIG_ENDIAN or not.
27012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27013 /* end confdefs.h. */
27014 #include <sys/types.h>
27015 #include <sys/param.h>
27020 #if BYTE_ORDER != BIG_ENDIAN
27028 if ac_fn_c_try_compile
"$LINENO"; then :
27029 ac_cv_c_bigendian
=yes
27031 ac_cv_c_bigendian
=no
27033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27037 if test $ac_cv_c_bigendian = unknown
; then
27038 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27040 /* end confdefs.h. */
27041 #include <limits.h>
27046 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27047 bogus endian macros
27054 if ac_fn_c_try_compile
"$LINENO"; then :
27055 # It does; now see whether it defined to _BIG_ENDIAN or not.
27056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27058 #include <limits.h>
27063 #ifndef _BIG_ENDIAN
27071 if ac_fn_c_try_compile
"$LINENO"; then :
27072 ac_cv_c_bigendian
=yes
27074 ac_cv_c_bigendian
=no
27076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27080 if test $ac_cv_c_bigendian = unknown
; then
27081 # Compile a test program.
27082 if test "$cross_compiling" = yes; then :
27083 # Try to guess by grepping values from an object file.
27084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27086 short int ascii_mm[] =
27087 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27088 short int ascii_ii[] =
27089 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27090 int use_ascii (int i) {
27091 return ascii_mm[i] + ascii_ii[i];
27093 short int ebcdic_ii[] =
27094 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27095 short int ebcdic_mm[] =
27096 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27097 int use_ebcdic (int i) {
27098 return ebcdic_mm[i] + ebcdic_ii[i];
27105 return use_ascii (foo) == use_ebcdic (foo);
27110 if ac_fn_c_try_compile
"$LINENO"; then :
27111 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
27112 ac_cv_c_bigendian
=yes
27114 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
27115 if test "$ac_cv_c_bigendian" = unknown
; then
27116 ac_cv_c_bigendian
=no
27118 # finding both strings is unlikely to happen, but who knows?
27119 ac_cv_c_bigendian
=unknown
27123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27126 /* end confdefs.h. */
27127 $ac_includes_default
27132 /* Are we little or big endian? From Harbison&Steele. */
27136 char c[sizeof (long int)];
27139 return u.c[sizeof (long int) - 1] == 1;
27145 if ac_fn_c_try_run
"$LINENO"; then :
27146 ac_cv_c_bigendian
=no
27148 ac_cv_c_bigendian
=yes
27150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27157 $as_echo "$ac_cv_c_bigendian" >&6; }
27158 case $ac_cv_c_bigendian in #(
27160 BUILD_WORDS_BIGENDIAN
=1;; #(
27162 BUILD_WORDS_BIGENDIAN
=0 ;; #(
27164 BUILD_WORDS_BIGENDIAN
=err
27167 BUILD_WORDS_BIGENDIAN
=err
;;
27171 if test x
$BUILD_WORDS_BIGENDIAN = xerr
; then
27172 as_fn_error $?
"couldnt determine build endianness" "$LINENO" 5
27179 if test x
"$grub_build_mkfont_excuse" = x
; then
27180 # Check for freetype libraries.
27181 for ac_prog
in freetype-config
27183 # Extract the first word of "$ac_prog", so it can be a program name with args.
27184 set dummy
$ac_prog; ac_word
=$2
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27186 $as_echo_n "checking for $ac_word... " >&6; }
27187 if ${ac_cv_prog_BUILD_FREETYPE+:} false
; then :
27188 $as_echo_n "(cached) " >&6
27190 if test -n "$BUILD_FREETYPE"; then
27191 ac_cv_prog_BUILD_FREETYPE
="$BUILD_FREETYPE" # Let the user override the test.
27193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27194 for as_dir
in $PATH
27197 test -z "$as_dir" && as_dir
=.
27198 for ac_exec_ext
in '' $ac_executable_extensions; do
27199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27200 ac_cv_prog_BUILD_FREETYPE
="$ac_prog"
27201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27210 BUILD_FREETYPE
=$ac_cv_prog_BUILD_FREETYPE
27211 if test -n "$BUILD_FREETYPE"; then
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_FREETYPE" >&5
27213 $as_echo "$BUILD_FREETYPE" >&6; }
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27216 $as_echo "no" >&6; }
27220 test -n "$BUILD_FREETYPE" && break
27223 if test "x$BUILD_FREETYPE" = x
; then
27224 grub_build_mkfont_excuse
="need freetype2 library"
27228 if test x
"$grub_build_mkfont_excuse" = x
; then
27229 # Check for freetype libraries.
27230 build_freetype_cflags
=`$BUILD_FREETYPE --cflags`
27231 build_freetype_libs
=`$BUILD_FREETYPE --libs`
27232 SAVED_CPPFLAGS_2
="$CPPFLAGS"
27234 CPPFLAGS
="$CPPFLAGS $build_freetype_cflags"
27235 LIBS
="$LIBS $build_freetype_libs"
27236 for ac_header
in ft2build.h
27238 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27239 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
27240 cat >>confdefs.h
<<_ACEOF
27241 #define HAVE_FT2BUILD_H 1
27245 grub_build_mkfont_excuse
="need freetype2 headers"
27250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27253 /* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27259 char FT_Load_Glyph ();
27263 return FT_Load_Glyph ();
27268 if ac_fn_c_try_link
"$LINENO"; then :
27271 grub_build_mkfont_excuse
="freetype2 library unusable"
27273 rm -f core conftest.err conftest.
$ac_objext \
27274 conftest
$ac_exeext conftest.
$ac_ext
27276 CPPFLAGS
="$SAVED_CPPFLAGS_2"
27279 if test x
"$enable_build_grub_mkfont" = xyes
&& test x
"$grub_build_mkfont_excuse" != x
; then
27280 as_fn_error $?
"build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
27282 if test x
"$grub_build_mkfont_excuse" = x
; then
27283 enable_build_grub_mkfont
=yes
27285 enable_build_grub_mkfont
=no
27287 if test x
"$enable_build_grub_mkfont" = xno
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 ||
test "x$platform" = xcoreboot
); then
27288 if test x
"$grub_build_mkfont_excuse" = x
; then
27289 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont" "$LINENO" 5
27291 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
27300 CFLAGS
="$SAVED_CFLAGS"
27301 CPPFLAGS
="$SAVED_CPPFLAGS"
27302 LDFLAGS
="$SAVED_LDFLAGS"
27309 # Check whether --enable-grub-themes was given.
27310 if test "${enable_grub_themes+set}" = set; then :
27311 enableval
=$enable_grub_themes;
27314 if test x
"$enable_grub_themes" = xno
; then
27315 starfield_excuse
="explicitly disabled"
27318 if test x
"$starfield_excuse" = x
&& test x
"$enable_build_grub_mkfont" = xno
; then
27319 starfield_excuse
="No build-time grub-mkfont"
27322 if test x
"$starfield_excuse" = x
; then
27323 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
27324 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/truetype
/ttf-dejavu
/usr
/share
/fonts
/dejavu
/usr
/share
/fonts
/truetype
; do
27325 if test -f "$dir/DejaVuSans.$ext"; then
27326 DJVU_FONT_SOURCE
="$dir/DejaVuSans.$ext"
27332 if test "x$DJVU_FONT_SOURCE" = x
; then
27333 starfield_excuse
="No DejaVu found"
27337 if test x
"$enable_grub_themes" = xyes
&& test x
"$starfield_excuse" != x
; then
27338 as_fn_error $?
"themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
27345 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
27346 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/unifont
/usr
/share
/fonts
/uni
/usr
/share
/fonts
/truetype
/unifont
/usr
/share
/fonts
/misc
; do
27347 if test -f "$dir/unifont.$ext"; then
27348 md5
="$(md5sum "$dir/unifont.
$ext"|awk '{ print $1; }')"
27349 # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
27350 if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 ||
test "$md5" = 28f2565c7a41d8d407e2551159385edb ||
test "$md5" = dae5e588461b3b92b87b6ffee734f936 ||
test "$md5" = 4a3d687aa5bb329ed05f4263a1016791
; then
27353 FONT_SOURCE
="$dir/unifont.$ext"
27359 if test x
"$enable_build_grub_mkfont" = xno
; then
27363 if test "x$FONT_SOURCE" = x
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 ||
test "x$platform" = xcoreboot
); then
27364 if test x
"$grub_build_mkfont_excuse" = x
; then
27365 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports need unifont" "$LINENO" 5
27367 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
27373 if test x
"$FONT_SOURCE" = x
&& test x
"$DJVU_FONT_SOURCE" = x
&& test x
"$grub_build_mkfont_excuse" = x
; then
27374 grub_build_mkfont_excuse
="no fonts"
27378 # Check whether --enable-grub-mount was given.
27379 if test "${enable_grub_mount+set}" = set; then :
27380 enableval
=$enable_grub_mount;
27383 if test x
"$enable_grub_mount" = xno
; then
27384 grub_mount_excuse
="explicitly disabled"
27387 if test x
"$grub_mount_excuse" = x
; then
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
27389 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
27390 if ${ac_cv_lib_fuse_fuse_main_real+:} false
; then :
27391 $as_echo_n "(cached) " >&6
27393 ac_check_lib_save_LIBS
=$LIBS
27394 LIBS
="-lfuse $LIBS"
27395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27396 /* end confdefs.h. */
27398 /* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
27404 char fuse_main_real ();
27408 return fuse_main_real ();
27413 if ac_fn_c_try_link
"$LINENO"; then :
27414 ac_cv_lib_fuse_fuse_main_real
=yes
27416 ac_cv_lib_fuse_fuse_main_real
=no
27418 rm -f core conftest.err conftest.
$ac_objext \
27419 conftest
$ac_exeext conftest.
$ac_ext
27420 LIBS
=$ac_check_lib_save_LIBS
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
27423 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
27424 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes
; then :
27425 cat >>confdefs.h
<<_ACEOF
27426 #define HAVE_LIBFUSE 1
27429 LIBS
="-lfuse $LIBS"
27432 grub_mount_excuse
="need FUSE library"
27437 if test x
"$grub_mount_excuse" = x
; then
27438 # Check for fuse headers.
27439 SAVED_CPPFLAGS
="$CPPFLAGS"
27440 CPPFLAGS
="$CPPFLAGS -DFUSE_USE_VERSION=26"
27441 for ac_header
in fuse
/fuse.h
27443 ac_fn_c_check_header_mongrel
"$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
27444 if test "x$ac_cv_header_fuse_fuse_h" = xyes
; then :
27445 cat >>confdefs.h
<<_ACEOF
27446 #define HAVE_FUSE_FUSE_H 1
27450 grub_mount_excuse
="need FUSE headers"
27455 CPPFLAGS
="$SAVED_CPPFLAGS"
27458 if test x
"$enable_grub_mount" = xyes
&& test x
"$grub_mount_excuse" != x
; then
27459 as_fn_error $?
"grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
27461 if test x
"$grub_mount_excuse" = x
; then
27462 enable_grub_mount
=yes
27464 enable_grub_mount
=no
27468 # Check whether --enable-device-mapper was given.
27469 if test "${enable_device_mapper+set}" = set; then :
27470 enableval
=$enable_device_mapper;
27473 if test x
"$enable_device_mapper" = xno
; then
27474 device_mapper_excuse
="explicitly disabled"
27477 if test x
"$device_mapper_excuse" = x
; then
27478 # Check for device-mapper header.
27479 ac_fn_c_check_header_mongrel
"$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
27480 if test "x$ac_cv_header_libdevmapper_h" = xyes
; then :
27483 device_mapper_excuse
="need libdevmapper header"
27489 if test x
"$device_mapper_excuse" = x
; then
27490 # Check for device-mapper library.
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
27492 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
27493 if ${ac_cv_lib_devmapper_dm_task_create+:} false
; then :
27494 $as_echo_n "(cached) " >&6
27496 ac_check_lib_save_LIBS
=$LIBS
27497 LIBS
="-ldevmapper $LIBS"
27498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27499 /* end confdefs.h. */
27501 /* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27507 char dm_task_create ();
27511 return dm_task_create ();
27516 if ac_fn_c_try_link
"$LINENO"; then :
27517 ac_cv_lib_devmapper_dm_task_create
=yes
27519 ac_cv_lib_devmapper_dm_task_create
=no
27521 rm -f core conftest.err conftest.
$ac_objext \
27522 conftest
$ac_exeext conftest.
$ac_ext
27523 LIBS
=$ac_check_lib_save_LIBS
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
27526 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
27527 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes
; then :
27528 cat >>confdefs.h
<<_ACEOF
27529 #define HAVE_LIBDEVMAPPER 1
27532 LIBS
="-ldevmapper $LIBS"
27535 device_mapper_excuse
="need devmapper library"
27540 if test x
"$device_mapper_excuse" = x
; then
27541 # Check for device-mapper library.
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
27543 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
27544 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false
; then :
27545 $as_echo_n "(cached) " >&6
27547 ac_check_lib_save_LIBS
=$LIBS
27548 LIBS
="-ldevmapper $LIBS"
27549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27550 /* end confdefs.h. */
27552 /* Override any GCC internal prototype to avoid an error.
27553 Use char because int might match the return type of a GCC
27554 builtin and then its argument prototype would still apply. */
27558 char dm_log_with_errno_init ();
27562 return dm_log_with_errno_init ();
27567 if ac_fn_c_try_link
"$LINENO"; then :
27568 ac_cv_lib_devmapper_dm_log_with_errno_init
=yes
27570 ac_cv_lib_devmapper_dm_log_with_errno_init
=no
27572 rm -f core conftest.err conftest.
$ac_objext \
27573 conftest
$ac_exeext conftest.
$ac_ext
27574 LIBS
=$ac_check_lib_save_LIBS
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
27577 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
27578 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes
; then :
27579 cat >>confdefs.h
<<_ACEOF
27580 #define HAVE_LIBDEVMAPPER 1
27583 LIBS
="-ldevmapper $LIBS"
27586 device_mapper_excuse
="need devmapper library"
27591 if test x
"$device_mapper_excuse" = x
; then
27592 LIBDEVMAPPER
="-ldevmapper"
27594 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
27601 if test x
$host_kernel = xkfreebsd
; then
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
27603 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
27604 if ${ac_cv_lib_geom_geom_gettree+:} false
; then :
27605 $as_echo_n "(cached) " >&6
27607 ac_check_lib_save_LIBS
=$LIBS
27608 LIBS
="-lgeom $LIBS"
27609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27610 /* end confdefs.h. */
27612 /* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27618 char geom_gettree ();
27622 return geom_gettree ();
27627 if ac_fn_c_try_link
"$LINENO"; then :
27628 ac_cv_lib_geom_geom_gettree
=yes
27630 ac_cv_lib_geom_geom_gettree
=no
27632 rm -f core conftest.err conftest.
$ac_objext \
27633 conftest
$ac_exeext conftest.
$ac_ext
27634 LIBS
=$ac_check_lib_save_LIBS
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
27637 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
27638 if test "x$ac_cv_lib_geom_geom_gettree" = xyes
; then :
27639 cat >>confdefs.h
<<_ACEOF
27640 #define HAVE_LIBGEOM 1
27643 LIBS
="-lgeom $LIBS"
27646 as_fn_error $?
"Your platform requires libgeom" "$LINENO" 5
27654 # Check whether --enable-liblzma was given.
27655 if test "${enable_liblzma+set}" = set; then :
27656 enableval
=$enable_liblzma;
27659 if test x
"$enable_liblzma" = xno
; then
27660 liblzma_excuse
="explicitly disabled"
27663 if test x
"$liblzma_excuse" = x
; then
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
27665 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
27666 if ${ac_cv_lib_lzma_lzma_code+:} false
; then :
27667 $as_echo_n "(cached) " >&6
27669 ac_check_lib_save_LIBS
=$LIBS
27670 LIBS
="-llzma $LIBS"
27671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27674 /* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27684 return lzma_code ();
27689 if ac_fn_c_try_link
"$LINENO"; then :
27690 ac_cv_lib_lzma_lzma_code
=yes
27692 ac_cv_lib_lzma_lzma_code
=no
27694 rm -f core conftest.err conftest.
$ac_objext \
27695 conftest
$ac_exeext conftest.
$ac_ext
27696 LIBS
=$ac_check_lib_save_LIBS
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
27699 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
27700 if test "x$ac_cv_lib_lzma_lzma_code" = xyes
; then :
27701 cat >>confdefs.h
<<_ACEOF
27702 #define HAVE_LIBLZMA 1
27705 LIBS
="-llzma $LIBS"
27708 liblzma_excuse
="need lzma library"
27712 if test x
"$liblzma_excuse" = x
; then
27713 ac_fn_c_check_header_mongrel
"$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
27714 if test "x$ac_cv_header_lzma_h" = xyes
; then :
27717 liblzma_excuse
="need lzma header"
27723 if test x
"$enable_liblzma" = xyes
&& test x
"$liblzma_excuse" != x
; then
27724 as_fn_error $?
"liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
27728 if test x
"$liblzma_excuse" = x
; then
27731 $as_echo "#define USE_LIBLZMA 1" >>confdefs.h
27737 # Check whether --enable-libzfs was given.
27738 if test "${enable_libzfs+set}" = set; then :
27739 enableval
=$enable_libzfs;
27742 if test x
"$enable_libzfs" = xno
; then
27743 libzfs_excuse
="explicitly disabled"
27746 if test x
"$libzfs_excuse" = x
; then
27747 # Only check for system headers if libzfs support has not been disabled.
27748 for ac_header
in libzfs.h libnvpair.h
27750 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27751 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27752 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
27753 cat >>confdefs.h
<<_ACEOF
27754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27763 if test x
"$libzfs_excuse" = x
; then
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
27765 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
27766 if ${ac_cv_lib_zfs_libzfs_init+:} false
; then :
27767 $as_echo_n "(cached) " >&6
27769 ac_check_lib_save_LIBS
=$LIBS
27771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27772 /* end confdefs.h. */
27774 /* Override any GCC internal prototype to avoid an error.
27775 Use char because int might match the return type of a GCC
27776 builtin and then its argument prototype would still apply. */
27780 char libzfs_init ();
27784 return libzfs_init ();
27789 if ac_fn_c_try_link
"$LINENO"; then :
27790 ac_cv_lib_zfs_libzfs_init
=yes
27792 ac_cv_lib_zfs_libzfs_init
=no
27794 rm -f core conftest.err conftest.
$ac_objext \
27795 conftest
$ac_exeext conftest.
$ac_ext
27796 LIBS
=$ac_check_lib_save_LIBS
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
27799 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
27800 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes
; then :
27801 cat >>confdefs.h
<<_ACEOF
27802 #define HAVE_LIBZFS 1
27808 libzfs_excuse
="need zfs library"
27813 if test x
"$libzfs_excuse" = x
; then
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
27815 $as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
27816 if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false
; then :
27817 $as_echo_n "(cached) " >&6
27819 ac_check_lib_save_LIBS
=$LIBS
27820 LIBS
="-lnvpair $LIBS"
27821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27822 /* end confdefs.h. */
27824 /* Override any GCC internal prototype to avoid an error.
27825 Use char because int might match the return type of a GCC
27826 builtin and then its argument prototype would still apply. */
27830 char nvlist_lookup_string ();
27834 return nvlist_lookup_string ();
27839 if ac_fn_c_try_link
"$LINENO"; then :
27840 ac_cv_lib_nvpair_nvlist_lookup_string
=yes
27842 ac_cv_lib_nvpair_nvlist_lookup_string
=no
27844 rm -f core conftest.err conftest.
$ac_objext \
27845 conftest
$ac_exeext conftest.
$ac_ext
27846 LIBS
=$ac_check_lib_save_LIBS
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
27849 $as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
27850 if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes
; then :
27851 cat >>confdefs.h
<<_ACEOF
27852 #define HAVE_LIBNVPAIR 1
27855 LIBS
="-lnvpair $LIBS"
27858 libzfs_excuse
="need nvpair library"
27863 if test x
"$enable_libzfs" = xyes
&& test x
"$libzfs_excuse" != x
; then
27864 as_fn_error $?
"libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
27867 if test x
"$libzfs_excuse" = x
; then
27868 # We need both libzfs and libnvpair for a successful build.
27871 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
27873 LIBNVPAIR
="-lnvpair"
27875 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
27885 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then :
27886 GRUB_BOOT_MACHINE_LINK_ADDR
=0xffe00
27898 # Check whether --enable-werror was given.
27899 if test "${enable_werror+set}" = set; then :
27900 enableval
=$enable_werror;
27903 if test x
"$enable_werror" != xno
; then
27904 TARGET_CFLAGS
="$TARGET_CFLAGS -Werror"
27905 HOST_CFLAGS
="$HOST_CFLAGS -Werror"
27908 if test "x$grub_cv_cc_target_clang" = xno
; then
27909 TARGET_LDFLAGS_STATIC_LIBGCC
="-static-libgcc"
27911 TARGET_LDFLAGS_STATIC_LIBGCC
=
27914 TARGET_CPP
="$TARGET_CC -E"
27915 TARGET_CCAS
=$TARGET_CC
27917 GRUB_TARGET_CPU
="${target_cpu}"
27918 GRUB_PLATFORM
="${platform}"
27950 # Automake conditionals
27953 if test x
$platform != xnone
; then
27954 COND_real_platform_TRUE
=
27955 COND_real_platform_FALSE
='#'
27957 COND_real_platform_TRUE
='#'
27958 COND_real_platform_FALSE
=
27961 if test x
$platform = xemu
; then
27969 if test x
$grub_cv_cc_target_clang = xyes
; then
27971 COND_clang_FALSE
='#'
27973 COND_clang_TRUE
='#'
27977 if test x
$target_cpu = xi386
-a x
$platform = xpc
; then
27979 COND_i386_pc_FALSE
='#'
27981 COND_i386_pc_TRUE
='#'
27982 COND_i386_pc_FALSE
=
27985 if test x
$target_cpu = xi386
-a x
$platform = xefi
; then
27986 COND_i386_efi_TRUE
=
27987 COND_i386_efi_FALSE
='#'
27989 COND_i386_efi_TRUE
='#'
27990 COND_i386_efi_FALSE
=
27993 if test x
$target_cpu = xia64
-a x
$platform = xefi
; then
27994 COND_ia64_efi_TRUE
=
27995 COND_ia64_efi_FALSE
='#'
27997 COND_ia64_efi_TRUE
='#'
27998 COND_ia64_efi_FALSE
=
28001 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then
28002 COND_i386_qemu_TRUE
=
28003 COND_i386_qemu_FALSE
='#'
28005 COND_i386_qemu_TRUE
='#'
28006 COND_i386_qemu_FALSE
=
28009 if test x
$target_cpu = xi386
-a x
$platform = xieee1275
; then
28010 COND_i386_ieee1275_TRUE
=
28011 COND_i386_ieee1275_FALSE
='#'
28013 COND_i386_ieee1275_TRUE
='#'
28014 COND_i386_ieee1275_FALSE
=
28017 if test x
$target_cpu = xi386
-a x
$platform = xcoreboot
; then
28018 COND_i386_coreboot_TRUE
=
28019 COND_i386_coreboot_FALSE
='#'
28021 COND_i386_coreboot_TRUE
='#'
28022 COND_i386_coreboot_FALSE
=
28025 if test x
$target_cpu = xi386
-a x
$platform = xmultiboot
; then
28026 COND_i386_multiboot_TRUE
=
28027 COND_i386_multiboot_FALSE
='#'
28029 COND_i386_multiboot_TRUE
='#'
28030 COND_i386_multiboot_FALSE
=
28033 if test x
$target_cpu = xx86_64
-a x
$platform = xefi
; then
28034 COND_x86_64_efi_TRUE
=
28035 COND_x86_64_efi_FALSE
='#'
28037 COND_x86_64_efi_TRUE
='#'
28038 COND_x86_64_efi_FALSE
=
28041 if test x
$target_cpu = xi386
-a x
$platform = xxen
; then
28042 COND_i386_xen_TRUE
=
28043 COND_i386_xen_FALSE
='#'
28045 COND_i386_xen_TRUE
='#'
28046 COND_i386_xen_FALSE
=
28049 if test x
$target_cpu = xx86_64
-a x
$platform = xxen
; then
28050 COND_x86_64_xen_TRUE
=
28051 COND_x86_64_xen_FALSE
='#'
28053 COND_x86_64_xen_TRUE
='#'
28054 COND_x86_64_xen_FALSE
=
28057 if test x
$target_cpu = xmipsel
-a x
$platform = xloongson
; then
28058 COND_mips_loongson_TRUE
=
28059 COND_mips_loongson_FALSE
='#'
28061 COND_mips_loongson_TRUE
='#'
28062 COND_mips_loongson_FALSE
=
28065 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xqemu_mips
; then
28066 COND_mips_qemu_mips_TRUE
=
28067 COND_mips_qemu_mips_FALSE
='#'
28069 COND_mips_qemu_mips_TRUE
='#'
28070 COND_mips_qemu_mips_FALSE
=
28073 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xarc
; then
28074 COND_mips_arc_TRUE
=
28075 COND_mips_arc_FALSE
='#'
28077 COND_mips_arc_TRUE
='#'
28078 COND_mips_arc_FALSE
=
28081 if test x
$target_cpu = xsparc64
-a x
$platform = xieee1275
; then
28082 COND_sparc64_ieee1275_TRUE
=
28083 COND_sparc64_ieee1275_FALSE
='#'
28085 COND_sparc64_ieee1275_TRUE
='#'
28086 COND_sparc64_ieee1275_FALSE
=
28089 if test x
$target_cpu = xsparc64
-a x
$platform = xemu
; then
28090 COND_sparc64_emu_TRUE
=
28091 COND_sparc64_emu_FALSE
='#'
28093 COND_sparc64_emu_TRUE
='#'
28094 COND_sparc64_emu_FALSE
=
28097 if test x
$target_cpu = xpowerpc
-a x
$platform = xieee1275
; then
28098 COND_powerpc_ieee1275_TRUE
=
28099 COND_powerpc_ieee1275_FALSE
='#'
28101 COND_powerpc_ieee1275_TRUE
='#'
28102 COND_powerpc_ieee1275_FALSE
=
28105 if test x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
; then
28107 COND_mips_FALSE
='#'
28113 if test x
$target_cpu = xmipsel
; then
28115 COND_mipsel_FALSE
='#'
28117 COND_mipsel_TRUE
='#'
28121 if test x
$target_cpu = xmips
; then
28123 COND_mipseb_FALSE
='#'
28125 COND_mipseb_TRUE
='#'
28129 if test x
$target_cpu = xarm
; then
28137 if test x
$target_cpu = xarm
-a x
$platform = xuboot
; then
28138 COND_arm_uboot_TRUE
=
28139 COND_arm_uboot_FALSE
='#'
28141 COND_arm_uboot_TRUE
='#'
28142 COND_arm_uboot_FALSE
=
28145 if test x
$target_cpu = xarm
-a x
$platform = xefi
; then
28147 COND_arm_efi_FALSE
='#'
28149 COND_arm_efi_TRUE
='#'
28150 COND_arm_efi_FALSE
=
28153 if test x
$target_cpu = xarm64
; then
28155 COND_arm64_FALSE
='#'
28157 COND_arm64_TRUE
='#'
28161 if test x
$target_cpu = xarm64
-a x
$platform = xefi
; then
28162 COND_arm64_efi_TRUE
=
28163 COND_arm64_efi_FALSE
='#'
28165 COND_arm64_efi_TRUE
='#'
28166 COND_arm64_efi_FALSE
=
28170 if test x
$host_kernel = xhurd
; then
28171 COND_HOST_HURD_TRUE
=
28172 COND_HOST_HURD_FALSE
='#'
28174 COND_HOST_HURD_TRUE
='#'
28175 COND_HOST_HURD_FALSE
=
28178 if test x
$host_kernel = xlinux
; then
28179 COND_HOST_LINUX_TRUE
=
28180 COND_HOST_LINUX_FALSE
='#'
28182 COND_HOST_LINUX_TRUE
='#'
28183 COND_HOST_LINUX_FALSE
=
28186 if test x
$host_kernel = xnetbsd
; then
28187 COND_HOST_NETBSD_TRUE
=
28188 COND_HOST_NETBSD_FALSE
='#'
28190 COND_HOST_NETBSD_TRUE
='#'
28191 COND_HOST_NETBSD_FALSE
=
28194 if test x
$host_kernel = xwindows
; then
28195 COND_HOST_WINDOWS_TRUE
=
28196 COND_HOST_WINDOWS_FALSE
='#'
28198 COND_HOST_WINDOWS_TRUE
='#'
28199 COND_HOST_WINDOWS_FALSE
=
28202 if test x
$host_kernel = xkfreebsd
; then
28203 COND_HOST_KFREEBSD_TRUE
=
28204 COND_HOST_KFREEBSD_FALSE
='#'
28206 COND_HOST_KFREEBSD_TRUE
='#'
28207 COND_HOST_KFREEBSD_FALSE
=
28210 if test x
$host_kernel = xxnu
; then
28211 COND_HOST_XNU_TRUE
=
28212 COND_HOST_XNU_FALSE
='#'
28214 COND_HOST_XNU_TRUE
='#'
28215 COND_HOST_XNU_FALSE
=
28218 if test x
$host_kernel = xillumos
; then
28219 COND_HOST_ILLUMOS_TRUE
=
28220 COND_HOST_ILLUMOS_FALSE
='#'
28222 COND_HOST_ILLUMOS_TRUE
='#'
28223 COND_HOST_ILLUMOS_FALSE
=
28227 if test x
$cross_compiling = xno
-a x
$HELP2MAN != x
; then
28228 COND_MAN_PAGES_TRUE
=
28229 COND_MAN_PAGES_FALSE
='#'
28231 COND_MAN_PAGES_TRUE
='#'
28232 COND_MAN_PAGES_FALSE
=
28235 if test x
$enable_grub_emu_usb = xyes
; then
28236 COND_GRUB_EMU_USB_TRUE
=
28237 COND_GRUB_EMU_USB_FALSE
='#'
28239 COND_GRUB_EMU_USB_TRUE
='#'
28240 COND_GRUB_EMU_USB_FALSE
=
28243 if test x
$enable_grub_emu_sdl = xyes
; then
28244 COND_GRUB_EMU_SDL_TRUE
=
28245 COND_GRUB_EMU_SDL_FALSE
='#'
28247 COND_GRUB_EMU_SDL_TRUE
='#'
28248 COND_GRUB_EMU_SDL_FALSE
=
28251 if test x
$enable_grub_emu_pci = xyes
; then
28252 COND_GRUB_EMU_PCI_TRUE
=
28253 COND_GRUB_EMU_PCI_FALSE
='#'
28255 COND_GRUB_EMU_PCI_TRUE
='#'
28256 COND_GRUB_EMU_PCI_FALSE
=
28259 if test x
$enable_grub_mkfont = xyes
; then
28260 COND_GRUB_MKFONT_TRUE
=
28261 COND_GRUB_MKFONT_FALSE
='#'
28263 COND_GRUB_MKFONT_TRUE
='#'
28264 COND_GRUB_MKFONT_FALSE
=
28267 if test x
$enable_grub_mount = xyes
; then
28268 COND_GRUB_MOUNT_TRUE
=
28269 COND_GRUB_MOUNT_FALSE
='#'
28271 COND_GRUB_MOUNT_TRUE
='#'
28272 COND_GRUB_MOUNT_FALSE
=
28275 if test x
$FONT_SOURCE != x
; then
28276 COND_HAVE_FONT_SOURCE_TRUE
=
28277 COND_HAVE_FONT_SOURCE_FALSE
='#'
28279 COND_HAVE_FONT_SOURCE_TRUE
='#'
28280 COND_HAVE_FONT_SOURCE_FALSE
=
28283 if test x
$FONT_SOURCE != x
; then
28289 if test x
$TARGET_APPLE_LINKER = x1
; then
28290 COND_APPLE_LINKER_TRUE
=
28291 COND_APPLE_LINKER_FALSE
='#'
28293 COND_APPLE_LINKER_TRUE
='#'
28294 COND_APPLE_LINKER_FALSE
=
28297 if test x
$enable_efiemu = xyes
; then
28298 COND_ENABLE_EFIEMU_TRUE
=
28299 COND_ENABLE_EFIEMU_FALSE
='#'
28301 COND_ENABLE_EFIEMU_TRUE
='#'
28302 COND_ENABLE_EFIEMU_FALSE
=
28305 if test x
$DISK_CACHE_STATS = x1
; then
28306 COND_ENABLE_CACHE_STATS_TRUE
=
28307 COND_ENABLE_CACHE_STATS_FALSE
='#'
28309 COND_ENABLE_CACHE_STATS_TRUE
='#'
28310 COND_ENABLE_CACHE_STATS_FALSE
=
28313 if test x
$BOOT_TIME_STATS = x1
; then
28314 COND_ENABLE_BOOT_TIME_STATS_TRUE
=
28315 COND_ENABLE_BOOT_TIME_STATS_FALSE
='#'
28317 COND_ENABLE_BOOT_TIME_STATS_TRUE
='#'
28318 COND_ENABLE_BOOT_TIME_STATS_FALSE
=
28322 if test x
$HAVE_CXX = xyes
; then
28323 COND_HAVE_CXX_TRUE
=
28324 COND_HAVE_CXX_FALSE
='#'
28326 COND_HAVE_CXX_TRUE
='#'
28327 COND_HAVE_CXX_FALSE
=
28331 if test x
$HAVE_ASM_USCORE = x1
; then
28332 COND_HAVE_ASM_USCORE_TRUE
=
28333 COND_HAVE_ASM_USCORE_FALSE
='#'
28335 COND_HAVE_ASM_USCORE_TRUE
='#'
28336 COND_HAVE_ASM_USCORE_FALSE
=
28339 if test "x$starfield_excuse" = x
; then
28340 COND_STARFIELD_TRUE
=
28341 COND_STARFIELD_FALSE
='#'
28343 COND_STARFIELD_TRUE
='#'
28344 COND_STARFIELD_FALSE
=
28347 if test "x$have_exec" = xy
; then
28348 COND_HAVE_EXEC_TRUE
=
28349 COND_HAVE_EXEC_FALSE
='#'
28351 COND_HAVE_EXEC_TRUE
='#'
28352 COND_HAVE_EXEC_FALSE
=
28356 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
28357 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
28358 datarootdir
="$(eval echo "$datarootdir")"
28359 grub_libdir
="$(eval echo "$libdir")"
28360 grub_localedir
="$(eval echo "$localedir")"
28361 grub_datadir
="$(eval echo "$datadir")"
28362 grub_sysconfdir
="$(eval echo "$sysconfdir")"
28364 cat >>confdefs.h
<<_ACEOF
28365 #define LOCALEDIR "$grub_localedir"
28369 cat >>confdefs.h
<<_ACEOF
28370 #define GRUB_LIBDIR "$grub_libdir"
28374 cat >>confdefs.h
<<_ACEOF
28375 #define GRUB_DATADIR "$grub_datadir"
28379 cat >>confdefs.h
<<_ACEOF
28380 #define GRUB_SYSCONFDIR "$grub_sysconfdir"
28386 if test "$platform" != none
; then
28387 cpudir
="${target_cpu}"
28388 if test x
${cpudir} = xmipsel
; then
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s can handle directories properly" >&5
28393 $as_echo_n "checking whether ln -s can handle directories properly... " >&6; }
28394 mkdir testdir
2>/dev
/null
28396 [\\/$
]* | ?
:[\\/]* ) reldir
=$srcdir/include
/grub
/util
;;
28397 *) reldir
=..
/$srcdir/include
/grub
/util
;;
28399 if ln -s $reldir testdir
/util
2>/dev
/null
&& rm -f testdir
/util
2>/dev
/null
; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28401 $as_echo "yes" >&6; }
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28406 $as_echo "no" >&6; }
28410 if test x
"$link_dir" = xyes
; then
28411 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$cpudir"
28413 if test "$platform" != emu
; then
28414 ac_config_links
="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
28418 mkdir
-p include
/grub
2>/dev
/null
28419 rm -rf include
/grub
/cpu
28420 cp -rp $srcdir/include
/grub
/$cpudir include
/grub
/cpu
2>/dev
/null
28421 if test "$platform" != emu
; then
28422 rm -rf include
/grub
/machine
28423 cp -rp $srcdir/include
/grub
/$cpudir/$platform include
/grub
/machine
2>/dev
/null
28427 # Just enough to stop the compiler failing with -I$(srcdir)/include.
28428 mkdir
-p include
2>/dev
/null
28429 rm -rf include
/grub
/cpu include
/grub
/machine
28432 ac_config_files
="$ac_config_files Makefile"
28434 ac_config_files
="$ac_config_files grub-core/Makefile"
28436 ac_config_files
="$ac_config_files grub-core/gnulib/Makefile"
28438 ac_config_files
="$ac_config_files po/Makefile.in"
28440 ac_config_files
="$ac_config_files docs/Makefile"
28442 ac_config_files
="$ac_config_files util/bash-completion.d/Makefile"
28444 ac_config_files
="$ac_config_files stamp-h"
28446 ac_config_files
="$ac_config_files config.h"
28449 cat >confcache
<<\_ACEOF
28450 # This file is a shell script that caches the results of configure
28451 # tests run on this system so they can be shared between configure
28452 # scripts and configure runs, see configure's option --config-cache.
28453 # It is not useful on other systems. If it contains results you don't
28454 # want to keep, you may remove or edit it.
28456 # config.status only pays attention to the cache file if you give it
28457 # the --recheck option to rerun configure.
28459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28461 # following values.
28465 # The following way of writing the cache mishandles newlines in values,
28466 # but we know of no workaround that is simple, portable, and efficient.
28467 # So, we kill variables containing newlines.
28468 # Ultrix sh set writes to stderr and can't be redirected directly,
28469 # and sets the high bit in the cache file unless we assign to the vars.
28471 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28472 eval ac_val
=\$
$ac_var
28476 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28480 _ | IFS | as_nl
) ;; #(
28481 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28482 *) { eval $ac_var=; unset $ac_var;} ;;
28488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28489 *${as_nl}ac_space
=\
*)
28490 # `set' does not quote correctly, so add quotes: double-quote
28491 # substitution turns \\\\ into \\, and sed turns \\ into \.
28494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28497 # `set' quotes correctly as required by POSIX, so do not add quotes.
28498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28511 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28512 if test -w "$cache_file"; then
28513 if test "x$cache_file" != "x/dev/null"; then
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28515 $as_echo "$as_me: updating cache $cache_file" >&6;}
28516 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
28517 cat confcache
>"$cache_file"
28519 case $cache_file in #(
28521 mv -f confcache
"$cache_file"$$
&&
28522 mv -f "$cache_file"$$
"$cache_file" ;; #(
28524 mv -f confcache
"$cache_file" ;;
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28535 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28536 # Let make expand exec_prefix.
28537 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28539 DEFS
=-DHAVE_CONFIG_H
28544 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28545 # 1. Remove the extension, and $U if already installed.
28546 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28547 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28549 # will be set to the directory where LIBOBJS objects are built.
28550 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28551 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28553 LIBOBJS
=$ac_libobjs
28555 LTLIBOBJS
=$ac_ltlibobjs
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28559 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28560 if test -n "$am_sleep_pid"; then
28561 # Hide warnings about reused PIDs.
28562 wait $am_sleep_pid 2>/dev
/null
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28565 $as_echo "done" >&6; }
28566 if test -n "$EXEEXT"; then
28568 am__EXEEXT_FALSE
='#'
28570 am__EXEEXT_TRUE
='#'
28574 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28575 as_fn_error $?
"conditional \"AMDEP\" was never defined.
28576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28578 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28579 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
28580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28583 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
28584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28586 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28587 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
28588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28590 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
28591 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
28592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28595 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28596 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
28597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28599 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28600 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28603 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28604 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28607 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28608 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28611 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28612 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28615 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28616 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28619 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28620 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28623 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28624 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28628 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28632 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
28636 as_fn_error $?
"conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
28640 as_fn_error $?
"conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28647 if test -n "$gl_LIBOBJS"; then
28648 # Remove the extension.
28649 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28650 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28651 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28652 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28655 gl_LIBOBJS
=$gl_libobjs
28657 gl_LTLIBOBJS
=$gl_ltlibobjs
28663 if test -n "$gltests_LIBOBJS"; then
28664 # Remove the extension.
28665 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28666 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28667 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
28668 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
28671 gltests_LIBOBJS
=$gltests_libobjs
28673 gltests_LTLIBOBJS
=$gltests_ltlibobjs
28676 if test -z "${COND_real_platform_TRUE}" && test -z "${COND_real_platform_FALSE}"; then
28677 as_fn_error $?
"conditional \"COND_real_platform\" was never defined.
28678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28680 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
28681 as_fn_error $?
"conditional \"COND_emu\" was never defined.
28682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28684 if test -z "${COND_clang_TRUE}" && test -z "${COND_clang_FALSE}"; then
28685 as_fn_error $?
"conditional \"COND_clang\" was never defined.
28686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28688 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
28689 as_fn_error $?
"conditional \"COND_i386_pc\" was never defined.
28690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28692 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
28693 as_fn_error $?
"conditional \"COND_i386_efi\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
28697 as_fn_error $?
"conditional \"COND_ia64_efi\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
28701 as_fn_error $?
"conditional \"COND_i386_qemu\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
28705 as_fn_error $?
"conditional \"COND_i386_ieee1275\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
28709 as_fn_error $?
"conditional \"COND_i386_coreboot\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
28713 as_fn_error $?
"conditional \"COND_i386_multiboot\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
28717 as_fn_error $?
"conditional \"COND_x86_64_efi\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720 if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
28721 as_fn_error $?
"conditional \"COND_i386_xen\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724 if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
28725 as_fn_error $?
"conditional \"COND_x86_64_xen\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
28729 as_fn_error $?
"conditional \"COND_mips_loongson\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
28733 as_fn_error $?
"conditional \"COND_mips_qemu_mips\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
28737 as_fn_error $?
"conditional \"COND_mips_arc\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
28741 as_fn_error $?
"conditional \"COND_sparc64_ieee1275\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744 if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
28745 as_fn_error $?
"conditional \"COND_sparc64_emu\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
28749 as_fn_error $?
"conditional \"COND_powerpc_ieee1275\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
28753 as_fn_error $?
"conditional \"COND_mips\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
28757 as_fn_error $?
"conditional \"COND_mipsel\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28760 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
28761 as_fn_error $?
"conditional \"COND_mipseb\" was never defined.
28762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28764 if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
28765 as_fn_error $?
"conditional \"COND_arm\" was never defined.
28766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28768 if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
28769 as_fn_error $?
"conditional \"COND_arm_uboot\" was never defined.
28770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28772 if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
28773 as_fn_error $?
"conditional \"COND_arm_efi\" was never defined.
28774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28776 if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
28777 as_fn_error $?
"conditional \"COND_arm64\" was never defined.
28778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28780 if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
28781 as_fn_error $?
"conditional \"COND_arm64_efi\" was never defined.
28782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28784 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
28785 as_fn_error $?
"conditional \"COND_HOST_HURD\" was never defined.
28786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28788 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
28789 as_fn_error $?
"conditional \"COND_HOST_LINUX\" was never defined.
28790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28792 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
28793 as_fn_error $?
"conditional \"COND_HOST_NETBSD\" was never defined.
28794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28796 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
28797 as_fn_error $?
"conditional \"COND_HOST_WINDOWS\" was never defined.
28798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28800 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
28801 as_fn_error $?
"conditional \"COND_HOST_KFREEBSD\" was never defined.
28802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28804 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
28805 as_fn_error $?
"conditional \"COND_HOST_XNU\" was never defined.
28806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28808 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
28809 as_fn_error $?
"conditional \"COND_HOST_ILLUMOS\" was never defined.
28810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28812 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
28813 as_fn_error $?
"conditional \"COND_MAN_PAGES\" was never defined.
28814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28816 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
28817 as_fn_error $?
"conditional \"COND_GRUB_EMU_USB\" was never defined.
28818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
28821 as_fn_error $?
"conditional \"COND_GRUB_EMU_SDL\" was never defined.
28822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
28825 as_fn_error $?
"conditional \"COND_GRUB_EMU_PCI\" was never defined.
28826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
28829 as_fn_error $?
"conditional \"COND_GRUB_MKFONT\" was never defined.
28830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
28833 as_fn_error $?
"conditional \"COND_GRUB_MOUNT\" was never defined.
28834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
28837 as_fn_error $?
"conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
28838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
28841 as_fn_error $?
"conditional \"COND_APPLE_LINKER\" was never defined.
28842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
28845 as_fn_error $?
"conditional \"COND_ENABLE_EFIEMU\" was never defined.
28846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
28849 as_fn_error $?
"conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
28850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
28853 as_fn_error $?
"conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
28854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
28857 as_fn_error $?
"conditional \"COND_HAVE_CXX\" was never defined.
28858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
28861 as_fn_error $?
"conditional \"COND_HAVE_ASM_USCORE\" was never defined.
28862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
28865 as_fn_error $?
"conditional \"COND_STARFIELD\" was never defined.
28866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
28869 as_fn_error $?
"conditional \"COND_HAVE_EXEC\" was never defined.
28870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28873 : "${CONFIG_STATUS=./config.status}"
28875 ac_clean_files_save
=$ac_clean_files
28876 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28878 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28880 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28882 # Generated by $as_me.
28883 # Run this file to recreate the current configuration.
28884 # Compiler output produced by configure, useful for debugging
28885 # configure, is in config.log if it exists.
28888 ac_cs_recheck=false
28891 SHELL=\${CONFIG_SHELL-$SHELL}
28894 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28895 ## -------------------- ##
28896 ## M4sh Initialization. ##
28897 ## -------------------- ##
28899 # Be more Bourne compatible
28900 DUALCASE
=1; export DUALCASE
# for MKS sh
28901 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28904 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28905 # is contrary to our usage. Disable this feature.
28906 alias -g '${1+"$@"}'='"$@"'
28907 setopt NO_GLOB_SUBST
28909 case `(set -o) 2>/dev/null` in #(
28921 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28922 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28925 # Prefer a ksh shell builtin over an external printf program on Solaris,
28926 # but without wasting forks for bash or zsh.
28927 if test -z "$BASH_VERSION$ZSH_VERSION" \
28928 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28929 as_echo='print
-r --'
28930 as_echo_n='print
-rn --'
28931 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28932 as_echo='printf %s
\n'
28933 as_echo_n='printf %s
'
28935 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28936 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28937 as_echo_n='/usr
/ucb
/echo -n'
28939 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28940 as_echo_n_body='eval
28944 expr "X$arg" : "X\\(.*\\)$as_nl";
28945 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28947 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28949 export as_echo_n_body
28950 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28952 export as_echo_body
28953 as_echo='sh
-c $as_echo_body as_echo
'
28956 # The user is always right.
28957 if test "${PATH_SEPARATOR+set}" != set; then
28959 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28960 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28967 # We need space, tab and new line, in precisely that order. Quoting is
28968 # there to prevent editors from complaining about space-tab.
28969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28970 # splitting by setting IFS to empty value.)
28973 # Find who we are. Look in the path if we contain no directory separator.
28976 *[\\/]* ) as_myself=$0 ;;
28977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978 for as_dir in $PATH
28981 test -z "$as_dir" && as_dir=.
28982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28988 # We did not find ourselves, most probably we were run as `sh COMMAND'
28989 # in which case we are not to be found in the path.
28990 if test "x$as_myself" = x
; then
28993 if test ! -f "$as_myself"; then
28994 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28998 # Unset variables that we do not need and which cause bugs (e.g. in
28999 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29000 # suppresses any "Segmentation fault" message there. '((' could
29001 # trigger a bug in pdksh 5.2.14.
29002 for as_var
in BASH_ENV ENV MAIL MAILPATH
29003 do eval test x\
${$as_var+set} = xset \
29004 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29017 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29020 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29021 # ----------------------------------------
29022 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29023 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29024 # script with STATUS, using 1 if that was 0.
29027 as_status
=$1; test $as_status -eq 0 && as_status
=1
29029 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29030 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29032 $as_echo "$as_me: error: $2" >&2
29033 as_fn_exit
$as_status
29037 # as_fn_set_status STATUS
29038 # -----------------------
29039 # Set $? to STATUS, without forking.
29040 as_fn_set_status
()
29043 } # as_fn_set_status
29045 # as_fn_exit STATUS
29046 # -----------------
29047 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29051 as_fn_set_status
$1
29057 # Portably unset VAR.
29060 { eval $1=; unset $1;}
29062 as_unset
=as_fn_unset
29063 # as_fn_append VAR VALUE
29064 # ----------------------
29065 # Append the text in VALUE to the end of the definition contained in VAR. Take
29066 # advantage of any shell optimizations that allow amortized linear growth over
29067 # repeated appends, instead of the typical quadratic growth present in naive
29069 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29070 eval 'as_fn_append ()
29081 # as_fn_arith ARG...
29082 # ------------------
29083 # Perform arithmetic evaluation on the ARGs, and store the result in the
29084 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29085 # must be portable across $(()) and expr.
29086 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29087 eval 'as_fn_arith ()
29094 as_val
=`expr "$@" || test $? -eq 1`
29099 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29100 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29106 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29107 as_basename
=basename
29112 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29118 as_me
=`$as_basename -- "$0" ||
29119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29120 X"$0" : 'X\(//\)$' \| \
29121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29123 sed '/^.*\/\([^/][^/]*\)\/*$/{
29137 # Avoid depending upon Character Ranges.
29138 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29139 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29140 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29141 as_cr_digits
='0123456789'
29142 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29144 ECHO_C
= ECHO_N
= ECHO_T
=
29145 case `echo -n x` in #(((((
29147 case `echo 'xy\c'` in
29148 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29150 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29157 rm -f conf$$ conf$$.exe conf$$.
file
29158 if test -d conf$$.dir
; then
29159 rm -f conf$$.dir
/conf$$.
file
29162 mkdir conf$$.dir
2>/dev
/null
29164 if (echo >conf$$.
file) 2>/dev
/null
; then
29165 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29167 # ... but there are two gotchas:
29168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29170 # In both cases, we have to default to `cp -pR'.
29171 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29173 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29181 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29182 rmdir conf$$.dir
2>/dev
/null
29187 # Create "$as_dir" as a directory, including parents if necessary.
29192 -*) as_dir
=.
/$as_dir;;
29194 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29198 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29199 *) as_qdir
=$as_dir;;
29201 as_dirs
="'$as_qdir' $as_dirs"
29202 as_dir
=`$as_dirname -- "$as_dir" ||
29203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29204 X"$as_dir" : 'X\(//\)[^/]' \| \
29205 X"$as_dir" : 'X\(//\)$' \| \
29206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29207 $as_echo X"$as_dir" |
29208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29212 /^X\(\/\/\)[^/].*/{
29225 test -d "$as_dir" && break
29227 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29228 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29232 if mkdir
-p .
2>/dev
/null
; then
29233 as_mkdir_p
='mkdir -p "$as_dir"'
29235 test -d .
/-p && rmdir .
/-p
29240 # as_fn_executable_p FILE
29241 # -----------------------
29242 # Test if FILE is an executable regular file.
29243 as_fn_executable_p
()
29245 test -f "$1" && test -x "$1"
29246 } # as_fn_executable_p
29247 as_test_x
='test -x'
29248 as_executable_p
=as_fn_executable_p
29250 # Sed expression to map a string onto a valid CPP name.
29251 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29253 # Sed expression to map a string onto a valid variable name.
29254 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29258 ## ----------------------------------- ##
29259 ## Main body of $CONFIG_STATUS script. ##
29260 ## ----------------------------------- ##
29262 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29265 # Save the log message, to keep $0 and so on meaningful, and to
29266 # report actual input values of CONFIG_FILES etc. instead of their
29267 # values after options handling.
29269 This file was extended by GRUB $as_me 2.02~beta2, which was
29270 generated by GNU Autoconf 2.69. Invocation command line was
29272 CONFIG_FILES = $CONFIG_FILES
29273 CONFIG_HEADERS = $CONFIG_HEADERS
29274 CONFIG_LINKS = $CONFIG_LINKS
29275 CONFIG_COMMANDS = $CONFIG_COMMANDS
29278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29283 case $ac_config_files in *"
29284 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29287 case $ac_config_headers in *"
29288 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29293 # Files that config.status was made for.
29294 config_files="$ac_config_files"
29295 config_headers="$ac_config_headers"
29296 config_links="$ac_config_links"
29297 config_commands="$ac_config_commands"
29301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29303 \`$as_me' instantiates files and other configuration actions
29304 from templates according to the current configuration. Unless the files
29305 and actions are specified as TAGs, all are instantiated by default.
29307 Usage: $0 [OPTION]... [TAG]...
29309 -h, --help print this help, then exit
29310 -V, --version print version number and configuration settings, then exit
29311 --config print configuration, then exit
29312 -q, --quiet, --silent
29313 do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 --file=FILE[:TEMPLATE]
29317 instantiate the configuration file FILE
29318 --header=FILE[:TEMPLATE]
29319 instantiate the configuration header FILE
29321 Configuration files:
29324 Configuration headers:
29327 Configuration links:
29330 Configuration commands:
29333 Report bugs to <bug-grub@gnu.org>."
29336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29337 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29339 GRUB config.status 2.02~beta2
29340 configured by $0, generated by GNU Autoconf 2.69,
29341 with options \\"\$ac_cs_config\\"
29343 Copyright (C) 2012 Free Software Foundation, Inc.
29344 This config.status script is free software; the Free Software Foundation
29345 gives unlimited permission to copy, distribute and modify it."
29352 test -n "\$AWK" || AWK=awk
29355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29356 # The default lists apply if the user does not specify any file.
29362 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29363 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29367 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29379 # Handling of the options.
29380 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29382 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29383 $as_echo "$ac_cs_version"; exit ;;
29384 --config |
--confi |
--conf |
--con |
--co |
--c )
29385 $as_echo "$ac_cs_config"; exit ;;
29386 --debug |
--debu |
--deb |
--de |
--d |
-d )
29388 --file |
--fil |
--fi |
--f )
29391 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29392 '') as_fn_error $?
"missing file argument" ;;
29394 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29395 ac_need_defaults
=false
;;
29396 --header |
--heade |
--head |
--hea )
29399 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29401 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29402 ac_need_defaults
=false
;;
29404 # Conflict between --help and --header
29405 as_fn_error $?
"ambiguous option: \`$1'
29406 Try \`$0 --help' for more information.";;
29407 --help |
--hel |
-h )
29408 $as_echo "$ac_cs_usage"; exit ;;
29409 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29410 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29413 # This is an error.
29414 -*) as_fn_error $?
"unrecognized option: \`$1'
29415 Try \`$0 --help' for more information." ;;
29417 *) as_fn_append ac_config_targets
" $1"
29418 ac_need_defaults
=false
;;
29424 ac_configure_extra_args
=
29426 if $ac_cs_silent; then
29428 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29433 if \$ac_cs_recheck; then
29434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29437 CONFIG_SHELL='$SHELL'
29438 export CONFIG_SHELL
29443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29448 ## Running $as_me. ##
29454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29459 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29460 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29461 # from automake < 1.5.
29462 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29463 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29464 LINGUAS="${LINGUAS-%UNSET%}"
29469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29471 # Handling of arguments.
29472 for ac_config_target
in $ac_config_targets
29474 case $ac_config_target in
29475 "config-util.h") CONFIG_HEADERS
="$CONFIG_HEADERS config-util.h" ;;
29476 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29477 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
29478 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
29479 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
29480 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29481 "grub-core/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/Makefile" ;;
29482 "grub-core/gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
29483 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
29484 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
29485 "util/bash-completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
29486 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
29487 "config.h") CONFIG_FILES
="$CONFIG_FILES config.h" ;;
29489 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29494 # If the user did not use the arguments to specify the items to instantiate,
29495 # then the envvar interface is used. Set only those that are not.
29496 # We use the long form for the default assignment because of an extremely
29497 # bizarre bug on SunOS 4.1.3.
29498 if $ac_need_defaults; then
29499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29501 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29505 # Have a temporary directory for convenience. Make it in the build tree
29506 # simply because there is no reason against having it here, and in addition,
29507 # creating and moving files from /tmp can sometimes cause problems.
29508 # Hook for its removal unless debugging.
29509 # Note that there is a small window in which the directory will not be cleaned:
29510 # after its creation but before its name has been assigned to `$tmp'.
29514 trap 'exit_status=$?
29515 : "${ac_tmp:=$tmp}"
29516 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29518 trap 'as_fn_exit 1' 1 2 13 15
29520 # Create a (secure) tmp directory for tmp files.
29523 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29527 tmp
=.
/conf$$
-$RANDOM
29528 (umask 077 && mkdir
"$tmp")
29529 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29532 # Set up the scripts for CONFIG_FILES section.
29533 # No need to generate them if there are no CONFIG_FILES.
29534 # This happens for instance with `./config.status config.h'.
29535 if test -n "$CONFIG_FILES"; then
29538 ac_cr
=`echo X | tr X '\015'`
29539 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29540 # But we know of no other shell where ac_cr would be empty at this
29541 # point, so we can use a bashism as a fallback.
29542 if test "x$ac_cr" = x
; then
29543 eval ac_cr
=\$
\'\\r
\'
29545 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29546 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29549 ac_cs_awk_cr
=$ac_cr
29552 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29557 echo "cat >conf$$subs.awk <<_ACEOF" &&
29558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29560 } >conf$$subs.sh ||
29561 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29564 for ac_last_try in false false false false false :; do
29565 . ./conf$$subs.sh ||
29566 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29568 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29569 if test $ac_delim_n = $ac_delim_num; then
29571 elif $ac_last_try; then
29572 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29574 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29577 rm -f conf$$subs.sh
29579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29580 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
29584 s/^/S["/; s
/!.
*/"]=/
29594 s/\(.\{148\}\)..*/\1/
29596 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29601 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29608 s/\(.\{148\}\)..*/\1/
29610 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29614 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29619 ' <conf$$subs.awk | sed '
29624 ' >>$CONFIG_STATUS || ac_write_fail=1
29625 rm -f conf$$subs.awk
29626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29628 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
29629 for (key in S) S_is_set[key] = 1
29635 nfields = split(line, field, "@
")
29637 len = length(field[1])
29638 for (i = 2; i < nfields; i++) {
29640 keylen = length(key)
29641 if (S_is_set[key]) {
29643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29644 len += length(value) + length(field[++i])
29655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29656 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29657 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29660 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
29661 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
29664 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29665 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
29666 # trailing colons and then remove the whole line if VPATH becomes empty
29667 # (actually we leave an empty line to preserve line numbers).
29668 if test "x
$srcdir" = x.; then
29669 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29688 fi # test -n "$CONFIG_FILES"
29690 # Set up the scripts for CONFIG_HEADERS section.
29691 # No need to generate them if there are no CONFIG_HEADERS.
29692 # This happens for instance with `./config.status Makefile'.
29693 if test -n "$CONFIG_HEADERS"; then
29694 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
29698 # Transform confdefs.h into an awk script `defines.awk', embedded as
29699 # here-document in config.status, that substitutes the proper values into
29700 # config.h.in to produce config.h.
29702 # Create a delimiter string that does not exist in confdefs.h, to ease
29703 # handling of long lines.
29705 for ac_last_try in false false :; do
29706 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
29707 if test -z "$ac_tt"; then
29709 elif $ac_last_try; then
29710 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
29712 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29716 # For the awk script, D is an array of macro values keyed by name,
29717 # likewise P contains macro parameters if any. Preserve backslash
29718 # newline sequences.
29720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29722 s/.\{148\}/&'"$ac_delim"'/g
29725 s/^[ ]*#[ ]*define[ ][ ]*/ /
29732 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29734 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29739 D["\
1"]=" \
3\\\\\\n
"\\/p
29741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29746 s/.\{148\}/&'"$ac_delim"'/g
29751 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29754 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29756 ' <confdefs.h | sed '
29757 s/'"$ac_delim"'/"\\\
29758 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29761 for (key in D) D_is_set[key] = 1
29764 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29766 split(line, arg, " ")
29767 if (arg[1] == "#") {
29771 defundef
= substr
(arg
[1], 2)
29774 split(mac1
, mac2
, "(") #)
29776 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29777 if (D_is_set
[macro
]) {
29778 # Preserve the white space surrounding the "#".
29779 print prefix
"define", macro P
[macro
] D
[macro
]
29782 # Replace #undef with comments. This is necessary, for example,
29783 # in the case of _POSIX_SOURCE, which is predefined and required
29784 # on some systems where configure will not decide to define it.
29785 if (defundef
== "undef") {
29786 print
"/*", prefix defundef
, macro
, "*/"
29794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29795 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
29796 fi # test -n "$CONFIG_HEADERS"
29799 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29804 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29806 case $ac_mode$ac_tag in
29808 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29809 :[FH
]-) ac_tag
=-:-;;
29810 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29827 -) ac_f
="$ac_tmp/stdin";;
29828 *) # Look for the file first in the build tree, then in the source tree
29829 # (if the path is not absolute). The absolute path cannot be DOS-style,
29830 # because $ac_f cannot contain `:'.
29834 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29836 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29838 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29839 as_fn_append ac_file_inputs
" '$ac_f'"
29842 # Let's still pretend it is `configure' which instantiates (i.e., don't
29843 # use $as_me), people would be surprised to read:
29844 # /* config.h. Generated by config.status. */
29845 configure_input
='Generated from '`
29846 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29848 if test x
"$ac_file" != x-
; then
29849 configure_input
="$ac_file. $configure_input"
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29851 $as_echo "$as_me: creating $ac_file" >&6;}
29853 # Neutralize special characters interpreted by sed in replacement strings.
29854 case $configure_input in #(
29855 *\
&* |
*\|
* |
*\\* )
29856 ac_sed_conf_input
=`$as_echo "$configure_input" |
29857 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29858 *) ac_sed_conf_input
=$configure_input;;
29862 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
29863 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
29868 ac_dir
=`$as_dirname -- "$ac_file" ||
29869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29870 X"$ac_file" : 'X\(//\)[^/]' \| \
29871 X"$ac_file" : 'X\(//\)$' \| \
29872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29873 $as_echo X"$ac_file" |
29874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29878 /^X\(\/\/\)[^/].*/{
29891 as_dir
="$ac_dir"; as_fn_mkdir_p
29895 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29897 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29898 # A ".." for each directory in $ac_dir_suffix.
29899 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29900 case $ac_top_builddir_sub in
29901 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29902 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29905 ac_abs_top_builddir
=$ac_pwd
29906 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29907 # for backward compatibility:
29908 ac_top_builddir
=$ac_top_build_prefix
29911 .
) # We are building in place.
29913 ac_top_srcdir
=$ac_top_builddir_sub
29914 ac_abs_top_srcdir
=$ac_pwd ;;
29915 [\\/]* | ?
:[\\/]* ) # Absolute name.
29916 ac_srcdir
=$srcdir$ac_dir_suffix;
29917 ac_top_srcdir
=$srcdir
29918 ac_abs_top_srcdir
=$srcdir ;;
29919 *) # Relative name.
29920 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29921 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29922 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29924 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29934 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
29935 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
29937 ac_MKDIR_P
=$MKDIR_P
29939 [\\/$
]* | ?
:[\\/]* ) ;;
29940 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
29944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29945 # If the template does not know about datarootdir, expand it.
29946 # FIXME: This hack should be removed a few years after 2.60.
29947 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29959 *datarootdir
*) ac_datarootdir_seen
=yes;;
29960 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29965 ac_datarootdir_hack='
29966 s&@datadir@&$datadir&g
29967 s&@docdir@&$docdir&g
29968 s&@infodir@&$infodir&g
29969 s&@localedir@&$localedir&g
29970 s&@mandir@&$mandir&g
29971 s&\\\${datarootdir}&$datarootdir&g' ;;
29975 # Neutralize VPATH when `$srcdir' = `.'.
29976 # Shell code in configure.ac might set extrasub.
29977 # FIXME: do we really want to maintain this feature?
29978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29979 ac_sed_extra="$ac_vpsub
29982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29984 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29985 s|@configure_input@|
$ac_sed_conf_input|
;t t
29986 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29987 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29988 s
&@srcdir@
&$ac_srcdir&;t t
29989 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29990 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29991 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29992 s
&@builddir@
&$ac_builddir&;t t
29993 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29994 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29995 s
&@INSTALL@
&$ac_INSTALL&;t t
29996 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
29997 $ac_datarootdir_hack
29999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
30000 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30005 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30007 which seems to be undefined. Please make sure it is defined" >&5
30008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30009 which seems to be undefined. Please make sure it is defined" >&2;}
30011 rm -f "$ac_tmp/stdin"
30013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30022 if test x"$ac_file" != x-; then
30024 $as_echo "/* $configure_input */" \
30025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30026 } >"$ac_tmp/config.h" \
30027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30033 mv "$ac_tmp/config.h" "$ac_file" \
30034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30037 $as_echo "/* $configure_input */" \
30038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30039 || as_fn_error $? "could not create -" "$LINENO" 5
30041 # Compute "$ac_file"'s index
in $config_headers.
30044 for _am_header
in $config_headers :; do
30045 case $_am_header in
30046 $_am_arg |
$_am_arg:* )
30049 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30052 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30053 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30054 X"$_am_arg" : 'X\(//\)[^/]' \| \
30055 X"$_am_arg" : 'X\(//\)$' \| \
30056 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30057 $as_echo X"$_am_arg" |
30058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30062 /^X\(\/\/\)[^/].*/{
30074 s/.*/./; q'`/stamp-h
$_am_stamp_count
30081 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30084 # Prefer the file from the source tree if names are identical.
30085 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
30086 ac_source
=$srcdir/$ac_source
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30090 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30092 if test ! -r "$ac_source"; then
30093 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
30097 # Try a relative symlink, then a hard link, then a copy.
30099 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
30100 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
30102 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
30103 ln "$ac_source" "$ac_file" 2>/dev
/null ||
30104 cp -p "$ac_source" "$ac_file" ||
30105 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30108 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30109 $as_echo "$as_me: executing $ac_file commands" >&6;}
30114 case $ac_file$ac_mode in
30115 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30116 # Older Autoconf quotes --file arguments for eval, but not when files
30117 # are listed without --file. Let's play safe and only enable the eval
30118 # if we detect the quoting.
30119 case $CONFIG_FILES in
30120 *\'*) eval set x
"$CONFIG_FILES" ;;
30121 *) set x
$CONFIG_FILES ;;
30126 # Strip MF so we end up with the name of the file.
30127 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30128 # Check whether this is an Automake generated Makefile or not.
30129 # We used to match only the files named 'Makefile.in', but
30130 # some people rename them; so instead we look at the file content.
30131 # Grep'ing the first line is not enough: some people post-process
30132 # each Makefile.in and add a new line on top of each file to say so.
30133 # Grep'ing the whole file is not good either: AIX grep has a line
30134 # limit of 2048, but all sed's we know have understand at least 4000.
30135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30136 dirpart
=`$as_dirname -- "$mf" ||
30137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30138 X"$mf" : 'X\(//\)[^/]' \| \
30139 X"$mf" : 'X\(//\)$' \| \
30140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30146 /^X\(\/\/\)[^/].*/{
30162 # Extract the definition of DEPDIR, am__include, and am__quote
30163 # from the Makefile without running 'make'.
30164 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30165 test -z "$DEPDIR" && continue
30166 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30167 test -z "$am__include" && continue
30168 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30169 # Find all dependency output files, they are included files with
30170 # $(DEPDIR) in their names. We invoke sed twice because it is the
30171 # simplest approach to changing $(DEPDIR) to its actual value in the
30173 for file in `sed -n "
30174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30176 # Make sure the directory exists.
30177 test -f "$dirpart/$file" && continue
30178 fdir
=`$as_dirname -- "$file" ||
30179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30180 X"$file" : 'X\(//\)[^/]' \| \
30181 X"$file" : 'X\(//\)$' \| \
30182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30183 $as_echo X"$file" |
30184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30188 /^X\(\/\/\)[^/].*/{
30201 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30202 # echo "creating $dirpart/$file"
30203 echo '# dummy' > "$dirpart/$file"
30208 "po-directories":C
)
30209 for ac_file
in $CONFIG_FILES; do
30210 # Support "outfile[:infile[:infile...]]"
30212 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
30214 # PO directories have a Makefile.in generated from Makefile.in.in.
30215 case "$ac_file" in */Makefile.
in)
30216 # Adjust a relative srcdir.
30217 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30218 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
30219 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30220 # In autoconf-2.13 it is called $ac_given_srcdir.
30221 # In autoconf-2.50 it is called $srcdir.
30222 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
30223 case "$ac_given_srcdir" in
30224 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
30225 /*) top_srcdir
="$ac_given_srcdir" ;;
30226 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
30228 # Treat a directory as a PO directory if and only if it has a
30229 # POTFILES.in file. This allows packages to have multiple PO
30230 # directories under different names or in different locations.
30231 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30232 rm -f "$ac_dir/POTFILES"
30233 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
30234 gt_tab
=`printf '\t'`
30235 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30236 POMAKEFILEDEPS
="POTFILES.in"
30237 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30238 # on $ac_dir but don't depend on user-specified configuration
30240 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30241 # The LINGUAS file contains the set of available languages.
30242 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30243 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
30245 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30246 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30247 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30248 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
30250 # The set of available languages was given in configure.in.
30251 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30252 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30256 # Compute UPDATEPOFILES
30257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30258 # Compute DUMMYPOFILES
30259 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30262 case "$ac_given_srcdir" in
30264 *) srcdirpre
='$(srcdir)/' ;;
30270 for lang
in $ALL_LINGUAS; do
30271 POFILES
="$POFILES $srcdirpre$lang.po"
30272 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
30273 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
30274 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
30276 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30277 # environment variable.
30279 if test -n "$ALL_LINGUAS"; then
30280 for presentlang
in $ALL_LINGUAS; do
30282 if test "%UNSET%" != "$LINGUAS"; then
30283 desiredlanguages
="$LINGUAS"
30285 desiredlanguages
="$ALL_LINGUAS"
30287 for desiredlang
in $desiredlanguages; do
30288 # Use the presentlang catalog if desiredlang is
30289 # a. equal to presentlang, or
30290 # b. a variant of presentlang (because in this case,
30291 # presentlang can be used as a fallback for messages
30292 # which are not translated in the desiredlang catalog).
30293 case "$desiredlang" in
30294 "$presentlang"*) useit
=yes;;
30297 if test $useit = yes; then
30298 INST_LINGUAS
="$INST_LINGUAS $presentlang"
30303 if test -n "$INST_LINGUAS"; then
30304 for lang
in $INST_LINGUAS; do
30305 CATALOGS
="$CATALOGS $lang.gmo"
30308 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
30309 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
30310 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
30311 if test -f "$f"; then
30313 *.orig |
*.bak |
*~
) ;;
30314 *) cat "$f" >> "$ac_dir/Makefile" ;;
30322 "stamp-h":F
) echo timestamp
> stamp-h
;;
30330 ac_clean_files
=$ac_clean_files_save
30332 test $ac_write_fail = 0 ||
30333 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30336 # configure is writing to config.log, and then calls config.status.
30337 # config.status does its own redirection, appending to config.log.
30338 # Unfortunately, on DOS this fails, as config.log is still kept open
30339 # by configure, so config.status won't be able to write to it; its
30340 # output is simply discarded. So we exec the FD to /dev/null,
30341 # effectively closing config.log, so it can be properly (re)opened and
30342 # appended to by config.status. When coming back to configure, we
30343 # need to make the FD available again.
30344 if test "$no_create" != yes; then
30346 ac_config_status_args
=
30347 test "$silent" = yes &&
30348 ac_config_status_args
="$ac_config_status_args --quiet"
30350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30353 # would make configure fail if this is the last instruction.
30354 $ac_cs_success || as_fn_exit
1
30356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30362 echo "*******************************************************"
30363 echo GRUB2 will be compiled with following components
:
30364 echo Platform
: "$target_cpu"-"$platform"
30365 if [ x
"$platform" = xemu
]; then
30366 if [ x
"$grub_emu_usb_excuse" = x
]; then
30367 echo USB support
for grub-emu
: Yes
30369 echo USB support
for grub-emu
: No
"($grub_emu_usb_excuse)"
30371 if [ x
"$grub_emu_sdl_excuse" = x
]; then
30372 echo SDL support
for grub-emu
: Yes
30374 echo SDL support
for grub-emu
: No
"($grub_emu_sdl_excuse)"
30376 if [ x
"$grub_emu_pci_excuse" = x
]; then
30377 echo PCI support
for grub-emu
: Yes
30379 echo PCI support
for grub-emu
: No
"($grub_emu_pci_excuse)"
30382 if test x
"$device_mapper_excuse" = x
; then
30383 echo With devmapper support
: Yes
30385 echo With devmapper support
: No
"($device_mapper_excuse)"
30387 if [ x
"$enable_mm_debug" = xyes
]; then
30388 echo With memory debugging
: Yes
30390 echo With memory debugging
: No
30392 if [ x
"$enable_cache_stats" = xyes
]; then
30393 echo With disk cache statistics
: Yes
30395 echo With disk cache statistics
: No
30398 if [ x
"$enable_boot_time" = xyes
]; then
30399 echo With boot
time statistics
: Yes
30401 echo With boot
time statistics
: No
30404 if [ x
"$efiemu_excuse" = x
]; then
30405 echo efiemu runtime
: Yes
30407 echo efiemu runtime
: No
"($efiemu_excuse)"
30409 if [ x
"$grub_mkfont_excuse" = x
]; then
30410 echo grub-mkfont
: Yes
30412 echo grub-mkfont
: No
"($grub_mkfont_excuse)"
30414 if [ x
"$grub_mount_excuse" = x
]; then
30415 echo grub-mount
: Yes
30417 echo grub-mount
: No
"($grub_mount_excuse)"
30419 if [ x
"$starfield_excuse" = x
]; then
30420 echo starfield theme
: Yes
30421 echo With DejaVuSans font from
$DJVU_FONT_SOURCE
30423 echo starfield theme
: No
"($starfield_excuse)"
30425 if [ x
"$libzfs_excuse" = x
]; then
30426 echo With libzfs support
: Yes
30428 echo With libzfs support
: No
"($libzfs_excuse)"
30430 if [ x
"$grub_build_mkfont_excuse" = x
]; then
30431 echo Build-time grub-mkfont
: Yes
30432 if test "x$FONT_SOURCE" = x
; then
30433 echo "Without unifont"
30435 echo "With unifont from $FONT_SOURCE"
30438 echo Build-time grub-mkfont
: No
"($grub_build_mkfont_excuse)"
30439 echo "Without unifont (no build-time grub-mkfont)"
30441 if test x
"$liblzma_excuse" != x
; then
30442 echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
30444 echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
30446 echo "*******************************************************"