2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GRUB 2.06.
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.06'
584 PACKAGE_STRING
='GRUB 2.06'
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>
625 gl_use_threads_default
=
629 gl_fnmatch_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
668 COND_HOST_ILLUMOS_FALSE
669 COND_HOST_ILLUMOS_TRUE
672 COND_HOST_KFREEBSD_FALSE
673 COND_HOST_KFREEBSD_TRUE
674 COND_HOST_WINDOWS_FALSE
675 COND_HOST_WINDOWS_TRUE
676 COND_HOST_NETBSD_FALSE
677 COND_HOST_NETBSD_TRUE
678 COND_HOST_LINUX_FALSE
682 COND_riscv64_efi_FALSE
683 COND_riscv64_efi_TRUE
684 COND_riscv32_efi_FALSE
685 COND_riscv32_efi_TRUE
696 COND_arm_coreboot_FALSE
697 COND_arm_coreboot_TRUE
708 COND_powerpc_ieee1275_FALSE
709 COND_powerpc_ieee1275_TRUE
710 COND_sparc64_emu_FALSE
711 COND_sparc64_emu_TRUE
712 COND_sparc64_ieee1275_FALSE
713 COND_sparc64_ieee1275_TRUE
716 COND_mips_qemu_mips_FALSE
717 COND_mips_qemu_mips_TRUE
718 COND_mips_loongson_FALSE
719 COND_mips_loongson_TRUE
720 COND_x86_64_xen_FALSE
722 COND_i386_xen_pvh_FALSE
723 COND_i386_xen_pvh_TRUE
726 COND_x86_64_efi_FALSE
728 COND_i386_multiboot_FALSE
729 COND_i386_multiboot_TRUE
730 COND_i386_coreboot_FALSE
731 COND_i386_coreboot_TRUE
732 COND_i386_ieee1275_FALSE
733 COND_i386_ieee1275_TRUE
744 COND_real_platform_FALSE
745 COND_real_platform_TRUE
752 TARGET_IMG_BASE_LDOPT
769 GRUB_BOOT_MACHINE_LINK_ADDR
779 BUILD_FREETYPE_CFLAGS
780 BUILD_WORDS_BIGENDIAN
792 TARGET_NMFLAGS_DEFINED_ONLY
793 TARGET_NMFLAGS_MINUS_P
794 TARGET_LDFLAGS_OLDMAGIC
814 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
828 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
831 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
832 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
833 LIBUNISTRING_UNIWIDTH_H
834 LIBUNISTRING_UNITYPES_H
836 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
838 UNISTD_H_DEFINES_STRUCT_TIMESPEC
839 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
840 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
841 TIME_H_DEFINES_STRUCT_TIMESPEC
842 NEXT_AS_FIRST_DIRECTIVE_TIME_H
859 HAVE_DECL_LOCALTIME_R
870 GL_GENERATE_SYSEXITS_H_FALSE
871 GL_GENERATE_SYSEXITS_H_TRUE
874 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
878 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
881 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
883 NEXT_AS_FIRST_DIRECTIVE_STRING_H
885 HAVE_DECL_STRNCASECMP
889 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
891 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
893 GL_GENERATE_STDINT_H_FALSE
894 GL_GENERATE_STDINT_H_TRUE
906 HAVE_SIGNED_SIG_ATOMIC_T
909 BITSIZEOF_SIG_ATOMIC_T
913 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
918 HAVE_UNSIGNED_LONG_LONG_INT
920 GNULIB_OVERRIDES_WINT_T
922 GL_GENERATE_STDBOOL_H_FALSE
923 GL_GENERATE_STDBOOL_H_TRUE
925 GL_GENERATE_STDALIGN_H_FALSE
926 GL_GENERATE_STDALIGN_H_TRUE
929 APPLE_UNIVERSAL_BUILD
1004 GNULIB_EXPLICIT_BZERO
1022 REPLACE_CANONICALIZE_FILE_NAME
1027 HAVE_STRUCT_RANDOM_DATA
1053 HAVE_DECL_GETLOADAVG
1054 HAVE_CANONICALIZE_FILE_NAME
1065 GNULIB_SECURE_GETENV
1068 GNULIB_REALLOC_POSIX
1087 GNULIB_CANONICALIZE_FILE_NAME
1098 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1101 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1103 GL_GENERATE_STDDEF_H_FALSE
1104 GL_GENERATE_STDDEF_H_TRUE
1109 REPLACE_STRUCT_LCONV
1122 LOCALCHARSET_TESTS_ENVIRONMENT
1123 GL_GENERATE_LIMITS_H_FALSE
1124 GL_GENERATE_LIMITS_H_TRUE
1126 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1128 HAVE_LANGINFO_YESEXPR
1130 HAVE_LANGINFO_ALTMON
1131 HAVE_LANGINFO_T_FMT_AMPM
1132 HAVE_LANGINFO_CODESET
1134 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1139 GNULIB_GL_UNISTD_H_GETOPT
1144 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1153 REPLACE_STDIO_WRITE_FUNCS
1154 REPLACE_STDIO_READ_FUNCS
1163 REPLACE_OBSTACK_PRINTF
1188 HAVE_DECL_OBSTACK_PRINTF
1194 GNULIB_VSPRINTF_POSIX
1196 GNULIB_VPRINTF_POSIX
1198 GNULIB_VFPRINTF_POSIX
1205 GNULIB_STDIO_H_SIGPIPE
1206 GNULIB_STDIO_H_NONBLOCKING
1207 GNULIB_SPRINTF_POSIX
1221 GNULIB_OBSTACK_PRINTF_POSIX
1222 GNULIB_OBSTACK_PRINTF
1238 GNULIB_FPRINTF_POSIX
1247 WINDOWS_64_BIT_ST_SIZE
1248 WINDOWS_STAT_TIMESPEC
1249 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1271 GNULIB_OVERRIDES_STRUCT_STAT
1285 GL_GENERATE_FNMATCH_H_FALSE
1286 GL_GENERATE_FNMATCH_H_TRUE
1289 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1295 GL_GENERATE_FLOAT_H_FALSE
1296 GL_GENERATE_FLOAT_H_TRUE
1298 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1300 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1317 GL_GENERATE_ERRNO_H_FALSE
1318 GL_GENERATE_ERRNO_H_TRUE
1320 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1323 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1326 PRAGMA_SYSTEM_HEADER
1327 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1351 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1352 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1353 UNISTD_H_HAVE_WINSOCK2_H
1378 REPLACE_GETDTABLESIZE
1379 REPLACE_GETDOMAINNAME
1392 HAVE_DECL_SETHOSTNAME
1393 HAVE_DECL_GETUSERSHELL
1394 HAVE_DECL_GETPAGESIZE
1395 HAVE_DECL_GETLOGIN_R
1397 HAVE_DECL_GETDOMAINNAME
1437 GNULIB_UNISTD_H_SIGPIPE
1438 GNULIB_UNISTD_H_NONBLOCKING
1466 GNULIB_GETDTABLESIZE
1467 GNULIB_GETDOMAINNAME
1578 GL_GENERATE_ALLOCA_H_FALSE
1579 GL_GENERATE_ALLOCA_H_TRUE
1582 GL_COND_LIBTOOL_FALSE
1583 GL_COND_LIBTOOL_TRUE
1596 XGETTEXT_EXTRA_OPTIONS
1604 GETTEXT_MACRO_VERSION
1617 am__fastdepCCAS_FALSE
1618 am__fastdepCCAS_TRUE
1622 am__fastdepCXX_FALSE
1662 TARGET_DECOMPRESSOR_LINK_ADDR
1673 grub_mkpasswd_pbkdf2
1686 AM_DEFAULT_VERBOSITY
1697 INSTALL_STRIP_PROGRAM
1752 program_transform_name
1765 enable_option_checking
1770 enable_dependency_tracking
1776 with_libiconv_prefix
1781 enable_stack_protector
1790 enable_device_mapper
1795 ac_precious_vars
='build_alias
1817 BUILD_FREETYPE_CFLAGS
1818 BUILD_FREETYPE_LIBS'
1821 # Initialize some variables set by options.
1823 ac_init_version
=false
1824 ac_unrecognized_opts
=
1825 ac_unrecognized_sep
=
1826 # The variables have the same names as the options, with
1827 # dashes changed to underlines.
1828 cache_file
=/dev
/null
1835 program_transform_name
=s
,x
,x
,
1843 # Installation directory options.
1844 # These are left unexpanded so users can "make install exec_prefix=/foo"
1845 # and all the variables that are supposed to be based on exec_prefix
1846 # by default will actually change.
1847 # Use braces instead of parens because sh, perl, etc. also accept them.
1848 # (The list follows the same order as the GNU Coding Standards.)
1849 bindir
='${exec_prefix}/bin'
1850 sbindir
='${exec_prefix}/sbin'
1851 libexecdir
='${exec_prefix}/libexec'
1852 datarootdir
='${prefix}/share'
1853 datadir
='${datarootdir}'
1854 sysconfdir
='${prefix}/etc'
1855 sharedstatedir
='${prefix}/com'
1856 localstatedir
='${prefix}/var'
1857 runstatedir
='${localstatedir}/run'
1858 includedir
='${prefix}/include'
1859 oldincludedir
='/usr/include'
1860 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1861 infodir
='${datarootdir}/info'
1866 libdir
='${exec_prefix}/lib'
1867 localedir
='${datarootdir}/locale'
1868 mandir
='${datarootdir}/man'
1874 # If the previous option needs an argument, assign it.
1875 if test -n "$ac_prev"; then
1876 eval $ac_prev=\
$ac_option
1882 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1887 # Accept the important Cygnus configure options, so we can diagnose typos.
1889 case $ac_dashdash$ac_option in
1893 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1895 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1896 bindir
=$ac_optarg ;;
1898 -build |
--build |
--buil |
--bui |
--bu)
1899 ac_prev
=build_alias
;;
1900 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1901 build_alias
=$ac_optarg ;;
1903 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1904 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1905 ac_prev
=cache_file
;;
1906 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1907 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1908 cache_file
=$ac_optarg ;;
1910 --config-cache |
-C)
1911 cache_file
=config.cache
;;
1913 -datadir |
--datadir |
--datadi |
--datad)
1915 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1916 datadir
=$ac_optarg ;;
1918 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1919 |
--dataroo |
--dataro |
--datar)
1920 ac_prev
=datarootdir
;;
1921 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1922 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1923 datarootdir
=$ac_optarg ;;
1925 -disable-* |
--disable-*)
1926 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1927 # Reject names that are not valid shell variable names.
1928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1929 as_fn_error $?
"invalid feature name: $ac_useropt"
1930 ac_useropt_orig
=$ac_useropt
1931 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1932 case $ac_user_opts in
1934 "enable_
$ac_useropt"
1936 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1937 ac_unrecognized_sep
=', ';;
1939 eval enable_
$ac_useropt=no
;;
1941 -docdir |
--docdir |
--docdi |
--doc |
--do)
1943 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1944 docdir
=$ac_optarg ;;
1946 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1948 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1949 dvidir
=$ac_optarg ;;
1951 -enable-* |
--enable-*)
1952 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1953 # Reject names that are not valid shell variable names.
1954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1955 as_fn_error $?
"invalid feature name: $ac_useropt"
1956 ac_useropt_orig
=$ac_useropt
1957 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1958 case $ac_user_opts in
1960 "enable_
$ac_useropt"
1962 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1963 ac_unrecognized_sep
=', ';;
1965 eval enable_
$ac_useropt=\
$ac_optarg ;;
1967 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1968 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1969 |
--exec |
--exe |
--ex)
1970 ac_prev
=exec_prefix
;;
1971 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1972 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1973 |
--exec=* |
--exe=* |
--ex=*)
1974 exec_prefix
=$ac_optarg ;;
1976 -gas |
--gas |
--ga |
--g)
1977 # Obsolete; use --with-gas.
1980 -help |
--help |
--hel |
--he |
-h)
1981 ac_init_help
=long
;;
1982 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1983 ac_init_help
=recursive
;;
1984 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1985 ac_init_help
=short
;;
1987 -host |
--host |
--hos |
--ho)
1988 ac_prev
=host_alias
;;
1989 -host=* |
--host=* |
--hos=* |
--ho=*)
1990 host_alias
=$ac_optarg ;;
1992 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1994 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1996 htmldir
=$ac_optarg ;;
1998 -includedir |
--includedir |
--includedi |
--included |
--include \
1999 |
--includ |
--inclu |
--incl |
--inc)
2000 ac_prev
=includedir
;;
2001 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2002 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2003 includedir
=$ac_optarg ;;
2005 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2007 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2008 infodir
=$ac_optarg ;;
2010 -libdir |
--libdir |
--libdi |
--libd)
2012 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2013 libdir
=$ac_optarg ;;
2015 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2016 |
--libexe |
--libex |
--libe)
2017 ac_prev
=libexecdir
;;
2018 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2019 |
--libexe=* |
--libex=* |
--libe=*)
2020 libexecdir
=$ac_optarg ;;
2022 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2023 ac_prev
=localedir
;;
2024 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2025 localedir
=$ac_optarg ;;
2027 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2028 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2029 ac_prev
=localstatedir
;;
2030 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2031 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2032 localstatedir
=$ac_optarg ;;
2034 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2036 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2037 mandir
=$ac_optarg ;;
2039 -nfp |
--nfp |
--nf)
2040 # Obsolete; use --without-fp.
2043 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2044 |
--no-cr |
--no-c |
-n)
2047 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2048 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2051 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2052 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2053 |
--oldin |
--oldi |
--old |
--ol |
--o)
2054 ac_prev
=oldincludedir
;;
2055 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2056 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2057 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2058 oldincludedir
=$ac_optarg ;;
2060 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2062 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2063 prefix
=$ac_optarg ;;
2065 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2066 |
--program-pre |
--program-pr |
--program-p)
2067 ac_prev
=program_prefix
;;
2068 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2069 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2070 program_prefix
=$ac_optarg ;;
2072 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2073 |
--program-suf |
--program-su |
--program-s)
2074 ac_prev
=program_suffix
;;
2075 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2076 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2077 program_suffix
=$ac_optarg ;;
2079 -program-transform-name |
--program-transform-name \
2080 |
--program-transform-nam |
--program-transform-na \
2081 |
--program-transform-n |
--program-transform- \
2082 |
--program-transform |
--program-transfor \
2083 |
--program-transfo |
--program-transf \
2084 |
--program-trans |
--program-tran \
2085 |
--progr-tra |
--program-tr |
--program-t)
2086 ac_prev
=program_transform_name
;;
2087 -program-transform-name=* |
--program-transform-name=* \
2088 |
--program-transform-nam=* |
--program-transform-na=* \
2089 |
--program-transform-n=* |
--program-transform-=* \
2090 |
--program-transform=* |
--program-transfor=* \
2091 |
--program-transfo=* |
--program-transf=* \
2092 |
--program-trans=* |
--program-tran=* \
2093 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2094 program_transform_name
=$ac_optarg ;;
2096 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2098 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2099 pdfdir
=$ac_optarg ;;
2101 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2103 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2106 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2107 |
-silent |
--silent |
--silen |
--sile |
--sil)
2110 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
2111 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
2112 |
--run |
--ru |
--r)
2113 ac_prev
=runstatedir
;;
2114 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
2115 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
2116 |
--run=* |
--ru=* |
--r=*)
2117 runstatedir
=$ac_optarg ;;
2119 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2121 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2123 sbindir
=$ac_optarg ;;
2125 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2126 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2127 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2129 ac_prev
=sharedstatedir
;;
2130 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2131 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2132 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2134 sharedstatedir
=$ac_optarg ;;
2136 -site |
--site |
--sit)
2138 -site=* |
--site=* |
--sit=*)
2141 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2143 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2144 srcdir
=$ac_optarg ;;
2146 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2147 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2148 ac_prev
=sysconfdir
;;
2149 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2150 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2151 sysconfdir
=$ac_optarg ;;
2153 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2154 ac_prev
=target_alias
;;
2155 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2156 target_alias
=$ac_optarg ;;
2158 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2161 -version |
--version |
--versio |
--versi |
--vers |
-V)
2162 ac_init_version
=: ;;
2165 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2166 # Reject names that are not valid shell variable names.
2167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2168 as_fn_error $?
"invalid package name: $ac_useropt"
2169 ac_useropt_orig
=$ac_useropt
2170 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2171 case $ac_user_opts in
2175 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2176 ac_unrecognized_sep
=', ';;
2178 eval with_
$ac_useropt=\
$ac_optarg ;;
2180 -without-* |
--without-*)
2181 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2182 # Reject names that are not valid shell variable names.
2183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2184 as_fn_error $?
"invalid package name: $ac_useropt"
2185 ac_useropt_orig
=$ac_useropt
2186 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2187 case $ac_user_opts in
2191 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2192 ac_unrecognized_sep
=', ';;
2194 eval with_
$ac_useropt=no
;;
2197 # Obsolete; use --with-x.
2200 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2201 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2202 ac_prev
=x_includes
;;
2203 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2204 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2205 x_includes
=$ac_optarg ;;
2207 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2208 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2209 ac_prev
=x_libraries
;;
2210 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2211 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2212 x_libraries
=$ac_optarg ;;
2214 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2215 Try \`$0 --help' for more information"
2219 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2220 # Reject names that are not valid shell variable names.
2221 case $ac_envvar in #(
2222 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2223 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2225 eval $ac_envvar=\
$ac_optarg
2226 export $ac_envvar ;;
2229 # FIXME: should be removed in autoconf 3.0.
2230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2239 if test -n "$ac_prev"; then
2240 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2241 as_fn_error $?
"missing argument to $ac_option"
2244 if test -n "$ac_unrecognized_opts"; then
2245 case $enable_option_checking in
2247 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2252 # Check all directory arguments for consistency.
2253 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2254 datadir sysconfdir sharedstatedir localstatedir includedir \
2255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2256 libdir localedir mandir runstatedir
2258 eval ac_val
=\$
$ac_var
2259 # Remove trailing slashes.
2262 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2263 eval $ac_var=\
$ac_val;;
2265 # Be sure to have absolute directory names.
2267 [\\/$
]* | ?
:[\\/]* ) continue;;
2268 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2270 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2273 # There might be people who depend on the old broken behavior: `$host'
2274 # used to hold the argument of --host etc.
2275 # FIXME: To remove some day.
2278 target
=$target_alias
2280 # FIXME: To remove some day.
2281 if test "x$host_alias" != x
; then
2282 if test "x$build_alias" = x
; then
2283 cross_compiling
=maybe
2284 elif test "x$build_alias" != "x$host_alias"; then
2290 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2292 test "$silent" = yes && exec 6>/dev
/null
2295 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2296 ac_ls_di
=`ls -di .` &&
2297 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2298 as_fn_error $?
"working directory cannot be determined"
2299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2300 as_fn_error $?
"pwd does not report name of working directory"
2303 # Find the source files, if location was not specified.
2304 if test -z "$srcdir"; then
2305 ac_srcdir_defaulted
=yes
2306 # Try the directory containing this script, then the parent directory.
2307 ac_confdir
=`$as_dirname -- "$as_myself" ||
2308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2309 X"$as_myself" : 'X\(//\)[^/]' \| \
2310 X"$as_myself" : 'X\(//\)$' \| \
2311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2312 $as_echo X"$as_myself" |
2313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2331 if test ! -r "$srcdir/$ac_unique_file"; then
2335 ac_srcdir_defaulted
=no
2337 if test ! -r "$srcdir/$ac_unique_file"; then
2338 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2339 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2341 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2345 # When building in place, set srcdir=.
2346 if test "$ac_abs_confdir" = "$ac_pwd"; then
2349 # Remove unnecessary trailing slashes from srcdir.
2350 # Double slashes in file names in object file debugging info
2351 # mess up M-x gdb in Emacs.
2353 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2355 for ac_var
in $ac_precious_vars; do
2356 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2357 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2358 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2359 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2363 # Report the --help message.
2365 if test "$ac_init_help" = "long"; then
2366 # Omit some internal or obsolete options to make the list less imposing.
2367 # This message is too long to be a string in the A/UX 3.1 sh.
2369 \`configure' configures GRUB 2.06 to adapt to many kinds of systems.
2371 Usage: $0 [OPTION]... [VAR=VALUE]...
2373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2374 VAR=VALUE. See below for descriptions of some of the useful variables.
2376 Defaults for the options are specified in brackets.
2379 -h, --help display this help and exit
2380 --help=short display options specific to this package
2381 --help=recursive display the short help of all the included packages
2382 -V, --version display version information and exit
2383 -q, --quiet, --silent do not print \`checking ...' messages
2384 --cache-file=FILE cache test results in FILE [disabled]
2385 -C, --config-cache alias for \`--cache-file=config.cache'
2386 -n, --no-create do not create output files
2387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2389 Installation directories:
2390 --prefix=PREFIX install architecture-independent files in PREFIX
2391 [$ac_default_prefix]
2392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2395 By default, \`make install' will install all the files in
2396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2398 for instance \`--prefix=\$HOME'.
2400 For better control, use the options below.
2402 Fine tuning of the installation directories:
2403 --bindir=DIR user executables [EPREFIX/bin]
2404 --sbindir=DIR system admin executables [EPREFIX/sbin]
2405 --libexecdir=DIR program executables [EPREFIX/libexec]
2406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2410 --libdir=DIR object code libraries [EPREFIX/lib]
2411 --includedir=DIR C header files [PREFIX/include]
2412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2415 --infodir=DIR info documentation [DATAROOTDIR/info]
2416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2417 --mandir=DIR man documentation [DATAROOTDIR/man]
2418 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
2419 --htmldir=DIR html documentation [DOCDIR]
2420 --dvidir=DIR dvi documentation [DOCDIR]
2421 --pdfdir=DIR pdf documentation [DOCDIR]
2422 --psdir=DIR ps documentation [DOCDIR]
2428 --program-prefix=PREFIX prepend PREFIX to installed program names
2429 --program-suffix=SUFFIX append SUFFIX to installed program names
2430 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2433 --build=BUILD configure
for building on BUILD
[guessed
]
2434 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2435 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2439 if test -n "$ac_init_help"; then
2440 case $ac_init_help in
2441 short | recursive
) echo "Configuration of GRUB 2.06:";;
2446 --disable-option-checking ignore unrecognized
--enable/--with options
2447 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2448 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2449 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2450 --disable-silent-rules verbose build output
(undo
: "make V=0")
2451 --enable-dependency-tracking
2452 do not reject slow dependency extractors
2453 --disable-dependency-tracking
2454 speeds up one-time build
2455 --disable-largefile omit support
for large files
2456 --enable-threads={posix|solaris|pth|windows
}
2457 specify multithreading API
2458 --disable-threads build without multithread safety
2459 --disable-nls do not use Native Language Support
2460 --disable-rpath do not hardcode runtime library paths
2461 --enable-efiemu build and
install the efiemu runtimes
2463 --enable-stack-protector
2464 enable the stack protector
2465 --enable-mm-debug include memory manager debugging
2466 --enable-cache-stats enable disk cache statistics collection
2467 --enable-boot-time enable boot
time statistics collection
2468 --enable-grub-emu-sdl build and
install the
`grub-emu' debugging utility
2469 with SDL support (default=guessed)
2470 --enable-grub-emu-pci build and install the `grub-emu
' debugging utility
2471 with PCI support (potentially dangerous)
2473 --enable-grub-mkfont build and install the `grub-mkfont' utility
2475 --enable-grub-themes build and
install GRUB themes
(default
=guessed
)
2476 --enable-grub-mount build and
install the
`grub-mount' utility
2478 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2479 --enable-liblzma enable liblzma integration (default=guessed)
2480 --enable-libzfs enable libzfs integration (default=guessed)
2481 --disable-werror do not use -Werror when building GRUB
2484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2486 --with-platform=PLATFORM
2487 select the host platform [[guessed]]
2488 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2489 --with-grubdir=DIR set the name of grub directory [[guessed]]
2490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2491 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2492 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2493 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2494 --without-libintl-prefix don't search for libintl in includedir and libdir
2495 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2496 --without-libpth-prefix don't search for libpth in includedir and libdir
2497 --without-included-regex
2498 don't compile regex; this is the default on systems
2499 with recent-enough versions of the GNU C Library
2500 (use with caution on other systems).
2502 Some influential environment variables:
2503 PKG_CONFIG path to pkg-config utility
2505 directories to add to pkg-config's search path
2507 path overriding pkg-config's built-in search path
2508 CC C compiler command
2509 CFLAGS C compiler flags
2510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2511 nonstandard directory <lib dir>
2512 LIBS libraries to pass to the linker, e.g. -l<library>
2513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2514 you have headers in a nonstandard directory <include dir>
2515 YACC The `Yet Another Compiler Compiler
' implementation to use.
2516 Defaults to the first program found out of: `bison -y', `byacc',
2518 YFLAGS The list of arguments that will be passed by default to $YACC.
2519 This script will default YFLAGS to the empty string to avoid a
2520 default value of `-d' given by some
make applications.
2522 CXX C
++ compiler
command
2523 CXXFLAGS C
++ compiler flags
2524 CCAS assembler compiler
command (defaults to CC
)
2525 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
2526 PYTHON the Python interpreter
2528 C compiler flags
for FREETYPE
, overriding pkg-config
2530 linker flags
for FREETYPE
, overriding pkg-config
2531 BUILD_FREETYPE_CFLAGS
2532 C compiler flags
for BUILD_FREETYPE
, overriding pkg-config
2534 linker flags
for BUILD_FREETYPE
, overriding pkg-config
2536 Use these variables to override the choices made by
`configure' or to help
2537 it to find libraries and programs with nonstandard names/locations.
2539 Report bugs to <bug-grub@gnu.org>.
2544 if test "$ac_init_help" = "recursive"; then
2545 # If there are subdirs, report their specific --help.
2546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2547 test -d "$ac_dir" ||
2548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2555 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2556 # A ".." for each directory in $ac_dir_suffix.
2557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2558 case $ac_top_builddir_sub in
2559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2563 ac_abs_top_builddir=$ac_pwd
2564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2565 # for backward compatibility:
2566 ac_top_builddir=$ac_top_build_prefix
2569 .) # We are building in place.
2571 ac_top_srcdir=$ac_top_builddir_sub
2572 ac_abs_top_srcdir=$ac_pwd ;;
2573 [\\/]* | ?:[\\/]* ) # Absolute name.
2574 ac_srcdir=$srcdir$ac_dir_suffix;
2575 ac_top_srcdir=$srcdir
2576 ac_abs_top_srcdir=$srcdir ;;
2578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2579 ac_top_srcdir=$ac_top_build_prefix$srcdir
2580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2584 cd "$ac_dir" || { ac_status=$?; continue; }
2585 # Check for guested configure.
2586 if test -f "$ac_srcdir/configure.gnu"; then
2588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2589 elif test -f "$ac_srcdir/configure"; then
2591 $SHELL "$ac_srcdir/configure" --help=recursive
2593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2595 cd "$ac_pwd" || { ac_status=$?; break; }
2599 test -n "$ac_init_help" && exit $ac_status
2600 if $ac_init_version; then
2603 generated by GNU Autoconf 2.69
2605 Copyright (C) 2012 Free Software Foundation, Inc.
2606 This configure script is free software; the Free Software Foundation
2607 gives unlimited permission to copy, distribute and modify it.
2612 ## ------------------------ ##
2613 ## Autoconf initialization. ##
2614 ## ------------------------ ##
2616 # ac_fn_c_try_compile LINENO
2617 # --------------------------
2618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_c_try_compile ()
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 rm -f conftest.$ac_objext
2623 if { { ac_try="$ac_compile"
2625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2626 *) ac_try_echo
=$ac_try;;
2628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_compile") 2>conftest.err
2632 if test -s conftest.err
; then
2633 grep -v '^ *+' conftest.err
>conftest.er1
2634 cat conftest.er1
>&5
2635 mv -f conftest.er1 conftest.err
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && {
2639 test -z "$ac_c_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest.
$ac_objext; then :
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.
$ac_ext >&5
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 as_fn_set_status
$ac_retval
2652 } # ac_fn_c_try_compile
2654 # ac_fn_c_try_link LINENO
2655 # -----------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded.
2659 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2660 rm -f conftest.
$ac_objext conftest
$ac_exeext
2661 if { { ac_try
="$ac_link"
2663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_link") 2>conftest.err
2670 if test -s conftest.err; then
2671 grep -v '^ *+' conftest.err >conftest.er1
2672 cat conftest.er1 >&5
2673 mv -f conftest.er1 conftest.err
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; } && {
2677 test -z "$ac_c_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest$ac_exeext && {
2680 test "$cross_compiling" = yes ||
2681 test -x conftest$ac_exeext
2685 $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2692 # interfere with the next link command; also delete a directory that is
2693 # left behind by Apple's compiler. We do this before executing the actions.
2694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696 as_fn_set_status $ac_retval
2698 } # ac_fn_c_try_link
2700 # ac_fn_c_try_cpp LINENO
2701 # ----------------------
2702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 if { { ac_try="$ac_cpp conftest.$ac_ext"
2708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2709 *) ac_try_echo
=$ac_try;;
2711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2715 if test -s conftest.err
; then
2716 grep -v '^ *+' conftest.err
>conftest.er1
2717 cat conftest.er1
>&5
2718 mv -f conftest.er1 conftest.err
2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721 test $ac_status = 0; } > conftest.i
&& {
2722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2727 $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.
$ac_ext >&5
2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733 as_fn_set_status
$ac_retval
2737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2738 # -------------------------------------------------------
2739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2740 # the include files in INCLUDES and setting the cache variable VAR
2742 ac_fn_c_check_header_mongrel
()
2744 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2745 if eval \
${$3+:} false
; then :
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \
${$3+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2753 $as_echo "$ac_res" >&6; }
2755 # Is the header compilable?
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2757 $as_echo_n "checking $2 usability... " >&6; }
2758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2763 if ac_fn_c_try_compile
"$LINENO"; then :
2764 ac_header_compiler
=yes
2766 ac_header_compiler
=no
2768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2770 $as_echo "$ac_header_compiler" >&6; }
2772 # Is the header present?
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2774 $as_echo_n "checking $2 presence... " >&6; }
2775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2779 if ac_fn_c_try_cpp
"$LINENO"; then :
2780 ac_header_preproc
=yes
2782 ac_header_preproc
=no
2784 rm -f conftest.err conftest.i conftest.
$ac_ext
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2786 $as_echo "$ac_header_preproc" >&6; }
2788 # So? What about this header?
2789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2807 ( $as_echo "## ------------------------------- ##
2808 ## Report this to bug-grub@gnu.org ##
2809 ## ------------------------------- ##"
2810 ) |
sed "s/^/$as_me: WARNING: /" >&2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2814 $as_echo_n "checking for $2... " >&6; }
2815 if eval \
${$3+:} false
; then :
2816 $as_echo_n "(cached) " >&6
2818 eval "$3=\$ac_header_compiler"
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2822 $as_echo "$ac_res" >&6; }
2824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2826 } # ac_fn_c_check_header_mongrel
2828 # ac_fn_c_try_run LINENO
2829 # ----------------------
2830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2831 # that executables *can* be run.
2834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2835 if { { ac_try
="$ac_link"
2837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_link") 2>&5
2844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2846 { { case "(($ac_try" in
2847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2848 *) ac_try_echo
=$ac_try;;
2850 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2851 $as_echo "$ac_try_echo"; } >&5
2852 (eval "$ac_try") 2>&5
2854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855 test $ac_status = 0; }; }; then :
2858 $as_echo "$as_me: program exited with status $ac_status" >&5
2859 $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2862 ac_retval
=$ac_status
2864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866 as_fn_set_status
$ac_retval
2870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2871 # -------------------------------------------------------
2872 # Tests whether HEADER exists and can be compiled using the include files in
2873 # INCLUDES, setting the cache variable VAR accordingly.
2874 ac_fn_c_check_header_compile
()
2876 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878 $as_echo_n "checking for $2... " >&6; }
2879 if eval \
${$3+:} false
; then :
2880 $as_echo_n "(cached) " >&6
2882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h. */
2887 if ac_fn_c_try_compile
"$LINENO"; then :
2892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2896 $as_echo "$ac_res" >&6; }
2897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2899 } # ac_fn_c_check_header_compile
2901 # ac_fn_cxx_try_compile LINENO
2902 # ----------------------------
2903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2904 ac_fn_cxx_try_compile
()
2906 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2907 rm -f conftest.
$ac_objext
2908 if { { ac_try
="$ac_compile"
2910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_compile") 2>conftest.err
2917 if test -s conftest.err; then
2918 grep -v '^ *+' conftest.err >conftest.er1
2919 cat conftest.er1 >&5
2920 mv -f conftest.er1 conftest.err
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; } && {
2924 test -z "$ac_cxx_werror_flag" ||
2925 test ! -s conftest.err
2926 } && test -s conftest.$ac_objext; then :
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2935 as_fn_set_status $ac_retval
2937 } # ac_fn_cxx_try_compile
2939 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2940 # --------------------------------------------
2941 # Tries to find the compile-time value of EXPR in a program that includes
2942 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2944 ac_fn_c_compute_int ()
2946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2947 if test "$cross_compiling" = yes; then
2948 # Depending upon the size, compute the lo and hi bounds.
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2955 static int test_array [1 - 2 * !(($2) >= 0)];
2957 return test_array [0];
2963 if ac_fn_c_try_compile "$LINENO"; then :
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2972 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2974 return test_array [0];
2980 if ac_fn_c_try_compile "$LINENO"; then :
2981 ac_hi=$ac_mid; break
2983 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2984 if test $ac_lo -le $ac_mid; then
2988 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2999 static int test_array [1 - 2 * !(($2) < 0)];
3001 return test_array [0];
3007 if ac_fn_c_try_compile "$LINENO"; then :
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3016 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3018 return test_array [0];
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025 ac_lo=$ac_mid; break
3027 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3028 if test $ac_mid -le $ac_hi; then
3032 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 # Binary search between lo and hi bounds.
3043 while test "x$ac_lo" != "x$ac_hi"; do
3044 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3051 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3053 return test_array [0];
3059 if ac_fn_c_try_compile "$LINENO"; then :
3062 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3074 static long int longval () { return $2; }
3075 static unsigned long int ulongval () { return $2; }
3082 FILE *f = fopen ("conftest.val", "w");
3087 long int i = longval ();
3090 fprintf (f, "%ld", i);
3094 unsigned long int i = ulongval ();
3097 fprintf (f, "%lu", i);
3099 /* Do not output a trailing newline, as this causes \r\n confusion
3100 on some platforms. */
3101 return ferror (f) || fclose (f) != 0;
3107 if ac_fn_c_try_run "$LINENO"; then :
3108 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3113 conftest.$ac_objext conftest.beam conftest.$ac_ext
3117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3118 as_fn_set_status $ac_retval
3120 } # ac_fn_c_compute_int
3122 # ac_fn_c_check_func LINENO FUNC VAR
3123 # ----------------------------------
3124 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3125 ac_fn_c_check_func ()
3127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3129 $as_echo_n "checking for $2... " >&6; }
3130 if eval \${$3+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3137 #define $2 innocuous_$2
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $2 (); below.
3141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3142 <limits.h> exists even on freestanding compilers. */
3145 # include <limits.h>
3147 # include <assert.h>
3152 /* Override any GCC internal prototype to avoid an error.
3153 Use char because int might match the return type of a GCC
3154 builtin and then its argument prototype would still apply. */
3159 /* The GNU C library defines this for functions which it implements
3160 to always fail with ENOSYS. Some functions are actually named
3161 something starting with __ and the normal name is an alias. */
3162 #if defined __stub_$2 || defined __stub___$2
3174 if ac_fn_c_try_link "$LINENO"; then :
3179 rm -f core conftest.err conftest.$ac_objext \
3180 conftest$ac_exeext conftest.$ac_ext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3184 $as_echo "$ac_res" >&6; }
3185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3187 } # ac_fn_c_check_func
3189 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3190 # ----------------------------------------------------
3191 # Tries to find if the field MEMBER exists in type AGGR, after including
3192 # INCLUDES, setting cache variable VAR accordingly.
3193 ac_fn_c_check_member ()
3195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3197 $as_echo_n "checking for $2.$3... " >&6; }
3198 if eval \${$4+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3214 if ac_fn_c_try_compile "$LINENO"; then :
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3224 if (sizeof ac_aggr.$3)
3230 if ac_fn_c_try_compile "$LINENO"; then :
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3241 $as_echo "$ac_res" >&6; }
3242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3244 } # ac_fn_c_check_member
3246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3247 # -------------------------------------------
3248 # Tests whether TYPE exists after having included INCLUDES, setting cache
3249 # variable VAR accordingly.
3250 ac_fn_c_check_type ()
3252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3254 $as_echo_n "checking for $2... " >&6; }
3255 if eval \${$3+:} false; then :
3256 $as_echo_n "(cached) " >&6
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3284 if ac_fn_c_try_compile "$LINENO"; then :
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3295 $as_echo "$ac_res" >&6; }
3296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3298 } # ac_fn_c_check_type
3300 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3301 # ---------------------------------------------
3302 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3304 ac_fn_c_check_decl ()
3306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3307 as_decl_name=`echo $2|
sed 's/ *(.*//'`
3308 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3310 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3311 if eval \${$3+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3320 #ifndef $as_decl_name
3322 (void) $as_decl_use;
3324 (void) $as_decl_name;
3332 if ac_fn_c_try_compile "$LINENO"; then :
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3341 $as_echo "$ac_res" >&6; }
3342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3344 } # ac_fn_c_check_decl
3345 cat >config.log <<_ACEOF
3346 This file contains any messages produced by compilers while
3347 running configure, to aid debugging if configure makes a mistake.
3349 It was created by GRUB $as_me 2.06, which was
3350 generated by GNU Autoconf 2.69. Invocation command line was
3362 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3363 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3364 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3365 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3366 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3368 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3369 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3371 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3372 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3373 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3374 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3375 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3376 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3377 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 $as_echo "PATH: $as_dir"
3402 # Keep a trace of the command line.
3403 # Strip out --no-create and --no-recursion so they do not pile up.
3404 # Strip out --silent because we don't want to record it for future runs.
3405 # Also quote any args containing shell meta-characters.
3406 # Make two passes to allow for proper duplicate-argument suppression.
3410 ac_must_keep_next=false
3416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3418 | -silent | --silent | --silen | --sile | --sil)
3421 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3426 as_fn_append ac_configure_args1 " '$ac_arg'"
3427 if test $ac_must_keep_next = true; then
3428 ac_must_keep_next=false # Got value, back to normal.
3431 *=* | --config-cache | -C | -disable-* | --disable-* \
3432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3434 | -with-* | --with-* | -without-* | --without-* | --x)
3435 case "$ac_configure_args0 " in
3436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3439 -* ) ac_must_keep_next=true ;;
3442 as_fn_append ac_configure_args " '$ac_arg'"
3447 { ac_configure_args0=; unset ac_configure_args0;}
3448 { ac_configure_args1=; unset ac_configure_args1;}
3450 # When interrupted or exit'd, cleanup temporary files, and complete
3451 # config.log. We remove comments because anyway the quotes in there
3452 # would cause problems or look ugly.
3453 # WARNING: Use '\'' to represent an apostrophe within the trap.
3454 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3455 trap 'exit_status=$?
3456 # Save into config.log some information that might help in debugging.
3460 $as_echo "## ---------------- ##
3461 ## Cache variables. ##
3462 ## ---------------- ##"
3464 # The following way of writing the cache mishandles newlines in values,
3466 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3467 eval ac_val=\$$ac_var
3471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3472 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3475 _ | IFS | as_nl) ;; #(
3476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3477 *) { eval $ac_var=; unset $ac_var;} ;;
3482 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3483 *${as_nl}ac_space=\ *)
3485 "s/'\''/'\''\\\\'\'''\''/g;
3486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3496 $as_echo "## ----------------- ##
3497 ## Output variables. ##
3498 ## ----------------- ##"
3500 for ac_var in $ac_subst_vars
3502 eval ac_val=\$$ac_var
3504 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3506 $as_echo "$ac_var='\''$ac_val'\''"
3510 if test -n "$ac_subst_files"; then
3511 $as_echo "## ------------------- ##
3512 ## File substitutions. ##
3513 ## ------------------- ##"
3515 for ac_var in $ac_subst_files
3517 eval ac_val=\$$ac_var
3519 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3521 $as_echo "$ac_var='\''$ac_val'\''"
3526 if test -s confdefs.h; then
3527 $as_echo "## ----------- ##
3534 test "$ac_signal" != 0 &&
3535 $as_echo "$as_me: caught signal $ac_signal"
3536 $as_echo "$as_me: exit $exit_status"
3538 rm -f core *.core core.conftest.* &&
3539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3542 for ac_signal in 1 2 13 15; do
3543 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3548 rm -f -r conftest* confdefs.h
3550 $as_echo "/* confdefs.h */" > confdefs.h
3552 # Predefined preprocessor variables.
3554 cat >>confdefs.h <<_ACEOF
3555 #define PACKAGE_NAME "$PACKAGE_NAME"
3558 cat >>confdefs.h <<_ACEOF
3559 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3562 cat >>confdefs.h <<_ACEOF
3563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3566 cat >>confdefs.h <<_ACEOF
3567 #define PACKAGE_STRING "$PACKAGE_STRING"
3570 cat >>confdefs.h <<_ACEOF
3571 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3574 cat >>confdefs.h <<_ACEOF
3575 #define PACKAGE_URL "$PACKAGE_URL"
3579 # Let the site file select an alternate cache file if it wants to.
3580 # Prefer an explicitly selected file to automatically selected ones.
3583 if test -n "$CONFIG_SITE"; then
3584 # We do not want a PATH search for config.site.
3585 case $CONFIG_SITE in #((
3586 -*) ac_site_file1=./$CONFIG_SITE;;
3587 */*) ac_site_file1=$CONFIG_SITE;;
3588 *) ac_site_file1=./$CONFIG_SITE;;
3590 elif test "x$prefix" != xNONE; then
3591 ac_site_file1=$prefix/share/config.site
3592 ac_site_file2=$prefix/etc/config.site
3594 ac_site_file1=$ac_default_prefix/share/config.site
3595 ac_site_file2=$ac_default_prefix/etc/config.site
3597 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3599 test "x$ac_site_file" = xNONE && continue
3600 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3602 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3603 sed 's/^/| /' "$ac_site_file" >&5
3605 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "failed to load site
script $ac_site_file
3608 See \
`config.log' for more details" "$LINENO" 5; }
3612 if test -r "$cache_file"; then
3613 # Some versions of bash will fail to source /dev/null (special files
3614 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3617 $as_echo "$as_me: loading cache $cache_file" >&6;}
3619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3620 *) . "./$cache_file";;
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3625 $as_echo "$as_me: creating cache $cache_file" >&6;}
3629 gt_needs="$gt_needs "
3630 as_fn_append ac_header_list " sys/types.h"
3631 as_fn_append ac_func_list " flockfile"
3632 as_fn_append ac_func_list " funlockfile"
3633 as_fn_append ac_header_list " features.h"
3634 as_fn_append ac_header_list " linewrap.h"
3635 as_fn_append ac_func_list " btowc"
3636 as_fn_append ac_header_list " unistd.h"
3637 as_fn_append ac_header_list " sys/param.h"
3638 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3639 as_fn_append ac_header_list " sys/socket.h"
3640 as_fn_append ac_func_list " fchdir"
3641 as_fn_append ac_header_list " dirent.h"
3642 as_fn_append ac_func_list " fcntl"
3643 as_fn_append ac_func_list " symlink"
3644 as_fn_append ac_func_list " mempcpy"
3645 as_fn_append ac_header_list " fnmatch.h"
3646 as_fn_append ac_func_list " fnmatch"
3647 as_fn_append ac_func_list " isblank"
3648 as_fn_append ac_func_list " iswctype"
3649 as_fn_append ac_func_list " mbsrtowcs"
3650 as_fn_append ac_func_list " wmemchr"
3651 as_fn_append ac_func_list " wmemcpy"
3652 as_fn_append ac_func_list " wmempcpy"
3653 as_fn_append ac_header_list " wctype.h"
3654 as_fn_append ac_header_list " sys/stat.h"
3655 as_fn_append ac_func_list " getdelim"
3656 as_fn_append ac_func_list " getdtablesize"
3657 gl_getopt_required=GNU
3658 as_fn_append ac_header_list " getopt.h"
3659 as_fn_append ac_header_list " sys/cdefs.h"
3660 as_fn_append ac_func_list " getprogname"
3661 as_fn_append ac_func_list " getexecname"
3662 as_fn_append ac_header_list " langinfo.h"
3663 as_fn_append ac_header_list " limits.h"
3664 as_fn_append ac_header_list " xlocale.h"
3665 as_fn_append ac_func_list " mbsinit"
3666 as_fn_append ac_func_list " mbrtowc"
3667 as_fn_append ac_header_list " wchar.h"
3668 as_fn_append ac_func_list " isascii"
3669 as_fn_append ac_header_list " sys/mman.h"
3670 as_fn_append ac_func_list " mprotect"
3671 as_fn_append ac_func_list " nl_langinfo"
3672 as_fn_append ac_func_list " lstat"
3673 as_fn_append ac_func_list " openat"
3674 as_fn_append ac_header_list " malloc.h"
3675 as_fn_append ac_func_list " sleep"
3676 as_fn_append ac_header_list " sys/time.h"
3677 as_fn_append ac_header_list " stdint.h"
3678 as_fn_append ac_func_list " strdup"
3679 as_fn_append ac_header_list " strings.h"
3680 as_fn_append ac_func_list " strndup"
3681 as_fn_append ac_header_list " sysexits.h"
3682 as_fn_append ac_func_list " pipe"
3683 as_fn_append ac_func_list " vasnprintf"
3684 as_fn_append ac_func_list " snprintf"
3685 as_fn_append ac_header_list " crtdefs.h"
3686 as_fn_append ac_func_list " wcrtomb"
3687 as_fn_append ac_func_list " iswcntrl"
3688 as_fn_append ac_func_list " wcwidth"
3689 # Check that the precious variables saved in the cache have kept the same
3691 ac_cache_corrupted=false
3692 for ac_var in $ac_precious_vars; do
3693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3694 eval ac_new_set=\$ac_env_${ac_var}_set
3695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3696 eval ac_new_val=\$ac_env_${ac_var}_value
3697 case $ac_old_set,$ac_new_set in
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3700 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3701 ac_cache_corrupted=: ;;
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3704 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3705 ac_cache_corrupted=: ;;
3708 if test "x$ac_old_val" != "x$ac_new_val"; then
3709 # differences in whitespace do not lead to failure.
3710 ac_old_val_w=`echo x
$ac_old_val`
3711 ac_new_val_w=`echo x
$ac_new_val`
3712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3715 ac_cache_corrupted=:
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3719 eval $ac_var=\$ac_old_val
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3722 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3724 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3727 # Pass precious variables to config.status.
3728 if test "$ac_new_set" = set; then
3730 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3731 *) ac_arg=$ac_var=$ac_new_val ;;
3733 case " $ac_configure_args " in
3734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3735 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3739 if $ac_cache_corrupted; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3744 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3746 ## -------------------- ##
3747 ## Main body of script. ##
3748 ## -------------------- ##
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 for ac_dir in build-aux "$srcdir"/build-aux; do
3760 if test -f "$ac_dir/install-sh"; then
3762 ac_install_sh="$ac_aux_dir/install-sh -c"
3764 elif test -f "$ac_dir/install.sh"; then
3766 ac_install_sh="$ac_aux_dir/install.sh -c"
3768 elif test -f "$ac_dir/shtool"; then
3770 ac_install_sh="$ac_aux_dir/shtool install -c"
3774 if test -z "$ac_aux_dir"; then
3775 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3778 # These three variables are undocumented and unsupported,
3779 # and are intended to be withdrawn in a future Autoconf release.
3780 # They can cause serious problems if a builder's source tree is in a directory
3781 # whose full name contains unusual characters.
3782 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3783 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3784 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3788 # We don't want -g -O2 by default in CFLAGS
3791 # Checks for build, host and target systems.
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3797 $as_echo_n "checking build system type... " >&6; }
3798 if ${ac_cv_build+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 ac_build_alias=$build_alias
3802 test "x$ac_build_alias" = x &&
3803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3804 test "x$ac_build_alias" = x &&
3805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3811 $as_echo "$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3817 ac_save_IFS=$IFS; IFS='-'
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3827 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3831 $as_echo_n "checking host system type... " >&6; }
3832 if ${ac_cv_host+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3844 $as_echo "$ac_cv_host" >&6; }
3847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3850 ac_save_IFS=$IFS; IFS='-'
3856 # Remember, the first character of IFS is used to create $*,
3857 # except with old shells:
3860 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3863 save_program_prefix="${program_prefix}"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3865 $as_echo_n "checking target system type... " >&6; }
3866 if ${ac_cv_target+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 if test "x$target_alias" = x; then
3870 ac_cv_target=$ac_cv_host
3872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3878 $as_echo "$ac_cv_target" >&6; }
3879 case $ac_cv_target in
3881 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3883 target=$ac_cv_target
3884 ac_save_IFS=$IFS; IFS='-'
3890 # Remember, the first character of IFS is used to create $*,
3891 # except with old shells:
3894 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3897 # The aliases save the names the user supplied, while $host etc.
3898 # will get canonicalized.
3899 test -n "$target_alias" &&
3900 test "$program_prefix$program_suffix$program_transform_name" = \
3902 program_prefix=${target_alias}-
3903 program_prefix="${save_program_prefix}"
3905 am__api_version='1.15'
3907 # Find a good install program. We prefer a C program (faster),
3908 # so one script is as good as another. But avoid the broken or
3909 # incompatible versions:
3910 # SysV /etc/install, /usr/sbin/install
3911 # SunOS /usr/etc/install
3912 # IRIX /sbin/install
3914 # AmigaOS /C/install, which installs bootblocks on floppy discs
3915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3918 # OS/2's system install, which has a completely different semantic
3919 # ./install, which can be erroneously created by make from ./install.sh.
3920 # Reject install programs that cannot install multiple files.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3923 if test -z "$INSTALL"; then
3924 if ${ac_cv_path_install+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 # Account for people who put trailing slashes in PATH elements.
3933 case $as_dir/ in #((
3934 ./ | .// | /[cC]/* | \
3935 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3936 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3939 # OSF1 and SCO ODT 3.0 have their own names for install.
3940 # Don't use installbsd from OSF since it installs stuff as root
3942 for ac_prog in ginstall scoinst install; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3945 if test $ac_prog = install &&
3946 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # AIX install. It has an incompatible calling convention.
3949 elif test $ac_prog = install &&
3950 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3951 # program-specific install script used by HP pwplus--don't use.
3954 rm -rf conftest.one conftest.two conftest.dir
3955 echo one > conftest.one
3956 echo two > conftest.two
3958 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3959 test -s conftest.one && test -s conftest.two &&
3960 test -s conftest.dir/conftest.one &&
3961 test -s conftest.dir/conftest.two
3963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3976 rm -rf conftest.one conftest.two conftest.dir
3979 if test "${ac_cv_path_install+set}" = set; then
3980 INSTALL=$ac_cv_path_install
3982 # As a last resort, use the slow shell script. Don't cache a
3983 # value for INSTALL within a source directory, because that will
3984 # break other packages using the cache if that directory is
3985 # removed, or if the value is a relative name.
3986 INSTALL=$ac_install_sh
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3990 $as_echo "$INSTALL" >&6; }
3992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3993 # It thinks the first close brace ends the variable substitution.
3994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4001 $as_echo_n "checking whether build environment is sane... " >&6; }
4002 # Reject unsafe characters in $srcdir or the absolute working directory
4003 # name. Accept space and tab only in the latter.
4007 *[\\\"\#\$\&\'\`$am_lf]*)
4008 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4011 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4012 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4015 # Do 'set' in a subshell so we don't clobber the current shell's
4016 # arguments. Must try -L first in case configure is actually a
4017 # symlink; some systems play weird games with the mod time of symlinks
4018 # (eg FreeBSD returns the mod time of the symlink's containing
4022 for am_try
in 1 2; do
4023 echo "timestamp, slept: $am_has_slept" > conftest.
file
4024 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4025 if test "$*" = "X"; then
4027 set X
`ls -t "$srcdir/configure" conftest.file`
4029 if test "$*" != "X $srcdir/configure conftest.file" \
4030 && test "$*" != "X conftest.file $srcdir/configure"; then
4032 # If neither matched, then we have a broken ls. This can happen
4033 # if, for instance, CONFIG_SHELL is bash and it inherits a
4034 # broken ls alias from the environment. This has actually
4035 # happened. Such a system could not be considered "sane".
4036 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4037 alias in your environment" "$LINENO" 5
4039 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4046 test "$2" = conftest.
file
4052 as_fn_error $?
"newly created file is older than distributed files!
4053 Check your system clock" "$LINENO" 5
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056 $as_echo "yes" >&6; }
4057 # If we didn't sleep, we still need to ensure time stamps of config.status and
4058 # generated files are strictly newer.
4060 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4067 test "$program_prefix" != NONE
&&
4068 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4069 # Use a double $ so make ignores it.
4070 test "$program_suffix" != NONE
&&
4071 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4072 # Double any \ or $.
4073 # By default was `s,x,x', remove it if useless.
4074 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4075 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4077 # Expand $ac_aux_dir to an absolute path.
4078 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4080 if test x
"${MISSING+set}" != xset
; then
4083 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4085 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4088 # Use eval to expand $SHELL
4089 if eval "$MISSING --is-lightweight"; then
4090 am_missing_run
="$MISSING "
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4094 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4097 if test x
"${install_sh+set}" != xset
; then
4100 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4102 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4106 # Installed binaries are usually stripped using 'strip' when the user
4107 # run "make install-strip". However 'strip' might not be the right
4108 # tool to use in cross-compilation environments, therefore Automake
4109 # will honor the 'STRIP' environment variable to overrule this program.
4110 if test "$cross_compiling" != no
; then
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_STRIP+:} false
; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$STRIP"; then
4120 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir
=.
4127 for ac_exec_ext
in '' $ac_executable_extensions; do
4128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 STRIP
=$ac_cv_prog_STRIP
4140 if test -n "$STRIP"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4142 $as_echo "$STRIP" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4150 if test -z "$ac_cv_prog_STRIP"; then
4152 # Extract the first word of "strip", so it can be a program name with args.
4153 set dummy strip
; ac_word
=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if test -n "$ac_ct_STRIP"; then
4160 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_exec_ext
in '' $ac_executable_extensions; do
4168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_ac_ct_STRIP
="strip"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4180 if test -n "$ac_ct_STRIP"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4182 $as_echo "$ac_ct_STRIP" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4188 if test "x$ac_ct_STRIP" = x
; then
4191 case $cross_compiling:$ac_tool_warned in
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195 ac_tool_warned
=yes ;;
4200 STRIP
="$ac_cv_prog_STRIP"
4204 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4207 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4208 if test -z "$MKDIR_P"; then
4209 if ${ac_cv_path_mkdir+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_prog
in mkdir gmkdir
; do
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4220 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4221 'mkdir (GNU coreutils) '* | \
4222 'mkdir (coreutils) '* | \
4223 'mkdir (fileutils) '4.1*)
4224 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4234 test -d .
/--version && rmdir .
/--version
4235 if test "${ac_cv_path_mkdir+set}" = set; then
4236 MKDIR_P
="$ac_cv_path_mkdir -p"
4238 # As a last resort, use the slow shell script. Don't cache a
4239 # value for MKDIR_P within a source directory, because that will
4240 # break other packages using the cache if that directory is
4241 # removed, or if the value is a relative name.
4242 MKDIR_P
="$ac_install_sh -d"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4246 $as_echo "$MKDIR_P" >&6; }
4248 for ac_prog
in gawk mawk nawk
awk
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy
$ac_prog; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_AWK+:} false
; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$AWK"; then
4258 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_AWK
="$ac_prog"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$AWK"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4280 $as_echo "$AWK" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4287 test -n "$AWK" && break
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4291 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4293 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4294 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4295 $as_echo_n "(cached) " >&6
4297 cat >conftest.
make <<\_ACEOF
4300 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4302 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4303 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4305 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4307 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4311 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 $as_echo "yes" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 SET_MAKE
="MAKE=${MAKE-make}"
4321 rm -rf .tst
2>/dev
/null
4322 mkdir .tst
2>/dev
/null
4323 if test -d .tst
; then
4328 rmdir .tst
2>/dev
/null
4330 # Check whether --enable-silent-rules was given.
4331 if test "${enable_silent_rules+set}" = set; then :
4332 enableval
=$enable_silent_rules;
4335 case $enable_silent_rules in # (((
4336 yes) AM_DEFAULT_VERBOSITY
=0;;
4337 no
) AM_DEFAULT_VERBOSITY
=1;;
4338 *) AM_DEFAULT_VERBOSITY
=1;;
4340 am_make
=${MAKE-make}
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4342 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4343 if ${am_cv_make_support_nested_variables+:} false
; then :
4344 $as_echo_n "(cached) " >&6
4346 if $as_echo 'TRUE=$(BAR$(V))
4352 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4353 am_cv_make_support_nested_variables
=yes
4355 am_cv_make_support_nested_variables
=no
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4359 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4360 if test $am_cv_make_support_nested_variables = yes; then
4362 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4364 AM_V
=$AM_DEFAULT_VERBOSITY
4365 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4369 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4370 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4371 # is not polluted with repeated "-I."
4372 am__isrc
=' -I$(srcdir)'
4373 # test to see if srcdir already configured
4374 if test -f $srcdir/config.status
; then
4375 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4379 # test whether we have cygpath
4380 if test -z "$CYGPATH_W"; then
4381 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4382 CYGPATH_W
='cygpath -w'
4389 # Define the identity of the package.
4394 cat >>confdefs.h
<<_ACEOF
4395 #define PACKAGE "$PACKAGE"
4399 cat >>confdefs.h
<<_ACEOF
4400 #define VERSION "$VERSION"
4403 # Some tools Automake needs.
4405 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4408 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4411 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4414 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4417 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4419 # For better backward compatibility. To be removed once Automake 1.9.x
4420 # dies out for good. For more background, see:
4421 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4422 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4423 mkdir_p
='$(MKDIR_P)'
4425 # We need awk for the "check" target (and possibly the TAP driver). The
4426 # system "awk" is bad on some platforms.
4427 # Always define AMTAR for backward compatibility. Yes, it's still used
4428 # in the wild :-( We should find a proper way to deprecate it ...
4432 # We'll loop over all known methods to create a tar archive until one works.
4433 _am_tools
='gnutar pax cpio none'
4435 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4442 # POSIX will say in a future version that running "rm -f" with no argument
4443 # is OK; and we want to be able to make that assumption in our Makefile
4444 # recipes. So use an aggressive probe to check that the usage we want is
4445 # actually supported "in the wild" to an acceptable degree.
4446 # See automake bug#10828.
4447 # To make any issue more visible, cause the running configure to be aborted
4448 # by default if the 'rm' program in use doesn't match our expectations; the
4449 # user can still override this though.
4450 if rm -f && rm -fr && rm -rf; then : OK
; else
4454 Your 'rm' program seems unable to run without file operands specified
4455 on the command line, even when the '-f' option is present. This is contrary
4456 to the behaviour of most rm programs out there, and not conforming with
4457 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4459 Please tell bug-automake@gnu.org about your system, including the value
4460 of your $PATH and any error possibly output before this message. This
4461 can help us improve future automake versions.
4464 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4465 echo 'Configuration will proceed anyway, since you have set the' >&2
4466 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4470 Aborting the configuration process, to ensure you take notice of the issue.
4472 You can download and install GNU coreutils to get an 'rm' implementation
4473 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4475 If you want to complete the configuration process using your problematic
4476 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4477 to "yes", and re-run configure.
4480 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4486 ac_config_headers
="$ac_config_headers config-util.h"
4489 # Explicitly check for pkg-config early on, since otherwise conditional
4490 # calls are problematic.
4498 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4499 if test -n "$ac_tool_prefix"; then
4500 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4501 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4505 $as_echo_n "(cached) " >&6
4509 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir
=.
4517 for ac_exec_ext
in '' $ac_executable_extensions; do
4518 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4531 if test -n "$PKG_CONFIG"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4533 $as_echo "$PKG_CONFIG" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4541 if test -z "$ac_cv_path_PKG_CONFIG"; then
4542 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4543 # Extract the first word of "pkg-config", so it can be a program name with args.
4544 set dummy pkg-config
; ac_word
=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
4548 $as_echo_n "(cached) " >&6
4550 case $ac_pt_PKG_CONFIG in
4552 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir
=.
4560 for ac_exec_ext
in '' $ac_executable_extensions; do
4561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4574 if test -n "$ac_pt_PKG_CONFIG"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4576 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4582 if test "x$ac_pt_PKG_CONFIG" = x
; then
4585 case $cross_compiling:$ac_tool_warned in
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589 ac_tool_warned
=yes ;;
4591 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4594 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4598 if test -n "$PKG_CONFIG"; then
4599 _pkg_min_version
=0.9.0
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4601 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4602 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4604 $as_echo "yes" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4612 # Program name transformations
4614 grub_bios_setup
=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4616 grub_editenv
=`$as_echo grub-editenv | sed "$program_transform_name"`
4618 grub_install
=`$as_echo grub-install | sed "$program_transform_name"`
4620 grub_mkconfig
=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4622 grub_mkfont
=`$as_echo grub-mkfont | sed "$program_transform_name"`
4624 grub_mkimage
=`$as_echo grub-mkimage | sed "$program_transform_name"`
4626 grub_glue_efi
=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4628 grub_mklayout
=`$as_echo grub-mklayout | sed "$program_transform_name"`
4630 grub_mkpasswd_pbkdf2
=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4632 grub_mkrelpath
=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4634 grub_mkrescue
=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4636 grub_probe
=`$as_echo grub-probe | sed "$program_transform_name"`
4638 grub_reboot
=`$as_echo grub-reboot | sed "$program_transform_name"`
4640 grub_script_check
=`$as_echo grub-script-check | sed "$program_transform_name"`
4642 grub_set_default
=`$as_echo grub-set-default | sed "$program_transform_name"`
4644 grub_sparc64_setup
=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4646 grub_render_label
=`$as_echo grub-render-label | sed "$program_transform_name"`
4648 grub_file
=`$as_echo grub-file | sed "$program_transform_name"`
4651 # Optimization flag. Allow user to override.
4652 if test "x$TARGET_CFLAGS" = x
; then
4656 # Enable support for "restrict" keyword and other
4657 # features from gnu99 C language standard.
4658 BUILD_CFLAGS
="-std=gnu99 $BUILD_CFLAGS"
4659 HOST_CFLAGS
="-std=gnu99 $HOST_CFLAGS"
4660 TARGET_CFLAGS
="-std=gnu99 $TARGET_CFLAGS"
4662 # Default HOST_CPPFLAGS
4663 HOST_CPPFLAGS
="$HOST_CPPFLAGS -Wall -W"
4664 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4666 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -Wall -W"
4668 case "$target_cpu" in
4669 i
[3456]86) target_cpu
=i386
;;
4670 amd64
) target_cpu
=x86_64
;;
4671 sparc
) target_cpu
=sparc64
;;
4674 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1"
4678 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1"
4694 # Specify the platform (such as firmware).
4696 # Check whether --with-platform was given.
4697 if test "${with_platform+set}" = set; then :
4698 withval
=$with_platform;
4702 # Guess the platform if not specified.
4703 if test "x$with_platform" = x
; then
4704 case "$target_cpu"-"$target_vendor" in
4705 i386-apple
) platform
=efi
;;
4706 i386-
*) platform
=pc
;;
4707 x86_64-apple
) platform
=efi
;;
4708 x86_64-
*) platform
=pc
;;
4709 powerpc-
*) platform
=ieee1275
;;
4710 powerpc64-
*) platform
=ieee1275
;;
4711 powerpc64le-
*) platform
=ieee1275
;;
4712 sparc64-
*) platform
=ieee1275
;;
4713 mipsel-
*) platform
=loongson
;;
4714 mips-
*) platform
=arc
;;
4715 ia64-
*) platform
=efi
;;
4716 arm-
*) platform
=uboot
;;
4717 arm64-
*) platform
=efi
;;
4718 riscv32-
*) platform
=efi
;;
4719 riscv64-
*) platform
=efi
;;
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&5
4722 $as_echo "$as_me: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&2;}
4727 platform
="$with_platform"
4730 case "$target_cpu"-"$platform" in
4735 x86_64-
*) target_cpu
=i386
;;
4736 powerpc64-ieee1275
) target_cpu
=powerpc
;;
4737 powerpc64le-ieee1275
) target_cpu
=powerpc
;;
4740 # Check if the platform is supported, make final adjustments.
4741 case "$target_cpu"-"$platform" in
4750 i386-linuxbios
) platform
=coreboot
;;
4753 powerpc-ieee1275
) ;;
4754 sparc64-ieee1275
) ;;
4757 mips-qemu-mips
) platform
=qemu_mips
;;
4760 mipsel-qemu_mips
) ;;
4761 mipsel-qemu-mips
) platform
=qemu_mips
;;
4762 mipsel-yeeloong
) platform
=loongson
;;
4763 mipsel-fuloong
) platform
=loongson
;;
4773 *) as_fn_error $?
"platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
4776 if test x
$platform != xemu
; then
4777 case "$target_cpu" in
4778 i386 | powerpc
) target_m32
=1 ;;
4779 x86_64 | sparc64
) target_m64
=1 ;;
4783 if test x
"$target_cpu-$platform" = xsparc64-emu
; then
4787 case "$target_os" in
4788 windows
* | mingw32
*) target_os
=cygwin
;;
4791 # This normalizes the names, and creates a new variable ("host_kernel")
4792 # while at it, since the mapping is not always 1:1 (e.g. different OSes
4793 # using the same kernel type).
4795 gnu
*) host_kernel
=hurd
;;
4796 linux
*) host_kernel
=linux
;;
4797 freebsd
* | kfreebsd
*-gnu) host_kernel
=kfreebsd
;;
4798 netbsd
*) host_kernel
=netbsd
;;
4799 solaris
*) host_kernel
=illumos
;;
4800 darwin
*) host_kernel
=xnu
;;
4801 cygwin | windows
* | mingw32
*) host_kernel
=windows
;;
4805 cygwin
) have_exec
=y
;;
4806 windows
* | mingw32
*) have_exec
=n
;;
4807 aros
*) have_exec
=n
;;
4812 coreboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4813 multiboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4814 efi
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
4815 xen
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
4816 xen_pvh
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_XEN_PVH=1" ;;
4817 ieee1275
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
4818 uboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
4819 qemu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4820 pc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4821 emu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
4822 loongson
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4823 qemu_mips
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
4824 arc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
4826 if test x
${target_cpu} = xmipsel
; then
4827 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4829 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4832 case "${target_cpu}-$platform" in
4834 TARGET_LINK_ADDR
=0x88200000
4835 TARGET_DECOMPRESSOR_LINK_ADDR
=0x88100000
4838 TARGET_LINK_ADDR
=0x80700000
4839 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80600000
4841 mips
*-qemu_mips | mips
*-loongson)
4842 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80100000
4849 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4858 # Define default variables
4862 # Check whether --with-bootdir was given.
4863 if test "${with_bootdir+set}" = set; then :
4864 withval
=$with_bootdir; have_with_bootdir
=y
4869 if test x
$have_with_bootdir = xy
; then
4870 bootdirname
="$with_bootdir"
4874 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4876 *) bootdirname
='boot' ;;
4882 cat >>confdefs.h
<<_ACEOF
4883 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4888 # Check whether --with-grubdir was given.
4889 if test "${with_grubdir+set}" = set; then :
4890 withval
=$with_grubdir; grubdirname
="$with_grubdir"
4892 grubdirname
="$PACKAGE"
4898 cat >>confdefs.h
<<_ACEOF
4899 #define GRUB_DIR_NAME "$grubdirname"
4904 # Checks for build programs.
4907 # Although cmp is listed in the GNU Coding Standards as a command which
4908 # can used directly, OpenBSD lacks cmp in the default installation.
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy
$ac_prog; ac_word
=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_CMP+:} false
; then :
4916 $as_echo_n "(cached) " >&6
4918 if test -n "$CMP"; then
4919 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
4921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir
=.
4926 for ac_exec_ext
in '' $ac_executable_extensions; do
4927 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_CMP
="$ac_prog"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 if test -n "$CMP"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4941 $as_echo "$CMP" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4948 test -n "$CMP" && break
4951 if test "x$CMP" = x
; then
4952 as_fn_error $?
"cmp is not found" "$LINENO" 5
4955 for ac_prog
in bison
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy
$ac_prog; ac_word
=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_YACC+:} false
; then :
4962 $as_echo_n "(cached) " >&6
4964 if test -n "$YACC"; then
4965 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir
=.
4972 for ac_exec_ext
in '' $ac_executable_extensions; do
4973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_YACC
="$ac_prog"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 YACC
=$ac_cv_prog_YACC
4985 if test -n "$YACC"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4987 $as_echo "$YACC" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 test -n "$YACC" && break
4997 if test "x$YACC" = x
; then
4998 as_fn_error $?
"bison is not found" "$LINENO" 5
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_RANLIB+:} false
; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5032 $as_echo "$RANLIB" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB
=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib
; ac_word
=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5072 $as_echo "$ac_ct_RANLIB" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5078 if test "x$ac_ct_RANLIB" = x
; then
5081 case $cross_compiling:$ac_tool_warned in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 for ac_prog
in gawk mawk nawk
awk
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy
$ac_prog; ac_word
=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_AWK+:} false
; then :
5101 $as_echo_n "(cached) " >&6
5103 if test -n "$AWK"; then
5104 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_AWK
="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 if test -n "$AWK"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5126 $as_echo "$AWK" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$AWK" && break
5136 DEPDIR
="${am__leading_dot}deps"
5138 ac_config_commands
="$ac_config_commands depfiles"
5141 am_make
=${MAKE-make}
5142 cat > confinc
<< 'END'
5144 @
echo this is the am__doit target
5147 # If we don't find an include directive, just comment out the code.
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5149 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5153 # First try GNU make style include.
5154 echo "include confinc" > confmf
5155 # Ignore all kinds of additional output from 'make'.
5156 case `$am_make -s -f confmf 2> /dev/null` in #(
5157 *the\ am__doit\ target
*)
5163 # Now try BSD make style include.
5164 if test "$am__include" = "#"; then
5165 echo '.include "confinc"' > confmf
5166 case `$am_make -s -f confmf 2> /dev/null` in #(
5167 *the\ am__doit\ target
*)
5168 am__include
=.include
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5177 $as_echo "$_am_result" >&6; }
5178 rm -f confinc confmf
5180 # Check whether --enable-dependency-tracking was given.
5181 if test "${enable_dependency_tracking+set}" = set; then :
5182 enableval
=$enable_dependency_tracking;
5185 if test "x$enable_dependency_tracking" != xno
; then
5186 am_depcomp
="$ac_aux_dir/depcomp"
5190 if test "x$enable_dependency_tracking" != xno; then
5200 ac_cpp
='$CPP $CPPFLAGS'
5201 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5204 if test -n "$ac_tool_prefix"; then
5205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5206 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_CC+:} false
; then :
5210 $as_echo_n "(cached) " >&6
5212 if test -n "$CC"; then
5213 ac_cv_prog_CC
="$CC" # Let the user override the test.
5215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir
=.
5220 for ac_exec_ext
in '' $ac_executable_extensions; do
5221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 if test -n "$CC"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5235 $as_echo "$CC" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5243 if test -z "$ac_cv_prog_CC"; then
5245 # Extract the first word of "gcc", so it can be a program name with args.
5246 set dummy gcc
; ac_word
=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -n "$ac_ct_CC"; then
5253 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir
=.
5260 for ac_exec_ext
in '' $ac_executable_extensions; do
5261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_CC
="gcc"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5273 if test -n "$ac_ct_CC"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5275 $as_echo "$ac_ct_CC" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5281 if test "x$ac_ct_CC" = x
; then
5284 case $cross_compiling:$ac_tool_warned in
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288 ac_tool_warned
=yes ;;
5296 if test -z "$CC"; then
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5299 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_CC+:} false
; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$CC"; then
5306 ac_cv_prog_CC
="$CC" # Let the user override the test.
5308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir
=.
5313 for ac_exec_ext
in '' $ac_executable_extensions; do
5314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 if test -n "$CC"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5328 $as_echo "$CC" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5337 if test -z "$CC"; then
5338 # Extract the first word of "cc", so it can be a program name with args.
5339 set dummy cc
; ac_word
=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_CC+:} false
; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$CC"; then
5346 ac_cv_prog_CC
="$CC" # Let the user override the test.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5357 ac_prog_rejected
=yes
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 if test $ac_prog_rejected = yes; then
5369 # We found a bogon in the path, so make sure we never use it.
5370 set dummy
$ac_cv_prog_CC
5372 if test $# != 0; then
5373 # We chose a different compiler from the bogus one.
5374 # However, it has the same basename, so the bogon will be chosen
5375 # first if we set CC to just the basename; use the full file name.
5377 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5383 if test -n "$CC"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5385 $as_echo "$CC" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$CC"; then
5394 if test -n "$ac_tool_prefix"; then
5395 for ac_prog
in cl.exe
5397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5398 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_CC+:} false
; then :
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$CC"; then
5405 ac_cv_prog_CC
="$CC" # Let the user override the test.
5407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir
=.
5412 for ac_exec_ext
in '' $ac_executable_extensions; do
5413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 if test -n "$CC"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5427 $as_echo "$CC" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5434 test -n "$CC" && break
5437 if test -z "$CC"; then
5439 for ac_prog
in cl.exe
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy
$ac_prog; ac_word
=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5446 $as_echo_n "(cached) " >&6
5448 if test -n "$ac_ct_CC"; then
5449 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir
=.
5456 for ac_exec_ext
in '' $ac_executable_extensions; do
5457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_ac_ct_CC
="$ac_prog"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5469 if test -n "$ac_ct_CC"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5471 $as_echo "$ac_ct_CC" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 test -n "$ac_ct_CC" && break
5481 if test "x$ac_ct_CC" = x
; then
5484 case $cross_compiling:$ac_tool_warned in
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned
=yes ;;
5497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5499 as_fn_error $?
"no acceptable C compiler found in \$PATH
5500 See \`config.log' for more details" "$LINENO" 5; }
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5506 for ac_option
in --version -v -V -qversion; do
5507 { { ac_try
="$ac_compiler $ac_option >&5"
5509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5513 $as_echo "$ac_try_echo"; } >&5
5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5516 if test -s conftest.err; then
5518 ... rest of stderr output deleted ...
5519 10q' conftest.err >conftest.er1
5520 cat conftest.er1 >&5
5522 rm -f conftest.er1 conftest.err
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5538 ac_clean_files_save=$ac_clean_files
5539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5540 # Try to create an executable without -o first, disregard a.out.
5541 # It will help us diagnose broken compilers, and finding out an intuition
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5544 $as_echo_n "checking whether the C compiler works... " >&6; }
5545 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5547 # The possible output files:
5548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5551 for ac_file in $ac_files
5554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5560 if { { ac_try="$ac_link_default"
5562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5563 *) ac_try_echo
=$ac_try;;
5565 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5566 $as_echo "$ac_try_echo"; } >&5
5567 (eval "$ac_link_default") 2>&5
5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5570 test $ac_status = 0; }; then :
5571 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5572 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5573 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5574 # so that the user can short-circuit this test for compilers unknown to
5576 for ac_file
in $ac_files ''
5578 test -f "$ac_file" ||
continue
5580 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5583 # We found the default executable, but exeext='' is most
5587 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5589 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5591 # We set ac_cv_exeext here because the later test for it is not
5592 # safe: cross compilers may not add the suffix if given an `-o'
5593 # argument, so we may need to know it at that point already.
5594 # Even if this section looks crufty: it has the advantage of
5601 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5606 if test -z "$ac_file"; then :
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 $as_echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.
$ac_ext >&5
5612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5614 as_fn_error
77 "C compiler cannot create executables
5615 See \`config.log' for more details" "$LINENO" 5; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5621 $as_echo_n "checking for C compiler default output file name... " >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5623 $as_echo "$ac_file" >&6; }
5624 ac_exeext
=$ac_cv_exeext
5626 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5627 ac_clean_files
=$ac_clean_files_save
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5629 $as_echo_n "checking for suffix of executables... " >&6; }
5630 if { { ac_try
="$ac_link"
5632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_link") 2>&5
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; }; then :
5641 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5642 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5643 # work properly (i.e., refer to `conftest.exe'), while it won't with
5645 for ac_file
in conftest.exe conftest conftest.
*; do
5646 test -f "$ac_file" ||
continue
5648 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5649 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5657 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
5658 See \`config.log' for more details" "$LINENO" 5; }
5660 rm -f conftest conftest
$ac_cv_exeext
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5662 $as_echo "$ac_cv_exeext" >&6; }
5664 rm -f conftest.
$ac_ext
5665 EXEEXT
=$ac_cv_exeext
5667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5673 FILE *f = fopen ("conftest.out", "w");
5674 return ferror (f) || fclose (f) != 0;
5680 ac_clean_files
="$ac_clean_files conftest.out"
5681 # Check that the compiler produces executables we can run. If not, either
5682 # the compiler is broken, or we cross compile.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5684 $as_echo_n "checking whether we are cross compiling... " >&6; }
5685 if test "$cross_compiling" != yes; then
5686 { { ac_try
="$ac_link"
5688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692 $as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_link") 2>&5
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; }
5697 if { ac_try='./conftest$ac_cv_exeext'
5698 { { case "(($ac_try" in
5699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5700 *) ac_try_echo
=$ac_try;;
5702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5703 $as_echo "$ac_try_echo"; } >&5
5704 (eval "$ac_try") 2>&5
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }; }; then
5710 if test "$cross_compiling" = maybe
; then
5713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5715 as_fn_error $?
"cannot run C compiled programs.
5716 If you meant to cross compile, use \`--host'.
5717 See \`config.log' for more details" "$LINENO" 5; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5722 $as_echo "$cross_compiling" >&6; }
5724 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5725 ac_clean_files
=$ac_clean_files_save
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5727 $as_echo_n "checking for suffix of object files... " >&6; }
5728 if ${ac_cv_objext+:} false
; then :
5729 $as_echo_n "(cached) " >&6
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5742 rm -f conftest.o conftest.obj
5743 if { { ac_try
="$ac_compile"
5745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5749 $as_echo "$ac_try_echo"; } >&5
5750 (eval "$ac_compile") 2>&5
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; }; then :
5754 for ac_file in conftest.o conftest.obj conftest.*; do
5755 test -f "$ac_file" || continue;
5757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5763 $as_echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5768 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5769 See \
`config.log' for more details" "$LINENO" 5; }
5771 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5774 $as_echo "$ac_cv_objext" >&6; }
5775 OBJEXT=$ac_cv_objext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5778 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5779 if ${ac_cv_c_compiler_gnu+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5796 if ac_fn_c_try_compile "$LINENO"; then :
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5806 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5807 if test $ac_compiler_gnu = yes; then
5812 ac_test_CFLAGS=${CFLAGS+set}
5813 ac_save_CFLAGS=$CFLAGS
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5815 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5816 if ${ac_cv_prog_cc_g+:} false; then :
5817 $as_echo_n "(cached) " >&6
5819 ac_save_c_werror_flag=$ac_c_werror_flag
5820 ac_c_werror_flag=yes
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5834 if ac_fn_c_try_compile "$LINENO"; then :
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5849 if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_c_werror_flag=$ac_save_c_werror_flag
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5865 if ac_fn_c_try_compile "$LINENO"; then :
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 ac_c_werror_flag=$ac_save_c_werror_flag
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5876 $as_echo "$ac_cv_prog_cc_g" >&6; }
5877 if test "$ac_test_CFLAGS" = set; then
5878 CFLAGS=$ac_save_CFLAGS
5879 elif test $ac_cv_prog_cc_g = yes; then
5880 if test "$GCC" = yes; then
5886 if test "$GCC" = yes; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5893 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5894 if ${ac_cv_prog_cc_c89+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 ac_cv_prog_cc_c89=no
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5905 struct buf { int x; };
5906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5907 static char *e (p, i)
5913 static char *f (char * (*g) (char **, int), char **p, ...)
5918 s = g (p, va_arg (v,int));
5923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5924 function prototypes and stuff, but not '\xHH' hex character constants.
5925 These don't provoke an error unfortunately, instead are silently treated
5926 as 'x'. The following induces an error, until -std is added to get
5927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5928 array size at least. It's necessary to write '\x00'==0 to get something
5929 that's true only with -std. */
5930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5933 inside strings and character constants. */
5935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5937 int test (int i, double x);
5938 struct s1 {int (*f) (int a);};
5939 struct s2 {int (*f) (double a);};
5940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5954 CC="$ac_save_CC $ac_arg"
5955 if ac_fn_c_try_compile "$LINENO"; then :
5956 ac_cv_prog_cc_c89=$ac_arg
5958 rm -f core conftest.err conftest.$ac_objext
5959 test "x$ac_cv_prog_cc_c89" != "xno" && break
5961 rm -f conftest.$ac_ext
5966 case "x$ac_cv_prog_cc_c89" in
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5969 $as_echo "none needed" >&6; } ;;
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5972 $as_echo "unsupported" >&6; } ;;
5974 CC="$CC $ac_cv_prog_cc_c89"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5976 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5978 if test "x$ac_cv_prog_cc_c89" != xno; then :
5983 ac_cpp='$CPP $CPPFLAGS'
5984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5994 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5995 if ${am_cv_prog_cc_c_o+:} false; then :
5996 $as_echo_n "(cached) " >&6
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6009 # Make sure it works both with $CC and with simple cc.
6010 # Following AC_PROG_CC_C_O, we do the test twice because some
6011 # compilers refuse to overwrite an existing .o file with -o,
6012 # though they will create one.
6013 am_cv_prog_cc_c_o=yes
6015 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6016 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } \
6020 && test -f conftest2.$ac_objext; then
6023 am_cv_prog_cc_c_o=no
6027 rm -f core conftest*
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6031 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6032 if test "$am_cv_prog_cc_c_o" != yes; then
6033 # Losing compiler, so override with the script.
6034 # FIXME: It is wrong to rewrite CC.
6035 # But if we don't then we get into trouble of one sort or another.
6036 # A longer-term fix would be to have automake use am__CC in this case,
6037 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6038 CC="$am_aux_dir/compile $CC"
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 depcc="$CC" am_compiler_list=
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6050 $as_echo_n "checking dependency style of $depcc... " >&6; }
6051 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6055 # We make a subdir and do the tests there. Otherwise we can end up
6056 # making bogus files that we don't know about and never remove. For
6057 # instance it was reported that on HP-UX the gcc test will end up
6058 # making a dummy file named 'D' -- because '-MD' means "put the output
6062 # Copy depcomp to subdir because otherwise we won't find it if we're
6063 # using a relative directory.
6064 cp "$am_depcomp" conftest.dir
6066 # We will build objects and dependencies in a subdirectory because
6067 # it helps to detect inapplicable dependency modes. For instance
6068 # both Tru64's cc and ICC support -MD to output dependencies as a
6069 # side effect of compilation, but ICC will put the dependencies in
6070 # the current directory while Tru64 will put them in the object
6074 am_cv_CC_dependencies_compiler_type=none
6075 if test "$am_compiler_list" = ""; then
6076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6079 case " $depcc " in #(
6080 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6083 for depmode in $am_compiler_list; do
6084 # Setup a source with many dependencies, because some compilers
6085 # like to wrap large dependency lists on column 80 (with \), and
6086 # we should not choose a depcomp mode which is confused by this.
6088 # We need to recreate these files for each test, as the compiler may
6089 # overwrite some of them when testing with obscure command lines.
6090 # This happens at least with the AIX C compiler.
6092 for i in 1 2 3 4 5 6; do
6093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6094 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6095 # Solaris 10 /bin/sh.
6096 echo '/* dummy */' > sub/conftst$i.h
6098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6100 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6101 # mode. It turns out that the SunPro C++ compiler does not properly
6102 # handle '-M -o', and we need to detect this. Also, some Intel
6103 # versions had trouble with output in subdirs.
6104 am__obj=sub/conftest.${OBJEXT-o}
6105 am__minus_obj="-o $am__obj"
6108 # This depmode causes a compiler race in universal mode.
6109 test "$am__universal" = false || continue
6112 # After this tag, mechanisms are not by side-effect, so they'll
6113 # only be used when explicitly requested.
6114 if test "x$enable_dependency_tracking" = xyes; then
6120 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6121 # This compiler won't grok '-c -o', but also, the minuso test has
6122 # not run yet. These depmodes are late enough in the game, and
6123 # so weak that their functioning should not be impacted.
6124 am__obj=conftest.${OBJEXT-o}
6129 if depmode=$depmode \
6130 source=sub/conftest.c object=$am__obj \
6131 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6132 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6133 >/dev/null 2>conftest.err &&
6134 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6135 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6136 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6137 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6138 # icc doesn't choke on unknown options, it will just issue warnings
6139 # or remarks (even with -Werror). So we grep stderr for any message
6140 # that says an option was ignored or not supported.
6141 # When given -MP, icc 7.0 and 7.1 complain thusly:
6142 # icc: Command line warning: ignoring option '-M'; no argument required
6143 # The diagnosis changed in icc 8.0:
6144 # icc: Command line remark: option '-MP' not supported
6145 if (grep 'ignoring option' conftest.err ||
6146 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6147 am_cv_CC_dependencies_compiler_type=$depmode
6156 am_cv_CC_dependencies_compiler_type=none
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6161 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6165 test "x$enable_dependency_tracking" != xno \
6166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6168 am__fastdepCC_FALSE='#'
6170 am__fastdepCC_TRUE='#'
6171 am__fastdepCC_FALSE=
6176 for ac_prog in flex lex
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179 set dummy $ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_LEX+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$LEX"; then
6186 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_LEX="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 if test -n "$LEX"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6208 $as_echo "$LEX" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6215 test -n "$LEX" && break
6217 test -n "$LEX" || LEX=":"
6219 if test "x$LEX" != "x:"; then
6220 cat >conftest.l <<_ACEOF
6226 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6227 yyless ((input () != 0)); }
6228 f { unput (yytext[0]); }
6229 . { BEGIN INITIAL; }
6231 #ifdef YYTEXT_POINTER
6232 extern char *yytext;
6237 return ! yylex () + ! yywrap ();
6240 { { ac_try="$LEX conftest.l"
6242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6243 *) ac_try_echo
=$ac_try;;
6245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6246 $as_echo "$ac_try_echo"; } >&5
6247 (eval "$LEX conftest.l") 2>&5
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6252 $as_echo_n "checking lex output file root... " >&6; }
6253 if ${ac_cv_prog_lex_root+:} false
; then :
6254 $as_echo_n "(cached) " >&6
6257 if test -f lex.yy.c
; then
6258 ac_cv_prog_lex_root
=lex.yy
6259 elif test -f lexyy.c
; then
6260 ac_cv_prog_lex_root
=lexyy
6262 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6266 $as_echo "$ac_cv_prog_lex_root" >&6; }
6267 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6269 if test -z "${LEXLIB+set}"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6271 $as_echo_n "checking lex library... " >&6; }
6272 if ${ac_cv_lib_lex+:} false
; then :
6273 $as_echo_n "(cached) " >&6
6277 ac_cv_lib_lex
='none needed'
6278 for ac_lib
in '' -lfl -ll; do
6279 LIBS
="$ac_lib $ac_save_LIBS"
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 `cat $LEX_OUTPUT_ROOT.c`
6284 if ac_fn_c_try_link
"$LINENO"; then :
6285 ac_cv_lib_lex
=$ac_lib
6287 rm -f core conftest.err conftest.
$ac_objext \
6288 conftest
$ac_exeext conftest.
$ac_ext
6289 test "$ac_cv_lib_lex" != 'none needed' && break
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6295 $as_echo "$ac_cv_lib_lex" >&6; }
6296 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6301 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6302 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
6303 $as_echo_n "(cached) " >&6
6305 # POSIX says lex can declare yytext either as a pointer or an array; the
6306 # default is implementation-dependent. Figure out which it is, since
6307 # not all implementations provide the %pointer and %array declarations.
6308 ac_cv_prog_lex_yytext_pointer
=no
6310 LIBS
="$LEXLIB $ac_save_LIBS"
6311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6314 #define YYTEXT_POINTER 1
6315 `cat $LEX_OUTPUT_ROOT.c`
6317 if ac_fn_c_try_link
"$LINENO"; then :
6318 ac_cv_prog_lex_yytext_pointer
=yes
6320 rm -f core conftest.err conftest.
$ac_objext \
6321 conftest
$ac_exeext conftest.
$ac_ext
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6326 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6327 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6329 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6332 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
6335 for ac_prog
in 'bison -y' byacc
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy
$ac_prog; ac_word
=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_YACC+:} false
; then :
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$YACC"; then
6345 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir
=.
6352 for ac_exec_ext
in '' $ac_executable_extensions; do
6353 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_YACC
="$ac_prog"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 YACC
=$ac_cv_prog_YACC
6365 if test -n "$YACC"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6367 $as_echo "$YACC" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6374 test -n "$YACC" && break
6376 test -n "$YACC" || YACC
="yacc"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6379 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6381 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6382 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6383 $as_echo_n "(cached) " >&6
6385 cat >conftest.
make <<\_ACEOF
6388 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6390 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6393 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6395 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6399 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6401 $as_echo "yes" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 SET_MAKE
="MAKE=${MAKE-make}"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6411 $as_echo_n "checking whether ln -s works... " >&6; }
6413 if test "$LN_S" = "ln -s"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6415 $as_echo "yes" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6418 $as_echo "no, using $LN_S" >&6; }
6422 if test "x$LEX" = "x:"; then
6423 as_fn_error $?
"flex is not found" "$LINENO" 5
6425 version
=`$LEX --version | $AWK '{ split($2,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
6426 if test -n "$version" -a "$version" -ge 20535; then
6429 as_fn_error $?
"flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
6433 # These are not a "must".
6434 for ac_prog
in makeinfo true
6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
6437 set dummy
$ac_prog; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_path_MAKEINFO+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6445 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir
=.
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 MAKEINFO
=$ac_cv_path_MAKEINFO
6467 if test -n "$MAKEINFO"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6469 $as_echo "$MAKEINFO" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6476 test -n "$MAKEINFO" && break
6481 # Checks for host programs.
6485 ac_cpp
='$CPP $CPPFLAGS'
6486 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6489 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6491 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_CC+:} false
; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$CC"; then
6498 ac_cv_prog_CC
="$CC" # Let the user override the test.
6500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir
=.
6505 for ac_exec_ext
in '' $ac_executable_extensions; do
6506 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 if test -n "$CC"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6520 $as_echo "$CC" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6528 if test -z "$ac_cv_prog_CC"; then
6530 # Extract the first word of "gcc", so it can be a program name with args.
6531 set dummy gcc
; ac_word
=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6535 $as_echo_n "(cached) " >&6
6537 if test -n "$ac_ct_CC"; then
6538 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir
=.
6545 for ac_exec_ext
in '' $ac_executable_extensions; do
6546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_ac_ct_CC
="gcc"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6558 if test -n "$ac_ct_CC"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6560 $as_echo "$ac_ct_CC" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6566 if test "x$ac_ct_CC" = x
; then
6569 case $cross_compiling:$ac_tool_warned in
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned
=yes ;;
6581 if test -z "$CC"; then
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6584 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_CC+:} false
; then :
6588 $as_echo_n "(cached) " >&6
6590 if test -n "$CC"; then
6591 ac_cv_prog_CC
="$CC" # Let the user override the test.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 if test -n "$CC"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6613 $as_echo "$CC" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6622 if test -z "$CC"; then
6623 # Extract the first word of "cc", so it can be a program name with args.
6624 set dummy cc
; ac_word
=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_CC+:} false
; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$CC"; then
6631 ac_cv_prog_CC
="$CC" # Let the user override the test.
6634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir
=.
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6642 ac_prog_rejected
=yes
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 if test $ac_prog_rejected = yes; then
6654 # We found a bogon in the path, so make sure we never use it.
6655 set dummy
$ac_cv_prog_CC
6657 if test $# != 0; then
6658 # We chose a different compiler from the bogus one.
6659 # However, it has the same basename, so the bogon will be chosen
6660 # first if we set CC to just the basename; use the full file name.
6662 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6668 if test -n "$CC"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6670 $as_echo "$CC" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$CC"; then
6679 if test -n "$ac_tool_prefix"; then
6680 for ac_prog
in cl.exe
6682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6683 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_CC+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$CC"; then
6690 ac_cv_prog_CC
="$CC" # Let the user override the test.
6692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir
=.
6697 for ac_exec_ext
in '' $ac_executable_extensions; do
6698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 if test -n "$CC"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6712 $as_echo "$CC" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6719 test -n "$CC" && break
6722 if test -z "$CC"; then
6724 for ac_prog
in cl.exe
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy
$ac_prog; ac_word
=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6731 $as_echo_n "(cached) " >&6
6733 if test -n "$ac_ct_CC"; then
6734 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_ac_ct_CC
="$ac_prog"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6754 if test -n "$ac_ct_CC"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6756 $as_echo "$ac_ct_CC" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6763 test -n "$ac_ct_CC" && break
6766 if test "x$ac_ct_CC" = x
; then
6769 case $cross_compiling:$ac_tool_warned in
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned
=yes ;;
6782 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6784 as_fn_error $?
"no acceptable C compiler found in \$PATH
6785 See \`config.log' for more details" "$LINENO" 5; }
6787 # Provide some information about the compiler.
6788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6791 for ac_option
in --version -v -V -qversion; do
6792 { { ac_try
="$ac_compiler $ac_option >&5"
6794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6798 $as_echo "$ac_try_echo"; } >&5
6799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6801 if test -s conftest.err; then
6803 ... rest of stderr output deleted ...
6804 10q' conftest.err >conftest.er1
6805 cat conftest.er1 >&5
6807 rm -f conftest.er1 conftest.err
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6814 if ${ac_cv_c_compiler_gnu+:} false; then :
6815 $as_echo_n "(cached) " >&6
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6831 if ac_fn_c_try_compile "$LINENO"; then :
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6841 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6842 if test $ac_compiler_gnu = yes; then
6847 ac_test_CFLAGS=${CFLAGS+set}
6848 ac_save_CFLAGS=$CFLAGS
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6850 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6851 if ${ac_cv_prog_cc_g+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 ac_save_c_werror_flag=$ac_c_werror_flag
6855 ac_c_werror_flag=yes
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6869 if ac_fn_c_try_compile "$LINENO"; then :
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6884 if ac_fn_c_try_compile "$LINENO"; then :
6887 ac_c_werror_flag=$ac_save_c_werror_flag
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6900 if ac_fn_c_try_compile "$LINENO"; then :
6903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 ac_c_werror_flag=$ac_save_c_werror_flag
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6911 $as_echo "$ac_cv_prog_cc_g" >&6; }
6912 if test "$ac_test_CFLAGS" = set; then
6913 CFLAGS=$ac_save_CFLAGS
6914 elif test $ac_cv_prog_cc_g = yes; then
6915 if test "$GCC" = yes; then
6921 if test "$GCC" = yes; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6928 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6929 if ${ac_cv_prog_cc_c89+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 ac_cv_prog_cc_c89=no
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6940 struct buf { int x; };
6941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6942 static char *e (p, i)
6948 static char *f (char * (*g) (char **, int), char **p, ...)
6953 s = g (p, va_arg (v,int));
6958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6959 function prototypes and stuff, but not '\xHH' hex character constants.
6960 These don't provoke an error unfortunately, instead are silently treated
6961 as 'x'. The following induces an error, until -std is added to get
6962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6963 array size at least. It's necessary to write '\x00'==0 to get something
6964 that's true only with -std. */
6965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6968 inside strings and character constants. */
6970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6972 int test (int i, double x);
6973 struct s1 {int (*f) (int a);};
6974 struct s2 {int (*f) (double a);};
6975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6989 CC="$ac_save_CC $ac_arg"
6990 if ac_fn_c_try_compile "$LINENO"; then :
6991 ac_cv_prog_cc_c89=$ac_arg
6993 rm -f core conftest.err conftest.$ac_objext
6994 test "x$ac_cv_prog_cc_c89" != "xno" && break
6996 rm -f conftest.$ac_ext
7001 case "x$ac_cv_prog_cc_c89" in
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7004 $as_echo "none needed" >&6; } ;;
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7007 $as_echo "unsupported" >&6; } ;;
7009 CC="$CC $ac_cv_prog_cc_c89"
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7011 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7013 if test "x$ac_cv_prog_cc_c89" != xno; then :
7018 ac_cpp='$CPP $CPPFLAGS'
7019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024 ac_cpp='$CPP $CPPFLAGS'
7025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7029 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7030 if ${am_cv_prog_cc_c_o+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7044 # Make sure it works both with $CC and with simple cc.
7045 # Following AC_PROG_CC_C_O, we do the test twice because some
7046 # compilers refuse to overwrite an existing .o file with -o,
7047 # though they will create one.
7048 am_cv_prog_cc_c_o=yes
7050 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7051 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } \
7055 && test -f conftest2.$ac_objext; then
7058 am_cv_prog_cc_c_o=no
7062 rm -f core conftest*
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7066 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7067 if test "$am_cv_prog_cc_c_o" != yes; then
7068 # Losing compiler, so override with the script.
7069 # FIXME: It is wrong to rewrite CC.
7070 # But if we don't then we get into trouble of one sort or another.
7071 # A longer-term fix would be to have automake use am__CC in this case,
7072 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7073 CC="$am_aux_dir/compile $CC"
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082 depcc="$CC" am_compiler_list=
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7085 $as_echo_n "checking dependency style of $depcc... " >&6; }
7086 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7090 # We make a subdir and do the tests there. Otherwise we can end up
7091 # making bogus files that we don't know about and never remove. For
7092 # instance it was reported that on HP-UX the gcc test will end up
7093 # making a dummy file named 'D' -- because '-MD' means "put the output
7097 # Copy depcomp to subdir because otherwise we won't find it if we're
7098 # using a relative directory.
7099 cp "$am_depcomp" conftest.dir
7101 # We will build objects and dependencies in a subdirectory because
7102 # it helps to detect inapplicable dependency modes. For instance
7103 # both Tru64's cc and ICC support -MD to output dependencies as a
7104 # side effect of compilation, but ICC will put the dependencies in
7105 # the current directory while Tru64 will put them in the object
7109 am_cv_CC_dependencies_compiler_type=none
7110 if test "$am_compiler_list" = ""; then
7111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
7114 case " $depcc " in #(
7115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7118 for depmode in $am_compiler_list; do
7119 # Setup a source with many dependencies, because some compilers
7120 # like to wrap large dependency lists on column 80 (with \), and
7121 # we should not choose a depcomp mode which is confused by this.
7123 # We need to recreate these files for each test, as the compiler may
7124 # overwrite some of them when testing with obscure command lines.
7125 # This happens at least with the AIX C compiler.
7127 for i in 1 2 3 4 5 6; do
7128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7130 # Solaris 10 /bin/sh.
7131 echo '/* dummy */' > sub/conftst$i.h
7133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7135 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7136 # mode. It turns out that the SunPro C++ compiler does not properly
7137 # handle '-M -o', and we need to detect this. Also, some Intel
7138 # versions had trouble with output in subdirs.
7139 am__obj=sub/conftest.${OBJEXT-o}
7140 am__minus_obj="-o $am__obj"
7143 # This depmode causes a compiler race in universal mode.
7144 test "$am__universal" = false || continue
7147 # After this tag, mechanisms are not by side-effect, so they'll
7148 # only be used when explicitly requested.
7149 if test "x$enable_dependency_tracking" = xyes; then
7155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7156 # This compiler won't grok '-c -o', but also, the minuso test has
7157 # not run yet. These depmodes are late enough in the game, and
7158 # so weak that their functioning should not be impacted.
7159 am__obj=conftest.${OBJEXT-o}
7164 if depmode=$depmode \
7165 source=sub/conftest.c object=$am__obj \
7166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7168 >/dev/null 2>conftest.err &&
7169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7173 # icc doesn't choke on unknown options, it will just issue warnings
7174 # or remarks (even with -Werror). So we grep stderr for any message
7175 # that says an option was ignored or not supported.
7176 # When given -MP, icc 7.0 and 7.1 complain thusly:
7177 # icc: Command line warning: ignoring option '-M'; no argument required
7178 # The diagnosis changed in icc 8.0:
7179 # icc: Command line remark: option '-MP' not supported
7180 if (grep 'ignoring option' conftest.err ||
7181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7182 am_cv_CC_dependencies_compiler_type=$depmode
7191 am_cv_CC_dependencies_compiler_type=none
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7196 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7200 test "x$enable_dependency_tracking" != xno \
7201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7203 am__fastdepCC_FALSE='#'
7205 am__fastdepCC_TRUE='#'
7206 am__fastdepCC_FALSE=
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7217 # On Suns, sometimes $CPP names a directory.
7218 if test -n "$CPP" && test -d "$CPP"; then
7221 if test -z "$CPP"; then
7222 if ${ac_cv_prog_CPP+:} false; then :
7223 $as_echo_n "(cached) " >&6
7225 # Double quotes because CPP needs to be expanded
7226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7229 for ac_c_preproc_warn_flag in '' yes
7231 # Use a header file that comes with gcc, so configuring glibc
7232 # with a fresh cross-compiler works.
7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7234 # <limits.h> exists even on freestanding compilers.
7235 # On the NeXT, cc -E runs the code through the compiler's parser,
7236 # not just through cpp. "Syntax error" is here to catch this case.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7240 # include <limits.h>
7242 # include <assert.h>
7246 if ac_fn_c_try_cpp "$LINENO"; then :
7249 # Broken: fails on valid input.
7252 rm -f conftest.err conftest.i conftest.$ac_ext
7254 # OK, works on sane cases. Now check whether nonexistent headers
7255 # can be detected and how.
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <ac_nonexistent.h>
7260 if ac_fn_c_try_cpp "$LINENO"; then :
7261 # Broken: success on invalid input.
7264 # Passes both tests.
7268 rm -f conftest.err conftest.i conftest.$ac_ext
7271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7272 rm -f conftest.i conftest.err conftest.
$ac_ext
7273 if $ac_preproc_ok; then :
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7286 $as_echo "$CPP" >&6; }
7288 for ac_c_preproc_warn_flag
in '' yes
7290 # Use a header file that comes with gcc, so configuring glibc
7291 # with a fresh cross-compiler works.
7292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7293 # <limits.h> exists even on freestanding compilers.
7294 # On the NeXT, cc -E runs the code through the compiler's parser,
7295 # not just through cpp. "Syntax error" is here to catch this case.
7296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7299 # include <limits.h>
7301 # include <assert.h>
7305 if ac_fn_c_try_cpp
"$LINENO"; then :
7308 # Broken: fails on valid input.
7311 rm -f conftest.err conftest.i conftest.
$ac_ext
7313 # OK, works on sane cases. Now check whether nonexistent headers
7314 # can be detected and how.
7315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <ac_nonexistent.h>
7319 if ac_fn_c_try_cpp
"$LINENO"; then :
7320 # Broken: success on invalid input.
7323 # Passes both tests.
7327 rm -f conftest.err conftest.i conftest.
$ac_ext
7330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7331 rm -f conftest.i conftest.err conftest.
$ac_ext
7332 if $ac_preproc_ok; then :
7335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7337 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7338 See \`config.log' for more details" "$LINENO" 5; }
7342 ac_cpp
='$CPP $CPPFLAGS'
7343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7350 if ${ac_cv_path_GREP+:} false
; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -z "$GREP"; then
7354 ac_path_GREP_found
=false
7355 # Loop through the user's path and test for each of PROGNAME-LIST
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7357 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_prog
in grep ggrep
; do
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
7364 as_fn_executable_p
"$ac_path_GREP" ||
continue
7365 # Check for GNU ac_path_GREP and select it if it is found.
7366 # Check for GNU $ac_path_GREP
7367 case `"$ac_path_GREP" --version 2>&1` in
7369 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
7372 $as_echo_n 0123456789 >"conftest.in"
7375 cat "conftest.in" "conftest.in" >"conftest.tmp"
7376 mv "conftest.tmp" "conftest.in"
7377 cp "conftest.in" "conftest.nl"
7378 $as_echo 'GREP' >> "conftest.nl"
7379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7380 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7381 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7383 # Best one so far, save it but keep looking for a better one
7384 ac_cv_path_GREP
="$ac_path_GREP"
7385 ac_path_GREP_max
=$ac_count
7387 # 10*(2^10) chars as input seems more than enough
7388 test $ac_count -gt 10 && break
7390 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7393 $ac_path_GREP_found && break 3
7398 if test -z "$ac_cv_path_GREP"; then
7399 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7402 ac_cv_path_GREP
=$GREP
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7407 $as_echo "$ac_cv_path_GREP" >&6; }
7408 GREP
="$ac_cv_path_GREP"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7412 $as_echo_n "checking for egrep... " >&6; }
7413 if ${ac_cv_path_EGREP+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7416 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
7417 then ac_cv_path_EGREP
="$GREP -E"
7419 if test -z "$EGREP"; then
7420 ac_path_EGREP_found
=false
7421 # Loop through the user's path and test for each of PROGNAME-LIST
7422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7423 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
7426 test -z "$as_dir" && as_dir
=.
7427 for ac_prog
in egrep; do
7428 for ac_exec_ext
in '' $ac_executable_extensions; do
7429 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
7430 as_fn_executable_p
"$ac_path_EGREP" ||
continue
7431 # Check for GNU ac_path_EGREP and select it if it is found.
7432 # Check for GNU $ac_path_EGREP
7433 case `"$ac_path_EGREP" --version 2>&1` in
7435 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
7438 $as_echo_n 0123456789 >"conftest.in"
7441 cat "conftest.in" "conftest.in" >"conftest.tmp"
7442 mv "conftest.tmp" "conftest.in"
7443 cp "conftest.in" "conftest.nl"
7444 $as_echo 'EGREP' >> "conftest.nl"
7445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7446 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7447 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7449 # Best one so far, save it but keep looking for a better one
7450 ac_cv_path_EGREP
="$ac_path_EGREP"
7451 ac_path_EGREP_max
=$ac_count
7453 # 10*(2^10) chars as input seems more than enough
7454 test $ac_count -gt 10 && break
7456 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7459 $ac_path_EGREP_found && break 3
7464 if test -z "$ac_cv_path_EGREP"; then
7465 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7468 ac_cv_path_EGREP
=$EGREP
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7474 $as_echo "$ac_cv_path_EGREP" >&6; }
7475 EGREP
="$ac_cv_path_EGREP"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7479 $as_echo_n "checking for ANSI C header files... " >&6; }
7480 if ${ac_cv_header_stdc+:} false
; then :
7481 $as_echo_n "(cached) " >&6
7483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7498 if ac_fn_c_try_compile
"$LINENO"; then :
7499 ac_cv_header_stdc
=yes
7501 ac_cv_header_stdc
=no
7503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 if test $ac_cv_header_stdc = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "memchr" >/dev
/null
2>&1; then :
7516 ac_cv_header_stdc
=no
7522 if test $ac_cv_header_stdc = yes; then
7523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530 $EGREP "free" >/dev
/null
2>&1; then :
7533 ac_cv_header_stdc
=no
7539 if test $ac_cv_header_stdc = yes; then
7540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7541 if test "$cross_compiling" = yes; then :
7544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7548 #if ((' ' & 0x0FF) == 0x020)
7549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7552 # define ISLOWER(c) \
7553 (('a' <= (c) && (c) <= 'i') \
7554 || ('j' <= (c) && (c) <= 'r') \
7555 || ('s' <= (c) && (c) <= 'z'))
7556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7564 for (i = 0; i < 256; i++)
7565 if (XOR (islower (i), ISLOWER (i))
7566 || toupper (i) != TOUPPER (i))
7571 if ac_fn_c_try_run
"$LINENO"; then :
7574 ac_cv_header_stdc
=no
7576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7583 $as_echo "$ac_cv_header_stdc" >&6; }
7584 if test $ac_cv_header_stdc = yes; then
7586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7591 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7592 inttypes.h stdint.h unistd.h
7594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7597 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7598 cat >>confdefs.h
<<_ACEOF
7599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7608 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7609 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
7616 if test "$MINIX" = yes; then
7618 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7621 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7624 $as_echo "#define _MINIX 1" >>confdefs.h
7627 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7633 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7634 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
7635 $as_echo_n "(cached) " >&6
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7640 # define __EXTENSIONS__ 1
7641 $ac_includes_default
7650 if ac_fn_c_try_compile
"$LINENO"; then :
7651 ac_cv_safe_to_define___extensions__
=yes
7653 ac_cv_safe_to_define___extensions__
=no
7655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7658 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7659 test $ac_cv_safe_to_define___extensions__ = yes &&
7660 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7662 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7664 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7668 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7670 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
7672 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7674 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
7676 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
7678 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
7680 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
7682 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
7684 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
7686 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
7688 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7691 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7692 if ${ac_cv_should_define__xopen_source+:} false
; then :
7693 $as_echo_n "(cached) " >&6
7695 ac_cv_should_define__xopen_source
=no
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7709 if ac_fn_c_try_compile
"$LINENO"; then :
7712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7715 #define _XOPEN_SOURCE 500
7726 if ac_fn_c_try_compile
"$LINENO"; then :
7727 ac_cv_should_define__xopen_source
=yes
7729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7734 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7735 test $ac_cv_should_define__xopen_source = yes &&
7736 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7738 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7751 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7752 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
7753 $as_echo_n "(cached) " >&6
7756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
7766 gl_cv_c_amsterdam_compiler
=yes
7768 gl_cv_c_amsterdam_compiler
=no
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7775 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7777 if test $gl_cv_c_amsterdam_compiler = yes; then
7778 if test -z "$AR"; then
7781 if test -z "$ARFLAGS"; then
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7790 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_AR+:} false
; then :
7794 $as_echo_n "(cached) " >&6
7796 if test -n "$AR"; then
7797 ac_cv_prog_AR
="$AR" # Let the user override the test.
7799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir
=.
7804 for ac_exec_ext
in '' $ac_executable_extensions; do
7805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 if test -n "$AR"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7819 $as_echo "$AR" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_AR"; then
7829 # Extract the first word of "ar", so it can be a program name with args.
7830 set dummy
ar; ac_word
=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$ac_ct_AR"; then
7837 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir
=.
7844 for ac_exec_ext
in '' $ac_executable_extensions; do
7845 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_AR
="ar"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7857 if test -n "$ac_ct_AR"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7859 $as_echo "$ac_ct_AR" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_AR" = x
; then
7868 case $cross_compiling:$ac_tool_warned in
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned
=yes ;;
7880 if test -z "$ARFLAGS"; then
7886 if test -z "$RANLIB"; then
7887 if test $gl_cv_c_amsterdam_compiler = yes; then
7890 if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7892 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_RANLIB+:} false
; then :
7896 $as_echo_n "(cached) " >&6
7898 if test -n "$RANLIB"; then
7899 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir
=.
7906 for ac_exec_ext
in '' $ac_executable_extensions; do
7907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 RANLIB
=$ac_cv_prog_RANLIB
7919 if test -n "$RANLIB"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7921 $as_echo "$RANLIB" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7929 if test -z "$ac_cv_prog_RANLIB"; then
7930 ac_ct_RANLIB
=$RANLIB
7931 # Extract the first word of "ranlib", so it can be a program name with args.
7932 set dummy ranlib
; ac_word
=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$ac_ct_RANLIB"; then
7939 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir
=.
7946 for ac_exec_ext
in '' $ac_executable_extensions; do
7947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7959 if test -n "$ac_ct_RANLIB"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7961 $as_echo "$ac_ct_RANLIB" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7967 if test "x$ac_ct_RANLIB" = x
; then
7970 case $cross_compiling:$ac_tool_warned in
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974 ac_tool_warned
=yes ;;
7976 RANLIB
=$ac_ct_RANLIB
7979 RANLIB
="$ac_cv_prog_RANLIB"
7987 # Check whether --enable-largefile was given.
7988 if test "${enable_largefile+set}" = set; then :
7989 enableval
=$enable_largefile;
7992 if test "$enable_largefile" != no
; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7995 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7996 if ${ac_cv_sys_largefile_CC+:} false
; then :
7997 $as_echo_n "(cached) " >&6
7999 ac_cv_sys_largefile_CC
=no
8000 if test "$GCC" != yes; then
8003 # IRIX 6.2 and later do not support large files by default,
8004 # so use the C compiler's -n32 option if that helps.
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <sys/types.h>
8008 /* Check that off_t can represent 2**63 - 1 correctly.
8009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8010 since some C++ compilers masquerading as C compilers
8011 incorrectly reject 9223372036854775807. */
8012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8014 && LARGE_OFF_T % 2147483647 == 1)
8024 if ac_fn_c_try_compile
"$LINENO"; then :
8027 rm -f core conftest.err conftest.
$ac_objext
8029 if ac_fn_c_try_compile
"$LINENO"; then :
8030 ac_cv_sys_largefile_CC
=' -n32'; break
8032 rm -f core conftest.err conftest.
$ac_objext
8036 rm -f conftest.
$ac_ext
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8040 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8041 if test "$ac_cv_sys_largefile_CC" != no
; then
8042 CC
=$CC$ac_cv_sys_largefile_CC
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8046 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8047 if ${ac_cv_sys_file_offset_bits+:} false
; then :
8048 $as_echo_n "(cached) " >&6
8051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 #include <sys/types.h>
8054 /* Check that off_t can represent 2**63 - 1 correctly.
8055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8056 since some C++ compilers masquerading as C compilers
8057 incorrectly reject 9223372036854775807. */
8058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8060 && LARGE_OFF_T % 2147483647 == 1)
8070 if ac_fn_c_try_compile
"$LINENO"; then :
8071 ac_cv_sys_file_offset_bits
=no
; break
8073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #define _FILE_OFFSET_BITS 64
8077 #include <sys/types.h>
8078 /* Check that off_t can represent 2**63 - 1 correctly.
8079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8080 since some C++ compilers masquerading as C compilers
8081 incorrectly reject 9223372036854775807. */
8082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8084 && LARGE_OFF_T % 2147483647 == 1)
8094 if ac_fn_c_try_compile
"$LINENO"; then :
8095 ac_cv_sys_file_offset_bits
=64; break
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8098 ac_cv_sys_file_offset_bits
=unknown
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8103 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8104 case $ac_cv_sys_file_offset_bits in #(
8107 cat >>confdefs.h
<<_ACEOF
8108 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8113 if test $ac_cv_sys_file_offset_bits = unknown
; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8115 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8116 if ${ac_cv_sys_large_files+:} false
; then :
8117 $as_echo_n "(cached) " >&6
8120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 #include <sys/types.h>
8123 /* Check that off_t can represent 2**63 - 1 correctly.
8124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8125 since some C++ compilers masquerading as C compilers
8126 incorrectly reject 9223372036854775807. */
8127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8129 && LARGE_OFF_T % 2147483647 == 1)
8139 if ac_fn_c_try_compile
"$LINENO"; then :
8140 ac_cv_sys_large_files
=no
; break
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #define _LARGE_FILES 1
8146 #include <sys/types.h>
8147 /* Check that off_t can represent 2**63 - 1 correctly.
8148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8149 since some C++ compilers masquerading as C compilers
8150 incorrectly reject 9223372036854775807. */
8151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8153 && LARGE_OFF_T % 2147483647 == 1)
8163 if ac_fn_c_try_compile
"$LINENO"; then :
8164 ac_cv_sys_large_files
=1; break
8166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 ac_cv_sys_large_files
=unknown
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8172 $as_echo "$ac_cv_sys_large_files" >&6; }
8173 case $ac_cv_sys_large_files in #(
8176 cat >>confdefs.h
<<_ACEOF
8177 #define _LARGE_FILES $ac_cv_sys_large_files
8185 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
8194 # Check whether --enable-threads was given.
8195 if test "${enable_threads+set}" = set; then :
8196 enableval
=$enable_threads; gl_use_threads
=$enableval
8198 if test -n "$gl_use_threads_default"; then
8199 gl_use_threads
="$gl_use_threads_default"
8202 osf
*) gl_use_threads
=no
;;
8205 1.
[0-5].
*) gl_use_threads
=no
;;
8206 *) gl_use_threads
=yes ;;
8209 *) gl_use_threads
=yes ;;
8215 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
8216 # For using <pthread.h>:
8219 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8220 # groks <pthread.h>. cc also understands the flag -pthread, but
8221 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8222 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8223 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8224 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8225 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
8228 # Some systems optimize for single-threaded programs by default, and
8229 # need special flags to disable these optimizations. For example, the
8230 # definition of 'errno' in <errno.h>.
8232 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
8233 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
8239 # Pre-early section.
8244 # Code from module absolute-header:
8245 # Code from module alloca:
8246 # Code from module alloca-opt:
8247 # Code from module argp:
8248 # Code from module assure:
8249 # Code from module at-internal:
8250 # Code from module base64:
8251 # Code from module btowc:
8252 # Code from module builtin-expect:
8253 # Code from module chdir:
8254 # Code from module chdir-long:
8255 # Code from module cloexec:
8256 # Code from module close:
8257 # Code from module dirent:
8258 # Code from module dirfd:
8259 # Code from module dirname-lgpl:
8260 # Code from module dosname:
8261 # Code from module double-slash-root:
8262 # Code from module dup2:
8263 # Code from module errno:
8264 # Code from module error:
8265 # Code from module exitfail:
8266 # Code from module extensions:
8267 # Code from module extern-inline:
8268 # Code from module fchdir:
8269 # Code from module fcntl:
8270 # Code from module fcntl-h:
8271 # Code from module fd-hook:
8272 # Code from module fd-safer-flag:
8273 # Code from module filename:
8274 # Code from module filenamecat-lgpl:
8275 # Code from module flexmember:
8276 # Code from module float:
8277 # Code from module fnmatch:
8278 # Code from module fnmatch-h:
8279 # Code from module fstat:
8280 # Code from module getcwd-lgpl:
8281 # Code from module getdelim:
8282 # Code from module getdtablesize:
8283 # Code from module getline:
8284 # Code from module getopt-gnu:
8285 # Code from module getopt-posix:
8286 # Code from module getprogname:
8287 # Code from module gettext-h:
8288 # Code from module gitlog-to-changelog:
8289 # Code from module hard-locale:
8290 # Code from module havelib:
8291 # Code from module include_next:
8292 # Code from module intprops:
8293 # Code from module langinfo:
8294 # Code from module largefile:
8296 # Code from module libc-config:
8297 # Code from module limits-h:
8298 # Code from module localcharset:
8299 # Code from module locale:
8300 # Code from module localeconv:
8301 # Code from module lock:
8302 # Code from module malloc-gnu:
8303 # Code from module malloc-posix:
8304 # Code from module malloca:
8305 # Code from module mbrtowc:
8306 # Code from module mbsinit:
8307 # Code from module mbsrtowcs:
8308 # Code from module mbswidth:
8309 # Code from module mbtowc:
8310 # Code from module memchr:
8311 # Code from module mempcpy:
8312 # Code from module memrchr:
8313 # Code from module msvc-inval:
8314 # Code from module msvc-nothrow:
8315 # Code from module multiarch:
8316 # Code from module nl_langinfo:
8317 # Code from module nocrash:
8318 # Code from module open:
8319 # Code from module openat:
8320 # Code from module openat-die:
8321 # Code from module openat-h:
8322 # Code from module pathmax:
8323 # Code from module progname:
8324 # Code from module rawmemchr:
8325 # Code from module realloc-gnu:
8326 # Code from module realloc-posix:
8327 # Code from module regex:
8328 # Code from module save-cwd:
8329 # Code from module size_max:
8330 # Code from module sleep:
8331 # Code from module snippet/_Noreturn:
8332 # Code from module snippet/arg-nonnull:
8333 # Code from module snippet/c++defs:
8334 # Code from module snippet/warn-on-use:
8335 # Code from module ssize_t:
8336 # Code from module stat:
8337 # Code from module stat-time:
8338 # Code from module stdalign:
8339 # Code from module stdbool:
8340 # Code from module stddef:
8341 # Code from module stdint:
8342 # Code from module stdio:
8343 # Code from module stdlib:
8344 # Code from module strcase:
8345 # Code from module strchrnul:
8346 # Code from module strdup-posix:
8347 # Code from module streq:
8348 # Code from module strerror:
8349 # Code from module strerror-override:
8350 # Code from module string:
8351 # Code from module strings:
8352 # Code from module strndup:
8353 # Code from module strnlen:
8354 # Code from module strnlen1:
8355 # Code from module sys_stat:
8356 # Code from module sys_types:
8357 # Code from module sysexits:
8358 # Code from module threadlib:
8362 # Code from module time:
8363 # Code from module unistd:
8364 # Code from module unistd-safer:
8365 # Code from module unitypes:
8366 # Code from module uniwidth/base:
8367 # Code from module uniwidth/width:
8368 # Code from module vasnprintf:
8369 # Code from module verify:
8370 # Code from module vsnprintf:
8371 # Code from module wchar:
8372 # Code from module wcrtomb:
8373 # Code from module wctype-h:
8374 # Code from module wcwidth:
8375 # Code from module xalloc-oversized:
8376 # Code from module xsize:
8379 ac_cpp
='$CXXCPP $CPPFLAGS'
8380 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8381 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8382 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8383 if test -z "$CXX"; then
8384 if test -n "$CCC"; then
8387 if test -n "$ac_tool_prefix"; then
8388 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
8390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8391 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if ${ac_cv_prog_CXX+:} false
; then :
8395 $as_echo_n "(cached) " >&6
8397 if test -n "$CXX"; then
8398 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
8400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir
=.
8405 for ac_exec_ext
in '' $ac_executable_extensions; do
8406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 if test -n "$CXX"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8420 $as_echo "$CXX" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8427 test -n "$CXX" && break
8430 if test -z "$CXX"; then
8432 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy
$ac_prog; ac_word
=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
8439 $as_echo_n "(cached) " >&6
8441 if test -n "$ac_ct_CXX"; then
8442 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
8444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8448 test -z "$as_dir" && as_dir
=.
8449 for ac_exec_ext
in '' $ac_executable_extensions; do
8450 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_ac_ct_CXX
="$ac_prog"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
8462 if test -n "$ac_ct_CXX"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8464 $as_echo "$ac_ct_CXX" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8471 test -n "$ac_ct_CXX" && break
8474 if test "x$ac_ct_CXX" = x
; then
8477 case $cross_compiling:$ac_tool_warned in
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8481 ac_tool_warned
=yes ;;
8489 # Provide some information about the compiler.
8490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8493 for ac_option
in --version -v -V -qversion; do
8494 { { ac_try
="$ac_compiler $ac_option >&5"
8496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8500 $as_echo "$ac_try_echo"; } >&5
8501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8503 if test -s conftest.err; then
8505 ... rest of stderr output deleted ...
8506 10q' conftest.err >conftest.er1
8507 cat conftest.er1 >&5
8509 rm -f conftest.er1 conftest.err
8510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8511 test $ac_status = 0; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8515 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8516 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8533 if ac_fn_cxx_try_compile "$LINENO"; then :
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8543 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8544 if test $ac_compiler_gnu = yes; then
8549 ac_test_CXXFLAGS=${CXXFLAGS+set}
8550 ac_save_CXXFLAGS=$CXXFLAGS
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8552 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8553 if ${ac_cv_prog_cxx_g+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8557 ac_cxx_werror_flag=yes
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8571 if ac_fn_cxx_try_compile "$LINENO"; then :
8572 ac_cv_prog_cxx_g=yes
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8586 if ac_fn_cxx_try_compile "$LINENO"; then :
8589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8602 if ac_fn_cxx_try_compile "$LINENO"; then :
8603 ac_cv_prog_cxx_g=yes
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8613 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8614 if test "$ac_test_CXXFLAGS" = set; then
8615 CXXFLAGS=$ac_save_CXXFLAGS
8616 elif test $ac_cv_prog_cxx_g = yes; then
8617 if test "$GXX" = yes; then
8623 if test "$GXX" = yes; then
8630 ac_cpp='$CPP $CPPFLAGS'
8631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635 depcc="$CXX" am_compiler_list=
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8638 $as_echo_n "checking dependency style of $depcc... " >&6; }
8639 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8640 $as_echo_n "(cached) " >&6
8642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8643 # We make a subdir and do the tests there. Otherwise we can end up
8644 # making bogus files that we don't know about and never remove. For
8645 # instance it was reported that on HP-UX the gcc test will end up
8646 # making a dummy file named 'D' -- because '-MD' means "put the output
8650 # Copy depcomp to subdir because otherwise we won't find it if we're
8651 # using a relative directory.
8652 cp "$am_depcomp" conftest.dir
8654 # We will build objects and dependencies in a subdirectory because
8655 # it helps to detect inapplicable dependency modes. For instance
8656 # both Tru64's cc and ICC support -MD to output dependencies as a
8657 # side effect of compilation, but ICC will put the dependencies in
8658 # the current directory while Tru64 will put them in the object
8662 am_cv_CXX_dependencies_compiler_type=none
8663 if test "$am_compiler_list" = ""; then
8664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
8667 case " $depcc " in #(
8668 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8671 for depmode in $am_compiler_list; do
8672 # Setup a source with many dependencies, because some compilers
8673 # like to wrap large dependency lists on column 80 (with \), and
8674 # we should not choose a depcomp mode which is confused by this.
8676 # We need to recreate these files for each test, as the compiler may
8677 # overwrite some of them when testing with obscure command lines.
8678 # This happens at least with the AIX C compiler.
8680 for i in 1 2 3 4 5 6; do
8681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8682 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8683 # Solaris 10 /bin/sh.
8684 echo '/* dummy */' > sub/conftst$i.h
8686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8688 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8689 # mode. It turns out that the SunPro C++ compiler does not properly
8690 # handle '-M -o', and we need to detect this. Also, some Intel
8691 # versions had trouble with output in subdirs.
8692 am__obj=sub/conftest.${OBJEXT-o}
8693 am__minus_obj="-o $am__obj"
8696 # This depmode causes a compiler race in universal mode.
8697 test "$am__universal" = false || continue
8700 # After this tag, mechanisms are not by side-effect, so they'll
8701 # only be used when explicitly requested.
8702 if test "x$enable_dependency_tracking" = xyes; then
8708 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8709 # This compiler won't grok '-c -o', but also, the minuso test has
8710 # not run yet. These depmodes are late enough in the game, and
8711 # so weak that their functioning should not be impacted.
8712 am__obj=conftest.${OBJEXT-o}
8717 if depmode=$depmode \
8718 source=sub/conftest.c object=$am__obj \
8719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8720 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8721 >/dev/null 2>conftest.err &&
8722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8724 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8726 # icc doesn't choke on unknown options, it will just issue warnings
8727 # or remarks (even with -Werror). So we grep stderr for any message
8728 # that says an option was ignored or not supported.
8729 # When given -MP, icc 7.0 and 7.1 complain thusly:
8730 # icc: Command line warning: ignoring option '-M'; no argument required
8731 # The diagnosis changed in icc 8.0:
8732 # icc: Command line remark: option '-MP' not supported
8733 if (grep 'ignoring option' conftest.err ||
8734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8735 am_cv_CXX_dependencies_compiler_type=$depmode
8744 am_cv_CXX_dependencies_compiler_type=none
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8749 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8750 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8753 test "x$enable_dependency_tracking" != xno \
8754 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8755 am__fastdepCXX_TRUE=
8756 am__fastdepCXX_FALSE='#'
8758 am__fastdepCXX_TRUE='#'
8759 am__fastdepCXX_FALSE=
8764 # By default we simply use the C compiler to build assembly code.
8766 test "${CCAS+set}" = set || CCAS=$CC
8767 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8771 depcc="$CCAS" am_compiler_list=
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8774 $as_echo_n "checking dependency style of $depcc... " >&6; }
8775 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
8776 $as_echo_n "(cached) " >&6
8778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8779 # We make a subdir and do the tests there. Otherwise we can end up
8780 # making bogus files that we don't know about and never remove. For
8781 # instance it was reported that on HP-UX the gcc test will end up
8782 # making a dummy file named 'D' -- because '-MD' means "put the output
8786 # Copy depcomp to subdir because otherwise we won't find it if we're
8787 # using a relative directory.
8788 cp "$am_depcomp" conftest.dir
8790 # We will build objects and dependencies in a subdirectory because
8791 # it helps to detect inapplicable dependency modes. For instance
8792 # both Tru64's cc and ICC support -MD to output dependencies as a
8793 # side effect of compilation, but ICC will put the dependencies in
8794 # the current directory while Tru64 will put them in the object
8798 am_cv_CCAS_dependencies_compiler_type=none
8799 if test "$am_compiler_list" = ""; then
8800 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
8805 for depmode in $am_compiler_list; do
8806 # Setup a source with many dependencies, because some compilers
8807 # like to wrap large dependency lists on column 80 (with \), and
8808 # we should not choose a depcomp mode which is confused by this.
8810 # We need to recreate these files for each test, as the compiler may
8811 # overwrite some of them when testing with obscure command lines.
8812 # This happens at least with the AIX C compiler.
8814 for i in 1 2 3 4 5 6; do
8815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8817 # Solaris 10 /bin/sh.
8818 echo '/* dummy */' > sub/conftst$i.h
8820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8823 # mode. It turns out that the SunPro C++ compiler does not properly
8824 # handle '-M -o', and we need to detect this. Also, some Intel
8825 # versions had trouble with output in subdirs.
8826 am__obj=sub/conftest.${OBJEXT-o}
8827 am__minus_obj="-o $am__obj"
8830 # This depmode causes a compiler race in universal mode.
8831 test "$am__universal" = false || continue
8834 # After this tag, mechanisms are not by side-effect, so they'll
8835 # only be used when explicitly requested.
8836 if test "x$enable_dependency_tracking" = xyes; then
8842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8843 # This compiler won't grok '-c -o', but also, the minuso test has
8844 # not run yet. These depmodes are late enough in the game, and
8845 # so weak that their functioning should not be impacted.
8846 am__obj=conftest.${OBJEXT-o}
8851 if depmode=$depmode \
8852 source=sub/conftest.c object=$am__obj \
8853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8855 >/dev/null 2>conftest.err &&
8856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8860 # icc doesn't choke on unknown options, it will just issue warnings
8861 # or remarks (even with -Werror). So we grep stderr for any message
8862 # that says an option was ignored or not supported.
8863 # When given -MP, icc 7.0 and 7.1 complain thusly:
8864 # icc: Command line warning: ignoring option '-M'; no argument required
8865 # The diagnosis changed in icc 8.0:
8866 # icc: Command line remark: option '-MP' not supported
8867 if (grep 'ignoring option' conftest.err ||
8868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8869 am_cv_CCAS_dependencies_compiler_type=$depmode
8878 am_cv_CCAS_dependencies_compiler_type=none
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8883 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8884 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8887 test "x$enable_dependency_tracking" != xno \
8888 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8889 am__fastdepCCAS_TRUE=
8890 am__fastdepCCAS_FALSE='#'
8892 am__fastdepCCAS_TRUE='#'
8893 am__fastdepCCAS_FALSE=
8903 if test -n "$PYTHON"; then
8904 # If the user set $PYTHON, use it and don't search something else.
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8906 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8908 # split strings by '.' and convert to numeric. Append some zeros
8909 # because we need at least 4 digits for the hex conversion.
8910 # map returns an iterator in Python 3.0 and a list in 2.x
8911 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8913 # xrange is not present in Python 3.0 and range returns an iterator
8914 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8915 sys.exit(sys.hexversion < minverhex)"
8916 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8917 ($PYTHON -c "$prog") >&5 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; then :
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8922 $as_echo "yes" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8928 am_display_PYTHON=$PYTHON
8930 # Otherwise, try each interpreter until we find one that satisfies
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8933 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8934 if ${am_cv_pathless_PYTHON+:} false; then :
8935 $as_echo_n "(cached) " >&6
8938 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
8939 test "$am_cv_pathless_PYTHON" = none && break
8941 # split strings by '.' and convert to numeric. Append some zeros
8942 # because we need at least 4 digits for the hex conversion.
8943 # map returns an iterator in Python 3.0 and a list in 2.x
8944 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8946 # xrange is not present in Python 3.0 and range returns an iterator
8947 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8948 sys.exit(sys.hexversion < minverhex)"
8949 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8950 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; then :
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8959 $as_echo "$am_cv_pathless_PYTHON" >&6; }
8960 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8961 if test "$am_cv_pathless_PYTHON" = none; then
8964 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8965 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_path_PYTHON+:} false; then :
8969 $as_echo_n "(cached) " >&6
8973 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 PYTHON=$ac_cv_path_PYTHON
8995 if test -n "$PYTHON"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8997 $as_echo "$PYTHON" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9005 am_display_PYTHON=$am_cv_pathless_PYTHON
9009 if test "$PYTHON" = :; then
9010 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
9015 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
9016 if ${am_cv_python_version+:} false; then :
9017 $as_echo_n "(cached) " >&6
9019 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
9022 $as_echo "$am_cv_python_version" >&6; }
9023 PYTHON_VERSION=$am_cv_python_version
9027 PYTHON_PREFIX='${prefix}'
9029 PYTHON_EXEC_PREFIX='${exec_prefix}'
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
9034 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
9035 if ${am_cv_python_platform+:} false; then :
9036 $as_echo_n "(cached) " >&6
9038 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
9041 $as_echo "$am_cv_python_platform" >&6; }
9042 PYTHON_PLATFORM=$am_cv_python_platform
9045 # Just factor out some code duplication.
9046 am_python_setup_sysconfig="\
9048 # Prefer sysconfig over distutils.sysconfig, for better compatibility
9049 # with python 3.x. See automake bug#10227.
9053 can_use_sysconfig = 0
9055 can_use_sysconfig = 1
9056 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
9057 # <https://github.com/pypa/virtualenv/issues/118>
9059 from platform import python_implementation
9060 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
9061 can_use_sysconfig = 0
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
9067 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
9068 if ${am_cv_python_pythondir+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 if test "x$prefix" = xNONE
9073 am_py_prefix=$ac_default_prefix
9075 am_py_prefix=$prefix
9077 am_cv_python_pythondir=`$PYTHON -c "
9078 $am_python_setup_sysconfig
9079 if can_use_sysconfig:
9080 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9082 from distutils import sysconfig
9083 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9084 sys.stdout.write(sitedir)"`
9085 case $am_cv_python_pythondir in
9087 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
9088 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9091 case $am_py_prefix in
9094 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9102 $as_echo "$am_cv_python_pythondir" >&6; }
9103 pythondir=$am_cv_python_pythondir
9107 pkgpythondir=\${pythondir}/$PACKAGE
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9111 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9112 if ${am_cv_python_pyexecdir+:} false; then :
9113 $as_echo_n "(cached) " >&6
9115 if test "x$exec_prefix" = xNONE
9117 am_py_exec_prefix=$am_py_prefix
9119 am_py_exec_prefix=$exec_prefix
9121 am_cv_python_pyexecdir=`$PYTHON -c "
9122 $am_python_setup_sysconfig
9123 if can_use_sysconfig:
9124 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9126 from distutils import sysconfig
9127 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9128 sys.stdout.write(sitedir)"`
9129 case $am_cv_python_pyexecdir in
9130 $am_py_exec_prefix*)
9131 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
9132 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9135 case $am_py_exec_prefix in
9138 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9146 $as_echo "$am_cv_python_pyexecdir" >&6; }
9147 pyexecdir=$am_cv_python_pyexecdir
9151 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9160 test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
9162 # Extract the first word of "$CXX", so it can be a program name with args.
9163 set dummy $CXX; ac_word=$2
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165 $as_echo_n "checking for $ac_word... " >&6; }
9166 if ${ac_cv_prog_HAVE_CXX+:} false; then :
9167 $as_echo_n "(cached) " >&6
9169 if test -n "$HAVE_CXX"; then
9170 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179 ac_cv_prog_HAVE_CXX="yes"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
9190 HAVE_CXX=$ac_cv_prog_HAVE_CXX
9191 if test -n "$HAVE_CXX"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
9193 $as_echo "$HAVE_CXX" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9203 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9204 if ${ac_cv_path_SED+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9208 for ac_i in 1 2 3 4 5 6 7; do
9209 ac_script="$ac_script$as_nl$ac_script"
9211 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9212 { ac_script=; unset ac_script;}
9213 if test -z "$SED"; then
9214 ac_path_SED_found=false
9215 # Loop through the user's path and test for each of PROGNAME-LIST
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 test -z "$as_dir" && as_dir=.
9221 for ac_prog in sed gsed; do
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9224 as_fn_executable_p "$ac_path_SED" || continue
9225 # Check for GNU ac_path_SED and select it if it is found.
9226 # Check for GNU $ac_path_SED
9227 case `"$ac_path_SED" --version 2>&1` in
9229 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9232 $as_echo_n 0123456789 >"conftest.in"
9235 cat "conftest.in" "conftest.in" >"conftest.tmp"
9236 mv "conftest.tmp" "conftest.in"
9237 cp "conftest.in" "conftest.nl"
9238 $as_echo '' >> "conftest.nl"
9239 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9241 as_fn_arith $ac_count + 1 && ac_count=$as_val
9242 if test $ac_count -gt ${ac_path_SED_max-0}; then
9243 # Best one so far, save it but keep looking for a better one
9244 ac_cv_path_SED="$ac_path_SED"
9245 ac_path_SED_max=$ac_count
9247 # 10*(2^10) chars as input seems more than enough
9248 test $ac_count -gt 10 && break
9250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9253 $ac_path_SED_found && break 3
9258 if test -z "$ac_cv_path_SED"; then
9259 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9267 $as_echo "$ac_cv_path_SED" >&6; }
9268 SED="$ac_cv_path_SED"
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9273 $as_echo_n "checking whether NLS is requested... " >&6; }
9274 # Check whether --enable-nls was given.
9275 if test "${enable_nls+set}" = set; then :
9276 enableval=$enable_nls; USE_NLS=$enableval
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9282 $as_echo "$USE_NLS" >&6; }
9287 GETTEXT_MACRO_VERSION=0.18
9292 # Prepare PATH_SEPARATOR.
9293 # The user is always right.
9294 if test "${PATH_SEPARATOR+set}" != set; then
9295 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9296 # contains only /bin. Note that ksh looks also at the FPATH variable,
9297 # so we have to set that as well for the test.
9299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9300 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9301 || PATH_SEPARATOR=';'
9305 # Find out how to test for executable files. Don't use a zero-byte file,
9306 # as systems may use methods other than mode bits to determine executability.
9307 cat >conf$$.file <<_ASEOF
9311 chmod +x conf$$.file
9312 if test -x conf$$.file >/dev/null 2>&1; then
9313 ac_executable_p="test -x"
9315 ac_executable_p="test -f"
9319 # Extract the first word of "msgfmt", so it can be a program name with args.
9320 set dummy msgfmt; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if ${ac_cv_path_MSGFMT+:} false; then :
9324 $as_echo_n "(cached) " >&6
9328 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9332 for ac_dir in $PATH; do
9334 test -z "$ac_dir" && ac_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9337 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9338 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9339 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9340 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9347 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9351 MSGFMT="$ac_cv_path_MSGFMT"
9352 if test "$MSGFMT" != ":"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9354 $as_echo "$MSGFMT" >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9360 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9361 set dummy gmsgfmt; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_GMSGFMT+:} false; then :
9365 $as_echo_n "(cached) " >&6
9369 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9391 GMSGFMT=$ac_cv_path_GMSGFMT
9392 if test -n "$GMSGFMT"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9394 $as_echo "$GMSGFMT" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 case `$MSGFMT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
9403 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9404 *) MSGFMT_015=$MSGFMT ;;
9407 case `$GMSGFMT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
9408 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9409 *) GMSGFMT_015=$GMSGFMT ;;
9414 # Prepare PATH_SEPARATOR.
9415 # The user is always right.
9416 if test "${PATH_SEPARATOR+set}" != set; then
9417 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9418 # contains only /bin. Note that ksh looks also at the FPATH variable,
9419 # so we have to set that as well for the test.
9421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9422 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9423 || PATH_SEPARATOR=';'
9427 # Find out how to test for executable files. Don't use a zero-byte file,
9428 # as systems may use methods other than mode bits to determine executability.
9429 cat >conf$$.file <<_ASEOF
9433 chmod +x conf$$.file
9434 if test -x conf$$.file >/dev/null 2>&1; then
9435 ac_executable_p="test -x"
9437 ac_executable_p="test -f"
9441 # Extract the first word of "xgettext", so it can be a program name with args.
9442 set dummy xgettext; ac_word=$2
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444 $as_echo_n "checking for $ac_word... " >&6; }
9445 if ${ac_cv_path_XGETTEXT+:} false; then :
9446 $as_echo_n "(cached) " >&6
9450 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9453 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9454 for ac_dir in $PATH; do
9456 test -z "$ac_dir" && ac_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9459 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9460 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9461 (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
9462 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9473 XGETTEXT="$ac_cv_path_XGETTEXT"
9474 if test "$XGETTEXT" != ":"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9476 $as_echo "$XGETTEXT" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 case `$XGETTEXT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
9485 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9486 *) XGETTEXT_015=$XGETTEXT ;;
9491 # Prepare PATH_SEPARATOR.
9492 # The user is always right.
9493 if test "${PATH_SEPARATOR+set}" != set; then
9494 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9495 # contains only /bin. Note that ksh looks also at the FPATH variable,
9496 # so we have to set that as well for the test.
9498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9499 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9500 || PATH_SEPARATOR=';'
9504 # Find out how to test for executable files. Don't use a zero-byte file,
9505 # as systems may use methods other than mode bits to determine executability.
9506 cat >conf$$.file <<_ASEOF
9510 chmod +x conf$$.file
9511 if test -x conf$$.file >/dev/null 2>&1; then
9512 ac_executable_p="test -x"
9514 ac_executable_p="test -f"
9518 # Extract the first word of "msgmerge", so it can be a program name with args.
9519 set dummy msgmerge; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_path_MSGMERGE+:} false; then :
9523 $as_echo_n "(cached) " >&6
9527 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9530 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9531 for ac_dir in $PATH; do
9533 test -z "$ac_dir" && ac_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9536 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9537 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9538 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9545 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9549 MSGMERGE="$ac_cv_path_MSGMERGE"
9550 if test "$MSGMERGE" != ":"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9552 $as_echo "$MSGMERGE" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9559 test -n "$localedir" || localedir='${datadir}/locale'
9562 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
9565 ac_config_commands="$ac_config_commands po-directories"
9569 if test "X$prefix" = "XNONE"; then
9570 acl_final_prefix="$ac_default_prefix"
9572 acl_final_prefix="$prefix"
9574 if test "X$exec_prefix" = "XNONE"; then
9575 acl_final_exec_prefix='${prefix}'
9577 acl_final_exec_prefix="$exec_prefix"
9579 acl_save_prefix="$prefix"
9580 prefix="$acl_final_prefix"
9581 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9582 prefix="$acl_save_prefix"
9586 # Check whether --with-gnu-ld was given.
9587 if test "${with_gnu_ld+set}" = set; then :
9588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9593 # Prepare PATH_SEPARATOR.
9594 # The user is always right.
9595 if test "${PATH_SEPARATOR+set}" != set; then
9596 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9597 # contains only /bin. Note that ksh looks also at the FPATH variable,
9598 # so we have to set that as well for the test.
9600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9601 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9602 || PATH_SEPARATOR=';'
9606 if test -n "$LD"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
9608 $as_echo_n "checking for ld... " >&6; }
9609 elif test "$GCC" = yes; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9611 $as_echo_n "checking for ld used by $CC... " >&6; }
9612 elif test "$with_gnu_ld" = yes; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9614 $as_echo_n "checking for GNU ld... " >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9617 $as_echo_n "checking for non-GNU ld... " >&6; }
9619 if test -n "$LD"; then
9620 # Let the user override the test with a path.
9623 if ${acl_cv_path_LD+:} false; then :
9624 $as_echo_n "(cached) " >&6
9627 acl_cv_path_LD= # Final result of this test
9628 ac_prog=ld # Program to search in $PATH
9629 if test "$GCC" = yes; then
9630 # Check if gcc -print-prog-name=ld gives a path.
9633 # gcc leaves a trailing carriage return which upsets mingw
9634 acl_output=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
9636 acl_output=`($CC -print-prog-name=ld
) 2>&5` ;;
9639 # Accept absolute paths.
9641 re_direlt='/[^/][^/]*/\.\./'
9642 # Canonicalize the pathname of ld
9643 acl_output=`echo "$acl_output" |
sed 's%\\\\%/%g'`
9644 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
9645 acl_output=`echo $acl_output |
sed "s%$re_direlt%/%"`
9647 # Got the pathname. No search in PATH is needed.
9648 acl_cv_path_LD="$acl_output"
9652 # If it fails, then pretend we aren't using GCC.
9655 # If it is relative, then search for the first ld in PATH.
9660 if test -n "$ac_prog"; then
9661 # Search for $ac_prog in $PATH.
9662 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9663 for ac_dir in $PATH; do
9665 test -z "$ac_dir" && ac_dir=.
9666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9667 acl_cv_path_LD="$ac_dir/$ac_prog"
9668 # Check to see if the program is GNU ld. I'd rather use --version,
9669 # but apparently some variants of GNU ld only accept -v.
9670 # Break only if it was the GNU/non-GNU ld that we prefer.
9671 case `"$acl_cv_path_LD" -v 2>&1 </dev
/null
` in
9672 *GNU* | *'with BFD'*)
9673 test "$with_gnu_ld" != no && break
9676 test "$with_gnu_ld" != yes && break
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9687 #if defined __powerpc64__ || defined _ARCH_PPC64
9694 if ac_fn_c_try_compile "$LINENO"; then :
9695 # The compiler produces 64-bit code. Add option '-b64' so that the
9696 # linker groks 64-bit object files.
9697 case "$acl_cv_path_LD " in
9699 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 #if defined __sparcv9 || defined __arch64__
9715 if ac_fn_c_try_compile "$LINENO"; then :
9718 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
9719 # so that the linker groks 32-bit object files.
9720 case "$acl_cv_path_LD " in
9721 *" -m elf32_sparc "*) ;;
9722 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 LD="$acl_cv_path_LD"
9734 if test -n "$LD"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9736 $as_echo "$LD" >&6; }
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9740 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9744 if ${acl_cv_prog_gnu_ld+:} false; then :
9745 $as_echo_n "(cached) " >&6
9747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9748 case `$LD -v 2>&1 </dev
/null
` in
9749 *GNU* | *'with BFD'*)
9750 acl_cv_prog_gnu_ld=yes
9753 acl_cv_prog_gnu_ld=no
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9758 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9759 with_gnu_ld=$acl_cv_prog_gnu_ld
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9765 $as_echo_n "checking for shared library run path origin... " >&6; }
9766 if ${acl_cv_rpath+:} false; then :
9767 $as_echo_n "(cached) " >&6
9770 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9771 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9778 $as_echo "$acl_cv_rpath" >&6; }
9780 acl_libext="$acl_cv_libext"
9781 acl_shlibext="$acl_cv_shlibext"
9782 acl_libname_spec="$acl_cv_libname_spec"
9783 acl_library_names_spec="$acl_cv_library_names_spec"
9784 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9785 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9786 acl_hardcode_direct="$acl_cv_hardcode_direct"
9787 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9788 # Check whether --enable-rpath was given.
9789 if test "${enable_rpath+set}" = set; then :
9790 enableval=$enable_rpath; :
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
9799 $as_echo_n "checking 32-bit host C ABI... " >&6; }
9800 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
9801 $as_echo_n "(cached) " >&6
9803 if test -n "$gl_cv_host_cpu_c_abi"; then
9804 case "$gl_cv_host_cpu_c_abi" in
9805 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
9806 gl_cv_host_cpu_c_abi_32bit=yes ;;
9808 gl_cv_host_cpu_c_abi_32bit=no ;;
9814 gl_cv_host_cpu_c_abi_32bit=yes
9818 # On x86_64 systems, the C compiler may be generating code in one of
9820 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
9821 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
9822 # with native Windows (mingw, MSVC).
9823 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
9824 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 #if (defined __x86_64__ || defined __amd64__ \
9828 || defined _M_X64 || defined _M_AMD64) \
9829 && !(defined __ILP32__ || defined _ILP32)
9836 if ac_fn_c_try_compile "$LINENO"; then :
9837 gl_cv_host_cpu_c_abi_32bit=no
9839 gl_cv_host_cpu_c_abi_32bit=yes
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845 # Assume arm with EABI.
9846 # On arm64 systems, the C compiler may be generating code in one of
9848 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
9849 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
9850 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
9860 if ac_fn_c_try_compile "$LINENO"; then :
9861 gl_cv_host_cpu_c_abi_32bit=no
9863 gl_cv_host_cpu_c_abi_32bit=yes
9865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
9869 # On hppa, the C compiler may be generating 32-bit code or 64-bit
9870 # code. In the latter case, it defines _LP64 and __LP64__.
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881 gl_cv_host_cpu_c_abi_32bit=no
9883 gl_cv_host_cpu_c_abi_32bit=yes
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
9890 # 32-bit code. In the latter case, it defines _ILP32.
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9900 if ac_fn_c_try_compile "$LINENO"; then :
9901 gl_cv_host_cpu_c_abi_32bit=yes
9903 gl_cv_host_cpu_c_abi_32bit=no
9905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 gl_cv_host_cpu_c_abi_32bit=no
9923 gl_cv_host_cpu_c_abi_32bit=yes
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
9930 # No need to distinguish them here; the caller may distinguish
9931 # them based on the OS.
9932 # On powerpc64 systems, the C compiler may still be generating
9933 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
9934 # be generating 64-bit code.
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 #if defined __powerpc64__ || defined _ARCH_PPC64
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 gl_cv_host_cpu_c_abi_32bit=no
9947 gl_cv_host_cpu_c_abi_32bit=yes
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 gl_cv_host_cpu_c_abi_32bit=yes
9957 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9958 # Size of 'long' and 'void *':
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 #if defined __LP64__
9968 if ac_fn_c_try_compile "$LINENO"; then :
9969 gl_cv_host_cpu_c_abi_32bit=no
9971 gl_cv_host_cpu_c_abi_32bit=yes
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9978 # or 31-bit (= s390) code.
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 #if defined __LP64__ || defined __s390x__
9988 if ac_fn_c_try_compile "$LINENO"; then :
9989 gl_cv_host_cpu_c_abi_32bit=no
9991 gl_cv_host_cpu_c_abi_32bit=yes
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 # UltraSPARCs running Linux have `uname
-m` = "sparc64", but the
9998 # C compiler still generates 32-bit code.
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #if defined __sparcv9 || defined __arch64__
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 gl_cv_host_cpu_c_abi_32bit=no
10011 gl_cv_host_cpu_c_abi_32bit=yes
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 gl_cv_host_cpu_c_abi_32bit=no
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
10024 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
10026 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10035 $as_echo_n "checking for 64-bit host... " >&6; }
10036 if ${gl_cv_solaris_64bit+:} false; then :
10037 $as_echo_n "(cached) " >&6
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10048 if ac_fn_c_try_compile "$LINENO"; then :
10049 gl_cv_solaris_64bit=yes
10051 gl_cv_solaris_64bit=no
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10057 $as_echo "$gl_cv_solaris_64bit" >&6; };;
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
10061 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
10062 if ${acl_cv_libdirstems+:} false; then :
10063 $as_echo_n "(cached) " >&6
10069 if test $gl_cv_solaris_64bit = yes; then
10070 acl_libdirstem=lib/64
10071 case "$host_cpu" in
10072 sparc*) acl_libdirstem2=lib/sparcv9 ;;
10073 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10078 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
10079 searchpath=`(if test -f /usr
/bin
/gcc \
10080 && LC_ALL
=C
/usr
/bin
/gcc
-print-search-dirs >/dev
/null
2>/dev
/null
; then \
10081 LC_ALL
=C
/usr
/bin
/gcc
-print-search-dirs; \
10083 LC_ALL
=C
$CC -print-search-dirs; \
10085 |
sed -n -e 's,^libraries: ,,p' |
sed -e 's,^=,,'`
10086 if test -n "$searchpath"; then
10087 acl_save_IFS="${IFS= }"; IFS=":"
10088 for searchdir in $searchpath; do
10089 if test -d "$searchdir"; then
10090 case "$searchdir" in
10091 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10093 # Better ignore directories of this form. They are misleading.
10095 *) searchdir=`cd "$searchdir" && pwd`
10096 case "$searchdir" in
10097 */lib64 ) acl_libdirstem=lib64 ;;
10102 IFS="$acl_save_IFS"
10107 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10108 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
10112 $as_echo "$acl_cv_libdirstems" >&6; }
10113 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
10114 acl_libdirstem=`echo "$acl_cv_libdirstems" |
sed -e 's/,.*//'`
10115 acl_libdirstem2=`echo "$acl_cv_libdirstems" |
sed -e '/,/s/.*,//'`
10129 acl_save_prefix="$prefix"
10130 prefix="$acl_final_prefix"
10131 acl_save_exec_prefix="$exec_prefix"
10132 exec_prefix="$acl_final_exec_prefix"
10134 eval additional_includedir=\"$includedir\"
10135 eval additional_libdir=\"$libdir\"
10137 exec_prefix="$acl_save_exec_prefix"
10138 prefix="$acl_save_prefix"
10141 # Check whether --with-libiconv-prefix was given.
10142 if test "${with_libiconv_prefix+set}" = set; then :
10143 withval=$with_libiconv_prefix;
10144 if test "X$withval" = "Xno"; then
10147 if test "X$withval" = "X"; then
10149 acl_save_prefix="$prefix"
10150 prefix="$acl_final_prefix"
10151 acl_save_exec_prefix="$exec_prefix"
10152 exec_prefix="$acl_final_exec_prefix"
10154 eval additional_includedir=\"$includedir\"
10155 eval additional_libdir=\"$libdir\"
10157 exec_prefix="$acl_save_exec_prefix"
10158 prefix="$acl_save_prefix"
10161 additional_includedir="$withval/include"
10162 additional_libdir="$withval/$acl_libdirstem"
10163 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10164 && test ! -d "$withval/$acl_libdirstem"; then
10165 additional_libdir="$withval/$acl_libdirstem2"
10179 names_already_handled=
10180 names_next_round='iconv '
10181 while test -n "$names_next_round"; do
10182 names_this_round="$names_next_round"
10184 for name in $names_this_round; do
10186 for n in $names_already_handled; do
10187 if test "$n" = "$name"; then
10188 already_handled=yes
10192 if test -z "$already_handled"; then
10193 names_already_handled="$names_already_handled $name"
10194 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10195 eval value=\"\$HAVE_LIB$uppername\"
10196 if test -n "$value"; then
10197 if test "$value" = yes; then
10198 eval value=\"\$LIB$uppername\"
10199 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10200 eval value=\"\$LTLIB$uppername\"
10201 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10210 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10211 if test -n "$acl_shlibext"; then
10212 shrext=".$acl_shlibext" # typically: shrext=.so
10216 if test $use_additional = yes; then
10217 dir="$additional_libdir"
10218 if test -n "$acl_shlibext"; then
10219 if test -f "$dir/$libname$shrext"; then
10221 found_so="$dir/$libname$shrext"
10223 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10224 ver=`(cd "$dir" && \
10225 for f
in "$libname$shrext".
*; do echo "$f"; done \
10226 |
sed -e "s,^$libname$shrext\\\\.,," \
10227 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10228 |
sed 1q
) 2>/dev
/null
`
10229 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10231 found_so="$dir/$libname$shrext.$ver"
10234 eval library_names=\"$acl_library_names_spec\"
10235 for f in $library_names; do
10236 if test -f "$dir/$f"; then
10245 if test "X$found_dir" = "X"; then
10246 if test -f "$dir/$libname.$acl_libext"; then
10248 found_a="$dir/$libname.$acl_libext"
10251 if test "X$found_dir" != "X"; then
10252 if test -f "$dir/$libname.la"; then
10253 found_la="$dir/$libname.la"
10257 if test "X$found_dir" = "X"; then
10258 for x in $LDFLAGS $LTLIBICONV; do
10260 acl_save_prefix="$prefix"
10261 prefix="$acl_final_prefix"
10262 acl_save_exec_prefix="$exec_prefix"
10263 exec_prefix="$acl_final_exec_prefix"
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10270 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10271 if test -n "$acl_shlibext"; then
10272 if test -f "$dir/$libname$shrext"; then
10274 found_so="$dir/$libname$shrext"
10276 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10277 ver=`(cd "$dir" && \
10278 for f
in "$libname$shrext".
*; do echo "$f"; done \
10279 |
sed -e "s,^$libname$shrext\\\\.,," \
10280 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10281 |
sed 1q
) 2>/dev
/null
`
10282 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10284 found_so="$dir/$libname$shrext.$ver"
10287 eval library_names=\"$acl_library_names_spec\"
10288 for f in $library_names; do
10289 if test -f "$dir/$f"; then
10298 if test "X$found_dir" = "X"; then
10299 if test -f "$dir/$libname.$acl_libext"; then
10301 found_a="$dir/$libname.$acl_libext"
10304 if test "X$found_dir" != "X"; then
10305 if test -f "$dir/$libname.la"; then
10306 found_la="$dir/$libname.la"
10311 if test "X$found_dir" != "X"; then
10316 if test "X$found_dir" != "X"; then
10317 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10318 if test "X$found_so" != "X"; then
10319 if test "$enable_rpath" = no \
10320 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10321 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10322 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10325 for x in $ltrpathdirs; do
10326 if test "X$x" = "X$found_dir"; then
10331 if test -z "$haveit"; then
10332 ltrpathdirs="$ltrpathdirs $found_dir"
10334 if test "$acl_hardcode_direct" = yes; then
10335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10337 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10338 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10340 for x in $rpathdirs; do
10341 if test "X$x" = "X$found_dir"; then
10346 if test -z "$haveit"; then
10347 rpathdirs="$rpathdirs $found_dir"
10351 for x in $LDFLAGS $LIBICONV; do
10353 acl_save_prefix="$prefix"
10354 prefix="$acl_final_prefix"
10355 acl_save_exec_prefix="$exec_prefix"
10356 exec_prefix="$acl_final_exec_prefix"
10358 exec_prefix="$acl_save_exec_prefix"
10359 prefix="$acl_save_prefix"
10361 if test "X$x" = "X-L$found_dir"; then
10366 if test -z "$haveit"; then
10367 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10369 if test "$acl_hardcode_minus_L" != no; then
10370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10372 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10378 if test "X$found_a" != "X"; then
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10381 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10384 additional_includedir=
10385 case "$found_dir" in
10386 */$acl_libdirstem | */$acl_libdirstem/)
10387 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10388 if test "$name" = 'iconv'; then
10389 LIBICONV_PREFIX="$basedir"
10391 additional_includedir="$basedir/include"
10393 */$acl_libdirstem2 | */$acl_libdirstem2/)
10394 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10395 if test "$name" = 'iconv'; then
10396 LIBICONV_PREFIX="$basedir"
10398 additional_includedir="$basedir/include"
10401 if test "X$additional_includedir" != "X"; then
10402 if test "X$additional_includedir" != "X/usr/include"; then
10404 if test "X$additional_includedir" = "X/usr/local/include"; then
10405 if test -n "$GCC"; then
10407 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10411 if test -z "$haveit"; then
10412 for x in $CPPFLAGS $INCICONV; do
10414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 acl_save_exec_prefix="$exec_prefix"
10417 exec_prefix="$acl_final_exec_prefix"
10419 exec_prefix="$acl_save_exec_prefix"
10420 prefix="$acl_save_prefix"
10422 if test "X$x" = "X-I$additional_includedir"; then
10427 if test -z "$haveit"; then
10428 if test -d "$additional_includedir"; then
10429 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10435 if test -n "$found_la"; then
10436 save_libdir="$libdir"
10437 case "$found_la" in
10438 */* | *\\*) . "$found_la" ;;
10439 *) . "./$found_la" ;;
10441 libdir="$save_libdir"
10442 for dep in $dependency_libs; do
10445 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10446 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10447 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10449 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10450 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10451 if test -n "$GCC"; then
10453 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10457 if test -z "$haveit"; then
10459 for x in $LDFLAGS $LIBICONV; do
10461 acl_save_prefix="$prefix"
10462 prefix="$acl_final_prefix"
10463 acl_save_exec_prefix="$exec_prefix"
10464 exec_prefix="$acl_final_exec_prefix"
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10469 if test "X$x" = "X-L$additional_libdir"; then
10474 if test -z "$haveit"; then
10475 if test -d "$additional_libdir"; then
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10480 for x in $LDFLAGS $LTLIBICONV; do
10482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10490 if test "X$x" = "X-L$additional_libdir"; then
10495 if test -z "$haveit"; then
10496 if test -d "$additional_libdir"; then
10497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10504 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10505 if test "$enable_rpath" != no; then
10507 for x in $rpathdirs; do
10508 if test "X$x" = "X$dir"; then
10513 if test -z "$haveit"; then
10514 rpathdirs="$rpathdirs $dir"
10517 for x in $ltrpathdirs; do
10518 if test "X$x" = "X$dir"; then
10523 if test -z "$haveit"; then
10524 ltrpathdirs="$ltrpathdirs $dir"
10529 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10532 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10535 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10542 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10549 if test "X$rpathdirs" != "X"; then
10550 if test -n "$acl_hardcode_libdir_separator"; then
10552 for found_dir in $rpathdirs; do
10553 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10555 acl_save_libdir="$libdir"
10557 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10558 libdir="$acl_save_libdir"
10559 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10561 for found_dir in $rpathdirs; do
10562 acl_save_libdir="$libdir"
10563 libdir="$found_dir"
10564 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10565 libdir="$acl_save_libdir"
10566 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10570 if test "X$ltrpathdirs" != "X"; then
10571 for found_dir in $ltrpathdirs; do
10572 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10606 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10607 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 gt_save_LIBS="$LIBS"
10611 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 #include <CoreFoundation/CFPreferences.h>
10618 CFPreferencesCopyAppValue(NULL, NULL)
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 gt_cv_func_CFPreferencesCopyAppValue=yes
10626 gt_cv_func_CFPreferencesCopyAppValue=no
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS="$gt_save_LIBS"
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10633 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10634 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10636 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10640 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10641 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 gt_save_LIBS="$LIBS"
10645 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include <CoreFoundation/CFLocale.h>
10652 CFLocaleCopyCurrent();
10657 if ac_fn_c_try_link "$LINENO"; then :
10658 gt_cv_func_CFLocaleCopyCurrent=yes
10660 gt_cv_func_CFLocaleCopyCurrent=no
10662 rm -f core conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 LIBS="$gt_save_LIBS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10667 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10668 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10670 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10674 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10675 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10687 case " $gt_needs " in
10688 *" need-formatstring-macros "*) gt_api_version=3 ;;
10689 *" need-ngettext "*) gt_api_version=2 ;;
10690 *) gt_api_version=1 ;;
10692 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10693 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10695 if test "$USE_NLS" = "yes"; then
10696 gt_use_preinstalled_gnugettext=no
10699 if test $gt_api_version -ge 3; then
10700 gt_revision_test_code='
10701 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10702 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10704 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10707 gt_revision_test_code=
10709 if test $gt_api_version -ge 2; then
10710 gt_expression_test_code=' + * ngettext ("", "", 0)'
10712 gt_expression_test_code=
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10716 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10717 if eval \${$gt_func_gnugettext_libc+:} false; then :
10718 $as_echo_n "(cached) " >&6
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #include <libintl.h>
10724 $gt_revision_test_code
10725 extern int _nl_msg_cat_cntr;
10726 extern int *_nl_domain_bindings;
10732 bindtextdomain ("", "");
10733 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 eval "$gt_func_gnugettext_libc=yes"
10742 eval "$gt_func_gnugettext_libc=no"
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10747 eval ac_res=\$$gt_func_gnugettext_libc
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10749 $as_echo "$ac_res" >&6; }
10751 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10757 am_save_CPPFLAGS="$CPPFLAGS"
10759 for element in $INCICONV; do
10761 for x in $CPPFLAGS; do
10763 acl_save_prefix="$prefix"
10764 prefix="$acl_final_prefix"
10765 acl_save_exec_prefix="$exec_prefix"
10766 exec_prefix="$acl_final_exec_prefix"
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10771 if test "X$x" = "X$element"; then
10776 if test -z "$haveit"; then
10777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10783 $as_echo_n "checking for iconv... " >&6; }
10784 if ${am_cv_func_iconv+:} false; then :
10785 $as_echo_n "(cached) " >&6
10788 am_cv_func_iconv="no, consider installing GNU libiconv"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10793 #include <stdlib.h>
10799 iconv_t cd = iconv_open("","");
10800 iconv(cd,NULL,NULL,NULL,NULL);
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 am_cv_func_iconv=yes
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 if test "$am_cv_func_iconv" != yes; then
10812 am_save_LIBS="$LIBS"
10813 LIBS="$LIBS $LIBICONV"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 #include <stdlib.h>
10823 iconv_t cd = iconv_open("","");
10824 iconv(cd,NULL,NULL,NULL,NULL);
10830 if ac_fn_c_try_link "$LINENO"; then :
10831 am_cv_lib_iconv=yes
10832 am_cv_func_iconv=yes
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS="$am_save_LIBS"
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10841 $as_echo "$am_cv_func_iconv" >&6; }
10842 if test "$am_cv_func_iconv" = yes; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10844 $as_echo_n "checking for working iconv... " >&6; }
10845 if ${am_cv_func_iconv_works+:} false; then :
10846 $as_echo_n "(cached) " >&6
10849 am_save_LIBS="$LIBS"
10850 if test $am_cv_lib_iconv = yes; then
10851 LIBS="$LIBS $LIBICONV"
10853 if test "$cross_compiling" = yes; then :
10856 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10857 *) am_cv_func_iconv_works="guessing yes" ;;
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10865 #include <string.h>
10869 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10872 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10873 if (cd_utf8_to_88591 != (iconv_t)(-1))
10875 static const char input[] = "\342\202\254"; /* EURO SIGN */
10877 const char *inptr = input;
10878 size_t inbytesleft = strlen (input);
10879 char *outptr = buf;
10880 size_t outbytesleft = sizeof (buf);
10881 size_t res = iconv (cd_utf8_to_88591,
10882 (char **) &inptr, &inbytesleft,
10883 &outptr, &outbytesleft);
10886 iconv_close (cd_utf8_to_88591);
10889 /* Test against Solaris 10 bug: Failures are not distinguishable from
10890 successful returns. */
10892 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10893 if (cd_ascii_to_88591 != (iconv_t)(-1))
10895 static const char input[] = "\263";
10897 const char *inptr = input;
10898 size_t inbytesleft = strlen (input);
10899 char *outptr = buf;
10900 size_t outbytesleft = sizeof (buf);
10901 size_t res = iconv (cd_ascii_to_88591,
10902 (char **) &inptr, &inbytesleft,
10903 &outptr, &outbytesleft);
10906 iconv_close (cd_ascii_to_88591);
10909 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10911 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10912 if (cd_88591_to_utf8 != (iconv_t)(-1))
10914 static const char input[] = "\304";
10915 static char buf[2] = { (char)0xDE, (char)0xAD };
10916 const char *inptr = input;
10917 size_t inbytesleft = 1;
10918 char *outptr = buf;
10919 size_t outbytesleft = 1;
10920 size_t res = iconv (cd_88591_to_utf8,
10921 (char **) &inptr, &inbytesleft,
10922 &outptr, &outbytesleft);
10923 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10925 iconv_close (cd_88591_to_utf8);
10928 #if 0 /* This bug could be worked around by the caller. */
10929 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10931 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10932 if (cd_88591_to_utf8 != (iconv_t)(-1))
10934 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10936 const char *inptr = input;
10937 size_t inbytesleft = strlen (input);
10938 char *outptr = buf;
10939 size_t outbytesleft = sizeof (buf);
10940 size_t res = iconv (cd_88591_to_utf8,
10941 (char **) &inptr, &inbytesleft,
10942 &outptr, &outbytesleft);
10945 iconv_close (cd_88591_to_utf8);
10949 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10951 if (/* Try standardized names. */
10952 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10953 /* Try IRIX, OSF/1 names. */
10954 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10955 /* Try AIX names. */
10956 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10957 /* Try HP-UX names. */
10958 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10963 if ac_fn_c_try_run "$LINENO"; then :
10964 am_cv_func_iconv_works=yes
10966 am_cv_func_iconv_works=no
10968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10969 conftest.$ac_objext conftest.beam conftest.$ac_ext
10972 LIBS="$am_save_LIBS"
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10976 $as_echo "$am_cv_func_iconv_works" >&6; }
10977 case "$am_cv_func_iconv_works" in
10978 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10979 *) am_func_iconv=yes ;;
10982 am_func_iconv=no am_cv_lib_iconv=no
10984 if test "$am_func_iconv" = yes; then
10986 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10989 if test "$am_cv_lib_iconv" = yes; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10991 $as_echo_n "checking how to link with libiconv... " >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10993 $as_echo "$LIBICONV" >&6; }
10995 CPPFLAGS="$am_save_CPPFLAGS"
11011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11016 eval additional_includedir=\"$includedir\"
11017 eval additional_libdir=\"$libdir\"
11019 exec_prefix="$acl_save_exec_prefix"
11020 prefix="$acl_save_prefix"
11023 # Check whether --with-libintl-prefix was given.
11024 if test "${with_libintl_prefix+set}" = set; then :
11025 withval=$with_libintl_prefix;
11026 if test "X$withval" = "Xno"; then
11029 if test "X$withval" = "X"; then
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11036 eval additional_includedir=\"$includedir\"
11037 eval additional_libdir=\"$libdir\"
11039 exec_prefix="$acl_save_exec_prefix"
11040 prefix="$acl_save_prefix"
11043 additional_includedir="$withval/include"
11044 additional_libdir="$withval/$acl_libdirstem"
11045 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11046 && test ! -d "$withval/$acl_libdirstem"; then
11047 additional_libdir="$withval/$acl_libdirstem2"
11061 names_already_handled=
11062 names_next_round='intl '
11063 while test -n "$names_next_round"; do
11064 names_this_round="$names_next_round"
11066 for name in $names_this_round; do
11068 for n in $names_already_handled; do
11069 if test "$n" = "$name"; then
11070 already_handled=yes
11074 if test -z "$already_handled"; then
11075 names_already_handled="$names_already_handled $name"
11076 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11077 eval value=\"\$HAVE_LIB$uppername\"
11078 if test -n "$value"; then
11079 if test "$value" = yes; then
11080 eval value=\"\$LIB$uppername\"
11081 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11082 eval value=\"\$LTLIB$uppername\"
11083 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11092 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11093 if test -n "$acl_shlibext"; then
11094 shrext=".$acl_shlibext" # typically: shrext=.so
11098 if test $use_additional = yes; then
11099 dir="$additional_libdir"
11100 if test -n "$acl_shlibext"; then
11101 if test -f "$dir/$libname$shrext"; then
11103 found_so="$dir/$libname$shrext"
11105 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11106 ver=`(cd "$dir" && \
11107 for f
in "$libname$shrext".
*; do echo "$f"; done \
11108 |
sed -e "s,^$libname$shrext\\\\.,," \
11109 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11110 |
sed 1q
) 2>/dev
/null
`
11111 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11113 found_so="$dir/$libname$shrext.$ver"
11116 eval library_names=\"$acl_library_names_spec\"
11117 for f in $library_names; do
11118 if test -f "$dir/$f"; then
11127 if test "X$found_dir" = "X"; then
11128 if test -f "$dir/$libname.$acl_libext"; then
11130 found_a="$dir/$libname.$acl_libext"
11133 if test "X$found_dir" != "X"; then
11134 if test -f "$dir/$libname.la"; then
11135 found_la="$dir/$libname.la"
11139 if test "X$found_dir" = "X"; then
11140 for x in $LDFLAGS $LTLIBINTL; do
11142 acl_save_prefix="$prefix"
11143 prefix="$acl_final_prefix"
11144 acl_save_exec_prefix="$exec_prefix"
11145 exec_prefix="$acl_final_exec_prefix"
11147 exec_prefix="$acl_save_exec_prefix"
11148 prefix="$acl_save_prefix"
11152 dir=`echo "X$x" |
sed -e 's/^X-L//'`
11153 if test -n "$acl_shlibext"; then
11154 if test -f "$dir/$libname$shrext"; then
11156 found_so="$dir/$libname$shrext"
11158 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11159 ver=`(cd "$dir" && \
11160 for f
in "$libname$shrext".
*; do echo "$f"; done \
11161 |
sed -e "s,^$libname$shrext\\\\.,," \
11162 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11163 |
sed 1q
) 2>/dev
/null
`
11164 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11166 found_so="$dir/$libname$shrext.$ver"
11169 eval library_names=\"$acl_library_names_spec\"
11170 for f in $library_names; do
11171 if test -f "$dir/$f"; then
11180 if test "X$found_dir" = "X"; then
11181 if test -f "$dir/$libname.$acl_libext"; then
11183 found_a="$dir/$libname.$acl_libext"
11186 if test "X$found_dir" != "X"; then
11187 if test -f "$dir/$libname.la"; then
11188 found_la="$dir/$libname.la"
11193 if test "X$found_dir" != "X"; then
11198 if test "X$found_dir" != "X"; then
11199 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11200 if test "X$found_so" != "X"; then
11201 if test "$enable_rpath" = no \
11202 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11203 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11207 for x in $ltrpathdirs; do
11208 if test "X$x" = "X$found_dir"; then
11213 if test -z "$haveit"; then
11214 ltrpathdirs="$ltrpathdirs $found_dir"
11216 if test "$acl_hardcode_direct" = yes; then
11217 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11219 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11220 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11222 for x in $rpathdirs; do
11223 if test "X$x" = "X$found_dir"; then
11228 if test -z "$haveit"; then
11229 rpathdirs="$rpathdirs $found_dir"
11233 for x in $LDFLAGS $LIBINTL; do
11235 acl_save_prefix="$prefix"
11236 prefix="$acl_final_prefix"
11237 acl_save_exec_prefix="$exec_prefix"
11238 exec_prefix="$acl_final_exec_prefix"
11240 exec_prefix="$acl_save_exec_prefix"
11241 prefix="$acl_save_prefix"
11243 if test "X$x" = "X-L$found_dir"; then
11248 if test -z "$haveit"; then
11249 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11251 if test "$acl_hardcode_minus_L" != no; then
11252 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11260 if test "X$found_a" != "X"; then
11261 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11263 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11266 additional_includedir=
11267 case "$found_dir" in
11268 */$acl_libdirstem | */$acl_libdirstem/)
11269 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11270 if test "$name" = 'intl'; then
11271 LIBINTL_PREFIX="$basedir"
11273 additional_includedir="$basedir/include"
11275 */$acl_libdirstem2 | */$acl_libdirstem2/)
11276 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11277 if test "$name" = 'intl'; then
11278 LIBINTL_PREFIX="$basedir"
11280 additional_includedir="$basedir/include"
11283 if test "X$additional_includedir" != "X"; then
11284 if test "X$additional_includedir" != "X/usr/include"; then
11286 if test "X$additional_includedir" = "X/usr/local/include"; then
11287 if test -n "$GCC"; then
11289 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11293 if test -z "$haveit"; then
11294 for x in $CPPFLAGS $INCINTL; do
11296 acl_save_prefix="$prefix"
11297 prefix="$acl_final_prefix"
11298 acl_save_exec_prefix="$exec_prefix"
11299 exec_prefix="$acl_final_exec_prefix"
11301 exec_prefix="$acl_save_exec_prefix"
11302 prefix="$acl_save_prefix"
11304 if test "X$x" = "X-I$additional_includedir"; then
11309 if test -z "$haveit"; then
11310 if test -d "$additional_includedir"; then
11311 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11317 if test -n "$found_la"; then
11318 save_libdir="$libdir"
11319 case "$found_la" in
11320 */* | *\\*) . "$found_la" ;;
11321 *) . "./$found_la" ;;
11323 libdir="$save_libdir"
11324 for dep in $dependency_libs; do
11327 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
11328 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11329 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11331 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11332 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11333 if test -n "$GCC"; then
11335 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11339 if test -z "$haveit"; then
11341 for x in $LDFLAGS $LIBINTL; do
11343 acl_save_prefix="$prefix"
11344 prefix="$acl_final_prefix"
11345 acl_save_exec_prefix="$exec_prefix"
11346 exec_prefix="$acl_final_exec_prefix"
11348 exec_prefix="$acl_save_exec_prefix"
11349 prefix="$acl_save_prefix"
11351 if test "X$x" = "X-L$additional_libdir"; then
11356 if test -z "$haveit"; then
11357 if test -d "$additional_libdir"; then
11358 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11362 for x in $LDFLAGS $LTLIBINTL; do
11364 acl_save_prefix="$prefix"
11365 prefix="$acl_final_prefix"
11366 acl_save_exec_prefix="$exec_prefix"
11367 exec_prefix="$acl_final_exec_prefix"
11369 exec_prefix="$acl_save_exec_prefix"
11370 prefix="$acl_save_prefix"
11372 if test "X$x" = "X-L$additional_libdir"; then
11377 if test -z "$haveit"; then
11378 if test -d "$additional_libdir"; then
11379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11386 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
11387 if test "$enable_rpath" != no; then
11389 for x in $rpathdirs; do
11390 if test "X$x" = "X$dir"; then
11395 if test -z "$haveit"; then
11396 rpathdirs="$rpathdirs $dir"
11399 for x in $ltrpathdirs; do
11400 if test "X$x" = "X$dir"; then
11405 if test -z "$haveit"; then
11406 ltrpathdirs="$ltrpathdirs $dir"
11411 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
11414 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11417 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11418 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11424 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11425 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11431 if test "X$rpathdirs" != "X"; then
11432 if test -n "$acl_hardcode_libdir_separator"; then
11434 for found_dir in $rpathdirs; do
11435 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11437 acl_save_libdir="$libdir"
11439 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11440 libdir="$acl_save_libdir"
11441 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11443 for found_dir in $rpathdirs; do
11444 acl_save_libdir="$libdir"
11445 libdir="$found_dir"
11446 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11447 libdir="$acl_save_libdir"
11448 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11452 if test "X$ltrpathdirs" != "X"; then
11453 for found_dir in $ltrpathdirs; do
11454 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11463 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11464 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11465 $as_echo_n "(cached) " >&6
11467 gt_save_CPPFLAGS="$CPPFLAGS"
11468 CPPFLAGS="$CPPFLAGS $INCINTL"
11469 gt_save_LIBS="$LIBS"
11470 LIBS="$LIBS $LIBINTL"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 #include <libintl.h>
11475 $gt_revision_test_code
11476 extern int _nl_msg_cat_cntr;
11481 const char *_nl_expand_alias (const char *);
11487 bindtextdomain ("", "");
11488 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 eval "$gt_func_gnugettext_libintl=yes"
11497 eval "$gt_func_gnugettext_libintl=no"
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11502 LIBS="$LIBS $LIBICONV"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 #include <libintl.h>
11507 $gt_revision_test_code
11508 extern int _nl_msg_cat_cntr;
11513 const char *_nl_expand_alias (const char *);
11519 bindtextdomain ("", "");
11520 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 LIBINTL="$LIBINTL $LIBICONV"
11528 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11529 eval "$gt_func_gnugettext_libintl=yes"
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11535 CPPFLAGS="$gt_save_CPPFLAGS"
11536 LIBS="$gt_save_LIBS"
11538 eval ac_res=\$$gt_func_gnugettext_libintl
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11540 $as_echo "$ac_res" >&6; }
11543 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11544 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11545 && test "$PACKAGE" != gettext-runtime \
11546 && test "$PACKAGE" != gettext-tools; }; then
11547 gt_use_preinstalled_gnugettext=yes
11556 if test -n "$INTL_MACOSX_LIBS"; then
11557 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11558 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11559 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11560 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11564 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11565 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11567 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11575 $as_echo_n "checking whether to use NLS... " >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11577 $as_echo "$USE_NLS" >&6; }
11578 if test "$USE_NLS" = "yes"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11580 $as_echo_n "checking where the gettext function comes from... " >&6; }
11581 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11582 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11583 gt_source="external libintl"
11588 gt_source="included intl directory"
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11591 $as_echo "$gt_source" >&6; }
11594 if test "$USE_NLS" = "yes"; then
11596 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11597 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11599 $as_echo_n "checking how to link with libintl... " >&6; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11601 $as_echo "$LIBINTL" >&6; }
11603 for element in $INCINTL; do
11605 for x in $CPPFLAGS; do
11607 acl_save_prefix="$prefix"
11608 prefix="$acl_final_prefix"
11609 acl_save_exec_prefix="$exec_prefix"
11610 exec_prefix="$acl_final_exec_prefix"
11612 exec_prefix="$acl_save_exec_prefix"
11613 prefix="$acl_save_prefix"
11615 if test "X$x" = "X$element"; then
11620 if test -z "$haveit"; then
11621 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11628 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11631 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11640 INTLLIBS="$LIBINTL"
11648 # Check whether --enable-largefile was given.
11649 if test "${enable_largefile+set}" = set; then :
11650 enableval=$enable_largefile;
11653 if test "$enable_largefile" != no; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11657 if ${ac_cv_sys_largefile_CC+:} false; then :
11658 $as_echo_n "(cached) " >&6
11660 ac_cv_sys_largefile_CC=no
11661 if test "$GCC" != yes; then
11664 # IRIX 6.2 and later do not support large files by default,
11665 # so use the C compiler's -n32 option if that helps.
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668 #include <sys/types.h>
11669 /* Check that off_t can represent 2**63 - 1 correctly.
11670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11671 since some C++ compilers masquerading as C compilers
11672 incorrectly reject 9223372036854775807. */
11673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11675 && LARGE_OFF_T % 2147483647 == 1)
11685 if ac_fn_c_try_compile "$LINENO"; then :
11688 rm -f core conftest.err conftest.$ac_objext
11690 if ac_fn_c_try_compile "$LINENO"; then :
11691 ac_cv_sys_largefile_CC=' -n32'; break
11693 rm -f core conftest.err conftest.$ac_objext
11697 rm -f conftest.$ac_ext
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11701 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11702 if test "$ac_cv_sys_largefile_CC" != no; then
11703 CC=$CC$ac_cv_sys_largefile_CC
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11707 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11708 if ${ac_cv_sys_file_offset_bits+:} false; then :
11709 $as_echo_n "(cached) " >&6
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 #include <sys/types.h>
11715 /* Check that off_t can represent 2**63 - 1 correctly.
11716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11717 since some C++ compilers masquerading as C compilers
11718 incorrectly reject 9223372036854775807. */
11719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11721 && LARGE_OFF_T % 2147483647 == 1)
11731 if ac_fn_c_try_compile "$LINENO"; then :
11732 ac_cv_sys_file_offset_bits=no; break
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #define _FILE_OFFSET_BITS 64
11738 #include <sys/types.h>
11739 /* Check that off_t can represent 2**63 - 1 correctly.
11740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11741 since some C++ compilers masquerading as C compilers
11742 incorrectly reject 9223372036854775807. */
11743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11745 && LARGE_OFF_T % 2147483647 == 1)
11755 if ac_fn_c_try_compile "$LINENO"; then :
11756 ac_cv_sys_file_offset_bits=64; break
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 ac_cv_sys_file_offset_bits=unknown
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11765 case $ac_cv_sys_file_offset_bits in #(
11768 cat >>confdefs.h <<_ACEOF
11769 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11774 if test $ac_cv_sys_file_offset_bits = unknown; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11777 if ${ac_cv_sys_large_files+:} false; then :
11778 $as_echo_n "(cached) " >&6
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783 #include <sys/types.h>
11784 /* Check that off_t can represent 2**63 - 1 correctly.
11785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11786 since some C++ compilers masquerading as C compilers
11787 incorrectly reject 9223372036854775807. */
11788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11790 && LARGE_OFF_T % 2147483647 == 1)
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801 ac_cv_sys_large_files=no; break
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #define _LARGE_FILES 1
11807 #include <sys/types.h>
11808 /* Check that off_t can represent 2**63 - 1 correctly.
11809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11810 since some C++ compilers masquerading as C compilers
11811 incorrectly reject 9223372036854775807. */
11812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11814 && LARGE_OFF_T % 2147483647 == 1)
11824 if ac_fn_c_try_compile "$LINENO"; then :
11825 ac_cv_sys_large_files=1; break
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 ac_cv_sys_large_files=unknown
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11833 $as_echo "$ac_cv_sys_large_files" >&6; }
11834 case $ac_cv_sys_large_files in #(
11837 cat >>confdefs.h <<_ACEOF
11838 #define _LARGE_FILES $ac_cv_sys_large_files
11846 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
11851 # Identify characteristics of the host architecture.
11852 unset ac_cv_c_bigendian
11854 if test x"$target_cpu-$platform" = xsparc64-emu ; then
11855 CFLAGS="$CFLAGS -m64"
11856 HOST_CFLAGS="$HOST_CFLAGS -m64"
11859 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
11860 HOST_CPPFLAGS="$HOST_CPPFLAGS -D_FILE_OFFSET_BITS=64"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11864 if ${ac_cv_c_bigendian+:} false; then :
11865 $as_echo_n "(cached) " >&6
11867 ac_cv_c_bigendian=unknown
11868 # See if we're dealing with a universal compiler.
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871 #ifndef __APPLE_CC__
11872 not a universal capable compiler
11877 if ac_fn_c_try_compile "$LINENO"; then :
11879 # Check for potential -arch flags. It is not universal unless
11880 # there are at least two -arch flags with different values.
11883 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11884 if test -n "$ac_prev"; then
11886 i?86 | x86_64 | ppc | ppc64)
11887 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11890 ac_cv_c_bigendian=universal
11896 elif test "x$ac_word" = "x-arch"; then
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 if test $ac_cv_c_bigendian = unknown; then
11903 # See if sys/param.h defines the BYTE_ORDER macro.
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 #include <sys/types.h>
11907 #include <sys/param.h>
11912 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11913 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11915 bogus endian macros
11922 if ac_fn_c_try_compile "$LINENO"; then :
11923 # It does; now see whether it defined to BIG_ENDIAN or not.
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #include <sys/types.h>
11927 #include <sys/param.h>
11932 #if BYTE_ORDER != BIG_ENDIAN
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941 ac_cv_c_bigendian=yes
11943 ac_cv_c_bigendian=no
11945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 if test $ac_cv_c_bigendian = unknown; then
11950 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953 #include <limits.h>
11958 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11959 bogus endian macros
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 # It does; now see whether it defined to _BIG_ENDIAN or not.
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 #include <limits.h>
11975 #ifndef _BIG_ENDIAN
11983 if ac_fn_c_try_compile "$LINENO"; then :
11984 ac_cv_c_bigendian=yes
11986 ac_cv_c_bigendian=no
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 if test $ac_cv_c_bigendian = unknown; then
11993 # Compile a test program.
11994 if test "$cross_compiling" = yes; then :
11995 # Try to guess by grepping values from an object file.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 short int ascii_mm[] =
11999 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12000 short int ascii_ii[] =
12001 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12002 int use_ascii (int i) {
12003 return ascii_mm[i] + ascii_ii[i];
12005 short int ebcdic_ii[] =
12006 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12007 short int ebcdic_mm[] =
12008 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12009 int use_ebcdic (int i) {
12010 return ebcdic_mm[i] + ebcdic_ii[i];
12017 return use_ascii (foo) == use_ebcdic (foo);
12022 if ac_fn_c_try_compile "$LINENO"; then :
12023 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12024 ac_cv_c_bigendian=yes
12026 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12027 if test "$ac_cv_c_bigendian" = unknown; then
12028 ac_cv_c_bigendian=no
12030 # finding both strings is unlikely to happen, but who knows?
12031 ac_cv_c_bigendian=unknown
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 $ac_includes_default
12044 /* Are we little or big endian? From Harbison&Steele. */
12048 char c[sizeof (long int)];
12051 return u.c[sizeof (long int) - 1] == 1;
12057 if ac_fn_c_try_run "$LINENO"; then :
12058 ac_cv_c_bigendian=no
12060 ac_cv_c_bigendian=yes
12062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12063 conftest.$ac_objext conftest.beam conftest.$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12069 $as_echo "$ac_cv_c_bigendian" >&6; }
12070 case $ac_cv_c_bigendian in #(
12072 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12078 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12082 as_fn_error $? "unknown endianness
12083 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12086 # The cast to long int works around a bug in the HP C Compiler
12087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12088 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
12089 # This bug is HP SR number 8606223364.
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12091 $as_echo_n "checking size of void *... " >&6; }
12092 if ${ac_cv_sizeof_void_p+:} false; then :
12093 $as_echo_n "(cached) " >&6
12095 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12098 if test "$ac_cv_type_void_p" = yes; then
12099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12100 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
12101 as_fn_error 77 "cannot compute sizeof (void *)
12102 See \`config.log
' for more details" "$LINENO" 5; }
12104 ac_cv_sizeof_void_p=0
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12110 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12114 cat >>confdefs.h <<_ACEOF
12115 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12119 # The cast to long int works around a bug in the HP C Compiler
12120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12122 # This bug is HP SR number 8606223364.
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12124 $as_echo_n "checking size of long... " >&6; }
12125 if ${ac_cv_sizeof_long+:} false
; then :
12126 $as_echo_n "(cached) " >&6
12128 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12131 if test "$ac_cv_type_long" = yes; then
12132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12134 as_fn_error
77 "cannot compute sizeof (long)
12135 See \`config.log' for more details" "$LINENO" 5; }
12137 ac_cv_sizeof_long
=0
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12143 $as_echo "$ac_cv_sizeof_long" >&6; }
12147 cat >>confdefs.h
<<_ACEOF
12148 #define SIZEOF_LONG $ac_cv_sizeof_long
12154 cygwin | windows
* | mingw32
*)
12155 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
12156 CPPFLAGS
="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
12157 # The cast to long int works around a bug in the HP C Compiler
12158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12160 # This bug is HP SR number 8606223364.
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
12162 $as_echo_n "checking size of TCHAR... " >&6; }
12163 if ${ac_cv_sizeof_TCHAR+:} false
; then :
12164 $as_echo_n "(cached) " >&6
12166 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR" "#include <windows.h>
12170 if test "$ac_cv_type_TCHAR" = yes; then
12171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12173 as_fn_error
77 "cannot compute sizeof (TCHAR)
12174 See \`config.log' for more details" "$LINENO" 5; }
12176 ac_cv_sizeof_TCHAR
=0
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
12182 $as_echo "$ac_cv_sizeof_TCHAR" >&6; }
12186 cat >>confdefs.h
<<_ACEOF
12187 #define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
12195 cygwin | windows
* | mingw32
* | aros
*)
12198 # The cast to long int works around a bug in the HP C Compiler
12199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12201 # This bug is HP SR number 8606223364.
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12203 $as_echo_n "checking size of off_t... " >&6; }
12204 if ${ac_cv_sizeof_off_t+:} false
; then :
12205 $as_echo_n "(cached) " >&6
12207 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12210 if test "$ac_cv_type_off_t" = yes; then
12211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12213 as_fn_error
77 "cannot compute sizeof (off_t)
12214 See \`config.log' for more details" "$LINENO" 5; }
12216 ac_cv_sizeof_off_t
=0
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12222 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12226 cat >>confdefs.h
<<_ACEOF
12227 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12231 if test x
"$ac_cv_sizeof_off_t" != x8
; then
12232 # The cast to long int works around a bug in the HP C Compiler
12233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12235 # This bug is HP SR number 8606223364.
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
12237 $as_echo_n "checking size of off64_t... " >&6; }
12238 if ${ac_cv_sizeof_off64_t+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
12244 if test "$ac_cv_type_off64_t" = yes; then
12245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12247 as_fn_error
77 "cannot compute sizeof (off64_t)
12248 See \`config.log' for more details" "$LINENO" 5; }
12250 ac_cv_sizeof_off64_t
=0
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
12256 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
12260 cat >>confdefs.h
<<_ACEOF
12261 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
12265 test x
"$ac_cv_sizeof_off64_t" = x8 || as_fn_error $?
"Large file support is required" "$LINENO" 5
12269 if test x
$USE_NLS = xno
; then
12270 HOST_CFLAGS
="$HOST_CFLAGS -fno-builtin-gettext"
12273 if test "x$cross_compiling" = xyes
; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
12275 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
12277 # Extract the first word of "help2man", so it can be a program name with args.
12278 set dummy help2man
; ac_word
=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_HELP2MAN+:} false
; then :
12282 $as_echo_n "(cached) " >&6
12286 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
12289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12290 for as_dir
in $PATH
12293 test -z "$as_dir" && as_dir
=.
12294 for ac_exec_ext
in '' $ac_executable_extensions; do
12295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12296 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 HELP2MAN
=$ac_cv_path_HELP2MAN
12308 if test -n "$HELP2MAN"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
12310 $as_echo "$HELP2MAN" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12319 # Check for functions and headers.
12320 for ac_func
in posix_memalign memalign getextmntent atexit
12322 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12323 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12324 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12325 cat >>confdefs.h
<<_ACEOF
12326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332 for ac_header
in sys
/param.h sys
/mount.h sys
/mnttab.h limits.h
12334 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12336 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12337 cat >>confdefs.h
<<_ACEOF
12338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346 # glibc 2.25 still includes sys/sysmacros.h in sys/types.h but emits deprecation
12347 # warning which causes compilation failure later with -Werror. So use -Werror here
12348 # as well to force proper sys/sysmacros.h detection.
12349 SAVED_CFLAGS
="$CFLAGS"
12350 CFLAGS
="$HOST_CFLAGS -Werror"
12354 for ac_header
in $ac_header_list
12356 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12359 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12360 cat >>confdefs.h
<<_ACEOF
12361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12371 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12372 if test "x$ac_cv_header_sys_mkdev_h" = xyes
; then :
12374 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12379 if test $ac_cv_header_sys_mkdev_h = no
; then
12380 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12381 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
; then :
12383 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12390 CFLAGS
="$SAVED_CFLAGS"
12392 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
12393 #include <sys/param.h>
12394 #include <sys/mount.h>
12396 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
; then :
12398 cat >>confdefs.h
<<_ACEOF
12399 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
12406 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
12407 #include <sys/param.h>
12408 #include <sys/mount.h>
12410 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes
; then :
12412 cat >>confdefs.h
<<_ACEOF
12413 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
12420 # For opendisk() and getrawpartition() on NetBSD.
12421 # Used in util/deviceiter.c and in util/hostdisk.c.
12422 ac_fn_c_check_header_mongrel
"$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
12423 if test "x$ac_cv_header_util_h" = xyes
; then :
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
12426 $as_echo_n "checking for opendisk in -lutil... " >&6; }
12427 if ${ac_cv_lib_util_opendisk+:} false
; then :
12428 $as_echo_n "(cached) " >&6
12430 ac_check_lib_save_LIBS
=$LIBS
12431 LIBS
="-lutil $LIBS"
12432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12445 return opendisk ();
12450 if ac_fn_c_try_link
"$LINENO"; then :
12451 ac_cv_lib_util_opendisk
=yes
12453 ac_cv_lib_util_opendisk
=no
12455 rm -f core conftest.err conftest.
$ac_objext \
12456 conftest
$ac_exeext conftest.
$ac_ext
12457 LIBS
=$ac_check_lib_save_LIBS
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
12460 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
12461 if test "x$ac_cv_lib_util_opendisk" = xyes
; then :
12465 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
12471 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
12472 if ${ac_cv_lib_util_getrawpartition+:} false
; then :
12473 $as_echo_n "(cached) " >&6
12475 ac_check_lib_save_LIBS
=$LIBS
12476 LIBS
="-lutil $LIBS"
12477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12486 char getrawpartition ();
12490 return getrawpartition ();
12495 if ac_fn_c_try_link
"$LINENO"; then :
12496 ac_cv_lib_util_getrawpartition
=yes
12498 ac_cv_lib_util_getrawpartition
=no
12500 rm -f core conftest.err conftest.
$ac_objext \
12501 conftest
$ac_exeext conftest.
$ac_ext
12502 LIBS
=$ac_check_lib_save_LIBS
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
12505 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
12506 if test "x$ac_cv_lib_util_getrawpartition" = xyes
; then :
12510 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
12522 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
12523 if ${grub_cv_host_cc_wtrampolines+:} false
; then :
12524 $as_echo_n "(cached) " >&6
12527 SAVED_CFLAGS
="$CFLAGS"
12528 CFLAGS
="$HOST_CFLAGS -Wtrampolines -Werror"
12529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 #include <stdarg.h>
12532 int va_arg_func (int fixed, va_list args);
12541 if ac_fn_c_try_compile
"$LINENO"; then :
12542 grub_cv_host_cc_wtrampolines
=yes
12544 grub_cv_host_cc_wtrampolines
=no
12546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12547 CFLAGS
="$SAVED_CFLAGS"
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
12551 $as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
12553 if test x
"$grub_host_cv_cc_wtrampolines" = xyes
; then
12554 HOST_CFLAGS
="$HOST_CFLAGS -Wtrampolines"
12558 # Check for host and build compilers.
12561 for ac_prog
in gcc egcs cc
12563 # Extract the first word of "$ac_prog", so it can be a program name with args.
12564 set dummy
$ac_prog; ac_word
=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_prog_BUILD_CC+:} false
; then :
12568 $as_echo_n "(cached) " >&6
12570 if test -n "$BUILD_CC"; then
12571 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
12573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12574 for as_dir
in $PATH
12577 test -z "$as_dir" && as_dir
=.
12578 for ac_exec_ext
in '' $ac_executable_extensions; do
12579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12580 ac_cv_prog_BUILD_CC
="$ac_prog"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 BUILD_CC
=$ac_cv_prog_BUILD_CC
12591 if test -n "$BUILD_CC"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12593 $as_echo "$BUILD_CC" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12600 test -n "$BUILD_CC" && break
12603 test -z "$BUILD_CC" && as_fn_error $?
"none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
12604 BUILD_CPP
="$BUILD_CC -E"
12606 case "$build_os" in
12607 haiku
*) BUILD_LIBM
= ;;
12608 *) BUILD_LIBM
=-lm ;;
12612 case "$build_os" in
12613 cygwin
*|mingw32
*|mingw64
*) BUILD_EXEEXT
=.exe
;;
12614 *) BUILD_EXEEXT
= ;;
12618 # In some build environments like termux /bin/sh is not a valid
12619 # shebang. Use $SHELL instead if it's executable and /bin/sh isn't
12620 BUILD_SHEBANG
=/bin
/sh
12621 for she
in /bin
/sh
"$SHELL"; do
12622 if test -x "$she" ; then
12623 BUILD_SHEBANG
="$she"
12634 LIBC_FATAL_STDERR_
=1
12635 export LIBC_FATAL_STDERR_
12637 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12638 if test "x$ac_cv_type_size_t" = xyes
; then :
12642 cat >>confdefs.h
<<_ACEOF
12643 #define size_t unsigned int
12648 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12649 # for constant arguments. Useless!
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12651 $as_echo_n "checking for working alloca.h... " >&6; }
12652 if ${ac_cv_working_alloca_h+:} false
; then :
12653 $as_echo_n "(cached) " >&6
12655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657 #include <alloca.h>
12661 char *p = (char *) alloca (2 * sizeof (int));
12667 if ac_fn_c_try_link
"$LINENO"; then :
12668 ac_cv_working_alloca_h
=yes
12670 ac_cv_working_alloca_h
=no
12672 rm -f core conftest.err conftest.
$ac_objext \
12673 conftest
$ac_exeext conftest.
$ac_ext
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12676 $as_echo "$ac_cv_working_alloca_h" >&6; }
12677 if test $ac_cv_working_alloca_h = yes; then
12679 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12684 $as_echo_n "checking for alloca... " >&6; }
12685 if ${ac_cv_func_alloca_works+:} false
; then :
12686 $as_echo_n "(cached) " >&6
12688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 # define alloca __builtin_alloca
12694 # include <malloc.h>
12695 # define alloca _alloca
12697 # ifdef HAVE_ALLOCA_H
12698 # include <alloca.h>
12703 # ifndef alloca /* predefined by HP cc +Olibcalls */
12704 void *alloca (size_t);
12714 char *p = (char *) alloca (1);
12720 if ac_fn_c_try_link
"$LINENO"; then :
12721 ac_cv_func_alloca_works
=yes
12723 ac_cv_func_alloca_works
=no
12725 rm -f core conftest.err conftest.
$ac_objext \
12726 conftest
$ac_exeext conftest.
$ac_ext
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12729 $as_echo "$ac_cv_func_alloca_works" >&6; }
12731 if test $ac_cv_func_alloca_works = yes; then
12733 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12736 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12737 # that cause trouble. Some versions do not even contain alloca or
12738 # contain a buggy version. If you still want to use their alloca,
12739 # use ar to extract alloca.o from them instead of compiling alloca.c.
12745 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12747 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12751 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12752 if ${ac_cv_os_cray+:} false
; then :
12753 $as_echo_n "(cached) " >&6
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 #if defined CRAY && ! defined CRAY2
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "webecray" >/dev
/null
2>&1; then :
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12774 $as_echo "$ac_cv_os_cray" >&6; }
12775 if test $ac_cv_os_cray = yes; then
12776 for ac_func
in _getb67 GETB67 getb67
; do
12777 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12778 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12779 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12781 cat >>confdefs.h
<<_ACEOF
12782 #define CRAY_STACKSEG_END $ac_func
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12792 $as_echo_n "checking stack direction for C alloca... " >&6; }
12793 if ${ac_cv_c_stack_direction+:} false
; then :
12794 $as_echo_n "(cached) " >&6
12796 if test "$cross_compiling" = yes; then :
12797 ac_cv_c_stack_direction
=0
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 $ac_includes_default
12803 find_stack_direction (int *addr, int depth)
12805 int dir, dummy = 0;
12808 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12809 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12810 return dir + dummy;
12814 main (int argc, char **argv)
12816 return find_stack_direction (0, argc + !argv + 20) < 0;
12819 if ac_fn_c_try_run
"$LINENO"; then :
12820 ac_cv_c_stack_direction
=1
12822 ac_cv_c_stack_direction
=-1
12824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12825 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12830 $as_echo "$ac_cv_c_stack_direction" >&6; }
12831 cat >>confdefs.h
<<_ACEOF
12832 #define STACK_DIRECTION $ac_cv_c_stack_direction
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12839 $as_echo_n "checking for inline... " >&6; }
12840 if ${ac_cv_c_inline+:} false
; then :
12841 $as_echo_n "(cached) " >&6
12844 for ac_kw
in inline __inline__ __inline
; do
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #ifndef __cplusplus
12849 static $ac_kw foo_t static_foo () {return 0; }
12850 $ac_kw foo_t foo () {return 0; }
12854 if ac_fn_c_try_compile
"$LINENO"; then :
12855 ac_cv_c_inline
=$ac_kw
12857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12858 test "$ac_cv_c_inline" != no
&& break
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12863 $as_echo "$ac_cv_c_inline" >&6; }
12865 case $ac_cv_c_inline in
12868 case $ac_cv_c_inline in
12870 *) ac_val
=$ac_cv_c_inline;;
12872 cat >>confdefs.h
<<_ACEOF
12873 #ifndef __cplusplus
12874 #define inline $ac_val
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12881 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12882 if ${ac_cv_c_restrict+:} false
; then :
12883 $as_echo_n "(cached) " >&6
12885 ac_cv_c_restrict
=no
12886 # The order here caters to the fact that C++ does not require restrict.
12887 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 typedef int *int_ptr;
12891 int foo (int_ptr $ac_kw ip) { return ip[0]; }
12892 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
12893 int bar (int ip[$ac_kw]) { return ip[0]; }
12901 return foo (t) + bar (t);
12907 if ac_fn_c_try_compile
"$LINENO"; then :
12908 ac_cv_c_restrict
=$ac_kw
12910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12911 test "$ac_cv_c_restrict" != no
&& break
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12916 $as_echo "$ac_cv_c_restrict" >&6; }
12918 case $ac_cv_c_restrict in
12920 no
) $as_echo "#define restrict /**/" >>confdefs.h
12922 *) cat >>confdefs.h
<<_ACEOF
12923 #define restrict $ac_cv_c_restrict
12928 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
12929 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
12935 cat >>confdefs.h
<<_ACEOF
12936 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
12939 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
12940 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
12946 cat >>confdefs.h
<<_ACEOF
12947 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
12950 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
12951 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
12957 cat >>confdefs.h
<<_ACEOF
12958 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
12961 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
12962 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
12968 cat >>confdefs.h
<<_ACEOF
12969 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
12972 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
12973 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
12979 cat >>confdefs.h
<<_ACEOF
12980 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
12983 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
12984 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
12990 cat >>confdefs.h
<<_ACEOF
12991 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
12994 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
12995 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
13001 cat >>confdefs.h
<<_ACEOF
13002 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
13005 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
13006 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
13012 cat >>confdefs.h
<<_ACEOF
13013 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
13016 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
13017 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
13027 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13028 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13038 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
13039 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
13045 cat >>confdefs.h
<<_ACEOF
13046 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
13049 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
13050 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
13056 cat >>confdefs.h
<<_ACEOF
13057 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
13060 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
13061 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
13067 cat >>confdefs.h
<<_ACEOF
13068 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
13074 for ac_func
in $ac_func_list
13076 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13078 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13079 cat >>confdefs.h
<<_ACEOF
13080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13094 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13095 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
13101 cat >>confdefs.h
<<_ACEOF
13102 #define HAVE_DECL_STRERROR_R $ac_have_decl
13105 for ac_func
in strerror_r
13107 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13108 if test "x$ac_cv_func_strerror_r" = xyes
; then :
13109 cat >>confdefs.h
<<_ACEOF
13110 #define HAVE_STRERROR_R 1
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13117 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13118 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
13119 $as_echo_n "(cached) " >&6
13122 ac_cv_func_strerror_r_char_p
=no
13123 if test $ac_cv_have_decl_strerror_r = yes; then
13124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126 $ac_includes_default
13132 char x = *strerror_r (0, buf, sizeof buf);
13133 char *p = strerror_r (0, buf, sizeof buf);
13140 if ac_fn_c_try_compile
"$LINENO"; then :
13141 ac_cv_func_strerror_r_char_p
=yes
13143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13145 # strerror_r is not declared. Choose between
13146 # systems that have relatively inaccessible declarations for the
13147 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13148 # former has a strerror_r that returns char*, while the latter
13149 # has a strerror_r that returns `int'.
13150 # This test should segfault on the DEC system.
13151 if test "$cross_compiling" = yes; then :
13154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 extern char *strerror_r ();
13162 char x = *strerror_r (0, buf, sizeof buf);
13163 return ! isalpha (x);
13168 if ac_fn_c_try_run
"$LINENO"; then :
13169 ac_cv_func_strerror_r_char_p
=yes
13171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13179 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13180 if test $ac_cv_func_strerror_r_char_p = yes; then
13182 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13187 XGETTEXT_EXTRA_OPTIONS
=
13195 GNULIB_MBSRTOWCS
=0;
13196 GNULIB_MBSNRTOWCS
=0;
13198 GNULIB_WCSRTOMBS
=0;
13199 GNULIB_WCSNRTOMBS
=0;
13216 GNULIB_WCSCASECMP
=0;
13217 GNULIB_WCSNCASECMP
=0;
13255 HAVE_WCSNCASECMP
=1;
13269 HAVE_DECL_WCWIDTH
=1;
13270 REPLACE_MBSTATE_T
=0;
13276 REPLACE_MBSRTOWCS
=0;
13277 REPLACE_MBSNRTOWCS
=0;
13279 REPLACE_WCSRTOMBS
=0;
13280 REPLACE_WCSNRTOMBS
=0;
13282 REPLACE_WCSWIDTH
=0;
13283 REPLACE_WCSFTIME
=0;
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13287 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13288 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
13289 $as_echo_n "(cached) " >&6
13291 gl_cv_header_wchar_h_correct_inline
=yes
13292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 #define wcstod renamed_wcstod
13296 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13298 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13299 included before <wchar.h>. */
13300 #include <stddef.h>
13304 extern int zero (void);
13305 int main () { return zero(); }
13308 save_ac_compile
="$ac_compile"
13309 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13310 if echo '#include "conftest.c"' >conftest1.c
&&
13311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13312 (eval $ac_compile) 2>&5
13314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315 test $ac_status = 0; }; then
13316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13319 #define wcstod renamed_wcstod
13320 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13322 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13323 included before <wchar.h>. */
13324 #include <stddef.h>
13328 int zero (void) { return 0; }
13331 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13332 if echo '#include "conftest.c"' >conftest2.c
&&
13333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13334 (eval $ac_compile) 2>&5
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13338 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
13341 gl_cv_header_wchar_h_correct_inline
=no
13345 ac_compile
="$save_ac_compile"
13346 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13350 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13351 if test $gl_cv_header_wchar_h_correct_inline = no
; then
13352 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13353 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13354 C99 mode. You have four options:
13355 - Add the flag -fgnu89-inline to CC and reconfigure, or
13356 - Fix your include files, using parts of
13357 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13358 - Use a gcc version older than 4.3, or
13359 - Don't use the flags -std=c99 or -std=gnu99.
13360 Configuration aborted." "$LINENO" 5
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13367 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13368 if ${am_cv_langinfo_codeset+:} false
; then :
13369 $as_echo_n "(cached) " >&6
13371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 #include <langinfo.h>
13377 char* cs = nl_langinfo(CODESET); return !cs;
13382 if ac_fn_c_try_link
"$LINENO"; then :
13383 am_cv_langinfo_codeset
=yes
13385 am_cv_langinfo_codeset
=no
13387 rm -f core conftest.err conftest.
$ac_objext \
13388 conftest
$ac_exeext conftest.
$ac_ext
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13392 $as_echo "$am_cv_langinfo_codeset" >&6; }
13393 if test $am_cv_langinfo_codeset = yes; then
13395 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
13403 $as_echo_n "checking for a traditional french locale... " >&6; }
13404 if ${gt_cv_locale_fr+:} false
; then :
13405 $as_echo_n "(cached) " >&6
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 #include <locale.h>
13413 #if HAVE_LANGINFO_CODESET
13414 # include <langinfo.h>
13416 #include <stdlib.h>
13417 #include <string.h>
13421 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13422 imitates locale dependent behaviour by looking at the environment
13423 variables, and all locales use the UTF-8 encoding. */
13424 #if defined __BEOS__ || defined __HAIKU__
13427 /* Check whether the given locale name is recognized by the system. */
13428 # if defined _WIN32 && !defined __CYGWIN__
13429 /* On native Windows, setlocale(category, "") looks at the system settings,
13430 not at the environment variables. Also, when an encoding suffix such
13431 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13432 category of the locale to "C". */
13433 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13434 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13437 if (setlocale (LC_ALL, "") == NULL) return 1;
13439 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13440 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13441 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13442 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13443 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13444 some unit tests fail.
13445 On MirBSD 10, when an unsupported locale is specified, setlocale()
13446 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13447 # if HAVE_LANGINFO_CODESET
13449 const char *cs = nl_langinfo (CODESET);
13450 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13451 || strcmp (cs, "UTF-8") == 0)
13456 /* On Cygwin, avoid locale names without encoding suffix, because the
13457 locale_charset() function relies on the encoding suffix. Note that
13458 LC_ALL is set on the command line. */
13459 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13461 /* Check whether in the abbreviation of the second month, the second
13462 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
13463 one byte long. This excludes the UTF-8 encoding. */
13464 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13465 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
13466 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13467 /* Check whether the decimal separator is a comma.
13468 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13469 are nl_langinfo(RADIXCHAR) are both ".". */
13470 if (localeconv () ->decimal_point[0] != ',') return 1;
13477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13478 (eval $ac_link) 2>&5
13480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13481 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13483 # Handle native Windows specially, because there setlocale() interprets
13484 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13485 # "fr" or "fra" as "French" or "French_France.1252",
13486 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13487 # "ja" as "Japanese" or "Japanese_Japan.932",
13490 # Test for the native Windows locale name.
13491 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13492 gt_cv_locale_fr
=French_France
.1252
13495 gt_cv_locale_fr
=none
13499 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13500 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13501 # configure script would override the LC_ALL setting. Likewise for
13502 # LC_CTYPE, which is also set at the beginning of the configure script.
13503 # Test for the usual locale name.
13504 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13505 gt_cv_locale_fr
=fr_FR
13507 # Test for the locale name with explicit encoding suffix.
13508 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13509 gt_cv_locale_fr
=fr_FR.ISO-8859-1
13511 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
13512 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13513 gt_cv_locale_fr
=fr_FR.ISO8859-1
13515 # Test for the HP-UX locale name.
13516 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13517 gt_cv_locale_fr
=fr_FR.iso88591
13519 # Test for the Solaris 7 locale name.
13520 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13524 gt_cv_locale_fr
=none
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
13537 $as_echo "$gt_cv_locale_fr" >&6; }
13538 LOCALE_FR
=$gt_cv_locale_fr
13549 GNULIB_EUIDACCESS
=0;
13550 GNULIB_FACCESSAT
=0;
13553 GNULIB_FDATASYNC
=0;
13555 GNULIB_FTRUNCATE
=0;
13557 GNULIB_GETDOMAINNAME
=0;
13558 GNULIB_GETDTABLESIZE
=0;
13559 GNULIB_GETGROUPS
=0;
13560 GNULIB_GETHOSTNAME
=0;
13562 GNULIB_GETLOGIN_R
=0;
13563 GNULIB_GETPAGESIZE
=0;
13565 GNULIB_GETUSERSHELL
=0;
13566 GNULIB_GROUP_MEMBER
=0;
13578 GNULIB_READLINKAT
=0;
13580 GNULIB_SETHOSTNAME
=0;
13583 GNULIB_SYMLINKAT
=0;
13585 GNULIB_TTYNAME_R
=0;
13586 GNULIB_UNISTD_H_NONBLOCKING
=0;
13587 GNULIB_UNISTD_H_SIGPIPE
=0;
13602 HAVE_GETDTABLESIZE
=1;
13604 HAVE_GETHOSTNAME
=1;
13606 HAVE_GETPAGESIZE
=1;
13608 HAVE_GROUP_MEMBER
=1;
13618 HAVE_SETHOSTNAME
=1;
13624 HAVE_DECL_ENVIRON
=1;
13625 HAVE_DECL_FCHDIR
=1;
13626 HAVE_DECL_FDATASYNC
=1;
13627 HAVE_DECL_GETDOMAINNAME
=1;
13628 HAVE_DECL_GETLOGIN
=1;
13629 HAVE_DECL_GETLOGIN_R
=1;
13630 HAVE_DECL_GETPAGESIZE
=1;
13631 HAVE_DECL_GETUSERSHELL
=1;
13632 HAVE_DECL_SETHOSTNAME
=1;
13633 HAVE_DECL_TRUNCATE
=1;
13634 HAVE_DECL_TTYNAME_R
=1;
13636 HAVE_SYS_PARAM_H
=0;
13641 REPLACE_FACCESSAT
=0;
13642 REPLACE_FCHOWNAT
=0;
13643 REPLACE_FTRUNCATE
=0;
13645 REPLACE_GETDOMAINNAME
=0;
13646 REPLACE_GETDTABLESIZE
=0;
13647 REPLACE_GETLOGIN_R
=0;
13648 REPLACE_GETGROUPS
=0;
13649 REPLACE_GETPAGESIZE
=0;
13659 REPLACE_READLINK
=0;
13660 REPLACE_READLINKAT
=0;
13664 REPLACE_SYMLINKAT
=0;
13665 REPLACE_TRUNCATE
=0;
13666 REPLACE_TTYNAME_R
=0;
13668 REPLACE_UNLINKAT
=0;
13671 UNISTD_H_HAVE_WINSOCK2_H
=0;
13672 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13686 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
13687 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
13689 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
13692 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
13703 GNULIB_REWINDDIR
=0;
13706 GNULIB_FDOPENDIR
=0;
13708 GNULIB_ALPHASORT
=0;
13714 HAVE_DECL_FDOPENDIR
=1;
13719 REPLACE_CLOSEDIR
=0;
13721 REPLACE_FDOPENDIR
=0;
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13726 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13727 if ${gl_cv_have_include_next+:} false
; then :
13728 $as_echo_n "(cached) " >&6
13730 rm -rf conftestd1a conftestd1b conftestd2
13731 mkdir conftestd1a conftestd1b conftestd2
13732 cat <<EOF > conftestd1a/conftest.h
13733 #define DEFINED_IN_CONFTESTD1
13734 #include_next <conftest.h>
13735 #ifdef DEFINED_IN_CONFTESTD2
13738 #error "include_next doesn't work"
13741 cat <<EOF > conftestd1b/conftest.h
13742 #define DEFINED_IN_CONFTESTD1
13744 #include_next <conftest.h>
13745 #ifdef DEFINED_IN_CONFTESTD2
13748 #error "include_next doesn't work"
13751 cat <<EOF > conftestd2/conftest.h
13752 #ifndef DEFINED_IN_CONFTESTD1
13753 #error "include_next test doesn't work"
13755 #define DEFINED_IN_CONFTESTD2
13757 gl_save_CPPFLAGS
="$CPPFLAGS"
13758 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 #include <conftest.h>
13763 if ac_fn_c_try_compile
"$LINENO"; then :
13764 gl_cv_have_include_next
=yes
13766 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 #include <conftest.h>
13771 if ac_fn_c_try_compile
"$LINENO"; then :
13772 gl_cv_have_include_next
=buggy
13774 gl_cv_have_include_next
=no
13776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13780 CPPFLAGS
="$gl_save_CPPFLAGS"
13781 rm -rf conftestd1a conftestd1b conftestd2
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13785 $as_echo "$gl_cv_have_include_next" >&6; }
13786 PRAGMA_SYSTEM_HEADER
=
13787 if test $gl_cv_have_include_next = yes; then
13788 INCLUDE_NEXT
=include_next
13789 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13790 if test -n "$GCC"; then
13791 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13794 if test $gl_cv_have_include_next = buggy
; then
13795 INCLUDE_NEXT
=include
13796 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13798 INCLUDE_NEXT
=include
13799 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13806 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13807 if ${gl_cv_pragma_columns+:} false
; then :
13808 $as_echo_n "(cached) " >&6
13810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13819 $EGREP "choke me" >/dev
/null
2>&1; then :
13820 gl_cv_pragma_columns
=yes
13822 gl_cv_pragma_columns
=no
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13829 $as_echo "$gl_cv_pragma_columns" >&6; }
13830 if test $gl_cv_pragma_columns = yes; then
13831 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
13842 $as_echo_n "checking whether // is distinct from /... " >&6; }
13843 if ${gl_cv_double_slash_root+:} false
; then :
13844 $as_echo_n "(cached) " >&6
13846 if test x
"$cross_compiling" = xyes
; then
13847 # When cross-compiling, there is no way to tell whether // is special
13848 # short of a list of hosts. However, the only known hosts to date
13849 # that have a distinct // are Apollo DomainOS (too old to port to),
13850 # Cygwin, and z/OS. If anyone knows of another system for which // has
13851 # special semantics and is distinct from /, please report it to
13852 # <bug-gnulib@gnu.org>.
13854 *-cygwin | i370-ibm-openedition
)
13855 gl_cv_double_slash_root
=yes ;;
13857 # Be optimistic and assume that / and // are the same when we
13859 gl_cv_double_slash_root
='unknown, assuming no' ;;
13862 set x
`ls -di / // 2>/dev/null`
13863 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
13864 gl_cv_double_slash_root
=no
13866 gl_cv_double_slash_root
=yes
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
13871 $as_echo "$gl_cv_double_slash_root" >&6; }
13872 if test "$gl_cv_double_slash_root" = yes; then
13874 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
13881 $as_echo_n "checking for complete errno.h... " >&6; }
13882 if ${gl_cv_header_errno_h_complete+:} false
; then :
13883 $as_echo_n "(cached) " >&6
13886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13890 #if !defined ETXTBSY
13893 #if !defined ENOMSG
13899 #if !defined ENOLINK
13902 #if !defined EPROTO
13905 #if !defined EMULTIHOP
13908 #if !defined EBADMSG
13911 #if !defined EOVERFLOW
13914 #if !defined ENOTSUP
13917 #if !defined ENETRESET
13920 #if !defined ECONNABORTED
13923 #if !defined ESTALE
13926 #if !defined EDQUOT
13929 #if !defined ECANCELED
13932 #if !defined EOWNERDEAD
13935 #if !defined ENOTRECOVERABLE
13938 #if !defined EILSEQ
13943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13944 $EGREP "booboo" >/dev
/null
2>&1; then :
13945 gl_cv_header_errno_h_complete
=no
13947 gl_cv_header_errno_h_complete
=yes
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
13954 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
13955 if test $gl_cv_header_errno_h_complete = yes; then
13966 if test $gl_cv_have_include_next = yes; then
13967 gl_cv_next_errno_h
='<'errno.h
'>'
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
13970 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
13971 if ${gl_cv_next_errno_h+:} false
; then :
13972 $as_echo_n "(cached) " >&6
13977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13982 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13983 *) gl_absname_cpp
="$ac_cpp" ;;
13988 gl_dirsep_regex
='[/\\]'
13991 gl_dirsep_regex
='\/'
13994 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13995 gl_header_literal_regex
=`echo 'errno.h' \
13996 | sed -e "$gl_make_literal_regex_sed"`
13997 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13998 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14004 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14005 sed -n "$gl_absolute_header_sed"`
14007 gl_header
=$gl_cv_absolute_errno_h
14008 gl_cv_next_errno_h
='"'$gl_header'"'
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
14013 $as_echo "$gl_cv_next_errno_h" >&6; }
14015 NEXT_ERRNO_H
=$gl_cv_next_errno_h
14017 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14019 gl_next_as_first_directive
='<'errno.h
'>'
14021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14022 gl_next_as_first_directive
=$gl_cv_next_errno_h
14024 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
14032 if test -n "$ERRNO_H"; then
14033 GL_GENERATE_ERRNO_H_TRUE
=
14034 GL_GENERATE_ERRNO_H_FALSE
='#'
14036 GL_GENERATE_ERRNO_H_TRUE
='#'
14037 GL_GENERATE_ERRNO_H_FALSE
=
14041 if test -n "$ERRNO_H"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
14043 $as_echo_n "checking for EMULTIHOP value... " >&6; }
14044 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
14045 $as_echo_n "(cached) " >&6
14048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14058 $EGREP "yes" >/dev
/null
2>&1; then :
14059 gl_cv_header_errno_h_EMULTIHOP
=yes
14061 gl_cv_header_errno_h_EMULTIHOP
=no
14065 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
14066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14069 #define _XOPEN_SOURCE_EXTENDED 1
14076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14077 $EGREP "yes" >/dev
/null
2>&1; then :
14078 gl_cv_header_errno_h_EMULTIHOP
=hidden
14082 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
14083 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
14084 #define _XOPEN_SOURCE_EXTENDED 1
14086 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14088 #include <stdlib.h>
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
14098 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
14099 case $gl_cv_header_errno_h_EMULTIHOP in
14101 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
14104 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
14112 if test -n "$ERRNO_H"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
14114 $as_echo_n "checking for ENOLINK value... " >&6; }
14115 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
14116 $as_echo_n "(cached) " >&6
14119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129 $EGREP "yes" >/dev
/null
2>&1; then :
14130 gl_cv_header_errno_h_ENOLINK
=yes
14132 gl_cv_header_errno_h_ENOLINK
=no
14136 if test $gl_cv_header_errno_h_ENOLINK = no
; then
14137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14140 #define _XOPEN_SOURCE_EXTENDED 1
14147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14148 $EGREP "yes" >/dev
/null
2>&1; then :
14149 gl_cv_header_errno_h_ENOLINK
=hidden
14153 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
14154 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
14155 #define _XOPEN_SOURCE_EXTENDED 1
14157 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14159 #include <stdlib.h>
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
14169 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
14170 case $gl_cv_header_errno_h_ENOLINK in
14172 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
14175 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
14183 if test -n "$ERRNO_H"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
14185 $as_echo_n "checking for EOVERFLOW value... " >&6; }
14186 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
14187 $as_echo_n "(cached) " >&6
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14200 $EGREP "yes" >/dev
/null
2>&1; then :
14201 gl_cv_header_errno_h_EOVERFLOW
=yes
14203 gl_cv_header_errno_h_EOVERFLOW
=no
14207 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
14208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 #define _XOPEN_SOURCE_EXTENDED 1
14218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14219 $EGREP "yes" >/dev
/null
2>&1; then :
14220 gl_cv_header_errno_h_EOVERFLOW
=hidden
14224 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
14225 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
14226 #define _XOPEN_SOURCE_EXTENDED 1
14228 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14230 #include <stdlib.h>
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14240 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14241 case $gl_cv_header_errno_h_EOVERFLOW in
14243 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
14246 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
14257 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
14258 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
14264 cat >>confdefs.h
<<_ACEOF
14265 #define HAVE_DECL_FCHDIR $ac_have_decl
14270 GNULIB_NONBLOCKING
=0;
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
14289 $as_echo_n "checking for working fcntl.h... " >&6; }
14290 if ${gl_cv_header_working_fcntl_h+:} false
; then :
14291 $as_echo_n "(cached) " >&6
14293 if test "$cross_compiling" = yes; then :
14295 # Guess 'no' on native Windows.
14296 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
14297 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
14301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303 #include <sys/types.h>
14304 #include <sys/stat.h>
14306 # include <unistd.h>
14307 #else /* on Windows with MSVC */
14309 # include <stdlib.h>
14310 # defined sleep(n) _sleep ((n) * 1000)
14314 #define O_NOATIME 0
14317 #define O_NOFOLLOW 0
14319 static int const constants[] =
14321 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14322 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14329 int result = !constants;
14332 static char const sym[] = "conftest.sym";
14333 if (symlink ("/dev/null", sym) != 0)
14337 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
14344 if (unlink (sym) != 0 || symlink (".", sym) != 0)
14348 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
14359 static char const file[] = "confdefs.h";
14360 int fd = open (file, O_RDONLY | O_NOATIME);
14366 if (fstat (fd, &st0) != 0)
14372 if (read (fd, &c, 1) != 1)
14376 if (close (fd) != 0)
14381 if (stat (file, &st1) != 0)
14384 if (st0.st_atime != st1.st_atime)
14396 if ac_fn_c_try_run
"$LINENO"; then :
14397 gl_cv_header_working_fcntl_h
=yes
14400 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
14401 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
14402 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14403 *) gl_cv_header_working_fcntl_h
='no';;
14406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
14413 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14415 case $gl_cv_header_working_fcntl_h in #(
14416 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
14420 cat >>confdefs.h
<<_ACEOF
14421 #define HAVE_WORKING_O_NOATIME $ac_val
14425 case $gl_cv_header_working_fcntl_h in #(
14426 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
14430 cat >>confdefs.h
<<_ACEOF
14431 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14435 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14436 if test "x$ac_cv_type_pid_t" = xyes
; then :
14440 cat >>confdefs.h
<<_ACEOF
14446 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14447 if test "x$ac_cv_type_mode_t" = xyes
; then :
14451 cat >>confdefs.h
<<_ACEOF
14479 if test $gl_cv_have_include_next = yes; then
14480 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
14483 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
14484 if ${gl_cv_next_fnmatch_h+:} false
; then :
14485 $as_echo_n "(cached) " >&6
14488 if test $ac_cv_header_fnmatch_h = yes; then
14493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 #include <fnmatch.h>
14498 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14499 *) gl_absname_cpp
="$ac_cpp" ;;
14504 gl_dirsep_regex
='[/\\]'
14507 gl_dirsep_regex
='\/'
14510 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14511 gl_header_literal_regex
=`echo 'fnmatch.h' \
14512 | sed -e "$gl_make_literal_regex_sed"`
14513 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14514 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14520 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14521 sed -n "$gl_absolute_header_sed"`
14523 gl_header
=$gl_cv_absolute_fnmatch_h
14524 gl_cv_next_fnmatch_h
='"'$gl_header'"'
14526 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
14532 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
14534 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
14536 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14538 gl_next_as_first_directive
='<'fnmatch.h
'>'
14540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14541 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
14543 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
14551 if test $ac_cv_header_fnmatch_h = yes; then
14560 FNMATCH_H
=fnmatch.h
14562 if test $ac_cv_header_fnmatch_h != yes; then
14563 FNMATCH_H
=fnmatch.h
14568 if test -n "$FNMATCH_H"; then
14569 GL_GENERATE_FNMATCH_H_TRUE
=
14570 GL_GENERATE_FNMATCH_H_FALSE
='#'
14572 GL_GENERATE_FNMATCH_H_TRUE
='#'
14573 GL_GENERATE_FNMATCH_H_FALSE
=
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14586 $as_echo_n "checking for mbstate_t... " >&6; }
14587 if ${ac_cv_type_mbstate_t+:} false
; then :
14588 $as_echo_n "(cached) " >&6
14590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14595 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14596 included before <wchar.h>. */
14597 #include <stddef.h>
14604 mbstate_t x; return sizeof x;
14609 if ac_fn_c_try_compile
"$LINENO"; then :
14610 ac_cv_type_mbstate_t
=yes
14612 ac_cv_type_mbstate_t
=no
14614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14617 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14618 if test $ac_cv_type_mbstate_t = yes; then
14620 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14624 $as_echo "#define mbstate_t int" >>confdefs.h
14655 GNULIB_UTIMENSAT
=0;
14656 GNULIB_OVERRIDES_STRUCT_STAT
=0;
14670 REPLACE_FUTIMENS
=0;
14676 REPLACE_UTIMENSAT
=0;
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14679 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14680 if ${ac_cv_header_stat_broken+:} false
; then :
14681 $as_echo_n "(cached) " >&6
14683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/types.h>
14686 #include <sys/stat.h>
14688 #if defined S_ISBLK && defined S_IFDIR
14689 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14692 #if defined S_ISBLK && defined S_IFCHR
14693 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14696 #if defined S_ISLNK && defined S_IFREG
14697 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14700 #if defined S_ISSOCK && defined S_IFREG
14701 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14705 if ac_fn_c_try_compile
"$LINENO"; then :
14706 ac_cv_header_stat_broken
=no
14708 ac_cv_header_stat_broken
=yes
14710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14713 $as_echo "$ac_cv_header_stat_broken" >&6; }
14714 if test $ac_cv_header_stat_broken = yes; then
14716 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
14727 $as_echo_n "checking for 64-bit off_t... " >&6; }
14728 if ${gl_cv_type_off_t_64+:} false
; then :
14729 $as_echo_n "(cached) " >&6
14731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 #include <sys/types.h>
14734 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
14744 if ac_fn_c_try_compile
"$LINENO"; then :
14745 gl_cv_type_off_t_64
=yes
14747 gl_cv_type_off_t_64
=no
14749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
14753 $as_echo "$gl_cv_type_off_t_64" >&6; }
14754 if test $gl_cv_type_off_t_64 = no
; then
14755 WINDOWS_64_BIT_OFF_T
=1
14757 WINDOWS_64_BIT_OFF_T
=0
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
14760 $as_echo_n "checking for 64-bit st_size... " >&6; }
14761 if ${gl_cv_member_st_size_64+:} false
; then :
14762 $as_echo_n "(cached) " >&6
14764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 #include <sys/types.h>
14768 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
14778 if ac_fn_c_try_compile
"$LINENO"; then :
14779 gl_cv_member_st_size_64
=yes
14781 gl_cv_member_st_size_64
=no
14783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
14787 $as_echo "$gl_cv_member_st_size_64" >&6; }
14788 if test $gl_cv_member_st_size_64 = no
; then
14789 WINDOWS_64_BIT_ST_SIZE
=1
14791 WINDOWS_64_BIT_ST_SIZE
=0
14795 WINDOWS_64_BIT_OFF_T
=0
14796 WINDOWS_64_BIT_ST_SIZE
=0
14814 if test $gl_cv_have_include_next = yes; then
14815 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14818 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14819 if ${gl_cv_next_sys_stat_h+:} false
; then :
14820 $as_echo_n "(cached) " >&6
14823 if test $ac_cv_header_sys_stat_h = yes; then
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 #include <sys/stat.h>
14833 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14834 *) gl_absname_cpp
="$ac_cpp" ;;
14839 gl_dirsep_regex
='[/\\]'
14842 gl_dirsep_regex
='\/'
14845 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14846 gl_header_literal_regex
=`echo 'sys/stat.h' \
14847 | sed -e "$gl_make_literal_regex_sed"`
14848 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14855 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14856 sed -n "$gl_absolute_header_sed"`
14858 gl_header
=$gl_cv_absolute_sys_stat_h
14859 gl_cv_next_sys_stat_h
='"'$gl_header'"'
14861 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14867 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14869 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
14871 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14873 gl_next_as_first_directive
='<'sys
/stat.h
'>'
14875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14876 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
14878 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
14887 WINDOWS_STAT_TIMESPEC
=0
14896 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14897 #include <sys/stat.h>
14899 if test "x$ac_cv_type_nlink_t" = xyes
; then :
14903 $as_echo "#define nlink_t int" >>confdefs.h
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14915 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14916 if ${gl_cv_func_getcwd_null+:} false
; then :
14917 $as_echo_n "(cached) " >&6
14919 if test "$cross_compiling" = yes; then :
14921 # Guess yes on glibc systems.
14922 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
14923 # Guess yes on Cygwin.
14924 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
14925 # If we don't know, assume the worst.
14926 *) gl_cv_func_getcwd_null
="guessing no";;
14930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14933 # include <stdlib.h>
14935 # include <unistd.h>
14936 # else /* on Windows with MSVC */
14937 # include <direct.h>
14947 #if defined _WIN32 && ! defined __CYGWIN__
14948 /* mingw cwd does not start with '/', but getcwd does allocate.
14949 However, mingw fails to honor non-zero size. */
14951 if (chdir ("/") != 0)
14955 char *f = getcwd (NULL, 0);
14959 { free (f); return 3; }
14961 { free (f); return 4; }
14971 if ac_fn_c_try_run
"$LINENO"; then :
14972 gl_cv_func_getcwd_null
=yes
14974 gl_cv_func_getcwd_null
=no
14976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
14982 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
14986 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
14987 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
14988 $as_echo_n "(cached) " >&6
14990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #include <unistd.h>
15000 char *getcwd (char *, size_t);
15007 if ac_fn_c_try_compile
"$LINENO"; then :
15008 gl_cv_func_getcwd_posix_signature
=yes
15010 gl_cv_func_getcwd_posix_signature
=no
15012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
15016 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
15027 GNULIB_FPRINTF_POSIX
=0;
15043 GNULIB_OBSTACK_PRINTF
=0;
15044 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15049 GNULIB_PRINTF_POSIX
=0;
15058 GNULIB_SPRINTF_POSIX
=0;
15059 GNULIB_STDIO_H_NONBLOCKING
=0;
15060 GNULIB_STDIO_H_SIGPIPE
=0;
15062 GNULIB_VASPRINTF
=0;
15067 GNULIB_VFPRINTF_POSIX
=0;
15069 GNULIB_VPRINTF_POSIX
=0;
15070 GNULIB_VSNPRINTF
=0;
15071 GNULIB_VSPRINTF_POSIX
=0;
15072 HAVE_DECL_FPURGE
=1;
15073 HAVE_DECL_FSEEKO
=1;
15074 HAVE_DECL_FTELLO
=1;
15075 HAVE_DECL_GETDELIM
=1;
15076 HAVE_DECL_GETLINE
=1;
15077 HAVE_DECL_OBSTACK_PRINTF
=1;
15078 HAVE_DECL_SNPRINTF
=1;
15079 HAVE_DECL_VSNPRINTF
=1;
15100 REPLACE_GETDELIM
=0;
15102 REPLACE_OBSTACK_PRINTF
=0;
15108 REPLACE_RENAMEAT
=0;
15109 REPLACE_SNPRINTF
=0;
15111 REPLACE_STDIO_READ_FUNCS
=0;
15112 REPLACE_STDIO_WRITE_FUNCS
=0;
15114 REPLACE_VASPRINTF
=0;
15115 REPLACE_VDPRINTF
=0;
15116 REPLACE_VFPRINTF
=0;
15118 REPLACE_VSNPRINTF
=0;
15119 REPLACE_VSPRINTF
=0;
15121 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
15122 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
15128 cat >>confdefs.h
<<_ACEOF
15129 #define HAVE_DECL_GETDELIM $ac_have_decl
15136 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
15137 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
15143 cat >>confdefs.h
<<_ACEOF
15144 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
15147 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
15148 if test "x$ac_cv_have_decl_getline" = xyes
; then :
15154 cat >>confdefs.h
<<_ACEOF
15155 #define HAVE_DECL_GETLINE $ac_have_decl
15173 if test $gl_cv_have_include_next = yes; then
15174 gl_cv_next_getopt_h
='<'getopt.h
'>'
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15177 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15178 if ${gl_cv_next_getopt_h+:} false
; then :
15179 $as_echo_n "(cached) " >&6
15182 if test $ac_cv_header_getopt_h = yes; then
15187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 #include <getopt.h>
15192 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15193 *) gl_absname_cpp
="$ac_cpp" ;;
15198 gl_dirsep_regex
='[/\\]'
15201 gl_dirsep_regex
='\/'
15204 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15205 gl_header_literal_regex
=`echo 'getopt.h' \
15206 | sed -e "$gl_make_literal_regex_sed"`
15207 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15208 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15214 gl_cv_absolute_getopt_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15215 sed -n "$gl_absolute_header_sed"`
15217 gl_header
=$gl_cv_absolute_getopt_h
15218 gl_cv_next_getopt_h
='"'$gl_header'"'
15220 gl_cv_next_getopt_h
='<'getopt.h
'>'
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15226 $as_echo "$gl_cv_next_getopt_h" >&6; }
15228 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
15230 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15232 gl_next_as_first_directive
='<'getopt.h
'>'
15234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15235 gl_next_as_first_directive
=$gl_cv_next_getopt_h
15237 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
15242 if test $ac_cv_header_getopt_h = yes; then
15251 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
15252 for ac_header
in getopt.h
15254 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15255 if test "x$ac_cv_header_getopt_h" = xyes
; then :
15256 cat >>confdefs.h
<<_ACEOF
15257 #define HAVE_GETOPT_H 1
15261 gl_replace_getopt
=yes
15268 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
15269 for ac_func
in getopt_long_only
15271 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15272 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
15273 cat >>confdefs.h
<<_ACEOF
15274 #define HAVE_GETOPT_LONG_ONLY 1
15278 gl_replace_getopt
=yes
15284 if test -z "$gl_replace_getopt"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15286 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15287 if ${gl_cv_func_getopt_posix+:} false
; then :
15288 $as_echo_n "(cached) " >&6
15291 if test $cross_compiling = no
; then
15292 if test "$cross_compiling" = yes; then :
15293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15295 as_fn_error $?
"cannot run test program while cross compiling
15296 See \`config.log' for more details" "$LINENO" 5; }
15298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 #include <unistd.h>
15302 #include <stdlib.h>
15303 #include <string.h>
15308 static char program[] = "program";
15309 static char a[] = "-a";
15310 static char foo[] = "foo";
15311 static char bar[] = "bar";
15312 char *argv[] = { program, a, foo, bar, NULL };
15315 c = getopt (4, argv, "ab");
15318 c = getopt (4, argv, "ab");
15321 if (!(optind == 2))
15327 if ac_fn_c_try_run
"$LINENO"; then :
15328 gl_cv_func_getopt_posix
=maybe
15330 gl_cv_func_getopt_posix
=no
15332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15336 if test $gl_cv_func_getopt_posix = maybe
; then
15337 if test "$cross_compiling" = yes; then :
15338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15340 as_fn_error $?
"cannot run test program while cross compiling
15341 See \`config.log' for more details" "$LINENO" 5; }
15343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15346 #include <unistd.h>
15347 #include <stdlib.h>
15348 #include <string.h>
15353 static char program[] = "program";
15354 static char donald[] = "donald";
15355 static char p[] = "-p";
15356 static char billy[] = "billy";
15357 static char duck[] = "duck";
15358 static char a[] = "-a";
15359 static char bar[] = "bar";
15360 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
15363 c = getopt (7, argv, "+abp:q:");
15366 if (!(strcmp (argv[0], "program") == 0))
15368 if (!(strcmp (argv[1], "donald") == 0))
15370 if (!(strcmp (argv[2], "-p") == 0))
15372 if (!(strcmp (argv[3], "billy") == 0))
15374 if (!(strcmp (argv[4], "duck") == 0))
15376 if (!(strcmp (argv[5], "-a") == 0))
15378 if (!(strcmp (argv[6], "bar") == 0))
15380 if (!(optind == 1))
15386 if ac_fn_c_try_run
"$LINENO"; then :
15387 gl_cv_func_getopt_posix
=maybe
15389 gl_cv_func_getopt_posix
=no
15391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15396 if test $gl_cv_func_getopt_posix = maybe
; then
15397 if test "$cross_compiling" = yes; then :
15398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15400 as_fn_error $?
"cannot run test program while cross compiling
15401 See \`config.log' for more details" "$LINENO" 5; }
15403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15406 #include <unistd.h>
15407 #include <stdlib.h>
15408 #include <string.h>
15413 static char program[] = "program";
15414 static char ab[] = "-ab";
15415 char *argv[3] = { program, ab, NULL };
15416 if (getopt (2, argv, "ab:") != 'a')
15418 if (getopt (2, argv, "ab:") != '?')
15428 if ac_fn_c_try_run
"$LINENO"; then :
15429 gl_cv_func_getopt_posix
=yes
15431 gl_cv_func_getopt_posix
=no
15433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15440 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
15441 *) gl_cv_func_getopt_posix
="guessing yes";;
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
15447 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15448 case "$gl_cv_func_getopt_posix" in
15449 *no
) gl_replace_getopt
=yes ;;
15453 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
15455 $as_echo_n "checking for working GNU getopt function... " >&6; }
15456 if ${gl_cv_func_getopt_gnu+:} false
; then :
15457 $as_echo_n "(cached) " >&6
15459 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15460 # optstring is necessary for programs like m4 that have POSIX-mandated
15461 # semantics for supporting options interspersed with files.
15462 # Also, since getopt_long is a GNU extension, we require optind=0.
15463 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
15464 # so take care to revert to the correct (non-)export state.
15465 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
15466 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
15467 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
15468 x
) gl_had_POSIXLY_CORRECT
=yes ;;
15469 *) gl_had_POSIXLY_CORRECT
= ;;
15472 export POSIXLY_CORRECT
15473 if test "$cross_compiling" = yes; then :
15474 gl_cv_func_getopt_gnu
="guessing no"
15477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 #include <getopt.h>
15480 #include <stddef.h>
15481 #include <string.h>
15483 #include <stdlib.h>
15484 #if defined __MACH__ && defined __APPLE__
15485 /* Avoid a crash on Mac OS X. */
15486 #include <mach/mach.h>
15487 #include <mach/mach_error.h>
15488 #include <mach/thread_status.h>
15489 #include <mach/exception.h>
15490 #include <mach/task.h>
15491 #include <pthread.h>
15492 /* The exception port on which our thread listens. */
15493 static mach_port_t our_exception_port;
15494 /* The main function of the thread listening for exceptions of type
15497 mach_exception_thread (void *arg)
15499 /* Buffer for a message to be received. */
15501 mach_msg_header_t head;
15502 mach_msg_body_t msgh_body;
15505 mach_msg_return_t retval;
15506 /* Wait for a message on the exception port. */
15507 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
15508 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
15509 if (retval != MACH_MSG_SUCCESS)
15514 nocrash_init (void)
15516 mach_port_t self = mach_task_self ();
15517 /* Allocate a port on which the thread shall listen for exceptions. */
15518 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
15520 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
15521 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
15522 MACH_MSG_TYPE_MAKE_SEND)
15524 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
15526 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
15527 /* Create the thread listening on the exception port. */
15528 pthread_attr_t attr;
15530 if (pthread_attr_init (&attr) == 0
15531 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
15532 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
15533 pthread_attr_destroy (&attr);
15534 /* Replace the exception port info for these exceptions with our own.
15535 Note that we replace the exception port for the entire task, not only
15536 for a particular thread. This has the effect that when our exception
15537 port gets the message, the thread specific exception port has already
15538 been asked, and we don't need to bother about it.
15539 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
15540 task_set_exception_ports (self, mask, our_exception_port,
15541 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
15546 #elif defined _WIN32 && ! defined __CYGWIN__
15547 /* Avoid a crash on native Windows. */
15548 #define WIN32_LEAN_AND_MEAN
15549 #include <windows.h>
15550 #include <winerror.h>
15552 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
15554 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
15556 case EXCEPTION_ACCESS_VIOLATION:
15557 case EXCEPTION_IN_PAGE_ERROR:
15558 case EXCEPTION_STACK_OVERFLOW:
15559 case EXCEPTION_GUARD_PAGE:
15560 case EXCEPTION_PRIV_INSTRUCTION:
15561 case EXCEPTION_ILLEGAL_INSTRUCTION:
15562 case EXCEPTION_DATATYPE_MISALIGNMENT:
15563 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
15564 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
15567 return EXCEPTION_CONTINUE_SEARCH;
15570 nocrash_init (void)
15572 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
15575 /* Avoid a crash on POSIX systems. */
15576 #include <signal.h>
15577 #include <unistd.h>
15578 /* A POSIX signal handler. */
15580 exception_handler (int sig)
15585 nocrash_init (void)
15588 signal (SIGSEGV, exception_handler);
15591 signal (SIGBUS, exception_handler);
15605 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15606 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15607 OSF/1 5.1, Solaris 10. */
15609 static char conftest[] = "conftest";
15610 static char plus[] = "-+";
15611 char *argv[3] = { conftest, plus, NULL };
15613 if (getopt (2, argv, "+a") != '?')
15616 /* This code succeeds on glibc 2.8, mingw,
15617 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15618 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
15620 static char program[] = "program";
15621 static char p[] = "-p";
15622 static char foo[] = "foo";
15623 static char bar[] = "bar";
15624 char *argv[] = { program, p, foo, bar, NULL };
15627 if (getopt (4, argv, "p::") != 'p')
15629 else if (optarg != NULL)
15631 else if (getopt (4, argv, "p::") != -1)
15633 else if (optind != 2)
15636 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
15638 static char program[] = "program";
15639 static char foo[] = "foo";
15640 static char p[] = "-p";
15641 char *argv[] = { program, foo, p, NULL };
15643 if (getopt (3, argv, "-p") != 1)
15645 else if (getopt (3, argv, "-p") != 'p')
15648 /* This code fails on glibc 2.11. */
15650 static char program[] = "program";
15651 static char b[] = "-b";
15652 static char a[] = "-a";
15653 char *argv[] = { program, b, a, NULL };
15654 optind = opterr = 0;
15655 if (getopt (3, argv, "+:a:b") != 'b')
15657 else if (getopt (3, argv, "+:a:b") != ':')
15660 /* This code dumps core on glibc 2.14. */
15662 static char program[] = "program";
15663 static char w[] = "-W";
15664 static char dummy[] = "dummy";
15665 char *argv[] = { program, w, dummy, NULL };
15666 optind = opterr = 1;
15667 if (getopt (3, argv, "W;") != 'W')
15676 if ac_fn_c_try_run
"$LINENO"; then :
15677 gl_cv_func_getopt_gnu
=yes
15679 gl_cv_func_getopt_gnu
=no
15681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15682 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15685 case $gl_had_POSIXLY_CORRECT in
15687 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
15688 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
15693 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15694 if test "$gl_cv_func_getopt_gnu" != yes; then
15695 gl_replace_getopt
=yes
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
15698 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
15699 if ${gl_cv_func_getopt_long_gnu+:} false
; then :
15700 $as_echo_n "(cached) " >&6
15702 if test "$cross_compiling" = yes; then :
15704 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
15705 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
15709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 #include <getopt.h>
15712 #include <stddef.h>
15713 #include <string.h>
15718 static const struct option long_options[] =
15720 { "xtremely-",no_argument, NULL, 1003 },
15721 { "xtra", no_argument, NULL, 1001 },
15722 { "xtreme", no_argument, NULL, 1002 },
15723 { "xtremely", no_argument, NULL, 1003 },
15724 { NULL, 0, NULL, 0 }
15726 /* This code fails on OpenBSD 5.0. */
15728 static char program[] = "program";
15729 static char xtremel[] = "--xtremel";
15730 char *argv[] = { program, xtremel, NULL };
15732 optind = 1; opterr = 0;
15733 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
15742 if ac_fn_c_try_run
"$LINENO"; then :
15743 gl_cv_func_getopt_long_gnu
=yes
15745 gl_cv_func_getopt_long_gnu
=no
15747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
15754 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
15755 case "$gl_cv_func_getopt_long_gnu" in
15757 *) gl_replace_getopt
=yes ;;
15769 GNULIB_NL_LANGINFO
=0;
15770 HAVE_NL_LANGINFO
=1;
15771 REPLACE_NL_LANGINFO
=0;
15787 if test $gl_cv_have_include_next = yes; then
15788 gl_cv_next_limits_h
='<'limits.h
'>'
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
15791 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
15792 if ${gl_cv_next_limits_h+:} false
; then :
15793 $as_echo_n "(cached) " >&6
15796 if test $ac_cv_header_limits_h = yes; then
15801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 #include <limits.h>
15806 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15807 *) gl_absname_cpp
="$ac_cpp" ;;
15812 gl_dirsep_regex
='[/\\]'
15815 gl_dirsep_regex
='\/'
15818 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15819 gl_header_literal_regex
=`echo 'limits.h' \
15820 | sed -e "$gl_make_literal_regex_sed"`
15821 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15822 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15828 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15829 sed -n "$gl_absolute_header_sed"`
15831 gl_header
=$gl_cv_absolute_limits_h
15832 gl_cv_next_limits_h
='"'$gl_header'"'
15834 gl_cv_next_limits_h
='<'limits.h
'>'
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
15840 $as_echo "$gl_cv_next_limits_h" >&6; }
15842 NEXT_LIMITS_H
=$gl_cv_next_limits_h
15844 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15846 gl_next_as_first_directive
='<'limits.h
'>'
15848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15849 gl_next_as_first_directive
=$gl_cv_next_limits_h
15851 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
15858 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
15859 if ${gl_cv_header_limits_width+:} false
; then :
15860 $as_echo_n "(cached) " >&6
15862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
15865 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
15867 #include <limits.h>
15868 long long llm = LLONG_MAX;
15870 int ullw = ULLONG_WIDTH;
15880 if ac_fn_c_try_compile
"$LINENO"; then :
15881 gl_cv_header_limits_width
=yes
15883 gl_cv_header_limits_width
=no
15885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
15888 $as_echo "$gl_cv_header_limits_width" >&6; }
15889 if test "$gl_cv_header_limits_width" = yes; then
15895 if test -n "$LIMITS_H"; then
15896 GL_GENERATE_LIMITS_H_TRUE
=
15897 GL_GENERATE_LIMITS_H_FALSE
='#'
15899 GL_GENERATE_LIMITS_H_TRUE
='#'
15900 GL_GENERATE_LIMITS_H_FALSE
=
15905 GNULIB_LOCALECONV
=0;
15906 GNULIB_SETLOCALE
=0;
15907 GNULIB_DUPLOCALE
=0;
15908 GNULIB_LOCALENAME
=0;
15912 REPLACE_LOCALECONV
=0;
15913 REPLACE_SETLOCALE
=0;
15914 REPLACE_NEWLOCALE
=0;
15915 REPLACE_DUPLOCALE
=0;
15916 REPLACE_FREELOCALE
=0;
15917 REPLACE_STRUCT_LCONV
=0;
15921 HAVE_MAX_ALIGN_T
=1;
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15926 $as_echo_n "checking for wchar_t... " >&6; }
15927 if ${gt_cv_c_wchar_t+:} false
; then :
15928 $as_echo_n "(cached) " >&6
15930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 #include <stddef.h>
15933 wchar_t foo = (wchar_t)'\0';
15942 if ac_fn_c_try_compile
"$LINENO"; then :
15943 gt_cv_c_wchar_t
=yes
15947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15950 $as_echo "$gt_cv_c_wchar_t" >&6; }
15951 if test $gt_cv_c_wchar_t = yes; then
15953 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
15963 $as_echo_n "checking for good max_align_t... " >&6; }
15964 if ${gl_cv_type_max_align_t+:} false
; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <stddef.h>
15970 unsigned int s = sizeof (max_align_t);
15971 #if defined __GNUC__ || defined __IBM__ALIGNOF__
15972 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
15973 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
15984 if ac_fn_c_try_compile
"$LINENO"; then :
15985 gl_cv_type_max_align_t
=yes
15987 gl_cv_type_max_align_t
=no
15989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
15993 $as_echo "$gl_cv_type_max_align_t" >&6; }
15994 if test $gl_cv_type_max_align_t = no
; then
15999 if test $gt_cv_c_wchar_t = no
; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16005 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16006 if ${gl_cv_decl_null_works+:} false
; then :
16007 $as_echo_n "(cached) " >&6
16009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <stddef.h>
16012 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16022 if ac_fn_c_try_compile
"$LINENO"; then :
16023 gl_cv_decl_null_works
=yes
16025 gl_cv_decl_null_works
=no
16027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16030 $as_echo "$gl_cv_decl_null_works" >&6; }
16031 if test $gl_cv_decl_null_works = no
; then
16037 if test -n "$STDDEF_H"; then
16038 GL_GENERATE_STDDEF_H_TRUE
=
16039 GL_GENERATE_STDDEF_H_FALSE
='#'
16041 GL_GENERATE_STDDEF_H_TRUE
='#'
16042 GL_GENERATE_STDDEF_H_FALSE
=
16045 if test -n "$STDDEF_H"; then
16054 if test $gl_cv_have_include_next = yes; then
16055 gl_cv_next_stddef_h
='<'stddef.h
'>'
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16058 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16059 if ${gl_cv_next_stddef_h+:} false
; then :
16060 $as_echo_n "(cached) " >&6
16065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 #include <stddef.h>
16070 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16071 *) gl_absname_cpp
="$ac_cpp" ;;
16076 gl_dirsep_regex
='[/\\]'
16079 gl_dirsep_regex
='\/'
16082 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16083 gl_header_literal_regex
=`echo 'stddef.h' \
16084 | sed -e "$gl_make_literal_regex_sed"`
16085 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16086 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16092 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16093 sed -n "$gl_absolute_header_sed"`
16095 gl_header
=$gl_cv_absolute_stddef_h
16096 gl_cv_next_stddef_h
='"'$gl_header'"'
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16101 $as_echo "$gl_cv_next_stddef_h" >&6; }
16103 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16105 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16106 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16107 gl_next_as_first_directive
='<'stddef.h
'>'
16109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16110 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16112 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16123 gl_threads_api
=none
16128 if test "$gl_use_threads" != no
; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16130 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16131 if ${gl_cv_have_weak+:} false
; then :
16132 $as_echo_n "(cached) " >&6
16135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16137 extern void xyzzy ();
16147 if ac_fn_c_try_link
"$LINENO"; then :
16148 gl_cv_have_weak
=maybe
16150 rm -f core conftest.err conftest.
$ac_objext \
16151 conftest
$ac_exeext conftest.
$ac_ext
16152 if test $gl_cv_have_weak = maybe
; then
16153 if test "$cross_compiling" = yes; then :
16154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16157 Extensible Linking Format
16161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16162 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
16163 gl_cv_have_weak
="guessing yes"
16165 gl_cv_have_weak
="guessing no"
16171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16178 return (fputs == NULL);
16181 if ac_fn_c_try_run
"$LINENO"; then :
16182 gl_cv_have_weak
=yes
16186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16191 case " $LDFLAGS " in
16192 *" -static "*) gl_cv_have_weak
=no
;;
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16197 $as_echo "$gl_cv_have_weak" >&6; }
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports --as-needed" >&5
16199 $as_echo_n "checking whether the linker supports --as-needed... " >&6; }
16200 if ${gl_cv_linker_have_as_needed+:} false
; then :
16201 $as_echo_n "(cached) " >&6
16203 if test -n "$GCC"; then
16204 gl_saved_ldflags
="$LDFLAGS"
16205 LDFLAGS
="$gl_saved_ldflags -Wl,--as-needed -Wl,--no-as-needed"
16206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16217 if ac_fn_c_try_link
"$LINENO"; then :
16218 gl_cv_linker_have_as_needed
=yes
16220 gl_cv_linker_have_as_needed
=no
16222 rm -f core conftest.err conftest.
$ac_objext \
16223 conftest
$ac_exeext conftest.
$ac_ext
16224 LDFLAGS
="$gl_saved_ldflags"
16226 gl_cv_linker_have_as_needed
=no
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_linker_have_as_needed" >&5
16231 $as_echo "$gl_cv_linker_have_as_needed" >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports --push-state" >&5
16233 $as_echo_n "checking whether the linker supports --push-state... " >&6; }
16234 if ${gl_cv_linker_have_push_state+:} false
; then :
16235 $as_echo_n "(cached) " >&6
16237 if test -n "$GCC"; then
16238 gl_saved_ldflags
="$LDFLAGS"
16239 LDFLAGS
="$gl_saved_ldflags -Wl,--push-state -Wl,--pop-state"
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16251 if ac_fn_c_try_link
"$LINENO"; then :
16252 gl_cv_linker_have_push_state
=yes
16254 gl_cv_linker_have_push_state
=no
16256 rm -f core conftest.err conftest.
$ac_objext \
16257 conftest
$ac_exeext conftest.
$ac_ext
16258 LDFLAGS
="$gl_saved_ldflags"
16260 gl_cv_linker_have_push_state
=no
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_linker_have_push_state" >&5
16265 $as_echo "$gl_cv_linker_have_push_state" >&6; }
16266 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
16267 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16268 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16269 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16270 if test "x$ac_cv_header_pthread_h" = xyes
; then :
16271 gl_have_pthread_h
=yes
16273 gl_have_pthread_h
=no
16277 if test "$gl_have_pthread_h" = yes; then
16278 # Other possible tests:
16279 # -lpthreads (FSU threads, PCthreads)
16282 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16283 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16284 # the second one only in libpthread, and lock.c needs it.
16286 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
16287 # needs -pthread for some reason. See:
16288 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16290 for gl_pthread
in '' '-pthread'; do
16291 LIBS
="$LIBS $gl_pthread"
16292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <pthread.h>
16296 pthread_mutexattr_t ma;
16301 pthread_mutex_lock (&m);
16302 pthread_mutexattr_init (&ma);
16307 if ac_fn_c_try_link
"$LINENO"; then :
16308 gl_have_pthread
=yes
16309 LIBTHREAD
=$gl_pthread LTLIBTHREAD
=$gl_pthread
16310 LIBMULTITHREAD
=$gl_pthread LTLIBMULTITHREAD
=$gl_pthread
16312 rm -f core conftest.err conftest.
$ac_objext \
16313 conftest
$ac_exeext conftest.
$ac_ext
16315 test -n "$gl_have_pthread" && break
16318 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16319 # since it is defined as a macro on OSF/1.)
16320 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
16321 # The program links fine without libpthread. But it may actually
16322 # need to link with libpthread in order to create multiple threads.
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16324 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16325 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
16326 $as_echo_n "(cached) " >&6
16328 ac_check_lib_save_LIBS
=$LIBS
16329 LIBS
="-lpthread $LIBS"
16330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16333 /* Override any GCC internal prototype to avoid an error.
16334 Use char because int might match the return type of a GCC
16335 builtin and then its argument prototype would still apply. */
16339 char pthread_kill ();
16343 return pthread_kill ();
16348 if ac_fn_c_try_link
"$LINENO"; then :
16349 ac_cv_lib_pthread_pthread_kill
=yes
16351 ac_cv_lib_pthread_pthread_kill
=no
16353 rm -f core conftest.err conftest.
$ac_objext \
16354 conftest
$ac_exeext conftest.
$ac_ext
16355 LIBS
=$ac_check_lib_save_LIBS
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16358 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16359 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
16360 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
16361 # On Solaris and HP-UX, most pthread functions exist also in libc.
16362 # Therefore pthread_in_use() needs to actually try to create a
16363 # thread: pthread_create from libc will fail, whereas
16364 # pthread_create will actually create a thread.
16365 # On Solaris 10 or newer, this test is no longer needed, because
16366 # libc contains the fully functional pthread functions.
16368 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
16370 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16376 elif test -z "$gl_have_pthread"; then
16377 # Some library is needed. Try libpthread and libc_r.
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16379 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16380 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
16381 $as_echo_n "(cached) " >&6
16383 ac_check_lib_save_LIBS
=$LIBS
16384 LIBS
="-lpthread $LIBS"
16385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16388 /* Override any GCC internal prototype to avoid an error.
16389 Use char because int might match the return type of a GCC
16390 builtin and then its argument prototype would still apply. */
16394 char pthread_kill ();
16398 return pthread_kill ();
16403 if ac_fn_c_try_link
"$LINENO"; then :
16404 ac_cv_lib_pthread_pthread_kill
=yes
16406 ac_cv_lib_pthread_pthread_kill
=no
16408 rm -f core conftest.err conftest.
$ac_objext \
16409 conftest
$ac_exeext conftest.
$ac_ext
16410 LIBS
=$ac_check_lib_save_LIBS
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16413 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16414 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
16415 gl_have_pthread
=yes
16416 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
16417 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
16420 if test -z "$gl_have_pthread"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16423 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16424 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
16425 $as_echo_n "(cached) " >&6
16427 ac_check_lib_save_LIBS
=$LIBS
16429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16432 /* Override any GCC internal prototype to avoid an error.
16433 Use char because int might match the return type of a GCC
16434 builtin and then its argument prototype would still apply. */
16438 char pthread_kill ();
16442 return pthread_kill ();
16447 if ac_fn_c_try_link
"$LINENO"; then :
16448 ac_cv_lib_c_r_pthread_kill
=yes
16450 ac_cv_lib_c_r_pthread_kill
=no
16452 rm -f core conftest.err conftest.
$ac_objext \
16453 conftest
$ac_exeext conftest.
$ac_ext
16454 LIBS
=$ac_check_lib_save_LIBS
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16457 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16458 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
16459 gl_have_pthread
=yes
16460 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
16461 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
16466 if test -n "$gl_have_pthread"; then
16467 gl_threads_api
=posix
16469 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16471 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
16472 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
16474 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16478 case "$LIBMULTITHREAD" in
16481 if test $gl_cv_linker_have_as_needed = yes; then
16482 if test $gl_cv_linker_have_push_state = yes; then
16483 LIBMULTITHREAD
="$LIBMULTITHREAD -Wl,--push-state -Wl,--no-as-needed -lpthread -Wl,--pop-state"
16485 LIBMULTITHREAD
="$LIBMULTITHREAD -Wl,--no-as-needed -lpthread"
16490 if test $gl_cv_linker_have_as_needed = yes; then
16491 if test $gl_cv_linker_have_push_state = yes; then
16492 LIBMULTITHREAD
="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
16494 LIBMULTITHREAD
="-Wl,--no-as-needed $LIBMULTITHREAD"
16499 # TODO: May need to modify LTLIBMULTITHREAD similarly.
16505 if test -z "$gl_have_pthread"; then
16506 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
16507 gl_have_solaristhread
=
16508 gl_save_LIBS
="$LIBS"
16509 LIBS
="$LIBS -lthread"
16510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16513 #include <thread.h>
16524 if ac_fn_c_try_link
"$LINENO"; then :
16525 gl_have_solaristhread
=yes
16527 rm -f core conftest.err conftest.
$ac_objext \
16528 conftest
$ac_exeext conftest.
$ac_ext
16529 LIBS
="$gl_save_LIBS"
16530 if test -n "$gl_have_solaristhread"; then
16531 gl_threads_api
=solaris
16533 LTLIBTHREAD
=-lthread
16534 LIBMULTITHREAD
="$LIBTHREAD"
16535 LTLIBMULTITHREAD
="$LTLIBTHREAD"
16537 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16539 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
16541 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16545 if test $gl_cv_linker_have_as_needed = yes; then
16546 if test $gl_cv_linker_have_push_state = yes; then
16547 LIBMULTITHREAD
="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
16549 LIBMULTITHREAD
="-Wl,--no-as-needed $LIBMULTITHREAD"
16552 # TODO: May need to modify LTLIBMULTITHREAD similarly.
16557 if test "$gl_use_threads" = pth
; then
16558 gl_save_CPPFLAGS
="$CPPFLAGS"
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16565 $as_echo_n "checking how to link with libpth... " >&6; }
16566 if ${ac_cv_libpth_libs+:} false
; then :
16567 $as_echo_n "(cached) " >&6
16578 acl_save_prefix
="$prefix"
16579 prefix
="$acl_final_prefix"
16580 acl_save_exec_prefix
="$exec_prefix"
16581 exec_prefix
="$acl_final_exec_prefix"
16583 eval additional_includedir
=\"$includedir\"
16584 eval additional_libdir
=\"$libdir\"
16586 exec_prefix
="$acl_save_exec_prefix"
16587 prefix
="$acl_save_prefix"
16590 # Check whether --with-libpth-prefix was given.
16591 if test "${with_libpth_prefix+set}" = set; then :
16592 withval
=$with_libpth_prefix;
16593 if test "X$withval" = "Xno"; then
16596 if test "X$withval" = "X"; then
16598 acl_save_prefix
="$prefix"
16599 prefix
="$acl_final_prefix"
16600 acl_save_exec_prefix
="$exec_prefix"
16601 exec_prefix
="$acl_final_exec_prefix"
16603 eval additional_includedir
=\"$includedir\"
16604 eval additional_libdir
=\"$libdir\"
16606 exec_prefix
="$acl_save_exec_prefix"
16607 prefix
="$acl_save_prefix"
16610 additional_includedir
="$withval/include"
16611 additional_libdir
="$withval/$acl_libdirstem"
16612 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16613 && test ! -d "$withval/$acl_libdirstem"; then
16614 additional_libdir
="$withval/$acl_libdirstem2"
16628 names_already_handled
=
16629 names_next_round
='pth '
16630 while test -n "$names_next_round"; do
16631 names_this_round
="$names_next_round"
16633 for name
in $names_this_round; do
16635 for n
in $names_already_handled; do
16636 if test "$n" = "$name"; then
16637 already_handled
=yes
16641 if test -z "$already_handled"; then
16642 names_already_handled
="$names_already_handled $name"
16643 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16644 eval value
=\"\
$HAVE_LIB$uppername\"
16645 if test -n "$value"; then
16646 if test "$value" = yes; then
16647 eval value
=\"\
$LIB$uppername\"
16648 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
16649 eval value
=\"\
$LTLIB$uppername\"
16650 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
16659 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
16660 if test -n "$acl_shlibext"; then
16661 shrext
=".$acl_shlibext" # typically: shrext=.so
16665 if test $use_additional = yes; then
16666 dir
="$additional_libdir"
16667 if test -n "$acl_shlibext"; then
16668 if test -f "$dir/$libname$shrext"; then
16670 found_so
="$dir/$libname$shrext"
16672 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16673 ver
=`(cd "$dir" && \
16674 for f in "$libname$shrext".*; do echo "$f"; done \
16675 | sed -e "s,^$libname$shrext\\\\.,," \
16676 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16677 | sed 1q ) 2>/dev/null`
16678 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16680 found_so
="$dir/$libname$shrext.$ver"
16683 eval library_names
=\"$acl_library_names_spec\"
16684 for f
in $library_names; do
16685 if test -f "$dir/$f"; then
16694 if test "X$found_dir" = "X"; then
16695 if test -f "$dir/$libname.$acl_libext"; then
16697 found_a
="$dir/$libname.$acl_libext"
16700 if test "X$found_dir" != "X"; then
16701 if test -f "$dir/$libname.la"; then
16702 found_la
="$dir/$libname.la"
16706 if test "X$found_dir" = "X"; then
16707 for x
in $LDFLAGS $LTLIBPTH; do
16709 acl_save_prefix
="$prefix"
16710 prefix
="$acl_final_prefix"
16711 acl_save_exec_prefix
="$exec_prefix"
16712 exec_prefix
="$acl_final_exec_prefix"
16714 exec_prefix
="$acl_save_exec_prefix"
16715 prefix
="$acl_save_prefix"
16719 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16720 if test -n "$acl_shlibext"; then
16721 if test -f "$dir/$libname$shrext"; then
16723 found_so
="$dir/$libname$shrext"
16725 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16726 ver
=`(cd "$dir" && \
16727 for f in "$libname$shrext".*; do echo "$f"; done \
16728 | sed -e "s,^$libname$shrext\\\\.,," \
16729 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16730 | sed 1q ) 2>/dev/null`
16731 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16733 found_so
="$dir/$libname$shrext.$ver"
16736 eval library_names
=\"$acl_library_names_spec\"
16737 for f
in $library_names; do
16738 if test -f "$dir/$f"; then
16747 if test "X$found_dir" = "X"; then
16748 if test -f "$dir/$libname.$acl_libext"; then
16750 found_a
="$dir/$libname.$acl_libext"
16753 if test "X$found_dir" != "X"; then
16754 if test -f "$dir/$libname.la"; then
16755 found_la
="$dir/$libname.la"
16760 if test "X$found_dir" != "X"; then
16765 if test "X$found_dir" != "X"; then
16766 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16767 if test "X$found_so" != "X"; then
16768 if test "$enable_rpath" = no \
16769 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
16770 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16771 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
16774 for x
in $ltrpathdirs; do
16775 if test "X$x" = "X$found_dir"; then
16780 if test -z "$haveit"; then
16781 ltrpathdirs
="$ltrpathdirs $found_dir"
16783 if test "$acl_hardcode_direct" = yes; then
16784 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
16786 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
16787 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
16789 for x
in $rpathdirs; do
16790 if test "X$x" = "X$found_dir"; then
16795 if test -z "$haveit"; then
16796 rpathdirs
="$rpathdirs $found_dir"
16800 for x
in $LDFLAGS $LIBPTH; do
16802 acl_save_prefix
="$prefix"
16803 prefix
="$acl_final_prefix"
16804 acl_save_exec_prefix
="$exec_prefix"
16805 exec_prefix
="$acl_final_exec_prefix"
16807 exec_prefix
="$acl_save_exec_prefix"
16808 prefix
="$acl_save_prefix"
16810 if test "X$x" = "X-L$found_dir"; then
16815 if test -z "$haveit"; then
16816 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16818 if test "$acl_hardcode_minus_L" != no
; then
16819 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
16821 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
16827 if test "X$found_a" != "X"; then
16828 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
16830 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16833 additional_includedir
=
16834 case "$found_dir" in
16835 */$acl_libdirstem |
*/$acl_libdirstem/)
16836 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16837 if test "$name" = 'pth'; then
16838 LIBPTH_PREFIX
="$basedir"
16840 additional_includedir
="$basedir/include"
16842 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
16843 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16844 if test "$name" = 'pth'; then
16845 LIBPTH_PREFIX
="$basedir"
16847 additional_includedir
="$basedir/include"
16850 if test "X$additional_includedir" != "X"; then
16851 if test "X$additional_includedir" != "X/usr/include"; then
16853 if test "X$additional_includedir" = "X/usr/local/include"; then
16854 if test -n "$GCC"; then
16856 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
16860 if test -z "$haveit"; then
16861 for x
in $CPPFLAGS $INCPTH; do
16863 acl_save_prefix
="$prefix"
16864 prefix
="$acl_final_prefix"
16865 acl_save_exec_prefix
="$exec_prefix"
16866 exec_prefix
="$acl_final_exec_prefix"
16868 exec_prefix
="$acl_save_exec_prefix"
16869 prefix
="$acl_save_prefix"
16871 if test "X$x" = "X-I$additional_includedir"; then
16876 if test -z "$haveit"; then
16877 if test -d "$additional_includedir"; then
16878 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16884 if test -n "$found_la"; then
16885 save_libdir
="$libdir"
16886 case "$found_la" in
16887 */* |
*\\*) .
"$found_la" ;;
16888 *) .
"./$found_la" ;;
16890 libdir
="$save_libdir"
16891 for dep
in $dependency_libs; do
16894 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16895 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16896 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16898 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16899 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16900 if test -n "$GCC"; then
16902 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
16906 if test -z "$haveit"; then
16908 for x
in $LDFLAGS $LIBPTH; do
16910 acl_save_prefix
="$prefix"
16911 prefix
="$acl_final_prefix"
16912 acl_save_exec_prefix
="$exec_prefix"
16913 exec_prefix
="$acl_final_exec_prefix"
16915 exec_prefix
="$acl_save_exec_prefix"
16916 prefix
="$acl_save_prefix"
16918 if test "X$x" = "X-L$additional_libdir"; then
16923 if test -z "$haveit"; then
16924 if test -d "$additional_libdir"; then
16925 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16929 for x
in $LDFLAGS $LTLIBPTH; do
16931 acl_save_prefix
="$prefix"
16932 prefix
="$acl_final_prefix"
16933 acl_save_exec_prefix
="$exec_prefix"
16934 exec_prefix
="$acl_final_exec_prefix"
16936 exec_prefix
="$acl_save_exec_prefix"
16937 prefix
="$acl_save_prefix"
16939 if test "X$x" = "X-L$additional_libdir"; then
16944 if test -z "$haveit"; then
16945 if test -d "$additional_libdir"; then
16946 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16953 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16954 if test "$enable_rpath" != no
; then
16956 for x
in $rpathdirs; do
16957 if test "X$x" = "X$dir"; then
16962 if test -z "$haveit"; then
16963 rpathdirs
="$rpathdirs $dir"
16966 for x
in $ltrpathdirs; do
16967 if test "X$x" = "X$dir"; then
16972 if test -z "$haveit"; then
16973 ltrpathdirs
="$ltrpathdirs $dir"
16978 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16981 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16984 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
16985 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16991 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
16992 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16998 if test "X$rpathdirs" != "X"; then
16999 if test -n "$acl_hardcode_libdir_separator"; then
17001 for found_dir
in $rpathdirs; do
17002 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17004 acl_save_libdir
="$libdir"
17006 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
17007 libdir
="$acl_save_libdir"
17008 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
17010 for found_dir
in $rpathdirs; do
17011 acl_save_libdir
="$libdir"
17012 libdir
="$found_dir"
17013 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
17014 libdir
="$acl_save_libdir"
17015 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
17019 if test "X$ltrpathdirs" != "X"; then
17020 for found_dir
in $ltrpathdirs; do
17021 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17029 ac_cv_libpth_libs
="$LIBPTH"
17030 ac_cv_libpth_ltlibs
="$LTLIBPTH"
17031 ac_cv_libpth_cppflags
="$INCPTH"
17032 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17036 $as_echo "$ac_cv_libpth_libs" >&6; }
17037 LIBPTH
="$ac_cv_libpth_libs"
17038 LTLIBPTH
="$ac_cv_libpth_ltlibs"
17039 INCPTH
="$ac_cv_libpth_cppflags"
17040 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
17042 for element
in $INCPTH; do
17044 for x
in $CPPFLAGS; do
17046 acl_save_prefix
="$prefix"
17047 prefix
="$acl_final_prefix"
17048 acl_save_exec_prefix
="$exec_prefix"
17049 exec_prefix
="$acl_final_exec_prefix"
17051 exec_prefix
="$acl_save_exec_prefix"
17052 prefix
="$acl_save_prefix"
17054 if test "X$x" = "X$element"; then
17059 if test -z "$haveit"; then
17060 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17072 gl_save_LIBS
="$LIBS"
17073 LIBS
="$LIBS $LIBPTH"
17074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17085 if ac_fn_c_try_link
"$LINENO"; then :
17088 rm -f core conftest.err conftest.
$ac_objext \
17089 conftest
$ac_exeext conftest.
$ac_ext
17090 LIBS
="$gl_save_LIBS"
17091 if test -n "$gl_have_pth"; then
17093 LIBTHREAD
="$LIBPTH"
17094 LTLIBTHREAD
="$LTLIBPTH"
17095 LIBMULTITHREAD
="$LIBTHREAD"
17096 LTLIBMULTITHREAD
="$LTLIBTHREAD"
17098 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17100 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
17101 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
17103 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17107 if test $gl_cv_linker_have_as_needed = yes; then
17108 if test $gl_cv_linker_have_push_state = yes; then
17109 LIBMULTITHREAD
="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
17111 LIBMULTITHREAD
="-Wl,--no-as-needed $LIBMULTITHREAD"
17114 # TODO: May need to modify LTLIBMULTITHREAD similarly.
17118 CPPFLAGS
="$gl_save_CPPFLAGS"
17121 if test -z "$gl_have_pthread"; then
17122 case "$gl_use_threads" in
17123 yes | windows | win32
) # The 'win32' is for backward compatibility.
17124 if { case "$host_os" in
17129 gl_threads_api
=windows
17131 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17139 $as_echo_n "checking for multithread API to use... " >&6; }
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17141 $as_echo "$gl_threads_api" >&6; }
17154 GNULIB_CALLOC_POSIX
=0;
17155 GNULIB_CANONICALIZE_FILE_NAME
=0;
17156 GNULIB_GETLOADAVG
=0;
17157 GNULIB_GETSUBOPT
=0;
17159 GNULIB_MALLOC_POSIX
=0;
17163 GNULIB_MKOSTEMPS
=0;
17166 GNULIB_POSIX_OPENPT
=0;
17168 GNULIB_PTSNAME_R
=0;
17173 GNULIB_REALLOCARRAY
=0;
17174 GNULIB_REALLOC_POSIX
=0;
17177 GNULIB_SECURE_GETENV
=0;
17182 GNULIB_SYSTEM_POSIX
=0;
17188 HAVE_CANONICALIZE_FILE_NAME
=1;
17189 HAVE_DECL_GETLOADAVG
=1;
17192 HAVE_DECL_INITSTATE
=1;
17198 HAVE_POSIX_OPENPT
=1;
17205 HAVE_REALLOCARRAY
=1;
17208 HAVE_SECURE_GETENV
=1;
17210 HAVE_DECL_SETENV
=1;
17211 HAVE_DECL_SETSTATE
=1;
17215 HAVE_STRUCT_RANDOM_DATA
=1;
17216 HAVE_SYS_LOADAVG_H
=0;
17218 HAVE_DECL_UNSETENV
=1;
17220 REPLACE_CANONICALIZE_FILE_NAME
=0;
17225 REPLACE_PTSNAME_R
=0;
17228 REPLACE_RANDOM_R
=0;
17230 REPLACE_REALPATH
=0;
17233 REPLACE_UNSETENV
=0;
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17238 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17239 if ${gl_cv_func_malloc_posix+:} false
; then :
17240 $as_echo_n "(cached) " >&6
17243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17249 #if defined _WIN32 && ! defined __CYGWIN__
17257 if ac_fn_c_try_compile
"$LINENO"; then :
17258 gl_cv_func_malloc_posix
=yes
17260 gl_cv_func_malloc_posix
=no
17262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17266 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17270 for ac_header
in stdlib.h
17272 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17273 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
17274 cat >>confdefs.h
<<_ACEOF
17275 #define HAVE_STDLIB_H 1
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17283 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17284 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
17285 $as_echo_n "(cached) " >&6
17287 if test "$cross_compiling" = yes; then :
17289 # Guess yes on platforms where we know the result.
17290 *-gnu* | gnu
* | freebsd
* | netbsd
* | openbsd
* \
17291 | hpux
* | solaris
* | cygwin
* | mingw
*)
17292 ac_cv_func_malloc_0_nonnull
=yes ;;
17293 # If we don't know, assume the worst.
17294 *) ac_cv_func_malloc_0_nonnull
=no
;;
17298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17301 # include <stdlib.h>
17309 char *p = malloc (0);
17318 if ac_fn_c_try_run
"$LINENO"; then :
17319 ac_cv_func_malloc_0_nonnull
=yes
17321 ac_cv_func_malloc_0_nonnull
=no
17323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17330 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17331 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17332 gl_cv_func_malloc_0_nonnull
=1
17334 gl_cv_func_malloc_0_nonnull
=0
17338 cat >>confdefs.h
<<_ACEOF
17339 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17345 $as_echo_n "checking for unsigned long long int... " >&6; }
17346 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
17347 $as_echo_n "(cached) " >&6
17349 ac_cv_type_unsigned_long_long_int
=yes
17350 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17354 /* For now, do not test the preprocessor; as of 2007 there are too many
17355 implementations with broken preprocessors. Perhaps this can
17356 be revisited in 2012. In the meantime, code should not expect
17357 #if to work with literals wider than 32 bits. */
17358 /* Test literals. */
17359 long long int ll = 9223372036854775807ll;
17360 long long int nll = -9223372036854775807LL;
17361 unsigned long long int ull = 18446744073709551615ULL;
17362 /* Test constant expressions. */
17363 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17365 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17371 /* Test availability of runtime routines for shift and division. */
17372 long long int llmax = 9223372036854775807ll;
17373 unsigned long long int ullmax = 18446744073709551615ull;
17374 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17375 | (llmax / ll) | (llmax % ll)
17376 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17377 | (ullmax / ull) | (ullmax % ull));
17383 if ac_fn_c_try_link
"$LINENO"; then :
17386 ac_cv_type_unsigned_long_long_int
=no
17388 rm -f core conftest.err conftest.
$ac_objext \
17389 conftest
$ac_exeext conftest.
$ac_ext
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17393 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17394 if test $ac_cv_type_unsigned_long_long_int = yes; then
17396 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17403 $as_echo_n "checking for long long int... " >&6; }
17404 if ${ac_cv_type_long_long_int+:} false
; then :
17405 $as_echo_n "(cached) " >&6
17407 ac_cv_type_long_long_int
=yes
17408 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17409 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17410 if test $ac_cv_type_long_long_int = yes; then
17411 if test "$cross_compiling" = yes; then :
17414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416 #include <limits.h>
17419 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17420 # define LLONG_MAX (HALF - 1 + HALF)
17425 long long int n = 1;
17429 long long int m = n << i;
17432 if (LLONG_MAX / 2 < m)
17440 if ac_fn_c_try_run
"$LINENO"; then :
17443 ac_cv_type_long_long_int
=no
17445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17453 $as_echo "$ac_cv_type_long_long_int" >&6; }
17454 if test $ac_cv_type_long_long_int = yes; then
17456 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
17468 $as_echo_n "checking for a traditional japanese locale... " >&6; }
17469 if ${gt_cv_locale_ja+:} false
; then :
17470 $as_echo_n "(cached) " >&6
17473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17476 #include <locale.h>
17478 #if HAVE_LANGINFO_CODESET
17479 # include <langinfo.h>
17481 #include <stdlib.h>
17482 #include <string.h>
17487 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
17488 imitates locale dependent behaviour by looking at the environment
17489 variables, and all locales use the UTF-8 encoding. */
17490 #if defined __BEOS__ || defined __HAIKU__
17493 /* Check whether the given locale name is recognized by the system. */
17494 # if defined _WIN32 && !defined __CYGWIN__
17495 /* On native Windows, setlocale(category, "") looks at the system settings,
17496 not at the environment variables. Also, when an encoding suffix such
17497 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
17498 category of the locale to "C". */
17499 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
17500 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
17503 if (setlocale (LC_ALL, "") == NULL) return 1;
17505 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17506 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
17507 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17508 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17509 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17510 some unit tests fail.
17511 On MirBSD 10, when an unsupported locale is specified, setlocale()
17512 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
17513 # if HAVE_LANGINFO_CODESET
17515 const char *cs = nl_langinfo (CODESET);
17516 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
17517 || strcmp (cs, "UTF-8") == 0)
17522 /* On Cygwin, avoid locale names without encoding suffix, because the
17523 locale_charset() function relies on the encoding suffix. Note that
17524 LC_ALL is set on the command line. */
17525 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17527 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
17528 on Cygwin 1.5.x. */
17529 if (MB_CUR_MAX == 1)
17531 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
17532 This excludes the UTF-8 encoding (except on MirBSD). */
17535 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
17536 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
17537 for (p = buf; *p != '\0'; p++)
17538 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
17546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17547 (eval $ac_link) 2>&5
17549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17550 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
17552 # Handle native Windows specially, because there setlocale() interprets
17553 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
17554 # "fr" or "fra" as "French" or "French_France.1252",
17555 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
17556 # "ja" as "Japanese" or "Japanese_Japan.932",
17559 # Note that on native Windows, the Japanese locale is
17560 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
17561 # cannot use it here.
17562 gt_cv_locale_ja
=none
17565 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17566 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
17567 # configure script would override the LC_ALL setting. Likewise for
17568 # LC_CTYPE, which is also set at the beginning of the configure script.
17569 # Test for the AIX locale name.
17570 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17571 gt_cv_locale_ja
=ja_JP
17573 # Test for the locale name with explicit encoding suffix.
17574 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17575 gt_cv_locale_ja
=ja_JP.EUC-JP
17577 # Test for the HP-UX, OSF/1, NetBSD locale name.
17578 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17579 gt_cv_locale_ja
=ja_JP.eucJP
17581 # Test for the IRIX, FreeBSD locale name.
17582 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17583 gt_cv_locale_ja
=ja_JP.EUC
17585 # Test for the Solaris 7 locale name.
17586 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17589 # Special test for NetBSD 1.6.
17590 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
17591 gt_cv_locale_ja
=ja_JP.eucJP
17594 gt_cv_locale_ja
=none
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
17608 $as_echo "$gt_cv_locale_ja" >&6; }
17609 LOCALE_JA
=$gt_cv_locale_ja
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
17616 $as_echo_n "checking for a transitional chinese locale... " >&6; }
17617 if ${gt_cv_locale_zh_CN+:} false
; then :
17618 $as_echo_n "(cached) " >&6
17621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17624 #include <locale.h>
17625 #include <stdlib.h>
17627 #if HAVE_LANGINFO_CODESET
17628 # include <langinfo.h>
17630 #include <stdlib.h>
17631 #include <string.h>
17636 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
17637 imitates locale dependent behaviour by looking at the environment
17638 variables, and all locales use the UTF-8 encoding. */
17639 #if defined __BEOS__ || defined __HAIKU__
17642 /* Check whether the given locale name is recognized by the system. */
17643 # if defined _WIN32 && !defined __CYGWIN__
17644 /* On native Windows, setlocale(category, "") looks at the system settings,
17645 not at the environment variables. Also, when an encoding suffix such
17646 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
17647 category of the locale to "C". */
17648 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
17649 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
17652 if (setlocale (LC_ALL, "") == NULL) return 1;
17654 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17655 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
17656 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17657 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17658 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17659 some unit tests fail.
17660 On MirBSD 10, when an unsupported locale is specified, setlocale()
17661 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
17662 # if HAVE_LANGINFO_CODESET
17664 const char *cs = nl_langinfo (CODESET);
17665 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
17666 || strcmp (cs, "UTF-8") == 0)
17671 /* On Cygwin, avoid locale names without encoding suffix, because the
17672 locale_charset() function relies on the encoding suffix. Note that
17673 LC_ALL is set on the command line. */
17674 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17676 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
17677 This excludes the UTF-8 encoding (except on MirBSD). */
17680 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
17681 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
17682 for (p = buf; *p != '\0'; p++)
17683 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
17686 /* Check whether a typical GB18030 multibyte sequence is recognized as a
17687 single wide character. This excludes the GB2312 and GBK encodings. */
17688 if (mblen ("\203\062\332\066", 5) != 4)
17695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17696 (eval $ac_link) 2>&5
17698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17699 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
17701 # Handle native Windows specially, because there setlocale() interprets
17702 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
17703 # "fr" or "fra" as "French" or "French_France.1252",
17704 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
17705 # "ja" as "Japanese" or "Japanese_Japan.932",
17708 # Test for the hypothetical native Windows locale name.
17709 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17710 gt_cv_locale_zh_CN
=Chinese_China
.54936
17713 gt_cv_locale_zh_CN
=none
17717 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
17718 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
17719 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
17720 gt_cv_locale_zh_CN
=none
17723 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17724 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
17725 # configure script would override the LC_ALL setting. Likewise for
17726 # LC_CTYPE, which is also set at the beginning of the configure script.
17727 # Test for the locale name without encoding suffix.
17728 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17729 gt_cv_locale_zh_CN
=zh_CN
17731 # Test for the locale name with explicit encoding suffix.
17732 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17733 gt_cv_locale_zh_CN
=zh_CN.GB18030
17736 gt_cv_locale_zh_CN
=none
17742 # If there was a link error, due to mblen(), the system is so old that
17743 # it certainly doesn't have a chinese locale.
17744 gt_cv_locale_zh_CN
=none
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
17750 $as_echo "$gt_cv_locale_zh_CN" >&6; }
17751 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
17757 $as_echo_n "checking for a french Unicode locale... " >&6; }
17758 if ${gt_cv_locale_fr_utf8+:} false
; then :
17759 $as_echo_n "(cached) " >&6
17762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17765 #include <locale.h>
17767 #if HAVE_LANGINFO_CODESET
17768 # include <langinfo.h>
17770 #include <stdlib.h>
17771 #include <string.h>
17775 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
17776 imitates locale dependent behaviour by looking at the environment
17777 variables, and all locales use the UTF-8 encoding. */
17778 #if !(defined __BEOS__ || defined __HAIKU__)
17779 /* Check whether the given locale name is recognized by the system. */
17780 # if defined _WIN32 && !defined __CYGWIN__
17781 /* On native Windows, setlocale(category, "") looks at the system settings,
17782 not at the environment variables. Also, when an encoding suffix such
17783 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
17784 category of the locale to "C". */
17785 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
17786 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
17789 if (setlocale (LC_ALL, "") == NULL) return 1;
17791 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17792 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
17793 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17794 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17795 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17796 some unit tests fail. */
17797 # if HAVE_LANGINFO_CODESET
17799 const char *cs = nl_langinfo (CODESET);
17800 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
17805 /* On Cygwin, avoid locale names without encoding suffix, because the
17806 locale_charset() function relies on the encoding suffix. Note that
17807 LC_ALL is set on the command line. */
17808 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17810 /* Check whether in the abbreviation of the second month, the second
17811 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
17812 two bytes long, with UTF-8 encoding. */
17813 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
17814 if (strftime (buf, sizeof (buf), "%b", &t) < 4
17815 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
17818 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
17819 /* Check whether the decimal separator is a comma.
17820 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
17821 are nl_langinfo(RADIXCHAR) are both ".". */
17822 if (localeconv () ->decimal_point[0] != ',') return 1;
17828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17829 (eval $ac_link) 2>&5
17831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
17834 # Handle native Windows specially, because there setlocale() interprets
17835 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
17836 # "fr" or "fra" as "French" or "French_France.1252",
17837 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
17838 # "ja" as "Japanese" or "Japanese_Japan.932",
17841 # Test for the hypothetical native Windows locale name.
17842 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17843 gt_cv_locale_fr_utf8
=French_France
.65001
17846 gt_cv_locale_fr_utf8
=none
17850 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17851 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
17852 # configure script would override the LC_ALL setting. Likewise for
17853 # LC_CTYPE, which is also set at the beginning of the configure script.
17854 # Test for the usual locale name.
17855 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17856 gt_cv_locale_fr_utf8
=fr_FR
17858 # Test for the locale name with explicit encoding suffix.
17859 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17860 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
17862 # Test for the Solaris 7 locale name.
17863 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
17864 gt_cv_locale_fr_utf8
=fr.UTF-8
17867 gt_cv_locale_fr_utf8
=none
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
17878 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
17879 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
17891 GNULIB_EXPLICIT_BZERO
=0;
17898 GNULIB_RAWMEMCHR
=0;
17901 GNULIB_STRCHRNUL
=0;
17909 GNULIB_STRCASESTR
=0;
17916 GNULIB_MBSCASECMP
=0;
17917 GNULIB_MBSNCASECMP
=0;
17918 GNULIB_MBSPCASECMP
=0;
17919 GNULIB_MBSCASESTR
=0;
17926 GNULIB_STRERROR_R
=0;
17927 GNULIB_STRSIGNAL
=0;
17928 GNULIB_STRVERSCMP
=0;
17930 HAVE_EXPLICIT_BZERO
=1;
17934 HAVE_DECL_MEMMEM
=1;
17936 HAVE_DECL_MEMRCHR
=1;
17941 HAVE_DECL_STRDUP
=1;
17942 HAVE_DECL_STRNDUP
=1;
17943 HAVE_DECL_STRNLEN
=1;
17947 HAVE_DECL_STRTOK_R
=1;
17948 HAVE_DECL_STRERROR_R
=1;
17949 HAVE_DECL_STRSIGNAL
=1;
17954 REPLACE_STRCHRNUL
=0;
17960 REPLACE_STRCASESTR
=0;
17961 REPLACE_STRTOK_R
=0;
17962 REPLACE_STRERROR
=0;
17963 REPLACE_STRERROR_R
=0;
17964 REPLACE_STRSIGNAL
=0;
17965 UNDEFINE_STRTOK_R
=0;
17972 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17973 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17974 # irrelevant for anonymous mappings.
17975 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
17976 if test "x$ac_cv_func_mmap" = xyes
; then :
17983 # Try to allow MAP_ANONYMOUS.
17984 gl_have_mmap_anonymous
=no
17985 if test $gl_have_mmap = yes; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17987 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17991 #include <sys/mman.h>
17992 #ifdef MAP_ANONYMOUS
17993 I cannot identify this map
17997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17998 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
17999 gl_have_mmap_anonymous
=yes
18003 if test $gl_have_mmap_anonymous != yes; then
18004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18007 #include <sys/mman.h>
18009 I cannot identify this map
18013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18014 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
18016 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
18018 gl_have_mmap_anonymous
=yes
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
18024 $as_echo "$gl_have_mmap_anonymous" >&6; }
18025 if test $gl_have_mmap_anonymous = yes; then
18027 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
18037 if test $HAVE_MEMCHR = 1; then
18038 # Detect platform-specific bugs in some versions of glibc:
18039 # memchr should not dereference anything with length 0
18040 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
18041 # memchr should not dereference overestimated length after a match
18042 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
18043 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
18044 # Assume that memchr works on platforms that lack mprotect.
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
18046 $as_echo_n "checking whether memchr works... " >&6; }
18047 if ${gl_cv_func_memchr_works+:} false
; then :
18048 $as_echo_n "(cached) " >&6
18050 if test "$cross_compiling" = yes; then :
18052 # Guess yes on native Windows.
18053 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
18054 # Be pessimistic for now.
18055 *) gl_cv_func_memchr_works
="guessing no" ;;
18059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18062 #include <string.h>
18063 #if HAVE_SYS_MMAN_H
18064 # include <fcntl.h>
18065 # include <unistd.h>
18066 # include <sys/types.h>
18067 # include <sys/mman.h>
18069 # define MAP_FILE 0
18078 char *fence = NULL;
18079 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
18080 # if HAVE_MAP_ANONYMOUS
18081 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
18083 # else /* !HAVE_MAP_ANONYMOUS */
18084 const int flags = MAP_FILE | MAP_PRIVATE;
18085 int fd = open ("/dev/zero", O_RDONLY, 0666);
18089 int pagesize = getpagesize ();
18091 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
18093 if (two_pages != (char *)(-1)
18094 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
18095 fence = two_pages + pagesize;
18100 if (memchr (fence, 0, 0))
18102 strcpy (fence - 9, "12345678");
18103 if (memchr (fence - 9, 0, 79) != fence - 1)
18105 if (memchr (fence - 1, 0, 3) != fence - 1)
18114 if ac_fn_c_try_run
"$LINENO"; then :
18115 gl_cv_func_memchr_works
=yes
18117 gl_cv_func_memchr_works
=no
18119 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18120 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
18126 $as_echo "$gl_cv_func_memchr_works" >&6; }
18127 case "$gl_cv_func_memchr_works" in
18129 *) REPLACE_MEMCHR
=1 ;;
18133 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
18134 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
18140 cat >>confdefs.h
<<_ACEOF
18141 #define HAVE_DECL_MEMRCHR $ac_have_decl
18148 gl_cv_c_multiarch
=no
18149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 #ifndef __APPLE_CC__
18152 not a universal capable compiler
18157 if ac_fn_c_try_compile
"$LINENO"; then :
18161 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18162 if test -n "$prev"; then
18164 i?
86 | x86_64 | ppc | ppc64
)
18165 if test -z "$arch" ||
test "$arch" = "$word"; then
18168 gl_cv_c_multiarch
=yes
18174 if test "x$word" = "x-arch"; then
18181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18182 if test $gl_cv_c_multiarch = yes; then
18183 APPLE_UNIVERSAL_BUILD
=1
18185 APPLE_UNIVERSAL_BUILD
=0
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
18193 $as_echo_n "checking for O_CLOEXEC... " >&6; }
18194 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
18195 $as_echo_n "(cached) " >&6
18197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18212 if ac_fn_c_try_compile
"$LINENO"; then :
18213 gl_cv_macro_O_CLOEXEC
=yes
18215 gl_cv_macro_O_CLOEXEC
=no
18217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
18220 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
18227 $as_echo_n "checking for promoted mode_t type... " >&6; }
18228 if ${gl_cv_promoted_mode_t+:} false
; then :
18229 $as_echo_n "(cached) " >&6
18232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 #include <sys/types.h>
18238 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
18243 if ac_fn_c_try_compile
"$LINENO"; then :
18244 gl_cv_promoted_mode_t
='int'
18246 gl_cv_promoted_mode_t
='mode_t'
18248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
18252 $as_echo "$gl_cv_promoted_mode_t" >&6; }
18254 cat >>confdefs.h
<<_ACEOF
18255 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18263 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18264 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
18265 $as_echo_n "(cached) " >&6
18267 rm -f conftest.sym conftest.
file
18268 echo >conftest.
file
18269 if test "$cross_compiling" = yes; then :
18272 # Guess yes on Linux systems.
18273 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18275 # Guess yes on glibc systems.
18276 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18278 # Guess no on native Windows.
18279 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18281 # If we don't know, assume the worst.
18282 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 $ac_includes_default
18293 if (symlink ("conftest.file", "conftest.sym") != 0)
18295 /* Linux will dereference the symlink and fail, as required by
18296 POSIX. That is better in the sense that it means we will not
18297 have to compile and use the lstat wrapper. */
18298 return lstat ("conftest.sym/", &sbuf) == 0;
18304 if ac_fn_c_try_run
"$LINENO"; then :
18305 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18307 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18309 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18310 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18313 rm -f conftest.sym conftest.
file
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18317 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18318 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18321 cat >>confdefs.h
<<_ACEOF
18322 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18328 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
18329 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
18335 cat >>confdefs.h
<<_ACEOF
18336 #define HAVE_DECL_ALARM $ac_have_decl
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18343 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18344 if ${ac_cv_gnu_library_2_1+:} false
; then :
18345 $as_echo_n "(cached) " >&6
18347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18350 #include <features.h>
18351 #ifdef __GNU_LIBRARY__
18352 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362 $EGREP "Lucky" >/dev
/null
2>&1; then :
18363 ac_cv_gnu_library_2_1
=yes
18365 ac_cv_gnu_library_2_1
=no
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18373 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18375 GLIBC21
="$ac_cv_gnu_library_2_1"
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18383 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18384 if ${ac_cv_header_stdbool_h+:} false
; then :
18385 $as_echo_n "(cached) " >&6
18387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18390 #include <stdbool.h>
18395 typedef _Bool Bool;
18397 "error: bool is not defined"
18400 "error: false is not defined"
18403 "error: false is not 0"
18406 "error: true is not defined"
18409 "error: true is not 1"
18413 #ifndef __bool_true_false_are_defined
18414 "error: __bool_true_false_are_defined is not defined"
18417 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
18419 char a[true == 1 ? 1 : -1];
18420 char b[false == 0 ? 1 : -1];
18421 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18422 char d[(bool) 0.5 == true ? 1 : -1];
18423 /* See body of main program for 'e'. */
18424 char f[(Bool) 0.0 == false ? 1 : -1];
18426 char h[sizeof (Bool)];
18427 char i[sizeof s.t];
18428 enum { j = false, k = true, l = false * true, m = true * 256 };
18429 /* The following fails for
18430 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18432 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18433 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18434 /* Catch a bug in an HP-UX C compiler. See
18435 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18436 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
18447 *pq |= q; *pq |= ! q;
18448 *qq |= q; *qq |= ! q;
18449 /* Refer to every declared value, to avoid compiler optimizations. */
18450 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18451 + !m + !n + !o + !p + !q + !pq + !qq);
18457 if ac_fn_c_try_compile
"$LINENO"; then :
18458 ac_cv_header_stdbool_h
=yes
18460 ac_cv_header_stdbool_h
=no
18462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18465 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18466 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18467 if test "x$ac_cv_type__Bool" = xyes
; then :
18469 cat >>confdefs.h
<<_ACEOF
18470 #define HAVE__BOOL 1
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18479 $as_echo_n "checking for wint_t... " >&6; }
18480 if ${gt_cv_c_wint_t+:} false
; then :
18481 $as_echo_n "(cached) " >&6
18483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18486 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18488 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18489 before <wchar.h>. */
18490 #include <stddef.h>
18494 wint_t foo = (wchar_t)'\0';
18503 if ac_fn_c_try_compile
"$LINENO"; then :
18508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18511 $as_echo "$gt_cv_c_wint_t" >&6; }
18512 if test $gt_cv_c_wint_t = yes; then
18514 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
18518 $as_echo_n "checking whether wint_t is too small... " >&6; }
18519 if ${gl_cv_type_wint_t_too_small+:} false
; then :
18520 $as_echo_n "(cached) " >&6
18522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18527 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18528 included before <wchar.h>. */
18529 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18530 # include <stddef.h>
18531 # include <stdio.h>
18535 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
18545 if ac_fn_c_try_compile
"$LINENO"; then :
18546 gl_cv_type_wint_t_too_small
=no
18548 gl_cv_type_wint_t_too_small
=yes
18550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
18553 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
18554 if test $gl_cv_type_wint_t_too_small = yes; then
18555 GNULIB_OVERRIDES_WINT_T
=1
18557 GNULIB_OVERRIDES_WINT_T
=0
18560 GNULIB_OVERRIDES_WINT_T
=0
18572 if test $ac_cv_type_long_long_int = yes; then
18573 HAVE_LONG_LONG_INT
=1
18575 HAVE_LONG_LONG_INT
=0
18579 if test $ac_cv_type_unsigned_long_long_int = yes; then
18580 HAVE_UNSIGNED_LONG_LONG_INT
=1
18582 HAVE_UNSIGNED_LONG_LONG_INT
=0
18587 if test $ac_cv_header_wchar_h = yes; then
18594 if test $ac_cv_header_inttypes_h = yes; then
18601 if test $ac_cv_header_sys_types_h = yes; then
18617 if test $gl_cv_have_include_next = yes; then
18618 gl_cv_next_stdint_h
='<'stdint.h
'>'
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18621 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18622 if ${gl_cv_next_stdint_h+:} false
; then :
18623 $as_echo_n "(cached) " >&6
18626 if test $ac_cv_header_stdint_h = yes; then
18631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18632 /* end confdefs.h. */
18633 #include <stdint.h>
18636 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18637 *) gl_absname_cpp
="$ac_cpp" ;;
18642 gl_dirsep_regex
='[/\\]'
18645 gl_dirsep_regex
='\/'
18648 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18649 gl_header_literal_regex
=`echo 'stdint.h' \
18650 | sed -e "$gl_make_literal_regex_sed"`
18651 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18652 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18658 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18659 sed -n "$gl_absolute_header_sed"`
18661 gl_header
=$gl_cv_absolute_stdint_h
18662 gl_cv_next_stdint_h
='"'$gl_header'"'
18664 gl_cv_next_stdint_h
='<'stdint.h
'>'
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18670 $as_echo "$gl_cv_next_stdint_h" >&6; }
18672 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18674 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18676 gl_next_as_first_directive
='<'stdint.h
'>'
18678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18679 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18681 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18686 if test $ac_cv_header_stdint_h = yes; then
18693 if test $ac_cv_header_stdint_h = yes; then
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18695 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18696 if ${gl_cv_header_working_stdint_h+:} false
; then :
18697 $as_echo_n "(cached) " >&6
18699 gl_cv_header_working_stdint_h
=no
18700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18704 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18705 #define __STDC_CONSTANT_MACROS 1
18706 #define __STDC_LIMIT_MACROS 1
18707 #include <stdint.h>
18708 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18709 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18710 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18714 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18715 included before <wchar.h>. */
18716 #include <stddef.h>
18717 #include <signal.h>
18719 # include <stdio.h>
18721 # include <wchar.h>
18726 int8_t a1 = INT8_MAX;
18727 int8_t a1min = INT8_MIN;
18730 int16_t a2 = INT16_MAX;
18731 int16_t a2min = INT16_MIN;
18734 int32_t a3 = INT32_MAX;
18735 int32_t a3min = INT32_MIN;
18738 int64_t a4 = INT64_MAX;
18739 int64_t a4min = INT64_MIN;
18742 uint8_t b1 = UINT8_MAX;
18744 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18747 uint16_t b2 = UINT16_MAX;
18750 uint32_t b3 = UINT32_MAX;
18753 uint64_t b4 = UINT64_MAX;
18755 int_least8_t c1 = INT8_C (0x7f);
18756 int_least8_t c1max = INT_LEAST8_MAX;
18757 int_least8_t c1min = INT_LEAST8_MIN;
18758 int_least16_t c2 = INT16_C (0x7fff);
18759 int_least16_t c2max = INT_LEAST16_MAX;
18760 int_least16_t c2min = INT_LEAST16_MIN;
18761 int_least32_t c3 = INT32_C (0x7fffffff);
18762 int_least32_t c3max = INT_LEAST32_MAX;
18763 int_least32_t c3min = INT_LEAST32_MIN;
18764 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18765 int_least64_t c4max = INT_LEAST64_MAX;
18766 int_least64_t c4min = INT_LEAST64_MIN;
18767 uint_least8_t d1 = UINT8_C (0xff);
18768 uint_least8_t d1max = UINT_LEAST8_MAX;
18769 uint_least16_t d2 = UINT16_C (0xffff);
18770 uint_least16_t d2max = UINT_LEAST16_MAX;
18771 uint_least32_t d3 = UINT32_C (0xffffffff);
18772 uint_least32_t d3max = UINT_LEAST32_MAX;
18773 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18774 uint_least64_t d4max = UINT_LEAST64_MAX;
18775 int_fast8_t e1 = INT_FAST8_MAX;
18776 int_fast8_t e1min = INT_FAST8_MIN;
18777 int_fast16_t e2 = INT_FAST16_MAX;
18778 int_fast16_t e2min = INT_FAST16_MIN;
18779 int_fast32_t e3 = INT_FAST32_MAX;
18780 int_fast32_t e3min = INT_FAST32_MIN;
18781 int_fast64_t e4 = INT_FAST64_MAX;
18782 int_fast64_t e4min = INT_FAST64_MIN;
18783 uint_fast8_t f1 = UINT_FAST8_MAX;
18784 uint_fast16_t f2 = UINT_FAST16_MAX;
18785 uint_fast32_t f3 = UINT_FAST32_MAX;
18786 uint_fast64_t f4 = UINT_FAST64_MAX;
18788 intptr_t g = INTPTR_MAX;
18789 intptr_t gmin = INTPTR_MIN;
18792 uintptr_t h = UINTPTR_MAX;
18794 intmax_t i = INTMAX_MAX;
18795 uintmax_t j = UINTMAX_MAX;
18797 /* Check that SIZE_MAX has the correct type, if possible. */
18798 #if 201112 <= __STDC_VERSION__
18799 int k = _Generic (SIZE_MAX, size_t: 0);
18800 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
18801 || (0x5110 <= __SUNPRO_C && !__STDC__))
18803 extern __typeof__ (SIZE_MAX) k;
18806 #include <limits.h> /* for CHAR_BIT */
18807 #define TYPE_MINIMUM(t) \
18808 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18809 #define TYPE_MAXIMUM(t) \
18810 ((t) ((t) 0 < (t) -1 \
18812 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18815 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18816 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18818 /* Detect bug in FreeBSD 6.0 / ia64. */
18819 int check_SIG_ATOMIC:
18820 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18821 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18823 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18825 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18826 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18828 /* Detect bug in mingw. */
18830 WINT_MIN == TYPE_MINIMUM (wint_t)
18831 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18834 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18836 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18837 int check_UINT16_C:
18838 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18840 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18842 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18845 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18848 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18851 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18853 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18854 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18855 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18856 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18857 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18858 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18859 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18860 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18861 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18862 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18863 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18874 if ac_fn_c_try_compile
"$LINENO"; then :
18875 if test "$cross_compiling" = yes; then :
18877 # Guess yes on native Windows.
18878 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
18879 # In general, assume it works.
18880 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
18884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18888 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18889 #define __STDC_CONSTANT_MACROS 1
18890 #define __STDC_LIMIT_MACROS 1
18891 #include <stdint.h>
18894 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18895 included before <wchar.h>. */
18896 #include <stddef.h>
18897 #include <signal.h>
18899 # include <stdio.h>
18901 # include <wchar.h>
18906 #include <string.h>
18907 #define MVAL(macro) MVAL1(macro)
18908 #define MVAL1(expression) #expression
18909 static const char *macro_values[] =
18943 for (mv = macro_values; *mv != NULL; mv++)
18945 const char *value = *mv;
18946 /* Test whether it looks like a cast expression. */
18947 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18948 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18949 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18950 || strncmp (value, "((int)"/*)*/, 6) == 0
18951 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18952 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18953 return mv - macro_values + 1;
18961 if ac_fn_c_try_run
"$LINENO"; then :
18962 gl_cv_header_working_stdint_h
=yes
18964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18974 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18977 HAVE_C99_STDINT_H
=0
18978 HAVE_SYS_BITYPES_H
=0
18979 HAVE_SYS_INTTYPES_H
=0
18981 case "$gl_cv_header_working_stdint_h" in
18983 HAVE_C99_STDINT_H
=1
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
18985 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
18986 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
18987 $as_echo_n "(cached) " >&6
18989 gl_cv_header_stdint_predates_cxx11_h
=yes
18990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18994 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18995 #include <stdint.h>
18998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18999 included before <wchar.h>. */
19000 #include <stddef.h>
19001 #include <signal.h>
19003 # include <stdio.h>
19005 # include <wchar.h>
19009 intmax_t im = INTMAX_MAX;
19010 int32_t i32 = INT32_C (0x7fffffff);
19020 if ac_fn_c_try_compile
"$LINENO"; then :
19021 gl_cv_header_stdint_predates_cxx11_h
=no
19023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
19026 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
19028 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
19030 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
19033 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
19037 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
19038 if ${gl_cv_header_stdint_width+:} false
; then :
19039 $as_echo_n "(cached) " >&6
19041 gl_cv_header_stdint_width
=no
19042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19045 /* Work if build is not clean. */
19046 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
19047 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
19048 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
19050 #include <stdint.h>
19052 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19053 included before <wchar.h>. */
19054 #include <stddef.h>
19055 #include <signal.h>
19057 # include <stdio.h>
19059 # include <wchar.h>
19062 int iw = UINTMAX_WIDTH;
19072 if ac_fn_c_try_compile
"$LINENO"; then :
19073 gl_cv_header_stdint_width
=yes
19075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
19078 $as_echo "$gl_cv_header_stdint_width" >&6; }
19079 if test "$gl_cv_header_stdint_width" = yes; then
19084 for ac_header
in sys
/inttypes.h sys
/bitypes.h
19086 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19087 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19088 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19089 cat >>confdefs.h
<<_ACEOF
19090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19097 if test $ac_cv_header_sys_inttypes_h = yes; then
19098 HAVE_SYS_INTTYPES_H
=1
19100 if test $ac_cv_header_sys_bitypes_h = yes; then
19101 HAVE_SYS_BITYPES_H
=1
19105 if test $APPLE_UNIVERSAL_BUILD = 0; then
19108 for gltype
in ptrdiff_t size_t
; do
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19110 $as_echo_n "checking for bit size of $gltype... " >&6; }
19111 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
19112 $as_echo_n "(cached) " >&6
19114 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19115 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19116 included before <wchar.h>. */
19117 #include <stddef.h>
19118 #include <signal.h>
19120 # include <stdio.h>
19122 # include <wchar.h>
19125 #include <limits.h>"; then :
19131 eval gl_cv_bitsizeof_
${gltype}=\
$result
19134 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19136 $as_echo "$ac_res" >&6; }
19137 eval result
=\
$gl_cv_bitsizeof_${gltype}
19138 if test $result = unknown
; then
19141 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19142 cat >>confdefs.h
<<_ACEOF
19143 #define BITSIZEOF_${GLTYPE} $result
19146 eval BITSIZEOF_
${GLTYPE}=\
$result
19153 for gltype
in sig_atomic_t wchar_t wint_t
; do
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19155 $as_echo_n "checking for bit size of $gltype... " >&6; }
19156 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
19157 $as_echo_n "(cached) " >&6
19159 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19160 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19161 included before <wchar.h>. */
19162 #include <stddef.h>
19163 #include <signal.h>
19165 # include <stdio.h>
19167 # include <wchar.h>
19170 #include <limits.h>"; then :
19176 eval gl_cv_bitsizeof_
${gltype}=\
$result
19179 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19181 $as_echo "$ac_res" >&6; }
19182 eval result
=\
$gl_cv_bitsizeof_${gltype}
19183 if test $result = unknown
; then
19186 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19187 cat >>confdefs.h
<<_ACEOF
19188 #define BITSIZEOF_${GLTYPE} $result
19191 eval BITSIZEOF_
${GLTYPE}=\
$result
19197 for gltype
in sig_atomic_t wchar_t wint_t
; do
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19199 $as_echo_n "checking whether $gltype is signed... " >&6; }
19200 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
19201 $as_echo_n "(cached) " >&6
19203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19207 included before <wchar.h>. */
19208 #include <stddef.h>
19209 #include <signal.h>
19211 # include <stdio.h>
19213 # include <wchar.h>
19216 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19225 if ac_fn_c_try_compile
"$LINENO"; then :
19230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19231 eval gl_cv_type_
${gltype}_signed
=\
$result
19234 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19236 $as_echo "$ac_res" >&6; }
19237 eval result
=\
$gl_cv_type_${gltype}_signed
19238 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19239 if test "$result" = yes; then
19240 cat >>confdefs.h
<<_ACEOF
19241 #define HAVE_SIGNED_${GLTYPE} 1
19244 eval HAVE_SIGNED_
${GLTYPE}=1
19246 eval HAVE_SIGNED_
${GLTYPE}=0
19251 gl_cv_type_ptrdiff_t_signed
=yes
19252 gl_cv_type_size_t_signed
=no
19253 if test $APPLE_UNIVERSAL_BUILD = 0; then
19256 for gltype
in ptrdiff_t size_t
; do
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19258 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19259 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
19260 $as_echo_n "(cached) " >&6
19262 eval gl_cv_type_
${gltype}_suffix
=no
19263 eval result
=\
$gl_cv_type_${gltype}_signed
19264 if test "$result" = yes; then
19269 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19271 '') gltype1
='int';;
19272 l
) gltype1
='long int';;
19273 ll
) gltype1
='long long int';;
19274 i64
) gltype1
='__int64';;
19275 u
) gltype1
='unsigned int';;
19276 ul
) gltype1
='unsigned long int';;
19277 ull
) gltype1
='unsigned long long int';;
19278 ui64
)gltype1
='unsigned __int64';;
19280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19283 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19284 included before <wchar.h>. */
19285 #include <stddef.h>
19286 #include <signal.h>
19288 # include <stdio.h>
19290 # include <wchar.h>
19293 extern $gltype foo;
19294 extern $gltype1 foo;
19303 if ac_fn_c_try_compile
"$LINENO"; then :
19304 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19307 eval result
=\
$gl_cv_type_${gltype}_suffix
19308 test "$result" != no
&& break
19311 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19313 $as_echo "$ac_res" >&6; }
19314 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19315 eval result
=\
$gl_cv_type_${gltype}_suffix
19316 test "$result" = no
&& result
=
19317 eval ${GLTYPE}_SUFFIX
=\
$result
19318 cat >>confdefs.h
<<_ACEOF
19319 #define ${GLTYPE}_SUFFIX $result
19328 for gltype
in sig_atomic_t wchar_t wint_t
; do
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19330 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19331 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
19332 $as_echo_n "(cached) " >&6
19334 eval gl_cv_type_
${gltype}_suffix
=no
19335 eval result
=\
$gl_cv_type_${gltype}_signed
19336 if test "$result" = yes; then
19341 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19343 '') gltype1
='int';;
19344 l
) gltype1
='long int';;
19345 ll
) gltype1
='long long int';;
19346 i64
) gltype1
='__int64';;
19347 u
) gltype1
='unsigned int';;
19348 ul
) gltype1
='unsigned long int';;
19349 ull
) gltype1
='unsigned long long int';;
19350 ui64
)gltype1
='unsigned __int64';;
19352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19355 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19356 included before <wchar.h>. */
19357 #include <stddef.h>
19358 #include <signal.h>
19360 # include <stdio.h>
19362 # include <wchar.h>
19365 extern $gltype foo;
19366 extern $gltype1 foo;
19375 if ac_fn_c_try_compile
"$LINENO"; then :
19376 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19379 eval result
=\
$gl_cv_type_${gltype}_suffix
19380 test "$result" != no
&& break
19383 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19385 $as_echo "$ac_res" >&6; }
19386 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19387 eval result
=\
$gl_cv_type_${gltype}_suffix
19388 test "$result" = no
&& result
=
19389 eval ${GLTYPE}_SUFFIX
=\
$result
19390 cat >>confdefs.h
<<_ACEOF
19391 #define ${GLTYPE}_SUFFIX $result
19398 if test $GNULIB_OVERRIDES_WINT_T = 1; then
19399 BITSIZEOF_WINT_T
=32
19407 LIMITS_H
='limits.h'
19408 if test -n "$LIMITS_H"; then
19409 GL_GENERATE_LIMITS_H_TRUE
=
19410 GL_GENERATE_LIMITS_H_FALSE
='#'
19412 GL_GENERATE_LIMITS_H_TRUE
='#'
19413 GL_GENERATE_LIMITS_H_FALSE
=
19422 if test -n "$STDINT_H"; then
19423 GL_GENERATE_STDINT_H_TRUE
=
19424 GL_GENERATE_STDINT_H_FALSE
='#'
19426 GL_GENERATE_STDINT_H_TRUE
='#'
19427 GL_GENERATE_STDINT_H_FALSE
=
19435 HAVE_DECL_STRNCASECMP
=1;
19439 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
19440 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
19446 cat >>confdefs.h
<<_ACEOF
19447 #define HAVE_DECL_STRDUP $ac_have_decl
19451 REPLACE_STRERROR_0
=0
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19453 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19454 if ${gl_cv_func_strerror_0_works+:} false
; then :
19455 $as_echo_n "(cached) " >&6
19457 if test "$cross_compiling" = yes; then :
19459 # Guess yes on glibc systems.
19460 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
19461 # Guess yes on native Windows.
19462 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
19463 # If we don't know, assume the worst.
19464 *) gl_cv_func_strerror_0_works
="guessing no" ;;
19468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470 #include <string.h>
19479 str = strerror (0);
19480 if (!*str) result |= 1;
19481 if (errno) result |= 2;
19482 if (strstr (str, "nknown") || strstr (str, "ndefined"))
19489 if ac_fn_c_try_run
"$LINENO"; then :
19490 gl_cv_func_strerror_0_works
=yes
19492 gl_cv_func_strerror_0_works
=no
19494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19501 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19502 case "$gl_cv_func_strerror_0_works" in
19505 REPLACE_STRERROR_0
=1
19507 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19523 if test $gl_cv_have_include_next = yes; then
19524 gl_cv_next_string_h
='<'string.h
'>'
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19527 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19528 if ${gl_cv_next_string_h+:} false
; then :
19529 $as_echo_n "(cached) " >&6
19534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19536 #include <string.h>
19539 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19540 *) gl_absname_cpp
="$ac_cpp" ;;
19545 gl_dirsep_regex
='[/\\]'
19548 gl_dirsep_regex
='\/'
19551 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19552 gl_header_literal_regex
=`echo 'string.h' \
19553 | sed -e "$gl_make_literal_regex_sed"`
19554 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19555 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19561 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19562 sed -n "$gl_absolute_header_sed"`
19564 gl_header
=$gl_cv_absolute_string_h
19565 gl_cv_next_string_h
='"'$gl_header'"'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19570 $as_echo "$gl_cv_next_string_h" >&6; }
19572 NEXT_STRING_H
=$gl_cv_next_string_h
19574 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19576 gl_next_as_first_directive
='<'string.h
'>'
19578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19579 gl_next_as_first_directive
=$gl_cv_next_string_h
19581 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
19605 if test $gl_cv_have_include_next = yes; then
19606 gl_cv_next_strings_h
='<'strings.h
'>'
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
19609 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
19610 if ${gl_cv_next_strings_h+:} false
; then :
19611 $as_echo_n "(cached) " >&6
19614 if test $ac_cv_header_strings_h = yes; then
19619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621 #include <strings.h>
19624 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19625 *) gl_absname_cpp
="$ac_cpp" ;;
19630 gl_dirsep_regex
='[/\\]'
19633 gl_dirsep_regex
='\/'
19636 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19637 gl_header_literal_regex
=`echo 'strings.h' \
19638 | sed -e "$gl_make_literal_regex_sed"`
19639 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19640 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19646 gl_cv_absolute_strings_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19647 sed -n "$gl_absolute_header_sed"`
19649 gl_header
=$gl_cv_absolute_strings_h
19650 gl_cv_next_strings_h
='"'$gl_header'"'
19652 gl_cv_next_strings_h
='<'strings.h
'>'
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
19658 $as_echo "$gl_cv_next_strings_h" >&6; }
19660 NEXT_STRINGS_H
=$gl_cv_next_strings_h
19662 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19664 gl_next_as_first_directive
='<'strings.h
'>'
19666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19667 gl_next_as_first_directive
=$gl_cv_next_strings_h
19669 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
19674 if test $ac_cv_header_strings_h = yes; then
19685 ac_fn_c_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19686 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
19692 cat >>confdefs.h
<<_ACEOF
19693 #define HAVE_DECL_STRNDUP $ac_have_decl
19698 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19699 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
19705 cat >>confdefs.h
<<_ACEOF
19706 #define HAVE_DECL_STRNLEN $ac_have_decl
19719 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
19731 if test $gl_cv_have_include_next = yes; then
19732 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
19735 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
19736 if ${gl_cv_next_sys_types_h+:} false
; then :
19737 $as_echo_n "(cached) " >&6
19742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19744 #include <sys/types.h>
19747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19748 *) gl_absname_cpp
="$ac_cpp" ;;
19753 gl_dirsep_regex
='[/\\]'
19756 gl_dirsep_regex
='\/'
19759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19760 gl_header_literal_regex
=`echo 'sys/types.h' \
19761 | sed -e "$gl_make_literal_regex_sed"`
19762 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19769 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19770 sed -n "$gl_absolute_header_sed"`
19772 gl_header
=$gl_cv_absolute_sys_types_h
19773 gl_cv_next_sys_types_h
='"'$gl_header'"'
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
19778 $as_echo "$gl_cv_next_sys_types_h" >&6; }
19780 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
19782 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19784 gl_next_as_first_directive
='<'sys
/types.h
'>'
19786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19787 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
19789 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
19802 WINDOWS_STAT_INODES
=0
19811 GNULIB_LOCALTIME
=0;
19812 GNULIB_NANOSLEEP
=0;
19819 HAVE_DECL_LOCALTIME_R
=1;
19825 REPLACE_CTIME
=GNULIB_PORTCHECK
;
19826 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19827 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19828 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19829 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
19830 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19831 REPLACE_TZSET
=GNULIB_PORTCHECK
;
19833 : ${GNULIB_GETTIMEOFDAY=0};
19835 REPLACE_LOCALTIME
=0;
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19840 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19841 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
19842 $as_echo_n "(cached) " >&6
19844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19851 static struct timespec x; x.tv_sec = x.tv_nsec;
19856 if ac_fn_c_try_compile
"$LINENO"; then :
19857 gl_cv_sys_struct_timespec_in_time_h
=yes
19859 gl_cv_sys_struct_timespec_in_time_h
=no
19861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19864 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19866 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19867 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19868 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19869 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
19870 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19871 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19874 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19875 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
19876 $as_echo_n "(cached) " >&6
19878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19880 #include <sys/time.h>
19885 static struct timespec x; x.tv_sec = x.tv_nsec;
19890 if ac_fn_c_try_compile
"$LINENO"; then :
19891 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19893 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19898 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19899 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19900 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19903 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19904 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
19905 $as_echo_n "(cached) " >&6
19907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19909 #include <pthread.h>
19914 static struct timespec x; x.tv_sec = x.tv_nsec;
19919 if ac_fn_c_try_compile
"$LINENO"; then :
19920 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19922 gl_cv_sys_struct_timespec_in_pthread_h
=no
19924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19927 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19928 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19929 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
19932 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
19933 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
19934 $as_echo_n "(cached) " >&6
19936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19938 #include <unistd.h>
19943 static struct timespec x; x.tv_sec = x.tv_nsec;
19948 if ac_fn_c_try_compile
"$LINENO"; then :
19949 gl_cv_sys_struct_timespec_in_unistd_h
=yes
19951 gl_cv_sys_struct_timespec_in_unistd_h
=no
19953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
19956 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
19957 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
19958 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
19979 if test $gl_cv_have_include_next = yes; then
19980 gl_cv_next_time_h
='<'time.h
'>'
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19983 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19984 if ${gl_cv_next_time_h+:} false
; then :
19985 $as_echo_n "(cached) " >&6
19990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
19995 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19996 *) gl_absname_cpp
="$ac_cpp" ;;
20001 gl_dirsep_regex
='[/\\]'
20004 gl_dirsep_regex
='\/'
20007 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20008 gl_header_literal_regex
=`echo 'time.h' \
20009 | sed -e "$gl_make_literal_regex_sed"`
20010 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20011 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20017 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20018 sed -n "$gl_absolute_header_sed"`
20020 gl_header
=$gl_cv_absolute_time_h
20021 gl_cv_next_time_h
='"'$gl_header'"'
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20026 $as_echo "$gl_cv_next_time_h" >&6; }
20028 NEXT_TIME_H
=$gl_cv_next_time_h
20030 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20032 gl_next_as_first_directive
='<'time.h
'>'
20034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20035 gl_next_as_first_directive
=$gl_cv_next_time_h
20037 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20052 gl_libunistring_sed_extract_major
='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
20057 gl_libunistring_sed_extract_minor
='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
20062 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;}
20069 if test "$HAVE_LIBUNISTRING" = yes; then
20070 LIBUNISTRING_VERSION_MAJOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
20071 LIBUNISTRING_VERSION_MINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
20072 LIBUNISTRING_VERSION_SUBMINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
20079 if test $ac_cv_header_features_h = yes; then
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20088 $as_echo_n "checking for inttypes.h... " >&6; }
20089 if ${gl_cv_header_inttypes_h+:} false
; then :
20090 $as_echo_n "(cached) " >&6
20092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h. */
20095 #include <sys/types.h>
20096 #include <inttypes.h>
20101 uintmax_t i = (uintmax_t) -1; return !i;
20106 if ac_fn_c_try_compile
"$LINENO"; then :
20107 gl_cv_header_inttypes_h
=yes
20109 gl_cv_header_inttypes_h
=no
20111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20114 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20115 if test $gl_cv_header_inttypes_h = yes; then
20117 cat >>confdefs.h
<<_ACEOF
20118 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20125 $as_echo_n "checking for stdint.h... " >&6; }
20126 if ${gl_cv_header_stdint_h+:} false
; then :
20127 $as_echo_n "(cached) " >&6
20129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20130 /* end confdefs.h. */
20131 #include <sys/types.h>
20132 #include <stdint.h>
20136 uintmax_t i = (uintmax_t) -1; return !i;
20141 if ac_fn_c_try_compile
"$LINENO"; then :
20142 gl_cv_header_stdint_h
=yes
20144 gl_cv_header_stdint_h
=no
20146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20149 $as_echo "$gl_cv_header_stdint_h" >&6; }
20150 if test $gl_cv_header_stdint_h = yes; then
20152 cat >>confdefs.h
<<_ACEOF
20153 #define HAVE_STDINT_H_WITH_UINTMAX 1
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20162 $as_echo_n "checking for intmax_t... " >&6; }
20163 if ${gt_cv_c_intmax_t+:} false
; then :
20164 $as_echo_n "(cached) " >&6
20166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20167 /* end confdefs.h. */
20169 #include <stddef.h>
20170 #include <stdlib.h>
20171 #if HAVE_STDINT_H_WITH_UINTMAX
20172 #include <stdint.h>
20174 #if HAVE_INTTYPES_H_WITH_UINTMAX
20175 #include <inttypes.h>
20181 intmax_t x = -1; return !x;
20186 if ac_fn_c_try_compile
"$LINENO"; then :
20187 gt_cv_c_intmax_t
=yes
20189 gt_cv_c_intmax_t
=no
20191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20194 $as_echo "$gt_cv_c_intmax_t" >&6; }
20195 if test $gt_cv_c_intmax_t = yes; then
20197 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20201 test $ac_cv_type_long_long_int = yes \
20202 && ac_type
='long long' \
20205 cat >>confdefs.h
<<_ACEOF
20206 #define intmax_t $ac_type
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20213 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20214 if ${gl_cv_cc_double_expbit0+:} false
; then :
20215 $as_echo_n "(cached) " >&6
20218 if test "$cross_compiling" = yes; then :
20220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20221 /* end confdefs.h. */
20223 #if defined arm || defined __arm || defined __arm__
20228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20229 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
20230 gl_cv_cc_double_expbit0
="unknown"
20234 if ${ac_cv_c_bigendian+:} false
; then :
20235 $as_echo_n "(cached) " >&6
20237 ac_cv_c_bigendian
=unknown
20238 # See if we're dealing with a universal compiler.
20239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20241 #ifndef __APPLE_CC__
20242 not a universal capable compiler
20247 if ac_fn_c_try_compile
"$LINENO"; then :
20249 # Check for potential -arch flags. It is not universal unless
20250 # there are at least two -arch flags with different values.
20253 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20254 if test -n "$ac_prev"; then
20256 i?
86 | x86_64 | ppc | ppc64
)
20257 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
20260 ac_cv_c_bigendian
=universal
20266 elif test "x$ac_word" = "x-arch"; then
20271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20272 if test $ac_cv_c_bigendian = unknown
; then
20273 # See if sys/param.h defines the BYTE_ORDER macro.
20274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20276 #include <sys/types.h>
20277 #include <sys/param.h>
20282 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20283 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20285 bogus endian macros
20292 if ac_fn_c_try_compile
"$LINENO"; then :
20293 # It does; now see whether it defined to BIG_ENDIAN or not.
20294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/param.h>
20302 #if BYTE_ORDER != BIG_ENDIAN
20310 if ac_fn_c_try_compile
"$LINENO"; then :
20311 ac_cv_c_bigendian
=yes
20313 ac_cv_c_bigendian
=no
20315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20319 if test $ac_cv_c_bigendian = unknown
; then
20320 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 #include <limits.h>
20328 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20329 bogus endian macros
20336 if ac_fn_c_try_compile
"$LINENO"; then :
20337 # It does; now see whether it defined to _BIG_ENDIAN or not.
20338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <limits.h>
20345 #ifndef _BIG_ENDIAN
20353 if ac_fn_c_try_compile
"$LINENO"; then :
20354 ac_cv_c_bigendian
=yes
20356 ac_cv_c_bigendian
=no
20358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20362 if test $ac_cv_c_bigendian = unknown
; then
20363 # Compile a test program.
20364 if test "$cross_compiling" = yes; then :
20365 # Try to guess by grepping values from an object file.
20366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368 short int ascii_mm[] =
20369 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20370 short int ascii_ii[] =
20371 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20372 int use_ascii (int i) {
20373 return ascii_mm[i] + ascii_ii[i];
20375 short int ebcdic_ii[] =
20376 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20377 short int ebcdic_mm[] =
20378 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20379 int use_ebcdic (int i) {
20380 return ebcdic_mm[i] + ebcdic_ii[i];
20387 return use_ascii (foo) == use_ebcdic (foo);
20392 if ac_fn_c_try_compile
"$LINENO"; then :
20393 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20394 ac_cv_c_bigendian
=yes
20396 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20397 if test "$ac_cv_c_bigendian" = unknown
; then
20398 ac_cv_c_bigendian
=no
20400 # finding both strings is unlikely to happen, but who knows?
20401 ac_cv_c_bigendian
=unknown
20405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20409 $ac_includes_default
20414 /* Are we little or big endian? From Harbison&Steele. */
20418 char c[sizeof (long int)];
20421 return u.c[sizeof (long int) - 1] == 1;
20427 if ac_fn_c_try_run
"$LINENO"; then :
20428 ac_cv_c_bigendian
=no
20430 ac_cv_c_bigendian
=yes
20432 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20433 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20439 case $ac_cv_c_bigendian in #(
20441 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
20443 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
20446 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20450 gl_cv_cc_double_expbit0
="unknown" ;;
20459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20463 #include <stddef.h>
20465 #include <string.h>
20467 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20468 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20469 static unsigned int ored_words[NWORDS];
20470 static unsigned int anded_words[NWORDS];
20471 static void add_to_ored_words (double x)
20475 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20476 memset (&m, 0, sizeof (memory_double));
20478 for (i = 0; i < NWORDS; i++)
20480 ored_words[i] |= m.word[i];
20481 anded_words[i] &= m.word[i];
20487 FILE *fp = fopen ("conftest.out", "w");
20490 for (j = 0; j < NWORDS; j++)
20491 anded_words[j] = ~ (unsigned int) 0;
20492 add_to_ored_words (0.25);
20493 add_to_ored_words (0.5);
20494 add_to_ored_words (1.0);
20495 add_to_ored_words (2.0);
20496 add_to_ored_words (4.0);
20497 /* Remove bits that are common (e.g. if representation of the first mantissa
20498 bit is explicit). */
20499 for (j = 0; j < NWORDS; j++)
20500 ored_words[j] &= ~anded_words[j];
20501 /* Now find the nonzero word. */
20502 for (j = 0; j < NWORDS; j++)
20503 if (ored_words[j] != 0)
20508 for (i = j + 1; i < NWORDS; i++)
20509 if (ored_words[i] != 0)
20511 fprintf (fp, "unknown");
20512 return (fclose (fp) != 0);
20515 if ((ored_words[j] >> i) & 1)
20517 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20518 return (fclose (fp) != 0);
20521 fprintf (fp, "unknown");
20522 return (fclose (fp) != 0);
20526 if ac_fn_c_try_run
"$LINENO"; then :
20527 gl_cv_cc_double_expbit0
=`cat conftest.out`
20529 gl_cv_cc_double_expbit0
="unknown"
20531 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20532 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20539 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20540 case "$gl_cv_cc_double_expbit0" in
20542 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20543 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20545 cat >>confdefs.h
<<_ACEOF
20546 #define DBL_EXPBIT0_WORD $word
20550 cat >>confdefs.h
<<_ACEOF
20551 #define DBL_EXPBIT0_BIT $bit
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20566 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20567 if ${gl_cv_func_snprintf_retval_c99+:} false
; then :
20568 $as_echo_n "(cached) " >&6
20571 if test "$cross_compiling" = yes; then :
20573 # Guess yes on glibc systems.
20574 *-gnu* | gnu
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20575 # Guess yes on FreeBSD >= 5.
20576 freebsd
[1-4].
*) gl_cv_func_snprintf_retval_c99
="guessing no";;
20577 freebsd
* | kfreebsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20578 # Guess yes on Mac OS X >= 10.3.
20579 darwin
[1-6].
*) gl_cv_func_snprintf_retval_c99
="guessing no";;
20580 darwin
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20581 # Guess yes on OpenBSD >= 3.9.
20582 openbsd
[1-2].
* | openbsd3.
[0-8] | openbsd3.
[0-8].
*)
20583 gl_cv_func_snprintf_retval_c99
="guessing no";;
20584 openbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20585 # Guess yes on Solaris >= 2.10.
20586 solaris2.
[1-9][0-9]*) gl_cv_func_printf_sizes_c99
="guessing yes";;
20587 solaris
*) gl_cv_func_printf_sizes_c99
="guessing no";;
20588 # Guess yes on AIX >= 4.
20589 aix
[1-3]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
20590 aix
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20591 # Guess yes on NetBSD >= 3.
20592 netbsd
[1-2]* | netbsdelf
[1-2]* | netbsdaout
[1-2]* | netbsdcoff
[1-2]*)
20593 gl_cv_func_snprintf_retval_c99
="guessing no";;
20594 netbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20595 # Guess yes on BeOS.
20596 beos
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
20597 # Guess yes on MSVC, no on mingw.
20598 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20607 $EGREP "Known" >/dev
/null
2>&1; then :
20608 gl_cv_func_snprintf_retval_c99
="guessing yes"
20610 gl_cv_func_snprintf_retval_c99
="guessing no"
20615 # If we don't know, assume the worst.
20616 *) gl_cv_func_snprintf_retval_c99
="guessing no";;
20620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20624 #include <string.h>
20626 # define my_snprintf snprintf
20628 # include <stdarg.h>
20629 static int my_snprintf (char *buf, int size, const char *format, ...)
20633 va_start (args, format);
20634 ret = vsnprintf (buf, size, format, args);
20639 static char buf[100];
20642 strcpy (buf, "ABCDEF");
20643 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20645 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20647 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20652 if ac_fn_c_try_run
"$LINENO"; then :
20653 gl_cv_func_snprintf_retval_c99
=yes
20655 gl_cv_func_snprintf_retval_c99
=no
20657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20664 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20671 for ac_func
in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20673 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20674 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20675 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20676 cat >>confdefs.h
<<_ACEOF
20677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20683 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20685 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
20691 cat >>confdefs.h
<<_ACEOF
20692 #define HAVE_DECL__SNPRINTF $ac_have_decl
20697 case "$gl_cv_func_snprintf_retval_c99" in
20700 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20705 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
20706 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
20712 cat >>confdefs.h
<<_ACEOF
20713 #define HAVE_DECL_VSNPRINTF $ac_have_decl
20720 if test $ac_cv_header_crtdefs_h = yes; then
20734 GNULIB_TOWCTRANS
=0;
20738 REPLACE_ISWBLANK
=0;
20746 GL_COND_LIBTOOL_TRUE
=
20747 GL_COND_LIBTOOL_FALSE
='#'
20749 GL_COND_LIBTOOL_TRUE
='#'
20750 GL_COND_LIBTOOL_FALSE
=
20753 gl_cond_libtool
=false
20766 gl_source_base
='grub-core/lib/gnulib'
20769 if test $ac_cv_func_alloca_works = no
; then
20773 # Define an additional variable used in the Makefile substitution.
20774 if test $ac_cv_working_alloca_h = yes; then
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20776 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20777 if ${gl_cv_rpl_alloca+:} false
; then :
20778 $as_echo_n "(cached) " >&6
20781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h. */
20784 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20790 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20791 gl_cv_rpl_alloca
=yes
20793 gl_cv_rpl_alloca
=no
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20800 $as_echo "$gl_cv_rpl_alloca" >&6; }
20801 if test $gl_cv_rpl_alloca = yes; then
20803 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20813 if test -n "$ALLOCA_H"; then
20814 GL_GENERATE_ALLOCA_H_TRUE
=
20815 GL_GENERATE_ALLOCA_H_FALSE
='#'
20817 GL_GENERATE_ALLOCA_H_TRUE
='#'
20818 GL_GENERATE_ALLOCA_H_FALSE
=
20827 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20829 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20835 cat >>confdefs.h
<<_ACEOF
20836 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20838 if test $ac_have_decl = 1; then :
20842 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
20846 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20848 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20854 cat >>confdefs.h
<<_ACEOF
20855 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20857 if test $ac_have_decl = 1; then :
20861 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
20866 # Check if program_invocation_name and program_invocation_short_name
20867 # are defined elsewhere. It is improbable that only one of them will
20868 # be defined and other not, I prefer to stay on the safe side and to
20869 # test each one separately.
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
20871 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
20872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20873 /* end confdefs.h. */
20878 program_invocation_name = "test";
20883 if ac_fn_c_try_link
"$LINENO"; then :
20885 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20888 $as_echo "yes" >&6; }
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20893 rm -f core conftest.err conftest.
$ac_objext \
20894 conftest
$ac_exeext conftest.
$ac_ext
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
20897 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
20898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20904 program_invocation_short_name = "test";
20909 if ac_fn_c_try_link
"$LINENO"; then :
20911 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20914 $as_echo "yes" >&6; }
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20917 $as_echo "no" >&6; }
20919 rm -f core conftest.err conftest.
$ac_objext \
20920 conftest
$ac_exeext conftest.
$ac_ext
20941 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
20945 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
20955 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
20968 if test $ac_cv_func_btowc = no
; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
20976 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
20977 if ${gl_cv_func_btowc_nul+:} false
; then :
20978 $as_echo_n "(cached) " >&6
20981 if test "$cross_compiling" = yes; then :
20984 # Guess no on Cygwin.
20985 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
20986 # Guess yes on native Windows.
20987 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
20988 # Guess yes otherwise.
20989 *) gl_cv_func_btowc_nul
="guessing yes" ;;
20993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20996 #include <string.h>
20997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21000 included before <wchar.h>. */
21001 #include <stddef.h>
21007 if (btowc ('\0') != 0)
21012 if ac_fn_c_try_run
"$LINENO"; then :
21013 gl_cv_func_btowc_nul
=yes
21015 gl_cv_func_btowc_nul
=no
21017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
21024 $as_echo "$gl_cv_func_btowc_nul" >&6; }
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
21027 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
21028 if ${gl_cv_func_btowc_eof+:} false
; then :
21029 $as_echo_n "(cached) " >&6
21033 # Guess no on IRIX.
21034 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
21035 # Guess yes on native Windows.
21036 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
21037 # Guess yes otherwise.
21038 *) gl_cv_func_btowc_eof
="guessing yes" ;;
21040 if test $LOCALE_FR != none
; then
21041 if test "$cross_compiling" = yes; then :
21044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21047 #include <locale.h>
21048 #include <string.h>
21049 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21051 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21052 included before <wchar.h>. */
21053 #include <stddef.h>
21059 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21061 if (btowc (EOF) != WEOF)
21067 if ac_fn_c_try_run
"$LINENO"; then :
21068 gl_cv_func_btowc_eof
=yes
21070 gl_cv_func_btowc_eof
=no
21072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
21080 $as_echo "$gl_cv_func_btowc_eof" >&6; }
21082 case "$gl_cv_func_btowc_nul" in
21084 *) REPLACE_BTOWC
=1 ;;
21086 case "$gl_cv_func_btowc_eof" in
21088 *) REPLACE_BTOWC
=1 ;;
21092 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
21101 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
21118 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
21124 $as_echo_n "checking for __builtin_expect... " >&6; }
21125 if ${gl_cv___builtin_expect+:} false
; then :
21126 $as_echo_n "(cached) " >&6
21128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21132 main (int argc, char **argv)
21134 argc = __builtin_expect (argc, 100);
21135 return argv[argc != 100][0];
21138 if ac_fn_c_try_link
"$LINENO"; then :
21139 gl_cv___builtin_expect
=yes
21141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21144 #include <builtins.h>
21146 main (int argc, char **argv)
21148 argc = __builtin_expect (argc, 100);
21149 return argv[argc != 100][0];
21152 if ac_fn_c_try_link
"$LINENO"; then :
21153 gl_cv___builtin_expect
="in <builtins.h>"
21155 gl_cv___builtin_expect
=no
21157 rm -f core conftest.err conftest.
$ac_objext \
21158 conftest
$ac_exeext conftest.
$ac_ext
21160 rm -f core conftest.err conftest.
$ac_objext \
21161 conftest
$ac_exeext conftest.
$ac_ext
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
21164 $as_echo "$gl_cv___builtin_expect" >&6; }
21165 if test "$gl_cv___builtin_expect" = yes; then
21166 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
21168 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
21169 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
21185 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
21192 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
21193 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
21194 $as_echo_n "(cached) " >&6
21196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21197 /* end confdefs.h. */
21199 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
21201 # include <unistd.h>
21203 #include <limits.h>
21204 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
21205 # include <sys/param.h>
21207 #if !defined PATH_MAX && defined MAXPATHLEN
21208 # define PATH_MAX MAXPATHLEN
21212 # define PATH_MAX 1024
21214 #if defined _WIN32 && ! defined __CYGWIN__
21216 # define PATH_MAX 260
21220 have_arbitrary_file_name_length_limit
21223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21224 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
21225 gl_cv_have_arbitrary_file_name_length_limit
=yes
21227 gl_cv_have_arbitrary_file_name_length_limit
=no
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
21233 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
21235 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
21244 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
21250 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
21257 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21266 if test $ac_cv_header_sys_socket_h != yes; then
21267 for ac_header
in winsock2.h
21269 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21270 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21271 cat >>confdefs.h
<<_ACEOF
21272 #define HAVE_WINSOCK2_H 1
21280 if test "$ac_cv_header_winsock2_h" = yes; then
21282 UNISTD_H_HAVE_WINSOCK2_H
=1
21283 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21289 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
21294 if test $REPLACE_CLOSE = 0; then
21298 if test $ac_cv_func_fchdir = no
; then
21302 if test $HAVE_FCHDIR = 0; then
21308 if test $REPLACE_CLOSE = 1; then
21317 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
21331 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
21347 if test $gl_cv_have_include_next = yes; then
21348 gl_cv_next_dirent_h
='<'dirent.h
'>'
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
21351 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
21352 if ${gl_cv_next_dirent_h+:} false
; then :
21353 $as_echo_n "(cached) " >&6
21356 if test $ac_cv_header_dirent_h = yes; then
21361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h. */
21363 #include <dirent.h>
21366 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21367 *) gl_absname_cpp
="$ac_cpp" ;;
21372 gl_dirsep_regex
='[/\\]'
21375 gl_dirsep_regex
='\/'
21378 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21379 gl_header_literal_regex
=`echo 'dirent.h' \
21380 | sed -e "$gl_make_literal_regex_sed"`
21381 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21388 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21389 sed -n "$gl_absolute_header_sed"`
21391 gl_header
=$gl_cv_absolute_dirent_h
21392 gl_cv_next_dirent_h
='"'$gl_header'"'
21394 gl_cv_next_dirent_h
='<'dirent.h
'>'
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21400 $as_echo "$gl_cv_next_dirent_h" >&6; }
21402 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
21404 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21406 gl_next_as_first_directive
='<'dirent.h
'>'
21408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21409 gl_next_as_first_directive
=$gl_cv_next_dirent_h
21411 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
21416 if test $ac_cv_header_dirent_h = yes; then
21432 for ac_func
in dirfd
21434 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
21435 if test "x$ac_cv_func_dirfd" = xyes
; then :
21436 cat >>confdefs.h
<<_ACEOF
21437 #define HAVE_DIRFD 1
21443 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
21444 #include <dirent.h>
21446 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
21452 cat >>confdefs.h
<<_ACEOF
21453 #define HAVE_DECL_DIRFD $ac_have_decl
21456 if test $ac_cv_have_decl_dirfd = no
; then
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
21461 $as_echo_n "checking whether dirfd is a macro... " >&6; }
21462 if ${gl_cv_func_dirfd_macro+:} false
; then :
21463 $as_echo_n "(cached) " >&6
21465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21466 /* end confdefs.h. */
21468 #include <sys/types.h>
21469 #include <dirent.h>
21471 dirent_header_defines_dirfd
21474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21475 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
21476 gl_cv_func_dirfd_macro
=yes
21478 gl_cv_func_dirfd_macro
=no
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
21484 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
21486 # Use the replacement if we have no function or macro with that name,
21487 # or if OS/2 kLIBC whose dirfd() does not work.
21488 # Replace only if the system declares dirfd already.
21489 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
21490 no
,no
,*,yes |
*,*,os2
*,yes)
21493 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
21497 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
21498 ||
test $REPLACE_DIRFD = 1; then
21507 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
21511 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
21512 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
21513 $as_echo_n "(cached) " >&6
21516 dirfd_save_CFLAGS
=$CFLAGS
21517 for ac_expr
in d_fd dd_fd
; do
21519 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
21520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21521 /* end confdefs.h. */
21523 #include <sys/types.h>
21524 #include <dirent.h>
21528 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
21533 if ac_fn_c_try_compile
"$LINENO"; then :
21537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21538 CFLAGS
=$dirfd_save_CFLAGS
21539 test "$dir_fd_found" = yes && break
21541 test "$dir_fd_found" = yes || ac_expr
=no_such_member
21543 gl_cv_sys_dir_fd_member_name
=$ac_expr
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
21548 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
21549 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
21551 cat >>confdefs.h
<<_ACEOF
21552 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
21570 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21581 $as_echo_n "checking whether // is distinct from /... " >&6; }
21582 if ${gl_cv_double_slash_root+:} false
; then :
21583 $as_echo_n "(cached) " >&6
21585 if test x
"$cross_compiling" = xyes
; then
21586 # When cross-compiling, there is no way to tell whether // is special
21587 # short of a list of hosts. However, the only known hosts to date
21588 # that have a distinct // are Apollo DomainOS (too old to port to),
21589 # Cygwin, and z/OS. If anyone knows of another system for which // has
21590 # special semantics and is distinct from /, please report it to
21591 # <bug-gnulib@gnu.org>.
21593 *-cygwin | i370-ibm-openedition
)
21594 gl_cv_double_slash_root
=yes ;;
21596 # Be optimistic and assume that / and // are the same when we
21598 gl_cv_double_slash_root
='unknown, assuming no' ;;
21601 set x
`ls -di / // 2>/dev/null`
21602 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
21603 gl_cv_double_slash_root
=no
21605 gl_cv_double_slash_root
=yes
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21610 $as_echo "$gl_cv_double_slash_root" >&6; }
21611 if test "$gl_cv_double_slash_root" = yes; then
21613 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21622 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21625 if test $HAVE_DUP2 = 1; then
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21627 $as_echo_n "checking whether dup2 works... " >&6; }
21628 if ${gl_cv_func_dup2_works+:} false
; then :
21629 $as_echo_n "(cached) " >&6
21631 if test "$cross_compiling" = yes; then :
21633 mingw
*) # on this platform, dup2 always returns 0 for success
21634 gl_cv_func_dup2_works
="guessing no" ;;
21635 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
21636 gl_cv_func_dup2_works
="guessing no" ;;
21638 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
21640 gl_cv_func_dup2_works
="guessing no" ;;
21641 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21642 gl_cv_func_dup2_works
="guessing no" ;;
21643 *-android*) # implemented using dup3(), which fails if oldfd == newfd
21644 gl_cv_func_dup2_works
="guessing no" ;;
21645 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
21646 gl_cv_func_dup2_works
="guessing no" ;;
21647 *) gl_cv_func_dup2_works
="guessing yes" ;;
21650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21655 #include <limits.h>
21656 #include <sys/resource.h>
21657 #include <unistd.h>
21658 #ifndef RLIM_SAVED_CUR
21659 # define RLIM_SAVED_CUR RLIM_INFINITY
21661 #ifndef RLIM_SAVED_MAX
21662 # define RLIM_SAVED_MAX RLIM_INFINITY
21669 int bad_fd = INT_MAX;
21670 struct rlimit rlim;
21671 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
21672 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
21673 && rlim.rlim_cur != RLIM_INFINITY
21674 && rlim.rlim_cur != RLIM_SAVED_MAX
21675 && rlim.rlim_cur != RLIM_SAVED_CUR)
21676 bad_fd = rlim.rlim_cur;
21678 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21681 if (dup2 (1, 1) != 1)
21684 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21688 if (dup2 (0, 0) != -1)
21690 /* Many gnulib modules require POSIX conformance of EBADF. */
21691 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
21693 /* Flush out some cygwin core dumps. */
21694 if (dup2 (2, -1) != -1 || errno != EBADF)
21698 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
21700 int fd = open (".", O_RDONLY);
21703 else if (dup2 (fd, fd + 1) == -1)
21714 if ac_fn_c_try_run
"$LINENO"; then :
21715 gl_cv_func_dup2_works
=yes
21717 gl_cv_func_dup2_works
=no
21719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21720 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21726 $as_echo "$gl_cv_func_dup2_works" >&6; }
21727 case "$gl_cv_func_dup2_works" in
21731 for ac_func
in setdtablesize
21733 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
21734 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
21735 cat >>confdefs.h
<<_ACEOF
21736 #define HAVE_SETDTABLESIZE 1
21749 if test $ac_cv_func_fchdir = no
; then
21753 if test $HAVE_FCHDIR = 0; then
21754 if test $HAVE_DUP2 = 1; then
21760 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
21769 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
21784 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21791 $as_echo_n "checking for error_at_line... " >&6; }
21792 if ${ac_cv_lib_error_at_line+:} false
; then :
21793 $as_echo_n "(cached) " >&6
21795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21796 /* end confdefs.h. */
21801 error_at_line (0, 0, "", 0, "an error occurred");
21806 if ac_fn_c_try_link
"$LINENO"; then :
21807 ac_cv_lib_error_at_line
=yes
21809 ac_cv_lib_error_at_line
=no
21811 rm -f core conftest.err conftest.
$ac_objext \
21812 conftest
$ac_exeext conftest.
$ac_ext
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21815 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21817 if test $ac_cv_lib_error_at_line = no
; then
21826 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
21835 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21839 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21847 if test $ac_cv_have_decl_fchdir = no
; then
21852 if test $HAVE_FCHDIR = 0; then
21861 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
21865 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
21868 $as_echo_n "checking whether open can visit directories... " >&6; }
21869 if ${gl_cv_func_open_directory_works+:} false
; then :
21870 $as_echo_n "(cached) " >&6
21872 if test "$cross_compiling" = yes; then :
21874 # Guess yes on Linux systems.
21875 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
21876 # Guess yes on glibc systems.
21877 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
21878 # Guess no on native Windows.
21879 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
21880 # If we don't know, assume the worst.
21881 *) gl_cv_func_open_directory_works
="guessing no" ;;
21885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21892 return open(".", O_RDONLY) < 0;
21897 if ac_fn_c_try_run
"$LINENO"; then :
21898 gl_cv_func_open_directory_works
=yes
21900 gl_cv_func_open_directory_works
=no
21902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
21908 $as_echo "$gl_cv_func_open_directory_works" >&6; }
21909 case "$gl_cv_func_open_directory_works" in
21913 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
21930 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
21939 if test $ac_cv_func_fcntl = no
; then
21943 if test $ac_cv_func_fcntl = no
; then
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
21951 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
21952 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
21953 $as_echo_n "(cached) " >&6
21955 if test "$cross_compiling" = yes; then :
21957 aix
* | cygwin
* | haiku
*)
21958 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
21959 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
21962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21963 /* end confdefs.h. */
21966 #include <limits.h>
21967 #include <sys/resource.h>
21968 #include <unistd.h>
21969 #ifndef RLIM_SAVED_CUR
21970 # define RLIM_SAVED_CUR RLIM_INFINITY
21972 #ifndef RLIM_SAVED_MAX
21973 # define RLIM_SAVED_MAX RLIM_INFINITY
21980 int bad_fd = INT_MAX;
21981 struct rlimit rlim;
21982 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
21983 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
21984 && rlim.rlim_cur != RLIM_INFINITY
21985 && rlim.rlim_cur != RLIM_SAVED_MAX
21986 && rlim.rlim_cur != RLIM_SAVED_CUR)
21987 bad_fd = rlim.rlim_cur;
21988 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
21989 if (errno != EINVAL) result |= 2;
21990 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
21991 if (errno != EINVAL) result |= 8;
21992 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
21995 fd = open (".", O_RDONLY);
21998 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
22008 if ac_fn_c_try_run
"$LINENO"; then :
22009 gl_cv_func_fcntl_f_dupfd_works
=yes
22011 gl_cv_func_fcntl_f_dupfd_works
=no
22013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22014 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22019 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22020 case $gl_cv_func_fcntl_f_dupfd_works in
22025 if test $ac_cv_func_fcntl = no
; then
22032 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22037 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22038 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
22039 $as_echo_n "(cached) " >&6
22041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22045 #ifndef F_DUPFD_CLOEXEC
22057 if ac_fn_c_try_compile
"$LINENO"; then :
22058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22059 /* end confdefs.h. */
22062 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22063 it to support the semantics on older kernels that failed with EINVAL. */
22075 if ac_fn_c_try_compile
"$LINENO"; then :
22076 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22078 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22082 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22087 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22088 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22092 if test $ac_cv_func_fcntl = no
; then
22104 if test $ac_cv_func_fchdir = no
; then
22108 if test $HAVE_FCHDIR = 0; then
22112 if test $ac_cv_func_fcntl = no
; then
22121 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22130 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22144 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
22159 if test $gl_cv_have_include_next = yes; then
22160 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22163 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22164 if ${gl_cv_next_fcntl_h+:} false
; then :
22165 $as_echo_n "(cached) " >&6
22170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22175 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22176 *) gl_absname_cpp
="$ac_cpp" ;;
22181 gl_dirsep_regex
='[/\\]'
22184 gl_dirsep_regex
='\/'
22187 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22188 gl_header_literal_regex
=`echo 'fcntl.h' \
22189 | sed -e "$gl_make_literal_regex_sed"`
22190 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22191 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22197 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22198 sed -n "$gl_absolute_header_sed"`
22200 gl_header
=$gl_cv_absolute_fcntl_h
22201 gl_cv_next_fcntl_h
='"'$gl_header'"'
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22206 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22208 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22210 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22212 gl_next_as_first_directive
='<'fcntl.h
'>'
22214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22215 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22217 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22233 cat >>confdefs.h
<<_ACEOF
22234 #define GNULIB_FD_SAFER_FLAG 1
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
22243 $as_echo_n "checking for flexible array member... " >&6; }
22244 if ${ac_cv_c_flexmember+:} false
; then :
22245 $as_echo_n "(cached) " >&6
22247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22248 /* end confdefs.h. */
22249 #include <stdlib.h>
22251 #include <stddef.h>
22252 struct m { struct m *next, **list; char name[]; };
22253 struct s { struct s *p; struct m *m; int n; double d[]; };
22257 int m = getchar ();
22258 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
22259 nbytes += sizeof (struct s) - 1;
22260 nbytes -= nbytes % sizeof (struct s);
22261 struct s *p = malloc (nbytes);
22265 return p->d != (double *) NULL;
22270 if ac_fn_c_try_compile
"$LINENO"; then :
22271 ac_cv_c_flexmember
=yes
22273 ac_cv_c_flexmember
=no
22275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
22278 $as_echo "$ac_cv_c_flexmember" >&6; }
22279 if test $ac_cv_c_flexmember = yes; then
22281 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
22284 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
22292 REPLACE_FLOAT_LDBL
=0
22294 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
22297 freebsd
* | dragonfly
*)
22298 case "$host_cpu" in
22303 # On x86_64 systems, the C compiler may still be generating
22305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22306 /* end confdefs.h. */
22307 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
22314 if ac_fn_c_try_compile
"$LINENO"; then :
22319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22324 case "$host_cpu" in
22332 aix
* | freebsd
* | dragonfly
* | linux
*)
22333 if test -n "$FLOAT_H"; then
22334 REPLACE_FLOAT_LDBL
=1
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
22341 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
22342 if ${gl_cv_func_itold_works+:} false
; then :
22343 $as_echo_n "(cached) " >&6
22346 if test "$cross_compiling" = yes; then :
22349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22350 /* end confdefs.h. */
22351 #if defined __LP64__ || defined __arch64__
22358 if ac_fn_c_try_compile
"$LINENO"; then :
22359 gl_cv_func_itold_works
="guessing no"
22361 gl_cv_func_itold_works
="guessing yes"
22363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22365 # Guess yes on native Windows.
22366 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
22367 *) gl_cv_func_itold_works
="guessing yes" ;;
22371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22372 /* end confdefs.h. */
22375 volatile long double ld;
22384 if ac_fn_c_try_run
"$LINENO"; then :
22385 gl_cv_func_itold_works
=yes
22387 gl_cv_func_itold_works
=no
22389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
22396 $as_echo "$gl_cv_func_itold_works" >&6; }
22397 case "$gl_cv_func_itold_works" in
22404 if test -n "$FLOAT_H"; then
22413 if test $gl_cv_have_include_next = yes; then
22414 gl_cv_next_float_h
='<'float.h
'>'
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
22417 $as_echo_n "checking absolute name of <float.h>... " >&6; }
22418 if ${gl_cv_next_float_h+:} false
; then :
22419 $as_echo_n "(cached) " >&6
22424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22429 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22430 *) gl_absname_cpp
="$ac_cpp" ;;
22435 gl_dirsep_regex
='[/\\]'
22438 gl_dirsep_regex
='\/'
22441 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22442 gl_header_literal_regex
=`echo 'float.h' \
22443 | sed -e "$gl_make_literal_regex_sed"`
22444 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22445 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22451 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22452 sed -n "$gl_absolute_header_sed"`
22454 gl_header
=$gl_cv_absolute_float_h
22455 gl_cv_next_float_h
='"'$gl_header'"'
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
22460 $as_echo "$gl_cv_next_float_h" >&6; }
22462 NEXT_FLOAT_H
=$gl_cv_next_float_h
22464 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22466 gl_next_as_first_directive
='<'float.h
'>'
22468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22469 gl_next_as_first_directive
=$gl_cv_next_float_h
22471 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
22478 if test -n "$FLOAT_H"; then
22479 GL_GENERATE_FLOAT_H_TRUE
=
22480 GL_GENERATE_FLOAT_H_FALSE
='#'
22482 GL_GENERATE_FLOAT_H_TRUE
='#'
22483 GL_GENERATE_FLOAT_H_FALSE
=
22488 if test $REPLACE_FLOAT_LDBL = 1; then
22497 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
22500 if test $REPLACE_ITOLD = 1; then
22509 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
22516 gl_fnmatch_required_lowercase
=`
22517 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
22520 if test $ac_cv_func_fnmatch = no
; then
22523 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
22525 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
22526 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
22527 $as_echo_n "(cached) " >&6
22529 if test $gl_fnmatch_required = GNU
; then
22530 gl_fnmatch_gnu_start
=
22531 gl_fnmatch_gnu_end
=
22533 gl_fnmatch_gnu_start
='#if 0'
22534 gl_fnmatch_gnu_end
='#endif'
22536 if test "$cross_compiling" = yes; then :
22537 eval "$gl_fnmatch_cache_var=\"guessing no\""
22539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h. */
22541 #include <fnmatch.h>
22543 y (char const *pattern, char const *string, int flags)
22545 return fnmatch (pattern, string, flags) == 0;
22548 n (char const *pattern, char const *string, int flags)
22550 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
22556 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
22557 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
22558 static char const A_1[] = { 'A' - 1, 0 };
22559 static char const A01[] = { 'A' + 1, 0 };
22560 static char const a_1[] = { 'a' - 1, 0 };
22561 static char const a01[] = { 'a' + 1, 0 };
22562 static char const bs_1[] = { '\\\\' - 1, 0 };
22563 static char const bs01[] = { '\\\\' + 1, 0 };
22565 if (!n ("a*", "", 0))
22567 if (!y ("a*", "abc", 0))
22569 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
22571 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
22573 if (!y ("a\\\\bc", "abc", 0))
22575 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
22577 if (!y ("*x", ".x", 0))
22579 if (!n ("*x", ".x", FNM_PERIOD))
22581 if (!y (Apat, "\\\\", 0))
22583 if (!y (Apat, "A", 0))
22585 if (!y (apat, "\\\\", 0))
22587 if (!y (apat, "a", 0))
22589 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
22591 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
22593 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
22595 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
22597 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
22599 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
22601 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
22603 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
22605 $gl_fnmatch_gnu_start
22606 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
22608 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
22610 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
22612 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
22614 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
22616 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
22618 $gl_fnmatch_gnu_end
22625 if ac_fn_c_try_run
"$LINENO"; then :
22626 eval "$gl_fnmatch_cache_var=yes"
22628 eval "$gl_fnmatch_cache_var=no"
22630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22636 eval ac_res
=\$
$gl_fnmatch_cache_var
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22638 $as_echo "$ac_res" >&6; }
22639 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
22640 if test "$gl_fnmatch_result" != yes; then
22644 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
22647 FNMATCH_H
='fnmatch.h'
22648 if test -n "$FNMATCH_H"; then
22649 GL_GENERATE_FNMATCH_H_TRUE
=
22650 GL_GENERATE_FNMATCH_H_FALSE
='#'
22652 GL_GENERATE_FNMATCH_H_TRUE
='#'
22653 GL_GENERATE_FNMATCH_H_FALSE
=
22659 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
22668 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
22672 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
22674 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
22680 cat >>confdefs.h
<<_ACEOF
22681 #define HAVE_DECL_ISBLANK $ac_have_decl
22699 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
22718 if test $ac_cv_func_fchdir = no
; then
22722 if test $HAVE_FCHDIR = 0; then
22723 case "$gl_cv_func_open_directory_works" in
22732 if test $REPLACE_FSTAT = 1; then
22741 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
22753 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
22773 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
22782 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
22789 if test $REPLACE_GETCWD = 1; then
22798 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
22812 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
22824 if test $ac_cv_func_getdelim = yes; then
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
22827 $as_echo_n "checking for working getdelim function... " >&6; }
22828 if ${gl_cv_func_working_getdelim+:} false
; then :
22829 $as_echo_n "(cached) " >&6
22831 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
22832 if test "$cross_compiling" = yes; then :
22833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22836 #include <features.h>
22837 #ifdef __GNU_LIBRARY__
22838 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
22844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22845 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
22846 gl_cv_func_working_getdelim
="guessing yes"
22848 gl_cv_func_working_getdelim
="guessing no"
22854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22857 # include <stdio.h>
22858 # include <stdlib.h>
22859 # include <string.h>
22862 FILE *in = fopen ("./conftest.data", "r");
22866 /* Test result for a NULL buffer and a zero size.
22867 Based on a test program from Karl Heuer. */
22870 int len = getdelim (&line, &siz, '\n', in);
22871 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
22872 { free (line); fclose (in); return 2; }
22875 /* Test result for a NULL buffer and a non-zero size.
22876 This crashes on FreeBSD 8.0. */
22878 size_t siz = (size_t)(~0) / 4;
22879 if (getdelim (&line, &siz, '\n', in) == -1)
22880 { fclose (in); return 3; }
22888 if ac_fn_c_try_run
"$LINENO"; then :
22889 gl_cv_func_working_getdelim
=yes
22891 gl_cv_func_working_getdelim
=no
22893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
22899 $as_echo "$gl_cv_func_working_getdelim" >&6; }
22900 case "$gl_cv_func_working_getdelim" in
22909 if test $ac_cv_have_decl_getdelim = no
; then
22910 HAVE_DECL_GETDELIM
=0
22913 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
22922 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
22925 for ac_func
in flockfile funlockfile
22927 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22928 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22929 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
22930 cat >>confdefs.h
<<_ACEOF
22931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22937 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
22938 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
22944 cat >>confdefs.h
<<_ACEOF
22945 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
22961 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
22970 if test $ac_cv_func_getdtablesize = yes &&
22971 test $ac_cv_have_decl_getdtablesize = yes; then
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
22973 $as_echo_n "checking whether getdtablesize works... " >&6; }
22974 if ${gl_cv_func_getdtablesize_works+:} false
; then :
22975 $as_echo_n "(cached) " >&6
22978 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
22980 if test "$cross_compiling" = yes; then :
22982 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
22983 gl_cv_func_getdtablesize_works
="guessing no" ;;
22984 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
22988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22989 /* end confdefs.h. */
22991 #include <unistd.h>
22995 int size = getdtablesize();
22996 if (dup2 (0, getdtablesize()) != -1)
22998 if (size != getdtablesize())
23005 if ac_fn_c_try_run
"$LINENO"; then :
23006 gl_cv_func_getdtablesize_works
=yes
23008 gl_cv_func_getdtablesize_works
=no
23010 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23011 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
23019 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
23020 case "$gl_cv_func_getdtablesize_works" in
23021 *yes |
"no (limitation)") ;;
23022 *) REPLACE_GETDTABLESIZE
=1 ;;
23025 HAVE_GETDTABLESIZE
=0
23028 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
23037 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
23046 GNULIB_GETDTABLESIZE
=1
23052 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
23063 gl_getline_needs_run_time_check
=no
23064 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
23065 if test "x$ac_cv_func_getline" = xyes
; then :
23066 gl_getline_needs_run_time_check
=yes
23068 am_cv_func_working_getline
=no
23071 if test $gl_getline_needs_run_time_check = yes; then
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
23073 $as_echo_n "checking for working getline function... " >&6; }
23074 if ${am_cv_func_working_getline+:} false
; then :
23075 $as_echo_n "(cached) " >&6
23077 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
23078 if test "$cross_compiling" = yes; then :
23079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 #include <features.h>
23083 #ifdef __GNU_LIBRARY__
23084 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
23090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23091 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
23092 am_cv_func_working_getline
="guessing yes"
23094 am_cv_func_working_getline
="guessing no"
23100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23101 /* end confdefs.h. */
23103 # include <stdio.h>
23104 # include <stdlib.h>
23105 # include <string.h>
23108 FILE *in = fopen ("./conftest.data", "r");
23112 /* Test result for a NULL buffer and a zero size.
23113 Based on a test program from Karl Heuer. */
23116 int len = getline (&line, &siz, in);
23117 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
23118 { free (line); fclose (in); return 2; }
23122 /* Test result for a NULL buffer and a non-zero size.
23123 This crashes on FreeBSD 8.0. */
23125 size_t siz = (size_t)(~0) / 4;
23126 if (getline (&line, &siz, in) == -1)
23127 { fclose (in); return 3; }
23135 if ac_fn_c_try_run
"$LINENO"; then :
23136 am_cv_func_working_getline
=yes
23138 am_cv_func_working_getline
=no
23140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
23146 $as_echo "$am_cv_func_working_getline" >&6; }
23149 if test $ac_cv_have_decl_getline = no
; then
23150 HAVE_DECL_GETLINE
=0
23153 case "$am_cv_func_working_getline" in
23159 if test $REPLACE_GETLINE = 1; then
23168 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
23185 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
23200 if test $REPLACE_GETOPT = 1; then
23203 if test $ac_cv_header_sys_cdefs_h = yes; then
23211 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23214 GETOPT_CDEFS_H
=getopt-cdefs.h
23220 if test $REPLACE_GETOPT = 1; then
23229 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23239 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23241 GNULIB_GL_UNISTD_H_GETOPT
=1
23248 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
23250 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
23256 cat >>confdefs.h
<<_ACEOF
23257 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
23259 if test $ac_have_decl = 1; then :
23263 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
23265 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
23271 cat >>confdefs.h
<<_ACEOF
23272 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
23274 if test $ac_have_decl = 1; then :
23278 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
23280 if test "x$ac_cv_have_decl___argv" = xyes
; then :
23286 cat >>confdefs.h
<<_ACEOF
23287 #define HAVE_DECL___ARGV $ac_have_decl
23289 if test $ac_have_decl = 1; then :
23294 # Incur the cost of this test only if none of the above worked.
23295 if test $ac_found = 0; then
23296 # On OpenBSD 5.1, using the global __progname variable appears to be
23297 # the only way to implement getprogname.
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
23299 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
23300 if ${gl_cv_var___progname+:} false
; then :
23301 $as_echo_n "(cached) " >&6
23304 gl_cv_var___progname
=
23305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23306 /* end confdefs.h. */
23307 extern char *__progname;
23311 return *__progname;
23317 if ac_fn_c_try_link
"$LINENO"; then :
23318 gl_cv_var___progname
=yes
23321 rm -f core conftest.err conftest.
$ac_objext \
23322 conftest
$ac_exeext conftest.
$ac_ext
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
23327 $as_echo "$gl_cv_var___progname" >&6; }
23328 if test "$gl_cv_var___progname" = yes; then
23330 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
23351 if test $gl_cv_have_include_next = yes; then
23352 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
23355 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
23356 if ${gl_cv_next_langinfo_h+:} false
; then :
23357 $as_echo_n "(cached) " >&6
23360 if test $ac_cv_header_langinfo_h = yes; then
23365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23366 /* end confdefs.h. */
23367 #include <langinfo.h>
23370 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23371 *) gl_absname_cpp
="$ac_cpp" ;;
23376 gl_dirsep_regex
='[/\\]'
23379 gl_dirsep_regex
='\/'
23382 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23383 gl_header_literal_regex
=`echo 'langinfo.h' \
23384 | sed -e "$gl_make_literal_regex_sed"`
23385 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23386 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23392 gl_cv_absolute_langinfo_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23393 sed -n "$gl_absolute_header_sed"`
23395 gl_header
=$gl_cv_absolute_langinfo_h
23396 gl_cv_next_langinfo_h
='"'$gl_header'"'
23398 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
23404 $as_echo "$gl_cv_next_langinfo_h" >&6; }
23406 NEXT_LANGINFO_H
=$gl_cv_next_langinfo_h
23408 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23410 gl_next_as_first_directive
='<'langinfo.h
'>'
23412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23413 gl_next_as_first_directive
=$gl_cv_next_langinfo_h
23415 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
=$gl_next_as_first_directive
23421 HAVE_LANGINFO_CODESET
=0
23422 HAVE_LANGINFO_T_FMT_AMPM
=0
23423 HAVE_LANGINFO_ALTMON
=0
23424 HAVE_LANGINFO_ERA
=0
23425 HAVE_LANGINFO_YESEXPR
=0
23427 if test $ac_cv_header_langinfo_h = yes; then
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
23430 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
23431 if ${gl_cv_header_langinfo_codeset+:} false
; then :
23432 $as_echo_n "(cached) " >&6
23434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23435 /* end confdefs.h. */
23436 #include <langinfo.h>
23447 if ac_fn_c_try_compile
"$LINENO"; then :
23448 gl_cv_header_langinfo_codeset
=yes
23450 gl_cv_header_langinfo_codeset
=no
23452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
23456 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
23457 if test $gl_cv_header_langinfo_codeset = yes; then
23458 HAVE_LANGINFO_CODESET
=1
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
23461 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
23462 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false
; then :
23463 $as_echo_n "(cached) " >&6
23465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23466 /* end confdefs.h. */
23467 #include <langinfo.h>
23468 int a = T_FMT_AMPM;
23478 if ac_fn_c_try_compile
"$LINENO"; then :
23479 gl_cv_header_langinfo_t_fmt_ampm
=yes
23481 gl_cv_header_langinfo_t_fmt_ampm
=no
23483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
23487 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
23488 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
23489 HAVE_LANGINFO_T_FMT_AMPM
=1
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
23492 $as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; }
23493 if ${gl_cv_header_langinfo_altmon+:} false
; then :
23494 $as_echo_n "(cached) " >&6
23496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23497 /* end confdefs.h. */
23498 #include <langinfo.h>
23509 if ac_fn_c_try_compile
"$LINENO"; then :
23510 gl_cv_header_langinfo_altmon
=yes
23512 gl_cv_header_langinfo_altmon
=no
23514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
23518 $as_echo "$gl_cv_header_langinfo_altmon" >&6; }
23519 if test $gl_cv_header_langinfo_altmon = yes; then
23520 HAVE_LANGINFO_ALTMON
=1
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
23523 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
23524 if ${gl_cv_header_langinfo_era+:} false
; then :
23525 $as_echo_n "(cached) " >&6
23527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h. */
23529 #include <langinfo.h>
23540 if ac_fn_c_try_compile
"$LINENO"; then :
23541 gl_cv_header_langinfo_era
=yes
23543 gl_cv_header_langinfo_era
=no
23545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
23549 $as_echo "$gl_cv_header_langinfo_era" >&6; }
23550 if test $gl_cv_header_langinfo_era = yes; then
23551 HAVE_LANGINFO_ERA
=1
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
23554 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
23555 if ${gl_cv_header_langinfo_yesexpr+:} false
; then :
23556 $as_echo_n "(cached) " >&6
23558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23559 /* end confdefs.h. */
23560 #include <langinfo.h>
23571 if ac_fn_c_try_compile
"$LINENO"; then :
23572 gl_cv_header_langinfo_yesexpr
=yes
23574 gl_cv_header_langinfo_yesexpr
=no
23576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
23580 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
23581 if test $gl_cv_header_langinfo_yesexpr = yes; then
23582 HAVE_LANGINFO_YESEXPR
=1
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
23601 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
23602 if ${gl_cv_c___inline+:} false
; then :
23603 $as_echo_n "(cached) " >&6
23605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23608 static __inline foo_t foo (void) { return 0; }
23617 if ac_fn_c_try_compile
"$LINENO"; then :
23618 gl_cv_c___inline
=yes
23620 gl_cv_c___inline
=no
23622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
23625 $as_echo "$gl_cv_c___inline" >&6; }
23626 if test $gl_cv_c___inline = yes; then
23628 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
23636 LOCALCHARSET_TESTS_ENVIRONMENT
=
23649 $as_echo "#define _LCONV_C99 1" >>confdefs.h
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
23655 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
23656 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
23657 $as_echo_n "(cached) " >&6
23659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h. */
23661 #include <locale.h>
23662 int x = LC_MESSAGES;
23663 int y = sizeof (((struct lconv *) 0)->decimal_point);
23672 if ac_fn_c_try_compile
"$LINENO"; then :
23673 gl_cv_header_locale_h_posix2001
=yes
23675 gl_cv_header_locale_h_posix2001
=no
23677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
23680 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
23683 if test $ac_cv_header_xlocale_h = yes; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
23686 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
23687 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
23688 $as_echo_n "(cached) " >&6
23690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23691 /* end confdefs.h. */
23692 #include <locale.h>
23702 if ac_fn_c_try_compile
"$LINENO"; then :
23703 gl_cv_header_locale_has_locale_t
=yes
23705 gl_cv_header_locale_has_locale_t
=no
23707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
23711 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
23712 if test $gl_cv_header_locale_has_locale_t = yes; then
23713 gl_cv_header_locale_h_needs_xlocale_h
=no
23715 gl_cv_header_locale_h_needs_xlocale_h
=yes
23719 gl_cv_header_locale_h_needs_xlocale_h
=no
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
23724 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
23725 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
23726 $as_echo_n "(cached) " >&6
23728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23729 /* end confdefs.h. */
23730 #include <locale.h>
23732 int x = sizeof (l.decimal_point);
23733 int y = sizeof (l.int_p_cs_precedes);
23742 if ac_fn_c_try_compile
"$LINENO"; then :
23743 gl_cv_sys_struct_lconv_ok
=yes
23745 gl_cv_sys_struct_lconv_ok
=no
23747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
23751 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
23752 if test $gl_cv_sys_struct_lconv_ok = no
; then
23753 REPLACE_STRUCT_LCONV
=1
23764 if test $gl_cv_have_include_next = yes; then
23765 gl_cv_next_locale_h
='<'locale.h
'>'
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
23768 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
23769 if ${gl_cv_next_locale_h+:} false
; then :
23770 $as_echo_n "(cached) " >&6
23775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23777 #include <locale.h>
23780 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23781 *) gl_absname_cpp
="$ac_cpp" ;;
23786 gl_dirsep_regex
='[/\\]'
23789 gl_dirsep_regex
='\/'
23792 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23793 gl_header_literal_regex
=`echo 'locale.h' \
23794 | sed -e "$gl_make_literal_regex_sed"`
23795 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23796 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23802 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23803 sed -n "$gl_absolute_header_sed"`
23805 gl_header
=$gl_cv_absolute_locale_h
23806 gl_cv_next_locale_h
='"'$gl_header'"'
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
23811 $as_echo "$gl_cv_next_locale_h" >&6; }
23813 NEXT_LOCALE_H
=$gl_cv_next_locale_h
23815 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23817 gl_next_as_first_directive
='<'locale.h
'>'
23819 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23820 gl_next_as_first_directive
=$gl_cv_next_locale_h
23822 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
23836 if test $REPLACE_STRUCT_LCONV = 1; then
23837 REPLACE_LOCALECONV
=1
23840 if test $REPLACE_LOCALECONV = 1; then
23849 gl_LIBOBJS
="$gl_LIBOBJS localeconv.$ac_objext"
23852 ac_fn_c_check_member
"$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
23854 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
; then :
23856 cat >>confdefs.h
<<_ACEOF
23857 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
23870 GNULIB_LOCALECONV
=1
23876 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
23882 if test "$gl_threads_api" = posix
; then
23883 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23884 # pthread_rwlock_* functions.
23886 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23888 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
23891 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23895 if $has_rwlock; then
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23899 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23900 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
23901 $as_echo_n "(cached) " >&6
23904 LIBS
="$LIBS $LIBMULTITHREAD"
23905 if test "$cross_compiling" = yes; then :
23906 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
23908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h. */
23912 #include <pthread.h>
23913 #include <stdlib.h>
23914 #include <unistd.h>
23916 #define SUCCEED() exit (0)
23917 #define FAILURE() exit (1)
23918 #define UNEXPECTED(n) (exit (10 + (n)))
23920 /* The main thread creates the waiting writer and the requesting reader threads
23921 in the default way; this guarantees that they have the same priority.
23922 We can reuse the main thread as first reader thread. */
23924 static pthread_rwlock_t lock;
23925 static pthread_t reader1;
23926 static pthread_t writer;
23927 static pthread_t reader2;
23928 static pthread_t timer;
23929 /* Used to pass control from writer to reader2 and from reader2 to timer,
23930 as in a relay race.
23931 Passing control from one running thread to another running thread
23932 is most likely faster than to create the second thread. */
23933 static pthread_mutex_t baton;
23936 timer_func (void *ignored)
23938 /* Step 13 (can be before or after step 12):
23939 The timer thread takes the baton, then waits a moment to make sure
23940 it can tell whether the second reader thread is blocked at step 12. */
23941 if (pthread_mutex_lock (&baton))
23944 /* By the time we get here, it's clear that the second reader thread is
23945 blocked at step 12. This is the desired behaviour. */
23950 reader2_func (void *ignored)
23954 /* Step 8 (can be before or after step 7):
23955 The second reader thread takes the baton, then waits a moment to make sure
23956 the writer thread has reached step 7. */
23957 if (pthread_mutex_lock (&baton))
23960 /* Step 9: The second reader thread requests the lock. */
23961 err = pthread_rwlock_tryrdlock (&lock);
23964 else if (err != EBUSY)
23966 /* Step 10: Launch a timer, to test whether the next call blocks. */
23967 if (pthread_create (&timer, NULL, timer_func, NULL))
23969 /* Step 11: Release the baton. */
23970 if (pthread_mutex_unlock (&baton))
23972 /* Step 12: The second reader thread requests the lock. */
23973 err = pthread_rwlock_rdlock (&lock);
23981 writer_func (void *ignored)
23983 /* Step 4: Take the baton, so that the second reader thread does not go ahead
23985 if (pthread_mutex_lock (&baton))
23987 /* Step 5: Create the second reader thread. */
23988 if (pthread_create (&reader2, NULL, reader2_func, NULL))
23990 /* Step 6: Release the baton. */
23991 if (pthread_mutex_unlock (&baton))
23993 /* Step 7: The writer thread requests the lock. */
23994 if (pthread_rwlock_wrlock (&lock))
24002 reader1 = pthread_self ();
24004 /* Step 1: The main thread initializes the lock and the baton. */
24005 if (pthread_rwlock_init (&lock, NULL))
24007 if (pthread_mutex_init (&baton, NULL))
24009 /* Step 2: The main thread acquires the lock as a reader. */
24010 if (pthread_rwlock_rdlock (&lock))
24012 /* Step 3: Create the writer thread. */
24013 if (pthread_create (&writer, NULL, writer_func, NULL))
24015 /* Job done. Go to sleep. */
24023 if ac_fn_c_try_run
"$LINENO"; then :
24024 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
24026 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
24028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24036 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24037 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24040 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24046 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24048 /* end confdefs.h. */
24050 #include <pthread.h>
24055 #if __FreeBSD__ == 4
24056 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24057 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24058 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24059 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24061 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24069 if ac_fn_c_try_compile
"$LINENO"; then :
24071 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24080 cat >>confdefs.h
<<_ACEOF
24081 #define GNULIB_LOCK 1
24088 for ac_header
in stdlib.h
24090 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24091 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
24092 cat >>confdefs.h
<<_ACEOF
24093 #define HAVE_STDLIB_H 1
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24101 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24102 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
24103 $as_echo_n "(cached) " >&6
24105 if test "$cross_compiling" = yes; then :
24107 # Guess yes on platforms where we know the result.
24108 *-gnu* | gnu
* | freebsd
* | netbsd
* | openbsd
* \
24109 | hpux
* | solaris
* | cygwin
* | mingw
*)
24110 ac_cv_func_malloc_0_nonnull
=yes ;;
24111 # If we don't know, assume the worst.
24112 *) ac_cv_func_malloc_0_nonnull
=no
;;
24116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24118 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24119 # include <stdlib.h>
24127 char *p = malloc (0);
24136 if ac_fn_c_try_run
"$LINENO"; then :
24137 ac_cv_func_malloc_0_nonnull
=yes
24139 ac_cv_func_malloc_0_nonnull
=no
24141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24148 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24149 if test $ac_cv_func_malloc_0_nonnull = yes; then :
24151 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
24154 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
24161 if test $REPLACE_MALLOC = 1; then
24170 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
24175 cat >>confdefs.h
<<_ACEOF
24176 #define GNULIB_MALLOC_GNU 1
24183 if test $gl_cv_func_malloc_posix = yes; then
24185 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24191 if test $REPLACE_MALLOC = 1; then
24200 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
24208 GNULIB_MALLOC_POSIX
=1
24214 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24232 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24237 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24238 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24239 $as_echo_n "(cached) " >&6
24243 # Guess no on AIX and OSF/1.
24244 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24245 # Guess yes otherwise.
24246 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24248 if test $LOCALE_JA != none
; then
24249 if test "$cross_compiling" = yes; then :
24252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h. */
24255 #include <locale.h>
24256 #include <string.h>
24257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24260 included before <wchar.h>. */
24261 #include <stddef.h>
24267 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24269 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24273 memset (&state, '\0', sizeof (mbstate_t));
24274 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24275 if (mbsinit (&state))
24281 if ac_fn_c_try_run
"$LINENO"; then :
24282 gl_cv_func_mbrtowc_incomplete_state
=yes
24284 gl_cv_func_mbrtowc_incomplete_state
=no
24286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24294 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24300 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24301 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24302 $as_echo_n "(cached) " >&6
24306 # Guess no on Solaris 8.
24307 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24308 # Guess yes otherwise.
24309 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24311 if test $LOCALE_ZH_CN != none
; then
24312 if test "$cross_compiling" = yes; then :
24315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h. */
24318 #include <locale.h>
24319 #include <stdlib.h>
24320 #include <string.h>
24321 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24323 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24324 included before <wchar.h>. */
24325 #include <stddef.h>
24331 /* This fails on Solaris 8:
24332 mbrtowc returns 2, and sets wc to 0x00F0.
24333 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24334 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24336 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24340 memset (&state, '\0', sizeof (mbstate_t));
24341 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24342 && mbtowc (&wc, input + 3, 6) == 4)
24348 if ac_fn_c_try_run
"$LINENO"; then :
24349 gl_cv_func_mbrtowc_sanitycheck
=yes
24351 gl_cv_func_mbrtowc_sanitycheck
=no
24353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24354 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24361 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24363 REPLACE_MBSTATE_T
=0
24364 case "$gl_cv_func_mbrtowc_incomplete_state" in
24366 *) REPLACE_MBSTATE_T
=1 ;;
24368 case "$gl_cv_func_mbrtowc_sanitycheck" in
24370 *) REPLACE_MBSTATE_T
=1 ;;
24373 REPLACE_MBSTATE_T
=1
24378 if test $ac_cv_func_mbrtowc = no
; then
24380 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
24381 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24383 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24384 included before <wchar.h>. */
24385 #include <stddef.h>
24391 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
24397 cat >>confdefs.h
<<_ACEOF
24398 #define HAVE_DECL_MBRTOWC $ac_have_decl
24401 if test $ac_cv_have_decl_mbrtowc = yes; then
24405 if test $REPLACE_MBSTATE_T = 1; then
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
24412 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
24413 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
24414 $as_echo_n "(cached) " >&6
24418 # Guess no on Solaris.
24419 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
24420 # Guess yes otherwise.
24421 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
24423 if test $LOCALE_FR_UTF8 != none
; then
24424 if test "$cross_compiling" = yes; then :
24427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h. */
24430 #include <locale.h>
24431 #include <stdlib.h>
24432 #include <string.h>
24433 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24435 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24436 included before <wchar.h>. */
24437 #include <stddef.h>
24445 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24447 char input[] = "\303\237er";
24452 memset (&state, '\0', sizeof (mbstate_t));
24453 wc = (wchar_t) 0xBADFACE;
24454 ret = mbrtowc (&wc, input, 5, &state);
24457 if (!mbsinit (&state))
24460 memset (&state, '\0', sizeof (mbstate_t));
24461 ret = mbrtowc (NULL, input, 5, &state);
24462 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
24464 if (!mbsinit (&state))
24470 if ac_fn_c_try_run
"$LINENO"; then :
24471 gl_cv_func_mbrtowc_null_arg1
=yes
24473 gl_cv_func_mbrtowc_null_arg1
=no
24475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
24483 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
24489 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24490 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
24491 $as_echo_n "(cached) " >&6
24495 # Guess no on OSF/1.
24496 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
24497 # Guess yes otherwise.
24498 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
24500 if test $LOCALE_FR_UTF8 != none
; then
24501 if test "$cross_compiling" = yes; then :
24504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24505 /* end confdefs.h. */
24507 #include <locale.h>
24508 #include <string.h>
24509 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24512 included before <wchar.h>. */
24513 #include <stddef.h>
24519 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24525 memset (&state, '\0', sizeof (mbstate_t));
24526 wc = (wchar_t) 0xBADFACE;
24527 mbrtowc (&wc, NULL, 5, &state);
24528 /* Check that wc was not modified. */
24529 if (wc != (wchar_t) 0xBADFACE)
24535 if ac_fn_c_try_run
"$LINENO"; then :
24536 gl_cv_func_mbrtowc_null_arg2
=yes
24538 gl_cv_func_mbrtowc_null_arg2
=no
24540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
24548 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
24556 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24557 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
24558 $as_echo_n "(cached) " >&6
24562 # Guess no on HP-UX, Solaris, native Windows.
24563 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
24564 # Guess yes otherwise.
24565 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
24567 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
24568 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
24569 if test "$cross_compiling" = yes; then :
24572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24573 /* end confdefs.h. */
24575 #include <locale.h>
24576 #include <string.h>
24577 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24579 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24580 included before <wchar.h>. */
24581 #include <stddef.h>
24588 int found_some_locale = 0;
24589 /* This fails on Solaris. */
24590 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24592 char input[] = "B\303\274\303\237er"; /* "Büßer" */
24596 memset (&state, '\0', sizeof (mbstate_t));
24597 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24600 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24603 found_some_locale = 1;
24605 /* This fails on HP-UX 11.11. */
24606 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24608 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24612 memset (&state, '\0', sizeof (mbstate_t));
24613 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24616 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24619 found_some_locale = 1;
24621 /* This fails on native Windows. */
24622 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
24624 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
24628 memset (&state, '\0', sizeof (mbstate_t));
24629 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24632 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24635 found_some_locale = 1;
24637 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
24639 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
24643 memset (&state, '\0', sizeof (mbstate_t));
24644 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24647 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24650 found_some_locale = 1;
24652 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
24654 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
24658 memset (&state, '\0', sizeof (mbstate_t));
24659 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24662 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24665 found_some_locale = 1;
24667 return (found_some_locale ? result : 77);
24670 if ac_fn_c_try_run
"$LINENO"; then :
24671 gl_cv_func_mbrtowc_retval
=yes
24673 if test $?
!= 77; then
24674 gl_cv_func_mbrtowc_retval
=no
24678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
24686 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24692 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24693 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
24694 $as_echo_n "(cached) " >&6
24698 # Guess no on Solaris 8 and 9.
24699 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
24700 # Guess yes otherwise.
24701 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
24703 if test $LOCALE_ZH_CN != none
; then
24704 if test "$cross_compiling" = yes; then :
24707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24708 /* end confdefs.h. */
24710 #include <locale.h>
24711 #include <string.h>
24712 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24714 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24715 included before <wchar.h>. */
24716 #include <stddef.h>
24722 /* This fails on Solaris 8 and 9. */
24723 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24728 memset (&state, '\0', sizeof (mbstate_t));
24729 if (mbrtowc (&wc, "", 1, &state) != 0)
24735 if ac_fn_c_try_run
"$LINENO"; then :
24736 gl_cv_func_mbrtowc_nul_retval
=yes
24738 gl_cv_func_mbrtowc_nul_retval
=no
24740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24741 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24748 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
24753 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
24754 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
24755 $as_echo_n "(cached) " >&6
24759 # Guess no on AIX and glibc systems.
24760 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
24761 # Guess yes on native Windows.
24762 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
24763 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
24765 if test "$cross_compiling" = yes; then :
24768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h. */
24773 static mbstate_t mbs;
24777 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
24780 if ac_fn_c_try_run
"$LINENO"; then :
24781 gl_cv_func_mbrtowc_empty_input
=yes
24783 gl_cv_func_mbrtowc_empty_input
=no
24785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
24792 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
24796 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
24797 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
24798 $as_echo_n "(cached) " >&6
24801 gl_cv_C_locale_sans_EILSEQ
="guessing no"
24803 if test "$cross_compiling" = yes; then :
24805 # Guess yes on native Windows.
24806 mingw
*) gl_cv_C_locale_sans_EILSEQ
="guessing yes" ;;
24810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h. */
24812 #include <limits.h>
24813 #include <locale.h>
24821 char *locale = setlocale (LC_ALL, "C");
24824 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
24828 mbstate_t mbs = { 0, };
24829 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
24839 if ac_fn_c_try_run
"$LINENO"; then :
24840 gl_cv_C_locale_sans_EILSEQ
=yes
24842 gl_cv_C_locale_sans_EILSEQ
=no
24844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
24851 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
24853 case "$gl_cv_func_mbrtowc_null_arg1" in
24856 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
24861 case "$gl_cv_func_mbrtowc_null_arg2" in
24864 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
24869 case "$gl_cv_func_mbrtowc_retval" in
24872 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
24877 case "$gl_cv_func_mbrtowc_nul_retval" in
24880 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
24885 case "$gl_cv_func_mbrtowc_empty_input" in
24888 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
24893 case $gl_cv_C_locale_sans_EILSEQ in
24896 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
24904 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
24913 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
24931 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24946 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24951 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24952 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24953 $as_echo_n "(cached) " >&6
24957 # Guess no on AIX and OSF/1.
24958 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24959 # Guess yes otherwise.
24960 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24962 if test $LOCALE_JA != none
; then
24963 if test "$cross_compiling" = yes; then :
24966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24969 #include <locale.h>
24970 #include <string.h>
24971 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24973 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24974 included before <wchar.h>. */
24975 #include <stddef.h>
24981 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24983 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24987 memset (&state, '\0', sizeof (mbstate_t));
24988 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24989 if (mbsinit (&state))
24995 if ac_fn_c_try_run
"$LINENO"; then :
24996 gl_cv_func_mbrtowc_incomplete_state
=yes
24998 gl_cv_func_mbrtowc_incomplete_state
=no
25000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25008 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
25014 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
25015 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
25016 $as_echo_n "(cached) " >&6
25020 # Guess no on Solaris 8.
25021 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
25022 # Guess yes otherwise.
25023 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
25025 if test $LOCALE_ZH_CN != none
; then
25026 if test "$cross_compiling" = yes; then :
25029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25030 /* end confdefs.h. */
25032 #include <locale.h>
25033 #include <stdlib.h>
25034 #include <string.h>
25035 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25037 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25038 included before <wchar.h>. */
25039 #include <stddef.h>
25045 /* This fails on Solaris 8:
25046 mbrtowc returns 2, and sets wc to 0x00F0.
25047 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
25048 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25050 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
25054 memset (&state, '\0', sizeof (mbstate_t));
25055 if (mbrtowc (&wc, input + 3, 6, &state) != 4
25056 && mbtowc (&wc, input + 3, 6) == 4)
25062 if ac_fn_c_try_run
"$LINENO"; then :
25063 gl_cv_func_mbrtowc_sanitycheck
=yes
25065 gl_cv_func_mbrtowc_sanitycheck
=no
25067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
25075 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
25077 REPLACE_MBSTATE_T
=0
25078 case "$gl_cv_func_mbrtowc_incomplete_state" in
25080 *) REPLACE_MBSTATE_T
=1 ;;
25082 case "$gl_cv_func_mbrtowc_sanitycheck" in
25084 *) REPLACE_MBSTATE_T
=1 ;;
25087 REPLACE_MBSTATE_T
=1
25092 if test $ac_cv_func_mbsinit = no
; then
25094 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
25095 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25097 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25098 included before <wchar.h>. */
25099 #include <stddef.h>
25105 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
25111 cat >>confdefs.h
<<_ACEOF
25112 #define HAVE_DECL_MBSINIT $ac_have_decl
25115 if test $ac_cv_have_decl_mbsinit = yes; then
25119 if test $REPLACE_MBSTATE_T = 1; then
25123 mingw
*) REPLACE_MBSINIT
=1 ;;
25128 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
25137 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
25154 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
25168 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
25173 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
25174 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
25175 $as_echo_n "(cached) " >&6
25179 # Guess no on AIX and OSF/1.
25180 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
25181 # Guess yes otherwise.
25182 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
25184 if test $LOCALE_JA != none
; then
25185 if test "$cross_compiling" = yes; then :
25188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25189 /* end confdefs.h. */
25191 #include <locale.h>
25192 #include <string.h>
25193 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25195 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25196 included before <wchar.h>. */
25197 #include <stddef.h>
25203 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25205 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
25209 memset (&state, '\0', sizeof (mbstate_t));
25210 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25211 if (mbsinit (&state))
25217 if ac_fn_c_try_run
"$LINENO"; then :
25218 gl_cv_func_mbrtowc_incomplete_state
=yes
25220 gl_cv_func_mbrtowc_incomplete_state
=no
25222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25230 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
25236 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
25237 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
25238 $as_echo_n "(cached) " >&6
25242 # Guess no on Solaris 8.
25243 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
25244 # Guess yes otherwise.
25245 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
25247 if test $LOCALE_ZH_CN != none
; then
25248 if test "$cross_compiling" = yes; then :
25251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25252 /* end confdefs.h. */
25254 #include <locale.h>
25255 #include <stdlib.h>
25256 #include <string.h>
25257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25260 included before <wchar.h>. */
25261 #include <stddef.h>
25267 /* This fails on Solaris 8:
25268 mbrtowc returns 2, and sets wc to 0x00F0.
25269 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
25270 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25272 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
25276 memset (&state, '\0', sizeof (mbstate_t));
25277 if (mbrtowc (&wc, input + 3, 6, &state) != 4
25278 && mbtowc (&wc, input + 3, 6) == 4)
25284 if ac_fn_c_try_run
"$LINENO"; then :
25285 gl_cv_func_mbrtowc_sanitycheck
=yes
25287 gl_cv_func_mbrtowc_sanitycheck
=no
25289 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25290 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
25297 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
25299 REPLACE_MBSTATE_T
=0
25300 case "$gl_cv_func_mbrtowc_incomplete_state" in
25302 *) REPLACE_MBSTATE_T
=1 ;;
25304 case "$gl_cv_func_mbrtowc_sanitycheck" in
25306 *) REPLACE_MBSTATE_T
=1 ;;
25309 REPLACE_MBSTATE_T
=1
25314 if test $ac_cv_func_mbsrtowcs = no
; then
25316 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
25317 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25319 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25320 included before <wchar.h>. */
25321 #include <stddef.h>
25327 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
25333 cat >>confdefs.h
<<_ACEOF
25334 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
25337 if test $ac_cv_have_decl_mbsrtowcs = yes; then
25338 REPLACE_MBSRTOWCS
=1
25341 if test $REPLACE_MBSTATE_T = 1; then
25342 REPLACE_MBSRTOWCS
=1
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
25351 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
25352 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
25353 $as_echo_n "(cached) " >&6
25357 # Guess no on HP-UX, Solaris, mingw.
25358 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
25359 # Guess yes otherwise.
25360 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
25362 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
25363 if test "$cross_compiling" = yes; then :
25366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25367 /* end confdefs.h. */
25369 #include <locale.h>
25370 #include <string.h>
25371 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25373 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25374 included before <wchar.h>. */
25375 #include <stddef.h>
25382 /* Test whether the function supports a NULL destination argument.
25383 This fails on native Windows. */
25384 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
25386 const char input[] = "\337er";
25387 const char *src = input;
25390 memset (&state, '\0', sizeof (mbstate_t));
25391 if (mbsrtowcs (NULL, &src, 1, &state) != 3
25395 /* Test whether the function works when started with a conversion state
25396 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
25397 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25399 const char input[] = "B\303\274\303\237er";
25402 memset (&state, '\0', sizeof (mbstate_t));
25403 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25404 if (!mbsinit (&state))
25406 const char *src = input + 2;
25407 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25411 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25413 const char input[] = "<\306\374\313\334\270\354>";
25416 memset (&state, '\0', sizeof (mbstate_t));
25417 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
25418 if (!mbsinit (&state))
25420 const char *src = input + 4;
25421 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
25425 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25427 const char input[] = "B\250\271\201\060\211\070er";
25430 memset (&state, '\0', sizeof (mbstate_t));
25431 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25432 if (!mbsinit (&state))
25434 const char *src = input + 2;
25435 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25442 if ac_fn_c_try_run
"$LINENO"; then :
25443 gl_cv_func_mbsrtowcs_works
=yes
25445 gl_cv_func_mbsrtowcs_works
=no
25447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
25455 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
25457 case "$gl_cv_func_mbsrtowcs_works" in
25459 *) REPLACE_MBSRTOWCS
=1 ;;
25464 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
25473 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
25483 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
25500 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
25509 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
25510 if ${ac_cv_have_decl_mbswidth+:} false
; then :
25511 $as_echo_n "(cached) " >&6
25513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25514 /* end confdefs.h. */
25516 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25518 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
25519 before <wchar.h>. */
25520 #include <stddef.h>
25529 char *p = (char *) mbswidth;
25536 if ac_fn_c_try_compile
"$LINENO"; then :
25537 ac_cv_have_decl_mbswidth
=yes
25539 ac_cv_have_decl_mbswidth
=no
25541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
25544 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
25545 if test $ac_cv_have_decl_mbswidth = yes; then
25551 cat >>confdefs.h
<<_ACEOF
25552 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25559 $as_echo_n "checking for mbstate_t... " >&6; }
25560 if ${ac_cv_type_mbstate_t+:} false
; then :
25561 $as_echo_n "(cached) " >&6
25563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h. */
25565 $ac_includes_default
25566 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25568 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25569 included before <wchar.h>. */
25570 #include <stddef.h>
25577 mbstate_t x; return sizeof x;
25582 if ac_fn_c_try_compile
"$LINENO"; then :
25583 ac_cv_type_mbstate_t
=yes
25585 ac_cv_type_mbstate_t
=no
25587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25590 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25591 if test $ac_cv_type_mbstate_t = yes; then
25593 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25597 $as_echo "#define mbstate_t int" >>confdefs.h
25609 if test $REPLACE_MBTOWC = 1; then
25618 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
25635 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
25640 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
25649 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
25652 for ac_header
in bp-sym.h
25654 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25655 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
25656 cat >>confdefs.h
<<_ACEOF
25657 #define HAVE_BP_SYM_H 1
25677 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
25687 for ac_func
in mempcpy
25689 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25690 if test "x$ac_cv_func_mempcpy" = xyes
; then :
25691 cat >>confdefs.h
<<_ACEOF
25692 #define HAVE_MEMPCPY 1
25698 if test $ac_cv_func_mempcpy = no
; then
25702 if test $HAVE_MEMPCPY = 0; then
25711 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
25728 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25737 if test $ac_cv_have_decl_memrchr = no
; then
25738 HAVE_DECL_MEMRCHR
=0
25741 for ac_func
in memrchr
25743 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
25744 if test "x$ac_cv_func_memrchr" = xyes
; then :
25745 cat >>confdefs.h
<<_ACEOF
25746 #define HAVE_MEMRCHR 1
25753 if test $ac_cv_func_memrchr = no
; then
25762 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
25777 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25782 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25791 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25795 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25804 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25809 cat >>confdefs.h
<<_ACEOF
25810 #define GNULIB_MSVC_NOTHROW 1
25819 if test $ac_cv_func_nl_langinfo = yes; then
25820 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
25822 $as_echo_n "checking whether YESEXPR works... " >&6; }
25823 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false
; then :
25824 $as_echo_n "(cached) " >&6
25826 if test "$cross_compiling" = yes; then :
25829 # Guess no on irix systems.
25830 irix
*) gl_cv_func_nl_langinfo_yesexpr_works
="guessing no";;
25831 # Guess yes elsewhere.
25832 *) gl_cv_func_nl_langinfo_yesexpr_works
="guessing yes";;
25836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25837 /* end confdefs.h. */
25838 #include <langinfo.h>
25843 return !*nl_langinfo(YESEXPR);
25849 if ac_fn_c_try_run
"$LINENO"; then :
25850 gl_cv_func_nl_langinfo_yesexpr_works
=yes
25852 gl_cv_func_nl_langinfo_yesexpr_works
=no
25854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
25861 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
25862 case $gl_cv_func_nl_langinfo_yesexpr_works in
25863 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS
=1 ;;
25864 *) FUNC_NL_LANGINFO_YESEXPR_WORKS
=0 ;;
25867 cat >>confdefs.h
<<_ACEOF
25868 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
25871 if test $HAVE_LANGINFO_CODESET = 1 \
25872 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
25873 && test $HAVE_LANGINFO_ALTMON = 1 \
25874 && test $HAVE_LANGINFO_ERA = 1 \
25875 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
25878 REPLACE_NL_LANGINFO
=1
25880 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
25887 if test $HAVE_NL_LANGINFO = 0 ||
test $REPLACE_NL_LANGINFO = 1; then
25896 gl_LIBOBJS
="$gl_LIBOBJS nl_langinfo.$ac_objext"
25904 GNULIB_NL_LANGINFO
=1
25910 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
25923 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
25927 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
25928 if ${gl_cv_func_open_slash+:} false
; then :
25929 $as_echo_n "(cached) " >&6
25931 # Assume that if we have lstat, we can also check symlinks.
25932 if test $ac_cv_func_lstat = yes; then
25934 ln -s conftest.tmp conftest.lnk
25936 if test "$cross_compiling" = yes; then :
25939 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
25940 gl_cv_func_open_slash
="guessing no" ;;
25942 gl_cv_func_open_slash
="guessing yes" ;;
25946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25951 # include <unistd.h>
25957 if (open ("conftest.lnk/", O_RDONLY) != -1)
25960 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
25965 if ac_fn_c_try_run
"$LINENO"; then :
25966 gl_cv_func_open_slash
=yes
25968 gl_cv_func_open_slash
=no
25970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25974 rm -f conftest.sl conftest.tmp conftest.lnk
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
25978 $as_echo "$gl_cv_func_open_slash" >&6; }
25979 case "$gl_cv_func_open_slash" in
25982 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25990 if test $REPLACE_OPEN = 0; then
25994 if test $ac_cv_func_fchdir = no
; then
25998 if test $HAVE_FCHDIR = 0; then
26005 if test $REPLACE_OPEN = 1; then
26014 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
26032 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
26042 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
26046 # Solaris 10 lacks O_CLOEXEC.
26047 # Solaris 9 has *at functions, but uniformly mishandles trailing
26048 # slash in all of them.
26056 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
26065 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
26074 cat >>confdefs.h
<<_ACEOF
26075 #define GNULIB_OPENAT 1
26089 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
26096 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
26098 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
26104 cat >>confdefs.h
<<_ACEOF
26105 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
26108 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
26110 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
26116 cat >>confdefs.h
<<_ACEOF
26117 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
26124 for ac_func
in rawmemchr
26126 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
26127 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
26128 cat >>confdefs.h
<<_ACEOF
26129 #define HAVE_RAWMEMCHR 1
26135 if test $ac_cv_func_rawmemchr = no
; then
26139 if test $HAVE_RAWMEMCHR = 0; then
26148 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
26163 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
26170 for ac_header
in stdlib.h
26172 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
26173 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
26174 cat >>confdefs.h
<<_ACEOF
26175 #define HAVE_STDLIB_H 1
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
26183 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
26184 if ${ac_cv_func_realloc_0_nonnull+:} false
; then :
26185 $as_echo_n "(cached) " >&6
26187 if test "$cross_compiling" = yes; then :
26189 # Guess yes on platforms where we know the result.
26190 *-gnu* | gnu
* | freebsd
* | netbsd
* | openbsd
* \
26191 | hpux
* | solaris
* | cygwin
* | mingw
*)
26192 ac_cv_func_realloc_0_nonnull
=yes ;;
26193 # If we don't know, assume the worst.
26194 *) ac_cv_func_realloc_0_nonnull
=no
;;
26198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26199 /* end confdefs.h. */
26200 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
26201 # include <stdlib.h>
26209 char *p = realloc (0, 0);
26218 if ac_fn_c_try_run
"$LINENO"; then :
26219 ac_cv_func_realloc_0_nonnull
=yes
26221 ac_cv_func_realloc_0_nonnull
=no
26223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
26230 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
26231 if test $ac_cv_func_realloc_0_nonnull = yes; then :
26233 $as_echo "#define HAVE_REALLOC_GNU 1" >>confdefs.h
26236 $as_echo "#define HAVE_REALLOC_GNU 0" >>confdefs.h
26243 if test $REPLACE_REALLOC = 1; then
26252 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26257 cat >>confdefs.h
<<_ACEOF
26258 #define GNULIB_REALLOC_GNU 1
26265 if test $gl_cv_func_malloc_posix = yes; then
26267 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
26273 if test $REPLACE_REALLOC = 1; then
26282 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26290 GNULIB_REALLOC_POSIX
=1
26296 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
26302 # Check whether --with-included-regex was given.
26303 if test "${with_included_regex+set}" = set; then :
26304 withval
=$with_included_regex;
26308 case $with_included_regex in #(
26309 yes|no
) ac_use_included_regex
=$with_included_regex
26312 # If the system regex support is good enough that it passes the
26313 # following run test, then default to *not* using the included regex.c.
26314 # If cross compiling, assume the test would fail and use the included
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
26319 $as_echo_n "checking for working re_compile_pattern... " >&6; }
26320 if ${gl_cv_func_re_compile_pattern_working+:} false
; then :
26321 $as_echo_n "(cached) " >&6
26323 if test "$cross_compiling" = yes; then :
26325 # Guess no on native Windows.
26326 mingw
*) gl_cv_func_re_compile_pattern_working
="guessing no" ;;
26327 # Otherwise, assume it is not working.
26328 *) gl_cv_func_re_compile_pattern_working
="guessing no" ;;
26332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26333 /* end confdefs.h. */
26336 #include <locale.h>
26337 #include <limits.h>
26338 #include <string.h>
26340 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
26341 # include <signal.h>
26342 # include <unistd.h>
26346 # include <malloc.h>
26349 #ifdef M_CHECK_ACTION
26350 /* Exit with distinguishable exit code. */
26351 static void sigabrt_no_core (int sig) { raise (SIGTERM); }
26358 static struct re_pattern_buffer regex;
26359 unsigned char folded_chars[UCHAR_MAX + 1];
26362 struct re_registers regs;
26364 /* Some builds of glibc go into an infinite loop on this
26365 test. Use alarm to force death, and mallopt to avoid
26366 malloc recursion in diagnosing the corrupted heap. */
26367 #if HAVE_DECL_ALARM
26368 signal (SIGALRM, SIG_DFL);
26371 #ifdef M_CHECK_ACTION
26372 signal (SIGABRT, sigabrt_no_core);
26373 mallopt (M_CHECK_ACTION, 2);
26376 if (setlocale (LC_ALL, "en_US.UTF-8"))
26379 /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
26380 This test needs valgrind to catch the bug on Debian
26381 GNU/Linux 3.1 x86, but it might catch the bug better
26382 on other platforms and it shouldn't hurt to try the
26384 static char const pat[] = "insert into";
26385 static char const data[] =
26386 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
26387 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
26389 memset (®ex, 0, sizeof regex);
26390 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
26393 else if (re_search (®ex, data, sizeof data - 1,
26394 0, sizeof data - 1, ®s)
26401 /* This test is from glibc bug 15078.
26402 The test case is from Andreas Schwab in
26403 <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
26405 static char const pat[] = "[^x]x";
26406 static char const data[] =
26407 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
26418 memset (®ex, 0, sizeof regex);
26419 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
26424 i = re_search (®ex, data, sizeof data - 1,
26425 0, sizeof data - 1, 0);
26426 if (i != 0 && i != 21)
26432 if (! setlocale (LC_ALL, "C"))
26436 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
26437 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
26438 memset (®ex, 0, sizeof regex);
26439 s = re_compile_pattern ("a[^x]b", 6, ®ex);
26442 /* This should fail, but succeeds for glibc-2.5. */
26443 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
26446 /* This regular expression is from Spencer ere test number 75
26448 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
26449 memset (®ex, 0, sizeof regex);
26450 for (i = 0; i <= UCHAR_MAX; i++)
26451 folded_chars[i] = i;
26452 regex.translate = folded_chars;
26453 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
26454 /* This should fail with _Invalid character class name_ error. */
26458 /* Ensure that [b-a] is diagnosed as invalid, when
26459 using RE_NO_EMPTY_RANGES. */
26460 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
26461 memset (®ex, 0, sizeof regex);
26462 s = re_compile_pattern ("a[b-a]", 6, ®ex);
26466 /* This should succeed, but does not for glibc-2.1.3. */
26467 memset (®ex, 0, sizeof regex);
26468 s = re_compile_pattern ("{1", 2, ®ex);
26472 /* The following example is derived from a problem report
26473 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
26474 memset (®ex, 0, sizeof regex);
26475 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
26478 /* This should match, but does not for glibc-2.2.1. */
26479 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
26482 memset (®ex, 0, sizeof regex);
26483 s = re_compile_pattern ("x", 1, ®ex);
26486 /* glibc-2.2.93 does not work with a negative RANGE argument. */
26487 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
26490 /* The version of regex.c in older versions of gnulib
26491 ignored RE_ICASE. Detect that problem too. */
26492 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
26493 memset (®ex, 0, sizeof regex);
26494 s = re_compile_pattern ("x", 1, ®ex);
26497 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
26500 /* Catch a bug reported by Vin Shelton in
26501 https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html
26503 re_set_syntax (RE_SYNTAX_POSIX_BASIC
26504 & ~RE_CONTEXT_INVALID_DUP
26505 & ~RE_NO_EMPTY_RANGES);
26506 memset (®ex, 0, sizeof regex);
26507 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
26511 /* REG_STARTEND was added to glibc on 2004-01-15.
26512 Reject older versions. */
26513 if (! REG_STARTEND)
26516 /* Matching with the compiled form of this regexp would provoke
26517 an assertion failure prior to glibc-2.28:
26518 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed
26519 With glibc-2.28, compilation fails and reports the invalid
26521 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
26522 memset (®ex, 0, sizeof regex);
26523 s = re_compile_pattern ("0|()0|\\1|0", 10, ®ex);
26524 if (!s || strcmp (s, "Invalid back reference"))
26528 /* It would be nice to reject hosts whose regoff_t values are too
26529 narrow (including glibc on hosts with 64-bit ptrdiff_t and
26530 32-bit int), but we should wait until glibc implements this
26531 feature. Otherwise, support for equivalence classes and
26532 multibyte collation symbols would always be broken except
26533 when compiling --without-included-regex. */
26534 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
26535 || sizeof (regoff_t) < sizeof (ssize_t))
26545 if ac_fn_c_try_run
"$LINENO"; then :
26546 gl_cv_func_re_compile_pattern_working
=yes
26548 gl_cv_func_re_compile_pattern_working
=no
26550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
26557 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
26558 case "$gl_cv_func_re_compile_pattern_working" in #(
26559 *yes) ac_use_included_regex
=no
;; #(
26560 *no
) ac_use_included_regex
=yes;;
26563 *) as_fn_error $?
"Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
26567 if test $ac_use_included_regex = yes; then
26569 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
26572 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
26575 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
26578 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
26581 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
26584 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
26587 $as_echo "#define re_search rpl_re_search" >>confdefs.h
26590 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
26593 $as_echo "#define re_match rpl_re_match" >>confdefs.h
26596 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
26599 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
26602 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
26605 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
26608 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
26611 $as_echo "#define regexec rpl_regexec" >>confdefs.h
26614 $as_echo "#define regerror rpl_regerror" >>confdefs.h
26617 $as_echo "#define regfree rpl_regfree" >>confdefs.h
26621 if test $ac_use_included_regex = yes; then
26630 gl_LIBOBJS
="$gl_LIBOBJS regex.$ac_objext"
26639 for ac_header
in libintl.h
26641 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
26642 if test "x$ac_cv_header_libintl_h" = xyes
; then :
26643 cat >>confdefs.h
<<_ACEOF
26644 #define HAVE_LIBINTL_H 1
26652 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
26654 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
26660 cat >>confdefs.h
<<_ACEOF
26661 #define HAVE_DECL_ISBLANK $ac_have_decl
26670 for ac_header
in stdint.h
26672 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26673 if test "x$ac_cv_header_stdint_h" = xyes
; then :
26674 cat >>confdefs.h
<<_ACEOF
26675 #define HAVE_STDINT_H 1
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
26683 $as_echo_n "checking for SIZE_MAX... " >&6; }
26684 if ${gl_cv_size_max+:} false
; then :
26685 $as_echo_n "(cached) " >&6
26689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26692 #include <limits.h>
26694 #include <stdint.h>
26701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26702 $EGREP "Found it" >/dev
/null
2>&1; then :
26707 if test -z "$gl_cv_size_max"; then
26708 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
26709 #include <limits.h>"; then :
26712 size_t_bits_minus_1
=
26715 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
26721 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
26722 if test $fits_in_uint = 1; then
26723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26724 /* end confdefs.h. */
26725 #include <stddef.h>
26727 extern unsigned long foo;
26737 if ac_fn_c_try_compile
"$LINENO"; then :
26740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26742 if test $fits_in_uint = 1; then
26743 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
26745 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
26748 gl_cv_size_max
='((size_t)~(size_t)0)'
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
26754 $as_echo "$gl_cv_size_max" >&6; }
26755 if test "$gl_cv_size_max" != yes; then
26757 cat >>confdefs.h
<<_ACEOF
26758 #define SIZE_MAX $gl_cv_size_max
26766 ac_fn_c_check_decl
"$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
26768 if test "x$ac_cv_have_decl_sleep" = xyes
; then :
26774 cat >>confdefs.h
<<_ACEOF
26775 #define HAVE_DECL_SLEEP $ac_have_decl
26779 if test $ac_cv_have_decl_sleep != yes; then
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
26783 $as_echo_n "checking for working sleep... " >&6; }
26784 if ${gl_cv_func_sleep_works+:} false
; then :
26785 $as_echo_n "(cached) " >&6
26787 if test "$cross_compiling" = yes; then :
26789 # Guess yes on glibc systems.
26790 *-gnu* | gnu
*) gl_cv_func_sleep_works
="guessing yes" ;;
26791 # Guess no on native Windows.
26792 mingw
*) gl_cv_func_sleep_works
="guessing no" ;;
26793 # If we don't know, assume the worst.
26794 *) gl_cv_func_sleep_works
="guessing no" ;;
26798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26799 /* end confdefs.h. */
26802 #include <unistd.h>
26803 #include <signal.h>
26805 handle_alarm (int sig)
26807 if (sig != SIGALRM)
26815 /* Failure to compile this test due to missing alarm is okay,
26816 since all such platforms (mingw) also lack sleep. */
26817 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
26818 unsigned int remaining;
26819 signal (SIGALRM, handle_alarm);
26821 remaining = sleep (pentecost);
26822 if (remaining > pentecost)
26824 if (remaining <= pentecost - 10)
26832 if ac_fn_c_try_run
"$LINENO"; then :
26833 gl_cv_func_sleep_works
=yes
26835 gl_cv_func_sleep_works
=no
26837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
26843 $as_echo "$gl_cv_func_sleep_works" >&6; }
26844 case "$gl_cv_func_sleep_works" in
26852 if test $HAVE_SLEEP = 0 ||
test $REPLACE_SLEEP = 1; then
26861 gl_LIBOBJS
="$gl_LIBOBJS sleep.$ac_objext"
26875 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26881 $as_echo_n "checking for ssize_t... " >&6; }
26882 if ${gt_cv_ssize_t+:} false
; then :
26883 $as_echo_n "(cached) " >&6
26885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26886 /* end confdefs.h. */
26887 #include <sys/types.h>
26891 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26897 if ac_fn_c_try_compile
"$LINENO"; then :
26902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26905 $as_echo "$gt_cv_ssize_t" >&6; }
26906 if test $gt_cv_ssize_t = no
; then
26908 $as_echo "#define ssize_t int" >>confdefs.h
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26922 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26923 if ${gl_cv_func_stat_file_slash+:} false
; then :
26924 $as_echo_n "(cached) " >&6
26927 # Assume that if we have lstat, we can also check symlinks.
26928 if test $ac_cv_func_lstat = yes; then
26929 ln -s conftest.tmp conftest.lnk
26931 if test "$cross_compiling" = yes; then :
26933 # Guess yes on Linux systems.
26934 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
26935 # Guess yes on glibc systems.
26936 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26937 # If we don't know, assume the worst.
26938 *) gl_cv_func_stat_file_slash
="guessing no" ;;
26942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26943 /* end confdefs.h. */
26944 #include <sys/stat.h>
26951 if (!stat ("conftest.tmp/", &st))
26954 if (!stat ("conftest.lnk/", &st))
26963 if ac_fn_c_try_run
"$LINENO"; then :
26964 gl_cv_func_stat_file_slash
=yes
26966 gl_cv_func_stat_file_slash
=no
26968 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26969 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26972 rm -f conftest.tmp conftest.lnk
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26975 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26976 case $gl_cv_func_stat_file_slash in
26980 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26990 if test $REPLACE_STAT = 1; then
26999 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27011 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27031 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27039 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
27040 #include <sys/stat.h>
27042 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27044 cat >>confdefs.h
<<_ACEOF
27045 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27049 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27050 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27051 $as_echo_n "(cached) " >&6
27053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h. */
27056 #include <sys/types.h>
27057 #include <sys/stat.h>
27058 #if HAVE_SYS_TIME_H
27059 # include <sys/time.h>
27062 struct timespec ts;
27075 if ac_fn_c_try_compile
"$LINENO"; then :
27076 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27078 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27083 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27084 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27086 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27090 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
27091 #include <sys/stat.h>
27093 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27095 cat >>confdefs.h
<<_ACEOF
27096 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27101 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27102 #include <sys/stat.h>
27104 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27106 cat >>confdefs.h
<<_ACEOF
27107 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27112 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
27113 #include <sys/stat.h>
27115 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27117 cat >>confdefs.h
<<_ACEOF
27118 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27134 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
27135 #include <sys/stat.h>
27137 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27139 cat >>confdefs.h
<<_ACEOF
27140 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27145 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27146 #include <sys/stat.h>
27148 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27150 cat >>confdefs.h
<<_ACEOF
27151 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27156 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
27157 #include <sys/stat.h>
27159 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
27161 cat >>confdefs.h
<<_ACEOF
27162 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
27175 $as_echo_n "checking for working stdalign.h... " >&6; }
27176 if ${gl_cv_header_working_stdalign_h+:} false
; then :
27177 $as_echo_n "(cached) " >&6
27179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27180 /* end confdefs.h. */
27181 #include <stdalign.h>
27182 #include <stddef.h>
27184 /* Test that alignof yields a result consistent with offsetof.
27185 This catches GCC bug 52023
27186 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
27188 template <class t> struct alignof_helper { char a; t b; };
27189 # define ao(type) offsetof (alignof_helper<type>, b)
27191 # define ao(type) offsetof (struct { char a; type b; }, b)
27193 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
27194 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
27195 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
27197 /* Test _Alignas only on platforms where gnulib can help. */
27199 ((defined __cplusplus && 201103 <= __cplusplus) \
27200 || (defined __APPLE__ && defined __MACH__ \
27201 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
27203 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
27204 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
27205 || 1300 <= _MSC_VER)
27206 struct alignas_test { char c; char alignas (8) alignas_8; };
27207 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
27219 if ac_fn_c_try_compile
"$LINENO"; then :
27220 gl_cv_header_working_stdalign_h
=yes
27222 gl_cv_header_working_stdalign_h
=no
27224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
27227 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
27229 if test $gl_cv_header_working_stdalign_h = yes; then
27232 STDALIGN_H
='stdalign.h'
27236 if test -n "$STDALIGN_H"; then
27237 GL_GENERATE_STDALIGN_H_TRUE
=
27238 GL_GENERATE_STDALIGN_H_FALSE
='#'
27240 GL_GENERATE_STDALIGN_H_TRUE
='#'
27241 GL_GENERATE_STDALIGN_H_FALSE
=
27248 # Define two additional variables used in the Makefile substitution.
27250 if test "$ac_cv_header_stdbool_h" = yes; then
27253 STDBOOL_H
='stdbool.h'
27256 if test -n "$STDBOOL_H"; then
27257 GL_GENERATE_STDBOOL_H_TRUE
=
27258 GL_GENERATE_STDBOOL_H_FALSE
='#'
27260 GL_GENERATE_STDBOOL_H_TRUE
='#'
27261 GL_GENERATE_STDBOOL_H_FALSE
=
27265 if test "$ac_cv_type__Bool" = yes; then
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27278 $as_echo_n "checking for good max_align_t... " >&6; }
27279 if ${gl_cv_type_max_align_t+:} false
; then :
27280 $as_echo_n "(cached) " >&6
27282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27283 /* end confdefs.h. */
27284 #include <stddef.h>
27285 unsigned int s = sizeof (max_align_t);
27286 #if defined __GNUC__ || defined __IBM__ALIGNOF__
27287 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27288 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27299 if ac_fn_c_try_compile
"$LINENO"; then :
27300 gl_cv_type_max_align_t
=yes
27302 gl_cv_type_max_align_t
=no
27304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27308 $as_echo "$gl_cv_type_max_align_t" >&6; }
27309 if test $gl_cv_type_max_align_t = no
; then
27314 if test $gt_cv_c_wchar_t = no
; then
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27320 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
27321 if ${gl_cv_decl_null_works+:} false
; then :
27322 $as_echo_n "(cached) " >&6
27324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27325 /* end confdefs.h. */
27326 #include <stddef.h>
27327 int test[2 * (sizeof NULL == sizeof (void *)) -1];
27337 if ac_fn_c_try_compile
"$LINENO"; then :
27338 gl_cv_decl_null_works
=yes
27340 gl_cv_decl_null_works
=no
27342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27345 $as_echo "$gl_cv_decl_null_works" >&6; }
27346 if test $gl_cv_decl_null_works = no
; then
27352 if test -n "$STDDEF_H"; then
27353 GL_GENERATE_STDDEF_H_TRUE
=
27354 GL_GENERATE_STDDEF_H_FALSE
='#'
27356 GL_GENERATE_STDDEF_H_TRUE
='#'
27357 GL_GENERATE_STDDEF_H_FALSE
=
27360 if test -n "$STDDEF_H"; then
27369 if test $gl_cv_have_include_next = yes; then
27370 gl_cv_next_stddef_h
='<'stddef.h
'>'
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27373 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
27374 if ${gl_cv_next_stddef_h+:} false
; then :
27375 $as_echo_n "(cached) " >&6
27380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h. */
27382 #include <stddef.h>
27385 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27386 *) gl_absname_cpp
="$ac_cpp" ;;
27391 gl_dirsep_regex
='[/\\]'
27394 gl_dirsep_regex
='\/'
27397 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27398 gl_header_literal_regex
=`echo 'stddef.h' \
27399 | sed -e "$gl_make_literal_regex_sed"`
27400 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27401 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27407 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27408 sed -n "$gl_absolute_header_sed"`
27410 gl_header
=$gl_cv_absolute_stddef_h
27411 gl_cv_next_stddef_h
='"'$gl_header'"'
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27416 $as_echo "$gl_cv_next_stddef_h" >&6; }
27418 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
27420 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27422 gl_next_as_first_directive
='<'stddef.h
'>'
27424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27425 gl_next_as_first_directive
=$gl_cv_next_stddef_h
27427 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
27437 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27448 if test $gl_cv_have_include_next = yes; then
27449 gl_cv_next_stdio_h
='<'stdio.h
'>'
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27452 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
27453 if ${gl_cv_next_stdio_h+:} false
; then :
27454 $as_echo_n "(cached) " >&6
27459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h. */
27464 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27465 *) gl_absname_cpp
="$ac_cpp" ;;
27470 gl_dirsep_regex
='[/\\]'
27473 gl_dirsep_regex
='\/'
27476 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27477 gl_header_literal_regex
=`echo 'stdio.h' \
27478 | sed -e "$gl_make_literal_regex_sed"`
27479 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27486 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27487 sed -n "$gl_absolute_header_sed"`
27489 gl_header
=$gl_cv_absolute_stdio_h
27490 gl_cv_next_stdio_h
='"'$gl_header'"'
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27495 $as_echo "$gl_cv_next_stdio_h" >&6; }
27497 NEXT_STDIO_H
=$gl_cv_next_stdio_h
27499 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27501 gl_next_as_first_directive
='<'stdio.h
'>'
27503 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27504 gl_next_as_first_directive
=$gl_cv_next_stdio_h
27506 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27513 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27514 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
27515 $as_echo_n "(cached) " >&6
27517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27518 /* end confdefs.h. */
27520 #define __STDC_FORMAT_MACROS 1
27522 #include <inttypes.h>
27523 /* For non-mingw systems, compilation will trivially succeed.
27524 For mingw, compilation will succeed for older mingw (system
27525 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27526 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27527 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27528 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27539 if ac_fn_c_try_compile
"$LINENO"; then :
27540 gl_cv_func_printf_attribute_flavor
=system
27542 gl_cv_func_printf_attribute_flavor
=gnu
27544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27547 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
27548 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
27550 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27557 cat >>confdefs.h
<<_ACEOF
27558 #define GNULIB_FSCANF 1
27565 cat >>confdefs.h
<<_ACEOF
27566 #define GNULIB_SCANF 1
27604 if test $gl_cv_have_include_next = yes; then
27605 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27608 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27609 if ${gl_cv_next_stdlib_h+:} false
; then :
27610 $as_echo_n "(cached) " >&6
27615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27616 /* end confdefs.h. */
27617 #include <stdlib.h>
27620 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27621 *) gl_absname_cpp
="$ac_cpp" ;;
27626 gl_dirsep_regex
='[/\\]'
27629 gl_dirsep_regex
='\/'
27632 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27633 gl_header_literal_regex
=`echo 'stdlib.h' \
27634 | sed -e "$gl_make_literal_regex_sed"`
27635 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27636 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27642 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27643 sed -n "$gl_absolute_header_sed"`
27645 gl_header
=$gl_cv_absolute_stdlib_h
27646 gl_cv_next_stdlib_h
='"'$gl_header'"'
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27651 $as_echo "$gl_cv_next_stdlib_h" >&6; }
27653 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
27655 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27657 gl_next_as_first_directive
='<'stdlib.h
'>'
27659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27660 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
27662 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
27675 for ac_func
in strcasecmp
27677 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
27678 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
27679 cat >>confdefs.h
<<_ACEOF
27680 #define HAVE_STRCASECMP 1
27686 if test $ac_cv_func_strcasecmp = no
; then
27692 for ac_func
in strncasecmp
27694 ac_fn_c_check_func
"$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
27695 if test "x$ac_cv_func_strncasecmp" = xyes
; then :
27696 cat >>confdefs.h
<<_ACEOF
27697 #define HAVE_STRNCASECMP 1
27703 if test $ac_cv_func_strncasecmp = yes; then
27708 ac_fn_c_check_decl
"$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
27709 if test "x$ac_cv_have_decl_strncasecmp" = xyes
; then :
27715 cat >>confdefs.h
<<_ACEOF
27716 #define HAVE_DECL_STRNCASECMP $ac_have_decl
27719 if test $ac_cv_have_decl_strncasecmp = no
; then
27720 HAVE_DECL_STRNCASECMP
=0
27724 if test $HAVE_STRCASECMP = 0; then
27733 gl_LIBOBJS
="$gl_LIBOBJS strcasecmp.$ac_objext"
27739 if test $HAVE_STRNCASECMP = 0; then
27748 gl_LIBOBJS
="$gl_LIBOBJS strncasecmp.$ac_objext"
27758 for ac_func
in strchrnul
27760 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
27761 if test "x$ac_cv_func_strchrnul" = xyes
; then :
27762 cat >>confdefs.h
<<_ACEOF
27763 #define HAVE_STRCHRNUL 1
27769 if test $ac_cv_func_strchrnul = no
; then
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
27773 $as_echo_n "checking whether strchrnul works... " >&6; }
27774 if ${gl_cv_func_strchrnul_works+:} false
; then :
27775 $as_echo_n "(cached) " >&6
27777 if test "$cross_compiling" = yes; then :
27778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27779 /* end confdefs.h. */
27781 #if defined __CYGWIN__
27782 #include <cygwin/version.h>
27783 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
27791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27792 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27793 gl_cv_func_strchrnul_works
="guessing yes"
27795 gl_cv_func_strchrnul_works
="guessing no"
27801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27802 /* end confdefs.h. */
27804 #include <string.h> /* for strchrnul */
27809 const char *buf = "a";
27810 return strchrnul (buf, 'b') != buf + 1;
27816 if ac_fn_c_try_run
"$LINENO"; then :
27817 gl_cv_func_strchrnul_works
=yes
27819 gl_cv_func_strchrnul_works
=no
27821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27822 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
27828 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
27829 case "$gl_cv_func_strchrnul_works" in
27831 *) REPLACE_STRCHRNUL
=1 ;;
27835 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
27844 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
27859 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
27867 if test $ac_cv_func_strdup = yes; then
27868 if test $gl_cv_func_malloc_posix != yes; then
27873 if test $ac_cv_have_decl_strdup = no
; then
27877 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
27886 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
27901 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
27910 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
27912 $as_echo_n "checking for working strerror function... " >&6; }
27913 if ${gl_cv_func_working_strerror+:} false
; then :
27914 $as_echo_n "(cached) " >&6
27916 if test "$cross_compiling" = yes; then :
27918 # Guess yes on glibc systems.
27919 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
27920 # If we don't know, assume the worst.
27921 *) gl_cv_func_working_strerror
="guessing no" ;;
27925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27927 #include <string.h>
27932 if (!*strerror (-2)) return 1;
27937 if ac_fn_c_try_run
"$LINENO"; then :
27938 gl_cv_func_working_strerror
=yes
27940 gl_cv_func_working_strerror
=no
27942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27943 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
27949 $as_echo "$gl_cv_func_working_strerror" >&6; }
27950 case "$gl_cv_func_working_strerror" in
27961 if test $REPLACE_STRERROR = 1; then
27970 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
27975 cat >>confdefs.h
<<_ACEOF
27976 #define GNULIB_STRERROR 1
27991 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
27997 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
28006 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
28012 if test $ac_cv_header_sys_socket_h != yes; then
28013 for ac_header
in winsock2.h
28015 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28016 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
28017 cat >>confdefs.h
<<_ACEOF
28018 #define HAVE_WINSOCK2_H 1
28026 if test "$ac_cv_header_winsock2_h" = yes; then
28028 UNISTD_H_HAVE_WINSOCK2_H
=1
28029 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
28048 if test $ac_cv_have_decl_strndup = no
; then
28049 HAVE_DECL_STRNDUP
=0
28052 if test $ac_cv_func_strndup = yes; then
28054 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
28056 $as_echo_n "checking for working strndup... " >&6; }
28057 if ${gl_cv_func_strndup_works+:} false
; then :
28058 $as_echo_n "(cached) " >&6
28060 if test "$cross_compiling" = yes; then :
28063 aix | aix
[3-6]*) gl_cv_func_strndup_works
="guessing no";;
28064 *) gl_cv_func_strndup_works
="guessing yes";;
28068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28069 /* end confdefs.h. */
28071 #include <string.h>
28072 #include <stdlib.h>
28077 #if !HAVE_DECL_STRNDUP
28082 char *strndup (const char *, size_t);
28086 s = strndup ("some longer string", 15);
28088 s = strndup ("shorter string", 13);
28089 result = s[13] != '\0';
28096 if ac_fn_c_try_run
"$LINENO"; then :
28097 gl_cv_func_strndup_works
=yes
28099 gl_cv_func_strndup_works
=no
28101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
28107 $as_echo "$gl_cv_func_strndup_works" >&6; }
28108 case $gl_cv_func_strndup_works in
28109 *no
) REPLACE_STRNDUP
=1 ;;
28115 if test $HAVE_STRNDUP = 0 ||
test $REPLACE_STRNDUP = 1; then
28124 gl_LIBOBJS
="$gl_LIBOBJS strndup.$ac_objext"
28138 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
28148 if test $ac_cv_have_decl_strnlen = no
; then
28149 HAVE_DECL_STRNLEN
=0
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28153 $as_echo_n "checking for working strnlen... " >&6; }
28154 if ${ac_cv_func_strnlen_working+:} false
; then :
28155 $as_echo_n "(cached) " >&6
28157 if test "$cross_compiling" = yes; then :
28158 # Guess no on AIX systems, yes otherwise.
28160 aix
*) ac_cv_func_strnlen_working
=no
;;
28161 *) ac_cv_func_strnlen_working
=yes;;
28164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28165 /* end confdefs.h. */
28166 $ac_includes_default
28172 #define S_LEN (sizeof S - 1)
28174 /* At least one implementation is buggy: that of AIX 4.3 would
28175 give strnlen (S, 1) == 3. */
28178 for (i = 0; i < S_LEN + 1; ++i)
28180 int expected = i <= S_LEN ? i : S_LEN;
28181 if (strnlen (S, i) != expected)
28190 if ac_fn_c_try_run
"$LINENO"; then :
28191 ac_cv_func_strnlen_working
=yes
28193 ac_cv_func_strnlen_working
=no
28195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28201 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28202 test $ac_cv_func_strnlen_working = no
&& :
28205 if test $ac_cv_func_strnlen_working = no
; then
28210 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28219 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
28234 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28252 if test $gl_cv_have_include_next = yes; then
28253 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28256 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28257 if ${gl_cv_next_sys_stat_h+:} false
; then :
28258 $as_echo_n "(cached) " >&6
28261 if test $ac_cv_header_sys_stat_h = yes; then
28266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28267 /* end confdefs.h. */
28268 #include <sys/stat.h>
28271 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28272 *) gl_absname_cpp
="$ac_cpp" ;;
28277 gl_dirsep_regex
='[/\\]'
28280 gl_dirsep_regex
='\/'
28283 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28284 gl_header_literal_regex
=`echo 'sys/stat.h' \
28285 | sed -e "$gl_make_literal_regex_sed"`
28286 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28293 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28294 sed -n "$gl_absolute_header_sed"`
28296 gl_header
=$gl_cv_absolute_sys_stat_h
28297 gl_cv_next_sys_stat_h
='"'$gl_header'"'
28299 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
28305 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
28307 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
28309 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28311 gl_next_as_first_directive
='<'sys
/stat.h
'>'
28313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28314 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
28316 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
28325 WINDOWS_STAT_TIMESPEC
=0
28334 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
28335 #include <sys/stat.h>
28337 if test "x$ac_cv_type_nlink_t" = xyes
; then :
28341 $as_echo "#define nlink_t int" >>confdefs.h
28355 if test $ac_cv_header_sysexits_h = yes; then
28366 if test $gl_cv_have_include_next = yes; then
28367 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
28370 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
28371 if ${gl_cv_next_sysexits_h+:} false
; then :
28372 $as_echo_n "(cached) " >&6
28375 if test $ac_cv_header_sysexits_h = yes; then
28380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28381 /* end confdefs.h. */
28382 #include <sysexits.h>
28385 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28386 *) gl_absname_cpp
="$ac_cpp" ;;
28391 gl_dirsep_regex
='[/\\]'
28394 gl_dirsep_regex
='\/'
28397 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28398 gl_header_literal_regex
=`echo 'sysexits.h' \
28399 | sed -e "$gl_make_literal_regex_sed"`
28400 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28401 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28407 gl_cv_absolute_sysexits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28408 sed -n "$gl_absolute_header_sed"`
28410 gl_header
=$gl_cv_absolute_sysexits_h
28411 gl_cv_next_sysexits_h
='"'$gl_header'"'
28413 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
28419 $as_echo "$gl_cv_next_sysexits_h" >&6; }
28421 NEXT_SYSEXITS_H
=$gl_cv_next_sysexits_h
28423 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28425 gl_next_as_first_directive
='<'sysexits.h
'>'
28427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28428 gl_next_as_first_directive
=$gl_cv_next_sysexits_h
28430 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
=$gl_next_as_first_directive
28435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28436 /* end confdefs.h. */
28437 #include <sysexits.h>
28449 case EX_UNAVAILABLE:
28466 if ac_fn_c_try_compile
"$LINENO"; then :
28469 SYSEXITS_H
=sysexits.h
28471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28474 SYSEXITS_H
=sysexits.h
28478 if test -n "$SYSEXITS_H"; then
28479 GL_GENERATE_SYSEXITS_H_TRUE
=
28480 GL_GENERATE_SYSEXITS_H_FALSE
='#'
28482 GL_GENERATE_SYSEXITS_H_TRUE
='#'
28483 GL_GENERATE_SYSEXITS_H_FALSE
=
28506 if test $gl_cv_have_include_next = yes; then
28507 gl_cv_next_unistd_h
='<'unistd.h
'>'
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28510 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
28511 if ${gl_cv_next_unistd_h+:} false
; then :
28512 $as_echo_n "(cached) " >&6
28515 if test $ac_cv_header_unistd_h = yes; then
28520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28521 /* end confdefs.h. */
28522 #include <unistd.h>
28525 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28526 *) gl_absname_cpp
="$ac_cpp" ;;
28531 gl_dirsep_regex
='[/\\]'
28534 gl_dirsep_regex
='\/'
28537 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28538 gl_header_literal_regex
=`echo 'unistd.h' \
28539 | sed -e "$gl_make_literal_regex_sed"`
28540 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28541 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28547 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28548 sed -n "$gl_absolute_header_sed"`
28550 gl_header
=$gl_cv_absolute_unistd_h
28551 gl_cv_next_unistd_h
='"'$gl_header'"'
28553 gl_cv_next_unistd_h
='<'unistd.h
'>'
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
28559 $as_echo "$gl_cv_next_unistd_h" >&6; }
28561 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
28563 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28564 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28565 gl_next_as_first_directive
='<'unistd.h
'>'
28567 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28568 gl_next_as_first_directive
=$gl_cv_next_unistd_h
28570 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
28575 if test $ac_cv_header_unistd_h = yes; then
28595 if { test "$HAVE_LIBUNISTRING" != yes \
28600 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
28601 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
28602 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
28603 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
28604 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
28614 LIBUNISTRING_UNITYPES_H
='unitypes.h'
28616 LIBUNISTRING_UNITYPES_H
=
28622 if { test "$HAVE_LIBUNISTRING" != yes \
28627 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
28628 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
28629 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
28630 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
28631 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
28641 LIBUNISTRING_UNIWIDTH_H
='uniwidth.h'
28643 LIBUNISTRING_UNIWIDTH_H
=
28649 if { test "$HAVE_LIBUNISTRING" != yes \
28654 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
28655 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
28656 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
28657 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
28658 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
28668 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
=
28669 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
='#'
28671 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
='#'
28672 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
=
28678 if test $ac_cv_func_vasnprintf = no
; then
28689 gl_LIBOBJS
="$gl_LIBOBJS vasnprintf.$ac_objext"
28699 gl_LIBOBJS
="$gl_LIBOBJS printf-args.$ac_objext"
28709 gl_LIBOBJS
="$gl_LIBOBJS printf-parse.$ac_objext"
28719 gl_LIBOBJS
="$gl_LIBOBJS asnprintf.$ac_objext"
28721 if test $ac_cv_func_vasnprintf = yes; then
28723 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
28737 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
28738 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
28742 $as_echo "#define ptrdiff_t long" >>confdefs.h
28757 gl_cv_func_vsnprintf_usable
=no
28758 for ac_func
in vsnprintf
28760 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
28761 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
28762 cat >>confdefs.h
<<_ACEOF
28763 #define HAVE_VSNPRINTF 1
28769 if test $ac_cv_func_vsnprintf = yes; then
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
28774 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
28775 if ${gl_cv_func_snprintf_size1+:} false
; then :
28776 $as_echo_n "(cached) " >&6
28779 if test "$cross_compiling" = yes; then :
28781 # Guess yes on native Windows.
28782 mingw
*) gl_cv_func_snprintf_size1
="guessing yes" ;;
28783 *) gl_cv_func_snprintf_size1
="guessing yes" ;;
28787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h. */
28792 # define my_snprintf snprintf
28794 # include <stdarg.h>
28795 static int my_snprintf (char *buf, int size, const char *format, ...)
28799 va_start (args, format);
28800 ret = vsnprintf (buf, size, format, args);
28807 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
28808 my_snprintf (buf, 1, "%d", 12345);
28809 return buf[1] != 'E';
28812 if ac_fn_c_try_run
"$LINENO"; then :
28813 gl_cv_func_snprintf_size1
=yes
28815 gl_cv_func_snprintf_size1
=no
28817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
28824 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
28826 case "$gl_cv_func_snprintf_size1" in
28829 case "$gl_cv_func_snprintf_retval_c99" in
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
28834 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
28835 if ${gl_cv_func_printf_positions+:} false
; then :
28836 $as_echo_n "(cached) " >&6
28839 if test "$cross_compiling" = yes; then :
28842 netbsd
[1-3]* | netbsdelf
[1-3]* | netbsdaout
[1-3]* | netbsdcoff
[1-3]*)
28843 gl_cv_func_printf_positions
="guessing no";;
28844 beos
*) gl_cv_func_printf_positions
="guessing no";;
28845 # Guess no on native Windows.
28846 mingw
* | pw
*) gl_cv_func_printf_positions
="guessing no";;
28847 *) gl_cv_func_printf_positions
="guessing yes";;
28851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28852 /* end confdefs.h. */
28855 #include <string.h>
28856 /* The string "%2$d %1$d", with dollar characters protected from the shell's
28857 dollar expansion (possibly an autoconf bug). */
28858 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
28859 static char buf[100];
28862 sprintf (buf, format, 33, 55);
28863 return (strcmp (buf, "55 33") != 0);
28866 if ac_fn_c_try_run
"$LINENO"; then :
28867 gl_cv_func_printf_positions
=yes
28869 gl_cv_func_printf_positions
=no
28871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
28878 $as_echo "$gl_cv_func_printf_positions" >&6; }
28880 case "$gl_cv_func_printf_positions" in
28882 gl_cv_func_vsnprintf_usable
=yes
28890 if test $gl_cv_func_vsnprintf_usable = no
; then
28901 gl_LIBOBJS
="$gl_LIBOBJS vsnprintf.$ac_objext"
28903 if test $ac_cv_func_vsnprintf = yes; then
28904 REPLACE_VSNPRINTF
=1
28907 if test $ac_cv_have_decl_vsnprintf = yes; then
28908 REPLACE_VSNPRINTF
=1
28915 if test $ac_cv_have_decl_vsnprintf = no
; then
28916 HAVE_DECL_VSNPRINTF
=0
28930 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
28946 if test $gl_cv_have_include_next = yes; then
28947 gl_cv_next_wchar_h
='<'wchar.h
'>'
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
28950 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
28951 if ${gl_cv_next_wchar_h+:} false
; then :
28952 $as_echo_n "(cached) " >&6
28955 if test $ac_cv_header_wchar_h = yes; then
28960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28961 /* end confdefs.h. */
28965 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28966 *) gl_absname_cpp
="$ac_cpp" ;;
28971 gl_dirsep_regex
='[/\\]'
28974 gl_dirsep_regex
='\/'
28977 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28978 gl_header_literal_regex
=`echo 'wchar.h' \
28979 | sed -e "$gl_make_literal_regex_sed"`
28980 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28981 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28987 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28988 sed -n "$gl_absolute_header_sed"`
28990 gl_header
=$gl_cv_absolute_wchar_h
28991 gl_cv_next_wchar_h
='"'$gl_header'"'
28993 gl_cv_next_wchar_h
='<'wchar.h
'>'
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
28999 $as_echo "$gl_cv_next_wchar_h" >&6; }
29001 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
29003 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29005 gl_next_as_first_directive
='<'wchar.h
'>'
29007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29008 gl_next_as_first_directive
=$gl_cv_next_wchar_h
29010 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
29015 if test $ac_cv_header_wchar_h = yes; then
29025 if test $gt_cv_c_wint_t = yes; then
29048 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
29053 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
29054 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
29055 $as_echo_n "(cached) " >&6
29059 # Guess no on AIX and OSF/1.
29060 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
29061 # Guess yes otherwise.
29062 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
29064 if test $LOCALE_JA != none
; then
29065 if test "$cross_compiling" = yes; then :
29068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29069 /* end confdefs.h. */
29071 #include <locale.h>
29072 #include <string.h>
29073 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29075 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29076 included before <wchar.h>. */
29077 #include <stddef.h>
29083 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
29085 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
29089 memset (&state, '\0', sizeof (mbstate_t));
29090 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29091 if (mbsinit (&state))
29097 if ac_fn_c_try_run
"$LINENO"; then :
29098 gl_cv_func_mbrtowc_incomplete_state
=yes
29100 gl_cv_func_mbrtowc_incomplete_state
=no
29102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
29110 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
29116 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
29117 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
29118 $as_echo_n "(cached) " >&6
29122 # Guess no on Solaris 8.
29123 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
29124 # Guess yes otherwise.
29125 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
29127 if test $LOCALE_ZH_CN != none
; then
29128 if test "$cross_compiling" = yes; then :
29131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h. */
29134 #include <locale.h>
29135 #include <stdlib.h>
29136 #include <string.h>
29137 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29139 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29140 included before <wchar.h>. */
29141 #include <stddef.h>
29147 /* This fails on Solaris 8:
29148 mbrtowc returns 2, and sets wc to 0x00F0.
29149 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
29150 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
29152 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
29156 memset (&state, '\0', sizeof (mbstate_t));
29157 if (mbrtowc (&wc, input + 3, 6, &state) != 4
29158 && mbtowc (&wc, input + 3, 6) == 4)
29164 if ac_fn_c_try_run
"$LINENO"; then :
29165 gl_cv_func_mbrtowc_sanitycheck
=yes
29167 gl_cv_func_mbrtowc_sanitycheck
=no
29169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
29177 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
29179 REPLACE_MBSTATE_T
=0
29180 case "$gl_cv_func_mbrtowc_incomplete_state" in
29182 *) REPLACE_MBSTATE_T
=1 ;;
29184 case "$gl_cv_func_mbrtowc_sanitycheck" in
29186 *) REPLACE_MBSTATE_T
=1 ;;
29189 REPLACE_MBSTATE_T
=1
29194 if test $ac_cv_func_wcrtomb = no
; then
29196 ac_fn_c_check_decl
"$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
29197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29200 included before <wchar.h>. */
29201 #include <stddef.h>
29207 if test "x$ac_cv_have_decl_wcrtomb" = xyes
; then :
29213 cat >>confdefs.h
<<_ACEOF
29214 #define HAVE_DECL_WCRTOMB $ac_have_decl
29217 if test $ac_cv_have_decl_wcrtomb = yes; then
29221 if test $REPLACE_MBSTATE_T = 1; then
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
29230 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
29231 if ${gl_cv_func_wcrtomb_retval+:} false
; then :
29232 $as_echo_n "(cached) " >&6
29236 # Guess no on AIX 4, OSF/1 and Solaris.
29237 aix4
* | osf
* | solaris
*) gl_cv_func_wcrtomb_retval
="guessing no" ;;
29238 # Guess yes on native Windows.
29239 mingw
*) gl_cv_func_wcrtomb_retval
="guessing yes" ;;
29240 # Guess yes otherwise.
29241 *) gl_cv_func_wcrtomb_retval
="guessing yes" ;;
29243 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
29244 if test "$cross_compiling" = yes; then :
29247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29248 /* end confdefs.h. */
29250 #include <locale.h>
29251 #include <string.h>
29252 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29254 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29255 included before <wchar.h>. */
29256 #include <stddef.h>
29263 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
29265 if (wcrtomb (NULL, 0, NULL) != 1)
29268 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
29270 if (wcrtomb (NULL, 0, NULL) != 1)
29273 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
29275 if (wcrtomb (NULL, 0, NULL) != 1)
29278 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
29280 if (wcrtomb (NULL, 0, NULL) != 1)
29286 if ac_fn_c_try_run
"$LINENO"; then :
29287 gl_cv_func_wcrtomb_retval
=yes
29289 gl_cv_func_wcrtomb_retval
=no
29291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
29299 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
29300 case "$gl_cv_func_wcrtomb_retval" in
29302 *) REPLACE_WCRTOMB
=1 ;;
29307 if test $HAVE_WCRTOMB = 0 ||
test $REPLACE_WCRTOMB = 1; then
29316 gl_LIBOBJS
="$gl_LIBOBJS wcrtomb.$ac_objext"
29333 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
29342 if test $ac_cv_func_iswcntrl = yes; then
29350 if test $gt_cv_c_wint_t = yes; then
29368 if test $gl_cv_have_include_next = yes; then
29369 gl_cv_next_wctype_h
='<'wctype.h
'>'
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29372 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29373 if ${gl_cv_next_wctype_h+:} false
; then :
29374 $as_echo_n "(cached) " >&6
29377 if test $ac_cv_header_wctype_h = yes; then
29382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29383 /* end confdefs.h. */
29384 #include <wctype.h>
29387 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29388 *) gl_absname_cpp
="$ac_cpp" ;;
29393 gl_dirsep_regex
='[/\\]'
29396 gl_dirsep_regex
='\/'
29399 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29400 gl_header_literal_regex
=`echo 'wctype.h' \
29401 | sed -e "$gl_make_literal_regex_sed"`
29402 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29403 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29409 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29410 sed -n "$gl_absolute_header_sed"`
29412 gl_header
=$gl_cv_absolute_wctype_h
29413 gl_cv_next_wctype_h
='"'$gl_header'"'
29415 gl_cv_next_wctype_h
='<'wctype.h
'>'
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29421 $as_echo "$gl_cv_next_wctype_h" >&6; }
29423 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
29425 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29427 gl_next_as_first_directive
='<'wctype.h
'>'
29429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29430 gl_next_as_first_directive
=$gl_cv_next_wctype_h
29432 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
29437 if test $ac_cv_header_wctype_h = yes; then
29438 if test $ac_cv_func_iswcntrl = yes; then
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29440 $as_echo_n "checking whether iswcntrl works... " >&6; }
29441 if ${gl_cv_func_iswcntrl_works+:} false
; then :
29442 $as_echo_n "(cached) " >&6
29445 if test "$cross_compiling" = yes; then :
29446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29447 /* end confdefs.h. */
29448 #include <stdlib.h>
29449 #if __GNU_LIBRARY__ == 1
29450 Linux libc5 i18n is broken.
29460 if ac_fn_c_try_compile
"$LINENO"; then :
29461 gl_cv_func_iswcntrl_works
="guessing yes"
29463 gl_cv_func_iswcntrl_works
="guessing no"
29465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29469 /* end confdefs.h. */
29471 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29472 included before <wchar.h>.
29473 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29474 must be included before <wchar.h>. */
29475 #include <stddef.h>
29479 #include <wctype.h>
29480 int main () { return iswprint ('x') == 0; }
29483 if ac_fn_c_try_run
"$LINENO"; then :
29484 gl_cv_func_iswcntrl_works
=yes
29486 gl_cv_func_iswcntrl_works
=no
29488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29495 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29503 case "$gl_cv_func_iswcntrl_works" in
29504 *yes) REPLACE_ISWCNTRL
=0 ;;
29505 *) REPLACE_ISWCNTRL
=1 ;;
29509 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
29513 if test $REPLACE_ISWCNTRL = 1; then
29516 for ac_func
in towlower
29518 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
29519 if test "x$ac_cv_func_towlower" = xyes
; then :
29520 cat >>confdefs.h
<<_ACEOF
29521 #define HAVE_TOWLOWER 1
29527 if test $ac_cv_func_towlower = yes; then
29530 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29531 included before <wchar.h>.
29532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29533 must be included before <wchar.h>. */
29534 #include <stddef.h>
29539 # include <wctype.h>
29543 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
29549 cat >>confdefs.h
<<_ACEOF
29550 #define HAVE_DECL_TOWLOWER $ac_have_decl
29553 if test $ac_cv_have_decl_towlower = yes; then
29562 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29567 $as_echo_n "checking for wctype_t... " >&6; }
29568 if ${gl_cv_type_wctype_t+:} false
; then :
29569 $as_echo_n "(cached) " >&6
29571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29572 /* end confdefs.h. */
29573 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29574 included before <wchar.h>.
29575 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29576 must be included before <wchar.h>. */
29577 #include <stddef.h>
29582 # include <wctype.h>
29594 if ac_fn_c_try_compile
"$LINENO"; then :
29595 gl_cv_type_wctype_t
=yes
29597 gl_cv_type_wctype_t
=no
29599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29603 $as_echo "$gl_cv_type_wctype_t" >&6; }
29604 if test $gl_cv_type_wctype_t = no
; then
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29609 $as_echo_n "checking for wctrans_t... " >&6; }
29610 if ${gl_cv_type_wctrans_t+:} false
; then :
29611 $as_echo_n "(cached) " >&6
29613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29614 /* end confdefs.h. */
29615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29616 included before <wchar.h>.
29617 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29618 must be included before <wchar.h>. */
29619 #include <stddef.h>
29623 #include <wctype.h>
29634 if ac_fn_c_try_compile
"$LINENO"; then :
29635 gl_cv_type_wctrans_t
=yes
29637 gl_cv_type_wctrans_t
=no
29639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29643 $as_echo "$gl_cv_type_wctrans_t" >&6; }
29644 if test $gl_cv_type_wctrans_t = no
; then
29663 ac_fn_c_check_decl
"$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
29664 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29665 #include <string.h>
29666 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29668 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29669 before <wchar.h>. */
29670 #include <stddef.h>
29676 if test "x$ac_cv_have_decl_wcwidth" = xyes
; then :
29682 cat >>confdefs.h
<<_ACEOF
29683 #define HAVE_DECL_WCWIDTH $ac_have_decl
29686 if test $ac_cv_have_decl_wcwidth != yes; then
29687 HAVE_DECL_WCWIDTH
=0
29690 if test $ac_cv_func_wcwidth != yes; then
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5
29692 $as_echo_n "checking whether wcwidth is a macro... " >&6; }
29693 if ${gl_cv_func_wcwidth_macro+:} false
; then :
29694 $as_echo_n "(cached) " >&6
29696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29701 wchar_header_defines_wcwidth
29704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29705 $EGREP "wchar_header_defines_wcwidth" >/dev
/null
2>&1; then :
29706 gl_cv_func_wcwidth_macro
=yes
29708 gl_cv_func_wcwidth_macro
=no
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5
29715 $as_echo "$gl_cv_func_wcwidth_macro" >&6; }
29718 if test $ac_cv_func_wcwidth = yes ||
test $gl_cv_func_wcwidth_macro = yes; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
29721 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
29722 if ${gl_cv_func_wcwidth_works+:} false
; then :
29723 $as_echo_n "(cached) " >&6
29726 if test "$cross_compiling" = yes; then :
29729 # Guess yes on glibc and AIX 7 systems.
29730 *-gnu* | gnu
* | aix
[7-9]*) gl_cv_func_wcwidth_works
="guessing yes";;
29731 *) gl_cv_func_wcwidth_works
="guessing no";;
29735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h. */
29738 #include <locale.h>
29739 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29740 #include <string.h>
29741 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29743 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29744 before <wchar.h>. */
29745 #include <stddef.h>
29749 #if !HAVE_DECL_WCWIDTH
29751 # ifdef __cplusplus
29759 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
29761 if (wcwidth (0x0301) > 0)
29763 if (wcwidth (0x05B0) > 0)
29765 if (wcwidth (0x200B) > 0)
29767 if (wcwidth (0xFF1A) == 0)
29773 if ac_fn_c_try_run
"$LINENO"; then :
29774 gl_cv_func_wcwidth_works
=yes
29776 gl_cv_func_wcwidth_works
=no
29778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
29785 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
29786 case "$gl_cv_func_wcwidth_works" in
29788 *no
) REPLACE_WCWIDTH
=1 ;;
29794 if test $HAVE_WCWIDTH = 0 ||
test $REPLACE_WCWIDTH = 1; then
29803 gl_LIBOBJS
="$gl_LIBOBJS wcwidth.$ac_objext"
29821 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
29827 for ac_header
in stdint.h
29829 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
29830 if test "x$ac_cv_header_stdint_h" = xyes
; then :
29831 cat >>confdefs.h
<<_ACEOF
29832 #define HAVE_STDINT_H 1
29840 # End of code from modules
29861 gl_source_base
='tests'
29862 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
29864 gl_module_indicator_condition
=$gltests_WITNESS
29874 LIBGNU_LIBDEPS
="$gl_libdeps"
29876 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
29880 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"
29881 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"
29883 HOST_CFLAGS
="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
29886 $as_echo_n "checking which extra warnings work... " >&6; }
29887 if ${grub_cv_cc_w_extra_flags+:} false
; then :
29888 $as_echo_n "(cached) " >&6
29891 SAVED_CFLAGS
="$CFLAGS"
29892 grub_cv_cc_w_extra_flags
=
29893 for x
in $EXTRA_WARN_FLAGS; do
29894 CFLAGS
="$HOST_CFLAGS $x -Werror"
29895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29896 /* end confdefs.h. */
29906 if ac_fn_c_try_link
"$LINENO"; then :
29911 rm -f core conftest.err conftest.
$ac_objext \
29912 conftest
$ac_exeext conftest.
$ac_ext
29913 if test x
$flag = x1
; then
29914 grub_cv_cc_w_extra_flags
="$grub_cv_cc_w_extra_flags $x"
29917 CFLAGS
="$SAVED_CFLAGS"
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
29921 $as_echo "$grub_cv_cc_w_extra_flags" >&6; }
29923 HOST_CFLAGS
="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
29926 # Check for target programs.
29929 # Find tools for the target.
29930 if test "x$target_alias" != x
&& test "x$host_alias" != "x$target_alias"; then
29931 tmp_ac_tool_prefix
="$ac_tool_prefix"
29932 ac_tool_prefix
=$target_alias-
29934 if test -n "$ac_tool_prefix"; then
29935 for ac_prog
in gcc egcs cc
29937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29940 $as_echo_n "checking for $ac_word... " >&6; }
29941 if ${ac_cv_prog_TARGET_CC+:} false
; then :
29942 $as_echo_n "(cached) " >&6
29944 if test -n "$TARGET_CC"; then
29945 ac_cv_prog_TARGET_CC
="$TARGET_CC" # Let the user override the test.
29947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29948 for as_dir
in $PATH
29951 test -z "$as_dir" && as_dir
=.
29952 for ac_exec_ext
in '' $ac_executable_extensions; do
29953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29954 ac_cv_prog_TARGET_CC
="$ac_tool_prefix$ac_prog"
29955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29964 TARGET_CC
=$ac_cv_prog_TARGET_CC
29965 if test -n "$TARGET_CC"; then
29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
29967 $as_echo "$TARGET_CC" >&6; }
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29970 $as_echo "no" >&6; }
29974 test -n "$TARGET_CC" && break
29977 if test -z "$TARGET_CC"; then
29978 ac_ct_TARGET_CC
=$TARGET_CC
29979 for ac_prog
in gcc egcs cc
29981 # Extract the first word of "$ac_prog", so it can be a program name with args.
29982 set dummy
$ac_prog; ac_word
=$2
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29984 $as_echo_n "checking for $ac_word... " >&6; }
29985 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false
; then :
29986 $as_echo_n "(cached) " >&6
29988 if test -n "$ac_ct_TARGET_CC"; then
29989 ac_cv_prog_ac_ct_TARGET_CC
="$ac_ct_TARGET_CC" # Let the user override the test.
29991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29992 for as_dir
in $PATH
29995 test -z "$as_dir" && as_dir
=.
29996 for ac_exec_ext
in '' $ac_executable_extensions; do
29997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29998 ac_cv_prog_ac_ct_TARGET_CC
="$ac_prog"
29999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30008 ac_ct_TARGET_CC
=$ac_cv_prog_ac_ct_TARGET_CC
30009 if test -n "$ac_ct_TARGET_CC"; then
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
30011 $as_echo "$ac_ct_TARGET_CC" >&6; }
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30014 $as_echo "no" >&6; }
30018 test -n "$ac_ct_TARGET_CC" && break
30021 if test "x$ac_ct_TARGET_CC" = x
; then
30022 TARGET_CC
="as_fn_error $? "none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" "$LINENO" 5"
30024 case $cross_compiling:$ac_tool_warned in
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30028 ac_tool_warned
=yes ;;
30030 TARGET_CC
=$ac_ct_TARGET_CC
30034 if test -n "$ac_tool_prefix"; then
30035 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
30036 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
30037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30038 $as_echo_n "checking for $ac_word... " >&6; }
30039 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
30040 $as_echo_n "(cached) " >&6
30042 if test -n "$TARGET_OBJCOPY"; then
30043 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
30045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30046 for as_dir
in $PATH
30049 test -z "$as_dir" && as_dir
=.
30050 for ac_exec_ext
in '' $ac_executable_extensions; do
30051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30052 ac_cv_prog_TARGET_OBJCOPY
="${ac_tool_prefix}objcopy"
30053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30062 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
30063 if test -n "$TARGET_OBJCOPY"; then
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
30065 $as_echo "$TARGET_OBJCOPY" >&6; }
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30068 $as_echo "no" >&6; }
30073 if test -z "$ac_cv_prog_TARGET_OBJCOPY"; then
30074 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
30075 # Extract the first word of "objcopy", so it can be a program name with args.
30076 set dummy objcopy
; ac_word
=$2
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30078 $as_echo_n "checking for $ac_word... " >&6; }
30079 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
30080 $as_echo_n "(cached) " >&6
30082 if test -n "$ac_ct_TARGET_OBJCOPY"; then
30083 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
30085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30086 for as_dir
in $PATH
30089 test -z "$as_dir" && as_dir
=.
30090 for ac_exec_ext
in '' $ac_executable_extensions; do
30091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30092 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="objcopy"
30093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30102 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
30103 if test -n "$ac_ct_TARGET_OBJCOPY"; then
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
30105 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30108 $as_echo "no" >&6; }
30111 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
30114 case $cross_compiling:$ac_tool_warned in
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30118 ac_tool_warned
=yes ;;
30120 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
30123 TARGET_OBJCOPY
="$ac_cv_prog_TARGET_OBJCOPY"
30126 if test -n "$ac_tool_prefix"; then
30127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30128 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30130 $as_echo_n "checking for $ac_word... " >&6; }
30131 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
30132 $as_echo_n "(cached) " >&6
30134 if test -n "$TARGET_STRIP"; then
30135 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
30137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30138 for as_dir
in $PATH
30141 test -z "$as_dir" && as_dir
=.
30142 for ac_exec_ext
in '' $ac_executable_extensions; do
30143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30144 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
30145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30154 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
30155 if test -n "$TARGET_STRIP"; then
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
30157 $as_echo "$TARGET_STRIP" >&6; }
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30160 $as_echo "no" >&6; }
30165 if test -z "$ac_cv_prog_TARGET_STRIP"; then
30166 ac_ct_TARGET_STRIP
=$TARGET_STRIP
30167 # Extract the first word of "strip", so it can be a program name with args.
30168 set dummy strip
; ac_word
=$2
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30170 $as_echo_n "checking for $ac_word... " >&6; }
30171 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
30172 $as_echo_n "(cached) " >&6
30174 if test -n "$ac_ct_TARGET_STRIP"; then
30175 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
30177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30178 for as_dir
in $PATH
30181 test -z "$as_dir" && as_dir
=.
30182 for ac_exec_ext
in '' $ac_executable_extensions; do
30183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30184 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
30185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30194 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
30195 if test -n "$ac_ct_TARGET_STRIP"; then
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
30197 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30200 $as_echo "no" >&6; }
30203 if test "x$ac_ct_TARGET_STRIP" = x
; then
30206 case $cross_compiling:$ac_tool_warned in
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30210 ac_tool_warned
=yes ;;
30212 TARGET_STRIP
=$ac_ct_TARGET_STRIP
30215 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
30218 if test -n "$ac_tool_prefix"; then
30219 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
30220 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30222 $as_echo_n "checking for $ac_word... " >&6; }
30223 if ${ac_cv_prog_TARGET_NM+:} false
; then :
30224 $as_echo_n "(cached) " >&6
30226 if test -n "$TARGET_NM"; then
30227 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
30229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30230 for as_dir
in $PATH
30233 test -z "$as_dir" && as_dir
=.
30234 for ac_exec_ext
in '' $ac_executable_extensions; do
30235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30236 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
30237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30246 TARGET_NM
=$ac_cv_prog_TARGET_NM
30247 if test -n "$TARGET_NM"; then
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
30249 $as_echo "$TARGET_NM" >&6; }
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30252 $as_echo "no" >&6; }
30257 if test -z "$ac_cv_prog_TARGET_NM"; then
30258 ac_ct_TARGET_NM
=$TARGET_NM
30259 # Extract the first word of "nm", so it can be a program name with args.
30260 set dummy nm
; ac_word
=$2
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30262 $as_echo_n "checking for $ac_word... " >&6; }
30263 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
30264 $as_echo_n "(cached) " >&6
30266 if test -n "$ac_ct_TARGET_NM"; then
30267 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
30269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30270 for as_dir
in $PATH
30273 test -z "$as_dir" && as_dir
=.
30274 for ac_exec_ext
in '' $ac_executable_extensions; do
30275 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30276 ac_cv_prog_ac_ct_TARGET_NM
="nm"
30277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30286 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
30287 if test -n "$ac_ct_TARGET_NM"; then
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
30289 $as_echo "$ac_ct_TARGET_NM" >&6; }
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30292 $as_echo "no" >&6; }
30295 if test "x$ac_ct_TARGET_NM" = x
; then
30298 case $cross_compiling:$ac_tool_warned in
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30302 ac_tool_warned
=yes ;;
30304 TARGET_NM
=$ac_ct_TARGET_NM
30307 TARGET_NM
="$ac_cv_prog_TARGET_NM"
30310 if test -n "$ac_tool_prefix"; then
30311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30312 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30314 $as_echo_n "checking for $ac_word... " >&6; }
30315 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
30316 $as_echo_n "(cached) " >&6
30318 if test -n "$TARGET_RANLIB"; then
30319 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
30321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30322 for as_dir
in $PATH
30325 test -z "$as_dir" && as_dir
=.
30326 for ac_exec_ext
in '' $ac_executable_extensions; do
30327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30328 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
30329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30338 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
30339 if test -n "$TARGET_RANLIB"; then
30340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
30341 $as_echo "$TARGET_RANLIB" >&6; }
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30344 $as_echo "no" >&6; }
30349 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
30350 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
30351 # Extract the first word of "ranlib", so it can be a program name with args.
30352 set dummy ranlib
; ac_word
=$2
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30354 $as_echo_n "checking for $ac_word... " >&6; }
30355 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
30356 $as_echo_n "(cached) " >&6
30358 if test -n "$ac_ct_TARGET_RANLIB"; then
30359 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
30361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30362 for as_dir
in $PATH
30365 test -z "$as_dir" && as_dir
=.
30366 for ac_exec_ext
in '' $ac_executable_extensions; do
30367 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30368 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
30369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30378 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
30379 if test -n "$ac_ct_TARGET_RANLIB"; then
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
30381 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30384 $as_echo "no" >&6; }
30387 if test "x$ac_ct_TARGET_RANLIB" = x
; then
30390 case $cross_compiling:$ac_tool_warned in
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30394 ac_tool_warned
=yes ;;
30396 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
30399 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
30403 ac_tool_prefix
="$tmp_ac_tool_prefix"
30405 if test "x$TARGET_CC" = x
; then
30408 if test -n "$ac_tool_prefix"; then
30409 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
30410 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30412 $as_echo_n "checking for $ac_word... " >&6; }
30413 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
30414 $as_echo_n "(cached) " >&6
30416 if test -n "$TARGET_OBJCOPY"; then
30417 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
30419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30420 for as_dir
in $PATH
30423 test -z "$as_dir" && as_dir
=.
30424 for ac_exec_ext
in '' $ac_executable_extensions; do
30425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30426 ac_cv_prog_TARGET_OBJCOPY
="${ac_tool_prefix}objcopy"
30427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30436 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
30437 if test -n "$TARGET_OBJCOPY"; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
30439 $as_echo "$TARGET_OBJCOPY" >&6; }
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30442 $as_echo "no" >&6; }
30447 if test -z "$ac_cv_prog_TARGET_OBJCOPY"; then
30448 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
30449 # Extract the first word of "objcopy", so it can be a program name with args.
30450 set dummy objcopy
; ac_word
=$2
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30452 $as_echo_n "checking for $ac_word... " >&6; }
30453 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
30454 $as_echo_n "(cached) " >&6
30456 if test -n "$ac_ct_TARGET_OBJCOPY"; then
30457 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
30459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30460 for as_dir
in $PATH
30463 test -z "$as_dir" && as_dir
=.
30464 for ac_exec_ext
in '' $ac_executable_extensions; do
30465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30466 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="objcopy"
30467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30476 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
30477 if test -n "$ac_ct_TARGET_OBJCOPY"; then
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
30479 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30482 $as_echo "no" >&6; }
30485 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
30488 case $cross_compiling:$ac_tool_warned in
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30492 ac_tool_warned
=yes ;;
30494 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
30497 TARGET_OBJCOPY
="$ac_cv_prog_TARGET_OBJCOPY"
30500 if test -n "$ac_tool_prefix"; then
30501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30502 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30504 $as_echo_n "checking for $ac_word... " >&6; }
30505 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
30506 $as_echo_n "(cached) " >&6
30508 if test -n "$TARGET_STRIP"; then
30509 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
30511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30512 for as_dir
in $PATH
30515 test -z "$as_dir" && as_dir
=.
30516 for ac_exec_ext
in '' $ac_executable_extensions; do
30517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30518 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
30519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30528 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
30529 if test -n "$TARGET_STRIP"; then
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
30531 $as_echo "$TARGET_STRIP" >&6; }
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30534 $as_echo "no" >&6; }
30539 if test -z "$ac_cv_prog_TARGET_STRIP"; then
30540 ac_ct_TARGET_STRIP
=$TARGET_STRIP
30541 # Extract the first word of "strip", so it can be a program name with args.
30542 set dummy strip
; ac_word
=$2
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30544 $as_echo_n "checking for $ac_word... " >&6; }
30545 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
30546 $as_echo_n "(cached) " >&6
30548 if test -n "$ac_ct_TARGET_STRIP"; then
30549 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
30551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30552 for as_dir
in $PATH
30555 test -z "$as_dir" && as_dir
=.
30556 for ac_exec_ext
in '' $ac_executable_extensions; do
30557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30558 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
30559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30568 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
30569 if test -n "$ac_ct_TARGET_STRIP"; then
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
30571 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30574 $as_echo "no" >&6; }
30577 if test "x$ac_ct_TARGET_STRIP" = x
; then
30580 case $cross_compiling:$ac_tool_warned in
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30584 ac_tool_warned
=yes ;;
30586 TARGET_STRIP
=$ac_ct_TARGET_STRIP
30589 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
30592 if test -n "$ac_tool_prefix"; then
30593 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
30594 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30596 $as_echo_n "checking for $ac_word... " >&6; }
30597 if ${ac_cv_prog_TARGET_NM+:} false
; then :
30598 $as_echo_n "(cached) " >&6
30600 if test -n "$TARGET_NM"; then
30601 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
30603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30604 for as_dir
in $PATH
30607 test -z "$as_dir" && as_dir
=.
30608 for ac_exec_ext
in '' $ac_executable_extensions; do
30609 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30610 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
30611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30620 TARGET_NM
=$ac_cv_prog_TARGET_NM
30621 if test -n "$TARGET_NM"; then
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
30623 $as_echo "$TARGET_NM" >&6; }
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30626 $as_echo "no" >&6; }
30631 if test -z "$ac_cv_prog_TARGET_NM"; then
30632 ac_ct_TARGET_NM
=$TARGET_NM
30633 # Extract the first word of "nm", so it can be a program name with args.
30634 set dummy nm
; ac_word
=$2
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30636 $as_echo_n "checking for $ac_word... " >&6; }
30637 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
30638 $as_echo_n "(cached) " >&6
30640 if test -n "$ac_ct_TARGET_NM"; then
30641 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
30643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30644 for as_dir
in $PATH
30647 test -z "$as_dir" && as_dir
=.
30648 for ac_exec_ext
in '' $ac_executable_extensions; do
30649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30650 ac_cv_prog_ac_ct_TARGET_NM
="nm"
30651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30660 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
30661 if test -n "$ac_ct_TARGET_NM"; then
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
30663 $as_echo "$ac_ct_TARGET_NM" >&6; }
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30666 $as_echo "no" >&6; }
30669 if test "x$ac_ct_TARGET_NM" = x
; then
30672 case $cross_compiling:$ac_tool_warned in
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30676 ac_tool_warned
=yes ;;
30678 TARGET_NM
=$ac_ct_TARGET_NM
30681 TARGET_NM
="$ac_cv_prog_TARGET_NM"
30684 if test -n "$ac_tool_prefix"; then
30685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30686 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30688 $as_echo_n "checking for $ac_word... " >&6; }
30689 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
30690 $as_echo_n "(cached) " >&6
30692 if test -n "$TARGET_RANLIB"; then
30693 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
30695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30696 for as_dir
in $PATH
30699 test -z "$as_dir" && as_dir
=.
30700 for ac_exec_ext
in '' $ac_executable_extensions; do
30701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30702 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
30703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30712 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
30713 if test -n "$TARGET_RANLIB"; then
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
30715 $as_echo "$TARGET_RANLIB" >&6; }
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 $as_echo "no" >&6; }
30723 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
30724 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
30725 # Extract the first word of "ranlib", so it can be a program name with args.
30726 set dummy ranlib
; ac_word
=$2
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30728 $as_echo_n "checking for $ac_word... " >&6; }
30729 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
30730 $as_echo_n "(cached) " >&6
30732 if test -n "$ac_ct_TARGET_RANLIB"; then
30733 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
30735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30736 for as_dir
in $PATH
30739 test -z "$as_dir" && as_dir
=.
30740 for ac_exec_ext
in '' $ac_executable_extensions; do
30741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30742 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
30743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30752 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
30753 if test -n "$ac_ct_TARGET_RANLIB"; then
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
30755 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30758 $as_echo "no" >&6; }
30761 if test "x$ac_ct_TARGET_RANLIB" = x
; then
30764 case $cross_compiling:$ac_tool_warned in
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30768 ac_tool_warned
=yes ;;
30770 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
30773 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
30789 # Test the C compiler for the target environment.
30791 tmp_CFLAGS
="$CFLAGS"
30792 tmp_LDFLAGS
="$LDFLAGS"
30793 tmp_CPPFLAGS
="$CPPFLAGS"
30796 CFLAGS
="$TARGET_CFLAGS"
30797 CPPFLAGS
="$TARGET_CPPFLAGS"
30798 LDFLAGS
="$TARGET_LDFLAGS"
30801 if test "x$target_m32" = x1
; then
30802 # Force 32-bit mode.
30803 TARGET_CFLAGS
="$TARGET_CFLAGS -m32"
30804 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m32"
30805 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m32"
30806 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m32"
30807 TARGET_MODULE_FORMAT
="elf32"
30810 if test "x$target_m64" = x1
; then
30811 # Force 64-bit mode.
30812 TARGET_CFLAGS
="$TARGET_CFLAGS -m64"
30813 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m64"
30814 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m64"
30815 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m64"
30816 TARGET_MODULE_FORMAT
="elf64"
30820 TARGET_CFLAGS
="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
30821 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -g"
30823 if test "x$target_cpu" != xi386
&& test "x$target_cpu" != xx86_64
; then
30824 TARGET_CFLAGS
="$TARGET_CFLAGS -Wcast-align"
30827 TARGET_CC_VERSION
="$(LC_ALL=C $TARGET_CC --version | head -n1)"
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
30830 $as_echo_n "checking which extra warnings work... " >&6; }
30831 if ${grub_cv_target_cc_w_extra_flags+:} false
; then :
30832 $as_echo_n "(cached) " >&6
30835 LDFLAGS
="$TARGET_LDFLAGS -nostdlib -static"
30837 grub_cv_target_cc_w_extra_flags
=
30838 for x
in $EXTRA_WARN_FLAGS; do
30839 CFLAGS
="$TARGET_CFLAGS $x -Werror"
30840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30841 /* end confdefs.h. */
30843 asm (".globl start; start:");
30844 void __main (void);
30845 void __main (void) {}
30856 if ac_fn_c_try_link
"$LINENO"; then :
30861 rm -f core conftest.err conftest.
$ac_objext \
30862 conftest
$ac_exeext conftest.
$ac_ext
30863 if test x
$flag = x1
; then
30864 grub_cv_target_cc_w_extra_flags
="$grub_cv_target_cc_w_extra_flags $x"
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
30870 $as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
30872 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
30875 $as_echo_n "checking if compiling with clang... " >&6; }
30876 if ${grub_cv_cc_target_clang+:} false
; then :
30877 $as_echo_n "(cached) " >&6
30880 CFLAGS
="$TARGET_CFLAGS"
30881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30882 /* end confdefs.h. */
30896 if ac_fn_c_try_compile
"$LINENO"; then :
30897 grub_cv_cc_target_clang
=no
30899 grub_cv_cc_target_clang
=yes
30901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_clang" >&5
30904 $as_echo "$grub_cv_cc_target_clang" >&6; }
30906 if test x
$target_cpu = xpowerpc
-o x
$target_cpu = xmips
; then
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to get big-endian compilation" >&5
30908 $as_echo_n "checking for options to get big-endian compilation... " >&6; }
30909 if ${grub_cv_target_cc_big_endian+:} false
; then :
30910 $as_echo_n "(cached) " >&6
30913 grub_cv_target_cc_big_endian
=no
30914 for cand
in "-target $target_cpu -Wl,-EB" "-target $target_cpu" \
30915 "-target $target_cpu-linux-gnu -Wl,-EB" "-target $target_cpu-linux-gnu" \
30916 "-EB" "-mbig-endian"; do
30917 if test x
"$grub_cv_target_cc_big_endian" != xno
; then
30920 CFLAGS
="$TARGET_CFLAGS $cand -Werror"
30921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30922 /* end confdefs.h. */
30924 #if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__ORDER_BIG_ENDIAN__ != __BYTE_ORDER__)
30925 #error still little endian
30927 asm (".globl start; start:");
30928 asm (".globl _start; _start:");
30929 asm (".globl __start; __start:");
30930 void __main (void);
30931 void __main (void) {}
30942 if ac_fn_c_try_link
"$LINENO"; then :
30943 grub_cv_target_cc_big_endian
="$cand"
30945 rm -f core conftest.err conftest.
$ac_objext \
30946 conftest
$ac_exeext conftest.
$ac_ext
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_big_endian" >&5
30951 $as_echo "$grub_cv_target_cc_big_endian" >&6; }
30953 if test x
"$grub_cv_target_cc_big_endian" = xno
; then
30954 as_fn_error $?
"could not force big-endian" "$LINENO" 5
30957 skip_linkflags
="$(echo "$grub_cv_target_cc_big_endian"|sed 's@-Wl,-EB@@')"
30959 TARGET_CFLAGS
="$TARGET_CFLAGS $skip_linkflags"
30960 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $skip_linkflags"
30961 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS $skip_linkflags"
30962 TARGET_LDFLAGS
="$TARGET_LDFLAGS $grub_cv_target_cc_big_endian"
30963 elif test x
$target_cpu = xmipsel
; then
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to get little-endian compilation" >&5
30965 $as_echo_n "checking for options to get little-endian compilation... " >&6; }
30966 if ${grub_cv_target_cc_little_endian+:} false
; then :
30967 $as_echo_n "(cached) " >&6
30970 grub_cv_target_cc_little_endian
=no
30971 for cand
in "-target $target_cpu -Wl,-EL" "-target $target_cpu" \
30972 "-target $target_cpu-linux-gnu -Wl,-EL" "-target $target_cpu-linux-gnu" \
30974 if test x
"$grub_cv_target_cc_little_endian" != xno
; then
30977 CFLAGS
="$TARGET_CFLAGS $cand -Werror"
30978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30979 /* end confdefs.h. */
30981 #if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__ORDER_BIG_ENDIAN__ == __BYTE_ORDER__)
30982 #error still big endian
30984 asm (".globl start; start:");
30985 asm (".globl _start; _start:");
30986 asm (".globl __start; __start:");
30987 void __main (void);
30988 void __main (void) {}
30999 if ac_fn_c_try_link
"$LINENO"; then :
31000 grub_cv_target_cc_little_endian
="$cand"
31002 rm -f core conftest.err conftest.
$ac_objext \
31003 conftest
$ac_exeext conftest.
$ac_ext
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_little_endian" >&5
31008 $as_echo "$grub_cv_target_cc_little_endian" >&6; }
31010 if test x
"$grub_cv_target_cc_little_endian" = xno
; then
31011 as_fn_error $?
"could not force little-endian" "$LINENO" 5
31014 skip_linkflags
="$(echo "$grub_cv_target_cc_little_endian"|sed 's@-Wl,-EL@@')"
31016 TARGET_CFLAGS
="$TARGET_CFLAGS $skip_linkflags"
31017 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $skip_linkflags"
31018 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS $skip_linkflags"
31019 TARGET_LDFLAGS
="$TARGET_LDFLAGS $grub_cv_target_cc_little_endian"
31022 # GRUB code is N32-compliant but it's experimental and we would prefer to
31023 # avoid having too much variety when it doesn't result in any real improvement.
31024 # Moreover N64 isn't supported.
31025 if test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
; then
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to force MIPS o32 ABI" >&5
31027 $as_echo_n "checking for options to force MIPS o32 ABI... " >&6; }
31028 if ${grub_cv_target_cc_mips_o32_abi+:} false
; then :
31029 $as_echo_n "(cached) " >&6
31032 grub_cv_target_cc_mips_o32_abi
=no
31033 for arg
in "" "-mabi=32" "-target $target_cpu -mabi=32" ; do
31034 if test x
"$grub_cv_target_cc_mips_o32_abi" != xno
; then
31037 CFLAGS
="$TARGET_CFLAGS $arg -Werror"
31038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31039 /* end confdefs.h. */
31041 #if !defined(_ABIO32) || !defined(_MIPS_SIM) || (_MIPS_SIM != _ABIO32)
31044 asm (".globl start; start:");
31045 asm (".globl _start; _start:");
31046 asm (".globl __start; __start:");
31047 void __main (void);
31048 void __main (void) {}
31059 if ac_fn_c_try_link
"$LINENO"; then :
31060 grub_cv_target_cc_mips_o32_abi
="$arg"
31062 rm -f core conftest.err conftest.
$ac_objext \
31063 conftest
$ac_exeext conftest.
$ac_ext
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_mips_o32_abi" >&5
31068 $as_echo "$grub_cv_target_cc_mips_o32_abi" >&6; }
31070 if test x
"$grub_cv_target_cc_mips_o32_abi" = xno
; then
31071 as_fn_error $?
"could not force MIPS o32 ABI" "$LINENO" 5
31074 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_mips_o32_abi"
31075 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS $grub_cv_target_cc_mips_o32_abi"
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to compile assembly" >&5
31079 $as_echo_n "checking for options to compile assembly... " >&6; }
31080 if ${grub_cv_cc_target_asm_compile+:} false
; then :
31081 $as_echo_n "(cached) " >&6
31085 case "x$target_cpu-$platform" in
31086 xmips-
* | xmipsel-
*)
31090 test_program
=i386-pc
31092 xi386-
* | xx86_64-
*)
31095 xpowerpc-
* | xsparc64-
* | xarm-
*)
31096 test_program
=$target_cpu
31099 if test x
"$test_program" = x
; then
31100 grub_cv_cc_target_asm_compile
=
31103 for arg
in "" "-no-integrated-as"; do
31104 cmdline
="$TARGET_CC -c -o /dev/null $TARGET_CCASFLAGS $arg $TARGET_CPPFLAGS $srcdir/asm-tests/$test_program.S"
31105 echo "Running $cmdline" >&5
31106 if $cmdline >&5 2>&5; then
31107 grub_cv_cc_target_asm_compile
="$arg"
31112 if test x
"$found" = xno
; then
31113 as_fn_error $?
"could not compile assembly" "$LINENO" 5
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_asm_compile" >&5
31119 $as_echo "$grub_cv_cc_target_asm_compile" >&6; }
31121 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS $grub_cv_cc_target_asm_compile"
31123 if test "x$target_cpu" = xi386
&& test "x$platform" != xemu
; then
31124 TARGET_CFLAGS
="$TARGET_CFLAGS -march=i386"
31127 if test "x$grub_cv_cc_target_clang" = xno
&& test "x$target_cpu" = xi386
&& test "x$platform" != xemu
&& test "x$platform" != xefi
; then
31128 TARGET_CFLAGS
="$TARGET_CFLAGS -mrtd -mregparm=3"
31131 # on mips redirect cache flushing function to non-existant one.
31132 if test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
; then
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
31134 $as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
31135 if ${grub_cv_cc_mflush_func+:} false
; then :
31136 $as_echo_n "(cached) " >&6
31139 CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
31140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31141 /* end confdefs.h. */
31151 if ac_fn_c_try_compile
"$LINENO"; then :
31152 grub_cv_cc_mflush_func
=yes
31154 grub_cv_cc_mflush_func
=no
31156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
31160 $as_echo "$grub_cv_cc_mflush_func" >&6; }
31162 if test "x$grub_cv_cc_mflush_func" = xyes
; then
31163 TARGET_CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring"
31168 # Force no alignment to save space on i386.
31169 if test "x$target_cpu" = xi386
; then
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
31171 $as_echo_n "checking whether -falign-loops works... " >&6; }
31172 if ${grub_cv_cc_falign_loop+:} false
; then :
31173 $as_echo_n "(cached) " >&6
31176 CFLAGS
="$TARGET_CFLAGS -falign-loops=1 -Werror"
31177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h. */
31188 if ac_fn_c_try_compile
"$LINENO"; then :
31189 grub_cv_cc_falign_loop
=yes
31191 grub_cv_cc_falign_loop
=no
31193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
31197 $as_echo "$grub_cv_cc_falign_loop" >&6; }
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
31200 $as_echo_n "checking whether -malign-loops works... " >&6; }
31201 if ${grub_cv_cc_malign_loop+:} false
; then :
31202 $as_echo_n "(cached) " >&6
31205 CFLAGS
="$TARGET_CFLAGS -malign-loops=1 -Werror"
31206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31207 /* end confdefs.h. */
31217 if ac_fn_c_try_compile
"$LINENO"; then :
31218 grub_cv_cc_malign_loop
=yes
31220 grub_cv_cc_malign_loop
=no
31222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
31226 $as_echo "$grub_cv_cc_malign_loop" >&6; }
31228 if test "x$grub_cv_cc_falign_loop" = xyes
; then
31229 TARGET_CFLAGS
="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
31230 elif test "x$grub_cv_cc_malign_loop" = xyes
; then
31231 TARGET_CFLAGS
="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
31235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
31236 $as_echo_n "checking whether -freg-struct-return works... " >&6; }
31237 if ${grub_cv_cc_freg_struct_return+:} false
; then :
31238 $as_echo_n "(cached) " >&6
31241 CFLAGS
="$TARGET_CFLAGS -freg-struct-return -Werror"
31242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31243 /* end confdefs.h. */
31253 if ac_fn_c_try_compile
"$LINENO"; then :
31254 grub_cv_cc_freg_struct_return
=yes
31256 grub_cv_cc_freg_struct_return
=no
31258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
31262 $as_echo "$grub_cv_cc_freg_struct_return" >&6; }
31264 if test "x$grub_cv_cc_freg_struct_return" = xyes
; then
31265 TARGET_CFLAGS
="$TARGET_CFLAGS -freg-struct-return"
31268 if ( test "x$target_cpu" = xi386 ||
test "x$target_cpu" = xx86_64
) && test "x$platform" != xemu
; then
31269 # Some toolchains enable these features by default, but they need
31270 # registers that aren't set up properly in GRUB.
31271 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow"
31274 # GRUB doesn't use float or doubles at all. Yet some toolchains may decide
31275 # that floats are a good fit to run instead of what's written in the code.
31276 # Given that floating point unit is disabled (if present to begin with)
31277 # when GRUB is running which may result in various hard crashes.
31278 if test x
"$platform" != xemu
; then
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to get soft-float" >&5
31280 $as_echo_n "checking for options to get soft-float... " >&6; }
31281 if ${grub_cv_target_cc_soft_float+:} false
; then :
31282 $as_echo_n "(cached) " >&6
31285 grub_cv_target_cc_soft_float
=no
31286 if test "x$target_cpu" = xarm64
; then
31287 CFLAGS
="$TARGET_CFLAGS -mgeneral-regs-only -Werror"
31288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31289 /* end confdefs.h. */
31299 if ac_fn_c_try_compile
"$LINENO"; then :
31300 grub_cv_target_cc_soft_float
="-mgeneral-regs-only"
31302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31304 if test "x$target_cpu" = xriscv32
; then
31305 CFLAGS
="$TARGET_CFLAGS -march=rv32imac -mabi=ilp32 -Werror"
31306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31307 /* end confdefs.h. */
31317 if ac_fn_c_try_compile
"$LINENO"; then :
31318 grub_cv_target_cc_soft_float
="-march=rv32imac -mabi=ilp32"
31320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31322 if test "x$target_cpu" = xriscv64
; then
31323 CFLAGS
="$TARGET_CFLAGS -march=rv64imac -mabi=lp64 -Werror"
31324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31325 /* end confdefs.h. */
31335 if ac_fn_c_try_compile
"$LINENO"; then :
31336 grub_cv_target_cc_soft_float
="-march=rv64imac -mabi=lp64"
31338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31340 if test "x$target_cpu" = xia64
; then
31341 CFLAGS
="$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-sqrt -Werror"
31342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31343 /* end confdefs.h. */
31353 if ac_fn_c_try_compile
"$LINENO"; then :
31354 grub_cv_target_cc_soft_float
="-mno-inline-float-divide -mno-inline-sqrt"
31356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31358 if test "x$target_cpu" = xsh4
; then
31359 CFLAGS
="$TARGET_CFLAGS -m4-nofpu -Werror"
31360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31361 /* end confdefs.h. */
31371 if ac_fn_c_try_compile
"$LINENO"; then :
31372 grub_cv_target_cc_soft_float
="-m4-nofpu"
31374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31376 for cand
in "-msoft-float -Xclang -msoft-float -Xclang -no-implicit-float" \
31377 "-Xclang -msoft-float -Xclang -no-implicit-float" \
31378 "-Xclang -msoft-float" "-msoft-float"; do
31379 if test x
"$grub_cv_target_cc_soft_float" != xno
; then
31382 CFLAGS
="$TARGET_CFLAGS $cand -Werror"
31383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31384 /* end confdefs.h. */
31394 if ac_fn_c_try_compile
"$LINENO"; then :
31395 grub_cv_target_cc_soft_float
="$cand"
31397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_soft_float" >&5
31402 $as_echo "$grub_cv_target_cc_soft_float" >&6; }
31404 if test x
"$grub_cv_target_cc_soft_float" = xno
; then
31405 as_fn_error $?
"could not force soft-float" "$LINENO" 5
31408 case x
"$grub_cv_target_cc_soft_float" in
31410 # A trick so that clang doesn't see it on link stаge
31411 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $grub_cv_target_cc_soft_float"
31414 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_soft_float"
31417 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float"
31421 if test x
"$target_cpu" = xsparc64
; then
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to reserve application registers" >&5
31423 $as_echo_n "checking for options to reserve application registers... " >&6; }
31424 if ${grub_cv_target_cc_mno_app_regs+:} false
; then :
31425 $as_echo_n "(cached) " >&6
31428 grub_cv_target_cc_mno_app_regs
=no
31429 for cand
in "-mllvm -sparc-reserve-app-registers" \
31430 "-mno-app-regs"; do
31431 if test x
"$grub_cv_target_cc_mno_app_regs" != xno
; then
31434 CFLAGS
="$TARGET_CFLAGS $cand -Werror"
31435 CPPFLAGS
="$TARGET_CPPFLAGS"
31436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31437 /* end confdefs.h. */
31447 if ac_fn_c_try_compile
"$LINENO"; then :
31448 grub_cv_target_cc_mno_app_regs
="$cand"
31450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_mno_app_regs" >&5
31455 $as_echo "$grub_cv_target_cc_mno_app_regs" >&6; }
31457 if test x
"$grub_cv_target_cc_mno_app_regs" = xno
; then
31458 as_fn_error $?
"could not reserve application registers" "$LINENO" 5
31460 if test x
"$grub_cv_target_cc_mno_app_regs" = x
"-mllvm -sparc-reserve-app-registers" ; then
31461 # A trick so that clang doesn't see it on link stаge
31462 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $grub_cv_target_cc_mno_app_regs"
31464 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_mno_app_regs"
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no-relax options" >&5
31468 $as_echo_n "checking for no-relax options... " >&6; }
31469 if ${grub_cv_target_cc_mno_relax+:} false
; then :
31470 $as_echo_n "(cached) " >&6
31473 grub_cv_target_cc_mno_relax
=no
31474 for cand
in "-mno-relax" "-Wl,--no-relax"; do
31475 if test x
"$grub_cv_target_cc_mno_relax" != xno
; then
31478 LDFLAGS
="$TARGET_LDFLAGS $cand -nostdlib -static"
31479 CFLAGS
="$TARGET_CFLAGS -Werror"
31480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31481 /* end confdefs.h. */
31483 asm (".globl start; start:");
31484 void __main (void);
31485 void __main (void) {}
31496 if ac_fn_c_try_link
"$LINENO"; then :
31497 grub_cv_target_cc_mno_relax
="$cand"
31499 rm -f core conftest.err conftest.
$ac_objext \
31500 conftest
$ac_exeext conftest.
$ac_ext
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_mno_relax" >&5
31505 $as_echo "$grub_cv_target_cc_mno_relax" >&6; }
31506 LDFLAGS
="$TARGET_LDFLAGS"
31507 CFLAGS
="$TARGET_CFLAGS"
31509 if test x
"$grub_cv_target_cc_mno_relax" = xno
; then
31510 as_fn_error $?
"could not find no-relax options" "$LINENO" 5
31512 TARGET_LDFLAGS
="$TARGET_LDFLAGS $grub_cv_target_cc_mno_relax"
31515 # By default, GCC 4.4 generates .eh_frame sections containing unwind
31516 # information in some cases where it previously did not. GRUB doesn't need
31517 # these and they just use up vital space. Restore the old compiler
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
31520 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
31521 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false
; then :
31522 $as_echo_n "(cached) " >&6
31525 CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
31526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31527 /* end confdefs.h. */
31537 if ac_fn_c_try_compile
"$LINENO"; then :
31538 grub_cv_cc_fno_dwarf2_cfi_asm
=yes
31540 grub_cv_cc_fno_dwarf2_cfi_asm
=no
31542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
31546 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
31548 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes
; then
31549 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
31552 if test x
"$target_os" = xcygwin
; then
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
31554 $as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
31555 if ${grub_cv_cc_no_reorder_functions+:} false
; then :
31556 $as_echo_n "(cached) " >&6
31559 CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
31560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31561 /* end confdefs.h. */
31571 if ac_fn_c_try_compile
"$LINENO"; then :
31572 grub_cv_cc_no_reorder_functions
=yes
31574 grub_cv_cc_no_reorder_functions
=no
31576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
31580 $as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
31583 if test x
"$target_os" = xcygwin
&& test "x$grub_cv_cc_no_reorder_functions" = xyes
; then
31584 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mno-stack-arg-probe works" >&5
31588 $as_echo_n "checking whether -mno-stack-arg-probe works... " >&6; }
31589 if ${grub_cv_cc_mno_stack_arg_probe+:} false
; then :
31590 $as_echo_n "(cached) " >&6
31593 CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
31594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31595 /* end confdefs.h. */
31605 if ac_fn_c_try_compile
"$LINENO"; then :
31606 grub_cv_cc_mno_stack_arg_probe
=yes
31608 grub_cv_cc_mno_stack_arg_probe
=no
31610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mno_stack_arg_probe" >&5
31614 $as_echo "$grub_cv_cc_mno_stack_arg_probe" >&6; }
31616 if test "x$grub_cv_cc_mno_stack_arg_probe" = xyes
; then
31617 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
31621 # By default, GCC 4.6 generates .eh_frame sections containing unwind
31622 # information in some cases where it previously did not. GRUB doesn't need
31623 # these and they just use up vital space. Restore the old compiler
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
31626 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
31627 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false
; then :
31628 $as_echo_n "(cached) " >&6
31631 CFLAGS
="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
31632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31633 /* end confdefs.h. */
31643 if ac_fn_c_try_compile
"$LINENO"; then :
31644 grub_cv_cc_fno_asynchronous_unwind_tables
=yes
31646 grub_cv_cc_fno_asynchronous_unwind_tables
=no
31648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
31652 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
31654 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes
; then
31655 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-unwind-tables works" >&5
31659 $as_echo_n "checking whether -fno-unwind-tables works... " >&6; }
31660 if ${grub_cv_cc_fno_unwind_tables+:} false
; then :
31661 $as_echo_n "(cached) " >&6
31664 CFLAGS
="$TARGET_CFLAGS -fno-unwind-tables"
31665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31666 /* end confdefs.h. */
31676 if ac_fn_c_try_compile
"$LINENO"; then :
31677 grub_cv_cc_fno_unwind_tables
=yes
31679 grub_cv_cc_fno_unwind_tables
=no
31681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_unwind_tables" >&5
31685 $as_echo "$grub_cv_cc_fno_unwind_tables" >&6; }
31687 if test "x$grub_cv_cc_fno_unwind_tables" = xyes
; then
31688 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-unwind-tables"
31691 # Do not generate .ident sections.
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-ident works" >&5
31693 $as_echo_n "checking whether -fno-ident works... " >&6; }
31694 if ${grub_cv_cc_fno_ident+:} false
; then :
31695 $as_echo_n "(cached) " >&6
31698 CFLAGS
="$TARGET_CFLAGS -fno-ident"
31699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31700 /* end confdefs.h. */
31710 if ac_fn_c_try_compile
"$LINENO"; then :
31711 grub_cv_cc_fno_ident
=yes
31713 grub_cv_cc_fno_ident
=no
31715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_ident" >&5
31719 $as_echo "$grub_cv_cc_fno_ident" >&6; }
31721 if test "x$grub_cv_cc_fno_ident" = xyes
; then
31722 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-ident"
31725 CFLAGS
="$TARGET_CFLAGS"
31728 if test x
"$platform" = xemu
; then
31730 grub_cv_target_cc_link_format
=
31733 grub_cv_target_cc_link_format
="-arch,${target_cpu}"
31734 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
31736 *windows
* |
*cygwin
* |
*mingw
*)
31737 if test x
${target_cpu} = xi386
; then
31738 grub_cv_target_cc_link_format
=-mi386pe
31739 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
31741 if test x
${target_cpu} = xx86_64
; then
31742 grub_cv_target_cc_link_format
=-mi386pep
31743 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
31745 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
31748 elif test x
"$target_cpu" = xi386 ||
test x
"$target_cpu" = xx86_64
; then
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
31750 $as_echo_n "checking for target linking format... " >&6; }
31751 if ${grub_cv_target_cc_link_format+:} false
; then :
31752 $as_echo_n "(cached) " >&6
31755 grub_cv_target_cc_link_format
=unknown
31756 for format
in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
31757 if test x
${target_cpu} != xi386
&& test x
$format = x-mi386pe
; then
31760 if test x
${target_cpu} != xx86_64
&& test x
$format = x-mi386pep
; then
31763 CFLAGS
="$TARGET_CFLAGS"
31764 LDFLAGS
="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
31765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31766 /* end confdefs.h. */
31768 asm (".globl start; start:");
31769 asm (".globl _start; _start:");
31770 asm (".globl __start; __start:");
31771 void __main (void);
31772 void __main (void) {}
31782 if ac_fn_c_try_link
"$LINENO"; then :
31787 rm -f core conftest.err conftest.
$ac_objext \
31788 conftest
$ac_exeext conftest.
$ac_ext
31789 if test x
"$flag" = x1
; then
31790 grub_cv_target_cc_link_format
="$format"
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
31796 $as_echo "$grub_cv_target_cc_link_format" >&6; }
31797 if test x
"$grub_cv_target_cc_link_format" = xunknown
; then
31798 as_fn_error $?
"no suitable link format found" "$LINENO" 5
31800 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
31801 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe
; then
31802 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
31804 if test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
31805 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
31809 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
31810 TARGET_APPLE_LINKER
=1
31811 # Extract the first word of "objconv", so it can be a program name with args.
31812 set dummy objconv
; ac_word
=$2
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31814 $as_echo_n "checking for $ac_word... " >&6; }
31815 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
31816 $as_echo_n "(cached) " >&6
31818 if test -n "$TARGET_OBJCONV"; then
31819 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
31821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31822 for as_dir
in $PATH
31825 test -z "$as_dir" && as_dir
=.
31826 for ac_exec_ext
in '' $ac_executable_extensions; do
31827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
31828 ac_cv_prog_TARGET_OBJCONV
="objconv"
31829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31838 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
31839 if test -n "$TARGET_OBJCONV"; then
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
31841 $as_echo "$TARGET_OBJCONV" >&6; }
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31844 $as_echo "no" >&6; }
31848 if test "x$TARGET_OBJCONV" = x
; then
31849 # Extract the first word of "objconv", so it can be a program name with args.
31850 set dummy objconv
; ac_word
=$2
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31852 $as_echo_n "checking for $ac_word... " >&6; }
31853 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
31854 $as_echo_n "(cached) " >&6
31856 if test -n "$TARGET_OBJCONV"; then
31857 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
31859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31863 test -z "$as_dir" && as_dir
=.
31864 for ac_exec_ext
in '' $ac_executable_extensions; do
31865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
31866 ac_cv_prog_TARGET_OBJCONV
="./objconv"
31867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31876 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
31877 if test -n "$TARGET_OBJCONV"; then
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
31879 $as_echo "$TARGET_OBJCONV" >&6; }
31881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31882 $as_echo "no" >&6; }
31887 if test "x$TARGET_OBJCONV" = x
; then
31888 as_fn_error $?
"objconv not found which is required when building with apple compiler" "$LINENO" 5
31890 TARGET_IMG_LDSCRIPT
=
31891 TARGET_IMG_CFLAGS
="-static"
31892 TARGET_IMG_LDFLAGS
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
31893 TARGET_IMG_LDFLAGS_AC
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
31894 TARGET_IMG_BASE_LDOPT
="-Wl,-image_base"
31895 TARGET_LDFLAGS_OLDMAGIC
=""
31896 elif test x
$grub_cv_target_cc_link_format = x-mi386pe ||
test x
$grub_cv_target_cc_link_format = x-mi386pep
; then
31897 TARGET_APPLE_LINKER
=0
31898 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
31899 TARGET_IMG_LDSCRIPT
='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
31900 TARGET_IMG_LDFLAGS
="-Wl,-T${TARGET_IMG_LDSCRIPT}"
31901 TARGET_IMG_LDFLAGS_AC
="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
31902 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
31905 TARGET_APPLE_LINKER
=0
31906 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
31907 TARGET_IMG_LDSCRIPT
=
31908 TARGET_IMG_LDFLAGS
='-Wl,-N'
31909 TARGET_IMG_LDFLAGS_AC
='-Wl,-N'
31910 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
31914 CFLAGS
="$TARGET_CFLAGS"
31916 # Check whether --enable-efiemu was given.
31917 if test "${enable_efiemu+set}" = set; then :
31918 enableval
=$enable_efiemu;
31921 if test x
"$enable_efiemu" = xno
; then
31922 efiemu_excuse
="explicitly disabled"
31925 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe ||
test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
31926 efiemu_excuse
="not available on cygwin"
31928 if test x
"$target_cpu" != xi386
; then
31929 efiemu_excuse
="only available on i386"
31931 if test x
"$platform" = xefi
; then
31932 efiemu_excuse
="not available on efi"
31935 if test x
"$efiemu_excuse" = x
; then
31936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
31937 $as_echo_n "checking whether options required for efiemu work... " >&6; }
31938 if ${grub_cv_cc_efiemu+:} false
; then :
31939 $as_echo_n "(cached) " >&6
31942 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
31943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31944 /* end confdefs.h. */
31954 if ac_fn_c_try_compile
"$LINENO"; then :
31955 grub_cv_cc_efiemu
=yes
31957 grub_cv_cc_efiemu
=no
31959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
31963 $as_echo "$grub_cv_cc_efiemu" >&6; }
31964 if test x
$grub_cv_cc_efiemu = xno
; then
31965 efiemu_excuse
="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
31968 if test x
"$efiemu_excuse" = x
; then
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
31970 $as_echo_n "checking for efiemu64 linking format... " >&6; }
31971 if ${grub_cv_target_cc_efiemu64_link_format+:} false
; then :
31972 $as_echo_n "(cached) " >&6
31975 grub_cv_target_cc_efiemu64_link_format
=unknown
31976 for format
in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64
; do
31977 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
31978 LDFLAGS
="-m64 -Wl,$format -nostdlib -static"
31979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31980 /* end confdefs.h. */
31982 asm (".globl start; start:");
31983 asm (".globl _start; _start:");
31984 asm (".globl __start; __start:");
31985 void __main (void);
31986 void __main (void) {}
31996 if ac_fn_c_try_link
"$LINENO"; then :
32001 rm -f core conftest.err conftest.
$ac_objext \
32002 conftest
$ac_exeext conftest.
$ac_ext
32003 if test x
"$flag" = x1
; then
32004 grub_cv_target_cc_efiemu64_link_format
="$format"
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
32010 $as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
32011 if test x
"$grub_cv_target_cc_efiemu64_link_format" = xunknown
; then
32012 efiemu_excuse
="no suitable link format for efiemu64 found"
32014 EFIEMU64_LINK_FORMAT
="-Wl,$grub_cv_target_cc_efiemu64_link_format"
32017 if test x
"$enable_efiemu" = xyes
&& test x
"$efiemu_excuse" != x
; then
32018 as_fn_error $?
"efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
32020 if test x
"$efiemu_excuse" = x
; then
32028 CFLAGS
="$TARGET_CFLAGS"
32033 LDFLAGS
="$TARGET_LDFLAGS"
32035 if test "$target_cpu" = x86_64 ||
test "$target_cpu" = sparc64 ||
test "$target_cpu" = riscv64
; then
32036 # Use large model to support 4G memory
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
32038 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
32039 if ${grub_cv_cc_mcmodel+:} false
; then :
32040 $as_echo_n "(cached) " >&6
32043 CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
32044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32045 /* end confdefs.h. */
32055 if ac_fn_c_try_compile
"$LINENO"; then :
32056 grub_cv_cc_mcmodel
=yes
32058 grub_cv_cc_mcmodel
=no
32060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
32064 $as_echo "$grub_cv_cc_mcmodel" >&6; }
32065 if test "x$grub_cv_cc_mcmodel" = xyes
; then
32066 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
32067 elif test "$target_cpu" = sparc64 ||
test "$target_cpu" = riscv64
; then
32068 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=medany"
32072 if test "$target_cpu"-"$platform" = x86_64-efi
; then
32073 # EFI writes to stack below %rsp, we must not use the red zone
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
32075 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
32076 if ${grub_cv_cc_no_red_zone+:} false
; then :
32077 $as_echo_n "(cached) " >&6
32080 CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
32081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32082 /* end confdefs.h. */
32092 if ac_fn_c_try_compile
"$LINENO"; then :
32093 grub_cv_cc_no_red_zone
=yes
32095 grub_cv_cc_no_red_zone
=no
32097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
32101 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
32102 if test "x$grub_cv_cc_no_red_zone" = xno
; then
32103 as_fn_error $?
"-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
32106 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
32109 if test "x$target_cpu" = xarm
; then
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for options to disable movt and movw" >&5
32111 $as_echo_n "checking for options to disable movt and movw... " >&6; }
32112 if ${grub_cv_target_cc_mno_movt+:} false
; then :
32113 $as_echo_n "(cached) " >&6
32116 grub_cv_target_cc_mno_movt
=no
32117 for cand
in "-mno-movt" \
32118 "-mllvm -arm-use-movt=0" \
32119 "-mword-relocations"; do
32120 if test x
"$grub_cv_target_cc_mno_movt" != xno
; then
32123 CFLAGS
="$TARGET_CFLAGS $cand -Werror"
32124 CPPFLAGS
="$TARGET_CPPFLAGS"
32125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32126 /* end confdefs.h. */
32136 if ac_fn_c_try_compile
"$LINENO"; then :
32137 grub_cv_target_cc_mno_movt
="$cand"
32139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_mno_movt" >&5
32144 $as_echo "$grub_cv_target_cc_mno_movt" >&6; }
32146 if test x
"$grub_cv_target_cc_mno_movt" != xno
; then
32147 # A trick so that clang doesn't see it on link stage
32148 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $grub_cv_target_cc_mno_movt"
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
32151 $as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
32152 if ${grub_cv_cc_mthumb_interwork+:} false
; then :
32153 $as_echo_n "(cached) " >&6
32156 CFLAGS
="$TARGET_CFLAGS -mthumb-interwork -Werror"
32157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32158 /* end confdefs.h. */
32168 if ac_fn_c_try_compile
"$LINENO"; then :
32169 grub_cv_cc_mthumb_interwork
=yes
32171 grub_cv_cc_mthumb_interwork
=no
32173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
32177 $as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
32178 if test "x$grub_cv_cc_mthumb_interwork" = xyes
; then
32179 TARGET_CFLAGS
="$TARGET_CFLAGS -mthumb-interwork"
32180 # Clang defaults to thumb interworking
32181 elif test "x$grub_cv_cc_target_clang" = xno
; then
32182 as_fn_error $?
"your compiler doesn't support -mthumb-interwork" "$LINENO" 5
32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
32187 $as_echo_n "checking whether option -Qn works... " >&6; }
32188 if ${grub_cv_target_cc_qn+:} false
; then :
32189 $as_echo_n "(cached) " >&6
32192 CFLAGS
="$TARGET_CFLAGS -Qn -Qunused-arguments -Werror"
32193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32194 /* end confdefs.h. */
32204 if ac_fn_c_try_compile
"$LINENO"; then :
32205 grub_cv_target_cc_qn
=yes
32207 grub_cv_target_cc_qn
=no
32209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
32212 $as_echo "$grub_cv_target_cc_qn" >&6; }
32213 if test "x$grub_cv_target_cc_qn" = xyes
; then
32214 TARGET_CFLAGS
="$TARGET_CFLAGS -Qn -Qunused-arguments"
32218 # Compiler features.
32221 CFLAGS
="$TARGET_CFLAGS"
32223 # Position independent executable.
32225 # Position independent executable.
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
32228 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
32229 # Is this a reliable test case?
32230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32231 /* end confdefs.h. */
32238 #error NO __PIE__ DEFINED
32243 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
32244 # `ac_compile' like this correct, after all?
32245 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32247 $as_echo "yes" >&6; }
32248 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32253 $as_echo "no" >&6; }
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -no-pie" >&5
32257 $as_echo_n "checking whether linker accepts -no-pie... " >&6; }
32258 if ${grub_cv_cc_ld_no_pie+:} false
; then :
32259 $as_echo_n "(cached) " >&6
32261 save_LDFLAGS
="$LDFLAGS"
32262 LDFLAGS
="$LDFLAGS -no-pie -nostdlib -Werror"
32263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32264 /* end confdefs.h. */
32274 if ac_fn_c_try_link
"$LINENO"; then :
32275 grub_cv_cc_ld_no_pie
=yes
32277 grub_cv_cc_ld_no_pie
=no
32279 rm -f core conftest.err conftest.
$ac_objext \
32280 conftest
$ac_exeext conftest.
$ac_ext
32281 LDFLAGS
="$save_LDFLAGS"
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_ld_no_pie" >&5
32286 $as_echo "$grub_cv_cc_ld_no_pie" >&6; }
32288 if test "x$grub_cv_cc_ld_no_pie" = xyes
; then
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -nopie" >&5
32293 $as_echo_n "checking whether linker accepts -nopie... " >&6; }
32294 if ${grub_cv_cc_ld_no_pie_oneword+:} false
; then :
32295 $as_echo_n "(cached) " >&6
32297 save_LDFLAGS
="$LDFLAGS"
32298 LDFLAGS
="$LDFLAGS -nopie -nostdlib -Werror"
32299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32300 /* end confdefs.h. */
32310 if ac_fn_c_try_link
"$LINENO"; then :
32311 grub_cv_cc_ld_no_pie_oneword
=yes
32313 grub_cv_cc_ld_no_pie_oneword
=no
32315 rm -f core conftest.err conftest.
$ac_objext \
32316 conftest
$ac_exeext conftest.
$ac_ext
32317 LDFLAGS
="$save_LDFLAGS"
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_ld_no_pie_oneword" >&5
32322 $as_echo "$grub_cv_cc_ld_no_pie_oneword" >&6; }
32323 nopie_oneword_possible
=no
32324 if test "x$grub_cv_cc_ld_no_pie_oneword" = xyes
; then
32325 nopie_oneword_possible
=yes
32329 # Position independent executable.
32330 link_nopie_needed
=no
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker needs disabling of PIE to work" >&5
32332 $as_echo_n "checking whether linker needs disabling of PIE to work... " >&6; }
32333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32334 /* end confdefs.h. */
32338 if eval "$ac_compile -Wl,-r,-d -nostdlib -Werror -o conftest.o" 2> /dev
/null
; then
32339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32340 $as_echo "no" >&6; }
32341 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32344 link_nopie_needed
=yes
32345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32346 $as_echo "yes" >&6; }
32349 # Need that, because some distributions ship compilers that include
32350 # `-fPIE' or '-fpie' and '-pie' in the default specs.
32351 if [ x
"$pie_possible" = xyes
]; then
32352 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIE -fno-pie"
32353 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -fno-PIE -fno-pie"
32356 if [ x
"$link_nopie_needed" = xyes
] ||
[ x
"$pie_possible" = xyes
]; then
32357 if [ x
"$nopie_possible" = xyes
]; then
32358 TARGET_LDFLAGS
="$TARGET_LDFLAGS -no-pie"
32360 if [ x
"$nopie_oneword_possible" = xyes
]; then
32361 TARGET_LDFLAGS
="$TARGET_LDFLAGS -nopie"
32365 CFLAGS
="$TARGET_CFLAGS"
32366 LDFLAGS
="$TARGET_LDFLAGS"
32368 # Position independent executable.
32370 # Position independent executable.
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
32373 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
32374 # Is this a reliable test case?
32375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32376 /* end confdefs.h. */
32383 #error NO __PIC__ DEFINED
32388 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
32389 # `ac_compile' like this correct, after all?
32390 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32392 $as_echo "yes" >&6; }
32393 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32398 $as_echo "no" >&6; }
32401 # On most platforms we don't want PIC as it only makes relocations harder
32402 # and code less efficient. On mips we want to have one got table per module
32403 # and reload $gp in every function.
32404 # GCC implements it using symbol __gnu_local_gp in non-PIC as well.
32405 # However with clang we need PIC for this reloading to happen.
32406 # With arm64 we need relocations that are in some way representable in
32407 # PE as we need to support arm64-efi. Without -fPIC clang generates
32408 # movk's which aren't representable.
32409 # Since default varies across dictributions use either -fPIC or -fno-PIC
32411 if ( test x
$target_cpu = xmips ||
test x
$target_cpu = xmipsel ||
test x
$target_cpu = xarm64
) && test "x$grub_cv_cc_target_clang" = xyes
; then
32412 TARGET_CFLAGS
="$TARGET_CFLAGS -fPIC"
32413 elif [ x
"$pic_possible" = xyes
]; then
32414 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIC"
32417 CFLAGS
="$TARGET_CFLAGS"
32419 # Stack smashing protector.
32421 # Stack smashing protector.
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
32424 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
32425 # Is this a reliable test case?
32426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32427 /* end confdefs.h. */
32429 void foo (void) { volatile char a[8]; a[3]; }
32432 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
32433 # `ac_compile' like this correct, after all?
32434 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
32435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32436 $as_echo "yes" >&6; }
32437 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32442 $as_echo "no" >&6; }
32444 # Strong stack smashing protector.
32445 ssp_strong_possible
=yes
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector-strong'" >&5
32447 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector-strong'... " >&6; }
32448 # Is this a reliable test case?
32449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32450 /* end confdefs.h. */
32452 void foo (void) { volatile char a[8]; a[3]; }
32455 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
32456 # `ac_compile' like this correct, after all?
32457 if eval "$ac_compile -S -fstack-protector-strong -o conftest.s" 2> /dev
/null
; then
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32459 $as_echo "yes" >&6; }
32460 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32463 ssp_strong_possible
=no
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465 $as_echo "no" >&6; }
32467 # Global stack smashing protector.
32468 ssp_global_possible
=yes
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-protector-guard=global'" >&5
32470 $as_echo_n "checking whether \`$CC' accepts \`-mstack-protector-guard=global'... " >&6; }
32471 # Is this a reliable test case?
32472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32473 /* end confdefs.h. */
32475 void foo (void) { volatile char a[8]; a[3]; }
32478 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
32479 # `ac_compile' like this correct, after all?
32480 if eval "$ac_compile -S -fstack-protector -mstack-protector-guard=global -o conftest.s" 2> /dev
/null
; then
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32482 $as_echo "yes" >&6; }
32483 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32486 ssp_global_possible
=no
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32488 $as_echo "no" >&6; }
32491 # Check whether --enable-stack-protector was given.
32492 if test "${enable_stack_protector+set}" = set; then :
32493 enableval
=$enable_stack_protector;
32495 enable_stack_protector
=no
32498 if test "x$enable_stack_protector" = xno
; then
32499 if test "x$ssp_possible" = xyes
; then
32500 # Need that, because some distributions ship compilers that include
32501 # `-fstack-protector' in the default specs.
32502 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
32504 elif test "x$platform" != xefi
; then
32505 as_fn_error $?
"--enable-stack-protector is only supported on EFI platforms" "$LINENO" 5
32506 elif test "x$ssp_global_possible" != xyes
; then
32507 as_fn_error $?
"--enable-stack-protector is not supported (compiler doesn't support -mstack-protector-guard=global)" "$LINENO" 5
32509 TARGET_CFLAGS
="$TARGET_CFLAGS -mstack-protector-guard=global"
32510 if test "x$enable_stack_protector" = xyes
; then
32511 if test "x$ssp_possible" != xyes
; then
32512 as_fn_error $?
"--enable-stack-protector is not supported (compiler doesn't support -fstack-protector)" "$LINENO" 5
32514 TARGET_CFLAGS
="$TARGET_CFLAGS -fstack-protector"
32515 elif test "x$enable_stack_protector" = xstrong
; then
32516 if test "x$ssp_strong_possible" != xyes
; then
32517 as_fn_error $?
"--enable-stack-protector=strong is not supported (compiler doesn't support -fstack-protector-strong)" "$LINENO" 5
32519 TARGET_CFLAGS
="$TARGET_CFLAGS -fstack-protector-strong"
32521 # Note, -fstack-protector-all requires that the protector is disabled for
32522 # functions that appear in the call stack when the canary is initialized.
32523 as_fn_error $?
"invalid value $enable_stack_protector for --enable-stack-protector" "$LINENO" 5
32525 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -DGRUB_STACK_PROTECTOR=1"
32528 CFLAGS
="$TARGET_CFLAGS"
32531 # Smashing stack arg probe.
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
32534 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
32535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32536 /* end confdefs.h. */
32538 void foo (void) { volatile char a[8]; a[3]; }
32541 if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev
/null
; then
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32543 $as_echo "yes" >&6; }
32544 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
32548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32549 $as_echo "no" >&6; }
32552 # Cygwin's GCC uses alloca() to probe the stackframe on static
32553 # stack allocations above some threshold.
32554 if test x
"$sap_possible" = xyes
; then
32555 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
32558 CFLAGS
="$TARGET_CFLAGS"
32560 # -mno-unaligned-access -mstrict-align
32561 if test "$target_cpu" = arm
; then
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
32563 $as_echo_n "checking for compile options to get strict alignment... " >&6; }
32564 if ${grub_cv_target_cc_strict_align+:} false
; then :
32565 $as_echo_n "(cached) " >&6
32568 grub_cv_target_cc_strict_align
=
32569 for arg
in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
32570 CFLAGS
="$TARGET_CFLAGS $arg -Werror"
32571 LDFLAGS
="$TARGET_LDFLAGS"
32572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32573 /* end confdefs.h. */
32583 if ac_fn_c_try_compile
"$LINENO"; then :
32588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32589 if test x
"$flag" = x1
; then
32590 grub_cv_target_cc_strict_align
="$arg"
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
32596 $as_echo "$grub_cv_target_cc_strict_align" >&6; }
32598 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
32599 if test x
"$grub_cv_target_cc_strict_align" = x
"-Xclang -mstrict-align"; then
32600 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Qunused-arguments"
32602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
32603 $as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
32604 if ${grub_cv_cc_target_emits_unaligned+:} false
; then :
32605 $as_echo_n "(cached) " >&6
32607 CFLAGS
="$TARGET_CFLAGS"
32608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32609 /* end confdefs.h. */
32615 #ifdef __ARM_FEATURE_UNALIGNED
32623 if ac_fn_c_try_compile
"$LINENO"; then :
32624 grub_cv_cc_target_emits_unaligned
=no
32626 grub_cv_cc_target_emits_unaligned
=yes
32628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
32631 $as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
32632 if test x
$grub_cv_cc_target_emits_unaligned = xyes
; then
32633 as_fn_error $?
"compiler generates unaligned accesses" "$LINENO" 5
32637 # Set them to their new values for the tests below.
32639 if test x
"$platform" = xemu
; then
32640 CFLAGS
="$TARGET_CFLAGS -Wno-error"
32641 elif test "x$TARGET_APPLE_LINKER" = x1
; then
32642 CFLAGS
="$TARGET_CFLAGS -nostdlib -static -Wno-error"
32644 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wno-error"
32646 CPPFLAGS
="$TARGET_CPPFLAGS"
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
32651 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
32652 if ${grub_cv_asm_uscore+:} false
; then :
32653 $as_echo_n "(cached) " >&6
32655 cat > conftest.c
<<\EOF
32665 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
32666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32667 (eval $ac_try) 2>&5
32669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32670 test $ac_status = 0; }; } && test -s conftest.s
; then
32673 as_fn_error $?
"${CC-cc} failed to produce assembly code" "$LINENO" 5
32676 if $EGREP '(^|^_[:alnum])_func' conftest.s
>/dev
/null
2>&1; then
32678 grub_cv_asm_uscore
=yes
32681 grub_cv_asm_uscore
=no
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
32689 $as_echo "$grub_cv_asm_uscore" >&6; }
32691 if test "x$TARGET_APPLE_LINKER" = x0
&& test x
"$platform" != xemu
; then
32692 if test x
$grub_cv_asm_uscore = xyes
; then
32693 DEFSYM
="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
32695 DEFSYM
="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
32697 CFLAGS
="$TARGET_CFLAGS -nostdlib $DEFSYM"
32700 # Check for libgcc symbols
32701 if test x
"$platform" = xemu
; then
32702 for ac_func
in __udivsi3 __umodsi3 __divsi3 __modsi3 __divdi3 __moddi3 __udivdi3 __umoddi3 __ctzdi2 __ctzsi2 __clzdi2 __aeabi_uidiv __aeabi_uidivmod __aeabi_idiv __aeabi_idivmod __aeabi_ulcmp __muldi3 __aeabi_lmul __aeabi_memcpy __aeabi_memcpy4 __aeabi_memcpy8 __aeabi_memclr __aeabi_memclr4 __aeabi_memclr8 __aeabi_memset __aeabi_lasr __aeabi_llsl __aeabi_llsr _restgpr_14_x __ucmpdi2 __ashldi3 __ashrdi3 __lshrdi3 __bswapsi2 __bswapdi2 __bzero __register_frame_info __deregister_frame_info ___chkstk_ms __chkstk_ms
32704 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32705 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
32706 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
32707 cat >>confdefs.h
<<_ACEOF
32708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32716 if test "x$TARGET_APPLE_LINKER" = x1
; then
32717 CFLAGS
="$TARGET_CFLAGS -nostdlib -static"
32719 CFLAGS
="$TARGET_CFLAGS -nostdlib"
32723 # Defined in aclocal.m4.
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
32725 $as_echo_n "checking whether target compiler is working... " >&6; }
32726 if ${grub_cv_prog_target_cc+:} false
; then :
32727 $as_echo_n "(cached) " >&6
32729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32730 /* end confdefs.h. */
32732 asm (".globl start; start:");
32733 void __main (void);
32734 void __main (void) {}
32745 if ac_fn_c_try_link
"$LINENO"; then :
32746 grub_cv_prog_target_cc
=yes
32748 grub_cv_prog_target_cc
=no
32750 rm -f core conftest.err conftest.
$ac_objext \
32751 conftest
$ac_exeext conftest.
$ac_ext
32755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
32756 $as_echo "$grub_cv_prog_target_cc" >&6; }
32758 if test "x$grub_cv_prog_target_cc" = xno
; then
32759 as_fn_error $?
"cannot compile for the target" "$LINENO" 5
32762 if test "x$TARGET_APPLE_LINKER" != x1
; then
32763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
32764 $as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
32765 if ${grub_cv_prog_objcopy_absolute+:} false
; then :
32766 $as_echo_n "(cached) " >&6
32768 cat > conftest.c
<<\EOF
32773 *((int
*) 0x1000) = 2;
32777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
32778 (eval $ac_compile) 2>&5
32780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32781 test $ac_status = 0; } && test -s conftest.o
; then :
32783 as_fn_error $?
"${CC-cc} cannot compile C source code" "$LINENO" 5
32785 grub_cv_prog_objcopy_absolute
=yes
32786 for link_addr
in 0x2000 0x8000 0x7C00; do
32787 if { ac_try
='${CC-cc} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
32788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32789 (eval $ac_try) 2>&5
32791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32792 test $ac_status = 0; }; }; then :
32794 as_fn_error $?
"${CC-cc} cannot link at address $link_addr" "$LINENO" 5
32796 if { ac_try
='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
32797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32798 (eval $ac_try) 2>&5
32800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32801 test $ac_status = 0; }; }; then :
32803 as_fn_error $?
"${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
32805 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
32806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32807 (eval $ac_try) 2>&5
32809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32810 test $ac_status = 0; }; }; then
32811 mv -f conftest conftest.old
32813 grub_cv_prog_objcopy_absolute
=no
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
32821 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
32823 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
32824 as_fn_error $?
"GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
32829 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
32830 if ${grub_cv_prog_ld_build_id_none+:} false
; then :
32831 $as_echo_n "(cached) " >&6
32833 save_LDFLAGS
="$LDFLAGS"
32834 LDFLAGS
="$LDFLAGS -Wl,--build-id=none"
32835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32836 /* end confdefs.h. */
32846 if ac_fn_c_try_link
"$LINENO"; then :
32847 grub_cv_prog_ld_build_id_none
=yes
32849 grub_cv_prog_ld_build_id_none
=no
32851 rm -f core conftest.err conftest.
$ac_objext \
32852 conftest
$ac_exeext conftest.
$ac_ext
32853 LDFLAGS
="$save_LDFLAGS"
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
32858 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
32860 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
32861 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
32864 if test "x$target_cpu" = xi386
; then
32865 if test "$platform" != emu
&& test "x$TARGET_APPLE_LINKER" != x1
; then
32866 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
32867 # Check symbols provided by linker script.
32868 CFLAGS
="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
32872 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
32873 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false
; then :
32874 $as_echo_n "(cached) " >&6
32876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32877 /* end confdefs.h. */
32879 asm (".globl start; start:");
32880 void __main (void);
32881 void __main (void) {}
32887 asm ("incl __bss_start")
32892 if ac_fn_c_try_link
"$LINENO"; then :
32893 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
32895 grub_cv_check_uscore_uscore_bss_start_symbol
=no
32897 rm -f core conftest.err conftest.
$ac_objext \
32898 conftest
$ac_exeext conftest.
$ac_ext
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
32903 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
32906 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
32907 if ${grub_cv_check_edata_symbol+:} false
; then :
32908 $as_echo_n "(cached) " >&6
32910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32911 /* end confdefs.h. */
32913 asm (".globl start; start:");
32914 void __main (void);
32915 void __main (void) {}
32925 if ac_fn_c_try_link
"$LINENO"; then :
32926 grub_cv_check_edata_symbol
=yes
32928 grub_cv_check_edata_symbol
=no
32930 rm -f core conftest.err conftest.
$ac_objext \
32931 conftest
$ac_exeext conftest.
$ac_ext
32935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
32936 $as_echo "$grub_cv_check_edata_symbol" >&6; }
32938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
32939 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
32940 if ${grub_cv_check_uscore_edata_symbol+:} false
; then :
32941 $as_echo_n "(cached) " >&6
32943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32944 /* end confdefs.h. */
32946 asm (".globl start; start:");
32947 void __main (void);
32948 void __main (void) {}
32953 asm ("incl _edata")
32958 if ac_fn_c_try_link
"$LINENO"; then :
32959 grub_cv_check_uscore_edata_symbol
=yes
32961 grub_cv_check_uscore_edata_symbol
=no
32963 rm -f core conftest.err conftest.
$ac_objext \
32964 conftest
$ac_exeext conftest.
$ac_ext
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
32969 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
32971 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
32972 BSS_START_SYMBOL
=__bss_start
32973 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
32974 BSS_START_SYMBOL
=edata
32975 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
32976 BSS_START_SYMBOL
=_edata
32978 as_fn_error $?
"none of __bss_start, edata or _edata is defined" "$LINENO" 5
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
32983 $as_echo_n "checking if end is defined by the compiler... " >&6; }
32984 if ${grub_cv_check_end_symbol+:} false
; then :
32985 $as_echo_n "(cached) " >&6
32987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32988 /* end confdefs.h. */
32990 asm (".globl start; start:");
32991 void __main (void);
32992 void __main (void) {}
33002 if ac_fn_c_try_link
"$LINENO"; then :
33003 grub_cv_check_end_symbol
=yes
33005 grub_cv_check_end_symbol
=no
33007 rm -f core conftest.err conftest.
$ac_objext \
33008 conftest
$ac_exeext conftest.
$ac_ext
33012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
33013 $as_echo "$grub_cv_check_end_symbol" >&6; }
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
33016 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
33017 if ${grub_cv_check_uscore_end_symbol+:} false
; then :
33018 $as_echo_n "(cached) " >&6
33020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33021 /* end confdefs.h. */
33023 asm (".globl start; start:");
33024 void __main (void);
33025 void __main (void) {}
33035 if ac_fn_c_try_link
"$LINENO"; then :
33036 grub_cv_check_uscore_end_symbol
=yes
33038 grub_cv_check_uscore_end_symbol
=no
33040 rm -f core conftest.err conftest.
$ac_objext \
33041 conftest
$ac_exeext conftest.
$ac_ext
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
33046 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
33048 if test "x$grub_cv_check_end_symbol" = xyes
; then
33050 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
33053 as_fn_error $?
"neither end nor _end is defined" "$LINENO" 5
33057 CFLAGS
="$TARGET_CFLAGS"
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
33061 $as_echo_n "checking whether nm works... " >&6; }
33062 if ${grub_cv_prog_nm_works+:} false
; then :
33063 $as_echo_n "(cached) " >&6
33066 nm_works_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
33067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33068 /* end confdefs.h. */
33078 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_works_tmp_dir/ef"
33079 if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev
/null
; then
33080 grub_cv_prog_nm_works
=yes
33082 grub_cv_prog_nm_minus_p
=no
33084 rm "$nm_works_tmp_dir/ef"
33085 rmdir "$nm_works_tmp_dir"
33089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
33090 $as_echo "$grub_cv_prog_nm_works" >&6; }
33092 if test "x$grub_cv_prog_nm_works" != xyes
; then
33093 as_fn_error $?
"nm does not work" "$LINENO" 5
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
33097 $as_echo_n "checking whether nm accepts -P... " >&6; }
33098 if ${grub_cv_prog_nm_minus_p+:} false
; then :
33099 $as_echo_n "(cached) " >&6
33102 nm_minus_p_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
33103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33104 /* end confdefs.h. */
33114 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_minus_p_tmp_dir/ef"
33115 if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev
/null
; then
33116 grub_cv_prog_nm_minus_p
=yes
33118 grub_cv_prog_nm_minus_p
=no
33120 rm "$nm_minus_p_tmp_dir/ef"
33121 rmdir "$nm_minus_p_tmp_dir"
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
33126 $as_echo "$grub_cv_prog_nm_minus_p" >&6; }
33128 if test "x$grub_cv_prog_nm_minus_p" = xyes
; then
33129 TARGET_NMFLAGS_MINUS_P
="-P"
33131 TARGET_NMFLAGS_MINUS_P
=
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
33135 $as_echo_n "checking whether nm accepts --defined-only... " >&6; }
33136 if ${grub_cv_prog_nm_defined_only+:} false
; then :
33137 $as_echo_n "(cached) " >&6
33140 nm_defined_only_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
33141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33142 /* end confdefs.h. */
33152 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_defined_only_tmp_dir/ef"
33153 if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev
/null
; then
33154 grub_cv_prog_nm_defined_only
=yes
33156 grub_cv_prog_nm_defined_only
=no
33158 rm "$nm_defined_only_tmp_dir/ef"
33159 rmdir "$nm_defined_only_tmp_dir"
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
33164 $as_echo "$grub_cv_prog_nm_defined_only" >&6; }
33166 if test "x$grub_cv_prog_nm_defined_only" = xyes
; then
33167 TARGET_NMFLAGS_DEFINED_ONLY
=--defined-only
33169 TARGET_NMFLAGS_DEFINED_ONLY
=
33175 if test "$platform" != emu
; then
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
33177 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
33178 if ${grub_cv_cc_isystem+:} false
; then :
33179 $as_echo_n "(cached) " >&6
33182 SAVED_CPPFLAGS
="$CPPFLAGS"
33183 CPPFLAGS
="$TARGET_CPPFLAGS -nostdlib -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
33184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33185 /* end confdefs.h. */
33186 #include <stdarg.h>
33187 #include <stddef.h>
33188 int va_arg_func (int fixed, va_list args);
33197 if ac_fn_c_try_compile
"$LINENO"; then :
33198 grub_cv_cc_isystem
=yes
33200 grub_cv_cc_isystem
=no
33202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33203 CPPFLAGS
="$SAVED_CPPFLAGS"
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
33207 $as_echo "$grub_cv_cc_isystem" >&6; }
33209 if test x
"$grub_cv_cc_isystem" = xyes
; then
33210 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
33214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
33215 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
33216 if ${grub_cv_cc_wtrampolines+:} false
; then :
33217 $as_echo_n "(cached) " >&6
33220 CFLAGS
="$TARGET_CFLAGS -Wtrampolines -Werror"
33221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33222 /* end confdefs.h. */
33223 #include <stdarg.h>
33224 int va_arg_func (int fixed, va_list args);
33233 if ac_fn_c_try_compile
"$LINENO"; then :
33234 grub_cv_cc_wtrampolines
=yes
33236 grub_cv_cc_wtrampolines
=no
33238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
33242 $as_echo "$grub_cv_cc_wtrampolines" >&6; }
33244 if test x
"$grub_cv_cc_wtrampolines" = xyes
; then
33245 TARGET_CFLAGS
="$TARGET_CFLAGS -Wtrampolines"
33248 # Restore the flags.
33250 CFLAGS
="$tmp_CFLAGS"
33251 CPPFLAGS
="$tmp_CPPFLAGS"
33252 LDFLAGS
="$tmp_LDFLAGS"
33256 # Check for options.
33259 # Memory manager debugging.
33260 # Check whether --enable-mm-debug was given.
33261 if test "${enable_mm_debug+set}" = set; then :
33262 enableval
=$enable_mm_debug;
33265 if test x
$enable_mm_debug = xyes
; then
33267 $as_echo "#define MM_DEBUG 1" >>confdefs.h
33271 # Check whether --enable-cache-stats was given.
33272 if test "${enable_cache_stats+set}" = set; then :
33273 enableval
=$enable_cache_stats;
33277 if test x
$enable_cache_stats = xyes
; then
33284 # Check whether --enable-boot-time was given.
33285 if test "${enable_boot_time+set}" = set; then :
33286 enableval
=$enable_boot_time;
33290 if test x
$enable_boot_time = xyes
; then
33297 # Check whether --enable-grub-emu-sdl was given.
33298 if test "${enable_grub_emu_sdl+set}" = set; then :
33299 enableval
=$enable_grub_emu_sdl;
33303 # Check whether --enable-grub-emu-pci was given.
33304 if test "${enable_grub_emu_pci+set}" = set; then :
33305 enableval
=$enable_grub_emu_pci;
33309 if test "$platform" = emu
; then
33311 if test x
"$enable_grub_emu_sdl" = xno
; then
33312 grub_emu_sdl_excuse
="explicitly disabled"
33314 if [ x
"$grub_emu_sdl_excuse" = x
]; then
33315 # Check for libSDL libraries.
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
33317 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
33318 if ${ac_cv_lib_SDL_SDL_Init+:} false
; then :
33319 $as_echo_n "(cached) " >&6
33321 ac_check_lib_save_LIBS
=$LIBS
33323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33324 /* end confdefs.h. */
33326 /* Override any GCC internal prototype to avoid an error.
33327 Use char because int might match the return type of a GCC
33328 builtin and then its argument prototype would still apply. */
33336 return SDL_Init ();
33341 if ac_fn_c_try_link
"$LINENO"; then :
33342 ac_cv_lib_SDL_SDL_Init
=yes
33344 ac_cv_lib_SDL_SDL_Init
=no
33346 rm -f core conftest.err conftest.
$ac_objext \
33347 conftest
$ac_exeext conftest.
$ac_ext
33348 LIBS
=$ac_check_lib_save_LIBS
33350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
33351 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
33352 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes
; then :
33355 grub_emu_sdl_excuse
="libSDL libraries are required to build \`grub-emu' with SDL support"
33361 if [ x
"$grub_emu_sdl_excuse" = x
]; then
33362 # Check for headers.
33363 for ac_header
in SDL
/SDL.h
33365 ac_fn_c_check_header_mongrel
"$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
33366 if test "x$ac_cv_header_SDL_SDL_h" = xyes
; then :
33367 cat >>confdefs.h
<<_ACEOF
33368 #define HAVE_SDL_SDL_H 1
33372 grub_emu_sdl_excuse
="libSDL header file is required to build \`grub-emu' with SDL support"
33379 if test x
"enable_grub_emu_sdl" = xyes
&& test x
"$grub_emu_sdl_excuse" != x
; then
33380 as_fn_error $?
"SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
33382 if test x
"$grub_emu_sdl_excuse" = x
; then
33383 enable_grub_emu_sdl
=yes
33385 enable_grub_emu_sdl
=no
33388 if test x
"$enable_grub_emu_pci" != xyes
; then
33389 grub_emu_pci_excuse
="not enabled"
33392 if [ x
"$grub_emu_pci_excuse" = x
]; then
33393 # Check for libpci libraries.
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
33395 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
33396 if ${ac_cv_lib_pciaccess_pci_system_init+:} false
; then :
33397 $as_echo_n "(cached) " >&6
33399 ac_check_lib_save_LIBS
=$LIBS
33400 LIBS
="-lpciaccess $LIBS"
33401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33402 /* end confdefs.h. */
33404 /* Override any GCC internal prototype to avoid an error.
33405 Use char because int might match the return type of a GCC
33406 builtin and then its argument prototype would still apply. */
33410 char pci_system_init ();
33414 return pci_system_init ();
33419 if ac_fn_c_try_link
"$LINENO"; then :
33420 ac_cv_lib_pciaccess_pci_system_init
=yes
33422 ac_cv_lib_pciaccess_pci_system_init
=no
33424 rm -f core conftest.err conftest.
$ac_objext \
33425 conftest
$ac_exeext conftest.
$ac_ext
33426 LIBS
=$ac_check_lib_save_LIBS
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
33429 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
33430 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes
; then :
33431 LIBPCIACCESS
="-lpciaccess"
33433 grub_emu_pci_excuse
="need libpciaccess library"
33438 if [ x
"$grub_emu_pci_excuse" = x
]; then
33439 # Check for headers.
33440 for ac_header
in pciaccess.h
33442 ac_fn_c_check_header_mongrel
"$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
33443 if test "x$ac_cv_header_pciaccess_h" = xyes
; then :
33444 cat >>confdefs.h
<<_ACEOF
33445 #define HAVE_PCIACCESS_H 1
33449 grub_emu_pci_excuse
="need libpciaccess headers"
33456 if test x
"$grub_emu_pci_excuse" = x
; then
33457 enable_grub_emu_pci
=yes
33460 enable_grub_emu_pci
=no
33468 # Ignore --enable-emu-* if platform is not emu
33469 enable_grub_emu_sdl
=no
33470 enable_grub_emu_pci
=no
33473 # Check whether --enable-grub-mkfont was given.
33474 if test "${enable_grub_mkfont+set}" = set; then :
33475 enableval
=$enable_grub_mkfont;
33478 if test x
"$enable_grub_mkfont" = xno
; then
33479 grub_mkfont_excuse
="explicitly disabled"
33482 unset ac_cv_header_ft2build_h
33484 if test x
"$grub_mkfont_excuse" = x
; then
33485 # Check for freetype libraries.
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
33489 $as_echo_n "checking for FREETYPE... " >&6; }
33491 if test -n "$FREETYPE_CFLAGS"; then
33492 pkg_cv_FREETYPE_CFLAGS
="$FREETYPE_CFLAGS"
33493 elif test -n "$PKG_CONFIG"; then
33494 if test -n "$PKG_CONFIG" && \
33495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
33496 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
33498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33499 test $ac_status = 0; }; then
33500 pkg_cv_FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
33501 test "x$?" != "x0" && pkg_failed
=yes
33508 if test -n "$FREETYPE_LIBS"; then
33509 pkg_cv_FREETYPE_LIBS
="$FREETYPE_LIBS"
33510 elif test -n "$PKG_CONFIG"; then
33511 if test -n "$PKG_CONFIG" && \
33512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
33513 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
33515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33516 test $ac_status = 0; }; then
33517 pkg_cv_FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
33518 test "x$?" != "x0" && pkg_failed
=yes
33528 if test $pkg_failed = yes; then
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33530 $as_echo "no" >&6; }
33532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33533 _pkg_short_errors_supported
=yes
33535 _pkg_short_errors_supported
=no
33537 if test $_pkg_short_errors_supported = yes; then
33538 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
33540 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
33542 # Put the nasty error message in config.log where it belongs
33543 echo "$FREETYPE_PKG_ERRORS" >&5
33545 grub_mkfont_excuse
="need freetype2 library"
33546 elif test $pkg_failed = untried
; then
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33548 $as_echo "no" >&6; }
33549 grub_mkfont_excuse
="need freetype2 library"
33551 FREETYPE_CFLAGS
=$pkg_cv_FREETYPE_CFLAGS
33552 FREETYPE_LIBS
=$pkg_cv_FREETYPE_LIBS
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33554 $as_echo "yes" >&6; }
33556 SAVED_CPPFLAGS
="$CPPFLAGS"
33558 CPPFLAGS
="$CPPFLAGS $FREETYPE_CFLAGS"
33559 LIBS
="$LIBS $FREETYPE_LIBS"
33560 for ac_header
in ft2build.h
33562 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
33563 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
33564 cat >>confdefs.h
<<_ACEOF
33565 #define HAVE_FT2BUILD_H 1
33569 grub_mkfont_excuse
="need freetype2 headers"
33574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33575 /* end confdefs.h. */
33577 /* Override any GCC internal prototype to avoid an error.
33578 Use char because int might match the return type of a GCC
33579 builtin and then its argument prototype would still apply. */
33583 char FT_Load_Glyph ();
33587 return FT_Load_Glyph ();
33592 if ac_fn_c_try_link
"$LINENO"; then :
33595 grub_mkfont_excuse
="freetype2 library unusable"
33597 rm -f core conftest.err conftest.
$ac_objext \
33598 conftest
$ac_exeext conftest.
$ac_ext
33599 CPPFLAGS
="$SAVED_CPPFLAGS"
33605 if test x
"$enable_grub_mkfont" = xyes
&& test x
"$grub_mkfont_excuse" != x
; then
33606 as_fn_error $?
"grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
33608 if test x
"$grub_mkfont_excuse" = x
; then
33609 enable_grub_mkfont
=yes
33611 enable_grub_mkfont
=no
33617 SAVED_CFLAGS
="$CFLAGS"
33618 SAVED_CPPFLAGS
="$CPPFLAGS"
33619 SAVED_LDFLAGS
="$LDFLAGS"
33622 CFLAGS
="$BUILD_CFLAGS"
33623 CPPFLAGS
="$BUILD_CPPFLAGS"
33624 LDFLAGS
="$BUILD_LDFAGS"
33626 unset ac_cv_c_bigendian
33627 unset ac_cv_header_ft2build_h
33629 if ac_fn_c_compute_int
"$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P" ""; then :
33633 if ac_fn_c_compute_int
"$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG" ""; then :
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
33638 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33639 if ${ac_cv_c_bigendian+:} false
; then :
33640 $as_echo_n "(cached) " >&6
33642 ac_cv_c_bigendian
=unknown
33643 # See if we're dealing with a universal compiler.
33644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33645 /* end confdefs.h. */
33646 #ifndef __APPLE_CC__
33647 not a universal capable compiler
33652 if ac_fn_c_try_compile
"$LINENO"; then :
33654 # Check for potential -arch flags. It is not universal unless
33655 # there are at least two -arch flags with different values.
33658 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
33659 if test -n "$ac_prev"; then
33661 i?
86 | x86_64 | ppc | ppc64
)
33662 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
33665 ac_cv_c_bigendian
=universal
33671 elif test "x$ac_word" = "x-arch"; then
33676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33677 if test $ac_cv_c_bigendian = unknown
; then
33678 # See if sys/param.h defines the BYTE_ORDER macro.
33679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33680 /* end confdefs.h. */
33681 #include <sys/types.h>
33682 #include <sys/param.h>
33687 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33688 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33690 bogus endian macros
33697 if ac_fn_c_try_compile
"$LINENO"; then :
33698 # It does; now see whether it defined to BIG_ENDIAN or not.
33699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33700 /* end confdefs.h. */
33701 #include <sys/types.h>
33702 #include <sys/param.h>
33707 #if BYTE_ORDER != BIG_ENDIAN
33715 if ac_fn_c_try_compile
"$LINENO"; then :
33716 ac_cv_c_bigendian
=yes
33718 ac_cv_c_bigendian
=no
33720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33724 if test $ac_cv_c_bigendian = unknown
; then
33725 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33727 /* end confdefs.h. */
33728 #include <limits.h>
33733 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33734 bogus endian macros
33741 if ac_fn_c_try_compile
"$LINENO"; then :
33742 # It does; now see whether it defined to _BIG_ENDIAN or not.
33743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33744 /* end confdefs.h. */
33745 #include <limits.h>
33750 #ifndef _BIG_ENDIAN
33758 if ac_fn_c_try_compile
"$LINENO"; then :
33759 ac_cv_c_bigendian
=yes
33761 ac_cv_c_bigendian
=no
33763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33767 if test $ac_cv_c_bigendian = unknown
; then
33768 # Compile a test program.
33769 if test "$cross_compiling" = yes; then :
33770 # Try to guess by grepping values from an object file.
33771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33772 /* end confdefs.h. */
33773 short int ascii_mm[] =
33774 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33775 short int ascii_ii[] =
33776 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33777 int use_ascii (int i) {
33778 return ascii_mm[i] + ascii_ii[i];
33780 short int ebcdic_ii[] =
33781 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33782 short int ebcdic_mm[] =
33783 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33784 int use_ebcdic (int i) {
33785 return ebcdic_mm[i] + ebcdic_ii[i];
33792 return use_ascii (foo) == use_ebcdic (foo);
33797 if ac_fn_c_try_compile
"$LINENO"; then :
33798 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
33799 ac_cv_c_bigendian
=yes
33801 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
33802 if test "$ac_cv_c_bigendian" = unknown
; then
33803 ac_cv_c_bigendian
=no
33805 # finding both strings is unlikely to happen, but who knows?
33806 ac_cv_c_bigendian
=unknown
33810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33813 /* end confdefs.h. */
33814 $ac_includes_default
33819 /* Are we little or big endian? From Harbison&Steele. */
33823 char c[sizeof (long int)];
33826 return u.c[sizeof (long int) - 1] == 1;
33832 if ac_fn_c_try_run
"$LINENO"; then :
33833 ac_cv_c_bigendian
=no
33835 ac_cv_c_bigendian
=yes
33837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
33838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
33844 $as_echo "$ac_cv_c_bigendian" >&6; }
33845 case $ac_cv_c_bigendian in #(
33847 BUILD_WORDS_BIGENDIAN
=1;; #(
33849 BUILD_WORDS_BIGENDIAN
=0 ;; #(
33851 BUILD_WORDS_BIGENDIAN
=err
33854 BUILD_WORDS_BIGENDIAN
=err
;;
33858 if test x
$BUILD_WORDS_BIGENDIAN = xerr
; then
33859 as_fn_error $?
"couldnt determine build endianness" "$LINENO" 5
33866 if test x
"$grub_build_mkfont_excuse" = x
; then
33867 # Check for freetype libraries.
33868 SAVED_PKG_CONFIG
="$PKG_CONFIG"
33869 test -z "$BUILD_PKG_CONFIG" || PKG_CONFIG
="$BUILD_PKG_CONFIG"
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_FREETYPE" >&5
33873 $as_echo_n "checking for BUILD_FREETYPE... " >&6; }
33875 if test -n "$BUILD_FREETYPE_CFLAGS"; then
33876 pkg_cv_BUILD_FREETYPE_CFLAGS
="$BUILD_FREETYPE_CFLAGS"
33877 elif test -n "$PKG_CONFIG"; then
33878 if test -n "$PKG_CONFIG" && \
33879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
33880 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
33882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33883 test $ac_status = 0; }; then
33884 pkg_cv_BUILD_FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
33885 test "x$?" != "x0" && pkg_failed
=yes
33892 if test -n "$BUILD_FREETYPE_LIBS"; then
33893 pkg_cv_BUILD_FREETYPE_LIBS
="$BUILD_FREETYPE_LIBS"
33894 elif test -n "$PKG_CONFIG"; then
33895 if test -n "$PKG_CONFIG" && \
33896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
33897 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
33899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33900 test $ac_status = 0; }; then
33901 pkg_cv_BUILD_FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
33902 test "x$?" != "x0" && pkg_failed
=yes
33912 if test $pkg_failed = yes; then
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33914 $as_echo "no" >&6; }
33916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33917 _pkg_short_errors_supported
=yes
33919 _pkg_short_errors_supported
=no
33921 if test $_pkg_short_errors_supported = yes; then
33922 BUILD_FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
33924 BUILD_FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
33926 # Put the nasty error message in config.log where it belongs
33927 echo "$BUILD_FREETYPE_PKG_ERRORS" >&5
33929 grub_build_mkfont_excuse
="need freetype2 library"
33930 elif test $pkg_failed = untried
; then
33931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33932 $as_echo "no" >&6; }
33933 grub_build_mkfont_excuse
="need freetype2 library"
33935 BUILD_FREETYPE_CFLAGS
=$pkg_cv_BUILD_FREETYPE_CFLAGS
33936 BUILD_FREETYPE_LIBS
=$pkg_cv_BUILD_FREETYPE_LIBS
33937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33938 $as_echo "yes" >&6; }
33940 SAVED_CPPFLAGS_2
="$CPPFLAGS"
33942 CPPFLAGS
="$CPPFLAGS $BUILD_FREETYPE_CFLAGS"
33943 LIBS
="$LIBS $BUILD_FREETYPE_LIBS"
33944 for ac_header
in ft2build.h
33946 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
33947 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
33948 cat >>confdefs.h
<<_ACEOF
33949 #define HAVE_FT2BUILD_H 1
33953 grub_build_mkfont_excuse
="need freetype2 headers"
33958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33959 /* end confdefs.h. */
33961 /* Override any GCC internal prototype to avoid an error.
33962 Use char because int might match the return type of a GCC
33963 builtin and then its argument prototype would still apply. */
33967 char FT_Load_Glyph ();
33971 return FT_Load_Glyph ();
33976 if ac_fn_c_try_link
"$LINENO"; then :
33979 grub_build_mkfont_excuse
="freetype2 library unusable"
33981 rm -f core conftest.err conftest.
$ac_objext \
33982 conftest
$ac_exeext conftest.
$ac_ext
33984 CPPFLAGS
="$SAVED_CPPFLAGS_2"
33987 PKG_CONFIG
="$SAVED_PKG_CONFIG"
33990 if test x
"$enable_build_grub_mkfont" = xyes
&& test x
"$grub_build_mkfont_excuse" != x
; then
33991 as_fn_error $?
"build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
33993 if test x
"$grub_build_mkfont_excuse" = x
; then
33994 enable_build_grub_mkfont
=yes
33996 enable_build_grub_mkfont
=no
33998 if test x
"$enable_build_grub_mkfont" = xno
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$platform" = xcoreboot
); then
33999 if test x
"$grub_build_mkfont_excuse" = x
; then
34000 as_fn_error $?
"qemu, coreboot and loongson ports need build-time grub-mkfont" "$LINENO" 5
34002 as_fn_error $?
"qemu, coreboot and loongson ports need build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
34008 CFLAGS
="$SAVED_CFLAGS"
34009 CPPFLAGS
="$SAVED_CPPFLAGS"
34010 LDFLAGS
="$SAVED_LDFLAGS"
34017 # Check whether --enable-grub-themes was given.
34018 if test "${enable_grub_themes+set}" = set; then :
34019 enableval
=$enable_grub_themes;
34022 if test x
"$enable_grub_themes" = xno
; then
34023 starfield_excuse
="explicitly disabled"
34026 if test x
"$starfield_excuse" = x
&& test x
"$enable_build_grub_mkfont" = xno
; then
34027 starfield_excuse
="No build-time grub-mkfont"
34030 if test x
"$starfield_excuse" = x
; then
34031 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
34032 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
34033 if test -f "$dir/DejaVuSans.$ext"; then
34034 DJVU_FONT_SOURCE
="$dir/DejaVuSans.$ext"
34040 if test "x$DJVU_FONT_SOURCE" = x
; then
34041 starfield_excuse
="No DejaVu found"
34045 if test x
"$enable_grub_themes" = xyes
&& test x
"$starfield_excuse" != x
; then
34046 as_fn_error $?
"themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
34053 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
34054 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
34055 if test -f "$dir/unifont.$ext"; then
34056 md5
="$(md5sum "$dir/unifont.
$ext"|awk '{ print $1; }')"
34057 # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
34058 if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 ||
test "$md5" = 28f2565c7a41d8d407e2551159385edb ||
test "$md5" = dae5e588461b3b92b87b6ffee734f936 ||
test "$md5" = 4a3d687aa5bb329ed05f4263a1016791
; then
34061 FONT_SOURCE
="$dir/unifont.$ext"
34067 if test x
"$enable_build_grub_mkfont" = xno
; then
34071 if test "x$FONT_SOURCE" = x
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$platform" = xcoreboot
); then
34072 if test x
"$grub_build_mkfont_excuse" = x
; then
34073 as_fn_error $?
"qemu, coreboot and loongson ports need unifont" "$LINENO" 5
34075 as_fn_error $?
"qemu, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
34081 if test x
"$FONT_SOURCE" = x
&& test x
"$DJVU_FONT_SOURCE" = x
&& test x
"$grub_build_mkfont_excuse" = x
; then
34082 grub_build_mkfont_excuse
="no fonts"
34086 # Check whether --enable-grub-mount was given.
34087 if test "${enable_grub_mount+set}" = set; then :
34088 enableval
=$enable_grub_mount;
34091 if test x
"$enable_grub_mount" = xno
; then
34092 grub_mount_excuse
="explicitly disabled"
34095 if test x
"$grub_mount_excuse" = x
; then
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
34097 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
34098 if ${ac_cv_lib_fuse_fuse_main_real+:} false
; then :
34099 $as_echo_n "(cached) " >&6
34101 ac_check_lib_save_LIBS
=$LIBS
34102 LIBS
="-lfuse $LIBS"
34103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34104 /* end confdefs.h. */
34106 /* Override any GCC internal prototype to avoid an error.
34107 Use char because int might match the return type of a GCC
34108 builtin and then its argument prototype would still apply. */
34112 char fuse_main_real ();
34116 return fuse_main_real ();
34121 if ac_fn_c_try_link
"$LINENO"; then :
34122 ac_cv_lib_fuse_fuse_main_real
=yes
34124 ac_cv_lib_fuse_fuse_main_real
=no
34126 rm -f core conftest.err conftest.
$ac_objext \
34127 conftest
$ac_exeext conftest.
$ac_ext
34128 LIBS
=$ac_check_lib_save_LIBS
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
34131 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
34132 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes
; then :
34133 cat >>confdefs.h
<<_ACEOF
34134 #define HAVE_LIBFUSE 1
34137 LIBS
="-lfuse $LIBS"
34140 grub_mount_excuse
="need FUSE library"
34145 if test x
"$grub_mount_excuse" = x
; then
34146 # Check for fuse headers.
34147 SAVED_CPPFLAGS
="$CPPFLAGS"
34148 CPPFLAGS
="$CPPFLAGS -DFUSE_USE_VERSION=26"
34149 for ac_header
in fuse
/fuse.h
34151 ac_fn_c_check_header_mongrel
"$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
34152 if test "x$ac_cv_header_fuse_fuse_h" = xyes
; then :
34153 cat >>confdefs.h
<<_ACEOF
34154 #define HAVE_FUSE_FUSE_H 1
34158 grub_mount_excuse
="need FUSE headers"
34163 CPPFLAGS
="$SAVED_CPPFLAGS"
34166 if test x
"$enable_grub_mount" = xyes
&& test x
"$grub_mount_excuse" != x
; then
34167 as_fn_error $?
"grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
34169 if test x
"$grub_mount_excuse" = x
; then
34170 enable_grub_mount
=yes
34172 enable_grub_mount
=no
34176 # Check whether --enable-device-mapper was given.
34177 if test "${enable_device_mapper+set}" = set; then :
34178 enableval
=$enable_device_mapper;
34181 if test x
"$enable_device_mapper" = xno
; then
34182 device_mapper_excuse
="explicitly disabled"
34185 if test x
"$device_mapper_excuse" = x
; then
34186 # Check for device-mapper header.
34187 ac_fn_c_check_header_mongrel
"$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
34188 if test "x$ac_cv_header_libdevmapper_h" = xyes
; then :
34191 device_mapper_excuse
="need libdevmapper header"
34197 if test x
"$device_mapper_excuse" = x
; then
34198 # Check for device-mapper library.
34199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
34200 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
34201 if ${ac_cv_lib_devmapper_dm_task_create+:} false
; then :
34202 $as_echo_n "(cached) " >&6
34204 ac_check_lib_save_LIBS
=$LIBS
34205 LIBS
="-ldevmapper $LIBS"
34206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34207 /* end confdefs.h. */
34209 /* Override any GCC internal prototype to avoid an error.
34210 Use char because int might match the return type of a GCC
34211 builtin and then its argument prototype would still apply. */
34215 char dm_task_create ();
34219 return dm_task_create ();
34224 if ac_fn_c_try_link
"$LINENO"; then :
34225 ac_cv_lib_devmapper_dm_task_create
=yes
34227 ac_cv_lib_devmapper_dm_task_create
=no
34229 rm -f core conftest.err conftest.
$ac_objext \
34230 conftest
$ac_exeext conftest.
$ac_ext
34231 LIBS
=$ac_check_lib_save_LIBS
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
34234 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
34235 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes
; then :
34236 cat >>confdefs.h
<<_ACEOF
34237 #define HAVE_LIBDEVMAPPER 1
34240 LIBS
="-ldevmapper $LIBS"
34243 device_mapper_excuse
="need devmapper library"
34248 if test x
"$device_mapper_excuse" = x
; then
34249 # Check for device-mapper library.
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
34251 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
34252 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false
; then :
34253 $as_echo_n "(cached) " >&6
34255 ac_check_lib_save_LIBS
=$LIBS
34256 LIBS
="-ldevmapper $LIBS"
34257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34258 /* end confdefs.h. */
34260 /* Override any GCC internal prototype to avoid an error.
34261 Use char because int might match the return type of a GCC
34262 builtin and then its argument prototype would still apply. */
34266 char dm_log_with_errno_init ();
34270 return dm_log_with_errno_init ();
34275 if ac_fn_c_try_link
"$LINENO"; then :
34276 ac_cv_lib_devmapper_dm_log_with_errno_init
=yes
34278 ac_cv_lib_devmapper_dm_log_with_errno_init
=no
34280 rm -f core conftest.err conftest.
$ac_objext \
34281 conftest
$ac_exeext conftest.
$ac_ext
34282 LIBS
=$ac_check_lib_save_LIBS
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
34285 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
34286 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes
; then :
34287 cat >>confdefs.h
<<_ACEOF
34288 #define HAVE_LIBDEVMAPPER 1
34291 LIBS
="-ldevmapper $LIBS"
34294 device_mapper_excuse
="need devmapper library"
34299 if test x
"$device_mapper_excuse" = x
; then
34300 LIBDEVMAPPER
="-ldevmapper"
34302 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
34309 if test x
$host_kernel = xkfreebsd
; then
34310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
34311 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
34312 if ${ac_cv_lib_geom_geom_gettree+:} false
; then :
34313 $as_echo_n "(cached) " >&6
34315 ac_check_lib_save_LIBS
=$LIBS
34316 LIBS
="-lgeom $LIBS"
34317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34318 /* end confdefs.h. */
34320 /* Override any GCC internal prototype to avoid an error.
34321 Use char because int might match the return type of a GCC
34322 builtin and then its argument prototype would still apply. */
34326 char geom_gettree ();
34330 return geom_gettree ();
34335 if ac_fn_c_try_link
"$LINENO"; then :
34336 ac_cv_lib_geom_geom_gettree
=yes
34338 ac_cv_lib_geom_geom_gettree
=no
34340 rm -f core conftest.err conftest.
$ac_objext \
34341 conftest
$ac_exeext conftest.
$ac_ext
34342 LIBS
=$ac_check_lib_save_LIBS
34344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
34345 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
34346 if test "x$ac_cv_lib_geom_geom_gettree" = xyes
; then :
34347 cat >>confdefs.h
<<_ACEOF
34348 #define HAVE_LIBGEOM 1
34351 LIBS
="-lgeom $LIBS"
34354 as_fn_error $?
"Your platform requires libgeom" "$LINENO" 5
34362 # Check whether --enable-liblzma was given.
34363 if test "${enable_liblzma+set}" = set; then :
34364 enableval
=$enable_liblzma;
34367 if test x
"$enable_liblzma" = xno
; then
34368 liblzma_excuse
="explicitly disabled"
34371 if test x
"$liblzma_excuse" = x
; then
34372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
34373 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
34374 if ${ac_cv_lib_lzma_lzma_code+:} false
; then :
34375 $as_echo_n "(cached) " >&6
34377 ac_check_lib_save_LIBS
=$LIBS
34378 LIBS
="-llzma $LIBS"
34379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34380 /* end confdefs.h. */
34382 /* Override any GCC internal prototype to avoid an error.
34383 Use char because int might match the return type of a GCC
34384 builtin and then its argument prototype would still apply. */
34392 return lzma_code ();
34397 if ac_fn_c_try_link
"$LINENO"; then :
34398 ac_cv_lib_lzma_lzma_code
=yes
34400 ac_cv_lib_lzma_lzma_code
=no
34402 rm -f core conftest.err conftest.
$ac_objext \
34403 conftest
$ac_exeext conftest.
$ac_ext
34404 LIBS
=$ac_check_lib_save_LIBS
34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
34407 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
34408 if test "x$ac_cv_lib_lzma_lzma_code" = xyes
; then :
34409 cat >>confdefs.h
<<_ACEOF
34410 #define HAVE_LIBLZMA 1
34413 LIBS
="-llzma $LIBS"
34416 liblzma_excuse
="need lzma library"
34420 if test x
"$liblzma_excuse" = x
; then
34421 ac_fn_c_check_header_mongrel
"$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
34422 if test "x$ac_cv_header_lzma_h" = xyes
; then :
34425 liblzma_excuse
="need lzma header"
34431 if test x
"$enable_liblzma" = xyes
&& test x
"$liblzma_excuse" != x
; then
34432 as_fn_error $?
"liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
34436 if test x
"$liblzma_excuse" = x
; then
34439 $as_echo "#define USE_LIBLZMA 1" >>confdefs.h
34445 # Check whether --enable-libzfs was given.
34446 if test "${enable_libzfs+set}" = set; then :
34447 enableval
=$enable_libzfs;
34450 if test x
"$enable_libzfs" = xno
; then
34451 libzfs_excuse
="explicitly disabled"
34454 if test x
"$libzfs_excuse" = x
; then
34455 # Only check for system headers if libzfs support has not been disabled.
34456 for ac_header
in libzfs.h libnvpair.h
34458 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34459 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
34460 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
34461 cat >>confdefs.h
<<_ACEOF
34462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34471 if test x
"$libzfs_excuse" = x
; then
34472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
34473 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
34474 if ${ac_cv_lib_zfs_libzfs_init+:} false
; then :
34475 $as_echo_n "(cached) " >&6
34477 ac_check_lib_save_LIBS
=$LIBS
34479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34480 /* end confdefs.h. */
34482 /* Override any GCC internal prototype to avoid an error.
34483 Use char because int might match the return type of a GCC
34484 builtin and then its argument prototype would still apply. */
34488 char libzfs_init ();
34492 return libzfs_init ();
34497 if ac_fn_c_try_link
"$LINENO"; then :
34498 ac_cv_lib_zfs_libzfs_init
=yes
34500 ac_cv_lib_zfs_libzfs_init
=no
34502 rm -f core conftest.err conftest.
$ac_objext \
34503 conftest
$ac_exeext conftest.
$ac_ext
34504 LIBS
=$ac_check_lib_save_LIBS
34506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
34507 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
34508 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes
; then :
34509 cat >>confdefs.h
<<_ACEOF
34510 #define HAVE_LIBZFS 1
34516 libzfs_excuse
="need zfs library"
34521 if test x
"$libzfs_excuse" = x
; then
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
34523 $as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
34524 if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false
; then :
34525 $as_echo_n "(cached) " >&6
34527 ac_check_lib_save_LIBS
=$LIBS
34528 LIBS
="-lnvpair $LIBS"
34529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34530 /* end confdefs.h. */
34532 /* Override any GCC internal prototype to avoid an error.
34533 Use char because int might match the return type of a GCC
34534 builtin and then its argument prototype would still apply. */
34538 char nvlist_lookup_string ();
34542 return nvlist_lookup_string ();
34547 if ac_fn_c_try_link
"$LINENO"; then :
34548 ac_cv_lib_nvpair_nvlist_lookup_string
=yes
34550 ac_cv_lib_nvpair_nvlist_lookup_string
=no
34552 rm -f core conftest.err conftest.
$ac_objext \
34553 conftest
$ac_exeext conftest.
$ac_ext
34554 LIBS
=$ac_check_lib_save_LIBS
34556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
34557 $as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
34558 if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes
; then :
34559 cat >>confdefs.h
<<_ACEOF
34560 #define HAVE_LIBNVPAIR 1
34563 LIBS
="-lnvpair $LIBS"
34566 libzfs_excuse
="need nvpair library"
34571 if test x
"$enable_libzfs" = xyes
&& test x
"$libzfs_excuse" != x
; then
34572 as_fn_error $?
"libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
34575 if test x
"$libzfs_excuse" = x
; then
34576 # We need both libzfs and libnvpair for a successful build.
34579 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
34581 LIBNVPAIR
="-lnvpair"
34583 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
34593 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then :
34594 GRUB_BOOT_MACHINE_LINK_ADDR
=0xffe00
34604 # Check whether --enable-werror was given.
34605 if test "${enable_werror+set}" = set; then :
34606 enableval
=$enable_werror;
34609 if test x
"$enable_werror" != xno
; then
34610 TARGET_CFLAGS
="$TARGET_CFLAGS -Werror"
34611 HOST_CFLAGS
="$HOST_CFLAGS -Werror"
34614 TARGET_CPP
="$TARGET_CC -E"
34615 TARGET_CCAS
=$TARGET_CC
34617 # Includes which include make-time substitutions. They must come last
34618 # as to avoid executing top_builddir in shell.
34619 HOST_CPPFLAGS
="$HOST_CPPFLAGS -I\$(top_builddir)/include"
34620 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
34621 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
34623 GRUB_TARGET_CPU
="${target_cpu}"
34624 GRUB_PLATFORM
="${platform}"
34654 # Automake conditionals
34657 if test x
$platform != xnone
; then
34658 COND_real_platform_TRUE
=
34659 COND_real_platform_FALSE
='#'
34661 COND_real_platform_TRUE
='#'
34662 COND_real_platform_FALSE
=
34665 if test x
$platform = xemu
; then
34673 if test x
$target_cpu = xi386
-a x
$platform = xpc
; then
34675 COND_i386_pc_FALSE
='#'
34677 COND_i386_pc_TRUE
='#'
34678 COND_i386_pc_FALSE
=
34681 if test x
$target_cpu = xi386
-a x
$platform = xefi
; then
34682 COND_i386_efi_TRUE
=
34683 COND_i386_efi_FALSE
='#'
34685 COND_i386_efi_TRUE
='#'
34686 COND_i386_efi_FALSE
=
34689 if test x
$target_cpu = xia64
-a x
$platform = xefi
; then
34690 COND_ia64_efi_TRUE
=
34691 COND_ia64_efi_FALSE
='#'
34693 COND_ia64_efi_TRUE
='#'
34694 COND_ia64_efi_FALSE
=
34697 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then
34698 COND_i386_qemu_TRUE
=
34699 COND_i386_qemu_FALSE
='#'
34701 COND_i386_qemu_TRUE
='#'
34702 COND_i386_qemu_FALSE
=
34705 if test x
$target_cpu = xi386
-a x
$platform = xieee1275
; then
34706 COND_i386_ieee1275_TRUE
=
34707 COND_i386_ieee1275_FALSE
='#'
34709 COND_i386_ieee1275_TRUE
='#'
34710 COND_i386_ieee1275_FALSE
=
34713 if test x
$target_cpu = xi386
-a x
$platform = xcoreboot
; then
34714 COND_i386_coreboot_TRUE
=
34715 COND_i386_coreboot_FALSE
='#'
34717 COND_i386_coreboot_TRUE
='#'
34718 COND_i386_coreboot_FALSE
=
34721 if test x
$target_cpu = xi386
-a x
$platform = xmultiboot
; then
34722 COND_i386_multiboot_TRUE
=
34723 COND_i386_multiboot_FALSE
='#'
34725 COND_i386_multiboot_TRUE
='#'
34726 COND_i386_multiboot_FALSE
=
34729 if test x
$target_cpu = xx86_64
-a x
$platform = xefi
; then
34730 COND_x86_64_efi_TRUE
=
34731 COND_x86_64_efi_FALSE
='#'
34733 COND_x86_64_efi_TRUE
='#'
34734 COND_x86_64_efi_FALSE
=
34737 if test x
$target_cpu = xi386
-a x
$platform = xxen
; then
34738 COND_i386_xen_TRUE
=
34739 COND_i386_xen_FALSE
='#'
34741 COND_i386_xen_TRUE
='#'
34742 COND_i386_xen_FALSE
=
34745 if test x
$target_cpu = xi386
-a x
$platform = xxen_pvh
; then
34746 COND_i386_xen_pvh_TRUE
=
34747 COND_i386_xen_pvh_FALSE
='#'
34749 COND_i386_xen_pvh_TRUE
='#'
34750 COND_i386_xen_pvh_FALSE
=
34753 if test x
$target_cpu = xx86_64
-a x
$platform = xxen
; then
34754 COND_x86_64_xen_TRUE
=
34755 COND_x86_64_xen_FALSE
='#'
34757 COND_x86_64_xen_TRUE
='#'
34758 COND_x86_64_xen_FALSE
=
34761 if test x
$target_cpu = xmipsel
-a x
$platform = xloongson
; then
34762 COND_mips_loongson_TRUE
=
34763 COND_mips_loongson_FALSE
='#'
34765 COND_mips_loongson_TRUE
='#'
34766 COND_mips_loongson_FALSE
=
34769 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xqemu_mips
; then
34770 COND_mips_qemu_mips_TRUE
=
34771 COND_mips_qemu_mips_FALSE
='#'
34773 COND_mips_qemu_mips_TRUE
='#'
34774 COND_mips_qemu_mips_FALSE
=
34777 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xarc
; then
34778 COND_mips_arc_TRUE
=
34779 COND_mips_arc_FALSE
='#'
34781 COND_mips_arc_TRUE
='#'
34782 COND_mips_arc_FALSE
=
34785 if test x
$target_cpu = xsparc64
-a x
$platform = xieee1275
; then
34786 COND_sparc64_ieee1275_TRUE
=
34787 COND_sparc64_ieee1275_FALSE
='#'
34789 COND_sparc64_ieee1275_TRUE
='#'
34790 COND_sparc64_ieee1275_FALSE
=
34793 if test x
$target_cpu = xsparc64
-a x
$platform = xemu
; then
34794 COND_sparc64_emu_TRUE
=
34795 COND_sparc64_emu_FALSE
='#'
34797 COND_sparc64_emu_TRUE
='#'
34798 COND_sparc64_emu_FALSE
=
34801 if test x
$target_cpu = xpowerpc
-a x
$platform = xieee1275
; then
34802 COND_powerpc_ieee1275_TRUE
=
34803 COND_powerpc_ieee1275_FALSE
='#'
34805 COND_powerpc_ieee1275_TRUE
='#'
34806 COND_powerpc_ieee1275_FALSE
=
34809 if test x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
; then
34811 COND_mips_FALSE
='#'
34817 if test x
$target_cpu = xmipsel
; then
34819 COND_mipsel_FALSE
='#'
34821 COND_mipsel_TRUE
='#'
34825 if test x
$target_cpu = xmips
; then
34827 COND_mipseb_FALSE
='#'
34829 COND_mipseb_TRUE
='#'
34833 if test x
$target_cpu = xarm
; then
34841 if test x
$target_cpu = xarm
-a x
$platform = xuboot
; then
34842 COND_arm_uboot_TRUE
=
34843 COND_arm_uboot_FALSE
='#'
34845 COND_arm_uboot_TRUE
='#'
34846 COND_arm_uboot_FALSE
=
34849 if test x
$target_cpu = xarm
-a x
$platform = xcoreboot
; then
34850 COND_arm_coreboot_TRUE
=
34851 COND_arm_coreboot_FALSE
='#'
34853 COND_arm_coreboot_TRUE
='#'
34854 COND_arm_coreboot_FALSE
=
34857 if test x
$target_cpu = xarm
-a x
$platform = xefi
; then
34859 COND_arm_efi_FALSE
='#'
34861 COND_arm_efi_TRUE
='#'
34862 COND_arm_efi_FALSE
=
34865 if test x
$target_cpu = xarm64
; then
34867 COND_arm64_FALSE
='#'
34869 COND_arm64_TRUE
='#'
34873 if test x
$target_cpu = xarm64
-a x
$platform = xefi
; then
34874 COND_arm64_efi_TRUE
=
34875 COND_arm64_efi_FALSE
='#'
34877 COND_arm64_efi_TRUE
='#'
34878 COND_arm64_efi_FALSE
=
34881 if test x
$target_cpu = xriscv32
; then
34883 COND_riscv32_FALSE
='#'
34885 COND_riscv32_TRUE
='#'
34886 COND_riscv32_FALSE
=
34889 if test x
$target_cpu = xriscv64
; then
34891 COND_riscv64_FALSE
='#'
34893 COND_riscv64_TRUE
='#'
34894 COND_riscv64_FALSE
=
34897 if test x
$target_cpu = xriscv32
-a x
$platform = xefi
; then
34898 COND_riscv32_efi_TRUE
=
34899 COND_riscv32_efi_FALSE
='#'
34901 COND_riscv32_efi_TRUE
='#'
34902 COND_riscv32_efi_FALSE
=
34905 if test x
$target_cpu = xriscv64
-a x
$platform = xefi
; then
34906 COND_riscv64_efi_TRUE
=
34907 COND_riscv64_efi_FALSE
='#'
34909 COND_riscv64_efi_TRUE
='#'
34910 COND_riscv64_efi_FALSE
=
34914 if test x
$host_kernel = xhurd
; then
34915 COND_HOST_HURD_TRUE
=
34916 COND_HOST_HURD_FALSE
='#'
34918 COND_HOST_HURD_TRUE
='#'
34919 COND_HOST_HURD_FALSE
=
34922 if test x
$host_kernel = xlinux
; then
34923 COND_HOST_LINUX_TRUE
=
34924 COND_HOST_LINUX_FALSE
='#'
34926 COND_HOST_LINUX_TRUE
='#'
34927 COND_HOST_LINUX_FALSE
=
34930 if test x
$host_kernel = xnetbsd
; then
34931 COND_HOST_NETBSD_TRUE
=
34932 COND_HOST_NETBSD_FALSE
='#'
34934 COND_HOST_NETBSD_TRUE
='#'
34935 COND_HOST_NETBSD_FALSE
=
34938 if test x
$host_kernel = xwindows
; then
34939 COND_HOST_WINDOWS_TRUE
=
34940 COND_HOST_WINDOWS_FALSE
='#'
34942 COND_HOST_WINDOWS_TRUE
='#'
34943 COND_HOST_WINDOWS_FALSE
=
34946 if test x
$host_kernel = xkfreebsd
; then
34947 COND_HOST_KFREEBSD_TRUE
=
34948 COND_HOST_KFREEBSD_FALSE
='#'
34950 COND_HOST_KFREEBSD_TRUE
='#'
34951 COND_HOST_KFREEBSD_FALSE
=
34954 if test x
$host_kernel = xxnu
; then
34955 COND_HOST_XNU_TRUE
=
34956 COND_HOST_XNU_FALSE
='#'
34958 COND_HOST_XNU_TRUE
='#'
34959 COND_HOST_XNU_FALSE
=
34962 if test x
$host_kernel = xillumos
; then
34963 COND_HOST_ILLUMOS_TRUE
=
34964 COND_HOST_ILLUMOS_FALSE
='#'
34966 COND_HOST_ILLUMOS_TRUE
='#'
34967 COND_HOST_ILLUMOS_FALSE
=
34971 if test x
$cross_compiling = xno
-a x
$HELP2MAN != x
; then
34972 COND_MAN_PAGES_TRUE
=
34973 COND_MAN_PAGES_FALSE
='#'
34975 COND_MAN_PAGES_TRUE
='#'
34976 COND_MAN_PAGES_FALSE
=
34979 if test x
$enable_grub_emu_sdl = xyes
; then
34980 COND_GRUB_EMU_SDL_TRUE
=
34981 COND_GRUB_EMU_SDL_FALSE
='#'
34983 COND_GRUB_EMU_SDL_TRUE
='#'
34984 COND_GRUB_EMU_SDL_FALSE
=
34987 if test x
$enable_grub_emu_pci = xyes
; then
34988 COND_GRUB_EMU_PCI_TRUE
=
34989 COND_GRUB_EMU_PCI_FALSE
='#'
34991 COND_GRUB_EMU_PCI_TRUE
='#'
34992 COND_GRUB_EMU_PCI_FALSE
=
34995 if test x
$enable_grub_mkfont = xyes
; then
34996 COND_GRUB_MKFONT_TRUE
=
34997 COND_GRUB_MKFONT_FALSE
='#'
34999 COND_GRUB_MKFONT_TRUE
='#'
35000 COND_GRUB_MKFONT_FALSE
=
35003 if test x
$enable_grub_mount = xyes
; then
35004 COND_GRUB_MOUNT_TRUE
=
35005 COND_GRUB_MOUNT_FALSE
='#'
35007 COND_GRUB_MOUNT_TRUE
='#'
35008 COND_GRUB_MOUNT_FALSE
=
35011 if test x
$FONT_SOURCE != x
; then
35012 COND_HAVE_FONT_SOURCE_TRUE
=
35013 COND_HAVE_FONT_SOURCE_FALSE
='#'
35015 COND_HAVE_FONT_SOURCE_TRUE
='#'
35016 COND_HAVE_FONT_SOURCE_FALSE
=
35019 if test x
$FONT_SOURCE != x
; then
35025 if test x
$TARGET_APPLE_LINKER = x1
; then
35026 COND_APPLE_LINKER_TRUE
=
35027 COND_APPLE_LINKER_FALSE
='#'
35029 COND_APPLE_LINKER_TRUE
='#'
35030 COND_APPLE_LINKER_FALSE
=
35033 if test x
$enable_efiemu = xyes
; then
35034 COND_ENABLE_EFIEMU_TRUE
=
35035 COND_ENABLE_EFIEMU_FALSE
='#'
35037 COND_ENABLE_EFIEMU_TRUE
='#'
35038 COND_ENABLE_EFIEMU_FALSE
=
35041 if test x
$DISK_CACHE_STATS = x1
; then
35042 COND_ENABLE_CACHE_STATS_TRUE
=
35043 COND_ENABLE_CACHE_STATS_FALSE
='#'
35045 COND_ENABLE_CACHE_STATS_TRUE
='#'
35046 COND_ENABLE_CACHE_STATS_FALSE
=
35049 if test x
$BOOT_TIME_STATS = x1
; then
35050 COND_ENABLE_BOOT_TIME_STATS_TRUE
=
35051 COND_ENABLE_BOOT_TIME_STATS_FALSE
='#'
35053 COND_ENABLE_BOOT_TIME_STATS_TRUE
='#'
35054 COND_ENABLE_BOOT_TIME_STATS_FALSE
=
35058 if test x
$HAVE_CXX = xyes
; then
35059 COND_HAVE_CXX_TRUE
=
35060 COND_HAVE_CXX_FALSE
='#'
35062 COND_HAVE_CXX_TRUE
='#'
35063 COND_HAVE_CXX_FALSE
=
35067 if test x
$HAVE_ASM_USCORE = x1
; then
35068 COND_HAVE_ASM_USCORE_TRUE
=
35069 COND_HAVE_ASM_USCORE_FALSE
='#'
35071 COND_HAVE_ASM_USCORE_TRUE
='#'
35072 COND_HAVE_ASM_USCORE_FALSE
=
35075 if test "x$starfield_excuse" = x
; then
35076 COND_STARFIELD_TRUE
=
35077 COND_STARFIELD_FALSE
='#'
35079 COND_STARFIELD_TRUE
='#'
35080 COND_STARFIELD_FALSE
=
35083 if test "x$have_exec" = xy
; then
35084 COND_HAVE_EXEC_TRUE
=
35085 COND_HAVE_EXEC_FALSE
='#'
35087 COND_HAVE_EXEC_TRUE
='#'
35088 COND_HAVE_EXEC_FALSE
=
35092 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
35093 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
35094 datarootdir
="$(eval echo "$datarootdir")"
35095 grub_libdir
="$(eval echo "$libdir")"
35096 grub_localedir
="$(eval echo "$localedir")"
35097 grub_datadir
="$(eval echo "$datadir")"
35098 grub_sysconfdir
="$(eval echo "$sysconfdir")"
35100 cat >>confdefs.h
<<_ACEOF
35101 #define LOCALEDIR "$grub_localedir"
35105 cat >>confdefs.h
<<_ACEOF
35106 #define GRUB_LIBDIR "$grub_libdir"
35110 cat >>confdefs.h
<<_ACEOF
35111 #define GRUB_DATADIR "$grub_datadir"
35115 cat >>confdefs.h
<<_ACEOF
35116 #define GRUB_SYSCONFDIR "$grub_sysconfdir"
35122 if test "$platform" != none
; then
35123 cpudir
="${target_cpu}"
35124 if test x
${cpudir} = xmipsel
; then
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s can handle directories properly" >&5
35129 $as_echo_n "checking whether ln -s can handle directories properly... " >&6; }
35130 mkdir testdir
2>/dev
/null
35132 [\\/$
]* | ?
:[\\/]* ) reldir
=$srcdir/include
/grub
/util
;;
35133 *) reldir
=..
/$srcdir/include
/grub
/util
;;
35135 if ln -s $reldir testdir
/util
2>/dev
/null
&& rm -f testdir
/util
2>/dev
/null
; then
35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35137 $as_echo "yes" >&6; }
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142 $as_echo "no" >&6; }
35146 if test x
"$link_dir" = xyes
; then
35147 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$cpudir"
35149 if test "$platform" != emu
; then
35150 ac_config_links
="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
35154 mkdir
-p include
/grub
2>/dev
/null
35155 rm -rf include
/grub
/cpu
35156 cp -rp $srcdir/include
/grub
/$cpudir include
/grub
/cpu
2>/dev
/null
35157 if test "$platform" != emu
; then
35158 rm -rf include
/grub
/machine
35159 cp -rp $srcdir/include
/grub
/$cpudir/$platform include
/grub
/machine
2>/dev
/null
35163 # Just enough to stop the compiler failing with -I$(srcdir)/include.
35164 mkdir
-p include
2>/dev
/null
35165 rm -rf include
/grub
/cpu include
/grub
/machine
35168 ac_config_files
="$ac_config_files Makefile"
35170 ac_config_files
="$ac_config_files grub-core/Makefile"
35172 ac_config_files
="$ac_config_files grub-core/lib/gnulib/Makefile"
35174 ac_config_files
="$ac_config_files po/Makefile.in"
35176 ac_config_files
="$ac_config_files docs/Makefile"
35178 ac_config_files
="$ac_config_files util/bash-completion.d/Makefile"
35180 ac_config_files
="$ac_config_files stamp-h"
35182 ac_config_files
="$ac_config_files config.h"
35185 cat >confcache
<<\_ACEOF
35186 # This file is a shell script that caches the results of configure
35187 # tests run on this system so they can be shared between configure
35188 # scripts and configure runs, see configure's option --config-cache.
35189 # It is not useful on other systems. If it contains results you don't
35190 # want to keep, you may remove or edit it.
35192 # config.status only pays attention to the cache file if you give it
35193 # the --recheck option to rerun configure.
35195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35197 # following values.
35201 # The following way of writing the cache mishandles newlines in values,
35202 # but we know of no workaround that is simple, portable, and efficient.
35203 # So, we kill variables containing newlines.
35204 # Ultrix sh set writes to stderr and can't be redirected directly,
35205 # and sets the high bit in the cache file unless we assign to the vars.
35207 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35208 eval ac_val
=\$
$ac_var
35212 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35216 _ | IFS | as_nl
) ;; #(
35217 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
35218 *) { eval $ac_var=; unset $ac_var;} ;;
35224 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35225 *${as_nl}ac_space
=\
*)
35226 # `set' does not quote correctly, so add quotes: double-quote
35227 # substitution turns \\\\ into \\, and sed turns \\ into \.
35230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35233 # `set' quotes correctly as required by POSIX, so do not add quotes.
35234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35247 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35248 if test -w "$cache_file"; then
35249 if test "x$cache_file" != "x/dev/null"; then
35250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35251 $as_echo "$as_me: updating cache $cache_file" >&6;}
35252 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
35253 cat confcache
>"$cache_file"
35255 case $cache_file in #(
35257 mv -f confcache
"$cache_file"$$
&&
35258 mv -f "$cache_file"$$
"$cache_file" ;; #(
35260 mv -f confcache
"$cache_file" ;;
35265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35266 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35271 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35272 # Let make expand exec_prefix.
35273 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35275 DEFS
=-DHAVE_CONFIG_H
35280 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35281 # 1. Remove the extension, and $U if already installed.
35282 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35283 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
35284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35285 # will be set to the directory where LIBOBJS objects are built.
35286 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35287 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
35289 LIBOBJS
=$ac_libobjs
35291 LTLIBOBJS
=$ac_ltlibobjs
35294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35295 $as_echo_n "checking that generated files are newer than configure... " >&6; }
35296 if test -n "$am_sleep_pid"; then
35297 # Hide warnings about reused PIDs.
35298 wait $am_sleep_pid 2>/dev
/null
35300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35301 $as_echo "done" >&6; }
35302 if test -n "$EXEEXT"; then
35304 am__EXEEXT_FALSE
='#'
35306 am__EXEEXT_TRUE
='#'
35310 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35311 as_fn_error $?
"conditional \"AMDEP\" was never defined.
35312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35315 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
35316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35319 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
35320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35323 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
35324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
35327 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
35328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35331 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
35332 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
35333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35335 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
35336 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
35337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35339 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
35340 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
35341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35343 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
35344 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
35345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35347 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
35348 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
35349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35351 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
35352 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
35353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35355 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
35356 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
35357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35359 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
35360 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
35361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35363 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
35364 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
35365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35367 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
35368 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
35369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35371 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
35372 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
35373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
35376 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
35377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
35380 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
35381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
35384 as_fn_error $?
"conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
35385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
35388 as_fn_error $?
"conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
35389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35395 if test -n "$gl_LIBOBJS"; then
35396 # Remove the extension.
35397 sed_drop_objext
='s/\.o$//;s/\.obj$//'
35398 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
35399 gl_libobjs
="$gl_libobjs $i.$ac_objext"
35400 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
35403 gl_LIBOBJS
=$gl_libobjs
35405 gl_LTLIBOBJS
=$gl_ltlibobjs
35411 if test -n "$gltests_LIBOBJS"; then
35412 # Remove the extension.
35413 sed_drop_objext
='s/\.o$//;s/\.obj$//'
35414 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
35415 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
35416 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
35419 gltests_LIBOBJS
=$gltests_libobjs
35421 gltests_LTLIBOBJS
=$gltests_ltlibobjs
35424 if test -z "${COND_real_platform_TRUE}" && test -z "${COND_real_platform_FALSE}"; then
35425 as_fn_error $?
"conditional \"COND_real_platform\" was never defined.
35426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35428 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
35429 as_fn_error $?
"conditional \"COND_emu\" was never defined.
35430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35432 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
35433 as_fn_error $?
"conditional \"COND_i386_pc\" was never defined.
35434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35436 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
35437 as_fn_error $?
"conditional \"COND_i386_efi\" was never defined.
35438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35440 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
35441 as_fn_error $?
"conditional \"COND_ia64_efi\" was never defined.
35442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35444 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
35445 as_fn_error $?
"conditional \"COND_i386_qemu\" was never defined.
35446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35448 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
35449 as_fn_error $?
"conditional \"COND_i386_ieee1275\" was never defined.
35450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35452 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
35453 as_fn_error $?
"conditional \"COND_i386_coreboot\" was never defined.
35454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35456 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
35457 as_fn_error $?
"conditional \"COND_i386_multiboot\" was never defined.
35458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35460 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
35461 as_fn_error $?
"conditional \"COND_x86_64_efi\" was never defined.
35462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35464 if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
35465 as_fn_error $?
"conditional \"COND_i386_xen\" was never defined.
35466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35468 if test -z "${COND_i386_xen_pvh_TRUE}" && test -z "${COND_i386_xen_pvh_FALSE}"; then
35469 as_fn_error $?
"conditional \"COND_i386_xen_pvh\" was never defined.
35470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35472 if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
35473 as_fn_error $?
"conditional \"COND_x86_64_xen\" was never defined.
35474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35476 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
35477 as_fn_error $?
"conditional \"COND_mips_loongson\" was never defined.
35478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35480 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
35481 as_fn_error $?
"conditional \"COND_mips_qemu_mips\" was never defined.
35482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35484 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
35485 as_fn_error $?
"conditional \"COND_mips_arc\" was never defined.
35486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35488 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
35489 as_fn_error $?
"conditional \"COND_sparc64_ieee1275\" was never defined.
35490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35492 if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
35493 as_fn_error $?
"conditional \"COND_sparc64_emu\" was never defined.
35494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35496 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
35497 as_fn_error $?
"conditional \"COND_powerpc_ieee1275\" was never defined.
35498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35500 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
35501 as_fn_error $?
"conditional \"COND_mips\" was never defined.
35502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35504 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
35505 as_fn_error $?
"conditional \"COND_mipsel\" was never defined.
35506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35508 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
35509 as_fn_error $?
"conditional \"COND_mipseb\" was never defined.
35510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35512 if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
35513 as_fn_error $?
"conditional \"COND_arm\" was never defined.
35514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35516 if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
35517 as_fn_error $?
"conditional \"COND_arm_uboot\" was never defined.
35518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35520 if test -z "${COND_arm_coreboot_TRUE}" && test -z "${COND_arm_coreboot_FALSE}"; then
35521 as_fn_error $?
"conditional \"COND_arm_coreboot\" was never defined.
35522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35524 if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
35525 as_fn_error $?
"conditional \"COND_arm_efi\" was never defined.
35526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35528 if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
35529 as_fn_error $?
"conditional \"COND_arm64\" was never defined.
35530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35532 if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
35533 as_fn_error $?
"conditional \"COND_arm64_efi\" was never defined.
35534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35536 if test -z "${COND_riscv32_TRUE}" && test -z "${COND_riscv32_FALSE}"; then
35537 as_fn_error $?
"conditional \"COND_riscv32\" was never defined.
35538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35540 if test -z "${COND_riscv64_TRUE}" && test -z "${COND_riscv64_FALSE}"; then
35541 as_fn_error $?
"conditional \"COND_riscv64\" was never defined.
35542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35544 if test -z "${COND_riscv32_efi_TRUE}" && test -z "${COND_riscv32_efi_FALSE}"; then
35545 as_fn_error $?
"conditional \"COND_riscv32_efi\" was never defined.
35546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35548 if test -z "${COND_riscv64_efi_TRUE}" && test -z "${COND_riscv64_efi_FALSE}"; then
35549 as_fn_error $?
"conditional \"COND_riscv64_efi\" was never defined.
35550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35552 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
35553 as_fn_error $?
"conditional \"COND_HOST_HURD\" was never defined.
35554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35556 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
35557 as_fn_error $?
"conditional \"COND_HOST_LINUX\" was never defined.
35558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35560 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
35561 as_fn_error $?
"conditional \"COND_HOST_NETBSD\" was never defined.
35562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35564 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
35565 as_fn_error $?
"conditional \"COND_HOST_WINDOWS\" was never defined.
35566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35568 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
35569 as_fn_error $?
"conditional \"COND_HOST_KFREEBSD\" was never defined.
35570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35572 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
35573 as_fn_error $?
"conditional \"COND_HOST_XNU\" was never defined.
35574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35576 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
35577 as_fn_error $?
"conditional \"COND_HOST_ILLUMOS\" was never defined.
35578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35580 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
35581 as_fn_error $?
"conditional \"COND_MAN_PAGES\" was never defined.
35582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35584 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
35585 as_fn_error $?
"conditional \"COND_GRUB_EMU_SDL\" was never defined.
35586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35588 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
35589 as_fn_error $?
"conditional \"COND_GRUB_EMU_PCI\" was never defined.
35590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35592 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
35593 as_fn_error $?
"conditional \"COND_GRUB_MKFONT\" was never defined.
35594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35596 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
35597 as_fn_error $?
"conditional \"COND_GRUB_MOUNT\" was never defined.
35598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35600 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
35601 as_fn_error $?
"conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
35602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35604 if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
35605 as_fn_error $?
"conditional \"COND_APPLE_LINKER\" was never defined.
35606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35608 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
35609 as_fn_error $?
"conditional \"COND_ENABLE_EFIEMU\" was never defined.
35610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35612 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
35613 as_fn_error $?
"conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
35614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35616 if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
35617 as_fn_error $?
"conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
35618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35620 if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
35621 as_fn_error $?
"conditional \"COND_HAVE_CXX\" was never defined.
35622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35624 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
35625 as_fn_error $?
"conditional \"COND_HAVE_ASM_USCORE\" was never defined.
35626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35628 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
35629 as_fn_error $?
"conditional \"COND_STARFIELD\" was never defined.
35630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35632 if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
35633 as_fn_error $?
"conditional \"COND_HAVE_EXEC\" was never defined.
35634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35637 : "${CONFIG_STATUS=./config.status}"
35639 ac_clean_files_save
=$ac_clean_files
35640 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35646 # Generated by $as_me.
35647 # Run this file to recreate the current configuration.
35648 # Compiler output produced by configure, useful for debugging
35649 # configure, is in config.log if it exists.
35652 ac_cs_recheck=false
35655 SHELL=\${CONFIG_SHELL-$SHELL}
35658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
35659 ## -------------------- ##
35660 ## M4sh Initialization. ##
35661 ## -------------------- ##
35663 # Be more Bourne compatible
35664 DUALCASE
=1; export DUALCASE
# for MKS sh
35665 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
35668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35669 # is contrary to our usage. Disable this feature.
35670 alias -g '${1+"$@"}'='"$@"'
35671 setopt NO_GLOB_SUBST
35673 case `(set -o) 2>/dev/null` in #(
35685 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35686 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35689 # Prefer a ksh shell builtin over an external printf program on Solaris,
35690 # but without wasting forks for bash or zsh.
35691 if test -z "$BASH_VERSION$ZSH_VERSION" \
35692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35693 as_echo='print
-r --'
35694 as_echo_n='print
-rn --'
35695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35696 as_echo='printf %s
\n'
35697 as_echo_n='printf %s
'
35699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35700 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
35701 as_echo_n='/usr
/ucb
/echo -n'
35703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35704 as_echo_n_body='eval
35708 expr "X$arg" : "X\\(.*\\)$as_nl";
35709 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35711 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
35713 export as_echo_n_body
35714 as_echo_n='sh
-c $as_echo_n_body as_echo
'
35716 export as_echo_body
35717 as_echo='sh
-c $as_echo_body as_echo
'
35720 # The user is always right.
35721 if test "${PATH_SEPARATOR+set}" != set; then
35723 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35724 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35731 # We need space, tab and new line, in precisely that order. Quoting is
35732 # there to prevent editors from complaining about space-tab.
35733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35734 # splitting by setting IFS to empty value.)
35737 # Find who we are. Look in the path if we contain no directory separator.
35740 *[\\/]* ) as_myself=$0 ;;
35741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35742 for as_dir in $PATH
35745 test -z "$as_dir" && as_dir=.
35746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35752 # We did not find ourselves, most probably we were run as `sh COMMAND'
35753 # in which case we are not to be found in the path.
35754 if test "x$as_myself" = x
; then
35757 if test ! -f "$as_myself"; then
35758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35762 # Unset variables that we do not need and which cause bugs (e.g. in
35763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35764 # suppresses any "Segmentation fault" message there. '((' could
35765 # trigger a bug in pdksh 5.2.14.
35766 for as_var
in BASH_ENV ENV MAIL MAILPATH
35767 do eval test x\
${$as_var+set} = xset \
35768 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
35781 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
35784 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35785 # ----------------------------------------
35786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35788 # script with STATUS, using 1 if that was 0.
35791 as_status
=$1; test $as_status -eq 0 && as_status
=1
35793 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
35794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35796 $as_echo "$as_me: error: $2" >&2
35797 as_fn_exit
$as_status
35801 # as_fn_set_status STATUS
35802 # -----------------------
35803 # Set $? to STATUS, without forking.
35804 as_fn_set_status
()
35807 } # as_fn_set_status
35809 # as_fn_exit STATUS
35810 # -----------------
35811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35815 as_fn_set_status
$1
35821 # Portably unset VAR.
35824 { eval $1=; unset $1;}
35826 as_unset
=as_fn_unset
35827 # as_fn_append VAR VALUE
35828 # ----------------------
35829 # Append the text in VALUE to the end of the definition contained in VAR. Take
35830 # advantage of any shell optimizations that allow amortized linear growth over
35831 # repeated appends, instead of the typical quadratic growth present in naive
35833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
35834 eval 'as_fn_append ()
35845 # as_fn_arith ARG...
35846 # ------------------
35847 # Perform arithmetic evaluation on the ARGs, and store the result in the
35848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35849 # must be portable across $(()) and expr.
35850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
35851 eval 'as_fn_arith ()
35858 as_val
=`expr "$@" || test $? -eq 1`
35863 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35864 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35870 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35871 as_basename
=basename
35876 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35882 as_me
=`$as_basename -- "$0" ||
35883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35884 X"$0" : 'X\(//\)$' \| \
35885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35887 sed '/^.*\/\([^/][^/]*\)\/*$/{
35901 # Avoid depending upon Character Ranges.
35902 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35903 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35904 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35905 as_cr_digits
='0123456789'
35906 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35908 ECHO_C
= ECHO_N
= ECHO_T
=
35909 case `echo -n x` in #(((((
35911 case `echo 'xy\c'` in
35912 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35914 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
35921 rm -f conf$$ conf$$.exe conf$$.
file
35922 if test -d conf$$.dir
; then
35923 rm -f conf$$.dir
/conf$$.
file
35926 mkdir conf$$.dir
2>/dev
/null
35928 if (echo >conf$$.
file) 2>/dev
/null
; then
35929 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35931 # ... but there are two gotchas:
35932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35934 # In both cases, we have to default to `cp -pR'.
35935 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35937 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35945 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35946 rmdir conf$$.dir
2>/dev
/null
35951 # Create "$as_dir" as a directory, including parents if necessary.
35956 -*) as_dir
=.
/$as_dir;;
35958 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
35962 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35963 *) as_qdir
=$as_dir;;
35965 as_dirs
="'$as_qdir' $as_dirs"
35966 as_dir
=`$as_dirname -- "$as_dir" ||
35967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35968 X"$as_dir" : 'X\(//\)[^/]' \| \
35969 X"$as_dir" : 'X\(//\)$' \| \
35970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35971 $as_echo X"$as_dir" |
35972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35976 /^X\(\/\/\)[^/].*/{
35989 test -d "$as_dir" && break
35991 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35992 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
35996 if mkdir
-p .
2>/dev
/null
; then
35997 as_mkdir_p
='mkdir -p "$as_dir"'
35999 test -d .
/-p && rmdir .
/-p
36004 # as_fn_executable_p FILE
36005 # -----------------------
36006 # Test if FILE is an executable regular file.
36007 as_fn_executable_p
()
36009 test -f "$1" && test -x "$1"
36010 } # as_fn_executable_p
36011 as_test_x
='test -x'
36012 as_executable_p
=as_fn_executable_p
36014 # Sed expression to map a string onto a valid CPP name.
36015 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36017 # Sed expression to map a string onto a valid variable name.
36018 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36022 ## ----------------------------------- ##
36023 ## Main body of $CONFIG_STATUS script. ##
36024 ## ----------------------------------- ##
36026 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
36028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36029 # Save the log message, to keep $0 and so on meaningful, and to
36030 # report actual input values of CONFIG_FILES etc. instead of their
36031 # values after options handling.
36033 This file was extended by GRUB $as_me 2.06, which was
36034 generated by GNU Autoconf 2.69. Invocation command line was
36036 CONFIG_FILES = $CONFIG_FILES
36037 CONFIG_HEADERS = $CONFIG_HEADERS
36038 CONFIG_LINKS = $CONFIG_LINKS
36039 CONFIG_COMMANDS = $CONFIG_COMMANDS
36042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36047 case $ac_config_files in *"
36048 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
36051 case $ac_config_headers in *"
36052 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
36056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36057 # Files that config.status was made for.
36058 config_files="$ac_config_files"
36059 config_headers="$ac_config_headers"
36060 config_links="$ac_config_links"
36061 config_commands="$ac_config_commands"
36065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36067 \`$as_me' instantiates files and other configuration actions
36068 from templates according to the current configuration. Unless the files
36069 and actions are specified as TAGs, all are instantiated by default.
36071 Usage: $0 [OPTION]... [TAG]...
36073 -h, --help print this help, then exit
36074 -V, --version print version number and configuration settings, then exit
36075 --config print configuration, then exit
36076 -q, --quiet, --silent
36077 do not print progress messages
36078 -d, --debug don't remove temporary files
36079 --recheck update $as_me by reconfiguring in the same conditions
36080 --file=FILE[:TEMPLATE]
36081 instantiate the configuration file FILE
36082 --header=FILE[:TEMPLATE]
36083 instantiate the configuration header FILE
36085 Configuration files:
36088 Configuration headers:
36091 Configuration links:
36094 Configuration commands:
36097 Report bugs to <bug-grub@gnu.org>."
36100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36103 GRUB config.status 2.06
36104 configured by $0, generated by GNU Autoconf 2.69,
36105 with options \\"\$ac_cs_config\\"
36107 Copyright (C) 2012 Free Software Foundation, Inc.
36108 This config.status script is free software; the Free Software Foundation
36109 gives unlimited permission to copy, distribute and modify it."
36116 test -n "\$AWK" || AWK=awk
36119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36120 # The default lists apply if the user does not specify any file.
36126 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
36127 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
36131 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
36143 # Handling of the options.
36144 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
36146 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
36147 $as_echo "$ac_cs_version"; exit ;;
36148 --config |
--confi |
--conf |
--con |
--co |
--c )
36149 $as_echo "$ac_cs_config"; exit ;;
36150 --debug |
--debu |
--deb |
--de |
--d |
-d )
36152 --file |
--fil |
--fi |
--f )
36155 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36156 '') as_fn_error $?
"missing file argument" ;;
36158 as_fn_append CONFIG_FILES
" '$ac_optarg'"
36159 ac_need_defaults
=false
;;
36160 --header |
--heade |
--head |
--hea )
36163 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36165 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
36166 ac_need_defaults
=false
;;
36168 # Conflict between --help and --header
36169 as_fn_error $?
"ambiguous option: \`$1'
36170 Try \`$0 --help' for more information.";;
36171 --help |
--hel |
-h )
36172 $as_echo "$ac_cs_usage"; exit ;;
36173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
36174 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
36177 # This is an error.
36178 -*) as_fn_error $?
"unrecognized option: \`$1'
36179 Try \`$0 --help' for more information." ;;
36181 *) as_fn_append ac_config_targets
" $1"
36182 ac_need_defaults
=false
;;
36188 ac_configure_extra_args
=
36190 if $ac_cs_silent; then
36192 ac_configure_extra_args
="$ac_configure_extra_args --silent"
36196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36197 if \$ac_cs_recheck; then
36198 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36201 CONFIG_SHELL='$SHELL'
36202 export CONFIG_SHELL
36207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36212 ## Running $as_me. ##
36218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36222 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36223 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
36224 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
36225 # from automake < 1.5.
36226 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
36227 # Capture the value of LINGUAS because we need it to compute CATALOGS.
36228 LINGUAS="${LINGUAS-%UNSET%}"
36233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36235 # Handling of arguments.
36236 for ac_config_target
in $ac_config_targets
36238 case $ac_config_target in
36239 "config-util.h") CONFIG_HEADERS
="$CONFIG_HEADERS config-util.h" ;;
36240 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
36241 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
36242 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
36243 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
36244 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
36245 "grub-core/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/Makefile" ;;
36246 "grub-core/lib/gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/lib/gnulib/Makefile" ;;
36247 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
36248 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
36249 "util/bash-completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
36250 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
36251 "config.h") CONFIG_FILES
="$CONFIG_FILES config.h" ;;
36253 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36258 # If the user did not use the arguments to specify the items to instantiate,
36259 # then the envvar interface is used. Set only those that are not.
36260 # We use the long form for the default assignment because of an extremely
36261 # bizarre bug on SunOS 4.1.3.
36262 if $ac_need_defaults; then
36263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
36264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
36265 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
36266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
36269 # Have a temporary directory for convenience. Make it in the build tree
36270 # simply because there is no reason against having it here, and in addition,
36271 # creating and moving files from /tmp can sometimes cause problems.
36272 # Hook for its removal unless debugging.
36273 # Note that there is a small window in which the directory will not be cleaned:
36274 # after its creation but before its name has been assigned to `$tmp'.
36278 trap 'exit_status=$?
36279 : "${ac_tmp:=$tmp}"
36280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36282 trap 'as_fn_exit 1' 1 2 13 15
36284 # Create a (secure) tmp directory for tmp files.
36287 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36291 tmp
=.
/conf$$
-$RANDOM
36292 (umask 077 && mkdir
"$tmp")
36293 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
36296 # Set up the scripts for CONFIG_FILES section.
36297 # No need to generate them if there are no CONFIG_FILES.
36298 # This happens for instance with `./config.status config.h'.
36299 if test -n "$CONFIG_FILES"; then
36302 ac_cr
=`echo X | tr X '\015'`
36303 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36304 # But we know of no other shell where ac_cr would be empty at this
36305 # point, so we can use a bashism as a fallback.
36306 if test "x$ac_cr" = x
; then
36307 eval ac_cr
=\$
\'\\r
\'
36309 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36313 ac_cs_awk_cr
=$ac_cr
36316 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36321 echo "cat >conf$$subs.awk <<_ACEOF" &&
36322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36324 } >conf$$subs.sh ||
36325 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
36326 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36328 for ac_last_try in false false false false false :; do
36329 . ./conf$$subs.sh ||
36330 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
36332 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
36333 if test $ac_delim_n = $ac_delim_num; then
36335 elif $ac_last_try; then
36336 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
36338 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
36341 rm -f conf$$subs.sh
36343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36344 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
36348 s/^/S["/; s
/!.
*/"]=/
36358 s/\(.\{148\}\)..*/\1/
36360 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
36365 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
36372 s/\(.\{148\}\)..*/\1/
36374 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
36378 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
36383 ' <conf$$subs.awk | sed '
36388 ' >>$CONFIG_STATUS || ac_write_fail=1
36389 rm -f conf$$subs.awk
36390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36392 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
36393 for (key in S) S_is_set[key] = 1
36399 nfields = split(line, field, "@
")
36401 len = length(field[1])
36402 for (i = 2; i < nfields; i++) {
36404 keylen = length(key)
36405 if (S_is_set[key]) {
36407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36408 len += length(value) + length(field[++i])
36419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36420 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36421 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
36424 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
36425 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
36428 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36429 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
36430 # trailing colons and then remove the whole line if VPATH becomes empty
36431 # (actually we leave an empty line to preserve line numbers).
36432 if test "x
$srcdir" = x.; then
36433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36452 fi # test -n "$CONFIG_FILES"
36454 # Set up the scripts for CONFIG_HEADERS section.
36455 # No need to generate them if there are no CONFIG_HEADERS.
36456 # This happens for instance with `./config.status Makefile'.
36457 if test -n "$CONFIG_HEADERS"; then
36458 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
36462 # Transform confdefs.h into an awk script `defines.awk', embedded as
36463 # here-document in config.status, that substitutes the proper values into
36464 # config.h.in to produce config.h.
36466 # Create a delimiter string that does not exist in confdefs.h, to ease
36467 # handling of long lines.
36469 for ac_last_try in false false :; do
36470 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
36471 if test -z "$ac_tt"; then
36473 elif $ac_last_try; then
36474 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
36476 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
36480 # For the awk script, D is an array of macro values keyed by name,
36481 # likewise P contains macro parameters if any. Preserve backslash
36482 # newline sequences.
36484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36486 s/.\{148\}/&'"$ac_delim"'/g
36489 s/^[ ]*#[ ]*define[ ][ ]*/ /
36496 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
36498 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
36502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
36503 D["\
1"]=" \
3\\\\\\n
"\\/p
36505 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
36510 s/.\{148\}/&'"$ac_delim"'/g
36515 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
36518 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
36520 ' <confdefs.h | sed '
36521 s/'"$ac_delim"'/"\\\
36522 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36525 for (key in D) D_is_set[key] = 1
36528 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36530 split(line, arg, " ")
36531 if (arg[1] == "#") {
36535 defundef
= substr
(arg
[1], 2)
36538 split(mac1
, mac2
, "(") #)
36540 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
36541 if (D_is_set
[macro
]) {
36542 # Preserve the white space surrounding the "#".
36543 print prefix
"define", macro P
[macro
] D
[macro
]
36546 # Replace #undef with comments. This is necessary, for example,
36547 # in the case of _POSIX_SOURCE, which is predefined and required
36548 # on some systems where configure will not decide to define it.
36549 if (defundef
== "undef") {
36550 print
"/*", prefix defundef
, macro
, "*/"
36558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36559 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
36560 fi # test -n "$CONFIG_HEADERS"
36563 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
36568 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36570 case $ac_mode$ac_tag in
36572 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
36573 :[FH
]-) ac_tag
=-:-;;
36574 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36591 -) ac_f
="$ac_tmp/stdin";;
36592 *) # Look for the file first in the build tree, then in the source tree
36593 # (if the path is not absolute). The absolute path cannot be DOS-style,
36594 # because $ac_f cannot contain `:'.
36598 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36600 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36602 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36603 as_fn_append ac_file_inputs
" '$ac_f'"
36606 # Let's still pretend it is `configure' which instantiates (i.e., don't
36607 # use $as_me), people would be surprised to read:
36608 # /* config.h. Generated by config.status. */
36609 configure_input
='Generated from '`
36610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36612 if test x
"$ac_file" != x-
; then
36613 configure_input
="$ac_file. $configure_input"
36614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36615 $as_echo "$as_me: creating $ac_file" >&6;}
36617 # Neutralize special characters interpreted by sed in replacement strings.
36618 case $configure_input in #(
36619 *\
&* |
*\|
* |
*\\* )
36620 ac_sed_conf_input
=`$as_echo "$configure_input" |
36621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36622 *) ac_sed_conf_input
=$configure_input;;
36626 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
36627 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
36632 ac_dir
=`$as_dirname -- "$ac_file" ||
36633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36634 X"$ac_file" : 'X\(//\)[^/]' \| \
36635 X"$ac_file" : 'X\(//\)$' \| \
36636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36637 $as_echo X"$ac_file" |
36638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36642 /^X\(\/\/\)[^/].*/{
36655 as_dir
="$ac_dir"; as_fn_mkdir_p
36659 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36661 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36662 # A ".." for each directory in $ac_dir_suffix.
36663 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36664 case $ac_top_builddir_sub in
36665 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36666 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36669 ac_abs_top_builddir
=$ac_pwd
36670 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36671 # for backward compatibility:
36672 ac_top_builddir
=$ac_top_build_prefix
36675 .
) # We are building in place.
36677 ac_top_srcdir
=$ac_top_builddir_sub
36678 ac_abs_top_srcdir
=$ac_pwd ;;
36679 [\\/]* | ?
:[\\/]* ) # Absolute name.
36680 ac_srcdir
=$srcdir$ac_dir_suffix;
36681 ac_top_srcdir
=$srcdir
36682 ac_abs_top_srcdir
=$srcdir ;;
36683 *) # Relative name.
36684 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36685 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36686 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36688 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36698 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36699 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36701 ac_MKDIR_P
=$MKDIR_P
36703 [\\/$
]* | ?
:[\\/]* ) ;;
36704 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
36708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36709 # If the template does not know about datarootdir, expand it.
36710 # FIXME: This hack should be removed a few years after 2.60.
36711 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36723 *datarootdir
*) ac_datarootdir_seen
=yes;;
36724 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36729 ac_datarootdir_hack='
36730 s&@datadir@&$datadir&g
36731 s&@docdir@&$docdir&g
36732 s&@infodir@&$infodir&g
36733 s&@localedir@&$localedir&g
36734 s&@mandir@&$mandir&g
36735 s&\\\${datarootdir}&$datarootdir&g' ;;
36739 # Neutralize VPATH when `$srcdir' = `.'.
36740 # Shell code in configure.ac might set extrasub.
36741 # FIXME: do we really want to maintain this feature?
36742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36743 ac_sed_extra="$ac_vpsub
36746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36748 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36749 s|@configure_input@|
$ac_sed_conf_input|
;t t
36750 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36751 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
36752 s
&@srcdir@
&$ac_srcdir&;t t
36753 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36754 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36755 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36756 s
&@builddir@
&$ac_builddir&;t t
36757 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36758 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36759 s
&@INSTALL@
&$ac_INSTALL&;t t
36760 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
36761 $ac_datarootdir_hack
36763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
36764 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
36766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
36768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36769 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
36770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36771 which seems to be undefined. Please make sure it is defined" >&5
36772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36773 which seems to be undefined. Please make sure it is defined" >&2;}
36775 rm -f "$ac_tmp/stdin"
36777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36786 if test x"$ac_file" != x-; then
36788 $as_echo "/* $configure_input */" \
36789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36790 } >"$ac_tmp/config.h" \
36791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36794 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36797 mv "$ac_tmp/config.h" "$ac_file" \
36798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36801 $as_echo "/* $configure_input */" \
36802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36803 || as_fn_error $? "could not create -" "$LINENO" 5
36805 # Compute "$ac_file"'s index
in $config_headers.
36808 for _am_header
in $config_headers :; do
36809 case $_am_header in
36810 $_am_arg |
$_am_arg:* )
36813 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
36816 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36817 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36818 X"$_am_arg" : 'X\(//\)[^/]' \| \
36819 X"$_am_arg" : 'X\(//\)$' \| \
36820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36821 $as_echo X"$_am_arg" |
36822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36826 /^X\(\/\/\)[^/].*/{
36838 s/.*/./; q'`/stamp-h
$_am_stamp_count
36845 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36848 # Prefer the file from the source tree if names are identical.
36849 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
36850 ac_source
=$srcdir/$ac_source
36853 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36854 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36856 if test ! -r "$ac_source"; then
36857 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
36861 # Try a relative symlink, then a hard link, then a copy.
36863 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
36864 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
36866 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
36867 ln "$ac_source" "$ac_file" 2>/dev
/null ||
36868 cp -p "$ac_source" "$ac_file" ||
36869 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36872 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36873 $as_echo "$as_me: executing $ac_file commands" >&6;}
36878 case $ac_file$ac_mode in
36879 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
36880 # Older Autoconf quotes --file arguments for eval, but not when files
36881 # are listed without --file. Let's play safe and only enable the eval
36882 # if we detect the quoting.
36883 case $CONFIG_FILES in
36884 *\'*) eval set x
"$CONFIG_FILES" ;;
36885 *) set x
$CONFIG_FILES ;;
36890 # Strip MF so we end up with the name of the file.
36891 mf
=`echo "$mf" | sed -e 's/:.*$//'`
36892 # Check whether this is an Automake generated Makefile or not.
36893 # We used to match only the files named 'Makefile.in', but
36894 # some people rename them; so instead we look at the file content.
36895 # Grep'ing the first line is not enough: some people post-process
36896 # each Makefile.in and add a new line on top of each file to say so.
36897 # Grep'ing the whole file is not good either: AIX grep has a line
36898 # limit of 2048, but all sed's we know have understand at least 4000.
36899 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
36900 dirpart
=`$as_dirname -- "$mf" ||
36901 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36902 X"$mf" : 'X\(//\)[^/]' \| \
36903 X"$mf" : 'X\(//\)$' \| \
36904 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36910 /^X\(\/\/\)[^/].*/{
36926 # Extract the definition of DEPDIR, am__include, and am__quote
36927 # from the Makefile without running 'make'.
36928 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
36929 test -z "$DEPDIR" && continue
36930 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
36931 test -z "$am__include" && continue
36932 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
36933 # Find all dependency output files, they are included files with
36934 # $(DEPDIR) in their names. We invoke sed twice because it is the
36935 # simplest approach to changing $(DEPDIR) to its actual value in the
36937 for file in `sed -n "
36938 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36939 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
36940 # Make sure the directory exists.
36941 test -f "$dirpart/$file" && continue
36942 fdir
=`$as_dirname -- "$file" ||
36943 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36944 X"$file" : 'X\(//\)[^/]' \| \
36945 X"$file" : 'X\(//\)$' \| \
36946 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36947 $as_echo X"$file" |
36948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36952 /^X\(\/\/\)[^/].*/{
36965 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
36966 # echo "creating $dirpart/$file"
36967 echo '# dummy' > "$dirpart/$file"
36972 "po-directories":C
)
36973 for ac_file
in $CONFIG_FILES; do
36974 # Support "outfile[:infile[:infile...]]"
36976 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
36978 # PO directories have a Makefile.in generated from Makefile.in.in.
36979 case "$ac_file" in */Makefile.
in)
36980 # Adjust a relative srcdir.
36981 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36982 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
36983 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36984 # In autoconf-2.13 it is called $ac_given_srcdir.
36985 # In autoconf-2.50 it is called $srcdir.
36986 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
36987 case "$ac_given_srcdir" in
36988 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
36989 /*) top_srcdir
="$ac_given_srcdir" ;;
36990 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
36992 # Treat a directory as a PO directory if and only if it has a
36993 # POTFILES.in file. This allows packages to have multiple PO
36994 # directories under different names or in different locations.
36995 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36996 rm -f "$ac_dir/POTFILES"
36997 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
36998 gt_tab
=`printf '\t'`
36999 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"
37000 POMAKEFILEDEPS
="POTFILES.in"
37001 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
37002 # on $ac_dir but don't depend on user-specified configuration
37004 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
37005 # The LINGUAS file contains the set of available languages.
37006 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37007 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
37009 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
37010 # Hide the ALL_LINGUAS assignment from automake < 1.5.
37011 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
37012 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
37014 # The set of available languages was given in configure.in.
37015 # Hide the ALL_LINGUAS assignment from automake < 1.5.
37016 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
37019 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
37020 # Compute UPDATEPOFILES
37021 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
37022 # Compute DUMMYPOFILES
37023 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
37025 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
37026 case "$ac_given_srcdir" in
37028 *) srcdirpre
='$(srcdir)/' ;;
37034 for lang
in $ALL_LINGUAS; do
37035 POFILES
="$POFILES $srcdirpre$lang.po"
37036 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
37037 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
37038 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
37040 # CATALOGS depends on both $ac_dir and the user's LINGUAS
37041 # environment variable.
37043 if test -n "$ALL_LINGUAS"; then
37044 for presentlang
in $ALL_LINGUAS; do
37046 if test "%UNSET%" != "$LINGUAS"; then
37047 desiredlanguages
="$LINGUAS"
37049 desiredlanguages
="$ALL_LINGUAS"
37051 for desiredlang
in $desiredlanguages; do
37052 # Use the presentlang catalog if desiredlang is
37053 # a. equal to presentlang, or
37054 # b. a variant of presentlang (because in this case,
37055 # presentlang can be used as a fallback for messages
37056 # which are not translated in the desiredlang catalog).
37057 case "$desiredlang" in
37058 "$presentlang"*) useit
=yes;;
37061 if test $useit = yes; then
37062 INST_LINGUAS
="$INST_LINGUAS $presentlang"
37067 if test -n "$INST_LINGUAS"; then
37068 for lang
in $INST_LINGUAS; do
37069 CATALOGS
="$CATALOGS $lang.gmo"
37072 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
37073 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"
37074 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
37075 if test -f "$f"; then
37077 *.orig |
*.bak |
*~
) ;;
37078 *) cat "$f" >> "$ac_dir/Makefile" ;;
37086 "stamp-h":F
) echo timestamp
> stamp-h
;;
37094 ac_clean_files
=$ac_clean_files_save
37096 test $ac_write_fail = 0 ||
37097 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
37100 # configure is writing to config.log, and then calls config.status.
37101 # config.status does its own redirection, appending to config.log.
37102 # Unfortunately, on DOS this fails, as config.log is still kept open
37103 # by configure, so config.status won't be able to write to it; its
37104 # output is simply discarded. So we exec the FD to /dev/null,
37105 # effectively closing config.log, so it can be properly (re)opened and
37106 # appended to by config.status. When coming back to configure, we
37107 # need to make the FD available again.
37108 if test "$no_create" != yes; then
37110 ac_config_status_args
=
37111 test "$silent" = yes &&
37112 ac_config_status_args
="$ac_config_status_args --quiet"
37114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
37116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37117 # would make configure fail if this is the last instruction.
37118 $ac_cs_success || as_fn_exit
1
37120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37126 echo "*******************************************************"
37127 echo GRUB2 will be compiled with following components
:
37128 echo Platform
: "$target_cpu"-"$platform"
37129 if [ x
"$platform" = xemu
]; then
37130 if [ x
"$grub_emu_sdl_excuse" = x
]; then
37131 echo SDL support
for grub-emu
: Yes
37133 echo SDL support
for grub-emu
: No
"($grub_emu_sdl_excuse)"
37135 if [ x
"$grub_emu_pci_excuse" = x
]; then
37136 echo PCI support
for grub-emu
: Yes
37138 echo PCI support
for grub-emu
: No
"($grub_emu_pci_excuse)"
37141 if test x
"$device_mapper_excuse" = x
; then
37142 echo With devmapper support
: Yes
37144 echo With devmapper support
: No
"($device_mapper_excuse)"
37146 if [ x
"$enable_mm_debug" = xyes
]; then
37147 echo With memory debugging
: Yes
37149 echo With memory debugging
: No
37151 if [ x
"$enable_cache_stats" = xyes
]; then
37152 echo With disk cache statistics
: Yes
37154 echo With disk cache statistics
: No
37157 if [ x
"$enable_boot_time" = xyes
]; then
37158 echo With boot
time statistics
: Yes
37160 echo With boot
time statistics
: No
37163 if [ x
"$efiemu_excuse" = x
]; then
37164 echo efiemu runtime
: Yes
37166 echo efiemu runtime
: No
"($efiemu_excuse)"
37168 if [ x
"$grub_mkfont_excuse" = x
]; then
37169 echo grub-mkfont
: Yes
37171 echo grub-mkfont
: No
"($grub_mkfont_excuse)"
37173 if [ x
"$grub_mount_excuse" = x
]; then
37174 echo grub-mount
: Yes
37176 echo grub-mount
: No
"($grub_mount_excuse)"
37178 if [ x
"$starfield_excuse" = x
]; then
37179 echo starfield theme
: Yes
37180 echo With DejaVuSans font from
$DJVU_FONT_SOURCE
37182 echo starfield theme
: No
"($starfield_excuse)"
37184 if [ x
"$libzfs_excuse" = x
]; then
37185 echo With libzfs support
: Yes
37187 echo With libzfs support
: No
"($libzfs_excuse)"
37189 if [ x
"$grub_build_mkfont_excuse" = x
]; then
37190 echo Build-time grub-mkfont
: Yes
37191 if test "x$FONT_SOURCE" = x
; then
37192 echo "Without unifont"
37194 echo "With unifont from $FONT_SOURCE"
37197 echo Build-time grub-mkfont
: No
"($grub_build_mkfont_excuse)"
37198 echo "Without unifont (no build-time grub-mkfont)"
37200 if test x
"$liblzma_excuse" != x
; then
37201 echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
37203 echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
37205 if test "x$enable_stack_protector" != xno
; then
37206 echo "With stack smashing protector: Yes"
37208 echo "With stack smashing protector: No"
37210 echo "*******************************************************"